sqllogictest
Artifact Content
Not logged in

Artifact f7955a06a863544182ff8f9dbc0c25355ee68870:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 94 * + 15 AS col1
----
1410

query I rowsort
SELECT + + 83 + + - 54 * + 53 + - + 77 AS col1
----
-2856

query I rowsort
SELECT ALL - COALESCE ( + ( + + 51 ), 20 ) * + 94 AS col0
----
-4794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT + 87 * + + NULLIF ( 21, - 40 * 93 / 67 ) + + + COUNT( * ) * + - 25 - + ( - CAST( + - AVG ( DISTINCT + ( + + 37 ) ) AS SIGNED ) ) + 15 col2
----
1780

skipif mysql # not compatible
query I rowsort label-3
SELECT + 87 * + + NULLIF ( 21, - 40 * 93 / 67 ) + + + COUNT ( * ) * + - 25 - + ( - CAST ( + - AVG ( DISTINCT + ( + + 37 ) ) AS INTEGER ) ) + 15 col2
----
1780

query I rowsort
SELECT + 60 * + 98 + 96 AS col1
----
5976

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL + MAX( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + MAX ( DISTINCT + 13 )
----
13

query I rowsort
SELECT ALL + - NULLIF ( - - 22, + 84 )
----
-22

query I rowsort
SELECT DISTINCT + 64 * NULLIF ( + 65, - 87 * - - 92 + + 46 )
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT + 87 - - 1 * + + MAX( ALL + 30 ) * + COUNT( + - ( 37 ) ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-8
SELECT + 87 - - 1 * + + MAX ( ALL + 30 ) * + COUNT ( + - ( 37 ) ) AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT CAST( - 26 AS SIGNED ) * - MAX( + + 75 )
----
1950

skipif mysql # not compatible
query I rowsort label-9
SELECT CAST ( - 26 AS INTEGER ) * - MAX ( + + 75 )
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT DISTINCT 66 * MIN( ALL + + 40 )
----
2640

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT 66 * MIN ( ALL + + 40 )
----
2640

query I rowsort
SELECT ALL - 62 * - - COALESCE ( - 29, - 58, - 47 ) AS col2
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT COUNT( * ) * ( + - 7 ) * + ( - + NULLIF ( - 38, - + 58 + + ( + 52 ) + - 3 - COUNT( * ) / - + 51 * 63 * - COUNT( * ) * - + 27 * + - 29 ) ) * - + 58 * ( + 35 ) - - SUM( DISTINCT - - 77 ) * + ( + - 69 ) col2
----
534667

skipif mysql # not compatible
query I rowsort label-12
SELECT COUNT ( * ) * ( + - 7 ) * + ( - + NULLIF ( - 38, - + 58 + + ( + 52 ) + - 3 - COUNT ( * ) / - + 51 * 63 * - COUNT ( * ) * - + 27 * + - 29 ) ) * - + 58 * ( + 35 ) - - SUM ( DISTINCT - - 77 ) * + ( + - 69 ) col2
----
534667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-13
SELECT 48 DIV - + COUNT( - 60 ) AS col1, CASE - 78 WHEN + - CASE - - 29 WHEN - 39 THEN NULL ELSE 79 END THEN - 20 * - 33 * - - 49 - + + CAST( - ( SUM( ALL - 47 ) ) AS SIGNED ) WHEN + - 80 THEN + - 70 WHEN - CASE - 87 WHEN - 33 DIV - 32 * + ( - - 10 ) THEN - COUNT( - 3 ) * + 54 WHEN CASE COUNT( * ) WHEN + 17 * 41 THEN NULL ELSE - 46 + - MAX( 53 ) DIV + - 62 END * - 18 * + CASE - 87 WHEN ( - 10 ) THEN NULL WHEN COUNT( * ) * 67 + + COUNT( * ) THEN + 94 + 56 END THEN NULL END * MAX( ALL 11 * + ( 66 ) ) THEN - COUNT( * ) * CAST( NULL AS SIGNED ) END + CAST( CASE - 28 WHEN - CASE 8 WHEN - 22 + 3 THEN COUNT( * ) * - 38 WHEN 89 THEN NULL END * 86 THEN - 92 ELSE NULL END AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-13
SELECT 48 / - + COUNT ( - 60 ) AS col1, CASE - 78 WHEN + - CASE - - 29 WHEN - 39 THEN NULL ELSE 79 END THEN - 20 * - 33 * - - 49 - + + CAST ( - ( SUM ( ALL - 47 ) ) AS INTEGER ) WHEN + - 80 THEN + - 70 WHEN - CASE - 87 WHEN - 33 / - 32 * + ( - - 10 ) THEN - COUNT ( - 3 ) * + 54 WHEN CASE COUNT ( * ) WHEN + 17 * 41 THEN NULL ELSE - 46 + - MAX ( 53 ) / + - 62 END * - 18 * + CASE - 87 WHEN ( - 10 ) THEN NULL WHEN COUNT ( * ) * 67 + + COUNT ( * ) THEN + 94 + 56 END THEN NULL END * MAX ( ALL 11 * + ( 66 ) ) THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) END + CAST ( CASE - 28 WHEN - CASE 8 WHEN - 22 + 3 THEN COUNT ( * ) * - 38 WHEN 89 THEN NULL END * 86 THEN - 92 ELSE NULL END AS INTEGER )
----
-48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - MIN( ALL 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - MIN ( ALL 24 ) AS col1
----
-24

query I rowsort
SELECT ( 43 ) * + 50
----
2150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT 67 - COUNT( * ) + + 9 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-17
SELECT 67 - COUNT ( * ) + + 9 AS col2
----
75

query I rowsort
SELECT 67 + + 69
----
136

query I rowsort
SELECT ALL + 93 + - 68 * + 83
----
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT 73 * - - COALESCE ( - 16, 37, + - 4 + + COUNT( * ) ) AS col1
----
-1168

skipif mysql # not compatible
query I rowsort label-20
SELECT 73 * - - COALESCE ( - 16, 37, + - 4 + + COUNT ( * ) ) AS col1
----
-1168

query II rowsort
SELECT ( + - 20 ) + - - 18, + 96 + + 10 * - 42 AS col2
----
-2
-324

query I rowsort
SELECT 63 + 70 AS col1
----
133

query I rowsort
SELECT ALL + 49 + - 41 AS col0
----
8

query III rowsort
SELECT DISTINCT - - 68 + 57 + + 12 AS col1, - 76 * - 98 + - 77, - 75 AS col1
----
137
7371
-75

query II rowsort
SELECT + 76, - 27 + 62 AS col2
----
76
35

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT + 9 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + 9 / - - 73
----
0

query I rowsort
SELECT - 78 * - 46 AS col1
----
3588

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT 12 DIV + 10 + - 2 * + COALESCE ( 9, + 2 + + ( 80 ), - + 22 DIV - 26 )
----
-17

skipif mysql # not compatible
query I rowsort label-28
SELECT 12 / + 10 + - 2 * + COALESCE ( 9, + 2 + + ( 80 ), - + 22 / - 26 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ( + - 52 ) * - + 84 - + - 15 + + 2 * COUNT( * ) col2
----
4385

skipif mysql # not compatible
query I rowsort label-29
SELECT ( + - 52 ) * - + 84 - + - 15 + + 2 * COUNT ( * ) col2
----
4385

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT + COUNT( - - 25 ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + COUNT ( - - 25 ) * - 92
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT + 44 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + 44 / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + MIN( 90 ) + 56 * + + CASE - 61 WHEN - - 75 THEN + - 30 END + + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT + MIN ( 90 ) + 56 * + + CASE - 61 WHEN - - 75 THEN + - 30 END + + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - 94 * - 36 * + 23 * + MAX( ALL + COALESCE ( + ( 16 ), + 39 * + 78 * 84, + 42 ) ) AS col2
----
1245312

skipif mysql # not compatible
query I rowsort label-33
SELECT - 94 * - 36 * + 23 * + MAX ( ALL + COALESCE ( + ( 16 ), + 39 * + 78 * 84, + 42 ) ) AS col2
----
1245312

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

skipif mysql # not compatible
query I rowsort label-34
SELECT + 99 + + COUNT ( * ) + - 87 AS col1
----
13

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

query I rowsort
SELECT ( - + 67 ) + - 5
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-37
SELECT NULLIF ( COUNT( * ), 65 ) * - - 68, CASE - + 7 WHEN COUNT( DISTINCT 17 ) THEN NULL WHEN + 96 * - + COUNT( * ) + - 34 + + + 14 / + 30 THEN + 17 ELSE NULL END AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-37
SELECT NULLIF ( COUNT ( * ), 65 ) * - - 68, CASE - + 7 WHEN COUNT ( DISTINCT 17 ) THEN NULL WHEN + 96 * - + COUNT ( * ) + - 34 + + + 14 / + 30 THEN + 17 ELSE NULL END AS col0
----
68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-38
SELECT DISTINCT CAST( - COUNT( + 42 ) AS SIGNED ) + + COALESCE ( 50, + 50 ) DIV - + 96
----
-1

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT CAST ( - COUNT ( + 42 ) AS INTEGER ) + + COALESCE ( 50, + 50 ) / - + 96
----
-1

query I rowsort
SELECT ALL 3 + 2 * + - 84
----
-165

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

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 33 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT ALL 50 + - - CAST( - 55 AS SIGNED ) * - 48 + - 24
----
2666

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL 50 + - - CAST ( - 55 AS INTEGER ) * - 48 + - 24
----
2666

query I rowsort
SELECT DISTINCT 8 * - ( - 7 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COUNT( * ) - 62 - + 44 + 75
----
-30

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( * ) - 62 - + 44 + 75
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT 57 - 46 AS col0, COUNT( * )
----
11
1

skipif mysql # not compatible
query II rowsort label-44
SELECT 57 - 46 AS col0, COUNT ( * )
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 92 * + 20 * COALESCE ( CASE - COUNT( * ) WHEN + - 77 / - 63 THEN + 36 END, COUNT( * ), - 73 + - 58 )
----
1840

skipif mysql # not compatible
query I rowsort label-45
SELECT 92 * + 20 * COALESCE ( CASE - COUNT ( * ) WHEN + - 77 / - 63 THEN + 36 END, COUNT ( * ), - 73 + - 58 )
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT 98 + + 44 + + - COUNT( * ) col2
----
141

skipif mysql # not compatible
query I rowsort label-46
SELECT 98 + + 44 + + - COUNT ( * ) col2
----
141

query I rowsort
SELECT ALL - 17 + + 5
----
-12

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

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

query I rowsort
SELECT 92 - - - 77 * + + 31 + + 60
----
-2235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-50
SELECT ALL + - CAST( + 34 AS SIGNED ) - COALESCE ( + COUNT( * ), + 66 + + 3 + + - 90 DIV + 91 * + 80 )
----
-35

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + - CAST ( + 34 AS INTEGER ) - COALESCE ( + COUNT ( * ), + 66 + + 3 + + - 90 / + 91 * + 80 )
----
-35

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

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + 80 * + AVG ( - 22 ) * + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 98 + - ( + 60 ) AS col1
----
38

query I rowsort
SELECT - 67 * - - 78 + 85 * 89 * - 39
----
-300261

query II rowsort
SELECT ALL + + 3 * + 45, - 3 col2
----
135
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT - CASE + ( 3 ) WHEN + CAST( NULL AS SIGNED ) * 78 THEN - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT - CASE + ( 3 ) WHEN + CAST ( NULL AS INTEGER ) * 78 THEN - + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL CASE 72 WHEN 99 THEN MAX( + 99 ) / + 21 ELSE + 42 * + 95 + - 69 + + 93 + + - 57 * COUNT( 1 ) END AS col1
----
3957

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL CASE 72 WHEN 99 THEN MAX ( + 99 ) / + 21 ELSE + 42 * + 95 + - 69 + + 93 + + - 57 * COUNT ( 1 ) END AS col1
----
3957

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

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

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

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

query I rowsort
SELECT - 69 * + 26
----
-1794

query II rowsort
SELECT ALL 9 * + CASE - 90 WHEN + 82 * + 71 + - ( + COALESCE ( + 45, + 95, + 48 ) ) + 14 THEN 80 END * - + 19 + 11, + CASE + AVG ( + 58 ) WHEN ( 78 ) / + - 33 + 55 THEN + - 78 * - 8 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL - + COUNT( * ) * + - 74 + 78 + + + 24 + 51
----
227

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL - + COUNT ( * ) * + - 74 + 78 + + + 24 + 51
----
227

query I rowsort
SELECT - COALESCE ( - 27, 10 ) + 14 + - 58 * - 55
----
3231

query II rowsort
SELECT + ( + 36 ) AS col1, 67 AS col1
----
36
67

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT - + 49 DIV + 87 + 46 * + 48 AS col1
----
2208

skipif mysql # not compatible
query I rowsort label-64
SELECT - + 49 / + 87 + 46 * + 48 AS col1
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-65
SELECT ALL 10 * + - COUNT( * ) DIV 1
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-67
SELECT ALL + CASE 14 WHEN + 12 THEN CASE 11 WHEN + + ( + 55 ) THEN + COUNT( * ) + + - 79 END + + + 97 END * + 41 + + - CAST( + 61 AS DECIMAL ) + + - 99 * + 21 * COUNT( * ) * + 64 * CASE 63 WHEN - COUNT( * ) THEN NULL ELSE + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + CASE 14 WHEN + 12 THEN CASE 11 WHEN + + ( + 55 ) THEN + COUNT ( * ) + + - 79 END + + + 97 END * + 41 + + - CAST ( + 61 AS REAL ) + + - 99 * + 21 * COUNT ( * ) * + 64 * CASE 63 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 74 * 56 + 76 AS col0
----
-4068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-69
SELECT ALL + ( + ( - - 10 ) ) * ( + CAST( NULL AS SIGNED ) ), COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-69
SELECT ALL + ( + ( - - 10 ) ) * ( + CAST ( NULL AS INTEGER ) ), COUNT ( * ) col2
----
NULL
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + 44 + - 13 + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-71
SELECT + 44 + - 13 + COUNT ( * )
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-73
SELECT ALL + 9 AS col0, CASE - CAST( + 41 AS SIGNED ) WHEN - - 6 THEN 8 - 68 * + 84 ELSE NULL END * + + 36 * - 80 * + + 44 + + MAX( - CAST( - 38 AS SIGNED ) ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL + 9 AS col0, CASE - CAST ( + 41 AS INTEGER ) WHEN - - 6 THEN 8 - 68 * + 84 ELSE NULL END * + + 36 * - 80 * + + 44 + + MAX ( - CAST ( - 38 AS INTEGER ) ) AS col1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT - 41 * - 65 + - COUNT( * ) - - - 8 AS col2
----
2656

skipif mysql # not compatible
query I rowsort label-74
SELECT - 41 * - 65 + - COUNT ( * ) - - - 8 AS col2
----
2656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT + CASE - + 6 WHEN + - 60 / + + CAST( 33 AS SIGNED ) + 37 + CAST( 87 AS SIGNED ) THEN 77 * - + ( - + COUNT( * ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT + CASE - + 6 WHEN + - 60 / + + CAST ( 33 AS INTEGER ) + 37 + CAST ( 87 AS INTEGER ) THEN 77 * - + ( - + COUNT ( * ) ) END col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - COUNT( * ) + 64 + + + 47 + + + 10
----
120

skipif mysql # not compatible
query I rowsort label-77
SELECT - COUNT ( * ) + 64 + + + 47 + + + 10
----
120

query I rowsort
SELECT + 60 * - 6 * 77 - - 97 AS col1
----
-27623

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT MIN( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-79
SELECT MIN ( ALL - 68 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT ALL 96 * COALESCE ( - - 47, - 35 + - 47 DIV + - MIN( - 70 ) )
----
4512

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL 96 * COALESCE ( - - 47, - 35 + - 47 / + - MIN ( - 70 ) )
----
4512

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

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL ( - CAST ( - - SUM ( ALL + 59 ) AS INTEGER ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT ( MAX( ALL + 43 ) )
----
43

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT ( MAX ( ALL + 43 ) )
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT 1 - - - COUNT( * ) * ( 82 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT 1 - - - COUNT ( * ) * ( 82 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT 95 * 39
----
3705

onlyif mysql # aggregate syntax: 
query II rowsort label-86
SELECT ALL + CASE + 42 WHEN 25 * + SUM( ALL + 11 ) THEN - - 95 + 97 ELSE + 79 END col2, 74
----
79
74

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL + CASE + 42 WHEN 25 * + SUM ( ALL + 11 ) THEN - - 95 + 97 ELSE + 79 END col2, 74
----
79
74

query I rowsort
SELECT + + 45 + + - 8
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + - SUM( - 46 ) * - 75 AS col1
----
-3450

skipif mysql # not compatible
query I rowsort label-88
SELECT + - SUM ( - 46 ) * - 75 AS col1
----
-3450

query I rowsort
SELECT + - ( + 0 ) + - 33
----
-33

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

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

query I rowsort
SELECT - ( + 33 ) col2
----
-33

query I rowsort
SELECT DISTINCT - COALESCE ( - 7, - 73 + - + 71 )
----
7

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

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT MAX ( DISTINCT - - CAST ( + 3 AS INTEGER ) )
----
3

query I rowsort
SELECT + 40 + 21 AS col2
----
61

query I rowsort
SELECT - ( - 68 ) + + 86
----
154

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

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

query I rowsort
SELECT + 97 * - 21 AS col1
----
-2037

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT - 67 + 30 DIV + + 34 col1
----
-67

skipif mysql # not compatible
query I rowsort label-98
SELECT - 67 + 30 / + + 34 col1
----
-67

query I rowsort
SELECT - 75 * - + 44 + + 28 + 83 + 69 * 82 AS col0
----
9069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-100
SELECT - + CASE + MAX( DISTINCT - 12 ) WHEN + 91 + + 9 THEN - + 50 / 65 + + + CASE - - CASE 80 WHEN 76 THEN - + COUNT( 36 ) - - NULLIF ( - 59, - + NULLIF ( + 51, 74 * - + 25 ) * - ( 53 ) * - - COUNT( - 52 ) * + 43 - + 87 + - COUNT( + 56 ) ) END WHEN + - 95 / - ( - + 78 ) * COUNT( * ) * - + CAST( NULL AS SIGNED ) + 39 - - 26 + - CAST( NULL AS DECIMAL ) + 86 THEN - COUNT( + NULLIF ( - + 72, 97 * + 82 ) ) + + 74 + - 1 + + CASE + - ( 17 ) WHEN + 39 * - 77 THEN 82 ELSE NULL END ELSE NULL END END + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - + CASE + MAX ( DISTINCT - 12 ) WHEN + 91 + + 9 THEN - + 50 / 65 + + + CASE - - CASE 80 WHEN 76 THEN - + COUNT ( 36 ) - - NULLIF ( - 59, - + NULLIF ( + 51, 74 * - + 25 ) * - ( 53 ) * - - COUNT ( - 52 ) * + 43 - + 87 + - COUNT ( + 56 ) ) END WHEN + - 95 / - ( - + 78 ) * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 39 - - 26 + - CAST ( NULL AS REAL ) + 86 THEN - COUNT ( + NULLIF ( - + 72, 97 * + 82 ) ) + + 74 + - 1 + + CASE + - ( 17 ) WHEN + 39 * - 77 THEN 82 ELSE NULL END ELSE NULL END END + - 76
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-102
SELECT - - CAST( + 96 AS SIGNED ) DIV 15 * 53 - ( + 47 ) * - - ( 9 ) + - 28 + 31 col0
----
-102

skipif mysql # not compatible
query I rowsort label-102
SELECT - - CAST ( + 96 AS INTEGER ) / 15 * 53 - ( + 47 ) * - - ( 9 ) + - 28 + 31 col0
----
-102

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-103
SELECT + CAST( 25 AS SIGNED ) * + CAST( NULL AS DECIMAL ) / + 24 + + + 75, ( - 75 ) * + 35 - - 7 * - - ( + 48 ) AS col1
----
NULL
-2289

skipif mysql # not compatible
query II rowsort label-103
SELECT + CAST ( 25 AS INTEGER ) * + CAST ( NULL AS REAL ) / + 24 + + + 75, ( - 75 ) * + 35 - - 7 * - - ( + 48 ) AS col1
----
NULL
-2289

onlyif mysql # DIV for integer division: 
query II rowsort label-104
SELECT ALL + 51 col1, - 52 DIV 77
----
51
0

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL + 51 col1, - 52 / 77
----
51
0

query I rowsort
SELECT - + 19 * 69 * - - 37 col0
----
-48507

onlyif mysql # DIV for integer division: 
query II rowsort label-106
SELECT 19 AS col0, + 5 DIV 91 + 52 AS col1
----
19
52

skipif mysql # not compatible
query II rowsort label-106
SELECT 19 AS col0, + 5 / 91 + 52 AS col1
----
19
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-107
SELECT ALL + 2 DIV 37 + - - COUNT( * ) + - 76 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + 2 / 37 + - - COUNT ( * ) + - 76 AS col0
----
-75

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

query I rowsort
SELECT ( ( 9 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL 56 * + - MIN( + 53 ) + + 15 * 55
----
-2143

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 56 * + - MIN ( + 53 ) + + 15 * 55
----
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT - 32 * + + ( - 10 ) * - SUM( + 98 ) + + 78 AS col0
----
-31282

skipif mysql # not compatible
query I rowsort label-111
SELECT - 32 * + + ( - 10 ) * - SUM ( + 98 ) + + 78 AS col0
----
-31282

query I rowsort
SELECT - 50 + - 70
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT - NULLIF ( 44, 62 ) * ( - 48 ) + COALESCE ( + 91, - 15 DIV + + COALESCE ( + 34, + - 86, + 37 + 53 ) * + 14 )
----
2203

skipif mysql # not compatible
query I rowsort label-113
SELECT - NULLIF ( 44, 62 ) * ( - 48 ) + COALESCE ( + 91, - 15 / + + COALESCE ( + 34, + - 86, + 37 + 53 ) * + 14 )
----
2203

query II rowsort
SELECT + 98 AS col0, 36 - + 54
----
98
-18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT 68 * - + COALESCE ( + 85, - + CASE - AVG ( + 79 ) WHEN 45 THEN - + 87 WHEN 73 + 77 THEN NULL END, + 11 + 46 ) - - COUNT( * )
----
-5779

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT 68 * - + COALESCE ( + 85, - + CASE - AVG ( + 79 ) WHEN 45 THEN - + 87 WHEN 73 + 77 THEN NULL END, + 11 + 46 ) - - COUNT ( * )
----
-5779

query I rowsort
SELECT ALL - 63 * 80 AS col1
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT - 96 + - 84 - 79 * + 81 * - ( - ( + CASE WHEN NOT 17 IS NULL THEN + ( - + CASE + 92 WHEN + 4 THEN - 61 END ) / 30 + 7 - + - 63 / - CASE + + 4 WHEN - 79 + + COUNT( * ) THEN - 37 * + + ( - - 65 ) * MIN( - 61 ) + 76 + + 58 / 21 ELSE NULL END * - ( - ( + 96 ) ) ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT - 96 + - 84 - 79 * + 81 * - ( - ( + CASE WHEN NOT 17 IS NULL THEN + ( - + CASE + 92 WHEN + 4 THEN - 61 END ) / 30 + 7 - + - 63 / - CASE + + 4 WHEN - 79 + + COUNT ( * ) THEN - 37 * + + ( - - 65 ) * MIN ( - 61 ) + 76 + + 58 / 21 ELSE NULL END * - ( - ( + 96 ) ) ELSE NULL END ) )
----
NULL

query II rowsort
SELECT ALL + COALESCE ( - + 6, - - 73 * - 46 ), - 30 AS col2
----
-6
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - 42 * + COUNT( * ) * - 42
----
1764

skipif mysql # not compatible
query I rowsort label-120
SELECT - 42 * + COUNT ( * ) * - 42
----
1764

query I rowsort
SELECT + 48 * + 23 AS col0
----
1104

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT - ( - 61 ) - + + 25 * NULLIF ( 7, + + 79 * 9 + + CAST( - NULLIF ( - 68, + 7 * - 30 ) AS SIGNED ) ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-123
SELECT - ( - 61 ) - + + 25 * NULLIF ( 7, + + 79 * 9 + + CAST ( - NULLIF ( - 68, + 7 * - 30 ) AS INTEGER ) ) AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT - - 93 * - - 9 + + + ( - COUNT( * ) ) * + - NULLIF ( - 36, + 63 * 13 - + 80 ) + - + 34 * + 22 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-124
SELECT - - 93 * - - 9 + + + ( - COUNT ( * ) ) * + - NULLIF ( - 36, + 63 * 13 - + 80 ) + - + 34 * + 22 AS col0
----
53

query I rowsort
SELECT + 58 + + 68
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-126
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 8 * 58 * + 91
----
NULL
42224

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 8 * 58 * + 91
----
NULL
42224

query I rowsort
SELECT DISTINCT - 97 * + - 9 AS col0
----
873

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT - 29 - 87 - 22 * - + COALESCE ( - COUNT( + 29 ), - 10 + + 34 - - 11 ) * - + COUNT( * ) * - 0, 94 AS col2
----
-116
94

skipif mysql # not compatible
query II rowsort label-128
SELECT - 29 - 87 - 22 * - + COALESCE ( - COUNT ( + 29 ), - 10 + + 34 - - 11 ) * - + COUNT ( * ) * - 0, 94 AS col2
----
-116
94

onlyif mysql # aggregate syntax: 
query II rowsort label-129
SELECT ALL 13 col1, ( - COUNT( * ) ) + + 96
----
13
95

skipif mysql # not compatible
query II rowsort label-129
SELECT ALL 13 col1, ( - COUNT ( * ) ) + + 96
----
13
95

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT 3 + - COUNT( * ) * + 66 * + 8
----
-525

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT 3 + - COUNT ( * ) * + 66 * + 8
----
-525

query I rowsort
SELECT - + COALESCE ( + 50, - ( - 5 ), - 91 + 51 )
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-132
SELECT 60 AS col0, - 4 DIV 74
----
60
0

skipif mysql # not compatible
query II rowsort label-132
SELECT 60 AS col0, - 4 / 74
----
60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ( + + CASE + + 15 WHEN 85 - 67 + 87 + - - 74 + + + MAX( ALL - + ( ( + 22 ) ) ) THEN 49 END ) / + 58 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ( + + CASE + + 15 WHEN 85 - 67 + 87 + - - 74 + + + MAX ( ALL - + ( ( + 22 ) ) ) THEN 49 END ) / + 58 * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL + 4 + + - 29 * + - ( + SUM( DISTINCT + 68 ) )
----
1976

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + 4 + + - 29 * + - ( + SUM ( DISTINCT + 68 ) )
----
1976

query I rowsort
SELECT ALL 44 + + 92 AS col0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT 79 DIV COALESCE ( + 68, + - COUNT( * ) * - - 44 * 16 + + 96 + - + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-136
SELECT 79 / COALESCE ( + 68, + - COUNT ( * ) * - - 44 * 16 + + 96 + - + 32 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT - COUNT( - 33 ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - COUNT ( - 33 ) + + 23
----
22

query I rowsort
SELECT ALL 71 + - 75 * - 16 col2
----
1271

query II rowsort
SELECT ALL - + 10 AS col2, ( 56 ) AS col1
----
-10
56

onlyif mysql # aggregate syntax: 
query II rowsort label-140
SELECT ALL - 14, CASE COUNT( * ) WHEN 65 THEN - 78 * COUNT( * ) * - - 17 - - 84 END col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-140
SELECT ALL - 14, CASE COUNT ( * ) WHEN 65 THEN - 78 * COUNT ( * ) * - - 17 - - 84 END col1
----
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL 51 + 81 * + + COUNT( + 15 ) + + 93 - + - 39
----
264

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL 51 + 81 * + + COUNT ( + 15 ) + + 93 - + - 39
----
264

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

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

query I rowsort
SELECT ALL - 30 * + 21
----
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-144
SELECT DISTINCT - COALESCE ( - - 92, - + 8 + - 97 + + 57 - - + COUNT( DISTINCT + 44 ) + - - 43 * - - 88 * - + 80 DIV 4 - 14 * + 98 )
----
-92

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT - COALESCE ( - - 92, - + 8 + - 97 + + 57 - - + COUNT ( DISTINCT + 44 ) + - - 43 * - - 88 * - + 80 / 4 - 14 * + 98 )
----
-92

query I rowsort
SELECT DISTINCT 50 * 14 AS col0
----
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT DISTINCT - ( + CAST( - + 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - ( + CAST ( - + 24 AS INTEGER ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT DISTINCT 26 - + CAST( NULL AS SIGNED ) / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT 26 - + CAST ( NULL AS INTEGER ) / + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT ALL 84 * MAX( ALL + 26 ) * + 65 * + + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL 84 * MAX ( ALL + 26 ) * + 65 * + + 0 AS col1
----
0

query I rowsort
SELECT 1 + + + 10 + - 79 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT ( 36 ) DIV + COUNT( * ) AS col2
----
36

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

query I rowsort
SELECT 8 * - 82 * + 1
----
-656

query I rowsort
SELECT 91 + 78 + + 36 * + 39 * + 30 * - - 23
----
968929

query I rowsort
SELECT - 13 * + 42 - + - 7 + + 93 AS col0
----
-446

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT DISTINCT + - 55 DIV + ( - - 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT + - 55 / + ( - - 25 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-158
SELECT ALL + ( COALESCE ( - - ( + - 76 ), + 58 ) ) * - COUNT( 76 ) AS col0, 94
----
76
94

skipif mysql # not compatible
query II rowsort label-158
SELECT ALL + ( COALESCE ( - - ( + - 76 ), + 58 ) ) * - COUNT ( 76 ) AS col0, 94
----
76
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-159
SELECT DISTINCT - 41 + 79 * - 76 - MIN( + 93 ) + + 95 * + + 39 * 72 + + COUNT( * ) DIV + + ( - 22 ) * + 5 - - + 80 * - 48 col1
----
256782

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT - 41 + 79 * - 76 - MIN ( + 93 ) + + 95 * + + 39 * 72 + + COUNT ( * ) / + + ( - 22 ) * + 5 - - + 80 * - 48 col1
----
256782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT - CAST( NULL AS SIGNED ) - - - 39 + + - 45 * ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT - CAST ( NULL AS INTEGER ) - - - 39 + + - 45 * ( + 8 )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 34, 39 )
----
-34

query I rowsort
SELECT 1 + - 19 * 65 AS col1
----
-1234

query I rowsort
SELECT - 58 * + 42 * - + ( ( ( + 57 ) ) )
----
138852

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

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

query I rowsort
SELECT - 91 * - 41 AS col0
----
3731

query I rowsort
SELECT 76 + + 59 + - 48 * + + 19
----
-777

onlyif mysql # aggregate syntax: 
query II rowsort label-167
SELECT ( 25 ) * MAX( - + 13 ) AS col2, 58 AS col1
----
-325
58

skipif mysql # not compatible
query II rowsort label-167
SELECT ( 25 ) * MAX ( - + 13 ) AS col2, 58 AS col1
----
-325
58

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

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

query I rowsort
SELECT + 42 * - 27 + - 78 + + - 50 * - - 76 AS col2
----
-5012

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT MAX( DISTINCT 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-170
SELECT MAX ( DISTINCT 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 71 * 31 col1
----
-2201

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT DISTINCT 17 * - 30 - + ( + 5 ) AS col2, - NULLIF ( COALESCE ( - + MAX( + 92 ), + 47 * + 94 + COUNT( * ) * 13 ), + CASE - - COUNT( * ) WHEN + 73 / 3 + 39 THEN + COUNT( * ) WHEN + 55 - - - 96 THEN - - COALESCE ( - 86, - - ( 96 ) ) END * 68 ) + + ( 64 ) AS col1
----
-515
156

skipif mysql # not compatible
query II rowsort label-172
SELECT DISTINCT 17 * - 30 - + ( + 5 ) AS col2, - NULLIF ( COALESCE ( - + MAX ( + 92 ), + 47 * + 94 + COUNT ( * ) * 13 ), + CASE - - COUNT ( * ) WHEN + 73 / 3 + 39 THEN + COUNT ( * ) WHEN + 55 - - - 96 THEN - - COALESCE ( - 86, - - ( 96 ) ) END * 68 ) + + ( 64 ) AS col1
----
-515
156

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT DISTINCT 2 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT 2 / - 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT + NULLIF ( - - 45, 63 * + - MAX( + CAST( + 44 AS SIGNED ) ) * + - 25 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-174
SELECT + NULLIF ( - - 45, 63 * + - MAX ( + CAST ( + 44 AS INTEGER ) ) * + - 25 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT COUNT( * ) AS col1, 46 * - 53 - + + 61 + + 67 AS col2
----
1
-2432

skipif mysql # not compatible
query II rowsort label-175
SELECT COUNT ( * ) AS col1, 46 * - 53 - + + 61 + + 67 AS col2
----
1
-2432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL COUNT( * ) * - COUNT( DISTINCT - - 93 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT - - 93 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT CASE - SUM( + + 93 ) WHEN - 23 + - COUNT( * ) + + 61 THEN - - 22 END + - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT CASE - SUM ( + + 93 ) WHEN - 23 + - COUNT ( * ) + + 61 THEN - - 22 END + - + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT 73 * - NULLIF ( - ( - + 78 ), + SUM( DISTINCT + 43 ) + 30 - - 5 ) + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT 73 * - NULLIF ( - ( - + 78 ), + SUM ( DISTINCT + 43 ) + 30 - - 5 ) + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + COALESCE ( + COUNT( * ), 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-180
SELECT + COALESCE ( + COUNT ( * ), 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT - 27 + - 84 DIV 99 * + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - 27 + - 84 / 99 * + COUNT ( * ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-182
SELECT ALL AVG ( ALL - 99 ) * - COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2, - 51 AS col1
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL AVG ( ALL - 99 ) * - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2, - 51 AS col1
----
NULL
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL - + 82 + + - 94 * + COALESCE ( 54, - 82, - - CAST( - + NULLIF ( 82, 52 ) AS SIGNED ) ) * - 20
----
101438

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - + 82 + + - 94 * + COALESCE ( 54, - 82, - - CAST ( - + NULLIF ( 82, 52 ) AS INTEGER ) ) * - 20
----
101438

query I rowsort
SELECT DISTINCT 62 + + 59 AS col2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT ALL + 48 DIV + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL + 48 / + 46 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT - NULLIF ( - 32, - COALESCE ( - COUNT( * ), - CAST( - 28 AS SIGNED ) * + 48 + - 24, - - 27 ) / - - 31 ) + - + 1 * + 66 col2
----
-34

skipif mysql # not compatible
query I rowsort label-186
SELECT - NULLIF ( - 32, - COALESCE ( - COUNT ( * ), - CAST ( - 28 AS INTEGER ) * + 48 + - 24, - - 27 ) / - - 31 ) + - + 1 * + 66 col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT ALL + - 77 DIV + 7 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + - 77 / + 7 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL - - 85 * 69 * + 44 * CAST( NULL AS SIGNED ) * - 28 + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - - 85 * 69 * + 44 * CAST ( NULL AS INTEGER ) * - 28 + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL + COUNT( DISTINCT - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + COUNT ( DISTINCT - 33 )
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT 51 AS col2, 28 + + 90 + + - COUNT( * ) + + COUNT( * ) AS col1
----
51
118

skipif mysql # not compatible
query II rowsort label-192
SELECT 51 AS col2, 28 + + 90 + + - COUNT ( * ) + + COUNT ( * ) AS col1
----
51
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-193
SELECT ALL ( COUNT( * ) ), + 40 DIV + - 69 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL ( COUNT ( * ) ), + 40 / + - 69 AS col0
----
1
0

query I rowsort
SELECT - ( 76 ) * - 24 - 35 AS col1
----
1789

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL NULLIF ( + 57, 99 * COUNT( DISTINCT - 89 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL NULLIF ( + 57, 99 * COUNT ( DISTINCT - 89 ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT ALL + 4 * COUNT( * ), + 73 AS col2
----
4
73

skipif mysql # not compatible
query II rowsort label-196
SELECT ALL + 4 * COUNT ( * ), + 73 AS col2
----
4
73

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

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

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

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + NULLIF ( - COUNT ( * ), 0 )
----
-1

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

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

query II rowsort
SELECT - 20 + + 95 AS col2, ( 87 ) AS col2
----
75
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT + CAST( + - 99 AS SIGNED ) * + + MAX( - 24 ) + 65 * 31 AS col0
----
4391

skipif mysql # not compatible
query I rowsort label-201
SELECT + CAST ( + - 99 AS INTEGER ) * + + MAX ( - 24 ) + 65 * 31 AS col0
----
4391

query I rowsort
SELECT 14 * - 89 + - - 20 AS col1
----
-1226

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL + COUNT( ALL - CASE - 10 WHEN 73 THEN 55 * + 39 / 13 END ) * - + ( - CASE 61 WHEN + 21 THEN NULL ELSE + ( 7 ) END ) + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + COUNT ( ALL - CASE - 10 WHEN 73 THEN 55 * + 39 / 13 END ) * - + ( - CASE 61 WHEN + 21 THEN NULL ELSE + ( 7 ) END ) + COUNT ( * ) + + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + NULLIF ( - - 60, - MIN( ALL - + 56 ) * - - 98 + + MIN( ALL - 60 ) - 57 )
----
60

skipif mysql # not compatible
query I rowsort label-204
SELECT + NULLIF ( - - 60, - MIN ( ALL - + 56 ) * - - 98 + + MIN ( ALL - 60 ) - 57 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - 5 * + 54 + - 89 + - COUNT( 2 )
----
-360

skipif mysql # not compatible
query I rowsort label-205
SELECT - 5 * + 54 + - 89 + - COUNT ( 2 )
----
-360

query I rowsort
SELECT + 83 * 24
----
1992

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT DISTINCT + 37 * 94 - - 82 + + COUNT( * ) AS col1, ( ( + - 37 ) ) AS col0
----
3561
-37

skipif mysql # not compatible
query II rowsort label-207
SELECT DISTINCT + 37 * 94 - - 82 + + COUNT ( * ) AS col1, ( ( + - 37 ) ) AS col0
----
3561
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT ALL - + 47 * + 57 + + 23 DIV 21 + + - ( 17 ) * + COUNT( * )
----
-2695

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - + 47 * + 57 + + 23 / 21 + + - ( 17 ) * + COUNT ( * )
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL + + COUNT( - - NULLIF ( - 37, - 0 * - 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + + COUNT ( - - NULLIF ( - 37, - 0 * - 54 ) )
----
1

query I rowsort
SELECT + 48 + 99 AS col0
----
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + - SUM( - + 35 ) + - - 81
----
116

skipif mysql # not compatible
query I rowsort label-212
SELECT + - SUM ( - + 35 ) + - - 81
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - + COUNT( * ) + + 66 * - - 86
----
5675

skipif mysql # not compatible
query I rowsort label-213
SELECT - + COUNT ( * ) + + 66 * - - 86
----
5675

query I rowsort
SELECT ALL - 36 * + 8 + + 66 AS col0
----
-222

query I rowsort
SELECT DISTINCT + CASE 73 WHEN + 2 * + 33 + + + 37 THEN + 13 - + + NULLIF ( - - 79, - - 37 ) * + + 53 WHEN 99 THEN NULL WHEN - 43 * + 17 THEN NULL END * 43
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - 3 + - 86
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT DISTINCT 9 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT 9 / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL CASE + 51 WHEN 92 THEN + COUNT( * ) ELSE - 0 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL CASE + 51 WHEN 92 THEN + COUNT ( * ) ELSE - 0 END AS col0
----
0

query I rowsort
SELECT DISTINCT 27 * + 93
----
2511

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL - 72 * + - COALESCE ( - + NULLIF ( 34, 26 * COALESCE ( + + COUNT( * ), 95 ) ), 76 ) * + 26 + + - 93 * 45
----
-67833

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - 72 * + - COALESCE ( - + NULLIF ( 34, 26 * COALESCE ( + + COUNT ( * ), 95 ) ), 76 ) * + 26 + + - 93 * 45
----
-67833

query I rowsort
SELECT DISTINCT + 17 * 0
----
0

query I rowsort
SELECT + ( - 59 ) * - 75 + - NULLIF ( + 88, + 57 ) AS col1
----
4337

query I rowsort
SELECT - 32 + 63
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - 8 + - COUNT( * ) * 67
----
-75

skipif mysql # not compatible
query I rowsort label-229
SELECT - 8 + - COUNT ( * ) * 67
----
-75

query II rowsort
SELECT - 46 AS col2, ( 67 )
----
-46
67

query I rowsort
SELECT 91 * - + 77 AS col1
----
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT 9 * + 95 * + 17 / ( - + 13 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT 9 * + 95 * + 17 / ( - + 13 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT ALL + ( + 73 ) + + CAST( - ( + - 2 ) AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + ( + 73 ) + + CAST ( - ( + - 2 ) AS INTEGER ) AS col1
----
75

query I rowsort
SELECT DISTINCT 43 * + 17
----
731

query I rowsort
SELECT ALL - 82 + - + 96
----
-178

query I rowsort
SELECT ALL 78 * + 58 * + 26
----
117624

query I rowsort
SELECT ALL ( - 80 ) + + - 45 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL + COUNT( * ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + COUNT ( * ) + + 2
----
3

query I rowsort
SELECT DISTINCT - 55 * 59 col0
----
-3245

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT 36 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-240
SELECT 36 / - 82 AS col0
----
0

query I rowsort
SELECT 7 - + 31
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL - COUNT( * ) * - 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - COUNT ( * ) * - 20 AS col1
----
20

query I rowsort
SELECT ALL ( + 72 ) + 39 AS col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT 26 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT 26 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 * - 66
----
-4026

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-247
SELECT DISTINCT 29 DIV + ( + COALESCE ( + NULLIF ( COUNT( * ), 20 ), ( - 84 ) DIV 15 ) )
----
29

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT 29 / + ( + COALESCE ( + NULLIF ( COUNT ( * ), 20 ), ( - 84 ) / 15 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT + CAST( + 51 AS SIGNED ) - + ( 78 )
----
-27

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) - + ( 78 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT ALL 64 DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL 64 / + 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT SUM( 49 ) + 6 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-250
SELECT SUM ( 49 ) + 6 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT CASE + 79 WHEN + 88 THEN + NULLIF ( 1, + COUNT( ALL + 73 ) * 64 - - 24 / 49 ) END / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT CASE + 79 WHEN + 88 THEN + NULLIF ( 1, + COUNT ( ALL + 73 ) * 64 - - 24 / 49 ) END / 12
----
NULL

query I rowsort
SELECT + 18 * 33 + + COALESCE ( + 13 + 64 * 83, + 97 )
----
5919

query I rowsort
SELECT 86 * - 14
----
-1204

query I rowsort
SELECT 92 + 41 AS col2
----
133

query I rowsort
SELECT ALL 22 * 89
----
1958

query I rowsort
SELECT 76 * - 94 AS col1
----
-7144

query I rowsort
SELECT ALL 68 * 37 AS col0
----
2516

query I rowsort
SELECT ALL 86 * ( 42 )
----
3612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-259
SELECT 66 DIV SUM( DISTINCT 65 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT 66 / SUM ( DISTINCT 65 ) col0
----
1

query I rowsort
SELECT 1 * 74
----
74

query I rowsort
SELECT 72 - + 37
----
35

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

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

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

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

query I rowsort
SELECT 27 * 8
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT ALL - 41 + - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - 41 + - COUNT ( * )
----
-42

query I rowsort
SELECT ALL 78 + + 59 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + 40 * 26 )
----
1040

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + 40 * 26 )
----
1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-268
SELECT DISTINCT - 68 * - MAX( DISTINCT 28 DIV - 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - 68 * - MAX ( DISTINCT 28 / - 96 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 13 + 74
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL - MIN( ALL 43 ) + 93 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - MIN ( ALL 43 ) + 93 AS col0
----
50

query I rowsort
SELECT 26 * 81 AS col2
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL - SUM( ALL 65 ) + + 63 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - SUM ( ALL 65 ) + + 63 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 23 * 24 col0
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ( + ( NULLIF ( COUNT( * ), 50 / + 14 + + 31 ) ) ) + + 68 * 19 col0
----
1293

skipif mysql # not compatible
query I rowsort label-274
SELECT ( + ( NULLIF ( COUNT ( * ), 50 / + 14 + + 31 ) ) ) + + 68 * 19 col0
----
1293

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - 97 DIV + 62 + COALESCE ( 33, + 12, 90, 95 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-275
SELECT - 97 / + 62 + COALESCE ( 33, + 12, 90, 95 ) AS col0
----
32

query I rowsort
SELECT 16 + 16 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-277
SELECT CAST( 7 AS SIGNED ) DIV 2 - - 18 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-277
SELECT CAST ( 7 AS INTEGER ) / 2 - - 18 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL - - ( - NULLIF ( + 72, - 43 / + CAST( NULL AS SIGNED ) ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - - ( - NULLIF ( + 72, - 43 / + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-72

query I rowsort
SELECT ALL - ( ( - 96 ) ) col1
----
96

query I rowsort
SELECT + 53 * 54
----
2862

query I rowsort
SELECT ALL - + 58 * 82
----
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT - - COUNT( * ) - - 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT - - COUNT ( * ) - - 22 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL - - SUM( - 72 ) - + 97 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - - SUM ( - 72 ) - + 97 AS col2
----
-169

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

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

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

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

query I rowsort
SELECT ALL - - 66 * - 32
----
-2112

query I rowsort
SELECT 67 * - 28 + 36 AS col2
----
-1840

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT 83 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-288
SELECT 83 / 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT MIN( DISTINCT 97 ) * ( 1 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-289
SELECT MIN ( DISTINCT 97 ) * ( 1 ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT 14 * ( 36 + + 41 DIV + 69 ) AS col1
----
504

skipif mysql # not compatible
query I rowsort label-290
SELECT 14 * ( 36 + + 41 / + 69 ) AS col1
----
504

query I rowsort
SELECT - 29 + 38 col2
----
9

query I rowsort
SELECT DISTINCT + 71 * NULLIF ( NULLIF ( 41, - 44 ) + 78, ( 59 ) * 42 ) AS col2
----
8449

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT - - COALESCE ( 21, 81 DIV - CAST( - 91 AS SIGNED ), 25 DIV NULLIF ( 66, ( 48 ) ), - 35 + - 39 )
----
21

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - - COALESCE ( 21, 81 / - CAST ( - 91 AS INTEGER ), 25 / NULLIF ( 66, ( 48 ) ), - 35 + - 39 )
----
21

query I rowsort
SELECT DISTINCT + + 24 * 23
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT CASE 94 WHEN - ( 16 ) THEN 70 + - 80 END / + NULLIF ( COUNT( * ) + 77, - 81 * + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT CASE 94 WHEN - ( 16 ) THEN 70 + - 80 END / + NULLIF ( COUNT ( * ) + 77, - 81 * + 27 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-296
SELECT ALL - 32 + MAX( - 78 ) DIV 55 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - 32 + MAX ( - 78 ) / 55 AS col2
----
-33

query I rowsort
SELECT 93 - - ( 78 )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT NULLIF ( 41, 65 ) + ( ( 36 ) ) * - ( - COUNT( * ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT NULLIF ( 41, 65 ) + ( ( 36 ) ) * - ( - COUNT ( * ) ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL COUNT( * ) + + CASE 52 WHEN + 38 THEN NULL WHEN COALESCE ( - CAST( NULL AS SIGNED ), 61, + 15 * COUNT( * ) ) + 91 THEN - 71 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL COUNT ( * ) + + CASE 52 WHEN + 38 THEN NULL WHEN COALESCE ( - CAST ( NULL AS INTEGER ), 61, + 15 * COUNT ( * ) ) + 91 THEN - 71 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT MIN( - 64 ) + ( 27 ) DIV - 50
----
-64

skipif mysql # not compatible
query I rowsort label-300
SELECT MIN ( - 64 ) + ( 27 ) / - 50
----
-64

query I rowsort
SELECT ALL 15 + + + 26 AS col2
----
41

query I rowsort
SELECT DISTINCT 32 * + + 50
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT + CAST( + COUNT( * ) AS SIGNED ) + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-303
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + 31 AS col0
----
32

query I rowsort
SELECT + 2 - - 56
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL NULLIF ( + - NULLIF ( COUNT( ALL 19 ), 82 * - 88 ), COUNT( * ) * ( + 28 * - 55 ) ) + 13 * + ( 70 )
----
909

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL NULLIF ( + - NULLIF ( COUNT ( ALL 19 ), 82 * - 88 ), COUNT ( * ) * ( + 28 * - 55 ) ) + 13 * + ( 70 )
----
909

query I rowsort
SELECT ALL 67 * - 70
----
-4690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CAST( - - 44 AS SIGNED ) + + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( - - 44 AS INTEGER ) + + COUNT ( * ) AS col0
----
45

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

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL COUNT ( * ) * + 14 / ( 90 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT + 43 + 68 DIV 42 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-309
SELECT + 43 + 68 / 42 AS col1
----
44

query I rowsort
SELECT + 19 + + 68
----
87

query I rowsort
SELECT ALL 25 - - 68
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT + 7 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-312
SELECT + 7 / - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 42 * + + 0 + NULLIF ( + COUNT( * ), 22 + - 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-313
SELECT + 42 * + + 0 + NULLIF ( + COUNT ( * ), 22 + - 33 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT ALL ( 61 ) DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL ( 61 ) / 48
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT + 24 * + CAST( - AVG ( DISTINCT + 37 ) AS SIGNED ) AS col1
----
-888

skipif mysql # not compatible
query I rowsort label-315
SELECT + 24 * + CAST ( - AVG ( DISTINCT + 37 ) AS INTEGER ) AS col1
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT CASE + AVG ( ALL - 55 ) WHEN + 18 THEN - 45 * ( 86 ) END * - COUNT( 43 + 11 * 75 ) + MAX( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT CASE + AVG ( ALL - 55 ) WHEN + 18 THEN - 45 * ( 86 ) END * - COUNT ( 43 + 11 * 75 ) + MAX ( + 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL + - 86 * 66 - + 68 * ( + 14 ) - COUNT( * ) * 41 AS col0
----
-6669

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + - 86 * 66 - + 68 * ( + 14 ) - COUNT ( * ) * 41 AS col0
----
-6669

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT + SUM( + + 47 ) * - 40 AS col2
----
-1880

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + SUM ( + + 47 ) * - 40 AS col2
----
-1880

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

query I rowsort
SELECT DISTINCT - 59 * 56 - 21
----
-3325

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

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

query I rowsort
SELECT DISTINCT + 10 * + + 93
----
930

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

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

query I rowsort
SELECT - 73 * - + 87 + - 5 AS col2
----
6346

query I rowsort
SELECT ALL + 77 * ( 98 ) AS col0
----
7546

query I rowsort
SELECT ALL - - 63 * ( - 68 ) * - 11 + - 61
----
47063

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + COUNT( * ) - 20
----
-19

skipif mysql # not compatible
query I rowsort label-327
SELECT + COUNT ( * ) - 20
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-328
SELECT - 86 * 93 * COUNT( * ) + + CAST( + 56 + + 96 DIV NULLIF ( 87 + - 34, 77 - AVG ( DISTINCT 57 + + 73 ) * 14 ) AS SIGNED ) DIV - 28
----
-8000

skipif mysql # not compatible
query I rowsort label-328
SELECT - 86 * 93 * COUNT ( * ) + + CAST ( + 56 + + 96 / NULLIF ( 87 + - 34, 77 - AVG ( DISTINCT 57 + + 73 ) * 14 ) AS INTEGER ) / - 28
----
-8000

query I rowsort
SELECT + - 97 + + 7
----
-90

query I rowsort
SELECT - + 16 + + 70
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL 51 * 7 + + MIN( + 14 ) * - 33
----
-105

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL 51 * 7 + + MIN ( + 14 ) * - 33
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT 34 * + COUNT( * ) * COUNT( * ) + - 58 * ( + 22 * 26 )
----
-33142

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT 34 * + COUNT ( * ) * COUNT ( * ) + - 58 * ( + 22 * 26 )
----
-33142

query I rowsort
SELECT ALL + + 50 col0
----
50

query I rowsort
SELECT DISTINCT 9 * + 14 + 25
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT + CASE COUNT( - 4 ) WHEN 43 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT + CASE COUNT ( - 4 ) WHEN 43 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 51 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-338
SELECT ALL 40 * + - COUNT( * ) + + - COUNT( * ) + - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - NULLIF ( ( - 85 ), ( 17 ) ) ) * + NULLIF ( - 73, 74 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL 40 * + - COUNT ( * ) + + - COUNT ( * ) + - CAST ( NULL AS REAL ) * MAX ( DISTINCT - NULLIF ( ( - 85 ), ( 17 ) ) ) * + NULLIF ( - 73, 74 ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL ( + ( COUNT ( * ) ) ) * - 19 + + ( 85 )
----
66

query I rowsort
SELECT - 71 * - 89 * + - 5 + 92
----
-31503

query I rowsort
SELECT DISTINCT + 40 * + 40
----
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT + 3 + + CAST( + + 87 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-342
SELECT + 3 + + CAST ( + + 87 AS INTEGER ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL + COUNT( ALL + 64 ) * + COUNT( * ) * COUNT( * ) - - 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + COUNT ( ALL + 64 ) * + COUNT ( * ) * COUNT ( * ) - - 25 AS col1
----
26

query I rowsort
SELECT - 91 * - 13 * + - 82
----
-97006

query I rowsort
SELECT - 67 * + 22
----
-1474

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-346
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-346
SELECT DISTINCT CAST ( NULL AS REAL ) col0, 80
----
NULL
80

query I rowsort
SELECT - 55 - + - 85 * ( - 48 )
----
-4135

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT DISTINCT - COALESCE ( + 18, - 14 ) DIV + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - COALESCE ( + 18, - 14 ) / + 19 AS col2
----
0

query I rowsort
SELECT + 37 * + + 86 AS col2
----
3182

query I rowsort
SELECT - 7 - - 47 - 48 AS col2
----
-8

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

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

query II rowsort
SELECT 86 col1, - 73 + 40
----
86
-33

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

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

query I rowsort
SELECT - NULLIF ( - 66, + - 85 )
----
66

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

query I rowsort
SELECT DISTINCT - 81 * + + 56 col0
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-357
SELECT - CASE - - 62 WHEN - + 95 THEN NULL WHEN - 89 * SUM( ALL - CAST( NULL AS SIGNED ) ) THEN + 48 * + 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT - CASE - - 62 WHEN - + 95 THEN NULL WHEN - 89 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 48 * + 23 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-359
SELECT + - NULLIF ( 18, + - 93 ) DIV COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-359
SELECT + - NULLIF ( 18, + - 93 ) / COUNT ( * )
----
-18

query I rowsort
SELECT + 40 * + - 83 + - - 89 * 89 AS col1
----
4601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT ALL + 54 DIV + 4 + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + 54 / + 4 + COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT ALL - - 63 DIV - + 71 + MAX( ALL 10 ) * - ( + ( - 95 ) + MIN( + 37 + - 72 ) )
----
1300

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL - - 63 / - + 71 + MAX ( ALL 10 ) * - ( + ( - 95 ) + MIN ( + 37 + - 72 ) )
----
1300

query I rowsort
SELECT + 64 + + - 67 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT 69 DIV + + 59 + + 33 + + CAST( COUNT( * ) + 95 AS SIGNED ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT 69 / + + 59 + + 33 + + CAST ( COUNT ( * ) + 95 AS INTEGER ) AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT DISTINCT 6 DIV - - MAX( - 15 ) + 81 * 59 AS col2
----
4779

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT 6 / - - MAX ( - 15 ) + 81 * 59 AS col2
----
4779

query I rowsort
SELECT ALL + 53 * 13 * + 45 + + 4
----
31009

query I rowsort
SELECT + + 24 + + 86 + + - 17 * + 66 AS col2
----
-1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT + 31 * - - COUNT( ALL - + ( 92 ) ) DIV 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-368
SELECT + 31 * - - COUNT ( ALL - + ( 92 ) ) / 32 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-369
SELECT 81 * - - ( NULLIF ( + CAST( - 49 AS SIGNED ), 49 ) ) + COUNT( * )
----
-3968

skipif mysql # not compatible
query I rowsort label-369
SELECT 81 * - - ( NULLIF ( + CAST ( - 49 AS INTEGER ), 49 ) ) + COUNT ( * )
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ( - + 9 ) * NULLIF ( - 32, 54 + + COUNT( * ) ) AS col2
----
288

skipif mysql # not compatible
query I rowsort label-370
SELECT ( - + 9 ) * NULLIF ( - 32, 54 + + COUNT ( * ) ) AS col2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT 27 * 58 * + 5 * - COUNT( * ) AS col2
----
-7830

skipif mysql # not compatible
query I rowsort label-371
SELECT 27 * 58 * + 5 * - COUNT ( * ) AS col2
----
-7830

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT ALL - ( - CAST( + COUNT( * ) AS SIGNED ) ) + - 49 col2
----
-48

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - 49 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT 7 - + - 16 * COUNT( * ) * + 54 * - COUNT( * ) + ( 19 ) col0
----
-838

skipif mysql # not compatible
query I rowsort label-374
SELECT 7 - + - 16 * COUNT ( * ) * + 54 * - COUNT ( * ) + ( 19 ) col0
----
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT 17 + - 21 * + COUNT( * ) * + 76 * - 30 AS col0
----
47897

skipif mysql # not compatible
query I rowsort label-375
SELECT 17 + - 21 * + COUNT ( * ) * + 76 * - 30 AS col0
----
47897

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

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

query I rowsort
SELECT 19 * ( - 14 ) + - 5 + 21 AS col0
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL - SUM( ALL - + 72 ) - 57
----
15

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - SUM ( ALL - + 72 ) - 57
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT MIN( 16 ) + - + 52 / - - COALESCE ( CAST( NULL AS SIGNED ), + 24, 18 + - SUM( + 49 ) ) * ( CAST( NULL AS SIGNED ) * - 25 + 67 ) + 7 * - CAST( - 6 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT MIN ( 16 ) + - + 52 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 24, 18 + - SUM ( + 49 ) ) * ( CAST ( NULL AS INTEGER ) * - 25 + 67 ) + 7 * - CAST ( - 6 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 19 * - COALESCE ( 55, + 94 )
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) - - 77 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) - - 77 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT DISTINCT - COUNT( * ) * 76 * - 9
----
684

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - COUNT ( * ) * 76 * - 9
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 16 + + 67 + - 24 + 35 * + SUM( - 89 + + 13 ) AS col2
----
-2601

skipif mysql # not compatible
query I rowsort label-383
SELECT 16 + + 67 + - 24 + 35 * + SUM ( - 89 + + 13 ) AS col2
----
-2601

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT 26 + + - COUNT( * ) - + 21 * - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-385
SELECT 26 + + - COUNT ( * ) - + 21 * - COUNT ( * )
----
46

query I rowsort
SELECT ALL - NULLIF ( - + 51, - 2 ) * - + 6 * - 95 + + ( 90 ) AS col2
----
29160

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT + SUM( DISTINCT 87 ) - 63 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + SUM ( DISTINCT 87 ) - 63 AS col2
----
24

query I rowsort
SELECT DISTINCT - 1 * - + 83 AS col1
----
83

query II rowsort
SELECT 51 + + 78 AS col2, 56 * - 84 AS col2
----
129
-4704

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-390
SELECT ALL + 21 DIV + 92 * - + ( + CAST( 36 AS SIGNED ) ) * + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + 21 / + 92 * - + ( + CAST ( 36 AS INTEGER ) ) * + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT ALL MAX( DISTINCT 29 ) AS col0, + CASE + 0 WHEN + AVG ( 89 ) THEN - 57 * 7 + + 23 ELSE NULL END * + 11 AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL MAX ( DISTINCT 29 ) AS col0, + CASE + 0 WHEN + AVG ( 89 ) THEN - 57 * 7 + + 23 ELSE NULL END * + 11 AS col1
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT - 32 + + - COUNT( * ) * + 21 + 37 + - COUNT( * ) * + 57
----
-73

skipif mysql # not compatible
query I rowsort label-392
SELECT - 32 + + - COUNT ( * ) * + 21 + 37 + - COUNT ( * ) * + 57
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT MAX( DISTINCT 60 )
----
60

skipif mysql # not compatible
query I rowsort label-393
SELECT MAX ( DISTINCT 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT MIN( + ( + 33 ) ) * - 63 AS col1
----
-2079

skipif mysql # not compatible
query I rowsort label-394
SELECT MIN ( + ( + 33 ) ) * - 63 AS col1
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT DISTINCT - MAX( 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT - MAX ( 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT SUM( DISTINCT - 74 ) + - 42
----
-116

skipif mysql # not compatible
query I rowsort label-396
SELECT SUM ( DISTINCT - 74 ) + - 42
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT 76 * 22 + + MAX( DISTINCT 31 )
----
1703

skipif mysql # not compatible
query I rowsort label-397
SELECT 76 * 22 + + MAX ( DISTINCT 31 )
----
1703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-398
SELECT + CAST( AVG ( + - 1 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-398
SELECT + CAST ( AVG ( + - 1 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-399
SELECT ALL - - 92 + + - 86 + - ( + COUNT( * ) ) / + 60 * ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - - 92 + + - 86 + - ( + COUNT ( * ) ) / + 60 * ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 65 + - 86 + + - 20 * 27 * - CASE + ( + 36 ) WHEN - 16 + 8 THEN NULL ELSE + 64 END
----
34539

query I rowsort
SELECT DISTINCT - - 17 + 15 * 7 col2
----
122

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

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

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

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

query II rowsort
SELECT ALL + 75 + + - 14 AS col2, 23 + 34 + + 92 * 82 AS col0
----
61
7601

query I rowsort
SELECT ALL - 1 + + - 1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT + CAST( + + 62 AS SIGNED ) * ( - 72 ) col0
----
-4464

skipif mysql # not compatible
query I rowsort label-406
SELECT + CAST ( + + 62 AS INTEGER ) * ( - 72 ) col0
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL - COUNT( DISTINCT - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - COUNT ( DISTINCT - 98 )
----
-1

query I rowsort
SELECT ALL 44 - - 69
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT ALL 56 DIV 15
----
3

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL 56 / 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT 17 + + + 47 + - COUNT( * ) * - 9 * + + COUNT( * ) * - 92 AS col2
----
-764

skipif mysql # not compatible
query I rowsort label-410
SELECT 17 + + + 47 + - COUNT ( * ) * - 9 * + + COUNT ( * ) * - 92 AS col2
----
-764

query I rowsort
SELECT ALL 8 - + 4 * + + 51 + 3
----
-193

query I rowsort
SELECT 1 * 83
----
83

query I rowsort
SELECT 36 * 87 * + 79 AS col2
----
247428

query I rowsort
SELECT DISTINCT ( - 64 ) * - 76 * - 32 * 67 * - 2
----
20856832

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL CAST( NULL AS SIGNED ) * + COALESCE ( - + CAST( NULL AS SIGNED ), 76 + - + 94 + + 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL CAST ( NULL AS INTEGER ) * + COALESCE ( - + CAST ( NULL AS INTEGER ), 76 + - + 94 + + 3 ) AS col0
----
NULL

query I rowsort
SELECT + 25 * ( + + ( + 41 ) ) + - 37 * 87 AS col1
----
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT - MAX( ALL - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-418
SELECT - MAX ( ALL - 27 ) AS col2
----
27

query I rowsort
SELECT DISTINCT 48 * + 98
----
4704

query II rowsort
SELECT DISTINCT 9 AS col2, 79 AS col1
----
9
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-421
SELECT ALL - 61 * + - 50 * - - CASE + MIN( + 44 ) WHEN - CASE 80 WHEN ( CAST( COALESCE ( SUM( 93 ), 82 * 6 + 64 ) AS DECIMAL ) ) * + 43 THEN - ( 12 ) ELSE - COUNT( * ) / - 58 + + 25 END THEN NULL WHEN 41 - + 76 * + 40 THEN - 75 * 63 + - 12 END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 61 * + - 50 * - - CASE + MIN ( + 44 ) WHEN - CASE 80 WHEN ( CAST ( COALESCE ( SUM ( 93 ), 82 * 6 + 64 ) AS REAL ) ) * + 43 THEN - ( 12 ) ELSE - COUNT ( * ) / - 58 + + 25 END THEN NULL WHEN 41 - + 76 * + 40 THEN - 75 * 63 + - 12 END * 21 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-423
SELECT ALL 18 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-423
SELECT ALL 18 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
18
NULL

query I rowsort
SELECT 32 - + - 43
----
75

query I rowsort
SELECT - COALESCE ( - 57, + - 34, - 65 * + 9 + - 88 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-426
SELECT + 44 DIV + 34 + - + SUM( - 44 )
----
45

skipif mysql # not compatible
query I rowsort label-426
SELECT + 44 / + 34 + - + SUM ( - 44 )
----
45

query I rowsort
SELECT ALL - + 57 + - 52 AS col2
----
-109

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

skipif mysql # not compatible
query I rowsort label-428
SELECT 14 + SUM ( - CAST ( + 86 AS INTEGER ) ) AS col2
----
-72

query I rowsort
SELECT ALL + 56 + + 95
----
151

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

query I rowsort
SELECT ALL + - 44 + 66 AS col0
----
22

query I rowsort
SELECT + 19 - + 59 + + 85 * + - 53
----
-4545

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT - - COUNT( * ) + + + 17 + + 70 * 23 * 19
----
30608

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT - - COUNT ( * ) + + + 17 + + 70 * 23 * 19
----
30608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-434
SELECT ( + 7 ) DIV + 97 - + 50 DIV - 82 DIV COUNT( * ) + + 98
----
98

skipif mysql # not compatible
query I rowsort label-434
SELECT ( + 7 ) / + 97 - + 50 / - 82 / COUNT ( * ) + + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT 10 * + + ( 45 ) + COUNT( * ) * - 82 + - 30 * - 11 AS col1
----
698

skipif mysql # not compatible
query I rowsort label-435
SELECT 10 * + + ( 45 ) + COUNT ( * ) * - 82 + - 30 * - 11 AS col1
----
698

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL - 16 * + 99 + - NULLIF ( - 52, + 94 + 27 / NULLIF ( + 23, - 8 ) ) * - COUNT( ALL - 92 ) AS col1
----
-1636

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - 16 * + 99 + - NULLIF ( - 52, + 94 + 27 / NULLIF ( + 23, - 8 ) ) * - COUNT ( ALL - 92 ) AS col1
----
-1636

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + 86 * + COUNT( * ) * - + 50 + + - 57 + + COUNT( * )
----
-4356

skipif mysql # not compatible
query I rowsort label-437
SELECT + 86 * + COUNT ( * ) * - + 50 + + - 57 + + COUNT ( * )
----
-4356

query I rowsort
SELECT + + CASE - 54 WHEN 15 THEN 21 END
----
NULL

query I rowsort
SELECT - ( 62 ) + + COALESCE ( + 42, - - COALESCE ( + 9, 58 + 88 ) - - 32 * 45 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-440
SELECT ALL + 55 / - + 15 - + + 93 - - - CAST( NULL AS SIGNED ) + + + 17 * + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 55 / - + 15 - + + 93 - - - CAST ( NULL AS INTEGER ) + + + 17 * + 47 AS col2
----
NULL

query I rowsort
SELECT - 13 + - 23 * - 88 col0
----
2011

query II rowsort
SELECT DISTINCT + 11 AS col2, 81 AS col1
----
11
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT + 93 * + 10 + 40 DIV + - 50 * 62 + COUNT( * ) AS col1
----
931

skipif mysql # not compatible
query I rowsort label-443
SELECT + 93 * + 10 + 40 / + - 50 * 62 + COUNT ( * ) AS col1
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL - COUNT( DISTINCT - - 72 ) * + 12 - - MIN( + 26 ) * + 4 * - 92
----
-9580

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - COUNT ( DISTINCT - - 72 ) * + 12 - - MIN ( + 26 ) * + 4 * - 92
----
-9580

query I rowsort
SELECT DISTINCT 3 * 93 AS col2
----
279

query I rowsort
SELECT + 26 + - ( 86 ) + - 54 * 7 * + COALESCE ( + 83, 36 ) * 81
----
-2541354

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT MAX( + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-447
SELECT MAX ( + - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL - COUNT( * ) * 27 * + + ( - + 57 ) * - 4 + COUNT( * ) * + 53
----
-6103

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - COUNT ( * ) * 27 * + + ( - + 57 ) * - 4 + COUNT ( * ) * + 53
----
-6103

query I rowsort
SELECT DISTINCT 67 * + 29 * - - 68
----
132124

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - 33 * + 80 + + - COUNT( * ) AS col2
----
-2641

skipif mysql # not compatible
query I rowsort label-450
SELECT - 33 * + 80 + + - COUNT ( * ) AS col2
----
-2641

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT - 91 DIV - 2
----
45

skipif mysql # not compatible
query I rowsort label-451
SELECT - 91 / - 2
----
45

query I rowsort
SELECT + 96 * ( - + 23 )
----
-2208

query I rowsort
SELECT 55 * + 13 + 0 AS col1
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + COALESCE ( - 44, + 33, 93 + - 93, - COUNT( * ) + + COUNT( DISTINCT 4 + - 18 ) * ( 18 * 49 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-454
SELECT + COALESCE ( - 44, + 33, 93 + - 93, - COUNT ( * ) + + COUNT ( DISTINCT 4 + - 18 ) * ( 18 * 49 ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT COUNT( + + NULLIF ( + - CAST( - 48 AS SIGNED ), + 98 * - 9 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-455
SELECT COUNT ( + + NULLIF ( + - CAST ( - 48 AS INTEGER ), + 98 * - 9 ) ) AS col0
----
1

query I rowsort
SELECT + 78 - + 40
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-457
SELECT ALL 4 AS col2, - 51 DIV - 74
----
4
0

skipif mysql # not compatible
query II rowsort label-457
SELECT ALL 4 AS col2, - 51 / - 74
----
4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT ALL 48 + - 37 - - COALESCE ( - + 68, + 0 * 37 * + 10 ) DIV - 14 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL 48 + - 37 - - COALESCE ( - + 68, + 0 * 37 * + 10 ) / - 14 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 54 + + MAX( - 39 ) + + - 52 * 8 AS col0
----
-401

skipif mysql # not compatible
query I rowsort label-459
SELECT + 54 + + MAX ( - 39 ) + + - 52 * 8 AS col0
----
-401

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT + 24 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-460
SELECT + 24 / 80 AS col0
----
0

query I rowsort
SELECT DISTINCT 54 * 64 * 61
----
210816

query I rowsort
SELECT - 24 - - 99
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT - 19 * - - 16 * + COUNT( * ) * + 77 AS col0
----
-23408

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - 19 * - - 16 * + COUNT ( * ) * + 77 AS col0
----
-23408

query I rowsort
SELECT ALL 98 + + 78 + - + 0 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + MIN( + 72 ) + 99 + + COUNT( * ) * + 12 * 16 AS col0
----
363

skipif mysql # not compatible
query I rowsort label-465
SELECT + MIN ( + 72 ) + 99 + + COUNT ( * ) * + 12 * 16 AS col0
----
363

query I rowsort
SELECT - + 49 - NULLIF ( - 21, 24 ) AS col1
----
-28

query I rowsort
SELECT + 81 + 86 + - + 63 * + 12 + 73 + 26
----
-490

query I rowsort
SELECT ALL - 69 + 92
----
23

query I rowsort
SELECT ALL + 0 + 90 AS col1
----
90

query II rowsort
SELECT + + 89 + - 64 AS col2, 94 col2
----
25
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - - 14 + - SUM( ALL 83 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-472
SELECT - - 14 + - SUM ( ALL 83 ) AS col0
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT - CAST( NULL AS SIGNED ) + - - COALESCE ( - 1, - 82 * - + 66 * + 64, - 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT - CAST ( NULL AS INTEGER ) + - - COALESCE ( - 1, - 82 * - + 66 * + 64, - 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL COUNT ( * ) + - 10
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT COALESCE ( - + 2, - - 52 * - CAST( + 53 AS SIGNED ), CASE - 60 WHEN 49 * 7 THEN NULL WHEN 33 THEN 44 ELSE NULL END ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT COALESCE ( - + 2, - - 52 * - CAST ( + 53 AS INTEGER ), CASE - 60 WHEN 49 * 7 THEN NULL WHEN 33 THEN 44 ELSE NULL END ) AS col0
----
-2

query II rowsort
SELECT + 83 * - 33, 31 + - 64 AS col1
----
-2739
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-478
SELECT - CASE - + SUM( + 78 ) WHEN COUNT( * ) THEN 62 WHEN - + 66 * 44 + CAST( NULL AS DECIMAL ) THEN NULL END * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT - CASE - + SUM ( + 78 ) WHEN COUNT ( * ) THEN 62 WHEN - + 66 * 44 + CAST ( NULL AS REAL ) THEN NULL END * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + - 12 * + + COUNT( * ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + - 12 * + + COUNT ( * ) col1
----
-12

query II rowsort
SELECT ALL + 34, + NULLIF ( + 11, 77 * - 9 - + 7 + - 74 * 22 * ( 73 ) + - 0 ) AS col2
----
34
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - 67 + 60 - - CASE 66 WHEN + + 33 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT - 67 + 60 - - CASE 66 WHEN + + 33 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-483
SELECT ALL + + 81 DIV + 53 - - - CASE + - 67 WHEN + CAST( + 64 AS DECIMAL ) * - CAST( 23 * + AVG ( ALL - 2 ) - ( 15 ) AS SIGNED ) THEN NULL ELSE - 97 END
----
98

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + + 81 / + 53 - - - CASE + - 67 WHEN + CAST ( + 64 AS REAL ) * - CAST ( 23 * + AVG ( ALL - 2 ) - ( 15 ) AS INTEGER ) THEN NULL ELSE - 97 END
----
98

query I rowsort
SELECT - + 87 * 52 col1
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT CASE MIN( + 90 ) WHEN + 38 / 96 - + 16 + + 7 THEN + COUNT( * ) * 60 WHEN + 3 THEN ( 30 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT CASE MIN ( + 90 ) WHEN + 38 / 96 - + 16 + + 7 THEN + COUNT ( * ) * 60 WHEN + 3 THEN ( 30 ) END AS col2
----
NULL

query II rowsort
SELECT ALL + 87 AS col2, - 97
----
87
-97

query II rowsort
SELECT ALL + ( + 43 ), - 4 AS col1
----
43
-4

query I rowsort
SELECT - 30 * 73 + + CASE - 48 WHEN - 34 THEN NULL ELSE 17 * + + 97 + + 76 END
----
-465

query I rowsort
SELECT - 15 * - + 0 * 65 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT - COUNT( * ) * - 4 * 21 - - CAST( NULL AS SIGNED ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT - COUNT ( * ) * - 4 * 21 - - CAST ( NULL AS INTEGER ) * 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-491
SELECT + COUNT( 71 ) DIV + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-491
SELECT + COUNT ( 71 ) / + 16 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT ALL + 60 DIV - - 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + 60 / - - 35 AS col0
----
1

query I rowsort
SELECT - 8 * - 83
----
664

query I rowsort
SELECT DISTINCT + 51 * + + 37 AS col2
----
1887

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-495
SELECT DISTINCT + 78 / CASE 36 WHEN + 4 * - CAST( - 89 AS DECIMAL ) + 64 THEN + 81 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT + 78 / CASE 36 WHEN + 4 * - CAST ( - 89 AS REAL ) + 64 THEN + 81 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT NULLIF ( + + CAST( + 18 AS SIGNED ), + 52 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-498
SELECT NULLIF ( + + CAST ( + 18 AS INTEGER ), + 52 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL COUNT( * ) * - 94 + - + MAX( DISTINCT - 25 )
----
-69

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL COUNT ( * ) * - 94 + - + MAX ( DISTINCT - 25 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT + COALESCE ( - 90, - CAST( + - COUNT( * ) AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-500
SELECT + COALESCE ( - 90, - CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT + COUNT( * ) * - - 13 DIV - - 45
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT + COUNT ( * ) * - - 13 / - - 45
----
0

query I rowsort
SELECT ALL 47 * + 75 * - 0 + - 71 AS col0
----
-71

query I rowsort
SELECT + 72 * - - 96 + 68 + - 58
----
6922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-504
SELECT CASE 88 WHEN - 46 * + + CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE + SUM( - - 45 ) END col0
----
45

skipif mysql # not compatible
query I rowsort label-504
SELECT CASE 88 WHEN - 46 * + + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE + SUM ( - - 45 ) END col0
----
45

query I rowsort
SELECT DISTINCT 22 * - 4 + - 30 AS col2
----
-118

query I rowsort
SELECT ALL 90 * - 8 * - 13 + + 90
----
9450

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

skipif mysql # not compatible
query I rowsort label-507
SELECT - + SUM ( - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT 14 * - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT 14 * - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT COUNT( * ) * + + 19 + 69
----
88

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT COUNT ( * ) * + + 19 + 69
----
88

query I rowsort
SELECT ALL NULLIF ( - 0, - + 84 ) * - 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT + 1 DIV 86 + - - 44
----
44

skipif mysql # not compatible
query I rowsort label-511
SELECT + 1 / 86 + - - 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL ( - COUNT( * ) ) + - COALESCE ( + 47, - ( 5 ) * + COUNT( * ) * 49 ) + + 87 * 14 AS col1
----
1170

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL ( - COUNT ( * ) ) + - COALESCE ( + 47, - ( 5 ) * + COUNT ( * ) * 49 ) + + 87 * 14 AS col1
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT MIN( DISTINCT 94 ) - + 29 * - - COALESCE ( + 74, + 25 DIV + - 2 * + 3 ) AS col2
----
-2052

skipif mysql # not compatible
query I rowsort label-513
SELECT MIN ( DISTINCT 94 ) - + 29 * - - COALESCE ( + 74, + 25 / + - 2 * + 3 ) AS col2
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT MIN( ALL - 19 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT MIN ( ALL - 19 ) col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT + 68 - - 89 DIV 37
----
70

skipif mysql # not compatible
query I rowsort label-515
SELECT + 68 - - 89 / 37
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT 43 DIV 98 * + - 51 * + 76 + 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-516
SELECT 43 / 98 * + - 51 * + 76 + 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT NULLIF ( - 23, 91 - + 58 - + 33 / COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-517
SELECT NULLIF ( - 23, 91 - + 58 - + 33 / COUNT ( * ) ) AS col1
----
-23

query I rowsort
SELECT ALL - 13 * 10 + + 32 * 94 AS col2
----
2878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT + ( + CAST( AVG ( + 56 ) AS SIGNED ) ) * COUNT( * ) * + NULLIF ( + ( COUNT( * ) ), + 78 * 34 ) * + 44 + - 37
----
2427

skipif mysql # not compatible
query I rowsort label-519
SELECT + ( + CAST ( AVG ( + 56 ) AS INTEGER ) ) * COUNT ( * ) * + NULLIF ( + ( COUNT ( * ) ), + 78 * 34 ) * + 44 + - 37
----
2427

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT 60 * + 35 * - + COUNT( + 76 ) col1
----
-2100

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT 60 * + 35 * - + COUNT ( + 76 ) col1
----
-2100

query II rowsort
SELECT ALL - 22 - 48 AS col2, + 98 * 7 * - - 50 AS col0
----
-70
34300

query I rowsort
SELECT 15 - - 27 + 24
----
66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT - - 35 * - - 70 + 43 - - - 57 * + 87 - 95 DIV + 33 + - 45 AS col0
----
-2513

skipif mysql # not compatible
query I rowsort label-524
SELECT - - 35 * - - 70 + 43 - - - 57 * + 87 - 95 / + 33 + - 45 AS col0
----
-2513

query I rowsort
SELECT 36 * + 64
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL - MAX( DISTINCT + 21 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - MAX ( DISTINCT + 21 ) col0
----
-21

query I rowsort
SELECT 55 - - 74 - 84
----
45

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

skipif mysql # not compatible
query I rowsort label-528
SELECT CAST ( NULL AS INTEGER ) * 65 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-529
SELECT ALL - 0 AS col2, 69 + + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-529
SELECT ALL - 0 AS col2, 69 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL - 92 + 45 AS col1
----
-47

query I rowsort
SELECT ALL + 29 + + 67 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT 51 * + 40 * - ( - MIN( 42 ) ) * - + COUNT( * )
----
-85680

skipif mysql # not compatible
query I rowsort label-532
SELECT 51 * + 40 * - ( - MIN ( 42 ) ) * - + COUNT ( * )
----
-85680

query I rowsort
SELECT 55 + 76
----
131

query I rowsort
SELECT DISTINCT - ( - 72 ) col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT ALL - 29 + - 90 DIV - 77 + + - 23 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL - 29 + - 90 / - 77 + + - 23 AS col1
----
-51

query II rowsort
SELECT 93 * - 70 + - 15 AS col2, 54
----
-6525
54

query I rowsort
SELECT DISTINCT + 57 + + 95 AS col2
----
152

query I rowsort
SELECT ALL - 2 * + - 8 AS col0
----
16

query I rowsort
SELECT 61 + - 48 * + 66 AS col2
----
-3107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL + 39 * - + COUNT( * ) * 64 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + 39 * - + COUNT ( * ) * 64 AS col0
----
-2496

query II rowsort
SELECT + 54, 10 AS col0
----
54
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL CAST( NULL AS SIGNED ) + - - COUNT( * ) - + + NULLIF ( + + 23, - - 13 / - 22 ) + - 74 * - - 41 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - + + NULLIF ( + + 23, - - 13 / - 22 ) + - 74 * - - 41 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT CAST( 43 AS SIGNED ) * - 7 + - 57 AS col0
----
-358

skipif mysql # not compatible
query I rowsort label-544
SELECT CAST ( 43 AS INTEGER ) * - 7 + - 57 AS col0
----
-358

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

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

query II rowsort
SELECT - 76 AS col1, - 25 + + 32
----
-76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT + COUNT( ALL 8 ) + + ( - ( + + 79 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-547
SELECT + COUNT ( ALL 8 ) + + ( - ( + + 79 ) )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT + 38 + - COUNT( * ) + + ( - 22 ) DIV + NULLIF ( - COUNT( + 57 ), - - 82 )
----
59

skipif mysql # not compatible
query I rowsort label-548
SELECT + 38 + - COUNT ( * ) + + ( - 22 ) / + NULLIF ( - COUNT ( + 57 ), - - 82 )
----
59

query I rowsort
SELECT DISTINCT + 75 * + 74
----
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT CASE 54 WHEN COUNT( * ) THEN NULL ELSE + 90 END + 14
----
104

skipif mysql # not compatible
query I rowsort label-550
SELECT CASE 54 WHEN COUNT ( * ) THEN NULL ELSE + 90 END + 14
----
104

query I rowsort
SELECT + 22 - 25
----
-3

query I rowsort
SELECT + 65 + - + 72
----
-7

query I rowsort
SELECT 58 + - - 16
----
74

query I rowsort
SELECT - 75 * 71
----
-5325

onlyif mysql # aggregate syntax: 
query II rowsort label-555
SELECT + 61 AS col2, + COUNT( * ) * - 50 AS col0
----
61
-50

skipif mysql # not compatible
query II rowsort label-555
SELECT + 61 AS col2, + COUNT ( * ) * - 50 AS col0
----
61
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT 7 * + SUM( 25 ) DIV 25 * - 10 + + 11 + + 64
----
5

skipif mysql # not compatible
query I rowsort label-556
SELECT 7 * + SUM ( 25 ) / 25 * - 10 + + 11 + + 64
----
5

query I rowsort
SELECT 37 + + + 51 AS col1
----
88

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

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

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

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

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

query I rowsort
SELECT - NULLIF ( + + 60, ( ( + 45 ) ) + - + 77 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT - COUNT( ALL - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT - COUNT ( ALL - 38 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-563
SELECT 78 AS col0, - CAST( + 53 AS SIGNED ) AS col2
----
78
-53

skipif mysql # not compatible
query II rowsort label-563
SELECT 78 AS col0, - CAST ( + 53 AS INTEGER ) AS col2
----
78
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + NULLIF ( + 93, - ( ( 73 ) ) ) DIV 19
----
4

skipif mysql # not compatible
query I rowsort label-564
SELECT + NULLIF ( + 93, - ( ( 73 ) ) ) / 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL 7 * + NULLIF ( + 82, MIN( DISTINCT + 22 ) ) * - + 19 + - - NULLIF ( COUNT( 93 ), + 16 + + COUNT( * ) * - 17 ) AS col1
----
-10905

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL 7 * + NULLIF ( + 82, MIN ( DISTINCT + 22 ) ) * - + 19 + - - NULLIF ( COUNT ( 93 ), + 16 + + COUNT ( * ) * - 17 ) AS col1
----
-10905

query I rowsort
SELECT ALL - 41 * - ( ( + 93 ) )
----
3813

query I rowsort
SELECT 20 * - + 41 col2
----
-820

query I rowsort
SELECT 55 + + - 34 + + - 91 * + 8
----
-707

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-569
SELECT ALL + 30 * + 64 DIV + COUNT( * ) + - + MAX( DISTINCT - 10 ) DIV + - MAX( ALL 90 ) + 16 + - - 91
----
2027

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + 30 * + 64 / + COUNT ( * ) + - + MAX ( DISTINCT - 10 ) / + - MAX ( ALL 90 ) + 16 + - - 91
----
2027

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN ( 26 ) ELSE + - MIN( 40 ) * - + 90 END * + COUNT( * ) * + COUNT( * ) + MAX( 7 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN ( 26 ) ELSE + - MIN ( 40 ) * - + 90 END * + COUNT ( * ) * + COUNT ( * ) + MAX ( 7 ) AS col1
----
33

query I rowsort
SELECT ALL 27 * + + 48 + 42
----
1338

onlyif mysql # aggregate syntax: 
query II rowsort label-572
SELECT MAX( - 73 ) AS col2, + 35 + + + 46 col2
----
-73
81

skipif mysql # not compatible
query II rowsort label-572
SELECT MAX ( - 73 ) AS col2, + 35 + + + 46 col2
----
-73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + COUNT( - 75 ) * - NULLIF ( 97, + COUNT( * ) ) + + 82 col0
----
-15

skipif mysql # not compatible
query I rowsort label-573
SELECT + COUNT ( - 75 ) * - NULLIF ( 97, + COUNT ( * ) ) + + 82 col0
----
-15

query I rowsort
SELECT 86 + - 76 col1
----
10

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

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

query I rowsort
SELECT 70 * 43
----
3010

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT 76 DIV + + ( 17 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-577
SELECT 76 / + + ( 17 ) AS col2
----
4

query I rowsort
SELECT DISTINCT 71 - + + 30 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT - CAST( - MIN( DISTINCT + + 22 ) AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-579
SELECT - CAST ( - MIN ( DISTINCT + + 22 ) AS INTEGER ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + - 32 * + NULLIF ( 14, - SUM( DISTINCT + NULLIF ( - 93, 64 + + - 9 * - - 91 ) ) + + 63 * COALESCE ( - COUNT( * ) - 33, + 3 * - 52 + 33 / + 3 ) ) AS col1
----
-448

skipif mysql # not compatible
query I rowsort label-580
SELECT + - 32 * + NULLIF ( 14, - SUM ( DISTINCT + NULLIF ( - 93, 64 + + - 9 * - - 91 ) ) + + 63 * COALESCE ( - COUNT ( * ) - 33, + 3 * - 52 + 33 / + 3 ) ) AS col1
----
-448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT + ( - 55 ) DIV 82 * + 33 + + 88 + MAX( 42 ) * + + 52 + - 38 AS col2
----
2234

skipif mysql # not compatible
query I rowsort label-581
SELECT + ( - 55 ) / 82 * + 33 + + 88 + MAX ( 42 ) * + + 52 + - 38 AS col2
----
2234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-582
SELECT + + CAST( - 25 AS SIGNED ) AS col2, 42 AS col0
----
-25
42

skipif mysql # not compatible
query II rowsort label-582
SELECT + + CAST ( - 25 AS INTEGER ) AS col2, 42 AS col0
----
-25
42

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT - 88 / + 78 * + - 57 * - + 97 * + CASE - - ( - - 42 ) WHEN COALESCE ( 27, + 7 ) THEN NULL WHEN + 5 + - 69 * + 98 THEN NULL WHEN - ( 9 ) + ( + 2 + 64 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - 88 / + 78 * + - 57 * - + 97 * + CASE - - ( - - 42 ) WHEN COALESCE ( 27, + 7 ) THEN NULL WHEN + 5 + - 69 * + 98 THEN NULL WHEN - ( 9 ) + ( + 2 + 64 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT - COUNT( * ) DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - COUNT ( * ) / - 71 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT - CASE 91 WHEN 70 THEN COUNT( * ) + - 46 WHEN - 31 * 51 + + COUNT( * ) * - CAST( + 58 AS SIGNED ) * + COUNT( * ) + + 59 THEN NULL END / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT - CASE 91 WHEN 70 THEN COUNT ( * ) + - 46 WHEN - 31 * 51 + + COUNT ( * ) * - CAST ( + 58 AS INTEGER ) * + COUNT ( * ) + + 59 THEN NULL END / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT + 47 * + - COUNT( * ) AS col1
----
-47

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

query I rowsort
SELECT - 52 - - 21
----
-31

query I rowsort
SELECT - 66 + + 4
----
-62

query III rowsort
SELECT DISTINCT 19 AS col0, + 84 + + CASE 2 WHEN + + 35 THEN - - 49 WHEN - 69 THEN NULL END * - 32, + 4 AS col1
----
19
NULL
4

query I rowsort
SELECT - 44 + - 48
----
-92

query I rowsort
SELECT DISTINCT + 19 + + + 0 + 12
----
31

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

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT 73 + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL 32 + - 6 * - 48
----
320

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

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

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

query II rowsort
SELECT + 14 + 47 * + + 51, + 36 AS col1
----
2411
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT - 53 * 57 + COUNT( ALL + 26 ) DIV + 53 + - 43 + - 85 + - 47 DIV - 6
----
-3142

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT - 53 * 57 + COUNT ( ALL + 26 ) / + 53 + - 43 + - 85 + - 47 / - 6
----
-3142

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + MAX( + 10 ) * 33 + + COUNT( * )
----
331

skipif mysql # not compatible
query I rowsort label-598
SELECT + MAX ( + 10 ) * 33 + + COUNT ( * )
----
331

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

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT ALL + 31 AS col1, SUM( - 41 )
----
31
-41

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL + 31 AS col1, SUM ( - 41 )
----
31
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT + 24 * + + MAX( - - 6 ) AS col2, + 47 + + - 6
----
144
41

skipif mysql # not compatible
query II rowsort label-601
SELECT + 24 * + + MAX ( - - 6 ) AS col2, + 47 + + - 6
----
144
41

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-603
SELECT ALL + - 37 AS col0, - 3 * + - 63 + + CAST( + CAST( 83 AS DECIMAL ) AS SIGNED ) AS col0
----
-37
272

skipif mysql # not compatible
query II rowsort label-603
SELECT ALL + - 37 AS col0, - 3 * + - 63 + + CAST ( + CAST ( 83 AS REAL ) AS INTEGER ) AS col0
----
-37
272

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

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

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

skipif mysql # not compatible
query I rowsort label-605
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 70 * + + 34 + + 1
----
-2379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-607
SELECT + 34 + 90 - - 21 + + COALESCE ( + - 13, - + CAST( NULL AS SIGNED ) DIV + - CAST( + 38 AS SIGNED ) + ( 91 ) + COUNT( * ) * - MAX( DISTINCT - 18 ) + ( 70 + 51 ) ) DIV 9 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-607
SELECT + 34 + 90 - - 21 + + COALESCE ( + - 13, - + CAST ( NULL AS INTEGER ) / + - CAST ( + 38 AS INTEGER ) + ( 91 ) + COUNT ( * ) * - MAX ( DISTINCT - 18 ) + ( 70 + 51 ) ) / 9 AS col2
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-608
SELECT ALL MAX( - 1 ) * 73 + - + CAST( NULL AS SIGNED ) + + - 17 col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-608
SELECT ALL MAX ( - 1 ) * 73 + - + CAST ( NULL AS INTEGER ) + + - 17 col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-609
SELECT + + COALESCE ( 20, - CASE 37 WHEN 80 THEN CASE 7 WHEN - 55 - 6 THEN 1 + - 37 * 75 WHEN + COUNT( * ) - - 22 DIV + 9 THEN - 45 DIV CAST( 56 AS SIGNED ) END ELSE NULL END, - 45 DIV ( COUNT( * ) ) - 18 ) + 71 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-609
SELECT + + COALESCE ( 20, - CASE 37 WHEN 80 THEN CASE 7 WHEN - 55 - 6 THEN 1 + - 37 * 75 WHEN + COUNT ( * ) - - 22 / + 9 THEN - 45 / CAST ( 56 AS INTEGER ) END ELSE NULL END, - 45 / ( COUNT ( * ) ) - 18 ) + 71 AS col0
----
91

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

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - + 78 * + + COUNT ( * ) + - - 52
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT + - 4 + - 29 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT + - 4 + - 29 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + COALESCE ( - + 53, - 84 ) + - 39 col1
----
-92

query I rowsort
SELECT ALL + 65 * 34 - - 2 AS col1
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + 59 * 61 + - 51 + + COUNT( * ) * + 79
----
3627

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + 59 * 61 + - 51 + + COUNT ( * ) * + 79
----
3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT - + NULLIF ( + 28, + 95 + 25 + + CASE + 46 WHEN - CAST( NULL AS SIGNED ) * + - 26 THEN + 85 WHEN - 94 THEN 41 END ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-615
SELECT - + NULLIF ( + 28, + 95 + 25 + + CASE + 46 WHEN - CAST ( NULL AS INTEGER ) * + - 26 THEN + 85 WHEN - 94 THEN 41 END ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - SUM( 27 ) + 0 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-616
SELECT - SUM ( 27 ) + 0 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT - 11 + + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-617
SELECT - 11 + + - COUNT ( * )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT - - 88 + 21 + - - 47 DIV 68 col2
----
109

skipif mysql # not compatible
query I rowsort label-618
SELECT - - 88 + 21 + - - 47 / 68 col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL + + CAST( + 72 AS SIGNED ) / - CASE 83 WHEN - - 97 THEN + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + + CAST ( + 72 AS INTEGER ) / - CASE 83 WHEN - - 97 THEN + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL + COUNT( * ) + 26 + - 9 col0
----
18

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + COUNT ( * ) + 26 + - 9 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL + 49 * COUNT( * ) + - 17
----
32

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 49 * COUNT ( * ) + - 17
----
32

query I rowsort
SELECT ALL + + 11 + 84
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-624
SELECT ALL CASE CASE - 42 WHEN 68 DIV 46 + - 35 THEN NULL WHEN 6 THEN - 42 ELSE + + 2 END WHEN 76 - 73 DIV ( COUNT( * ) ) THEN 66 ELSE + ( MIN( 15 ) ) END DIV + NULLIF ( + 66, 56 * 64 + - 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL CASE CASE - 42 WHEN 68 / 46 + - 35 THEN NULL WHEN 6 THEN - 42 ELSE + + 2 END WHEN 76 - 73 / ( COUNT ( * ) ) THEN 66 ELSE + ( MIN ( 15 ) ) END / + NULLIF ( + 66, 56 * 64 + - 30 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT ALL - 42 + COUNT( * ) AS col0, + ( 27 ) AS col0
----
-41
27

skipif mysql # not compatible
query II rowsort label-625
SELECT ALL - 42 + COUNT ( * ) AS col0, + ( 27 ) AS col0
----
-41
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - SUM( - + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-627
SELECT - SUM ( - + 3 ) AS col2
----
3

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

query II rowsort
SELECT 51 col0, - 64 * - 89
----
51
5696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT ALL - COALESCE ( + 28, 34 ) - - 13 + + 36 DIV - 69 + + COUNT( DISTINCT - ( + 75 ) ) DIV + ( - ( 32 ) ) * - 67
----
-15

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - COALESCE ( + 28, 34 ) - - 13 + + 36 / - 69 + + COUNT ( DISTINCT - ( + 75 ) ) / + ( - ( 32 ) ) * - 67
----
-15

query I rowsort
SELECT - 72 * + 60
----
-4320

query II rowsort
SELECT ALL + 6 col0, 1 * 19 * 40 + - - ( - 80 )
----
6
680

query I rowsort
SELECT ALL 19 * + - 27 * + 13
----
-6669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT - NULLIF ( ( - - ( - COUNT( * ) ) ), - - CASE 51 WHEN - 71 * 25 THEN + 48 ELSE NULL END - - + 90 ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-634
SELECT - NULLIF ( ( - - ( - COUNT ( * ) ) ), - - CASE 51 WHEN - 71 * 25 THEN + 48 ELSE NULL END - - + 90 ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 36 * - 24 * + 22 col2
----
-19008

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - NULLIF ( - 4, + + COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - NULLIF ( - 4, + + COUNT ( * ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT COALESCE ( 63, - 42 * + 97 + 88 ) * - + 99 AS col0, + COUNT( * ) col2
----
-6237
1

skipif mysql # not compatible
query II rowsort label-637
SELECT COALESCE ( 63, - 42 * + 97 + 88 ) * - + 99 AS col0, + COUNT ( * ) col2
----
-6237
1

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

skipif mysql # not compatible
query I rowsort label-638
SELECT 33 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT + + ( + 75 ) AS col0, - 64 + - COUNT( - 52 ) AS col2
----
75
-65

skipif mysql # not compatible
query II rowsort label-640
SELECT + + ( + 75 ) AS col0, - 64 + - COUNT ( - 52 ) AS col2
----
75
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-641
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * 72 * - - 49 * + - CASE WHEN 4 < ( NULL ) THEN 6 - + 65 * + 49 WHEN ( + 34 + + 18 ) IN ( - 24 ) THEN 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * 72 * - - 49 * + - CASE WHEN 4 < ( NULL ) THEN 6 - + 65 * + 49 WHEN ( + 34 + + 18 ) IN ( - 24 ) THEN 21 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT 66 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-642
SELECT 66 / 91
----
0

query I rowsort
SELECT ( - 87 ) * + - 38
----
3306

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT DISTINCT - 5 DIV + - ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT - 5 / + - ( - 32 )
----
0

query II rowsort
SELECT 92, 17 col1
----
92
17

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL 98 + - + 1 * + ( + ( - + COUNT( * ) ) ) - + 72
----
27

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL 98 + - + 1 * + ( + ( - + COUNT ( * ) ) ) - + 72
----
27

query I rowsort
SELECT ALL 38 + + ( 49 ) + 61 * + 1
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT + 2 AS col2, COUNT( * ) + + COUNT( - - 59 )
----
2
2

skipif mysql # not compatible
query II rowsort label-648
SELECT + 2 AS col2, COUNT ( * ) + + COUNT ( - - 59 )
----
2
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT ( + + CAST( + 75 AS SIGNED ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-650
SELECT ( + + CAST ( + 75 AS INTEGER ) ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-651
SELECT - - CAST( NULL AS SIGNED ) AS col1, + 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-651
SELECT - - CAST ( NULL AS INTEGER ) AS col1, + 55 AS col2
----
NULL
55

query I rowsort
SELECT NULLIF ( - 84, + 42 ) AS col2
----
-84

query I rowsort
SELECT ALL - 42 + - - 53 AS col2
----
11

query II rowsort
SELECT DISTINCT 64 AS col0, ( - 10 ) AS col1
----
64
-10

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

skipif mysql # not compatible
query I rowsort label-655
SELECT - SUM ( DISTINCT - 7 )
----
7

query I rowsort
SELECT ALL 1 + 15 + 97 * ( - + 54 ) * + + CASE - - 47 WHEN + - ( + 34 ) THEN + 30 WHEN + 49 * ( 1 ) THEN - 59 * + 41 + NULLIF ( + 50 + 63, 36 ) * 34 END * + 17 AS col0
----
NULL

query I rowsort
SELECT ALL - 93 * - + 7 AS col2
----
651

query I rowsort
SELECT ALL 20 + 26 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT COALESCE ( - COUNT( * ), 38 ) + - 98 col2
----
-99

skipif mysql # not compatible
query I rowsort label-659
SELECT COALESCE ( - COUNT ( * ), 38 ) + - 98 col2
----
-99

query I rowsort
SELECT 45 + - 45 + ( - - 11 ) * + + 99 * - 82 AS col2
----
-89298

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT ALL + 84 DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL + 84 / + 82
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-662
SELECT CAST( + 34 AS SIGNED ) + 61 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-662
SELECT CAST ( + 34 AS INTEGER ) + 61 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-663
SELECT 64 + - ( + COUNT( * ) ) + + COUNT( * ) DIV 82 * - - NULLIF ( 73, + + 10 * - NULLIF ( - 26, + 70 * 95 ) - + 35 ) + NULLIF ( + 43, CAST( + 77 AS SIGNED ) )
----
106

skipif mysql # not compatible
query I rowsort label-663
SELECT 64 + - ( + COUNT ( * ) ) + + COUNT ( * ) / 82 * - - NULLIF ( 73, + + 10 * - NULLIF ( - 26, + 70 * 95 ) - + 35 ) + NULLIF ( + 43, CAST ( + 77 AS INTEGER ) )
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT ALL 13 DIV + 11
----
1

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL 13 / + 11
----
1

query II rowsort
SELECT ALL + 12 * 18 col0, ( + 95 )
----
216
95

query I rowsort
SELECT 96 * 95 AS col2
----
9120

query II rowsort
SELECT DISTINCT + 94 * + 68 AS col2, 6
----
6392
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-668
SELECT 79 + - + CAST( + + 90 AS SIGNED ) + - + 17 + + 7 + + + 19
----
-2

skipif mysql # not compatible
query I rowsort label-668
SELECT 79 + - + CAST ( + + 90 AS INTEGER ) + - + 17 + + 7 + + + 19
----
-2

query I rowsort
SELECT 86 * - - 95 col0
----
8170

query I rowsort
SELECT DISTINCT + + 70 * + 41 + 10 AS col0
----
2880

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

query I rowsort
SELECT - 43 + 84
----
41

query I rowsort
SELECT ALL 82 + COALESCE ( + ( - 65 ), + 89 + - 8 ) AS col2
----
17

query I rowsort
SELECT ALL - 7 + + 56
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + - COUNT( - 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-675
SELECT + - COUNT ( - 86 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT + 66 DIV ( + 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT + 66 / ( + 70 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) + + - 1 - 8 - + COALESCE ( - 7, - - 16 ) DIV - 12 * 72
----
-10

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) + + - 1 - 8 - + COALESCE ( - 7, - - 16 ) / - 12 * 72
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + + CASE WHEN NOT - 84 < NULL THEN + 18 * - 93 * - ( + 98 ) WHEN NOT + 13 * - SUM( ALL + 5 ) IS NULL THEN NULL ELSE + 26 * 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT + + CASE WHEN NOT - 84 < NULL THEN + 18 * - 93 * - ( + 98 ) WHEN NOT + 13 * - SUM ( ALL + 5 ) IS NULL THEN NULL ELSE + 26 * 99 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-679
SELECT + CAST( NULL AS SIGNED ) + - + 4, + 10 * - 49 * + 38 + + 32 + - 82 + - 36 AS col1
----
NULL
-18706

skipif mysql # not compatible
query II rowsort label-679
SELECT + CAST ( NULL AS INTEGER ) + - + 4, + 10 * - 49 * + 38 + + 32 + - 82 + - 36 AS col1
----
NULL
-18706

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT ALL 71 + 46 + + COUNT( * ) + - - 47 DIV - 10
----
114

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL 71 + 46 + + COUNT ( * ) + - - 47 / - 10
----
114

query II rowsort
SELECT DISTINCT - 55 * 60 AS col0, 42 AS col0
----
-3300
42

query I rowsort
SELECT ALL 85 + 53 + - NULLIF ( 17, 12 ) * + ( 31 ) col0
----
-389

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-683
SELECT MIN( ALL - - 3 ) + + + 68, CASE + - 4 WHEN - COUNT( * ) * - COUNT( * ) THEN NULL WHEN ( ( 67 ) ) THEN CAST( - 16 AS DECIMAL ) ELSE NULL END AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-683
SELECT MIN ( ALL - - 3 ) + + + 68, CASE + - 4 WHEN - COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN ( ( 67 ) ) THEN CAST ( - 16 AS REAL ) ELSE NULL END AS col0
----
71
NULL

query I rowsort
SELECT - ( - 45 ) * 89 AS col1
----
4005

query II rowsort
SELECT 26 * 4 * + 54 AS col2, 83 - + 99 AS col2
----
5616
-16

query II rowsort
SELECT - 74, 9 * ( + + NULLIF ( + 96, - + 38 ) ) col2
----
-74
864

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT 8 * + - COALESCE ( - CASE ( + + COUNT( * ) ) WHEN 95 THEN - 39 ELSE + 29 END, - 80 ) * 14 AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT 8 * + - COALESCE ( - CASE ( + + COUNT ( * ) ) WHEN 95 THEN - 39 ELSE + 29 END, - 80 ) * 14 AS col2
----
3248

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-689
SELECT DISTINCT 32 col1, COUNT( * ) DIV + + 93 * - + 93
----
32
0

skipif mysql # not compatible
query II rowsort label-689
SELECT DISTINCT 32 col1, COUNT ( * ) / + + 93 * - + 93
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT SUM( DISTINCT + 47 ) * + 58
----
2726

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT SUM ( DISTINCT + 47 ) * + 58
----
2726

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT + ( - 94 ) DIV 99 DIV - 84 - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-691
SELECT + ( - 94 ) / 99 / - 84 - 56 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT + 83 / CASE 26 WHEN + CAST( - 42 AS SIGNED ) THEN + 58 WHEN 57 * 25 + + - 47 THEN NULL WHEN + COUNT( + 93 ) * - ( + - COUNT( * ) ) + COUNT( * ) * 24 THEN NULL END * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT + 83 / CASE 26 WHEN + CAST ( - 42 AS INTEGER ) THEN + 58 WHEN 57 * 25 + + - 47 THEN NULL WHEN + COUNT ( + 93 ) * - ( + - COUNT ( * ) ) + COUNT ( * ) * 24 THEN NULL END * 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT - COALESCE ( - ( - 24 ), - + 61, - + COUNT( * ) - - 86 ) + + 35
----
11

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT - COALESCE ( - ( - 24 ), - + 61, - + COUNT ( * ) - - 86 ) + + 35
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT ALL SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-695
SELECT ALL - SUM( + + 63 ) * + CAST( - ( 50 ) AS SIGNED ) + + COALESCE ( + 18, - + 1 * COALESCE ( + COUNT( * ), 79 ) DIV + - CAST( - 94 AS SIGNED ) DIV - CAST( NULL AS SIGNED ) - 38 )
----
3168

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL - SUM ( + + 63 ) * + CAST ( - ( 50 ) AS INTEGER ) + + COALESCE ( + 18, - + 1 * COALESCE ( + COUNT ( * ), 79 ) / + - CAST ( - 94 AS INTEGER ) / - CAST ( NULL AS INTEGER ) - 38 )
----
3168

query I rowsort
SELECT - - 16 + + 27
----
43

query I rowsort
SELECT DISTINCT 55 * - 41 * + + 53 + + ( - 66 )
----
-119581

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL + + MIN( + CAST( ( - - 26 ) AS SIGNED ) ) * + 92
----
2392

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + + MIN ( + CAST ( ( - - 26 ) AS INTEGER ) ) * + 92
----
2392

query I rowsort
SELECT - 3 * + - 81
----
243

query II rowsort
SELECT 2, 57 + + 91 + - - 80 * 18 AS col0
----
2
1588

query I rowsort
SELECT ALL + 26 * - 71 AS col2
----
-1846

query I rowsort
SELECT - - 15 * - - 65
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT DISTINCT + COALESCE ( + 63, NULLIF ( - 6, - - CAST( ( 71 ) AS SIGNED ) + SUM( - 98 ) ) ) col0
----
63

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + COALESCE ( + 63, NULLIF ( - 6, - - CAST ( ( 71 ) AS INTEGER ) + SUM ( - 98 ) ) ) col0
----
63

query II rowsort
SELECT 76 AS col1, 50 AS col1
----
76
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT ALL - COUNT( * ) * - 35 DIV - + 92 - + - 64 DIV - 88 + + - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - COUNT ( * ) * - 35 / - + 92 - + - 64 / - 88 + + - 33 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-708
SELECT - 91 * + + 71 - + + 45 + + + COUNT( * ) DIV + 54 AS col0
----
-6506

skipif mysql # not compatible
query I rowsort label-708
SELECT - 91 * + + 71 - + + 45 + + + COUNT ( * ) / + 54 AS col0
----
-6506

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT - + 75 DIV - 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT - + 75 / - 70 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - - 66 * + 77 - - + COUNT( * ) * - + 89
----
4993

skipif mysql # not compatible
query I rowsort label-710
SELECT - - 66 * + 77 - - + COUNT ( * ) * - + 89
----
4993

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-711
SELECT + 68 * 86 AS col1, - 29 * - 14 + - 74 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
5848
NULL

skipif mysql # not compatible
query II rowsort label-711
SELECT + 68 * 86 AS col1, - 29 * - 14 + - 74 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
5848
NULL

query I rowsort
SELECT ALL - 84 * 22 AS col1
----
-1848

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

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT SUM( ALL 1 ) AS col2, + ( + 96 )
----
1
96

skipif mysql # not compatible
query II rowsort label-714
SELECT SUM ( ALL 1 ) AS col2, + ( + 96 )
----
1
96

query I rowsort
SELECT ALL 67 * 44
----
2948

query II rowsort
SELECT - 49 - - 79, 79 + - - 13 * - + 80 AS col1
----
30
-961

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

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

query I rowsort
SELECT ALL + 12 * + 84
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT - COALESCE ( 60, ( + 42 ) + + + ( + 29 ), + 31 * - + 30 * - 49 + + ( + 23 ) - + CASE + + 42 WHEN + - 83 THEN MAX( DISTINCT ( + 19 ) ) ELSE NULL END ) * - 74
----
4440

skipif mysql # not compatible
query I rowsort label-719
SELECT - COALESCE ( 60, ( + 42 ) + + + ( + 29 ), + 31 * - + 30 * - 49 + + ( + 23 ) - + CASE + + 42 WHEN + - 83 THEN MAX ( DISTINCT ( + 19 ) ) ELSE NULL END ) * - 74
----
4440

query I rowsort
SELECT - 96 + + 83 col2
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - ( MAX( DISTINCT + 90 ) ) * 10
----
-900

skipif mysql # not compatible
query I rowsort label-722
SELECT - ( MAX ( DISTINCT + 90 ) ) * 10
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT ALL 60 + - ( + COUNT( * ) ) + COUNT( * ) AS col0, + 76
----
60
76

skipif mysql # not compatible
query II rowsort label-723
SELECT ALL 60 + - ( + COUNT ( * ) ) + COUNT ( * ) AS col0, + 76
----
60
76

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

skipif mysql # not compatible
query I rowsort label-724
SELECT - COUNT ( 38 ) + + 25 + + COUNT ( * ) AS col0
----
25

query II rowsort
SELECT + 71 - - 91 AS col2, + ( + 12 ) AS col0
----
162
12

query I rowsort
SELECT ALL 53 * 96 AS col0
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - 77 + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - 77 + - COUNT ( * )
----
-78

query I rowsort
SELECT - ( COALESCE ( - 84, + 17 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT ALL COALESCE ( + 44, - 60 DIV 91, + ( 31 ) + - + 42 + + + 73 + - 26 * COUNT( * ) DIV + 20 ) + - + 50 + 47 * 66 col2
----
3096

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL COALESCE ( + 44, - 60 / 91, + ( 31 ) + - + 42 + + + 73 + - 26 * COUNT ( * ) / + 20 ) + - + 50 + 47 * 66 col2
----
3096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + 93 + - 33 * - 27 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + 93 + - 33 * - 27 / CAST ( NULL AS INTEGER )
----
NULL

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

query II rowsort
SELECT ALL - 82 * + - 74 AS col2, 60 AS col1
----
6068
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT + COUNT( * ) DIV - + 68 + 8
----
8

skipif mysql # not compatible
query I rowsort label-733
SELECT + COUNT ( * ) / - + 68 + 8
----
8

query I rowsort
SELECT + - 12 + + - 8 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT DISTINCT + ( + CAST( 17 AS SIGNED ) ) * + - 72
----
-1224

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT + ( + CAST ( 17 AS INTEGER ) ) * + - 72
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT ALL - COUNT( * ) DIV + 31 + - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - COUNT ( * ) / + 31 + - 96 AS col0
----
-96

query I rowsort
SELECT + 78 * 93
----
7254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-738
SELECT DISTINCT - CASE - COUNT( * ) WHEN + + 26 THEN - 54 WHEN - + CAST( + 46 AS SIGNED ) THEN NULL END / - COUNT( * ) + SUM( - 37 ) + + 29 + 73 * - 4 / 24 * + 55 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + + 26 THEN - 54 WHEN - + CAST ( + 46 AS INTEGER ) THEN NULL END / - COUNT ( * ) + SUM ( - 37 ) + + 29 + 73 * - 4 / 24 * + 55 + + 35
----
NULL

query I rowsort
SELECT + ( + 99 ) + + 96 col0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL - 66 DIV + 50 * + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - 66 / + 50 * + ( COUNT ( * ) )
----
-1

query I rowsort
SELECT + + 60 * - 33
----
-1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT ALL + COALESCE ( - 31, - + 64 + - 59 + + 82 DIV - - CASE 74 WHEN + 69 * - 79 * + 24 THEN - 77 END * + - COALESCE ( + + 65, - SUM( - 80 ) * + 3 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL + COALESCE ( - 31, - + 64 + - 59 + + 82 / - - CASE 74 WHEN + 69 * - 79 * + 24 THEN - 77 END * + - COALESCE ( + + 65, - SUM ( - 80 ) * + 3 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + + COUNT( * ) * + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-743
SELECT + + COUNT ( * ) * + 53 AS col1
----
53

query I rowsort
SELECT - - 5 * + 53 - - 89 + 94 + ( + - 76 ) * - 1 * + 74
----
6072

query II rowsort
SELECT DISTINCT + 87, 77 AS col0
----
87
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT ALL + NULLIF ( - - COALESCE ( - + ( - 13 ), - 83 DIV ( + 19 ) + 28 * + - 91 * 16 + + 29 ), SUM( 95 ) )
----
13

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + NULLIF ( - - COALESCE ( - + ( - 13 ), - 83 / ( + 19 ) + 28 * + - 91 * 16 + + 29 ), SUM ( 95 ) )
----
13

query I rowsort
SELECT COALESCE ( - + ( + 37 ), - 56, + + 55 * - 11 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT 97 * - 44 AS col2
----
-4268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT 16 * + 43 * - 6 + + - COALESCE ( + 14, + CAST( 32 AS SIGNED ) )
----
-4142

skipif mysql # not compatible
query I rowsort label-749
SELECT 16 * + 43 * - 6 + + - COALESCE ( + 14, + CAST ( 32 AS INTEGER ) )
----
-4142

onlyif mysql # DIV for integer division: 
query II rowsort label-750
SELECT 51 DIV ( - 86 ) AS col1, 63 + - + 28 * - + 49
----
0
1435

skipif mysql # not compatible
query II rowsort label-750
SELECT 51 / ( - 86 ) AS col1, 63 + - + 28 * - + 49
----
0
1435

query I rowsort
SELECT + 8 * COALESCE ( 22, + - 50 ) + - 74 col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT 63 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-752
SELECT 63 / - 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-753
SELECT 99 + COUNT( * ) + - + 22 DIV + 70 - 75 + + 54 DIV - - 87 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-753
SELECT 99 + COUNT ( * ) + - + 22 / + 70 - 75 + + 54 / - - 87 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL - MAX( 54 ) + + - 30 * - 20
----
546

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - MAX ( 54 ) + + - 30 * - 20
----
546

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-757
SELECT 98 * 36 * + 22 col1, MIN( + CAST( - 25 AS SIGNED ) ) + - 16 AS col1
----
77616
-41

skipif mysql # not compatible
query II rowsort label-757
SELECT 98 * 36 * + 22 col1, MIN ( + CAST ( - 25 AS INTEGER ) ) + - 16 AS col1
----
77616
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL - 90 + + CAST( NULL AS SIGNED ) * COUNT( * ) * + + NULLIF ( + COALESCE ( - COUNT( * ), 66, + + 72 / - 15 ), - 71 / + + 9 * + CAST( AVG ( 9 ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - 90 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + NULLIF ( + COALESCE ( - COUNT ( * ), 66, + + 72 / - 15 ), - 71 / + + 9 * + CAST ( AVG ( 9 ) AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT + COUNT( * ) + + 99 + + 19 - - 61 * + MIN( DISTINCT + 45 ) col1
----
2864

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + COUNT ( * ) + + 99 + + 19 - - 61 * + MIN ( DISTINCT + 45 ) col1
----
2864

query I rowsort
SELECT 14 * - 10
----
-140

query II rowsort
SELECT 19, 78 AS col0
----
19
78

query II rowsort
SELECT - 25 AS col0, + 34 * - - 79 AS col2
----
-25
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + + ( - 87 ) + + 62 + - COUNT( * ) + - 57 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + + ( - 87 ) + + 62 + - COUNT ( * ) + - 57 + - COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 76 * - 43 + - 86 + ( + COUNT( * ) ) AS col0
----
3183

skipif mysql # not compatible
query I rowsort label-764
SELECT - 76 * - 43 + - 86 + ( + COUNT ( * ) ) AS col0
----
3183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL - ( CAST( AVG ( 78 ) AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - ( CAST ( AVG ( 78 ) AS INTEGER ) )
----
-78

query I rowsort
SELECT DISTINCT 33 * 89 + + + 35 AS col0
----
2972

query II rowsort
SELECT ALL - 94 AS col2, - 82
----
-94
-82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT DISTINCT 85 DIV - MAX( - 8 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT 85 / - MAX ( - 8 ) AS col0
----
10

query I rowsort
SELECT ( + 7 ) * + - 6 AS col2
----
-42

query I rowsort
SELECT 54 * + + 97 AS col2
----
5238

query I rowsort
SELECT ALL 84 + - - 17
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT ( - MAX( ALL 98 ) ) - - 15, 61 AS col2
----
-83
61

skipif mysql # not compatible
query II rowsort label-773
SELECT ( - MAX ( ALL 98 ) ) - - 15, 61 AS col2
----
-83
61

query II rowsort
SELECT + 83, + ( - + 67 ) AS col1
----
83
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT SUM( - + 57 ) * + - 63
----
3591

skipif mysql # not compatible
query I rowsort label-775
SELECT SUM ( - + 57 ) * + - 63
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL - COUNT( * ) * - 74 * 72
----
5328

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - COUNT ( * ) * - 74 * 72
----
5328

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL 48 + - + SUM( ALL - - 62 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 48 + - + SUM ( ALL - - 62 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT + CASE - AVG ( DISTINCT - 62 ) WHEN + 5 THEN - CASE + + SUM( ALL - 95 ) WHEN COUNT( * ) THEN - 12 + - 53 ELSE NULL END + + + 33 END + 35 * + + NULLIF ( COUNT( * ), - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT + CASE - AVG ( DISTINCT - 62 ) WHEN + 5 THEN - CASE + + SUM ( ALL - 95 ) WHEN COUNT ( * ) THEN - 12 + - 53 ELSE NULL END + + + 33 END + 35 * + + NULLIF ( COUNT ( * ), - 87 ) AS col0
----
NULL

query I rowsort
SELECT 14 - - 96 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-780
SELECT 24 / + 81 * CASE - COUNT( + ( + 60 ) ) WHEN 28 THEN - COUNT( * ) * 11 - + 34 WHEN NULLIF ( + - 23, 2 ) + - ( + - CAST( NULL AS DECIMAL ) ) * + 39 * 70 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT 24 / + 81 * CASE - COUNT ( + ( + 60 ) ) WHEN 28 THEN - COUNT ( * ) * 11 - + 34 WHEN NULLIF ( + - 23, 2 ) + - ( + - CAST ( NULL AS REAL ) ) * + 39 * 70 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 29 AS col1, 9 + + 87 AS col0
----
29
96

query II rowsort
SELECT - 12, 67 AS col1
----
-12
67

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT ALL - CASE + 35 WHEN - - ( 90 ) THEN + 4 * + 30 * + + MIN( 92 ) + - COUNT( + ( - 86 ) ) ELSE NULL END - - 48, + 26 * - - 43 * - CASE + 41 WHEN + 84 * 80 THEN + ( + COALESCE ( COUNT( * ), 55 ) ) WHEN ( COALESCE ( 74, 21 ) ) * + 58 - - COUNT( * ) * 58 THEN + 87 + 54 END * AVG ( DISTINCT 78 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL - CASE + 35 WHEN - - ( 90 ) THEN + 4 * + 30 * + + MIN ( 92 ) + - COUNT ( + ( - 86 ) ) ELSE NULL END - - 48, + 26 * - - 43 * - CASE + 41 WHEN + 84 * 80 THEN + ( + COALESCE ( COUNT ( * ), 55 ) ) WHEN ( COALESCE ( 74, 21 ) ) * + 58 - - COUNT ( * ) * 58 THEN + 87 + 54 END * AVG ( DISTINCT 78 ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT - + COUNT( * ), + COUNT( * ) * + + 97 * NULLIF ( 85, - 18 ) AS col1
----
-1
8245

skipif mysql # not compatible
query II rowsort label-784
SELECT - + COUNT ( * ), + COUNT ( * ) * + + 97 * NULLIF ( 85, - 18 ) AS col1
----
-1
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT + 60 + - + MIN( ALL - 21 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-785
SELECT + 60 + - + MIN ( ALL - 21 ) AS col2
----
81

query I rowsort
SELECT ALL + 99 * + 7
----
693

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT + 88 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + 88 / + 65
----
1

query I rowsort
SELECT ALL - 30 - + 62
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT DISTINCT - MAX( + + ( 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - MAX ( + + ( 38 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + ( SUM( + - 73 ) ) * CASE - + COUNT( + + 72 ) WHEN - 90 + - 34 THEN 88 END - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + ( SUM ( + - 73 ) ) * CASE - + COUNT ( + + 72 ) WHEN - 90 + - 34 THEN 88 END - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - ( + + COUNT( * ) ) + MAX( - 96 )
----
-97

skipif mysql # not compatible
query I rowsort label-792
SELECT - ( + + COUNT ( * ) ) + MAX ( - 96 )
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT 30 DIV + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-794
SELECT 30 / + 30 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-795
SELECT + COUNT( * ) DIV - MIN( 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-795
SELECT + COUNT ( * ) / - MIN ( 5 ) AS col0
----
0

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

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

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

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

query I rowsort
SELECT + - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT + 73 AS col0, + COUNT( DISTINCT 10 ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-799
SELECT + 73 AS col0, + COUNT ( DISTINCT 10 ) AS col0
----
73
1

query II rowsort
SELECT ALL - + 73 AS col1, - 90 * - 90
----
-73
8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT 99 * COALESCE ( - CAST( NULL AS SIGNED ), + + 23 ) AS col1
----
2277

skipif mysql # not compatible
query I rowsort label-801
SELECT 99 * COALESCE ( - CAST ( NULL AS INTEGER ), + + 23 ) AS col1
----
2277

query I rowsort
SELECT ALL + 68 * 6 + 47 AS col1
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + 97 * MIN( 78 ) * 84 - - 97 AS col2
----
635641

skipif mysql # not compatible
query I rowsort label-803
SELECT + 97 * MIN ( 78 ) * 84 - - 97 AS col2
----
635641

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT 53 * - 25 + COUNT( * ) AS col2
----
-1324

skipif mysql # not compatible
query I rowsort label-804
SELECT 53 * - 25 + COUNT ( * ) AS col2
----
-1324

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT MAX( DISTINCT - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-807
SELECT MAX ( DISTINCT - 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ( - COUNT( * ) ) * - 65 + - COUNT( ALL - 60 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-808
SELECT ( - COUNT ( * ) ) * - 65 + - COUNT ( ALL - 60 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + 96 - COUNT( * ) - + 60
----
35

skipif mysql # not compatible
query I rowsort label-809
SELECT + 96 - COUNT ( * ) - + 60
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT ALL COUNT( * ) * - + ( - COUNT( * ) ) + - 52 col0
----
-51

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL COUNT ( * ) * - + ( - COUNT ( * ) ) + - 52 col0
----
-51

query II rowsort
SELECT DISTINCT 87 * - - 28 * 53 + + 39 - + 98 + + 59 * - 46 * - + 39, + 15 AS col2
----
234895
15

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT ALL ( + - 1 ) + ( + - MAX( ALL - + 17 ) ) AS col2, 42
----
16
42

skipif mysql # not compatible
query II rowsort label-812
SELECT ALL ( + - 1 ) + ( + - MAX ( ALL - + 17 ) ) AS col2, 42
----
16
42

query I rowsort
SELECT + 36 + + 5
----
41

query I rowsort
SELECT + NULLIF ( + + 47, - 23 * 13 ) AS col2
----
47

query I rowsort
SELECT + 89 + + 10 AS col0
----
99

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

skipif mysql # not compatible
query I rowsort label-816
SELECT + 0 / + 38
----
0

query II rowsort
SELECT + 6 * - 12 * - 0 AS col2, + 41
----
0
41

query I rowsort
SELECT - 65 + - - 60 + - 5 * 13
----
-70

query I rowsort
SELECT + 77 * + - 17 col0
----
-1309

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-820
SELECT - 82 * - 9, - COUNT( * ) DIV - COUNT( * ) AS col2
----
738
1

skipif mysql # not compatible
query II rowsort label-820
SELECT - 82 * - 9, - COUNT ( * ) / - COUNT ( * ) AS col2
----
738
1

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL CASE 17 WHEN + 48 THEN COUNT( * ) / - 50 WHEN + 6 THEN NULL WHEN - - COUNT( * ) THEN NULL END * + 57 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL CASE 17 WHEN + 48 THEN COUNT ( * ) / - 50 WHEN + 6 THEN NULL WHEN - - COUNT ( * ) THEN NULL END * + 57 + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - NULLIF ( 68, - SUM( DISTINCT + 48 ) + - + MAX( - + 74 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-822
SELECT - NULLIF ( 68, - SUM ( DISTINCT + 48 ) + - + MAX ( - + 74 ) ) AS col1
----
-68

query I rowsort
SELECT DISTINCT + + ( + + ( - 68 ) ) * 53 AS col2
----
-3604

query I rowsort
SELECT DISTINCT - ( + + 19 ) col1
----
-19

query I rowsort
SELECT + 67 * + 23
----
1541

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - ( - + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + - 37 - - + CASE WHEN 72 IN ( + 89, + 82 + 50 ) THEN COUNT( * ) END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT + - 37 - - + CASE WHEN 72 IN ( + 89, + 82 + 50 ) THEN COUNT ( * ) END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 66 * + 21 AS col2
----
-1386

query I rowsort
SELECT - ( 21 ) * + 91 AS col0
----
-1911

query I rowsort
SELECT DISTINCT + 93 + 31
----
124

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

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

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

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

query I rowsort
SELECT ALL 40 * + 2 + - ( + - 42 ) AS col1
----
122

query I rowsort
SELECT ALL + NULLIF ( - - 25, 97 * + ( 30 ) )
----
25

query II rowsort
SELECT DISTINCT + 57 col2, 22
----
57
22

query I rowsort
SELECT DISTINCT + ( + 98 ) col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT + 76 * + COUNT( * ) + 50 * - 89 + - + CASE 4 WHEN ( + + 94 ) THEN NULL ELSE - 42 END AS col0
----
-4332

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT + 76 * + COUNT ( * ) + 50 * - 89 + - + CASE 4 WHEN ( + + 94 ) THEN NULL ELSE - 42 END AS col0
----
-4332

query I rowsort
SELECT ( 75 ) AS col2
----
75

query I rowsort
SELECT + 13 * + 77 col1
----
1001

query I rowsort
SELECT + NULLIF ( - - 15, - 55 ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT ALL + 82 * - 22 - + 25 - 19 DIV 92 - - COUNT( * ) col0
----
-1828

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + 82 * - 22 - + 25 - 19 / 92 - - COUNT ( * ) col0
----
-1828

query I rowsort
SELECT 23 * + 22 - + 48 + + - 27 + 98
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT CASE - - COUNT( ALL - - 58 ) WHEN 96 THEN NULL WHEN - 99 THEN + - ( - - MAX( DISTINCT 87 ) ) WHEN - - 34 * - - CASE - COUNT( * ) WHEN + COUNT( * ) THEN 87 * - 93 / - 88 * + 53 WHEN + 94 THEN COUNT( * ) + + 80 END / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT CASE - - COUNT ( ALL - - 58 ) WHEN 96 THEN NULL WHEN - 99 THEN + - ( - - MAX ( DISTINCT 87 ) ) WHEN - - 34 * - - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN 87 * - 93 / - 88 * + 53 WHEN + 94 THEN COUNT ( * ) + + 80 END / COUNT ( * ) THEN NULL END
----
NULL

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

query I rowsort
SELECT - 77 - + 67 AS col1
----
-144

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

skipif mysql # not compatible
query I rowsort label-849
SELECT + 83 * COUNT ( * ) * - + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 14 * + - 69
----
966

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-851
SELECT DISTINCT - 5 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - 5 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT + + 77 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT + + 77 / + 99 AS col2
----
0

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

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

query I rowsort
SELECT - + 33 + 66
----
33

query I rowsort
SELECT + + 27 - 51 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-856
SELECT + 87 DIV 47 * 83 * 81 AS col1, - 73 AS col2
----
6723
-73

skipif mysql # not compatible
query II rowsort label-856
SELECT + 87 / 47 * 83 * 81 AS col1, - 73 AS col2
----
6723
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT + 89 * + MIN( ALL - + 92 ) * 81 + - 10 * 68 AS col2
----
-663908

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT + 89 * + MIN ( ALL - + 92 ) * 81 + - 10 * 68 AS col2
----
-663908

query I rowsort
SELECT + + 78 * + + 16 AS col1
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT + 45 + - + ( - COUNT( * ) ) + + + 43 DIV + 84 * - 41 * + 79 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-859
SELECT + 45 + - + ( - COUNT ( * ) ) + + + 43 / + 84 * - 41 * + 79 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-860
SELECT CAST( + + 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-860
SELECT CAST ( + + 55 AS INTEGER ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-861
SELECT DISTINCT - 45 + + 90 - 18 col0, - CAST( NULL AS SIGNED )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-861
SELECT DISTINCT - 45 + + 90 - 18 col0, - CAST ( NULL AS INTEGER )
----
27
NULL

query I rowsort
SELECT + + ( 92 ) * + + 85 AS col2
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + 72 + - COUNT( ALL ( - 40 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-863
SELECT + 72 + - COUNT ( ALL ( - 40 ) ) AS col2
----
71

query I rowsort
SELECT ALL ( + 49 ) + - 88 + 71 col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-865
SELECT - 3 * - CAST( NULL AS SIGNED ) * - 28, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-865
SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 28, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT 73 + + 29
----
102

query I rowsort
SELECT + ( + NULLIF ( 61, + 18 ) ) + + + 81
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL + 71 + - 8 DIV + 39
----
71

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + 71 + - 8 / + 39
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-869
SELECT ( COUNT( * ) ) DIV - - 12 + + 50 * - 43 + + + ( - 74 )
----
-2224

skipif mysql # not compatible
query I rowsort label-869
SELECT ( COUNT ( * ) ) / - - 12 + + 50 * - 43 + + + ( - 74 )
----
-2224

query I rowsort
SELECT ALL 73 + + - 80 * 35 AS col2
----
-2727

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT DISTINCT 84 - 45 - - 15 * - + COUNT( * ) * + + COUNT( * ) - - + 22 * 88
----
1960

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT 84 - 45 - - 15 * - + COUNT ( * ) * + + COUNT ( * ) - - + 22 * 88
----
1960

query I rowsort
SELECT 27 * + 67 + - 64 AS col0
----
1745

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

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

query I rowsort
SELECT 98 * - 8 * - 5
----
3920

query II rowsort
SELECT 34 * - + 63, 16 AS col2
----
-2142
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT 40 - ( - 66 ) + + 71 * ( + - 54 ) * + - 30 * + 19 DIV - + ( - COUNT( * ) )
----
2185486

skipif mysql # not compatible
query I rowsort label-877
SELECT 40 - ( - 66 ) + + 71 * ( + - 54 ) * + - 30 * + 19 / - + ( - COUNT ( * ) )
----
2185486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-878
SELECT ALL - CAST( 34 AS SIGNED ) AS col0, + 30 AS col2
----
-34
30

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL - CAST ( 34 AS INTEGER ) AS col0, + 30 AS col2
----
-34
30

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT - MIN( 2 ) * 91 - - - NULLIF ( - 44, + 65 * + 0 + 15 / - 8 ) + + 59, 42 AS col2
----
-79
42

skipif mysql # not compatible
query II rowsort label-879
SELECT - MIN ( 2 ) * 91 - - - NULLIF ( - 44, + 65 * + 0 + 15 / - 8 ) + + 59, 42 AS col2
----
-79
42

query I rowsort
SELECT 23 + - 68 AS col0
----
-45

query II rowsort
SELECT DISTINCT - 73 * - + 27 AS col1, + 11
----
1971
11

query I rowsort
SELECT 33 * 14 AS col0
----
462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-883
SELECT DISTINCT - CASE + COALESCE ( 50, + 53 ) WHEN + CAST( + - 56 AS DECIMAL ) THEN NULL ELSE - COUNT( * ) * - - 97 + - 27 + + + 47 + 44 END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT - CASE + COALESCE ( 50, + 53 ) WHEN + CAST ( + - 56 AS REAL ) THEN NULL ELSE - COUNT ( * ) * - - 97 + - 27 + + + 47 + 44 END AS col1
----
33

query I rowsort
SELECT DISTINCT 88 * 83
----
7304

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - 9 * COUNT( * ) * 85
----
-765

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - 9 * COUNT ( * ) * 85
----
-765

query I rowsort
SELECT 5 * 14 * - 22 AS col2
----
-1540

query I rowsort
SELECT 48 + - 98 * 0
----
48

query I rowsort
SELECT DISTINCT - 59 * + 48
----
-2832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL CAST( 85 AS SIGNED ) + + + 48 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL CAST ( 85 AS INTEGER ) + + + 48 AS col0
----
133

query I rowsort
SELECT 28 * 34 * - 62
----
-59024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-891
SELECT ALL - 15 + COUNT( - ( CAST( NULL AS SIGNED ) ) ), 75 AS col1
----
-15
75

skipif mysql # not compatible
query II rowsort label-891
SELECT ALL - 15 + COUNT ( - ( CAST ( NULL AS INTEGER ) ) ), 75 AS col1
----
-15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - + MIN( + 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-892
SELECT - + MIN ( + 38 ) col1
----
-38

query I rowsort
SELECT DISTINCT - - 82 + 90 * + + 88
----
8002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT ALL + ( + - ( ( + - SUM( 62 ) ) ) ) + + CAST( + + 28 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + ( + - ( ( + - SUM ( 62 ) ) ) ) + + CAST ( + + 28 AS INTEGER )
----
90

query II rowsort
SELECT ALL - 66 + - 95 AS col1, + 97
----
-161
97

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT + COUNT( * ) + 45 + + 2 * + 57 * - + 67 AS col0
----
-7592

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + COUNT ( * ) + 45 + + 2 * + 57 * - + 67 AS col0
----
-7592

query I rowsort
SELECT - 45 * - + 35 - - 59
----
1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-898
SELECT ALL + 83 * - NULLIF ( + 63, - 84 - + 5 * + MAX( ALL - - 13 ) ) * - COALESCE ( - 23, + 93 * - - CAST( NULL AS SIGNED ) DIV 1 + + - 84 + + 60 * + 76 ) + - + 16
----
-120283

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + 83 * - NULLIF ( + 63, - 84 - + 5 * + MAX ( ALL - - 13 ) ) * - COALESCE ( - 23, + 93 * - - CAST ( NULL AS INTEGER ) / 1 + + - 84 + + 60 * + 76 ) + - + 16
----
-120283

query I rowsort
SELECT + ( 6 ) + 62 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT 76 - COUNT( * ) + 52
----
127

skipif mysql # not compatible
query I rowsort label-900
SELECT 76 - COUNT ( * ) + 52
----
127

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT MAX( + 79 ) - + 94 col1, 26
----
-15
26

skipif mysql # not compatible
query II rowsort label-902
SELECT MAX ( + 79 ) - + 94 col1, 26
----
-15
26

query I rowsort
SELECT ALL 32 - + + 60
----
-28

query II rowsort
SELECT - 66 AS col2, + ( + 97 ) AS col2
----
-66
97

query I rowsort
SELECT ALL 26 * 44 AS col0
----
1144

query I rowsort
SELECT 5 + 31 AS col0
----
36

query I rowsort
SELECT DISTINCT 44 * + 15 - - 3
----
663

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT 40 DIV + 53 - - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-909
SELECT 40 / + 53 - - 47 AS col0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL - SUM( - 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - SUM ( - 4 ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-912
SELECT - CASE WHEN NOT + 45 IS NOT NULL THEN - - 27 * 45 ELSE 45 END DIV - - 32 + + 40 col2, 87
----
39
87

skipif mysql # not compatible
query II rowsort label-912
SELECT - CASE WHEN NOT + 45 IS NOT NULL THEN - - 27 * 45 ELSE 45 END / - - 32 + + 40 col2, 87
----
39
87

query I rowsort
SELECT 43 * - NULLIF ( - + 91, + + 75 ) AS col1
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT - CASE + + ( + 43 ) WHEN - COUNT( * ) / + ( + 72 ) - + 8 + - 86 + + 54 * - MIN( - 62 ) THEN NULL WHEN + 85 / + 85 * - 51 + - - COUNT( * ) + - 50 + + MAX( - ( + 14 ) ) * 92 THEN NULL WHEN + COUNT( * ) * - 39 + - 48 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - CASE + + ( + 43 ) WHEN - COUNT ( * ) / + ( + 72 ) - + 8 + - 86 + + 54 * - MIN ( - 62 ) THEN NULL WHEN + 85 / + 85 * - 51 + - - COUNT ( * ) + - 50 + + MAX ( - ( + 14 ) ) * 92 THEN NULL WHEN + COUNT ( * ) * - 39 + - 48 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 56 AS col1, + 64 * + - 6 * + 79 AS col2
----
-56
-30336

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

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - MAX ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 41 * + 47 * - + 91
----
-175357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-918
SELECT ALL COUNT( * ) * - + 69 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL COUNT ( * ) * - + 69 / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL COUNT( * ) * - 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( * ) * - 58 AS col0
----
-58

query I rowsort
SELECT ALL - 96 * 62 AS col2
----
-5952

query I rowsort
SELECT ALL + 22 * + 18 + + 75 AS col0
----
471

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT 73 DIV - - ( - + 78 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT 73 / - - ( - + 78 ) AS col1
----
0

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

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

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

query I rowsort
SELECT ALL - 30 + + - ( 6 ) AS col2
----
-36

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

query I rowsort
SELECT + ( - 20 ) + 20 * - - 4 col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL - - CAST( - 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL - - CAST ( - 42 AS INTEGER ) AS col0
----
-42

query I rowsort
SELECT - - 75 * - - 22 AS col1
----
1650

onlyif mysql # DIV for integer division: 
query II rowsort label-930
SELECT DISTINCT - + COALESCE ( - - 37, + AVG ( 47 ) DIV + - 13 ) * + 71, - 92 * + 68 + 15 * 33 AS col1
----
-2627
-5761

skipif mysql # not compatible
query II rowsort label-930
SELECT DISTINCT - + COALESCE ( - - 37, + AVG ( 47 ) / + - 13 ) * + 71, - 92 * + 68 + 15 * 33 AS col1
----
-2627
-5761

query I rowsort
SELECT DISTINCT - - 29 + - 65 AS col1
----
-36

query I rowsort
SELECT ALL - - 79 + - 14
----
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL + - COUNT( * ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + - COUNT ( * ) + + 88
----
87

query I rowsort
SELECT - + 48 + ( 40 ) AS col2
----
-8

query I rowsort
SELECT + + 43 * + - 4 + - 16 AS col1
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT CASE ( - - 37 ) WHEN + 83 + + COALESCE ( + 74, - 32 * - 89 + - 21 + COUNT( * ) + - COALESCE ( + 80, + - MIN( + 61 ) ) * - 19 * + CAST( - - 34 AS SIGNED ) - 59 / - 83 * + 23 - + 87, 33 + + 64, 4 ) - - CASE + 71 WHEN - 69 * - 20 THEN NULL ELSE + 35 + + MAX( + 0 ) END * ( 37 ) THEN + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT CASE ( - - 37 ) WHEN + 83 + + COALESCE ( + 74, - 32 * - 89 + - 21 + COUNT ( * ) + - COALESCE ( + 80, + - MIN ( + 61 ) ) * - 19 * + CAST ( - - 34 AS INTEGER ) - 59 / - 83 * + 23 - + 87, 33 + + 64, 4 ) - - CASE + 71 WHEN - 69 * - 20 THEN NULL ELSE + 35 + + MAX ( + 0 ) END * ( 37 ) THEN + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - - CASE + + 76 WHEN - 59 THEN NULL ELSE + + NULLIF ( + + ( - + 49 ), + 29 ) END + 11 + 58 * - + CASE - + COUNT( * ) WHEN AVG ( 12 ) * + + 32 THEN - 60 * + 40 * - - 95 / - + ( - + 58 ) - - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT - - CASE + + 76 WHEN - 59 THEN NULL ELSE + + NULLIF ( + + ( - + 49 ), + 29 ) END + 11 + 58 * - + CASE - + COUNT ( * ) WHEN AVG ( 12 ) * + + 32 THEN - 60 * + 40 * - - 95 / - + ( - + 58 ) - - 56 END
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 97 col1
----
970

query I rowsort
SELECT ALL + 8 * + - 14 AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT - ( + - 88 ) * CAST( + - 26 AS SIGNED ) + + + 15 + + 96
----
-2177

skipif mysql # not compatible
query I rowsort label-942
SELECT - ( + - 88 ) * CAST ( + - 26 AS INTEGER ) + + + 15 + + 96
----
-2177

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ALL COALESCE ( - 96, + - 71 DIV + 46 ) DIV 8
----
-12

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL COALESCE ( - 96, + - 71 / + 46 ) / 8
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL NULLIF ( - + CASE + 93 WHEN + 43 THEN - 77 + + + COALESCE ( - 71, 24 * + - 51 * 31 * 53 / 0 + + MIN( ALL - COALESCE ( - + 99, 8 ) ) * - - 67 ) END, + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL NULLIF ( - + CASE + 93 WHEN + 43 THEN - 77 + + + COALESCE ( - 71, 24 * + - 51 * 31 * 53 / 0 + + MIN ( ALL - COALESCE ( - + 99, 8 ) ) * - - 67 ) END, + 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - 8 + - 76 - + - 29 * + - COUNT( * ) * + 57 * - SUM( + + ( - 73 ) )
----
-120753

skipif mysql # not compatible
query I rowsort label-945
SELECT - 8 + - 76 - + - 29 * + - COUNT ( * ) * + 57 * - SUM ( + + ( - 73 ) )
----
-120753

query I rowsort
SELECT + 73 + 43
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-947
SELECT ALL SUM( + 48 ) DIV 2 + + 91 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL SUM ( + 48 ) / 2 + + 91 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + 90 * NULLIF ( - COUNT( * ), + - 24 + - ( - 67 ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-948
SELECT + 90 * NULLIF ( - COUNT ( * ), + - 24 + - ( - 67 ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - SUM( DISTINCT + - 72 ) * COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-949
SELECT - SUM ( DISTINCT + - 72 ) * COUNT ( * ) col1
----
72

query I rowsort
SELECT - NULLIF ( 26, + + ( 56 ) + - - 99 )
----
-26

query I rowsort
SELECT - 78 + 79 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT ALL + 73 DIV - 4
----
-18

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + 73 / - 4
----
-18

query I rowsort
SELECT + 54 + + - 10 + + + 39 + - + 55 + + 44
----
72

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

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

query II rowsort
SELECT + 30 * - 63, 44 * 34 col0
----
-1890
1496

query II rowsort
SELECT DISTINCT + 62 AS col1, 38
----
62
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT + CASE 77 WHEN - + 53 + + 14 THEN NULL WHEN + 0 THEN NULL WHEN - + CAST( + + 37 AS SIGNED ) THEN + + 99 / + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT + CASE 77 WHEN - + 53 + + 14 THEN NULL WHEN + 0 THEN NULL WHEN - + CAST ( + + 37 AS INTEGER ) THEN + + 99 / + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT - 58 * + + 55 + + 5 + - COALESCE ( + 65, + 10 * + ( + MAX( DISTINCT - COALESCE ( 54, + 29, + 30 ) ) ) DIV + 8 + + 15, - 86 * 69 * - 54 ) + 18 * - + COALESCE ( + COUNT( * ), - COUNT( * ) )
----
-3268

skipif mysql # not compatible
query I rowsort label-958
SELECT - 58 * + + 55 + + 5 + - COALESCE ( + 65, + 10 * + ( + MAX ( DISTINCT - COALESCE ( 54, + 29, + 30 ) ) ) / + 8 + + 15, - 86 * 69 * - 54 ) + 18 * - + COALESCE ( + COUNT ( * ), - COUNT ( * ) )
----
-3268

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

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

query I rowsort
SELECT + 94 * - 87 * + - 13
----
106314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT - 64 / CAST( NULL AS SIGNED ) + CASE + 53 WHEN 12 THEN NULL WHEN + 60 THEN NULL ELSE - 19 + - + 32 END + - 68 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT - 64 / CAST ( NULL AS INTEGER ) + CASE + 53 WHEN 12 THEN NULL WHEN + 60 THEN NULL ELSE - 19 + - + 32 END + - 68 * 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-962
SELECT DISTINCT - 91 * ( + COALESCE ( 69, - COUNT( * ), 97 + + CASE - + 47 WHEN + 19 + - 98 THEN - - 59 END * 71 + - 49, + COUNT( * ), - 60 ) ) DIV - MAX( - + 23 ) + + - 9 + + 11 + + 25 DIV + SUM( ALL + 28 ) col1
----
-271

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT - 91 * ( + COALESCE ( 69, - COUNT ( * ), 97 + + CASE - + 47 WHEN + 19 + - 98 THEN - - 59 END * 71 + - 49, + COUNT ( * ), - 60 ) ) / - MAX ( - + 23 ) + + - 9 + + 11 + + 25 / + SUM ( ALL + 28 ) col1
----
-271

query I rowsort
SELECT + 88 + - - 31 * - 13 + + 79 AS col1
----
-236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-964
SELECT ALL - 55 * - - 51 + - CASE + - 6 WHEN + + 5 / + CAST( NULL AS SIGNED ) + - - 52 THEN + + 40 WHEN - - 42 / 5 * - - 71 THEN + 43 + - CAST( NULL AS DECIMAL ) - - - COUNT( * ) / + COALESCE ( + + COUNT( * ), 3 ) WHEN - COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - 55 * - - 51 + - CASE + - 6 WHEN + + 5 / + CAST ( NULL AS INTEGER ) + - - 52 THEN + + 40 WHEN - - 42 / 5 * - - 71 THEN + 43 + - CAST ( NULL AS REAL ) - - - COUNT ( * ) / + COALESCE ( + + COUNT ( * ), 3 ) WHEN - COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT - CASE - - 76 WHEN COUNT( * ) THEN + + COUNT( * ) ELSE - COUNT( + 9 ) DIV + 48 * + - 3 END - 58 + 61 * + 58
----
3480

skipif mysql # not compatible
query I rowsort label-965
SELECT - CASE - - 76 WHEN COUNT ( * ) THEN + + COUNT ( * ) ELSE - COUNT ( + 9 ) / + 48 * + - 3 END - 58 + 61 * + 58
----
3480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-967
SELECT ALL + + 57 * - 16 * + - NULLIF ( 70, COUNT( * ) * - 48 ) + MAX( + CAST( NULL AS SIGNED ) ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL + + 57 * - 16 * + - NULLIF ( 70, COUNT ( * ) * - 48 ) + MAX ( + CAST ( NULL AS INTEGER ) ) + - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT ALL 44 * + - 5 + - + CASE 54 WHEN - - 69 - 51 / + 75 + 58 THEN NULL WHEN - 79 * - - COUNT( ALL - NULLIF ( - - 45, + - 20 ) ) / - 88 THEN NULL WHEN + 92 THEN NULL ELSE 86 END + + + 13 + 83 * - 86 * + CAST( + 89 AS SIGNED ) AS col2
----
-635575

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 44 * + - 5 + - + CASE 54 WHEN - - 69 - 51 / + 75 + 58 THEN NULL WHEN - 79 * - - COUNT ( ALL - NULLIF ( - - 45, + - 20 ) ) / - 88 THEN NULL WHEN + 92 THEN NULL ELSE 86 END + + + 13 + 83 * - 86 * + CAST ( + 89 AS INTEGER ) AS col2
----
-635575

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT + 76 AS col0, + SUM( ALL + ( ( - 30 ) ) ) * - COUNT( * ) AS col2
----
76
30

skipif mysql # not compatible
query II rowsort label-970
SELECT + 76 AS col0, + SUM ( ALL + ( ( - 30 ) ) ) * - COUNT ( * ) AS col2
----
76
30

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ( + COALESCE ( + 10, 69, 53 * - + COUNT( * ) * + 89 + + - 74 + - + COUNT( ALL - 90 ) - - 54 - + - 14 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-971
SELECT ( + COALESCE ( + 10, 69, 53 * - + COUNT ( * ) * + 89 + + - 74 + - + COUNT ( ALL - 90 ) - - 54 - + - 14 ) ) AS col0
----
10

query I rowsort
SELECT + - 27 * 35
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - + ( + + 36 ) + - 70 * - MAX( DISTINCT - - 17 )
----
1154

skipif mysql # not compatible
query I rowsort label-973
SELECT - + ( + + 36 ) + - 70 * - MAX ( DISTINCT - - 17 )
----
1154

query II rowsort
SELECT ALL ( - COALESCE ( + + 72, 56 ) ) col1, 15
----
-72
15

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

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

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

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

query II rowsort
SELECT ALL 99, 20 AS col0
----
99
20

onlyif mysql # aggregate syntax: 
query III rowsort label-978
SELECT - COUNT( * ) AS col1, - 27 * - 43 * - 63, - ( 25 ) * 62 + 4 + COUNT( * ) * + - SUM( DISTINCT + 14 ) * - + 98 AS col2
----
-1
-73143
-174

skipif mysql # not compatible
query III rowsort label-978
SELECT - COUNT ( * ) AS col1, - 27 * - 43 * - 63, - ( 25 ) * 62 + 4 + COUNT ( * ) * + - SUM ( DISTINCT + 14 ) * - + 98 AS col2
----
-1
-73143
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL + ( ( + 88 ) ) * + - COUNT( * ) + + 50 AS col2, - CASE ( + 0 ) WHEN - 1 THEN NULL WHEN ( + 72 ) * + + 94 * AVG ( - 13 ) + AVG ( + 80 ) + + 76 * 21 + + 72 THEN - COUNT( * ) * + CASE - + 67 WHEN 66 THEN 97 END ELSE 97 END
----
-38
-97

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + ( ( + 88 ) ) * + - COUNT ( * ) + + 50 AS col2, - CASE ( + 0 ) WHEN - 1 THEN NULL WHEN ( + 72 ) * + + 94 * AVG ( - 13 ) + AVG ( + 80 ) + + 76 * 21 + + 72 THEN - COUNT ( * ) * + CASE - + 67 WHEN 66 THEN 97 END ELSE 97 END
----
-38
-97

query I rowsort
SELECT ALL CASE + 20 WHEN COALESCE ( - 70, - 0 ) THEN 16 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL ( MAX( DISTINCT - + 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL ( MAX ( DISTINCT - + 28 ) )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL + COUNT( + - CASE 79 WHEN CASE + 19 WHEN + 36 * + 28 + 46 THEN NULL ELSE 9 END THEN - + 29 END ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + COUNT ( + - CASE 79 WHEN CASE + 19 WHEN + 36 * + 28 + 46 THEN NULL ELSE 9 END THEN - + 29 END ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 * + ( ( + 87 ) )
----
-5829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT - 37 - - COUNT( * ) + - 41 DIV - + 60 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-984
SELECT - 37 - - COUNT ( * ) + - 41 / - + 60 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL NULLIF ( SUM( 68 ), - 72 * AVG ( 43 ) + + - COALESCE ( + COUNT( * ), + + SUM( ALL + + 14 ) + + 32 ) * - + 2 / COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL NULLIF ( SUM ( 68 ), - 72 * AVG ( 43 ) + + - COALESCE ( + COUNT ( * ), + + SUM ( ALL + + 14 ) + + 32 ) * - + 2 / COUNT ( * ) )
----
68

query I rowsort
SELECT DISTINCT + 86 * - 89 AS col0
----
-7654

query I rowsort
SELECT ALL COALESCE ( 48, 32 + - + 47 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT ALL + 68 + + 41 * + 70 + ( - COUNT( * ) ), + ( - 73 ) AS col1
----
2937
-73

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL + 68 + + 41 * + 70 + ( - COUNT ( * ) ), + ( - 73 ) AS col1
----
2937
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT ALL - ( - 69 ) + + 4 DIV - COUNT( * ) * + - COUNT( * ) - + 23 col0
----
50

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - ( - 69 ) + + 4 / - COUNT ( * ) * + - COUNT ( * ) - + 23 col0
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL 18 + + 83 * COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL 18 + + 83 * COUNT ( * ) AS col2
----
101

query I rowsort
SELECT - 24 + + 38
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT + MAX( DISTINCT - ( CASE 40 WHEN + 17 * - 28 THEN - - 99 / + 31 + + 13 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + MAX ( DISTINCT - ( CASE 40 WHEN + 17 * - 28 THEN - - 99 / + 31 + + 13 ELSE NULL END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT - 95 DIV 32 col0
----
-2

skipif mysql # not compatible
query I rowsort label-994
SELECT - 95 / 32 col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT ALL + 63 / + 28 + ( - CAST( NULL AS SIGNED ) ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + 63 / + 28 + ( - CAST ( NULL AS INTEGER ) ) + - 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT - 80 DIV 94 + - + COUNT( * ) - - - COUNT( + 15 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - 80 / 94 + - + COUNT ( * ) - - - COUNT ( + 15 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-997
SELECT NULLIF ( + + 78, + 83 ) DIV - + 44 + 57 DIV - ( + 67 ), + COUNT( * ) DIV - 94 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-997
SELECT NULLIF ( + + 78, + 83 ) / - + 44 + 57 / - ( + 67 ), + COUNT ( * ) / - 94 AS col2
----
-1
0

query I rowsort
SELECT DISTINCT - 81 * + 13 * 66 AS col2
----
-69498

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT + - ( + 46 ) + 4 + + MIN( ALL - - ( 22 ) ) + + + COUNT( * ) * 83
----
63

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + - ( + 46 ) + 4 + + MIN ( ALL - - ( 22 ) ) + + + COUNT ( * ) * 83
----
63

query I rowsort
SELECT ALL + 48 + - 55 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1001
SELECT ALL - 37 * + - 80 + + + 70 AS col1, + ( + + CAST( NULL AS SIGNED ) ) * - 0 * - ( + 69 ) AS col0
----
3030
NULL

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL - 37 * + - 80 + + + 70 AS col1, + ( + + CAST ( NULL AS INTEGER ) ) * - 0 * - ( + 69 ) AS col0
----
3030
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT 79 * + COALESCE ( - 99, 43 DIV + 45 DIV - 75 ) + + 66 DIV - 47 - + + 25 * - 29 + - + 73
----
-7170

skipif mysql # not compatible
query I rowsort label-1003
SELECT 79 * + COALESCE ( - 99, 43 / + 45 / - 75 ) + + 66 / - 47 - + + 25 * - 29 + - + 73
----
-7170

query I rowsort
SELECT 82 + 30 AS col1
----
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - SUM( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-1006
SELECT - SUM ( - 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT DISTINCT 13 - NULLIF ( - 68, ( + - CAST( NULL AS SIGNED ) ) * - 41 * 80 + - SUM( 41 ) + 84 + + 83 ) + 86 * + 51
----
4467

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT 13 - NULLIF ( - 68, ( + - CAST ( NULL AS INTEGER ) ) * - 41 * 80 + - SUM ( 41 ) + 84 + + 83 ) + 86 * + 51
----
4467

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

skipif mysql # not compatible
query I rowsort label-1008
SELECT 38 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + 5 + + COUNT( * ) * 43 * + 90 * - 87 + + 14
----
-336671

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 5 + + COUNT ( * ) * 43 * + 90 * - 87 + + 14
----
-336671

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT 18 - + COUNT( * ) + + COUNT( ALL - 89 ) * - + 85 * - ( + COUNT( * ) ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-1010
SELECT 18 - + COUNT ( * ) + + COUNT ( ALL - 89 ) * - + 85 * - ( + COUNT ( * ) ) AS col1
----
102

query II rowsort
SELECT ALL 15 AS col0, 15
----
15
15

query I rowsort
SELECT 98 + 10 col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT ALL 73 AS col1, - COUNT( * ) * - 35 AS col2
----
73
35

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL 73 AS col1, - COUNT ( * ) * - 35 AS col2
----
73
35

query II rowsort
SELECT ( - 50 ) * + 62 AS col1, 71 AS col2
----
-3100
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT 24 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-1015
SELECT 24 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL - COUNT( * ) + + MAX( DISTINCT 72 ) * + 47 AS col2
----
3383

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT 72 ) * + 47 AS col2
----
3383

onlyif mysql # aggregate syntax: 
query II rowsort label-1017
SELECT ALL 84 AS col2, - CASE - + 37 WHEN - 3 THEN + + ( - + 86 ) ELSE NULL END * + COUNT( * ) + + 86 AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-1017
SELECT ALL 84 AS col2, - CASE - + 37 WHEN - 3 THEN + + ( - + 86 ) ELSE NULL END * + COUNT ( * ) + + 86 AS col0
----
84
NULL

query I rowsort
SELECT 40 * - 43
----
-1720

query I rowsort
SELECT ALL - 1 + 50 + ( + 75 ) + 66 * - + 45 + + 33 col2
----
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT ALL + CAST( NULL AS SIGNED ) + - 95 * - + 36 * + - AVG ( - + 27 ) * - 32 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + CAST ( NULL AS INTEGER ) + - 95 * - + 36 * + - AVG ( - + 27 ) * - 32 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 29 + 69
----
98

query I rowsort
SELECT DISTINCT + 28 * + - 48 AS col0
----
-1344

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT 39 + + - 94 + + ( + - COUNT ( * ) ) AS col0
----
-56

query I rowsort
SELECT ALL - 11 * - 77 AS col1
----
847

query I rowsort
SELECT 49 + - - 52
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL - COUNT( * ) + 52 col1
----
51

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - COUNT ( * ) + 52 col1
----
51

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT + - ( + 64 ) DIV SUM( - - 93 ) + - 19 + + 80 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1029
SELECT + - ( + 64 ) / SUM ( - - 93 ) + - 19 + + 80 AS col1
----
61

query I rowsort
SELECT ALL + 91 - + + 93
----
-2

query II rowsort
SELECT + 38 col1, - 31 * + + 84
----
38
-2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1032
SELECT 17 + + 59 - 99 + + 82 DIV 6 * - 95 * - 99 * + 0 + + 4 - + 20 + + 56 DIV + COALESCE ( - 61, + COUNT( * ), + 95 ) * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1032
SELECT 17 + + 59 - 99 + + 82 / 6 * - 95 * - 99 * + 0 + + 4 - + 20 + + 56 / + COALESCE ( - 61, + COUNT ( * ), + 95 ) * COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL - + 72 / 88 * + COUNT( * ) + - CAST( NULL AS SIGNED ) * + - 21 * - COUNT( * ) - + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - + 72 / 88 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - 21 * - COUNT ( * ) - + 46 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ( + - 96 ) DIV - - 32
----
-3

skipif mysql # not compatible
query I rowsort label-1034
SELECT ( + - 96 ) / - - 32
----
-3

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

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

query I rowsort
SELECT CASE + + 59 WHEN - 71 THEN + + 28 ELSE 99 - + 51 * - + 24 + - 36 END * + - 65
----
-83655

query I rowsort
SELECT ALL + 75 * - + 66 + - 64
----
-5014

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1038
SELECT 74 + + NULLIF ( - - CAST( NULL AS DECIMAL ), + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT 74 + + NULLIF ( - - CAST ( NULL AS REAL ), + - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL + - 68 * + MAX( ALL - 72 )
----
4896

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + - 68 * + MAX ( ALL - 72 )
----
4896

query I rowsort
SELECT 95 * + - ( + 62 ) + - 6 + - 71
----
-5967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1041
SELECT + 45, SUM( ALL + ( COALESCE ( 36, - + 26 - 64 ) ) ) / + CAST( NULL AS SIGNED ) AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT + 45, SUM ( ALL + ( COALESCE ( 36, - + 26 - 64 ) ) ) / + CAST ( NULL AS INTEGER ) AS col0
----
45
NULL

query I rowsort
SELECT 22 * - + 84 * + 58 AS col0
----
-107184

query I rowsort
SELECT ALL 28 * 13 AS col0
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT 97 * - 60 - + ( - + 57 ) - - MIN( - - 13 )
----
-5750

skipif mysql # not compatible
query I rowsort label-1044
SELECT 97 * - 60 - + ( - + 57 ) - - MIN ( - - 13 )
----
-5750

query I rowsort
SELECT - 72 + - 51 AS col0
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT DISTINCT + COUNT( * ) + + 38 DIV COUNT( * ) DIV + + COUNT( DISTINCT + - 74 ) col1, + COUNT( * ) AS col0
----
39
1

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT + COUNT ( * ) + + 38 / COUNT ( * ) / + + COUNT ( DISTINCT + - 74 ) col1, + COUNT ( * ) AS col0
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL COUNT( * ) + - SUM( 17 )
----
-16

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL COUNT ( * ) + - SUM ( 17 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT ( + + 21 ) + + MAX( DISTINCT 1 )
----
22

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT ( + + 21 ) + + MAX ( DISTINCT 1 )
----
22

query I rowsort
SELECT ALL 2 + 76
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1050
SELECT ALL 13 DIV - CAST( - 81 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL 13 / - CAST ( - 81 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( - 61 ) + - 53 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT COALESCE ( + ( + + ( + 24 ) ), - COALESCE ( + MAX( ( - 66 ) ), - 31 + 64 ) + + 19, 74 * - COUNT( * ) ) + - + NULLIF ( - - 17, + 57 )
----
7

skipif mysql # not compatible
query I rowsort label-1052
SELECT COALESCE ( + ( + + ( + 24 ) ), - COALESCE ( + MAX ( ( - 66 ) ), - 31 + 64 ) + + 19, 74 * - COUNT ( * ) ) + - + NULLIF ( - - 17, + 57 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - MIN( ALL - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-1053
SELECT - MIN ( ALL - 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT 48 * 16 * - 50 * + COUNT( * ) * - 35 * + 30
----
40320000

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT 48 * 16 * - 50 * + COUNT ( * ) * - 35 * + 30
----
40320000

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT CAST( 76 AS SIGNED ) + + 33 + + 19 * + - COUNT( * ) * 65 * COALESCE ( 22, - + 93 * + 84 * + 63 * - 72 ) * - 30 * + + ( 52 ) + 29 + + - 54 + MIN( + 61 ) * - - 90 + - 92 DIV ( 10 ) + - + 7 + 17 * 94
----
42392356

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT CAST ( 76 AS INTEGER ) + + 33 + + 19 * + - COUNT ( * ) * 65 * COALESCE ( 22, - + 93 * + 84 * + 63 * - 72 ) * - 30 * + + ( 52 ) + 29 + + - 54 + MIN ( + 61 ) * - - 90 + - 92 / ( 10 ) + - + 7 + 17 * 94
----
42392356

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - NULLIF ( + + 88, - COALESCE ( SUM( CASE + - 71 WHEN 54 THEN - 80 ELSE NULL END ), - + 25, 10 ) - - 53 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1057
SELECT - NULLIF ( + + 88, - COALESCE ( SUM ( CASE + - 71 WHEN 54 THEN - 80 ELSE NULL END ), - + 25, 10 ) - - 53 ) AS col0
----
-88

query I rowsort
SELECT - 4 * + 28 * + 3 AS col0
----
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-1059
SELECT ALL + CASE - 49 WHEN - - 60 + 34 THEN 15 WHEN COUNT( * ) / + - 57 * + COUNT( + 26 ) + + - 69 THEN 37 WHEN - COUNT( + - 17 ) * + + AVG ( ALL - - 59 ) THEN + + 20 * - ( + 25 ) + 95 ELSE NULL END AS col2, - COUNT( * ) + + 42 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1059
SELECT ALL + CASE - 49 WHEN - - 60 + 34 THEN 15 WHEN COUNT ( * ) / + - 57 * + COUNT ( + 26 ) + + - 69 THEN 37 WHEN - COUNT ( + - 17 ) * + + AVG ( ALL - - 59 ) THEN + + 20 * - ( + 25 ) + 95 ELSE NULL END AS col2, - COUNT ( * ) + + 42 AS col0
----
NULL
41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1060
SELECT DISTINCT 70 * - 78 - - 85 * - CAST( NULL AS DECIMAL ) AS col2, - 50
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-1060
SELECT DISTINCT 70 * - 78 - - 85 * - CAST ( NULL AS REAL ) AS col2, - 50
----
NULL
-50

query II rowsort
SELECT ALL - + 45 * - 33 col1, 76 * + 1 AS col2
----
1485
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1062
SELECT ALL - MAX( - + NULLIF ( + 27, + CAST( - 60 AS SIGNED ) ) ) * + + ( - - 28 ), + NULLIF ( - - 57, - 56 ) AS col0
----
756
57

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - MAX ( - + NULLIF ( + 27, + CAST ( - 60 AS INTEGER ) ) ) * + + ( - - 28 ), + NULLIF ( - - 57, - 56 ) AS col0
----
756
57

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

query I rowsort
SELECT DISTINCT - - 78 * - 13
----
-1014

query I rowsort
SELECT - + 15 * + + 84
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT COALESCE ( - + 87, - SUM( + 81 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-1066
SELECT COALESCE ( - + 87, - SUM ( + 81 ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT - COALESCE ( + 4, 13 + 92 * ( - CASE + + 75 WHEN - 71 THEN 52 ELSE 32 END ) * CAST( NULL AS SIGNED ), - + 84 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1067
SELECT - COALESCE ( + 4, 13 + 92 * ( - CASE + + 75 WHEN - 71 THEN 52 ELSE 32 END ) * CAST ( NULL AS INTEGER ), - + 84 ) AS col2
----
-4

query I rowsort
SELECT - 43 * 46 AS col0
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + - COALESCE ( + MAX( - - 57 ), + + 75 + + 84 + + 13 - + + 21 * 93 * - 93 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + - COALESCE ( + MAX ( - - 57 ), + + 75 + + 84 + + 13 - + + 21 * 93 * - 93 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + - MIN( DISTINCT - + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1070
SELECT + - MIN ( DISTINCT - + 79 ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT - - ( + - COALESCE ( CASE + 98 WHEN - + 50 - + - NULLIF ( - - 3, + - 89 ) + 8 * + 12 THEN NULL WHEN + CAST( 27 AS SIGNED ) THEN - 33 * + 84 - + 16 * 96 / + ( 81 ) + 28 WHEN + ( + COUNT( * ) ) THEN + 71 END, 87 ) ) + + + CAST( NULL AS SIGNED ) - + 18 * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT - - ( + - COALESCE ( CASE + 98 WHEN - + 50 - + - NULLIF ( - - 3, + - 89 ) + 8 * + 12 THEN NULL WHEN + CAST ( 27 AS INTEGER ) THEN - 33 * + 84 - + 16 * 96 / + ( 81 ) + 28 WHEN + ( + COUNT ( * ) ) THEN + 71 END, 87 ) ) + + + CAST ( NULL AS INTEGER ) - + 18 * 46 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1072
SELECT + - 0 / + + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1073
SELECT ALL - CAST( NULL AS SIGNED ) * + 63 * COALESCE ( 83, - CAST( NULL AS DECIMAL ) + + - 84 * - COUNT( - 70 ) * + + 78 / + 83 ) + + + 13 / + NULLIF ( 21, + 8 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL - CAST ( NULL AS INTEGER ) * + 63 * COALESCE ( 83, - CAST ( NULL AS REAL ) + + - 84 * - COUNT ( - 70 ) * + + 78 / + 83 ) + + + 13 / + NULLIF ( 21, + 8 ) col2
----
NULL

query I rowsort
SELECT - + 89 + 76 + - 82 * + - NULLIF ( + - 98, + - 92 ) AS col2
----
-8049

query I rowsort
SELECT ALL 93 * + 38 + - - ( - 5 ) AS col1
----
3529

query I rowsort
SELECT 18 * - + 90 + ( - + 90 ) * 77 AS col1
----
-8550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1077
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( + 50 ) + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( + 50 ) + + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT + COALESCE ( + - COUNT( * ), - 51, 57 * + ( ( + 87 ) ) + ( - 73 ) * + 28 * + 58 * - - 57, - 70 ) DIV + + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), - 51, 57 * + ( ( + 87 ) ) + ( - 73 ) * + 28 * + 58 * - - 57, - 70 ) / + + 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - MAX( - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1079
SELECT - MAX ( - 98 )
----
98

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

query I rowsort
SELECT + 84 - + 68 + 85
----
101

query I rowsort
SELECT DISTINCT - 37 + CASE - 96 WHEN - 40 THEN - 98 ELSE NULL END / 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL ( + 52 ) + CASE + - 11 WHEN - MIN( 8 ) - - 36 / - 92 + + + ( 75 ) * + COUNT( * ) * + NULLIF ( - MIN( DISTINCT - 67 ), + 38 - - 68 - 76 + - 15 + + + 60 / - 37 ) * - + 0 THEN + 16 WHEN 86 * + 63 + + 81 - 47 THEN NULL ELSE NULL END + + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL ( + 52 ) + CASE + - 11 WHEN - MIN ( 8 ) - - 36 / - 92 + + + ( 75 ) * + COUNT ( * ) * + NULLIF ( - MIN ( DISTINCT - 67 ), + 38 - - 68 - 76 + - 15 + + + 60 / - 37 ) * - + 0 THEN + 16 WHEN 86 * + 63 + + 81 - 47 THEN NULL ELSE NULL END + + COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + 82 - - 93 * - + 87
----
-8057

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

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

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

query I rowsort
SELECT + 0 + - - 47 * - + 93 AS col1
----
-4371

onlyif mysql # DIV for integer division: 
query II rowsort label-1088
SELECT ALL - 20 - 80 DIV - 84 col0, + 11
----
-20
11

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL - 20 - 80 / - 84 col0, + 11
----
-20
11

query I rowsort
SELECT ALL 88 - ( 87 ) col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - MIN( DISTINCT 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1091
SELECT - MIN ( DISTINCT 48 )
----
-48

query II rowsort
SELECT + 27, 27
----
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL - COUNT( * ) * - - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - COUNT ( * ) * - - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - - 5 * COUNT( ALL + 16 )
----
5

skipif mysql # not compatible
query I rowsort label-1094
SELECT - - 5 * COUNT ( ALL + 16 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT ALL 34 * + COUNT( * ) * ( - 52 ) * - + 70 AS col1, 67 col2
----
123760
67

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL 34 * + COUNT ( * ) * ( - 52 ) * - + 70 AS col1, 67 col2
----
123760
67

query I rowsort
SELECT + 78 + + 36 AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1097
SELECT DISTINCT + COUNT( * ) col0, MIN( + 46 ) * + - COUNT( DISTINCT 14 ) / 74 - + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1097
SELECT DISTINCT + COUNT ( * ) col0, MIN ( + 46 ) * + - COUNT ( DISTINCT 14 ) / 74 - + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT + 37 DIV - 59 + - + 87 * + + 96 + + 36 + + 66 + + 57
----
-8193

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + 37 / - 59 + - + 87 * + + 96 + + 36 + + 66 + + 57
----
-8193

query I rowsort
SELECT - + 78 + - 46 + - + 18 AS col2
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT ALL + + 83 DIV - - 38 + + MIN( + - 72 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + + 83 / - - 38 + + MIN ( + - 72 ) AS col2
----
-70

query I rowsort
SELECT COALESCE ( - 21, - 37 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT - - 1 * + COALESCE ( + COUNT( * ), + ( - 52 ), + COALESCE ( - 32, 79 * 91 * - COUNT( * ) ) ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - - 1 * + COALESCE ( + COUNT ( * ), + ( - 52 ), + COALESCE ( - 32, 79 * 91 * - COUNT ( * ) ) ) + 85
----
86

query I rowsort
SELECT DISTINCT + NULLIF ( + 52, + 45 / + 98 * - - 25 ) * - + 82 - + + 28 + - 38 * - - 98 * - 72
----
263836

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT - 7 * MIN( DISTINCT + + 12 ) * - 89 * + + 82 AS col0, - 99 AS col1
----
613032
-99

skipif mysql # not compatible
query II rowsort label-1104
SELECT - 7 * MIN ( DISTINCT + + 12 ) * - 89 * + + 82 AS col0, - 99 AS col1
----
613032
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT COUNT ( * ) * 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL + 19 * - 69 + - + COUNT( * ) AS col1
----
-1312

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL + 19 * - 69 + - + COUNT ( * ) AS col1
----
-1312

query II rowsort
SELECT DISTINCT + 4, NULLIF ( - 21, + + 63 + - 4 ) AS col0
----
4
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT NULLIF ( + - SUM( DISTINCT - ( + CAST( - 65 AS SIGNED ) ) ), + 77 )
----
-65

skipif mysql # not compatible
query I rowsort label-1108
SELECT NULLIF ( + - SUM ( DISTINCT - ( + CAST ( - 65 AS INTEGER ) ) ), + 77 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1109
SELECT - 60 + - + COUNT( DISTINCT + + 83 ) * + 89 + + NULLIF ( COUNT( * ), + 7 + 35 ) - 70 AS col1, 78 DIV - 87 + - - 53 DIV 90 * + 24 col2
----
-218
0

skipif mysql # not compatible
query II rowsort label-1109
SELECT - 60 + - + COUNT ( DISTINCT + + 83 ) * + 89 + + NULLIF ( COUNT ( * ), + 7 + 35 ) - 70 AS col1, 78 / - 87 + - - 53 / 90 * + 24 col2
----
-218
0

query I rowsort
SELECT NULLIF ( + 62, + + 75 ) AS col0
----
62

query I rowsort
SELECT - 48 * - + 2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL + 78 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + 78 / 40 AS col1
----
1

query I rowsort
SELECT 42 * + 88 * - + ( + 58 )
----
-214368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1114
SELECT DISTINCT + CAST( + + 8 AS SIGNED ) DIV + - CAST( + 12 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + CAST ( + + 8 AS INTEGER ) / + - CAST ( + 12 AS INTEGER )
----
0

query I rowsort
SELECT ALL 12 * - 12 * 45 AS col2
----
-6480

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

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

query I rowsort
SELECT 68 * + + 19
----
1292

query I rowsort
SELECT 42 + + 3
----
45

query II rowsort
SELECT ALL 1, 16 * + - 18 * - 20 * - + COALESCE ( 58, - - 34 ) + 68 col0
----
1
-334012

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT 84 + + 52 + + - 70 DIV - - 23 + 31 col1
----
164

skipif mysql # not compatible
query I rowsort label-1120
SELECT 84 + + 52 + + - 70 / - - 23 + 31 col1
----
164

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

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

query II rowsort
SELECT ALL + 67 AS col1, 97 col1
----
67
97

query II rowsort
SELECT + 56, + 67 * + + 82 AS col2
----
56
5494

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT DISTINCT - NULLIF ( - 20, + CAST( NULL AS SIGNED ) + - COALESCE ( 68, - - 63 ) * COALESCE ( 96, 56, + 58 ) + - MAX( DISTINCT - ( - + ( + 23 ) ) ) * - + 16 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - NULLIF ( - 20, + CAST ( NULL AS INTEGER ) + - COALESCE ( 68, - - 63 ) * COALESCE ( 96, 56, + 58 ) + - MAX ( DISTINCT - ( - + ( + 23 ) ) ) * - + 16 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1126
SELECT ALL - SUM( - + 19 ) + - 79 + + - 91 + + CASE ( - + 33 ) WHEN - 0 THEN 60 ELSE + 16 END DIV - 75 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - SUM ( - + 19 ) + - 79 + + - 91 + + CASE ( - + 33 ) WHEN - 0 THEN 60 ELSE + 16 END / - 75 AS col2
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1127
SELECT DISTINCT 63 AS col1, ( CAST( NULL AS SIGNED ) ) col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1127
SELECT DISTINCT 63 AS col1, ( CAST ( NULL AS INTEGER ) ) col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ( - 15 ) * COUNT( * ) * + 50
----
-750

skipif mysql # not compatible
query I rowsort label-1128
SELECT ( - 15 ) * COUNT ( * ) * + 50
----
-750

query I rowsort
SELECT + 98 * + + 66 AS col0
----
6468

query I rowsort
SELECT ALL 68 + + 48 * + 31
----
1556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT - CAST( - ( - COALESCE ( 3, - + 18 ) ) AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1131
SELECT - CAST ( - ( - COALESCE ( 3, - + 18 ) ) AS INTEGER ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT - 25 DIV 85 * - 67 * + - 20 - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-1132
SELECT - 25 / 85 * - 67 * + - 20 - + 96
----
-96

query I rowsort
SELECT ALL 95 + - 42
----
53

query I rowsort
SELECT 49 * + 95 AS col1
----
4655

query II rowsort
SELECT 10, - 91 * 69 * 29 AS col2
----
10
-182091

query I rowsort
SELECT ALL 8 + + 9 * 61 AS col2
----
557

query II rowsort
SELECT 35 AS col1, 5
----
35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT - 25 * - COUNT( * ) + + 47 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - 25 * - COUNT ( * ) + + 47 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT DISTINCT 79 + - + COALESCE ( - CAST( 53 AS SIGNED ), - 68 ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT 79 + - + COALESCE ( - CAST ( 53 AS INTEGER ), - 68 ) AS col2
----
132

query I rowsort
SELECT 37 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT 55 * - ( - ( - COUNT( * ) ) ) + - + 30 + + + 68
----
-17

skipif mysql # not compatible
query I rowsort label-1141
SELECT 55 * - ( - ( - COUNT ( * ) ) ) + - + 30 + + + 68
----
-17

query I rowsort
SELECT ALL 90 + + - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT COALESCE ( 92, + 20 ) * + CASE - - 61 WHEN 50 + + COUNT( * ) * + 17 THEN + - 42 * 58 * 3 - + 69 * + - 53 + - MIN( + 6 ) + - 29 * - 37 * 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT COALESCE ( 92, + 20 ) * + CASE - - 61 WHEN 50 + + COUNT ( * ) * + 17 THEN + - 42 * 58 * 3 - + 69 * + - 53 + - MIN ( + 6 ) + - 29 * - 37 * 32 ELSE NULL END
----
NULL

query I rowsort
SELECT 33 + 84 AS col1
----
117

query I rowsort
SELECT ALL + 92 * ( 9 )
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ( ( SUM( DISTINCT + 78 ) ) ) + 16 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1146
SELECT ( ( SUM ( DISTINCT + 78 ) ) ) + 16 AS col1
----
94

query I rowsort
SELECT ALL + 83 * - 38 col1
----
-3154

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

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

query I rowsort
SELECT DISTINCT ( - + 99 ) * 72 * + 94 + + 83 AS col1
----
-669949

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL - 20 - - 45 * 32 + - + COUNT( * ) * + 38
----
1382

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 20 - - 45 * 32 + - + COUNT ( * ) * + 38
----
1382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT ALL CAST( + COALESCE ( 54, - - 18 / + 25 * 7 * - 27 + - MIN( ALL - + 31 ) ) AS SIGNED ) * + 69
----
3726

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL CAST ( + COALESCE ( 54, - - 18 / + 25 * 7 * - 27 + - MIN ( ALL - + 31 ) ) AS INTEGER ) * + 69
----
3726

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT CAST( NULL AS SIGNED ) * - ( NULLIF ( + ( - - 69 ), - - 19 / - + 56 - - 16 ) ) / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT CAST ( NULL AS INTEGER ) * - ( NULLIF ( + ( - - 69 ), - - 19 / - + 56 - - 16 ) ) / 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT COUNT( * ) + + 20 * - MIN( DISTINCT - 32 ) AS col2
----
641

skipif mysql # not compatible
query I rowsort label-1154
SELECT COUNT ( * ) + + 20 * - MIN ( DISTINCT - 32 ) AS col2
----
641

query II rowsort
SELECT 77 + 21 * + - CASE - 10 WHEN - 40 THEN - + COALESCE ( + + 37, - ( + 61 ) - + AVG ( DISTINCT + - 83 ) + + 64 ) + + + 32 WHEN - 99 / 20 * + 92 + 72 THEN NULL END, + 45 * + 4 * + + 57 * - 78 AS col1
----
NULL
-800280

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT MIN( DISTINCT - 16 ) + - COUNT( DISTINCT - 54 )
----
-17

skipif mysql # not compatible
query I rowsort label-1156
SELECT MIN ( DISTINCT - 16 ) + - COUNT ( DISTINCT - 54 )
----
-17

query I rowsort
SELECT 67 + 44 AS col1
----
111

query I rowsort
SELECT 3 * + 89
----
267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT DISTINCT - + 63 DIV - + MAX( ALL - 66 ) * + 86
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - + 63 / - + MAX ( ALL - 66 ) * + 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT - COUNT( * ) + 52 * + 1 * 0 / + + 71 / COUNT( * ) + + COUNT( * ) + 29 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT - COUNT ( * ) + 52 * + 1 * 0 / + + 71 / COUNT ( * ) + + COUNT ( * ) + 29 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1161
SELECT + 46 DIV - - NULLIF ( 7, 49 * 24 - - 44 DIV + SUM( 60 ) + + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-1161
SELECT + 46 / - - NULLIF ( 7, 49 * 24 - - 44 / + SUM ( 60 ) + + COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL - 72 + - + COUNT( * ) + + 12 col1
----
-61

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 72 + - + COUNT ( * ) + + 12 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + + 51 * + - COUNT( * ) - - ( - - 48 )
----
-3

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + + 51 * + - COUNT ( * ) - - ( - - 48 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT 94 DIV - + 87 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1164
SELECT 94 / - + 87 AS col2
----
-1

query II rowsort
SELECT DISTINCT - - 21 + 63 AS col0, 29
----
84
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL + + 59 * + - COUNT( * ) * - - 66
----
-3894

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + + 59 * + - COUNT ( * ) * - - 66
----
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL + - 67 * - MAX( 3 ) col0
----
201

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + - 67 * - MAX ( 3 ) col0
----
201

query I rowsort
SELECT + 62 + + 44 * 16 col1
----
766

query I rowsort
SELECT ALL - 32 * + + 25 AS col1
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - 50 * - 42 * + 48 + - COUNT( * ) + - + 20 * + - CASE - 61 WHEN - 26 * - 47 + - NULLIF ( 4, + 74 ) + - 37 - + + 63 THEN - 13 + - + CASE + 95 WHEN 80 + 42 + ( - - COUNT( * ) ) / 90 THEN 59 * + 89 WHEN 80 THEN NULL END * + 37 ELSE + + 39 * CASE + 99 + - 55 WHEN 97 THEN NULL ELSE - 30 END END AS col0
----
77399

skipif mysql # not compatible
query I rowsort label-1170
SELECT - 50 * - 42 * + 48 + - COUNT ( * ) + - + 20 * + - CASE - 61 WHEN - 26 * - 47 + - NULLIF ( 4, + 74 ) + - 37 - + + 63 THEN - 13 + - + CASE + 95 WHEN 80 + 42 + ( - - COUNT ( * ) ) / 90 THEN 59 * + 89 WHEN 80 THEN NULL END * + 37 ELSE + + 39 * CASE + 99 + - 55 WHEN 97 THEN NULL ELSE - 30 END END AS col0
----
77399

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL + - COUNT( ALL - 68 ) * COUNT( * ) + 75 + - - COUNT( * ) + + 91 - - + ( 31 ) - - - COUNT( ALL - 60 ) + - + 10
----
186

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + - COUNT ( ALL - 68 ) * COUNT ( * ) + 75 + - - COUNT ( * ) + + 91 - - + ( 31 ) - - - COUNT ( ALL - 60 ) + - + 10
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL 49 * + ( - COUNT( DISTINCT + + 35 ) ) * 59
----
-2891

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL 49 * + ( - COUNT ( DISTINCT + + 35 ) ) * 59
----
-2891

query I rowsort
SELECT 52 + - 38 AS col1
----
14

query I rowsort
SELECT 23 * + ( + 26 )
----
598

query I rowsort
SELECT 59 * - 59
----
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT 84 * + MIN( ALL 10 )
----
840

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT 84 * + MIN ( ALL 10 )
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1177
SELECT + 66, 75 * - 95 + + + CAST( 49 AS SIGNED ) * + 38 * - + 99 * - 86 * - 18 + 54 col2
----
66
-285362295

skipif mysql # not compatible
query II rowsort label-1177
SELECT + 66, 75 * - 95 + + + CAST ( 49 AS INTEGER ) * + 38 * - + 99 * - 86 * - 18 + 54 col2
----
66
-285362295

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

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

query I rowsort
SELECT + 43 * + 69 AS col1
----
2967

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT DISTINCT 48 * - COUNT( ALL - 55 ) * - NULLIF ( 15, 99 ), 9 + ( - 48 ) + + 1 col2
----
720
-38

skipif mysql # not compatible
query II rowsort label-1180
SELECT DISTINCT 48 * - COUNT ( ALL - 55 ) * - NULLIF ( 15, 99 ), 9 + ( - 48 ) + + 1 col2
----
720
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT + 77 * + CASE + - 31 WHEN - - 13 * + CAST( + - 49 AS SIGNED ) THEN NULL ELSE - 77 END
----
-5929

skipif mysql # not compatible
query I rowsort label-1181
SELECT + 77 * + CASE + - 31 WHEN - - 13 * + CAST ( + - 49 AS INTEGER ) THEN NULL ELSE - 77 END
----
-5929

query II rowsort
SELECT ALL + 97 col2, - 75
----
97
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT MAX( DISTINCT CASE - - ( + 24 ) WHEN + - 65 / + - 95 THEN - 39 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT MAX ( DISTINCT CASE - - ( + 24 ) WHEN + - 65 / + - 95 THEN - 39 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1184
SELECT + 7 DIV NULLIF ( + + 74, + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 7 / NULLIF ( + + 74, + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1185
SELECT COUNT( + - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT COUNT ( + - CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + CASE - + 67 WHEN 2 * - 28 * - 45 - - + ( + COALESCE ( + 25, - 57 * 52 ) ) + + COALESCE ( - 77, 85 ) + 38 + + 19 THEN NULL WHEN 91 * + + SUM( - 34 ) THEN NULL WHEN - COUNT( DISTINCT - + 95 ) * + + 96 THEN - CASE + 82 WHEN - - 42 THEN + - 24 END * 75 WHEN - - 71 * - + 25 * - COALESCE ( - 87 * + 27, 26 * - 71, 80 * 62 ) + + 44 THEN NULL END * 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT + CASE - + 67 WHEN 2 * - 28 * - 45 - - + ( + COALESCE ( + 25, - 57 * 52 ) ) + + COALESCE ( - 77, 85 ) + 38 + + 19 THEN NULL WHEN 91 * + + SUM ( - 34 ) THEN NULL WHEN - COUNT ( DISTINCT - + 95 ) * + + 96 THEN - CASE + 82 WHEN - - 42 THEN + - 24 END * 75 WHEN - - 71 * - + 25 * - COALESCE ( - 87 * + 27, 26 * - 71, 80 * 62 ) + + 44 THEN NULL END * 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT + CAST( 96 AS SIGNED ) * 73
----
7008

skipif mysql # not compatible
query I rowsort label-1187
SELECT + CAST ( 96 AS INTEGER ) * 73
----
7008

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1189
SELECT ALL 99, + 15 DIV + + 82 * + 90 col1
----
99
0

skipif mysql # not compatible
query II rowsort label-1189
SELECT ALL 99, + 15 / + + 82 * + 90 col1
----
99
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL ( + 2 ) + + 36 DIV - - 98 * - - 38
----
2

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL ( + 2 ) + + 36 / - - 98 * - - 38
----
2

query I rowsort
SELECT ALL + 43 + 65 + + 41
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT - + COUNT( * ) AS col1, 35 * + 71 + - - 98 AS col0
----
-1
2583

skipif mysql # not compatible
query II rowsort label-1194
SELECT - + COUNT ( * ) AS col1, 35 * + 71 + - - 98 AS col0
----
-1
2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT - 67 + - CAST( NULL AS SIGNED ) - - - 23 * + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 67 + - CAST ( NULL AS INTEGER ) - - - 23 * + 53 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1196
SELECT + COUNT( * ) AS col0, + COALESCE ( - 62, 76 - + 8 - 41 * + 18 DIV + CAST( 77 AS SIGNED ) + 42, - + 19 * + ( + ( + SUM( DISTINCT - 96 ) ) ) ) * - 58
----
1
3596

skipif mysql # not compatible
query II rowsort label-1196
SELECT + COUNT ( * ) AS col0, + COALESCE ( - 62, 76 - + 8 - 41 * + 18 / + CAST ( 77 AS INTEGER ) + 42, - + 19 * + ( + ( + SUM ( DISTINCT - 96 ) ) ) ) * - 58
----
1
3596

query I rowsort
SELECT - + 66 + - 47 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL - + MAX( ALL - - 53 ) + - CASE - 67 WHEN + 5 THEN - - 93 ELSE - - 11 END AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - + MAX ( ALL - - 53 ) + - CASE - 67 WHEN + 5 THEN - - 93 ELSE - - 11 END AS col2
----
-64

query I rowsort
SELECT DISTINCT - 27 + - 98 * + + 76 * + 9
----
-67059

query I rowsort
SELECT - - 22 - + 3
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1201
SELECT DISTINCT - + CAST( + + MIN( 40 ) AS SIGNED ) + 18 AS col2, 62 * - + COALESCE ( - - 77, + 89 ) AS col0
----
-22
-4774

skipif mysql # not compatible
query II rowsort label-1201
SELECT DISTINCT - + CAST ( + + MIN ( 40 ) AS INTEGER ) + 18 AS col2, 62 * - + COALESCE ( - - 77, + 89 ) AS col0
----
-22
-4774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - ( + COUNT( * ) ) * - + CASE + ( - 84 ) WHEN - 88 THEN 56 END + 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT - ( + COUNT ( * ) ) * - + CASE + ( - 84 ) WHEN - 88 THEN 56 END + 27 col2
----
NULL

query I rowsort
SELECT ALL - + 19 * 67
----
-1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT - 83 DIV + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1205
SELECT - 83 / + COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT - COUNT( * ) * - 15 * + + 20 * - - 81
----
24300

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - COUNT ( * ) * - 15 * + + 20 * - - 81
----
24300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1207
SELECT ALL + + 79 AS col0, + 57 * NULLIF ( + 32, + + 96 + + CAST( NULL AS DECIMAL ) ) * - CASE - + 35 WHEN MAX( ALL - 41 ) THEN MIN( ALL + CAST( + CAST( + - 14 AS SIGNED ) AS SIGNED ) ) * + 57 + + - 68 WHEN + - 42 THEN - 56 END col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL + + 79 AS col0, + 57 * NULLIF ( + 32, + + 96 + + CAST ( NULL AS REAL ) ) * - CASE - + 35 WHEN MAX ( ALL - 41 ) THEN MIN ( ALL + CAST ( + CAST ( + - 14 AS INTEGER ) AS INTEGER ) ) * + 57 + + - 68 WHEN + - 42 THEN - 56 END col0
----
79
NULL

query I rowsort
SELECT ( - COALESCE ( - 1, 68 * - 22 ) )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1210
SELECT 29 * + 47 * + - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 83 + ( 10 ) / - + 1 + + CAST( - 71 AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT 29 * + 47 * + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 83 + ( 10 ) / - + 1 + + CAST ( - 71 AS INTEGER ) * 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT - 83 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 83 / - 93 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT + 37 DIV + + 54 * - + 61 + 89 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1212
SELECT + 37 / + + 54 * - + 61 + 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + MIN( DISTINCT - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1213
SELECT + MIN ( DISTINCT - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + COUNT( * ) * + - CASE - - 51 WHEN - + 58 THEN NULL WHEN + + 8 THEN + 10 ELSE - 88 * - - 70 * + + 23 END
----
141680

skipif mysql # not compatible
query I rowsort label-1214
SELECT + COUNT ( * ) * + - CASE - - 51 WHEN - + 58 THEN NULL WHEN + + 8 THEN + 10 ELSE - 88 * - - 70 * + + 23 END
----
141680

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL 68 * + 32 + + + MAX( - 94 )
----
2082

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 68 * + 32 + + + MAX ( - 94 )
----
2082

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT - 36 + - 49 DIV - + 54
----
-36

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 36 + - 49 / - + 54
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL 47 * NULLIF ( - 44, + - 42 * CAST( NULL AS SIGNED ) * - - 60 + - + 88 ) AS col1
----
-2068

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 47 * NULLIF ( - 44, + - 42 * CAST ( NULL AS INTEGER ) * - - 60 + - + 88 ) AS col1
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + - - 26 + + 7
----
32

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - - 26 + + 7
----
32

query I rowsort
SELECT CASE WHEN NOT 5 >= - 0 / 41 + - AVG ( DISTINCT - 74 ) THEN + 37 ELSE - 79 END
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT COUNT( * ) * - COUNT( 61 ) + - + 82 * + + 47 + + 92 AS col1
----
-3763

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT COUNT ( * ) * - COUNT ( 61 ) + - + 82 * + + 47 + + 92 AS col1
----
-3763

query I rowsort
SELECT DISTINCT 52 * + ( - 56 ) AS col2
----
-2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL + + ( + + 77 ) * - 51 + + + CAST( 71 AS SIGNED ) + + COUNT( * ) * + + 54 + 88 AS col2
----
-3714

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + + ( + + 77 ) * - 51 + + + CAST ( 71 AS INTEGER ) + + COUNT ( * ) * + + 54 + 88 AS col2
----
-3714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1223
SELECT 86 * - + 95 / + CASE - ( + ( SUM( 12 ) ) ) WHEN - 1 THEN NULL WHEN - 69 / - - CAST( NULL AS DECIMAL ) - - 21 * + 68 * + - 82 THEN + 63 END + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT 86 * - + 95 / + CASE - ( + ( SUM ( 12 ) ) ) WHEN - 1 THEN NULL WHEN - 69 / - - CAST ( NULL AS REAL ) - - 21 * + 68 * + - 82 THEN + 63 END + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT - 20 * COUNT( ALL - NULLIF ( - 57, 79 ) ) + + 72 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - 20 * COUNT ( ALL - NULLIF ( - 57, 79 ) ) + + 72 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT - 86 DIV - 40 + COUNT( * ) * 82
----
84

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 86 / - 40 + COUNT ( * ) * 82
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + 17 + + 10 + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1226
SELECT + 17 + + 10 + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT DISTINCT 57 * - + 16 + + + 33
----
-879

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - CAST ( NULL AS REAL ) - + 49 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT - 37 * + NULLIF ( NULLIF ( + 42, - 39 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + 63 + - COALESCE ( - CASE - 72 WHEN 59 THEN NULL ELSE - + 22 / 78 - COUNT( * ) END, + 93, + + CAST( - MIN( + - 53 ) AS SIGNED ) ) - 95 + - - CAST( NULL AS SIGNED ) ), - COUNT( * ) ) col2
----
-1554

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - 37 * + NULLIF ( NULLIF ( + 42, - 39 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + 63 + - COALESCE ( - CASE - 72 WHEN 59 THEN NULL ELSE - + 22 / 78 - COUNT ( * ) END, + 93, + + CAST ( - MIN ( + - 53 ) AS INTEGER ) ) - 95 + - - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) col2
----
-1554

query I rowsort
SELECT DISTINCT + 63 - + 97 * + + 10 AS col2
----
-907

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT ALL COUNT( * ) * - 98, + ( + + 17 ) * - 60 * - 61 + + - 18 * COUNT( * ) AS col2
----
-98
62202

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL COUNT ( * ) * - 98, + ( + + 17 ) * - 60 * - 61 + + - 18 * COUNT ( * ) AS col2
----
-98
62202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT + - 99 + 74 * + + COALESCE ( + 51, - CAST( NULL AS SIGNED ) * COUNT( * ) + 48 + + 99 ) - + 93 * - - ( + 13 )
----
2466

skipif mysql # not compatible
query I rowsort label-1234
SELECT + - 99 + 74 * + + COALESCE ( + 51, - CAST ( NULL AS INTEGER ) * COUNT ( * ) + 48 + + 99 ) - + 93 * - - ( + 13 )
----
2466

query I rowsort
SELECT - NULLIF ( - 93, - 95 ) + - - 52
----
145

query I rowsort
SELECT 75 * 8 AS col2
----
600

query I rowsort
SELECT + 7 * 76
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT DISTINCT + 51 DIV + NULLIF ( + 71, 89 )
----
0

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + 51 / + NULLIF ( + 71, 89 )
----
0

query II rowsort
SELECT DISTINCT 57 col1, 3 * + 8
----
57
24

query I rowsort
SELECT ALL + 33 * 59
----
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + 22 * - 23 + SUM( ALL 15 )
----
-491

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 22 * - 23 + SUM ( ALL 15 )
----
-491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT ( + - SUM( DISTINCT + - 42 ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT ( + - SUM ( DISTINCT + - 42 ) ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL - MIN( + ( - - 31 ) ) * + + 46 AS col2
----
-1426

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - MIN ( + ( - - 31 ) ) * + + 46 AS col2
----
-1426

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ( - + 13 ) * + 62 + + - COALESCE ( - - 31, + 75 * - COUNT( * ) )
----
-837

skipif mysql # not compatible
query I rowsort label-1245
SELECT ( - + 13 ) * + 62 + + - COALESCE ( - - 31, + 75 * - COUNT ( * ) )
----
-837

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1246
SELECT 99 AS col2, CAST( + 81 AS SIGNED ) * - 99 - + - NULLIF ( - 10, - - ( - + ( - 21 ) ) ) * 13 / CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-1246
SELECT 99 AS col2, CAST ( + 81 AS INTEGER ) * - 99 - + - NULLIF ( - 10, - - ( - + ( - 21 ) ) ) * 13 / CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

query I rowsort
SELECT 51 * - 0 AS col2
----
0

query I rowsort
SELECT ALL - 61 + 22 + 34 + + 50
----
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1250
SELECT + 83 * - - 21 + - CAST( NULL AS SIGNED ) * 71 * + 83 AS col0, - 35 col1
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-1250
SELECT + 83 * - - 21 + - CAST ( NULL AS INTEGER ) * 71 * + 83 AS col0, - 35 col1
----
NULL
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL - 34 + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - 34 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-35

query I rowsort
SELECT 77 * + 69 AS col0
----
5313

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT ALL - 62 + + - ( COUNT( * ) ), - 8 AS col2
----
-63
-8

skipif mysql # not compatible
query II rowsort label-1253
SELECT ALL - 62 + + - ( COUNT ( * ) ), - 8 AS col2
----
-63
-8

query II rowsort
SELECT + 42 AS col1, 40 AS col0
----
42
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1255
SELECT ALL COALESCE ( 24, COUNT( * ) DIV + 49 * - 37 + - 57 ) + + 28 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL COALESCE ( 24, COUNT ( * ) / + 49 * - 37 + - 57 ) + + 28 AS col0
----
52

query I rowsort
SELECT ALL - ( + - 24 ) col2
----
24

query I rowsort
SELECT 67 * + 50
----
3350

query I rowsort
SELECT 2 * + 39 col1
----
78

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

query I rowsort
SELECT ALL + - 52 + + 3
----
-49

query I rowsort
SELECT - 92 * - 26 AS col0
----
2392

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

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

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT SUM ( DISTINCT - - 76 )
----
76

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

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

query I rowsort
SELECT 72 * 46 + 84 col2
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT MIN( DISTINCT 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT MIN ( DISTINCT 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 20 + COUNT( * ) * - 37
----
-17

skipif mysql # not compatible
query I rowsort label-1267
SELECT 20 + COUNT ( * ) * - 37
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT 64 DIV - 73 * + - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1268
SELECT 64 / - 73 * + - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT CASE + 85 WHEN - + 62 THEN - COUNT( * ) + - 37 - 39 END * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT CASE + 85 WHEN - + 62 THEN - COUNT ( * ) + - 37 - 39 END * + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1270
SELECT 41 + + 39 * + + CASE - MIN( + + 26 ) WHEN + - 72 THEN 53 + - 49 DIV - 80 * + 12 - 14 + - - 88 * COALESCE ( + + 5, - 80 * 24 - - + 88 ) * - - ( + + 91 ) - - 17 * + 69 + + CAST( - 1 AS SIGNED ) * + + 82 WHEN - 4 THEN ( - - COALESCE ( - 51, 52 ) ) ELSE - - 81 * - NULLIF ( + 25 * + 14 + + 56, + CAST( NULL AS SIGNED ) ) + - CAST( - 30 + 73 DIV COUNT( * ) AS SIGNED ) END
----
-1284190

skipif mysql # not compatible
query I rowsort label-1270
SELECT 41 + + 39 * + + CASE - MIN ( + + 26 ) WHEN + - 72 THEN 53 + - 49 / - 80 * + 12 - 14 + - - 88 * COALESCE ( + + 5, - 80 * 24 - - + 88 ) * - - ( + + 91 ) - - 17 * + 69 + + CAST ( - 1 AS INTEGER ) * + + 82 WHEN - 4 THEN ( - - COALESCE ( - 51, 52 ) ) ELSE - - 81 * - NULLIF ( + 25 * + 14 + + 56, + CAST ( NULL AS INTEGER ) ) + - CAST ( - 30 + 73 / COUNT ( * ) AS INTEGER ) END
----
-1284190

query I rowsort
SELECT COALESCE ( + ( + 27 ), - 43 ) AS col0
----
27

query I rowsort
SELECT 89 + + + 61 - 88 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL 75 * + 78 * + 41 + - MAX( ALL - + 59 )
----
239909

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL 75 * + 78 * + 41 + - MAX ( ALL - + 59 )
----
239909

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT - CASE 75 WHEN SUM( ALL + ( + + 43 ) ) THEN NULL WHEN 54 * - 78 THEN - 87 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - CASE 75 WHEN SUM ( ALL + ( + + 43 ) ) THEN NULL WHEN 54 * - 78 THEN - 87 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 6 AS col1, 3
----
-6
3

query I rowsort
SELECT ALL + 38 * + 80 AS col2
----
3040

query II rowsort
SELECT 90 col2, 61
----
90
61

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

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

query I rowsort
SELECT ALL 78 + - 33 AS col0
----
45

query I rowsort
SELECT 87 * ( + 18 ) AS col2
----
1566

query I rowsort
SELECT ALL 54 + + ( - 56 ) + 71 * + + 60 * - 0 * - 10 * - 13 + + + 33 + + 55 * - 75
----
-4094

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

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

query II rowsort
SELECT ALL - 38, - 90 * + 87 AS col1
----
-38
-7830

query I rowsort
SELECT ALL + 3 + - + 0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1285
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / 36 * - 51 / + 6 * 32 * + ( + 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / 36 * - 51 / + 6 * 32 * + ( + 12 ) AS col1
----
NULL

query I rowsort
SELECT ALL 18 + 31 AS col1
----
49

query II rowsort
SELECT DISTINCT - 16 AS col0, 82
----
-16
82

query I rowsort
SELECT ALL - 30 + - 45 + + COALESCE ( - - 26, + - ( + + ( - - 59 ) ) + - 70, + 57 ) + + - ( 70 ) * - 2 - - + 77 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT + 41 AS col2, MAX( DISTINCT - 30 ) * + 52 * - ( 76 ) * 36 + 8 - 18 * - COUNT( * )
----
41
4268186

skipif mysql # not compatible
query II rowsort label-1289
SELECT + 41 AS col2, MAX ( DISTINCT - 30 ) * + 52 * - ( 76 ) * 36 + 8 - 18 * - COUNT ( * )
----
41
4268186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1290
SELECT 2 - - CASE 39 WHEN 80 THEN - + 97 ELSE + CASE + + 11 WHEN 65 THEN + + 76 - + 24 * - 72 * COUNT( * ) * + CAST( + + 84 AS SIGNED ) * 14 + + + 53 / - + 95 / - + 66 * + ( + + 48 ) * - 95 * CASE + - ( CASE + 93 WHEN + ( 34 ) + MAX( ALL 14 ) THEN + 37 WHEN + 32 THEN NULL END ) WHEN CASE - 23 WHEN 64 THEN + 6 ELSE + COUNT( * ) + NULLIF ( - 56, - 88 * + 1 + 48 * + 72 ) END THEN + 74 END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT 2 - - CASE 39 WHEN 80 THEN - + 97 ELSE + CASE + + 11 WHEN 65 THEN + + 76 - + 24 * - 72 * COUNT ( * ) * + CAST ( + + 84 AS INTEGER ) * 14 + + + 53 / - + 95 / - + 66 * + ( + + 48 ) * - 95 * CASE + - ( CASE + 93 WHEN + ( 34 ) + MAX ( ALL 14 ) THEN + 37 WHEN + 32 THEN NULL END ) WHEN CASE - 23 WHEN 64 THEN + 6 ELSE + COUNT ( * ) + NULLIF ( - 56, - 88 * + 1 + 48 * + 72 ) END THEN + 74 END END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT COUNT( * ) * + + 50 + + 38 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1291
SELECT COUNT ( * ) * + + 50 + + 38 AS col2
----
88

query I rowsort
SELECT 12 * + - ( - 93 ) AS col2
----
1116

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT 86 + - 1 + + CASE - 52 WHEN AVG ( DISTINCT - 54 ) / + - 16 + 33 THEN NULL ELSE - 6 + NULLIF ( + - MAX( + + 42 ), - COUNT( * ) - + ( + - 43 ) ) * CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT 86 + - 1 + + CASE - 52 WHEN AVG ( DISTINCT - 54 ) / + - 16 + 33 THEN NULL ELSE - 6 + NULLIF ( + - MAX ( + + 42 ), - COUNT ( * ) - + ( + - 43 ) ) * CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 89 - - 43
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + + MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1296
SELECT + + MIN ( DISTINCT - 41 ) AS col0
----
-41

query II rowsort
SELECT ALL - + 16 col0, 7
----
-16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT - CASE - SUM( + + 56 ) WHEN - + 37 THEN NULL ELSE - 25 * COUNT( * ) + - 93 + - 63 END - + 72 * + - 59 - + ( - + 63 ) * 67 * 72 AS col1
----
308341

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - CASE - SUM ( + + 56 ) WHEN - + 37 THEN NULL ELSE - 25 * COUNT ( * ) + - 93 + - 63 END - + 72 * + - 59 - + ( - + 63 ) * 67 * 72 AS col1
----
308341

query II rowsort
SELECT 72, - 22 AS col2
----
72
-22

query I rowsort
SELECT 10 + 22
----
32

query I rowsort
SELECT ALL - + 20 - + ( 1 ) AS col2
----
-21

query I rowsort
SELECT ALL + 48 - 66
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT MAX( + - 35 ) * + - 90
----
3150

skipif mysql # not compatible
query I rowsort label-1303
SELECT MAX ( + - 35 ) * + - 90
----
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL - NULLIF ( - + CAST( NULL AS SIGNED ), - 27 + + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - NULLIF ( - + CAST ( NULL AS INTEGER ), - 27 + + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + COUNT( * ) + - - 96
----
97

skipif mysql # not compatible
query I rowsort label-1305
SELECT + COUNT ( * ) + - - 96
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1306
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( 5 ) + 86 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1306
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( 5 ) + 86 AS col1
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT + COUNT( ALL - + 94 ) * + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + COUNT ( ALL - + 94 ) * + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL COALESCE ( - 17, - - 87, + MAX( DISTINCT - 95 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL COALESCE ( - 17, - - 87, + MAX ( DISTINCT - 95 ) ) AS col2
----
-17

query II rowsort
SELECT - + 91 + + + 25 AS col0, 37
----
-66
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL + 22 * - NULLIF ( - 31, + - NULLIF ( + 65, - CAST( 68 AS SIGNED ) * - COUNT( * ) * - 48 ) * ( + 89 ) * CASE - ( - 13 ) WHEN - 52 * - 75 THEN NULL WHEN - 49 * - + 22 + + COUNT( * ) THEN CAST( NULL AS SIGNED ) + 93 - - - COUNT( * ) - + + 51 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) WHEN + 73 * - 70 / - ( + + 2 ) THEN NULL WHEN 19 * 53 THEN NULL ELSE NULL END + 33 ) col1
----
682

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + 22 * - NULLIF ( - 31, + - NULLIF ( + 65, - CAST ( 68 AS INTEGER ) * - COUNT ( * ) * - 48 ) * ( + 89 ) * CASE - ( - 13 ) WHEN - 52 * - 75 THEN NULL WHEN - 49 * - + 22 + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + 93 - - - COUNT ( * ) - + + 51 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + 73 * - 70 / - ( + + 2 ) THEN NULL WHEN 19 * 53 THEN NULL ELSE NULL END + 33 ) col1
----
682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT - - 16 * - 15 / + 88 * - ( + CAST( NULL AS SIGNED ) ) + - - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT - - 16 * - 15 / + 88 * - ( + CAST ( NULL AS INTEGER ) ) + - - 2 AS col2
----
NULL

query II rowsort
SELECT ALL - 48, 19 col0
----
-48
19

query I rowsort
SELECT ALL 82 + - 59
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL - ( - CAST( - COUNT( * ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT ALL - CAST( NULL AS SIGNED ) + - 57 + - COUNT( * ) / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 + - COUNT ( * ) / + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT + 96 - - CAST( - + 75 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-1316
SELECT + 96 - - CAST ( - + 75 AS INTEGER )
----
21

query I rowsort
SELECT - 67 * - 26
----
1742

query I rowsort
SELECT ALL 78 + - 78 + - ( - 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT + 49 DIV COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 49 / COUNT ( * ) col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL 31 + + NULLIF ( - SUM( + 65 ), + 22 * + - CASE + + 54 WHEN - + 21 / 35 THEN NULL WHEN + 27 THEN - ( - COUNT( * ) ) END ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL 31 + + NULLIF ( - SUM ( + 65 ), + 22 * + - CASE + + 54 WHEN - + 21 / 35 THEN NULL WHEN + 27 THEN - ( - COUNT ( * ) ) END ) col0
----
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + 13 + + MIN( DISTINCT - + 1 )
----
12

skipif mysql # not compatible
query I rowsort label-1322
SELECT + 13 + + MIN ( DISTINCT - + 1 )
----
12

query I rowsort
SELECT ALL 24 + - + 3 * - 37 + 39
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT ALL - 31 * + 41 + MAX( DISTINCT - 18 ) DIV COUNT( * ) AS col1
----
-1289

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - 31 * + 41 + MAX ( DISTINCT - 18 ) / COUNT ( * ) AS col1
----
-1289

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1326
SELECT ( - CAST( NULL AS SIGNED ) ), - 93 col2
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-1326
SELECT ( - CAST ( NULL AS INTEGER ) ), - 93 col2
----
NULL
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT + CAST( + + 65 AS SIGNED ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1327
SELECT + CAST ( + + 65 AS INTEGER ) * - 0
----
0

query I rowsort
SELECT + COALESCE ( - - COALESCE ( + 59, - 14 ), - 67 )
----
59

query I rowsort
SELECT - 35 + + + 26 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 8 * - COALESCE ( ( + 3 ), SUM( ALL - - 14 ) ) + - 54 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1330
SELECT 8 * - COALESCE ( ( + 3 ), SUM ( ALL - - 14 ) ) + - 54 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL - 57 * + - 33 * + 46 * COUNT( * ) + 16 - - 1 + 23 * + + 44
----
87555

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL - 57 * + - 33 * + 46 * COUNT ( * ) + 16 - - 1 + 23 * + + 44
----
87555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1332
SELECT DISTINCT - 11 DIV - 72 AS col2, MAX( DISTINCT - 83 )
----
0
-83

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT - 11 / - 72 AS col2, MAX ( DISTINCT - 83 )
----
0
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT ALL + MAX( DISTINCT + 67 ) AS col0, CASE + 64 WHEN + 57 + + + 44 THEN NULL ELSE + 81 - - 5 END
----
67
86

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL + MAX ( DISTINCT + 67 ) AS col0, CASE + 64 WHEN + 57 + + + 44 THEN NULL ELSE + 81 - - 5 END
----
67
86

query I rowsort
SELECT + + 89 * + 88
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL - - COUNT( - - 2 ) * - 42 * - 58 AS col1
----
2436

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - - COUNT ( - - 2 ) * - 42 * - 58 AS col1
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - 17 * + - COALESCE ( + MAX( + 35 ), - 75, - 5 * + 39 - - CASE + + 92 WHEN + + 13 * 45 THEN NULL ELSE CAST( + 55 AS SIGNED ) + + COUNT( 19 ) END + - - 24 )
----
595

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - 17 * + - COALESCE ( + MAX ( + 35 ), - 75, - 5 * + 39 - - CASE + + 92 WHEN + + 13 * 45 THEN NULL ELSE CAST ( + 55 AS INTEGER ) + + COUNT ( 19 ) END + - - 24 )
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT - - COUNT( * ) DIV - 8 * 74
----
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT - - COUNT ( * ) / - 8 * 74
----
0

query I rowsort
SELECT - + 31 * - - 89
----
-2759

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT + - 20 + + COUNT( * ) AS col2, 1 * - - 94 col0
----
-19
94

skipif mysql # not compatible
query II rowsort label-1339
SELECT + - 20 + + COUNT ( * ) AS col2, 1 * - - 94 col0
----
-19
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT DISTINCT 69 * 90 + + SUM( + + ( + 89 ) ) + + - 7 DIV + - 7 - + 10 * + 4 + - 82 * + + 30
----
3800

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT 69 * 90 + + SUM ( + + ( + 89 ) ) + + - 7 / + - 7 - + 10 * + 4 + - 82 * + + 30
----
3800

query I rowsort
SELECT DISTINCT 68 * + 55 - 37 + - + 88 col0
----
3615

query I rowsort
SELECT - 27 * + 94
----
-2538

query I rowsort
SELECT ALL + COALESCE ( + 87, - 23, ( - - 8 ) ) AS col0
----
87

query I rowsort
SELECT - + 37 col2
----
-37

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

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

query I rowsort
SELECT - 73 + - - 14 * - 97 col2
----
-1431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL - 29 + + 32 * - CAST( - 5 AS SIGNED ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL - 29 + + 32 * - CAST ( - 5 AS INTEGER ) AS col1
----
131

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT 10 AS col1, + COUNT( * ) * 79
----
10
79

skipif mysql # not compatible
query II rowsort label-1349
SELECT 10 AS col1, + COUNT ( * ) * 79
----
10
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT - COUNT( + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1350
SELECT - COUNT ( + 96 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1351
SELECT DISTINCT CAST( COUNT( DISTINCT - - 66 ) AS SIGNED ) col1, 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-1351
SELECT DISTINCT CAST ( COUNT ( DISTINCT - - 66 ) AS INTEGER ) col1, 52 AS col2
----
1
52

query I rowsort
SELECT ALL - 2 * + 67
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT - MIN( + 36 ) + - 49 * - 7 AS col0
----
307

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - MIN ( + 36 ) + - 49 * - 7 AS col0
----
307

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

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL COUNT ( * ) + - 98
----
-97

query I rowsort
SELECT ALL - 3 * 90 AS col0
----
-270

query I rowsort
SELECT - 7 * - 25 AS col2
----
175

query I rowsort
SELECT + 83 * - 28
----
-2324

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT - 36 AS col1, + SUM( DISTINCT - 11 ) AS col1
----
-36
-11

skipif mysql # not compatible
query II rowsort label-1359
SELECT - 36 AS col1, + SUM ( DISTINCT - 11 ) AS col1
----
-36
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT - MAX( ALL + 62 ) / - 24 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT - MAX ( ALL + 62 ) / - 24 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 53 * 77
----
4081

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT - 23 - + CASE WHEN NOT 30 < - NULLIF ( + 11, + 79 + - COALESCE ( 59, - - 81 * ( - + SUM( DISTINCT - 52 ) ), - + 41 ) ) * - - COUNT( * ) + + MAX( - 67 ) + COUNT( DISTINCT - - 4 ) - + ( + + 16 ) * + 22 THEN - + 11 END, + 41 AS col2
----
-12
41

skipif mysql # not compatible
query II rowsort label-1362
SELECT - 23 - + CASE WHEN NOT 30 < - NULLIF ( + 11, + 79 + - COALESCE ( 59, - - 81 * ( - + SUM ( DISTINCT - 52 ) ), - + 41 ) ) * - - COUNT ( * ) + + MAX ( - 67 ) + COUNT ( DISTINCT - - 4 ) - + ( + + 16 ) * + 22 THEN - + 11 END, + 41 AS col2
----
-12
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1363
SELECT ALL 1 / SUM( + - 53 ) - + SUM( ALL 54 ) + + 28 + + CAST( NULL AS DECIMAL ) * - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 1 / SUM ( + - 53 ) - + SUM ( ALL 54 ) + + 28 + + CAST ( NULL AS REAL ) * - 43 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT ALL - 39 DIV - + 91 * - + 65 - - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - 39 / - + 91 * - + 65 - - 52 AS col0
----
52

query II rowsort
SELECT ALL + 36 AS col2, - COALESCE ( + 74, - + 50 + 75 ) AS col0
----
36
-74

query II rowsort
SELECT + + 24 AS col2, CASE - + 49 WHEN + + 78 THEN + ( 60 ) END
----
24
NULL

query I rowsort
SELECT + 8 - + 4 AS col0
----
4

query I rowsort
SELECT ALL - 21 * 22 AS col2
----
-462

query I rowsort
SELECT - - 15 * 40
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT - + COUNT( * ) * - 85 DIV 49 * + 44 DIV 96 * + ( + - 37 ) + - 49 + - + COUNT( * ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-1370
SELECT - + COUNT ( * ) * - 85 / 49 * + 44 / 96 * + ( + - 37 ) + - 49 + - + COUNT ( * ) col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COUNT( * ) - + - ( + CASE - 20 WHEN 39 THEN 98 * - 95 + - 16 + + - MIN( DISTINCT 4 ) + 78 * COUNT( * ) ELSE - + 59 END ) + - + 12 * 80 AS col1
----
-1018

skipif mysql # not compatible
query I rowsort label-1371
SELECT COUNT ( * ) - + - ( + CASE - 20 WHEN 39 THEN 98 * - 95 + - 16 + + - MIN ( DISTINCT 4 ) + 78 * COUNT ( * ) ELSE - + 59 END ) + - + 12 * 80 AS col1
----
-1018

query I rowsort
SELECT + + ( 56 ) col2
----
56

query I rowsort
SELECT DISTINCT 1 + NULLIF ( - 23, + - 87 ) AS col1
----
-22

query II rowsort
SELECT 49 + - 91 * - 52, + 60 col0
----
4781
60

onlyif mysql # DIV for integer division: 
query II rowsort label-1375
SELECT ALL + 96 + + 20 DIV - - 37 AS col1, + NULLIF ( - 95, - - 18 ) AS col2
----
96
-95

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL + 96 + + 20 / - - 37 AS col1, + NULLIF ( - 95, - - 18 ) AS col2
----
96
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL 41 DIV - 7 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 41 / - 7 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT + - 3 + - - 55 * - ( + COUNT( ALL + 1 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + - 3 + - - 55 * - ( + COUNT ( ALL + 1 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL MAX( DISTINCT + 20 ) + 7 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL MAX ( DISTINCT + 20 ) + 7 AS col2
----
27

query I rowsort
SELECT 5 + - 95 - - 23 * 74 AS col2
----
1612

query I rowsort
SELECT - 68 * + ( - 1 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL + 44 DIV + 45 * 44
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + 44 / + 45 * 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT - 52 + + - 42 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1382
SELECT - 52 + + - 42 / - COUNT ( * )
----
-10

query I rowsort
SELECT 71 * + 93 col2
----
6603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1384
SELECT ALL 2 * SUM( ( - 99 ) ) AS col0, 89 * ( - CAST( NULL AS SIGNED ) ) + + 49
----
-198
NULL

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL 2 * SUM ( ( - 99 ) ) AS col0, 89 * ( - CAST ( NULL AS INTEGER ) ) + + 49
----
-198
NULL

query I rowsort
SELECT 77 + - ( + 40 )
----
37

query I rowsort
SELECT DISTINCT 54 - ( + - 57 )
----
111

query I rowsort
SELECT 96 * - 62
----
-5952

query II rowsort
SELECT 67 + 66 + 84 * + - 4 * + - 83 AS col2, 42 * - 8
----
28021
-336

query I rowsort
SELECT 2 + - 33
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT - COUNT( 3 ) - + 39 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - COUNT ( 3 ) - + 39 AS col0
----
-40

query I rowsort
SELECT 12 + + + 90 + 41 + + - 37 * + + 30
----
-967

query I rowsort
SELECT 2 + 65 + 87
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1393
SELECT ALL - COUNT( 48 ) DIV - 94 + 49 + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - COUNT ( 48 ) / - 94 + 49 + + COUNT ( * )
----
50

query I rowsort
SELECT 11 + 57
----
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1396
SELECT 18 DIV - 80 AS col0, COUNT( * ) * + 20
----
0
20

skipif mysql # not compatible
query II rowsort label-1396
SELECT 18 / - 80 AS col0, COUNT ( * ) * + 20
----
0
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1397
SELECT - 84 DIV - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT MAX( ALL - + 20 ) * - - 32 - + 71
----
-711

skipif mysql # not compatible
query I rowsort label-1398
SELECT MAX ( ALL - + 20 ) * - - 32 - + 71
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - NULLIF ( - - COUNT( * ), + MAX( 78 ) ) * + 36 + - + 82 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-1399
SELECT - NULLIF ( - - COUNT ( * ), + MAX ( 78 ) ) * + 36 + - + 82 AS col0
----
-118

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

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

skipif mysql # not compatible
query I rowsort label-1401
SELECT CAST ( NULL AS INTEGER ) / + - ( - 3 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1402
SELECT 81 / 21 * - COUNT( * ) * CAST( NULL AS SIGNED ) + + - 99 AS col1, COALESCE ( + 47, 61 ) AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1402
SELECT 81 / 21 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 99 AS col1, COALESCE ( + 47, 61 ) AS col1
----
NULL
47

query I rowsort
SELECT ALL + + 26 + 69 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT - 67 + - - 3 DIV 9 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT - 67 + - - 3 / 9 AS col0
----
-67

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

query I rowsort
SELECT DISTINCT 30 * + + ( - + 88 ) AS col2
----
-2640

query I rowsort
SELECT ALL - 65 + + 2
----
-63

query I rowsort
SELECT DISTINCT + - 84 + 55 * - 41 AS col0
----
-2339

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1409
SELECT + - CAST( - 82 AS SIGNED ), + 10 DIV 71 AS col1
----
82
0

skipif mysql # not compatible
query II rowsort label-1409
SELECT + - CAST ( - 82 AS INTEGER ), + 10 / 71 AS col1
----
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT 89 - 75 * - CASE + MIN( ALL + 51 ) WHEN - 25 THEN + ( + ( + 45 ) ) + + - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT 89 - 75 * - CASE + MIN ( ALL + 51 ) WHEN - 25 THEN + ( + ( + 45 ) ) + + - 16 END
----
NULL

query I rowsort
SELECT + 66 * 89 AS col2
----
5874

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1412
SELECT CASE + MAX( ALL 70 ) WHEN + CASE - CAST( 63 AS DECIMAL ) WHEN 56 THEN - - 22 END THEN NULL WHEN + - 39 * 37 THEN NULL WHEN + 38 THEN - COUNT( * ) WHEN 58 THEN + 36 END * 34 / - + CASE + 80 WHEN 5 THEN NULL ELSE - - CASE 87 WHEN - + 98 THEN 62 END END + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT CASE + MAX ( ALL 70 ) WHEN + CASE - CAST ( 63 AS REAL ) WHEN 56 THEN - - 22 END THEN NULL WHEN + - 39 * 37 THEN NULL WHEN + 38 THEN - COUNT ( * ) WHEN 58 THEN + 36 END * 34 / - + CASE + 80 WHEN 5 THEN NULL ELSE - - CASE 87 WHEN - + 98 THEN 62 END END + + 77 AS col2
----
NULL

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

query I rowsort
SELECT ALL - 24 + - 92
----
-116

query I rowsort
SELECT ALL 90 + - 0 col1
----
90

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

query II rowsort
SELECT ALL 11 AS col1, 91
----
11
91

query II rowsort
SELECT 78, + ( + COALESCE ( + 34, 20 ) ) AS col1
----
78
34

query I rowsort
SELECT ( - - 75 ) * - 6
----
-450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT ( + 68 ) + COUNT( * ) + 69 DIV 20 * - 31 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1420
SELECT ( + 68 ) + COUNT ( * ) + 69 / 20 * - 31 AS col0
----
-24

query I rowsort
SELECT 6 - + + 60 AS col2
----
-54

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

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

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

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

query I rowsort
SELECT DISTINCT 47 * + 2 AS col2
----
94

query I rowsort
SELECT 21 * - + 39
----
-819

query II rowsort
SELECT DISTINCT 96 AS col1, 7 AS col1
----
96
7

query II rowsort
SELECT 10 AS col1, 37 AS col0
----
10
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT 1 + - 47 - - - MIN( ALL + - 29 ) * + 54 AS col0
----
1520

skipif mysql # not compatible
query I rowsort label-1428
SELECT 1 + - 47 - - - MIN ( ALL + - 29 ) * + 54 AS col0
----
1520

query I rowsort
SELECT + + 15 * - 81 col2
----
-1215

query II rowsort
SELECT - - 40, ( 50 ) AS col0
----
40
50

query I rowsort
SELECT ALL + 38 * - + COALESCE ( - 60, + 5 ) * + 54 AS col1
----
123120

query I rowsort
SELECT DISTINCT - 93 * - 94 + + 87
----
8829

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT - COUNT( * ) * 0 + 74
----
74

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - COUNT ( * ) * 0 + 74
----
74

query I rowsort
SELECT ALL + ( + - 46 ) * + 67 AS col1
----
-3082

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1436
SELECT - 23 / + 57 / + 92 / - - CAST( NULL AS DECIMAL ) + + + ( 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 23 / + 57 / + 92 / - - CAST ( NULL AS REAL ) + + + ( 62 )
----
NULL

query I rowsort
SELECT - 59 * + 71 AS col2
----
-4189

query I rowsort
SELECT ALL 19 * - 61 + + - 45 - 96 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT - CAST( + ( 82 ) AS SIGNED ) + MIN( DISTINCT + 4 )
----
-78

skipif mysql # not compatible
query I rowsort label-1439
SELECT - CAST ( + ( 82 ) AS INTEGER ) + MIN ( DISTINCT + 4 )
----
-78

query I rowsort
SELECT - 86 + - 13 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1441
SELECT ALL + 13, - 9 + - + CAST( - + ( + NULLIF ( + ( + 95 ), - 13 ) ) AS SIGNED ) * ( 24 ) * - 26 + - 86 col1
----
13
-59375

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL + 13, - 9 + - + CAST ( - + ( + NULLIF ( + ( + 95 ), - 13 ) ) AS INTEGER ) * ( 24 ) * - 26 + - 86 col1
----
13
-59375

query I rowsort
SELECT ALL 59 * 78 - + 71 AS col2
----
4531

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT + COUNT( ALL + COALESCE ( + 88, - 85 ) ) AS col1, - 73 * - + 81 AS col1
----
1
5913

skipif mysql # not compatible
query II rowsort label-1443
SELECT + COUNT ( ALL + COALESCE ( + 88, - 85 ) ) AS col1, - 73 * - + 81 AS col1
----
1
5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1444
SELECT ALL COUNT( * ) * - + ( + + COUNT( * ) ) * + 40 * - 45 + - CASE - ( COUNT( - + 83 ) ) WHEN - 22 * + + 98 THEN NULL ELSE 63 DIV + 69 END * - 79 AS col1, 58 AS col2
----
1800
58

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL COUNT ( * ) * - + ( + + COUNT ( * ) ) * + 40 * - 45 + - CASE - ( COUNT ( - + 83 ) ) WHEN - 22 * + + 98 THEN NULL ELSE 63 / + 69 END * - 79 AS col1, 58 AS col2
----
1800
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT ALL + 32 AS col2, + 30 + COUNT( * )
----
32
31

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL + 32 AS col2, + 30 + COUNT ( * )
----
32
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1448
SELECT + COUNT( * ), - 6 DIV - 6 * - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1448
SELECT + COUNT ( * ), - 6 / - 6 * - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT + 42 + - 92 + - 37 + 68
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT SUM( + 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-1450
SELECT SUM ( + 66 ) col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT ALL SUM( + - 8 ) * + - ( + 83 ) DIV - + 83 col2
----
-8

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL SUM ( + - 8 ) * + - ( + 83 ) / - + 83 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT MAX( - - 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1452
SELECT MAX ( - - 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT ( - NULLIF ( 62, MIN( - 35 ) + - 40 - + ( 3 ) * - 20 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT ( - NULLIF ( 62, MIN ( - 35 ) + - 40 - + ( 3 ) * - 20 ) )
----
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1455
SELECT ALL CAST( - - 11 AS SIGNED ) + - 90 + - 4 * - 86 * + 11 AS col1, - 23
----
3705
-23

skipif mysql # not compatible
query II rowsort label-1455
SELECT ALL CAST ( - - 11 AS INTEGER ) + - 90 + - 4 * - 86 * + 11 AS col1, - 23
----
3705
-23

query I rowsort
SELECT + 94 - 91 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1457
SELECT ALL 43 AS col0, - COUNT( * ) * - 13 DIV - - 96 * + - 22
----
43
0

skipif mysql # not compatible
query II rowsort label-1457
SELECT ALL 43 AS col0, - COUNT ( * ) * - 13 / - - 96 * + - 22
----
43
0

query I rowsort
SELECT + 70 + + 30 col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT 87 AS col1, + 14 + COUNT( * ) AS col2
----
87
15

skipif mysql # not compatible
query II rowsort label-1459
SELECT 87 AS col1, + 14 + COUNT ( * ) AS col2
----
87
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT + 40 DIV - + 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1460
SELECT + 40 / - + 31 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT + NULLIF ( + COUNT( * ), + COUNT( * ) ) + + + ( SUM( 44 ) ), + 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1461
SELECT + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + + + ( SUM ( 44 ) ), + 96 AS col0
----
NULL
96

query I rowsort
SELECT ALL 52 + 91 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + - 28 + - MIN( DISTINCT 91 )
----
-119

skipif mysql # not compatible
query I rowsort label-1463
SELECT + - 28 + - MIN ( DISTINCT 91 )
----
-119

query I rowsort
SELECT + + 53 + + 94
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT NULLIF ( 72, - + COUNT( * ) + - 6 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1465
SELECT NULLIF ( 72, - + COUNT ( * ) + - 6 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL 2 * + - MIN( ALL - - 57 )
----
-114

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL 2 * + - MIN ( ALL - - 57 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT 6 + + MAX( ALL + 21 )
----
27

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT 6 + + MAX ( ALL + 21 )
----
27

query I rowsort
SELECT ALL - 98 + - - ( + - 41 ) AS col1
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT ALL - 39 DIV - - 10 + + + 62
----
59

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - 39 / - - 10 + + + 62
----
59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1471
SELECT + 21 * COUNT( * ) AS col1, 19 + + 38
----
21
57

skipif mysql # not compatible
query II rowsort label-1471
SELECT + 21 * COUNT ( * ) AS col1, 19 + + 38
----
21
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + ( + NULLIF ( - - 18, + COUNT( * ) ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + ( + NULLIF ( - - 18, + COUNT ( * ) ) ) col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT - 18 + - 88 + + + 7 + + - 15 DIV - 79 * 33 DIV + + 46 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 18 + - 88 + + + 7 + + - 15 / - 79 * 33 / + + 46 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + + SUM( + 32 ) * - 7 AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-1474
SELECT + + SUM ( + 32 ) * - 7 AS col0
----
-224

query I rowsort
SELECT ALL + - ( - 38 ) * 27 AS col1
----
1026

query II rowsort
SELECT + 38, + 3 AS col0
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT DISTINCT + COALESCE ( - 5, 93 + + NULLIF ( + 10, - + COUNT( * ) * - - 5 + - 66 ) + COUNT( * ), + CASE - ( + ( - 5 ) ) WHEN 25 THEN NULL WHEN 70 * NULLIF ( 39, - 39 ) * 45 + + 23 + - ( + 64 ) + + 92 + + 62 THEN - 16 + MIN( DISTINCT 8 ) + 71 ELSE NULL END * + ( 95 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + COALESCE ( - 5, 93 + + NULLIF ( + 10, - + COUNT ( * ) * - - 5 + - 66 ) + COUNT ( * ), + CASE - ( + ( - 5 ) ) WHEN 25 THEN NULL WHEN 70 * NULLIF ( 39, - 39 ) * 45 + + 23 + - ( + 64 ) + + 92 + + 62 THEN - 16 + MIN ( DISTINCT 8 ) + 71 ELSE NULL END * + ( 95 ) ) AS col0
----
-5

query I rowsort
SELECT DISTINCT - 57 * + + 65 AS col0
----
-3705

query I rowsort
SELECT - 54 * + 79 AS col2
----
-4266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT 76 * - + SUM( 44 ) + + 77 * + + CAST( - - COUNT( * ) AS SIGNED )
----
-3267

skipif mysql # not compatible
query I rowsort label-1480
SELECT 76 * - + SUM ( 44 ) + + 77 * + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT COALESCE ( COUNT( * ), - + 43, 38 + ( 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1481
SELECT COALESCE ( COUNT ( * ), - + 43, 38 + ( 14 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL + CASE + 86 WHEN + 81 + COUNT( * ) * + 24 * - ( COUNT( * ) ) * - - 88 / + 35 + - ( - 1 ) THEN + - ( 58 ) ELSE + 34 - + + CASE + 68 WHEN + 49 THEN + - 91 + - 26 + - + 67 END + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + CASE + 86 WHEN + 81 + COUNT ( * ) * + 24 * - ( COUNT ( * ) ) * - - 88 / + 35 + - ( - 1 ) THEN + - ( 58 ) ELSE + 34 - + + CASE + 68 WHEN + 49 THEN + - 91 + - 26 + - + 67 END + 16 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - 7 - - COUNT( * ) * + ( - - NULLIF ( + COUNT( * ), - + MIN( + 49 ) * COUNT( * ) ) ) + + - MAX( 69 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 7 - - COUNT ( * ) * + ( - - NULLIF ( + COUNT ( * ), - + MIN ( + 49 ) * COUNT ( * ) ) ) + + - MAX ( 69 ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT - 24 * + + 41 DIV - COUNT( * )
----
984

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 24 * + + 41 / - COUNT ( * )
----
984

query I rowsort
SELECT DISTINCT - 18 * - 37 + 97
----
763

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + 68 * + COUNT( * ) + + 10
----
78

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + 68 * + COUNT ( * ) + + 10
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1487
SELECT - CAST( NULL AS SIGNED ) + COALESCE ( - 1, - ( - ( - 44 ) ) * - 66 * COUNT( * ) * + + 74 * 60 * - 16, + 67 ) - - 52 * + ( 75 ) + - 57 * - NULLIF ( - 78, - 26 + + 91 + - ( CAST( NULL AS SIGNED ) ) ) AS col0, - 62
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-1487
SELECT - CAST ( NULL AS INTEGER ) + COALESCE ( - 1, - ( - ( - 44 ) ) * - 66 * COUNT ( * ) * + + 74 * 60 * - 16, + 67 ) - - 52 * + ( 75 ) + - 57 * - NULLIF ( - 78, - 26 + + 91 + - ( CAST ( NULL AS INTEGER ) ) ) AS col0, - 62
----
NULL
-62

query I rowsort
SELECT 2 * - 61
----
-122

query I rowsort
SELECT 40 - 4 AS col0
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL CASE + + 41 WHEN - 97 THEN + - CAST( - 11 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL CASE + + 41 WHEN - 97 THEN + - CAST ( - 11 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 2 + - 92 AS col1
----
-90

query I rowsort
SELECT ALL 78 + - - 55
----
133

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT 8 * + AVG ( ALL + 61 ) + - + 12 + - - NULLIF ( - + 10, + 97 ) * - - CAST( NULL AS SIGNED ) * ( - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT 8 * + AVG ( ALL + 61 ) + - + 12 + - - NULLIF ( - + 10, + 97 ) * - - CAST ( NULL AS INTEGER ) * ( - 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT COALESCE ( 31, + 32, - 40, - COUNT( * ) ) DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-1496
SELECT COALESCE ( 31, + 32, - 40, - COUNT ( * ) ) / - 9
----
-3

query I rowsort
SELECT 26 * + 75 AS col1
----
1950

query II rowsort
SELECT - 19 + + + 95 * 95 col2, + 55
----
9006
55

query I rowsort
SELECT ALL - 86 - - 89
----
3

query II rowsort
SELECT - ( + 18 ), 51 + - 52 * + 94 AS col2
----
-18
-4837

query I rowsort
SELECT 18 - - 52 - - - 6
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL 81 * - NULLIF ( 65, 54 * - ( - ( 32 ) ) * + - 69 ) * - 19 + COUNT( * ) + - 75 + 56 + + 8 AS col1
----
100025

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL 81 * - NULLIF ( 65, 54 * - ( - ( 32 ) ) * + - 69 ) * - 19 + COUNT ( * ) + - 75 + 56 + + 8 AS col1
----
100025

query I rowsort
SELECT ALL - 37 * - - 1 + + ( + 65 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1504
SELECT 56 DIV + 20 + + CAST( - 36 AS SIGNED ) * - - 44 + - 50 AS col1
----
-1632

skipif mysql # not compatible
query I rowsort label-1504
SELECT 56 / + 20 + + CAST ( - 36 AS INTEGER ) * - - 44 + - 50 AS col1
----
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1505
SELECT - COUNT( * ) + + - CAST( NULL AS SIGNED ) * CAST( + COUNT( * ) AS SIGNED ) + - 61 + + 58 + - - 78 AS col2, - COUNT( * ) * + 43 AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-1505
SELECT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * CAST ( + COUNT ( * ) AS INTEGER ) + - 61 + + 58 + - - 78 AS col2, - COUNT ( * ) * + 43 AS col0
----
NULL
-43

query I rowsort
SELECT 75 * + 97 AS col1
----
7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT + COUNT( * ) * + ( + + 58 ) * + - CAST( - 9 AS SIGNED ) + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + COUNT ( * ) * + ( + + 58 ) * + - CAST ( - 9 AS INTEGER ) + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 6 - - + 69 AS col2
----
75

query I rowsort
SELECT 90 * + + 21 + - - 68 + - 98 * - + 0 col1
----
1958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT - COUNT( ALL + - ( + - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT - COUNT ( ALL + - ( + - 65 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1512
SELECT CASE + 87 WHEN - COUNT( + + 18 ) THEN NULL ELSE + 32 END + + 7, ( - MIN( ALL 87 ) ) AS col1
----
39
-87

skipif mysql # not compatible
query II rowsort label-1512
SELECT CASE + 87 WHEN - COUNT ( + + 18 ) THEN NULL ELSE + 32 END + + 7, ( - MIN ( ALL 87 ) ) AS col1
----
39
-87

query I rowsort
SELECT ALL - COALESCE ( 39, + - 80 ) + - - 76 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT 5 + + SUM( - + NULLIF ( + 46, - - 86 ) ) + 17 DIV + 85 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1514
SELECT 5 + + SUM ( - + NULLIF ( + 46, - - 86 ) ) + 17 / + 85 AS col2
----
-41

query I rowsort
SELECT - 0 * - + ( + 73 ) * - + 49 + 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1516
SELECT DISTINCT - COALESCE ( - 65, + 22, + 4 ) + + - CAST( - CASE 27 WHEN 44 THEN NULL WHEN - 92 + + 36 + - 80 * + AVG ( ALL + 7 ) + 73 - 30 + ( + - 51 ) - 36 / - + 23 THEN NULL ELSE - ( - - 71 ) * + NULLIF ( 1, 99 ) END AS SIGNED ), - 7 AS col2
----
-6
-7

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT - COALESCE ( - 65, + 22, + 4 ) + + - CAST ( - CASE 27 WHEN 44 THEN NULL WHEN - 92 + + 36 + - 80 * + AVG ( ALL + 7 ) + 73 - 30 + ( + - 51 ) - 36 / - + 23 THEN NULL ELSE - ( - - 71 ) * + NULLIF ( 1, 99 ) END AS INTEGER ), - 7 AS col2
----
-6
-7

query I rowsort
SELECT 47 * ( + + 39 )
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT ALL - 91 + ( + MIN( ALL + + 77 ) ) - - COUNT( * ) * ( + - 93 ) DIV 89 + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 91 + ( + MIN ( ALL + + 77 ) ) - - COUNT ( * ) * ( + - 93 ) / 89 + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT 37 + + 72 AS col1
----
109

query I rowsort
SELECT ALL + 46 + + - 56 AS col0
----
-10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1522
SELECT ALL + CASE - 28 WHEN + COUNT( * ) + + + 19 + + 21 THEN + MIN( 85 ) + CAST( NULL AS SIGNED ) END - + - 51, 49 AS col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL + CASE - 28 WHEN + COUNT ( * ) + + + 19 + + 21 THEN + MIN ( 85 ) + CAST ( NULL AS INTEGER ) END - + - 51, 49 AS col1
----
NULL
49

query II rowsort
SELECT ALL + 87 AS col0, - 40
----
87
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ( COUNT( * ) ) + 25 + + 8 * - 98
----
-758

skipif mysql # not compatible
query I rowsort label-1524
SELECT ( COUNT ( * ) ) + 25 + + 8 * - 98
----
-758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1525
SELECT + 59 + 60 DIV + COUNT( * ) AS col2, - CAST( - CAST( - CAST( 8 AS SIGNED ) AS SIGNED ) AS SIGNED ) * + - 94
----
119
752

skipif mysql # not compatible
query II rowsort label-1525
SELECT + 59 + 60 / + COUNT ( * ) AS col2, - CAST ( - CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) AS INTEGER ) * + - 94
----
119
752

query I rowsort
SELECT ALL + + 75 - + 66 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT CAST( 66 AS SIGNED ) + + ( + 85 )
----
151

skipif mysql # not compatible
query I rowsort label-1527
SELECT CAST ( 66 AS INTEGER ) + + ( + 85 )
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT 41 + - + CASE - CASE + + 54 WHEN + CASE 28 WHEN - + 82 * - 34 THEN CASE + - 53 WHEN + + 18 THEN NULL WHEN COUNT( DISTINCT 99 ) / - AVG ( DISTINCT 3 ) / + + 37 * + 85 THEN + 62 END END THEN + - 62 ELSE NULL END WHEN - 49 THEN + - CAST( NULL AS SIGNED ) + + 21 ELSE - 99 END AS col1
----
140

skipif mysql # not compatible
query I rowsort label-1528
SELECT 41 + - + CASE - CASE + + 54 WHEN + CASE 28 WHEN - + 82 * - 34 THEN CASE + - 53 WHEN + + 18 THEN NULL WHEN COUNT ( DISTINCT 99 ) / - AVG ( DISTINCT 3 ) / + + 37 * + 85 THEN + 62 END END THEN + - 62 ELSE NULL END WHEN - 49 THEN + - CAST ( NULL AS INTEGER ) + + 21 ELSE - 99 END AS col1
----
140

query I rowsort
SELECT + 86 + - + 86 + + + 34 * 85
----
2890

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

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

query I rowsort
SELECT 33 + 28
----
61

query II rowsort
SELECT DISTINCT - 54, + 27 AS col0
----
-54
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT + CAST( NULL AS SIGNED ) * + - 37 + - CASE - COUNT( * ) WHEN - 32 THEN - + 69 WHEN + + 13 * - COUNT( * ) + + - ( - 73 ) - 7 * 48 * - 59 + + - CASE 15 WHEN - 0 - + + 76 THEN + 11 * - + SUM( ALL - 47 ) ELSE + 53 END THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT + CAST ( NULL AS INTEGER ) * + - 37 + - CASE - COUNT ( * ) WHEN - 32 THEN - + 69 WHEN + + 13 * - COUNT ( * ) + + - ( - 73 ) - 7 * 48 * - 59 + + - CASE 15 WHEN - 0 - + + 76 THEN + 11 * - + SUM ( ALL - 47 ) ELSE + 53 END THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT - 16 / 83 * + CASE - + ( + 59 ) WHEN - AVG ( + 69 ) THEN 77 WHEN + 44 + + 80 THEN NULL ELSE NULL END + 57 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT - 16 / 83 * + CASE - + ( + 59 ) WHEN - AVG ( + 69 ) THEN 77 WHEN + 44 + + 80 THEN NULL ELSE NULL END + 57 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT + 33 * - 19 - + COUNT( * ) - - 18 AS col1, 50 * + ( + - ( COUNT( * ) ) ) * 94 + - 25 AS col1
----
-610
-4725

skipif mysql # not compatible
query II rowsort label-1536
SELECT + 33 * - 19 - + COUNT ( * ) - - 18 AS col1, 50 * + ( + - ( COUNT ( * ) ) ) * 94 + - 25 AS col1
----
-610
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT COUNT( * ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-1537
SELECT COUNT ( * ) + + 66
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1538
SELECT MIN( ALL 74 ), 93 col2
----
74
93

skipif mysql # not compatible
query II rowsort label-1538
SELECT MIN ( ALL 74 ), 93 col2
----
74
93

query I rowsort
SELECT DISTINCT - 96 * ( 37 ) + + ( 14 )
----
-3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1540
SELECT ALL + 47 * - - NULLIF ( SUM( DISTINCT - 15 ), + CAST( - 90 AS SIGNED ) * - COUNT( * ) ) + - + COUNT( * ) DIV 1 DIV COUNT( * )
----
-706

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + 47 * - - NULLIF ( SUM ( DISTINCT - 15 ), + CAST ( - 90 AS INTEGER ) * - COUNT ( * ) ) + - + COUNT ( * ) / 1 / COUNT ( * )
----
-706

query I rowsort
SELECT ALL 83 * + 85 * + 97 AS col1
----
684335

query II rowsort
SELECT - 89 * - 88, + 74 * 39 + - 77 + - - 37 * + + 73 AS col0
----
7832
5510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1543
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) + + 55 + NULLIF ( + + 71, 62 * - - 19 ) AS col0, 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1543
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + + 55 + NULLIF ( + + 71, 62 * - - 19 ) AS col0, 14 AS col1
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT + 53 * - COUNT( * ) + 16
----
-37

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + 53 * - COUNT ( * ) + 16
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT MAX( - CAST( 57 AS SIGNED ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-1545
SELECT MAX ( - CAST ( 57 AS INTEGER ) ) col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT 50 * MAX( ALL 32 ) + + 10 AS col1, - COUNT( * ) AS col1
----
1610
-1

skipif mysql # not compatible
query II rowsort label-1546
SELECT 50 * MAX ( ALL 32 ) + + 10 AS col1, - COUNT ( * ) AS col1
----
1610
-1

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + MAX ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT COUNT( - - 90 ), 85 * - 39 + - 87 AS col0
----
1
-3402

skipif mysql # not compatible
query II rowsort label-1548
SELECT COUNT ( - - 90 ), 85 * - 39 + - 87 AS col0
----
1
-3402

query I rowsort
SELECT + NULLIF ( + + 73, 33 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT - - 16 * + - 98, MIN( ALL - + 73 ) col2
----
-1568
-73

skipif mysql # not compatible
query II rowsort label-1550
SELECT - - 16 * + - 98, MIN ( ALL - + 73 ) col2
----
-1568
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT - 30 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 30 / 82 AS col2
----
0

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

query I rowsort
SELECT DISTINCT - ( - 10 ) * + - 76 AS col1
----
-760

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1555
SELECT ALL + + COALESCE ( + COUNT( * ), 57 + + ( + ( + 76 ) ) * - ( + 57 ), + 5 + - + 65 ) DIV - 87 * - 67 + + ( - CAST( NULL AS SIGNED ) ), 3 DIV 2 col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1555
SELECT ALL + + COALESCE ( + COUNT ( * ), 57 + + ( + ( + 76 ) ) * - ( + 57 ), + 5 + - + 65 ) / - 87 * - 67 + + ( - CAST ( NULL AS INTEGER ) ), 3 / 2 col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT - + COALESCE ( COUNT( * ), + 40 ) / - 66 * + CASE - 79 WHEN - 11 + + ( 64 ) THEN + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT - + COALESCE ( COUNT ( * ), + 40 ) / - 66 * + CASE - 79 WHEN - 11 + + ( 64 ) THEN + 51 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL + - 80 DIV - 4 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + - 80 / - 4 AS col1
----
20

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT + + CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT + 76 ) AS col2
----
NULL

query I rowsort
SELECT - - 65 * - 46 * 1
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT - - 54 + NULLIF ( 81, + 91 * - 98 * - 36 + + + COUNT( * ) * + - 92 * + AVG ( + 97 ) ) * - + 81 AS col1
----
-6507

skipif mysql # not compatible
query I rowsort label-1560
SELECT - - 54 + NULLIF ( 81, + 91 * - 98 * - 36 + + + COUNT ( * ) * + - 92 * + AVG ( + 97 ) ) * - + 81 AS col1
----
-6507

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL - - 68 * + MAX( - + NULLIF ( - 57, 49 ) ) + + 75 + - 7
----
3944

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - - 68 * + MAX ( - + NULLIF ( - 57, 49 ) ) + + 75 + - 7
----
3944

query I rowsort
SELECT - + 79 + - 67
----
-146

query I rowsort
SELECT - 26 - + 51 * - + 1 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1564
SELECT ALL - + 91 DIV + - COUNT( * ) - + CAST( - 19 AS SIGNED ) + - - 18 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - + 91 / + - COUNT ( * ) - + CAST ( - 19 AS INTEGER ) + - - 18 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - COALESCE ( + ( - + CASE + 48 WHEN 91 * - + 70 + + + 19 + - - COUNT( * ) THEN NULL WHEN - COUNT( * ) * + 10 * - COUNT( DISTINCT - 70 ) - COALESCE ( + - COUNT( * ), + 83 - - COUNT( * ) * - 3 * + 12 * 54 ) + + 39 * + 40 THEN - 31 ELSE 53 * + - 44 END ), + 3 ) + - - 23 * + 95 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-1565
SELECT - COALESCE ( + ( - + CASE + 48 WHEN 91 * - + 70 + + + 19 + - - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * + 10 * - COUNT ( DISTINCT - 70 ) - COALESCE ( + - COUNT ( * ), + 83 - - COUNT ( * ) * - 3 * + 12 * 54 ) + + 39 * + 40 THEN - 31 ELSE 53 * + - 44 END ), + 3 ) + - - 23 * + 95 AS col1
----
-147

query I rowsort
SELECT 26 * - 87 + - + 29 + - + 18
----
-2309

query II rowsort
SELECT ALL + 76 AS col1, 82
----
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + MAX( DISTINCT + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1568
SELECT + MAX ( DISTINCT + + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT - 92 * COALESCE ( - - 9, - 22 + NULLIF ( - - COUNT( * ), - + 74 * - 37 * + CAST( COALESCE ( - 85, + 55 * 21 + 68 ) AS SIGNED ) ) ) + NULLIF ( - COUNT( * ), 93 ) * + 40 * NULLIF ( + + 95, + 59 ) - - COALESCE ( COUNT( * ), + 75, + + 83 + - 9 + 31 * 67 * - - COUNT( * ) * - 26 ) AS col2
----
-4627

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 92 * COALESCE ( - - 9, - 22 + NULLIF ( - - COUNT ( * ), - + 74 * - 37 * + CAST ( COALESCE ( - 85, + 55 * 21 + 68 ) AS INTEGER ) ) ) + NULLIF ( - COUNT ( * ), 93 ) * + 40 * NULLIF ( + + 95, + 59 ) - - COALESCE ( COUNT ( * ), + 75, + + 83 + - 9 + 31 * 67 * - - COUNT ( * ) * - 26 ) AS col2
----
-4627

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT 64 * 43 + MAX( DISTINCT - - 67 )
----
2819

skipif mysql # not compatible
query I rowsort label-1570
SELECT 64 * 43 + MAX ( DISTINCT - - 67 )
----
2819

query I rowsort
SELECT ALL + 26 * 98 - + 1 AS col1
----
2547

query I rowsort
SELECT + 94 + 63 AS col1
----
157

query I rowsort
SELECT 64 * 85 + - + 70
----
5370

query I rowsort
SELECT ALL 82 * + 20
----
1640

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

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

query I rowsort
SELECT - 16 * + - 55 + 28
----
908

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

query II rowsort
SELECT - 94, 65 col0
----
-94
65

query I rowsort
SELECT + + 93 + - 55
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1580
SELECT DISTINCT ( - - ( CAST( + - MAX( + 27 ) AS SIGNED ) ) ) AS col1, 22 AS col1
----
-27
22

skipif mysql # not compatible
query II rowsort label-1580
SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1
----
-27
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1581
SELECT + - 18 + - - CASE + 20 WHEN - 80 THEN 71 WHEN - 63 THEN + MAX( 73 ) * 15 + CASE 24 WHEN + 39 * ( - 55 ) * - 48 + + CASE + 19 WHEN - 60 * + - COUNT( * ) THEN NULL WHEN 6 THEN 80 END THEN + 12 + - - CAST( - 2 AS SIGNED ) ELSE NULL END WHEN - - NULLIF ( - 92, + COUNT( * ) ) THEN + - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT + - 18 + - - CASE + 20 WHEN - 80 THEN 71 WHEN - 63 THEN + MAX ( 73 ) * 15 + CASE 24 WHEN + 39 * ( - 55 ) * - 48 + + CASE + 19 WHEN - 60 * + - COUNT ( * ) THEN NULL WHEN 6 THEN 80 END THEN + 12 + - - CAST ( - 2 AS INTEGER ) ELSE NULL END WHEN - - NULLIF ( - 92, + COUNT ( * ) ) THEN + - 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT + + 44 + - + CASE COUNT( * ) WHEN + MIN( 74 ) THEN ( 60 ) WHEN + 18 + + 30 THEN NULL WHEN + SUM( 84 ) THEN - + COALESCE ( + + 92, - 44 ) * + 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT + + 44 + - + CASE COUNT ( * ) WHEN + MIN ( 74 ) THEN ( 60 ) WHEN + 18 + + 30 THEN NULL WHEN + SUM ( 84 ) THEN - + COALESCE ( + + 92, - 44 ) * + 62 END AS col0
----
NULL

query I rowsort
SELECT + 30 + + 26
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT DISTINCT + 5 + - ( - 33 ), COUNT( * ) * COUNT( * ) AS col2
----
38
1

skipif mysql # not compatible
query II rowsort label-1584
SELECT DISTINCT + 5 + - ( - 33 ), COUNT ( * ) * COUNT ( * ) AS col2
----
38
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + NULLIF ( - MIN( + 22 ), - - 99 * - + 98 + - 6 * - COUNT( * ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1587
SELECT + NULLIF ( - MIN ( + 22 ), - - 99 * - + 98 + - 6 * - COUNT ( * ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL + COUNT( * ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + COUNT ( * ) + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL - ( - 76 ) + - - ( + COUNT( * ) ) * - 3
----
73

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - ( - 76 ) + - - ( + COUNT ( * ) ) * - 3
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT DISTINCT CAST( NULL AS SIGNED ) + + NULLIF ( - COALESCE ( + COALESCE ( + ( + 64 ), 6 * - - 29 ), + + ( 20 ) ), - CAST( + - 20 AS SIGNED ) + 47 ) * + ( + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + NULLIF ( - COALESCE ( + COALESCE ( + ( + 64 ), 6 * - - 29 ), + + ( 20 ) ), - CAST ( + - 20 AS INTEGER ) + 47 ) * + ( + 23 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL - CASE COUNT( * ) WHEN MAX( - 98 ) + 0 THEN + + ( + + 11 ) ELSE - 28 END / - 34 * + CAST( NULL AS SIGNED ) * + COUNT( * ) * - + 72 / - 43 * + 75 + - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - CASE COUNT ( * ) WHEN MAX ( - 98 ) + 0 THEN + + ( + + 11 ) ELSE - 28 END / - 34 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 72 / - 43 * + 75 + - - 41 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT - 60 DIV + 8 col2
----
-7

skipif mysql # not compatible
query I rowsort label-1592
SELECT - 60 / + 8 col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1593
SELECT ALL 66 + - CAST( 10 AS SIGNED ) + + ( - - COUNT( * ) ) DIV 59
----
56

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL 66 + - CAST ( 10 AS INTEGER ) + + ( - - COUNT ( * ) ) / 59
----
56

query I rowsort
SELECT 21 * - - 10 AS col1
----
210

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

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

query II rowsort
SELECT 21 * 76 AS col1, - 75 + 49 AS col1
----
1596
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT ALL - MAX( - + 50 ) AS col0, - COUNT( * ) - + 55 * - 34 AS col2
----
50
1869

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - MAX ( - + 50 ) AS col0, - COUNT ( * ) - + 55 * - 34 AS col2
----
50
1869

query II rowsort
SELECT ALL - 95 AS col2, 61 AS col0
----
-95
61

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

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

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

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

query II rowsort
SELECT 28 AS col0, - ( 43 ) + - 53 + - 58
----
28
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT + 39, 19 * - 34 * - - NULLIF ( + COUNT( * ), - 16 ) AS col2
----
39
-646

skipif mysql # not compatible
query II rowsort label-1602
SELECT + 39, 19 * - 34 * - - NULLIF ( + COUNT ( * ), - 16 ) AS col2
----
39
-646

query I rowsort
SELECT - 12 * - 60 + + + 27
----
747

query I rowsort
SELECT 36 * - + 9 col1
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT CASE WHEN NOT ( NOT + COUNT( * ) IS NOT NULL ) THEN - - COUNT( * ) END + + 67 col0
----
68

skipif mysql # not compatible
query I rowsort label-1605
SELECT CASE WHEN NOT ( NOT + COUNT ( * ) IS NOT NULL ) THEN - - COUNT ( * ) END + + 67 col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT + + COALESCE ( - 42, 54, 69 + 73 ) DIV COUNT( * ) * - + 95 col1
----
3990

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT + + COALESCE ( - 42, 54, 69 + 73 ) / COUNT ( * ) * - + 95 col1
----
3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT + 69 DIV COALESCE ( + - 51, 7, + MAX( DISTINCT - + ( 68 ) ) ) + NULLIF ( - - 89, + COALESCE ( 14, + + 86 ) + + - 79 )
----
88

skipif mysql # not compatible
query I rowsort label-1607
SELECT + 69 / COALESCE ( + - 51, 7, + MAX ( DISTINCT - + ( 68 ) ) ) + NULLIF ( - - 89, + COALESCE ( 14, + + 86 ) + + - 79 )
----
88

query II rowsort
SELECT ALL - + 39, + 17 + + ( + 77 ) * - - 18 AS col1
----
-39
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + NULLIF ( + 80, - 38 ) * 17 - + COUNT( * )
----
1359

skipif mysql # not compatible
query I rowsort label-1609
SELECT + NULLIF ( + 80, - 38 ) * 17 - + COUNT ( * )
----
1359

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT DISTINCT - + 39 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - + 39 / - 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL - - CAST( 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - - CAST ( 23 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1613
SELECT - COUNT( * ) DIV + - 6 * + 34 + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-1613
SELECT - COUNT ( * ) / + - 6 * + 34 + - 41
----
-41

query II rowsort
SELECT ALL - 67 + + 59, + 93 AS col1
----
-8
93

query I rowsort
SELECT DISTINCT + - 26 * + - 94 col2
----
2444

query I rowsort
SELECT DISTINCT - 76 * - - NULLIF ( 22, + + 77 + 32 / 46 + + 52 ) AS col1
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - SUM( ALL - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1617
SELECT - SUM ( ALL - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT 61 AS col0, 9 + COUNT( * )
----
61
10

skipif mysql # not compatible
query II rowsort label-1618
SELECT 61 AS col0, 9 + COUNT ( * )
----
61
10

query I rowsort
SELECT - NULLIF ( - - 80, 37 )
----
-80

query I rowsort
SELECT + 55 * 99
----
5445

query I rowsort
SELECT DISTINCT + + 84 * - + 63
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1622
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), ( - COUNT( * ) ) DIV 88 + - + 56, ( + 46 ) + + + 54 * + + 88 - - + 22 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) / 88 + - + 56, ( + 46 ) + + + 54 * + + 88 - - + 22 ) AS col0
----
-56

query I rowsort
SELECT - 22 * - - 19 * + + 32 AS col1
----
-13376

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL SUM( + 44 ) + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL SUM ( + 44 ) + + COUNT ( * ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1625
SELECT ALL - CAST( NULL AS SIGNED ), - COUNT( * ) * 77 + NULLIF ( COUNT( * ), + - 86 * 89 * - MIN( + + 63 ) * + 67 ) + 82 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-1625
SELECT ALL - CAST ( NULL AS INTEGER ), - COUNT ( * ) * 77 + NULLIF ( COUNT ( * ), + - 86 * 89 * - MIN ( + + 63 ) * + 67 ) + 82 AS col1
----
NULL
6

query II rowsort
SELECT - + 80, 64 + 25 AS col0
----
-80
89

query I rowsort
SELECT ALL 5 + - 72 + 28
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT NULLIF ( - - 40, - 54 * + 53 * - 20 - + COUNT( * ) ) + + + 9 * 95 * 39 * - + ( + 21 ) AS col1
----
-700205

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT NULLIF ( - - 40, - 54 * + 53 * - 20 - + COUNT ( * ) ) + + + 9 * 95 * 39 * - + ( + 21 ) AS col1
----
-700205

query I rowsort
SELECT 95 + 25 AS col1
----
120

query I rowsort
SELECT 31 * - 96 AS col2
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT ALL 60 * + CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL 60 * + CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT COUNT( * ) + 29 col2, + 15 * + + ( - - 14 ) AS col0
----
30
210

skipif mysql # not compatible
query II rowsort label-1632
SELECT COUNT ( * ) + 29 col2, + 15 * + + ( - - 14 ) AS col0
----
30
210

query II rowsort
SELECT 14 + + - 50 AS col0, - 32
----
-36
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL 13 - + NULLIF ( + COUNT( * ), - SUM( ALL - 12 ) ) * 93 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL 13 - + NULLIF ( + COUNT ( * ), - SUM ( ALL - 12 ) ) * 93 AS col2
----
-80

query I rowsort
SELECT 21 + + 59 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL 24 * - - COALESCE ( - 92, + 30 + - + CAST( - - 26 AS SIGNED ), + - 59, 81, 0 ) * + MAX( ALL - - 45 ) col1
----
-99360

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL 24 * - - COALESCE ( - 92, + 30 + - + CAST ( - - 26 AS INTEGER ), + - 59, 81, 0 ) * + MAX ( ALL - - 45 ) col1
----
-99360

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT COUNT( * ) * - 3 * 32 + + MIN( + + 99 )
----
3

skipif mysql # not compatible
query I rowsort label-1638
SELECT COUNT ( * ) * - 3 * 32 + + MIN ( + + 99 )
----
3

query II rowsort
SELECT 46 * + 19 * + 39 AS col2, ( + 38 ) AS col0
----
34086
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1640
SELECT - 8 DIV + - 77 + - CASE 35 WHEN + 47 * - - COALESCE ( + 47, + CAST( NULL AS SIGNED ) + - CASE - - 43 WHEN 23 * - ( - - ( + 36 ) ) THEN NULL ELSE - - 68 END * + + COUNT( * ) ) * - - 75 THEN + 84 WHEN + + 61 + ( - 11 ) - + + COUNT( * ) * - ( 89 ) + NULLIF ( - - 6, + + 19 + - - 85 ) + - 82 * + CAST( 75 AS SIGNED ) THEN NULL ELSE 30 + 30 END
----
-60

skipif mysql # not compatible
query I rowsort label-1640
SELECT - 8 / + - 77 + - CASE 35 WHEN + 47 * - - COALESCE ( + 47, + CAST ( NULL AS INTEGER ) + - CASE - - 43 WHEN 23 * - ( - - ( + 36 ) ) THEN NULL ELSE - - 68 END * + + COUNT ( * ) ) * - - 75 THEN + 84 WHEN + + 61 + ( - 11 ) - + + COUNT ( * ) * - ( 89 ) + NULLIF ( - - 6, + + 19 + - - 85 ) + - 82 * + CAST ( 75 AS INTEGER ) THEN NULL ELSE 30 + 30 END
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT DISTINCT 12 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT 12 / + 15
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1642
SELECT COUNT( + 31 ) col1, 30 col0
----
1
30

skipif mysql # not compatible
query II rowsort label-1642
SELECT COUNT ( + 31 ) col1, 30 col0
----
1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT 1 * + CASE 41 WHEN - - 61 + + + 24 THEN + 80 * + 72 * - SUM( ALL - - 38 ) * - 57 * 21 + + ( - CAST( 52 AS SIGNED ) ) WHEN - - 79 THEN NULL ELSE - + 64 END + - - 67
----
3

skipif mysql # not compatible
query I rowsort label-1643
SELECT 1 * + CASE 41 WHEN - - 61 + + + 24 THEN + 80 * + 72 * - SUM ( ALL - - 38 ) * - 57 * 21 + + ( - CAST ( 52 AS INTEGER ) ) WHEN - - 79 THEN NULL ELSE - + 64 END + - - 67
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1644
SELECT ALL - 28 DIV - - 64 AS col1, 8
----
0
8

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL - 28 / - - 64 AS col1, 8
----
0
8

query I rowsort
SELECT 75 + + 75
----
150

query I rowsort
SELECT ALL + 56 * 26 AS col0
----
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT + 4 + - 19 DIV - COUNT( 81 ) + + 71 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + 4 + - 19 / - COUNT ( 81 ) + + 71 AS col2
----
94

query II rowsort
SELECT 77 + + 59 * 53, 3 + + 77 AS col0
----
3204
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1649
SELECT ALL - 82 * + 67 AS col2, 62 * - 95 * + MIN( CAST( - + 49 AS SIGNED ) ) AS col0
----
-5494
288610

skipif mysql # not compatible
query II rowsort label-1649
SELECT ALL - 82 * + 67 AS col2, 62 * - 95 * + MIN ( CAST ( - + 49 AS INTEGER ) ) AS col0
----
-5494
288610

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT DISTINCT - - 3 + COUNT( * ) AS col2, MAX( - 4 )
----
4
-4

skipif mysql # not compatible
query II rowsort label-1650
SELECT DISTINCT - - 3 + COUNT ( * ) AS col2, MAX ( - 4 )
----
4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT + NULLIF ( + 22, - + ( + 62 ) * - COUNT( * ) ) + - COALESCE ( COUNT( * ), - ( + + 10 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1651
SELECT + NULLIF ( + 22, - + ( + 62 ) * - COUNT ( * ) ) + - COALESCE ( COUNT ( * ), - ( + + 10 ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT - 44 * - AVG ( + 53 ) - COUNT( * ) + - 35 * + + CASE - MAX( + 27 ) WHEN + + ( 53 ) - + 50 THEN + 45 + - 73 WHEN ( + - CAST( NULL AS SIGNED ) ) THEN NULL END + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT - 44 * - AVG ( + 53 ) - COUNT ( * ) + - 35 * + + CASE - MAX ( + 27 ) WHEN + + ( 53 ) - + 50 THEN + 45 + - 73 WHEN ( + - CAST ( NULL AS INTEGER ) ) THEN NULL END + 54
----
NULL

query I rowsort
SELECT 92 + + + 90 AS col0
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ( - 26 ) DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT ( - 26 ) / - 33
----
0

query I rowsort
SELECT ALL - + 61 + + 22
----
-39

query I rowsort
SELECT - 79 + - - 92 + + 97
----
110

query I rowsort
SELECT DISTINCT - NULLIF ( + 34, - 62 ) + + - 49 col2
----
-83

query II rowsort
SELECT ( + - 79 ) * 41 AS col1, 62 * - + 3 AS col0
----
-3239
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT COUNT( * ) + + 24 AS col0, 12 AS col1
----
25
12

skipif mysql # not compatible
query II rowsort label-1659
SELECT COUNT ( * ) + + 24 AS col0, 12 AS col1
----
25
12

query I rowsort
SELECT + 19 + + - 60 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT ALL + 15 - - 67 * + COUNT( * ), + 19 - - + 18 * + 13 AS col0
----
82
253

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL + 15 - - 67 * + COUNT ( * ), + 19 - - + 18 * + 13 AS col0
----
82
253

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT + + 9 + + 31, - 41 + + MIN( DISTINCT + - 46 ) AS col2
----
40
-87

skipif mysql # not compatible
query II rowsort label-1662
SELECT + + 9 + + 31, - 41 + + MIN ( DISTINCT + - 46 ) AS col2
----
40
-87

query I rowsort
SELECT DISTINCT + - 56 * - 24 * + 79 col1
----
106176

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT + - 34 + - 22 DIV - ( - - 14 )
----
-33

skipif mysql # not compatible
query I rowsort label-1664
SELECT + - 34 + - 22 / - ( - - 14 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1665
SELECT DISTINCT 51 AS col0, NULLIF ( + COUNT( * ), + CASE CAST( NULL AS SIGNED ) WHEN + ( 9 ) * 82 + ( - + 14 ) THEN - 91 END ) AS col1, + 61 AS col1
----
51
1
61

skipif mysql # not compatible
query III rowsort label-1665
SELECT DISTINCT 51 AS col0, NULLIF ( + COUNT ( * ), + CASE CAST ( NULL AS INTEGER ) WHEN + ( 9 ) * 82 + ( - + 14 ) THEN - 91 END ) AS col1, + 61 AS col1
----
51
1
61

query II rowsort
SELECT - 43 * - - 43 * 96, + 48 AS col1
----
-177504
48

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

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

query II rowsort
SELECT DISTINCT 9 col2, 49 AS col1
----
9
49

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

query II rowsort
SELECT DISTINCT 20 AS col0, 18 AS col2
----
20
18

query I rowsort
SELECT + 47 * 3
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + 65 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 65 / + + 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL 71 * + - NULLIF ( CAST( NULL AS SIGNED ), - ( + 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL 71 * + - NULLIF ( CAST ( NULL AS INTEGER ), - ( + 78 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1674
SELECT ( + CASE + + 47 WHEN 28 / MIN( DISTINCT - + 22 ) THEN + 60 WHEN 51 THEN + 4 WHEN - 49 + COUNT( * ) - + + 50 / - CAST( NULL AS DECIMAL ) + - 93 + + + 3 * - 99 * - - 46 THEN - - COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT ( + CASE + + 47 WHEN 28 / MIN ( DISTINCT - + 22 ) THEN + 60 WHEN 51 THEN + 4 WHEN - 49 + COUNT ( * ) - + + 50 / - CAST ( NULL AS REAL ) + - 93 + + + 3 * - 99 * - - 46 THEN - - COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT + 11 * - 67
----
-737

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - COUNT( * ) * - 21 * - - 38 AS col2
----
798

skipif mysql # not compatible
query I rowsort label-1677
SELECT - COUNT ( * ) * - 21 * - - 38 AS col2
----
798

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL + COUNT( * ) AS col0, 71 + + 12
----
1
83

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL + COUNT ( * ) AS col0, 71 + + 12
----
1
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT + CASE - + COUNT( * ) WHEN + 0 + + 81 THEN 66 + + + 67 + + 53 WHEN + + 95 THEN 10 ELSE AVG ( - CAST( NULL AS SIGNED ) ) + - - COUNT( * ) * + - 35 * - + 73 + ( + + 28 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1679
SELECT + CASE - + COUNT ( * ) WHEN + 0 + + 81 THEN 66 + + + 67 + + 53 WHEN + + 95 THEN 10 ELSE AVG ( - CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) * + - 35 * - + 73 + ( + + 28 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT - ( 36 ) * - - 87 + - - 75 + - COUNT( * ) + - - 6 + + - 42
----
-3094

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - ( 36 ) * - - 87 + - - 75 + - COUNT ( * ) + - - 6 + + - 42
----
-3094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1681
SELECT ALL 34 * - 38 * - 77 + + + 55 + + 3 * - + CAST( NULL AS SIGNED ) + + 68 * + + 35 AS col2, + 97 * CAST( NULL AS SIGNED ) / - - COALESCE ( - - ( + 39 ), + 66 ) / 92 / - - ( - 61 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL 34 * - 38 * - 77 + + + 55 + + 3 * - + CAST ( NULL AS INTEGER ) + + 68 * + + 35 AS col2, + 97 * CAST ( NULL AS INTEGER ) / - - COALESCE ( - - ( + 39 ), + 66 ) / 92 / - - ( - 61 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT + 38 * 47 + 75 * + 32 + 72 + - 37 - + - MIN( ALL + 52 ) col0
----
4273

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT + 38 * 47 + 75 * + 32 + 72 + - 37 - + - MIN ( ALL + 52 ) col0
----
4273

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + 38 * COUNT( * ) + 10 + - 7 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1683
SELECT + 38 * COUNT ( * ) + 10 + - 7 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1684
SELECT ALL - 51 DIV NULLIF ( - 9, - - ( + + NULLIF ( - CAST( NULL AS SIGNED ), + 52 * + COUNT( * ) ) ) ) * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - 51 / NULLIF ( - 9, - - ( + + NULLIF ( - CAST ( NULL AS INTEGER ), + 52 * + COUNT ( * ) ) ) ) * - COUNT ( * )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT + - 45 DIV ( 52 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT + - 45 / ( 52 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + - 87 + 27 - - - 40 * - 77 * + 28 * + + COUNT( * )
----
86180

skipif mysql # not compatible
query I rowsort label-1686
SELECT + - 87 + 27 - - - 40 * - 77 * + 28 * + + COUNT ( * )
----
86180

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

skipif mysql # not compatible
query I rowsort label-1687
SELECT + NULLIF ( - COUNT ( * ), - + COUNT ( * ) + + 87 * 63 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT DISTINCT + + 71 DIV ( - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + + 71 / ( - 52 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1689
SELECT - 19, ( ( - CAST( + + COUNT( * ) AS SIGNED ) ) ) * + 78 AS col1
----
-19
-78

skipif mysql # not compatible
query II rowsort label-1689
SELECT - 19, ( ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) ) * + 78 AS col1
----
-19
-78

query II rowsort
SELECT + 31 AS col0, + 45
----
31
45

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1692
SELECT DISTINCT - 79 * - 84 - + 15 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - 79 * - 84 - + 15 + + CAST ( NULL AS REAL )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 8 * + 85 * 13 - 33 - - - 79
----
8728

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - - 5 * - COUNT( * ) + - COUNT( DISTINCT - 16 ) * + 47
----
-52

skipif mysql # not compatible
query I rowsort label-1696
SELECT - - 5 * - COUNT ( * ) + - COUNT ( DISTINCT - 16 ) * + 47
----
-52

query II rowsort
SELECT - 27 col1, 7
----
-27
7

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

skipif mysql # not compatible
query II rowsort label-1698
SELECT - 38, - COUNT ( * ) AS col2
----
-38
-1

query I rowsort
SELECT - 43 * - 88 AS col2
----
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1700
SELECT - 78 * + COUNT( * ) DIV - + 86 * 1 col1, 73 AS col2
----
0
73

skipif mysql # not compatible
query II rowsort label-1700
SELECT - 78 * + COUNT ( * ) / - + 86 * 1 col1, 73 AS col2
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT ALL CASE WHEN ( - 13 ) IS NOT NULL THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL CASE WHEN ( - 13 ) IS NOT NULL THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1702
SELECT ALL + 64 DIV + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + 64 / + - COUNT ( * )
----
-64

query I rowsort
SELECT DISTINCT 24 * 69
----
1656

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT + COUNT ( * ) * 14 / + + 4 AS col1
----
3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1706
SELECT - 59 + + - 74 + 72 DIV + 82 AS col1, - 86 AS col0
----
-133
-86

skipif mysql # not compatible
query II rowsort label-1706
SELECT - 59 + + - 74 + 72 / + 82 AS col1, - 86 AS col0
----
-133
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - MIN( DISTINCT - + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1707
SELECT - MIN ( DISTINCT - + 74 ) AS col2
----
74

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT - 36 + + 63 + - - 16 * - 33 + - SUM( + - 40 ) + 74 + 93 + + ( - NULLIF ( - 80, - + 67 ) ) AS col2, + 7 - 75
----
-214
-68

skipif mysql # not compatible
query II rowsort label-1710
SELECT - 36 + + 63 + - - 16 * - 33 + - SUM ( + - 40 ) + 74 + 93 + + ( - NULLIF ( - 80, - + 67 ) ) AS col2, + 7 - 75
----
-214
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - COUNT( * ) + + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1711
SELECT - COUNT ( * ) + + 21 AS col1
----
20

query I rowsort
SELECT - 88 + - 74 AS col0
----
-162

query I rowsort
SELECT + 94 * - + 41 AS col1
----
-3854

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL 68 / - - 43 + + 33 * - 54 + + ( + CASE - COUNT( * ) WHEN - 54 THEN + - 76 + - 41 + - 21 WHEN + + 82 THEN NULL END ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 68 / - - 43 + + 33 * - 54 + + ( + CASE - COUNT ( * ) WHEN - 54 THEN + - 76 + - 41 + - 21 WHEN + + 82 THEN NULL END ) * - 52
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT ALL 6 / CAST( NULL AS SIGNED ) * + 65 + - 74 - + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL 6 / CAST ( NULL AS INTEGER ) * + 65 + - 74 - + - 24 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT ALL - 98 DIV - 57 + + 46 + + 78 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - 98 / - 57 + + 46 + + 78 AS col0
----
125

query I rowsort
SELECT - + 16 * + 91 AS col1
----
-1456

query I rowsort
SELECT + 85 + - 77
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + - MAX( + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1722
SELECT + - MAX ( + 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - COUNT( * ) * - 41 * 63 + + 98
----
2681

skipif mysql # not compatible
query I rowsort label-1723
SELECT - COUNT ( * ) * - 41 * 63 + + 98
----
2681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1724
SELECT ALL + 19 DIV 45 + 78 * + 7 + MIN( DISTINCT 45 ) AS col2
----
591

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + 19 / 45 + 78 * + 7 + MIN ( DISTINCT 45 ) AS col2
----
591

query I rowsort
SELECT + 52 * - + 39
----
-2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT DISTINCT - 48 - - + 37 + - ( 10 ) + - 88 * 1 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT - 48 - - + 37 + - ( 10 ) + - 88 * 1 + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - 41 + 49 + + COUNT( * ) - + - CASE - + 30 WHEN + - 82 THEN - - 63 ELSE + + CASE + + ( 39 ) WHEN + - MAX( 68 ) * + 3 - + 64 THEN + 48 END + - - ( + 5 ) END + + 1 + 38 * + + NULLIF ( 43, - ( AVG ( DISTINCT - ( + 37 ) ) ) ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 41 + 49 + + COUNT ( * ) - + - CASE - + 30 WHEN + - 82 THEN - - 63 ELSE + + CASE + + ( 39 ) WHEN + - MAX ( 68 ) * + 3 - + 64 THEN + 48 END + - - ( + 5 ) END + + 1 + 38 * + + NULLIF ( 43, - ( AVG ( DISTINCT - ( + 37 ) ) ) ) + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT 92 * + COUNT( * ) * + - 19 - + COALESCE ( - 57, 67 )
----
-1691

skipif mysql # not compatible
query I rowsort label-1729
SELECT 92 * + COUNT ( * ) * + - 19 - + COALESCE ( - 57, 67 )
----
-1691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT 80 - - + MAX( - ( ( 9 ) ) ) DIV + + 4
----
78

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT 80 - - + MAX ( - ( ( 9 ) ) ) / + + 4
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL - NULLIF ( + SUM( - 6 ), 75 * + 16 / CAST( - 87 AS SIGNED ) * - SUM( DISTINCT 41 ) ) * + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - NULLIF ( + SUM ( - 6 ), 75 * + 16 / CAST ( - 87 AS INTEGER ) * - SUM ( DISTINCT 41 ) ) * + COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT 11 * - - ( - COUNT( * ) ) * - 42 + - 4 - + 59 AS col0
----
399

skipif mysql # not compatible
query I rowsort label-1732
SELECT 11 * - - ( - COUNT ( * ) ) * - 42 + - 4 - + 59 AS col0
----
399

query II rowsort
SELECT DISTINCT 7 AS col1, 33
----
7
33

query I rowsort
SELECT DISTINCT CASE 51 WHEN + + 30 * + 14 THEN - 61 WHEN 55 THEN 79 END * + 82 * + 44 + 49
----
NULL

query I rowsort
SELECT 56 + 84 AS col1
----
140

query I rowsort
SELECT 59 * 31
----
1829

query II rowsort
SELECT ALL 64 AS col0, NULLIF ( + - 9, - 91 ) + 53
----
64
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ( 72 ) * + - COUNT( * ) + + + 15
----
-57

skipif mysql # not compatible
query I rowsort label-1738
SELECT ( 72 ) * + - COUNT ( * ) + + + 15
----
-57

query I rowsort
SELECT 65 + 88 AS col0
----
153

query I rowsort
SELECT 75 + 92
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT ALL - 69 + - 6 * + ( + COUNT( * ) ) DIV + 8 + + 14
----
-55

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - 69 + - 6 * + ( + COUNT ( * ) ) / + 8 + + 14
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT 49 DIV + + 28
----
1

skipif mysql # not compatible
query I rowsort label-1742
SELECT 49 / + + 28
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT 53 + - 22 + + 19 + + 64 * COALESCE ( - 86, - 88 * - + 27, - COUNT( * ) )
----
-5454

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT 53 + - 22 + + 19 + + 64 * COALESCE ( - 86, - 88 * - + 27, - COUNT ( * ) )
----
-5454

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT + 97 / - CASE 69 WHEN - 34 THEN NULL WHEN + 14 + + + CASE + 53 WHEN 12 + + 84 - - 81 THEN + 26 - - - 58 * + 33 END THEN + ( - + 56 ) * + + 51 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + 97 / - CASE 69 WHEN - 34 THEN NULL WHEN + 14 + + + CASE + 53 WHEN 12 + + 84 - - 81 THEN + 26 - - - 58 * + 33 END THEN + ( - + 56 ) * + + 51 * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1745
SELECT - 32 AS col2, - CAST( NULL AS DECIMAL ) * 47 AS col0
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-1745
SELECT - 32 AS col2, - CAST ( NULL AS REAL ) * 47 AS col0
----
-32
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT + 15 DIV - 2 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + 15 / - 2 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT 74 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT 74 / - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1748
SELECT ALL SUM( + 62 ) + 2 DIV + 89
----
62

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL SUM ( + 62 ) + 2 / + 89
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT ALL - 43 + - COUNT( DISTINCT 61 ), ( + 90 ) AS col2
----
-44
90

skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL - 43 + - COUNT ( DISTINCT 61 ), ( + 90 ) AS col2
----
-44
90

query I rowsort
SELECT ALL + 80 * - 63 AS col1
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT 8 / - CASE - 74 WHEN 35 * + COUNT( * ) * + 61 THEN NULL WHEN - + NULLIF ( - NULLIF ( 91, + + COUNT( * ) ), + - COUNT( * ) ) - COUNT( * ) THEN 97 ELSE NULL END / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT 8 / - CASE - 74 WHEN 35 * + COUNT ( * ) * + 61 THEN NULL WHEN - + NULLIF ( - NULLIF ( 91, + + COUNT ( * ) ), + - COUNT ( * ) ) - COUNT ( * ) THEN 97 ELSE NULL END / + 41
----
NULL

query I rowsort
SELECT 52 * - + 12 * + - 0 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 59 + 76 * 95 * 6 * - + 57 AS col2
----
-2469181

query I rowsort
SELECT - COALESCE ( + + ( + 9 ), + - 3 + + 34, - 7 )
----
-9

query II rowsort
SELECT ALL - - 97 AS col2, 57 * - - 53 AS col1
----
97
3021

query I rowsort
SELECT DISTINCT + + 25 - + - 92
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT 63 * 3 * + + ( - 10 ) * - ( COUNT( * ) ) + - + 59
----
1831

skipif mysql # not compatible
query I rowsort label-1758
SELECT 63 * 3 * + + ( - 10 ) * - ( COUNT ( * ) ) + - + 59
----
1831

query I rowsort
SELECT 77 * - 11 - + - 63
----
-784

query I rowsort
SELECT 0 * - + 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT + 95 + NULLIF ( - + 48, + 52 * + MIN( + 54 ) + 23 )
----
47

skipif mysql # not compatible
query I rowsort label-1761
SELECT + 95 + NULLIF ( - + 48, + 52 * + MIN ( + 54 ) + 23 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT + 70 * 27 + - 65 - - - 89 * + 92 AS col2, - MIN( DISTINCT - 90 ) AS col0
----
-6363
90

skipif mysql # not compatible
query II rowsort label-1762
SELECT + 70 * 27 + - 65 - - - 89 * + 92 AS col2, - MIN ( DISTINCT - 90 ) AS col0
----
-6363
90

query I rowsort
SELECT CASE - - ( - - ( - 47 ) ) WHEN - + 39 THEN NULL ELSE + 78 END * + 25 AS col0
----
1950

query I rowsort
SELECT + 22 * + + 7 AS col1
----
154

query II rowsort
SELECT DISTINCT + 55 * - + ( 0 ), + ( 42 ) AS col1
----
0
42

query II rowsort
SELECT ALL - + 5 AS col2, 75
----
-5
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT COUNT( * ) AS col2, 73 AS col0
----
1
73

skipif mysql # not compatible
query II rowsort label-1767
SELECT COUNT ( * ) AS col2, 73 AS col0
----
1
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT ALL ( 36 ) * 34 + + ( + 93 ) + - + COUNT( * ) * + 4 DIV - - ( - COUNT( * ) ) + - 27 - + - 22 * - - 68 col1
----
2790

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL ( 36 ) * 34 + + ( + 93 ) + - + COUNT ( * ) * + 4 / - - ( - COUNT ( * ) ) + - 27 - + - 22 * - - 68 col1
----
2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1769
SELECT ALL - 11 AS col1, + ( - + 8 ) * COUNT( * ) + 63 DIV + 18 + - COUNT( * ) + + COUNT( * )
----
-11
-5

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL - 11 AS col1, + ( - + 8 ) * COUNT ( * ) + 63 / + 18 + - COUNT ( * ) + + COUNT ( * )
----
-11
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT COUNT( * ) - COUNT( * ) + - - 7 * SUM( ALL 34 ) * - 62 + + - 48
----
-14804

skipif mysql # not compatible
query I rowsort label-1770
SELECT COUNT ( * ) - COUNT ( * ) + - - 7 * SUM ( ALL 34 ) * - 62 + + - 48
----
-14804

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - MIN( ALL - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1771
SELECT - MIN ( ALL - 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT ALL 48 DIV 81 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 48 / 81 * + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT NULLIF ( - 0, 72 ) * + MIN( ALL 88 )
----
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT NULLIF ( - 0, 72 ) * + MIN ( ALL 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - MIN( + ( - 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-1774
SELECT - MIN ( + ( - 17 ) )
----
17

query II rowsort
SELECT ALL 22 AS col0, 66 AS col1
----
22
66

query I rowsort
SELECT ALL + 11 + 33 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL 88 + + COUNT( * ) - - 81
----
170

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL 88 + + COUNT ( * ) - - 81
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1778
SELECT DISTINCT 28, - CAST( + - 16 AS SIGNED ) AS col0
----
28
16

skipif mysql # not compatible
query II rowsort label-1778
SELECT DISTINCT 28, - CAST ( + - 16 AS INTEGER ) AS col0
----
28
16

query I rowsort
SELECT ALL 40 + - ( + - 94 ) AS col0
----
134

query II rowsort
SELECT 90 - + + 41 AS col0, 85 + - - 96
----
49
181

query I rowsort
SELECT 0 - - + 93
----
93

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

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

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

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

query I rowsort
SELECT DISTINCT 86 - 29 + + 67 * 3 + + + 9
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - - 52 * + + ( + MIN( - 66 ) ) AS col0
----
-3432

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - - 52 * + + ( + MIN ( - 66 ) ) AS col0
----
-3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1786
SELECT ALL - 81 * - 77 - 6 + - 44 DIV + + MAX( CAST( 56 AS SIGNED ) )
----
6231

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - 81 * - 77 - 6 + - 44 / + + MAX ( CAST ( 56 AS INTEGER ) )
----
6231

query II rowsort
SELECT DISTINCT + 5, + 12 AS col2
----
5
12

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT + 31 * - COUNT( * ) - - 24
----
-7

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + 31 * - COUNT ( * ) - - 24
----
-7

query I rowsort
SELECT - - 56 * - 9 AS col2
----
-504

query I rowsort
SELECT DISTINCT - - 10 * 59 * - CASE WHEN NOT ( - - 28 IS NOT NULL ) THEN - 16 ELSE NULL END + + 12
----
NULL

query II rowsort
SELECT DISTINCT + 74 AS col1, - 29 AS col2
----
74
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT - - 7 DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT - - 7 / - - 21
----
0

query I rowsort
SELECT ALL + 26 * + 79 col1
----
2054

query II rowsort
SELECT 2, - ( - 32 ) AS col2
----
2
32

query I rowsort
SELECT - 70 * - + 18 + + 80 AS col0
----
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + MIN( + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1798
SELECT + MIN ( + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - 36 + ( - MAX( DISTINCT 44 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 36 + ( - MAX ( DISTINCT 44 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT COUNT( * ) * + 79 + + + 47
----
126

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT COUNT ( * ) * + 79 + + + 47
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT COUNT( * ) * + 80 + - 32
----
48

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT COUNT ( * ) * + 80 + - 32
----
48

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

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

query I rowsort
SELECT ALL 1 + + 84 AS col1
----
85

query II rowsort
SELECT ALL + 70 + 85 AS col0, + 18
----
155
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - ( + 14 ) * - MAX( DISTINCT 71 ) AS col1
----
994

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - ( + 14 ) * - MAX ( DISTINCT 71 ) AS col1
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT NULLIF ( + MAX( - 76 ), 62 * - SUM( - - 89 ) * MAX( - 68 ) ) * + - 49 + - ( + 44 ) * - + 95 * - - 17 - 3
----
74781

skipif mysql # not compatible
query I rowsort label-1806
SELECT NULLIF ( + MAX ( - 76 ), 62 * - SUM ( - - 89 ) * MAX ( - 68 ) ) * + - 49 + - ( + 44 ) * - + 95 * - - 17 - 3
----
74781

query I rowsort
SELECT DISTINCT 6 * + 61 AS col1
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - COALESCE ( - 79, + CASE 59 WHEN - 50 + ( CASE + 56 WHEN + 62 * + 83 THEN NULL WHEN + AVG ( + 32 ) THEN - 86 * + CASE COUNT( + + 70 ) WHEN - - 45 + 3 + COUNT( * ) * - + 64 * 61 THEN NULL ELSE 14 END + - CASE + - 73 WHEN + 58 - - - 82 + + + 81 + - COUNT( * ) THEN + - 97 WHEN 41 * + 55 THEN ( - 8 ) * + + CASE - 58 WHEN + 60 THEN - 93 WHEN MAX( DISTINCT 86 ) * - 98 + - COUNT( * ) + + + ( + + 22 ) THEN - MAX( - 14 ) + + 13 WHEN - 19 THEN NULL ELSE - 90 END * 19 + + 34 END END ) THEN 25 + - 59 WHEN 84 * - COUNT( * ) - 84 THEN NULL END ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1808
SELECT - COALESCE ( - 79, + CASE 59 WHEN - 50 + ( CASE + 56 WHEN + 62 * + 83 THEN NULL WHEN + AVG ( + 32 ) THEN - 86 * + CASE COUNT ( + + 70 ) WHEN - - 45 + 3 + COUNT ( * ) * - + 64 * 61 THEN NULL ELSE 14 END + - CASE + - 73 WHEN + 58 - - - 82 + + + 81 + - COUNT ( * ) THEN + - 97 WHEN 41 * + 55 THEN ( - 8 ) * + + CASE - 58 WHEN + 60 THEN - 93 WHEN MAX ( DISTINCT 86 ) * - 98 + - COUNT ( * ) + + + ( + + 22 ) THEN - MAX ( - 14 ) + + 13 WHEN - 19 THEN NULL ELSE - 90 END * 19 + + 34 END END ) THEN 25 + - 59 WHEN 84 * - COUNT ( * ) - 84 THEN NULL END ) AS col1
----
79

query I rowsort
SELECT + 52 + 18
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1810
SELECT - ( - 94 ), 48 * 48 DIV 29 AS col2
----
94
79

skipif mysql # not compatible
query II rowsort label-1810
SELECT - ( - 94 ), 48 * 48 / 29 AS col2
----
94
79

query I rowsort
SELECT + 29 + - 94 - 19 + - 68 * - + 39 * + 84 + - ( + 43 ) AS col0
----
222641

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT + 5 + - - ( - 36 ) DIV 29
----
4

skipif mysql # not compatible
query I rowsort label-1812
SELECT + 5 + - - ( - 36 ) / 29
----
4

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

skipif mysql # not compatible
query I rowsort label-1813
SELECT + COUNT ( * ) / CAST ( - - 57 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + ( + + NULLIF ( - + COUNT( * ), + 59 ) ) DIV NULLIF ( + 88, 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + ( + + NULLIF ( - + COUNT ( * ), + 59 ) ) / NULLIF ( + 88, 32 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1815
SELECT DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), + 11, + 99 * 31 * + + 90 DIV 8 DIV - 4 + - 70 * - 10 ) * + 60 col0
----
-660

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), + 11, + 99 * 31 * + + 90 / 8 / - 4 + - 70 * - 10 ) * + 60 col0
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1816
SELECT DISTINCT - CAST( 82 AS SIGNED ), COUNT( 9 ) * - 89 + - 90 AS col1
----
-82
-179

skipif mysql # not compatible
query II rowsort label-1816
SELECT DISTINCT - CAST ( 82 AS INTEGER ), COUNT ( 9 ) * - 89 + - 90 AS col1
----
-82
-179

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + - COUNT( + + 42 ) * - COALESCE ( - - COUNT( * ), 66 )
----
1

skipif mysql # not compatible
query I rowsort label-1818
SELECT + - COUNT ( + + 42 ) * - COALESCE ( - - COUNT ( * ), 66 )
----
1

query II rowsort
SELECT + ( + - 44 ) col1, + 47 * + + 42 AS col2
----
-44
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + COUNT( * ) * - ( 61 ) - - 93 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) * - ( 61 ) - - 93 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT - 91 * ( + 64 ) + + - 86 * CAST( NULL AS SIGNED ) * COALESCE ( 81, - 79 + + 46 * - - 72 ) * - + ( - 61 ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT - 91 * ( + 64 ) + + - 86 * CAST ( NULL AS INTEGER ) * COALESCE ( 81, - 79 + + 46 * - - 72 ) * - + ( - 61 ) + - 85
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT ALL - 90 DIV MAX( 32 ) - + 10 + - + 6 col2
----
-18

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - 90 / MAX ( 32 ) - + 10 + - + 6 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - COUNT( DISTINCT + 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1824
SELECT - COUNT ( DISTINCT + 72 ) AS col0
----
-1

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

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

query II rowsort
SELECT 19 * + - 32 - 76, 21 + + + 20 AS col1
----
-684
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + 22 * + 33 + - + MIN( + - 72 ) * - CASE + 93 WHEN - ( + 55 ) - + 18 THEN + - 83 WHEN - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 22 * + 33 + - + MIN ( + - 72 ) * - CASE + 93 WHEN - ( + 55 ) - + 18 THEN + - 83 WHEN - 94 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1828
SELECT ALL 34 * CAST( NULL AS SIGNED ) + + MAX( - - CAST( NULL AS DECIMAL ) ) / - 35 + - 38 * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 34 * CAST ( NULL AS INTEGER ) + + MAX ( - - CAST ( NULL AS REAL ) ) / - 35 + - 38 * + 13
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT ALL 40 * + + COUNT( * ) + - 23, - 73 * + - 98 * 10 * + - 68 AS col0
----
17
-4864720

skipif mysql # not compatible
query II rowsort label-1830
SELECT ALL 40 * + + COUNT ( * ) + - 23, - 73 * + - 98 * 10 * + - 68 AS col0
----
17
-4864720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - COUNT( * ) * - 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - COUNT ( * ) * - 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + NULLIF ( - 55, + + CASE - + 40 WHEN COALESCE ( 46, 31 ) * + - 94 THEN AVG ( + + 14 ) * - 4 / + COUNT( * ) / 48 ELSE + + 85 END + + - 6 * - + 81 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + NULLIF ( - 55, + + CASE - + 40 WHEN COALESCE ( 46, 31 ) * + - 94 THEN AVG ( + + 14 ) * - 4 / + COUNT ( * ) / 48 ELSE + + 85 END + + - 6 * - + 81 ) AS col0
----
-55

query I rowsort
SELECT ALL 77 * + 93 + + 76 col0
----
7237

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT COALESCE ( - - 37, - COUNT( * ) + - 76 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-1835
SELECT COALESCE ( - - 37, - COUNT ( * ) + - 76 ) col2
----
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT CAST ( + 56 AS INTEGER )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1838
SELECT MAX( + ( + 38 ) ) AS col2, - 27 AS col0
----
38
-27

skipif mysql # not compatible
query II rowsort label-1838
SELECT MAX ( + ( + 38 ) ) AS col2, - 27 AS col0
----
38
-27

query I rowsort
SELECT DISTINCT - 66 * + NULLIF ( + 68, - 51 + - - 31 - 34 )
----
-4488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT DISTINCT CAST( ( - ( + 12 ) ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT CAST ( ( - ( + 12 ) ) AS INTEGER )
----
-12

query I rowsort
SELECT ALL 87 * + 58 AS col0
----
5046

query I rowsort
SELECT DISTINCT 5 * - 61 AS col2
----
-305

query I rowsort
SELECT DISTINCT - 67 * 96
----
-6432

query I rowsort
SELECT ALL + + 68 * - + 52
----
-3536

query I rowsort
SELECT 62 + - - 28 - + - 89
----
179

query II rowsort
SELECT ALL 45 AS col1, - 55
----
45
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT - 91 DIV 72 * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-1847
SELECT - 91 / 72 * + 29
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT 55 + - 28 DIV 64
----
55

skipif mysql # not compatible
query I rowsort label-1848
SELECT 55 + - 28 / 64
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - SUM( ALL 1 ) - - + COUNT( ALL + 13 ) * 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1849
SELECT - SUM ( ALL 1 ) - - + COUNT ( ALL + 13 ) * 3 AS col0
----
2

query II rowsort
SELECT ALL + 42, 18 * - - 39 AS col1
----
42
702

query I rowsort
SELECT ALL CASE + 66 WHEN - 74 * - 62 THEN 38 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1852
SELECT ALL - ( + 30 ) DIV - COUNT( * )
----
30

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

query I rowsort
SELECT ALL - 79 * + 91
----
-7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT DISTINCT 97 + - 46 * - COUNT( * ) * - COUNT( - 86 ) + + + 17 DIV + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT 97 + - 46 * - COUNT ( * ) * - COUNT ( - 86 ) + + + 17 / + COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT - 9 DIV + - 65 + - 31 + 6 * - 84 + + - 77 AS col1
----
-612

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 9 / + - 65 + - 31 + 6 * - 84 + + - 77 AS col1
----
-612

query I rowsort
SELECT ALL - 35 + + - 96 AS col0
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT - 67 DIV 39 + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 67 / 39 + 71 AS col1
----
70

query I rowsort
SELECT + CASE 2 WHEN 1 THEN - 45 END * 62
----
NULL

query I rowsort
SELECT - 7 + 19
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT 31 * - ( CAST( + - 68 AS SIGNED ) ) AS col1
----
2108

skipif mysql # not compatible
query I rowsort label-1860
SELECT 31 * - ( CAST ( + - 68 AS INTEGER ) ) AS col1
----
2108

query I rowsort
SELECT - 82 + - 60
----
-142

query I rowsort
SELECT ALL 25 + - + 17
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL - 88 + 17 + ( + CASE + SUM( - 24 ) WHEN - - 59 THEN + + 76 END ) + - 71 / + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - 88 + 17 + ( + CASE + SUM ( - 24 ) WHEN - - 59 THEN + + 76 END ) + - 71 / + + 82 col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT ALL 65 DIV - - 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL 65 / - - 54 AS col0
----
1

query II rowsort
SELECT ALL 24 - + 46 AS col1, - 64
----
-22
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT DISTINCT 83 DIV - + 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT 83 / - + 44 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT 79 * CASE COALESCE ( + 34, + 58 ) WHEN - 39 * + 49 THEN + COALESCE ( 34, + + 54, COUNT( * ) + 49 + 73 ) END + CAST( - - 30 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT 79 * CASE COALESCE ( + 34, + 58 ) WHEN - 39 * + 49 THEN + COALESCE ( 34, + + 54, COUNT ( * ) + 49 + 73 ) END + CAST ( - - 30 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT 94 * CAST( + + 72 AS SIGNED ) * + 74 * - 26 * + MIN( 54 ) + - 19 + - CASE + 61 WHEN - 49 THEN - 95 END - MAX( DISTINCT - 68 ) + - 60 * - - 10 / - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT 94 * CAST ( + + 72 AS INTEGER ) * + 74 * - 26 * + MIN ( 54 ) + - 19 + - CASE + 61 WHEN - 49 THEN - 95 END - MAX ( DISTINCT - 68 ) + - 60 * - - 10 / - 61 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT 3 * - - CAST( + - 37 AS SIGNED )
----
-111

skipif mysql # not compatible
query I rowsort label-1870
SELECT 3 * - - CAST ( + - 37 AS INTEGER )
----
-111

query I rowsort
SELECT DISTINCT + 34 * - - 4 AS col2
----
136

query I rowsort
SELECT ALL - 80 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT 80 + + 29 + NULLIF ( + COUNT( * ), + 68 ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-1873
SELECT 80 + + 29 + NULLIF ( + COUNT ( * ), + 68 ) AS col0
----
110

query I rowsort
SELECT ALL 82 * + ( - + 88 )
----
-7216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1875
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) * + 1 * ( - 43 ) + 76 * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) * + 1 * ( - 43 ) + 76 * + + 5
----
NULL

query I rowsort
SELECT 93 * - 74
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - 89 * - + MIN( + 10 ) AS col0
----
890

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 89 * - + MIN ( + 10 ) AS col0
----
890

query I rowsort
SELECT ALL - 80 * + 30 AS col0
----
-2400

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

skipif mysql # not compatible
query I rowsort label-1879
SELECT COUNT ( * ) + - - 13 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1880
SELECT DISTINCT COALESCE ( - + 40, ( - MIN( ALL 77 ) ), + COUNT( * ) DIV 14, + 66 * 1 ), - NULLIF ( 48, 70 ) - - 7 AS col0
----
-40
-41

skipif mysql # not compatible
query II rowsort label-1880
SELECT DISTINCT COALESCE ( - + 40, ( - MIN ( ALL 77 ) ), + COUNT ( * ) / 14, + 66 * 1 ), - NULLIF ( 48, 70 ) - - 7 AS col0
----
-40
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + 14 * - - NULLIF ( - - SUM( DISTINCT + 62 ), - 7 * - 94 * - 53 + + 30 )
----
868

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 14 * - - NULLIF ( - - SUM ( DISTINCT + 62 ), - 7 * - 94 * - 53 + + 30 )
----
868

query I rowsort
SELECT - ( 6 ) + 96 * + 19 + 35 + + 47 * - + 7 * + + 47 AS col0
----
-13610

query I rowsort
SELECT - 80 * ( 52 )
----
-4160

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

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

query I rowsort
SELECT ALL - 30 + - 90 * + - 37
----
3300

query I rowsort
SELECT - - NULLIF ( - 74, - 9 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL - 50 + COALESCE ( + - 91, + 26 + + CAST( - COUNT( * ) AS SIGNED ) )
----
-141

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - 50 + COALESCE ( + - 91, + 26 + + CAST ( - COUNT ( * ) AS INTEGER ) )
----
-141

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

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + CAST ( NULL AS INTEGER ) + + 94 + + + 10
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT - 83 - 49 - + 22 * - COUNT( * ) * - - 5, + ( + ( + 25 ) ) col1
----
-22
25

skipif mysql # not compatible
query II rowsort label-1890
SELECT - 83 - 49 - + 22 * - COUNT ( * ) * - - 5, + ( + ( + 25 ) ) col1
----
-22
25

query I rowsort
SELECT 69 * + - 12 + 37
----
-791

query I rowsort
SELECT - ( - 4 ) + - 30 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT NULLIF ( + 52, + - MIN( DISTINCT 82 ) * CASE - - CAST( + 17 AS SIGNED ) WHEN + 91 * + + 97 THEN NULL ELSE - 91 * - 78 / + 50 + 28 - + 30 END * + - 81 * NULLIF ( 48, + 43 + + 22 + + + COUNT( * ) - + MIN( + - 18 ) / + ( + + COUNT( * ) ) * COUNT( * ) * - 95 + + 15 + 42 * - COUNT( * ) * - 77 * + + 29 ) ) * + - 92 AS col0
----
-4784

skipif mysql # not compatible
query I rowsort label-1893
SELECT NULLIF ( + 52, + - MIN ( DISTINCT 82 ) * CASE - - CAST ( + 17 AS INTEGER ) WHEN + 91 * + + 97 THEN NULL ELSE - 91 * - 78 / + 50 + 28 - + 30 END * + - 81 * NULLIF ( 48, + 43 + + 22 + + + COUNT ( * ) - + MIN ( + - 18 ) / + ( + + COUNT ( * ) ) * COUNT ( * ) * - 95 + + 15 + 42 * - COUNT ( * ) * - 77 * + + 29 ) ) * + - 92 AS col0
----
-4784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL - + CAST( + 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - + CAST ( + 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT SUM( + 63 ) * 0 - 21
----
-21

skipif mysql # not compatible
query I rowsort label-1895
SELECT SUM ( + 63 ) * 0 - 21
----
-21

query I rowsort
SELECT ALL 78 * - - 99
----
7722

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT 68 - 96 * - + SUM( + 42 ) AS col2
----
4100

skipif mysql # not compatible
query I rowsort label-1898
SELECT 68 - 96 * - + SUM ( + 42 ) AS col2
----
4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT ALL 95 * + + 90 * + 4 * ( + - 62 ) * + CASE - 91 WHEN + + COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END + - COALESCE ( + 96, - 91 - + + 58 + ( 15 ), - + 33 ) - - - COUNT( * ) * - AVG ( DISTINCT - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL 95 * + + 90 * + 4 * ( + - 62 ) * + CASE - 91 WHEN + + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END + - COALESCE ( + 96, - 91 - + + 58 + ( 15 ), - + 33 ) - - - COUNT ( * ) * - AVG ( DISTINCT - 24 )
----
NULL

query II rowsort
SELECT DISTINCT - 46 AS col0, COALESCE ( + 61, - + 96 + + 36 ) * 20
----
-46
1220

query I rowsort
SELECT ALL 42 * - + 29 AS col0
----
-1218

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT 93 DIV + 55 + + + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1903
SELECT 93 / + 55 + + + 75 AS col2
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1904
SELECT + COALESCE ( - - 91, - 90 - + - 31, + - 62 ) AS col0, + 65 * + 29 * COALESCE ( + + 90, - - 0 DIV + + 33, + 35 ) AS col2
----
91
169650

skipif mysql # not compatible
query II rowsort label-1904
SELECT + COALESCE ( - - 91, - 90 - + - 31, + - 62 ) AS col0, + 65 * + 29 * COALESCE ( + + 90, - - 0 / + + 33, + 35 ) AS col2
----
91
169650

query I rowsort
SELECT DISTINCT 77 * - 7
----
-539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT - CAST( NULL AS SIGNED ) * - + ( 10 ) - + ( + 63 ) / - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - CAST ( NULL AS INTEGER ) * - + ( 10 ) - + ( + 63 ) / - 59 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 * - + 50 AS col2
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT - MAX( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - MAX ( - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT MAX( DISTINCT 54 )
----
54

skipif mysql # not compatible
query I rowsort label-1909
SELECT MAX ( DISTINCT 54 )
----
54

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + COUNT ( * ) / + 61 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT + MIN( 6 ) - ( 45 ) * + 6 AS col2, 24 AS col0
----
-264
24

skipif mysql # not compatible
query II rowsort label-1912
SELECT + MIN ( 6 ) - ( 45 ) * + 6 AS col2, 24 AS col0
----
-264
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + COUNT( 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT + COUNT ( 9 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT - 22 DIV - 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 22 / - 94 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL NULLIF ( + 58, - 50 ) + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL NULLIF ( + 58, - 50 ) + COUNT ( * )
----
59

query I rowsort
SELECT 22 * + 14 + 22 AS col2
----
330

query I rowsort
SELECT ALL - 49 + 88 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT + 86 DIV + MIN( - 55 DIV + 51 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1918
SELECT + 86 / + MIN ( - 55 / + 51 ) AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT - 92 DIV COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 92 / COUNT ( * )
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT 50 * + 23 - MIN( DISTINCT - 97 + + ( - 44 ) )
----
1291

skipif mysql # not compatible
query I rowsort label-1921
SELECT 50 * + 23 - MIN ( DISTINCT - 97 + + ( - 44 ) )
----
1291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT ALL MIN( DISTINCT 27 ) + + 54 DIV + 86
----
27

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL MIN ( DISTINCT 27 ) + + 54 / + 86
----
27

query I rowsort
SELECT DISTINCT 27 + COALESCE ( + 2, - 54 + + 6, - 40 + 8 ) AS col2
----
29

query I rowsort
SELECT - 56 + - 17 AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + 44 + + 96 * + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-1926
SELECT + 44 + + 96 * + COUNT ( * )
----
140

query I rowsort
SELECT ALL - 60 + + 20
----
-40

query I rowsort
SELECT - 20 + + 25 col2
----
5

query I rowsort
SELECT - 26 - 6 * + 26 AS col1
----
-182

query I rowsort
SELECT DISTINCT - 42 + 84 AS col1
----
42

query I rowsort
SELECT - 73 + + 99 * + 84 AS col0
----
8243

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + 78 + + SUM( DISTINCT - 55 ) * 28 AS col1
----
-1462

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 78 + + SUM ( DISTINCT - 55 ) * 28 AS col1
----
-1462

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + 69 * - SUM( ALL 69 ) AS col1
----
-4761

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 69 * - SUM ( ALL 69 ) AS col1
----
-4761

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

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL COUNT ( DISTINCT + ( + 68 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 70 * + 33 col2
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT + 16 DIV + 62 + - COUNT( * ) * 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1937
SELECT + 16 / + 62 + - COUNT ( * ) * 79 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1938
SELECT - 30 DIV COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 30 / COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT + 36 * + 53
----
1908

query I rowsort
SELECT - 48 + ( + 76 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - COUNT( * ) + 62 * 7 AS col0
----
433

skipif mysql # not compatible
query I rowsort label-1941
SELECT - COUNT ( * ) + 62 * 7 AS col0
----
433

query I rowsort
SELECT + CASE 5 WHEN 26 * - 56 THEN 95 * + COALESCE ( 37, + 35 ) WHEN 38 + - 44 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT + 89 + + NULLIF ( + 82, - 28 * CAST( ( - 72 ) AS SIGNED ) + + COUNT( * ) ) * 37 AS col2
----
3123

skipif mysql # not compatible
query I rowsort label-1943
SELECT + 89 + + NULLIF ( + 82, - 28 * CAST ( ( - 72 ) AS INTEGER ) + + COUNT ( * ) ) * 37 AS col2
----
3123

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

skipif mysql # not compatible
query I rowsort label-1944
SELECT - 0 / + 19
----
0

query I rowsort
SELECT + 6 * - 89
----
-534

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

skipif mysql # not compatible
query I rowsort label-1946
SELECT - ( COUNT ( * ) ) * 12
----
-12

query I rowsort
SELECT + 34 * 54 + + 31
----
1867

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

query I rowsort
SELECT ALL 64 * - 86 AS col2
----
-5504

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT ALL - 17 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - 17 / + 74
----
0

query I rowsort
SELECT DISTINCT 82 * + ( - 17 * 53 )
----
-73882

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + 46 + - SUM( ALL - 96 ) * 82
----
7918

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 46 + - SUM ( ALL - 96 ) * 82
----
7918

query I rowsort
SELECT + 71 * 93 + - 2 col2
----
6601

query I rowsort
SELECT NULLIF ( 78, + 22 )
----
78

query I rowsort
SELECT + ( + 70 ) col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT - COUNT( * ) + 39 * - 77
----
-3004

skipif mysql # not compatible
query I rowsort label-1956
SELECT - COUNT ( * ) + 39 * - 77
----
-3004

query I rowsort
SELECT - 95 * + 57 + 63 * - 35
----
-7620

query I rowsort
SELECT ALL - 63 * 49 + 73
----
-3014

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + - CAST( ( 70 ) AS SIGNED ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-1960
SELECT + - CAST ( ( 70 ) AS INTEGER ) col0
----
-70

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

skipif mysql # not compatible
query I rowsort label-1961
SELECT + 18 + - ( + ( CAST ( NULL AS INTEGER ) ) ) * 34
----
NULL

query I rowsort
SELECT + 58 + - 79
----
-21

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

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL 32 * + COUNT ( + 50 ) AS col1
----
32

query I rowsort
SELECT + 85 + 43 AS col1
----
128

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + 39, 8 ) ) AS col0
----
-39

query I rowsort
SELECT + + 17 * - 88
----
-1496

query I rowsort
SELECT + - 11 * + 18
----
-198

query I rowsort
SELECT DISTINCT 86 - 39
----
47

query I rowsort
SELECT - - 62 + - 49 * 65 AS col1
----
-3123

query I rowsort
SELECT + 74 * + 74
----
5476

query I rowsort
SELECT - + 85 + + 18
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT DISTINCT - + MAX( 16 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - + MAX ( 16 ) / - 88
----
0

query I rowsort
SELECT + 31 - - + 52 * - 99
----
-5117

query I rowsort
SELECT ALL NULLIF ( - 92, - 10 * 84 ) AS col1
----
-92

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

query I rowsort
SELECT + ( + 3 ) - 62 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - 24 * 26 / CASE 78 * 29 WHEN COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT - 24 * 26 / CASE 78 * 29 WHEN COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - 30 + - NULLIF ( - 93, - 50 * SUM( DISTINCT 95 ) - + 90 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 30 + - NULLIF ( - 93, - 50 * SUM ( DISTINCT 95 ) - + 90 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT DISTINCT ( + COALESCE ( - 21, + 74 * COUNT( * ), + 78 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT ( + COALESCE ( - 21, + 74 * COUNT ( * ), + 78 ) )
----
-21

query I rowsort
SELECT DISTINCT - 39 * + ( + 98 ) AS col0
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL - NULLIF ( - COUNT( * ), + 34 ) * 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - NULLIF ( - COUNT ( * ), + 34 ) * 52 AS col0
----
52

query I rowsort
SELECT 90 * + + 40 AS col2
----
3600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1983
SELECT DISTINCT - 48 DIV + 56 * - CAST( - 66 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - 48 / + 56 * - CAST ( - 66 AS INTEGER ) col2
----
0

query I rowsort
SELECT DISTINCT - 3 + 92 + 1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 3 - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1985
SELECT 3 - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL - 30 * 12 AS col1
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT DISTINCT - COALESCE ( + - 66, 22 DIV 43 + - ( + 25 + 15 ) * + COUNT( * ), - COUNT( * ) * 32 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT - COALESCE ( + - 66, 22 / 43 + - ( + 25 + 15 ) * + COUNT ( * ), - COUNT ( * ) * 32 ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT ALL - 21 + - 92 DIV - SUM( DISTINCT 32 + + 9 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - 21 + - 92 / - SUM ( DISTINCT 32 + + 9 ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1989
SELECT 99 DIV CAST( + 79 AS SIGNED ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1989
SELECT 99 / CAST ( + 79 AS INTEGER ) / - COUNT ( * )
----
-1

query I rowsort
SELECT 35 * + 80 AS col2
----
2800

query I rowsort
SELECT ALL - 86 + + 37
----
-49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT 6 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT 6 / - 51 AS col1
----
0

query I rowsort
SELECT ALL - 1 + + 99
----
98

query I rowsort
SELECT + + CASE - 7 WHEN 83 + - 26 THEN NULL WHEN 57 THEN - ( + 25 ) / 84 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - 21 + NULLIF ( + 43, - 14 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - 21 + NULLIF ( + 43, - 14 ) + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL - 63 * - COUNT( - 97 ) * - 88
----
-5544

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - 63 * - COUNT ( - 97 ) * - 88
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + ( + + CASE - 0 WHEN 27 THEN 32 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + ( + + CASE - 0 WHEN 27 THEN 32 * COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT CASE + 88 WHEN ( - 95 ) * + 75 THEN - MIN( - 62 ) + - ( - COUNT( CAST( 79 AS SIGNED ) ) + - MIN( 60 ) ) END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT CASE + 88 WHEN ( - 95 ) * + 75 THEN - MIN ( - 62 ) + - ( - COUNT ( CAST ( 79 AS INTEGER ) ) + - MIN ( 60 ) ) END + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + CASE + - ( ( + NULLIF ( 82, 8 * + 6 - 28 ) ) ) WHEN COUNT( * ) / - 33 THEN + 67 * - 55 WHEN 16 THEN NULL ELSE - COUNT( * ) - MAX( ALL 45 ) END AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2000
SELECT + CASE + - ( ( + NULLIF ( 82, 8 * + 6 - 28 ) ) ) WHEN COUNT ( * ) / - 33 THEN + 67 * - 55 WHEN 16 THEN NULL ELSE - COUNT ( * ) - MAX ( ALL 45 ) END AS col1
----
-46

query I rowsort
SELECT ALL + ( - 65 ) * 76
----
-4940

query I rowsort
SELECT ALL 75 * - - 56
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT MIN( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT MIN ( - 44 )
----
-44

query I rowsort
SELECT + 85 + - 36 AS col1
----
49

query I rowsort
SELECT ALL + 25 - - 23 AS col1
----
48

query I rowsort
SELECT + 99 + + 69 * - 88 AS col2
----
-5973

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - NULLIF ( - ( 53 ), 14 ) * + MIN( DISTINCT 26 * - 89 ) AS col2
----
-122642

skipif mysql # not compatible
query I rowsort label-2007
SELECT - NULLIF ( - ( 53 ), 14 ) * + MIN ( DISTINCT 26 * - 89 ) AS col2
----
-122642

query I rowsort
SELECT ( - 78 ) + - 73 AS col0
----
-151

query I rowsort
SELECT 58 + - 26
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT 94 - + 5 + + 88 + 18 DIV 55
----
177

skipif mysql # not compatible
query I rowsort label-2010
SELECT 94 - + 5 + + 88 + 18 / 55
----
177

query I rowsort
SELECT ALL 19 * + 41 AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT MAX( ALL + 9 ) * + 18 + 36 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-2012
SELECT MAX ( ALL + 9 ) * + 18 + 36 AS col0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT CAST( - 21 AS SIGNED ) + 42 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2013
SELECT CAST ( - 21 AS INTEGER ) + 42 AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT 3 - + 79 DIV + 76 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2014
SELECT 3 - + 79 / + 76 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT 12 + - 52 + + COUNT( * ) * - 47 * ( CAST( - 89 AS SIGNED ) + - 79 * + 75 ) AS col0
----
282618

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 12 + - 52 + + COUNT ( * ) * - 47 * ( CAST ( - 89 AS INTEGER ) + - 79 * + 75 ) AS col0
----
282618

query II rowsort
SELECT 87 col1, 76 col2
----
87
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL + CASE 44 WHEN + COUNT( * ) THEN NULL WHEN - 97 / - 57 THEN + 12 END + 81 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + CASE 44 WHEN + COUNT ( * ) THEN NULL WHEN - 97 / - 57 THEN + 12 END + 81 * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL - 35 + - + COALESCE ( - + COUNT( * ), 91 ) + ( 7 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 35 + - + COALESCE ( - + COUNT ( * ), 91 ) + ( 7 ) AS col0
----
-27

query I rowsort
SELECT ALL 59 * + + 11 * + 11 AS col2
----
7139

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT 18 + + - 13 - NULLIF ( + CASE 87 WHEN 12 * 1 + 50 THEN NULL WHEN 99 + - 7 * 44 THEN - 83 + - COUNT( * ) * - 62 END, + 35 ) + - COUNT( * ) * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT 18 + + - 13 - NULLIF ( + CASE 87 WHEN 12 * 1 + 50 THEN NULL WHEN 99 + - 7 * 44 THEN - 83 + - COUNT ( * ) * - 62 END, + 35 ) + - COUNT ( * ) * + 65 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - ( COUNT ( * ) ) + + 56 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2022
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) DIV + 2 + + SUM( 84 ) DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) / + 2 + + SUM ( 84 ) / 84
----
1

query I rowsort
SELECT 90 + - 92 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT - COUNT( * ) + - - 19 + - + 72 + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - COUNT ( * ) + - - 19 + - + 72 + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT COUNT( * ) * 37 + - 6 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2025
SELECT COUNT ( * ) * 37 + - 6 AS col0
----
31

query II rowsort
SELECT + 32, 63 AS col2
----
32
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL - CAST( - - 82 AS SIGNED ) + - 29 * MAX( ALL 11 )
----
-401

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - CAST ( - - 82 AS INTEGER ) + - 29 * MAX ( ALL 11 )
----
-401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL - CAST( - 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - CAST ( - 84 AS INTEGER ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2029
SELECT - CAST( 89 AS SIGNED ) DIV - 92 * 81 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-2029
SELECT - CAST ( 89 AS INTEGER ) / - 92 * 81 + + 45
----
45

query I rowsort
SELECT 28 * 1
----
28

query I rowsort
SELECT ALL - 72 * + 12 AS col2
----
-864

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - + 23 * + + 19 + + ( COUNT( * ) ) + COUNT( * ) AS col0
----
-435

skipif mysql # not compatible
query I rowsort label-2033
SELECT - + 23 * + + 19 + + ( COUNT ( * ) ) + COUNT ( * ) AS col0
----
-435

query I rowsort
SELECT DISTINCT + 22 - 28 AS col2
----
-6

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

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

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

query II rowsort
SELECT ALL - 3 AS col1, + 6 * - 26 + 27
----
-3
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT ( SUM( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ( SUM ( ALL - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 90 + 11 AS col0
----
101

query II rowsort
SELECT ALL - 49 AS col1, ( - + 18 ) AS col0
----
-49
-18

query I rowsort
SELECT 92 * 75 * - 78
----
-538200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT ALL + + COUNT( * ) DIV - 13 + 64 + 91
----
155

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + + COUNT ( * ) / - 13 + 64 + 91
----
155

query I rowsort
SELECT + 56 + - 88 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2044
SELECT ALL - + 26, CASE 7 WHEN - 35 THEN - COUNT( DISTINCT 47 ) * - 27 ELSE CAST( NULL AS SIGNED ) + COUNT( * ) END AS col2
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL - + 26, CASE 7 WHEN - 35 THEN - COUNT ( DISTINCT 47 ) * - 27 ELSE CAST ( NULL AS INTEGER ) + COUNT ( * ) END AS col2
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT CASE - - 47 WHEN + 41 THEN NULL ELSE 77 * + SUM( 52 ) END * + 19 + COUNT( * )
----
76077

skipif mysql # not compatible
query I rowsort label-2045
SELECT CASE - - 47 WHEN + 41 THEN NULL ELSE 77 * + SUM ( 52 ) END * + 19 + COUNT ( * )
----
76077

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

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + - COUNT ( * ) / 40 col1
----
0

query I rowsort
SELECT ALL 22 * - - 20 * 74
----
32560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - MAX( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2049
SELECT - MAX ( ALL 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT COUNT( * ) + - - COUNT( * ) * - 69 + - - 79 + + CAST( 22 AS SIGNED ) * 64
----
1419

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( * ) + - - COUNT ( * ) * - 69 + - - 79 + + CAST ( 22 AS INTEGER ) * 64
----
1419

query I rowsort
SELECT DISTINCT 13 + + 69 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT - COUNT( ALL 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT - COUNT ( ALL 16 ) AS col2
----
-1

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

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

query I rowsort
SELECT + 71 + 52 AS col1
----
123

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

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

query I rowsort
SELECT ALL 53 + + - 54 - + - 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL COUNT( * ) + ( + 28 )
----
29

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL COUNT ( * ) + ( + 28 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + COALESCE ( - - 27, + - 87 + + - MAX( DISTINCT - 61 ) * - 35, COUNT( * ) * NULLIF ( COUNT( * ), - 98 / - 97 - - 30 ) ) - 49
----
-22

skipif mysql # not compatible
query I rowsort label-2058
SELECT + COALESCE ( - - 27, + - 87 + + - MAX ( DISTINCT - 61 ) * - 35, COUNT ( * ) * NULLIF ( COUNT ( * ), - 98 / - 97 - - 30 ) ) - 49
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT + ( - + 55 ) DIV + 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2059
SELECT + ( - + 55 ) / + 7 AS col1
----
-7

query I rowsort
SELECT + 94 + + - 82 + - - 40
----
52

query I rowsort
SELECT - NULLIF ( 21, + - 38 ) AS col2
----
-21

query I rowsort
SELECT - 76 * + 85 * + 97
----
-626620

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL ( - MIN( ALL - 37 ) ) * - - 73 + + 80 col0
----
2781

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL ( - MIN ( ALL - 37 ) ) * - - 73 + + 80 col0
----
2781

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL + 98 * - - 69 + CASE 84 WHEN 24 THEN + SUM( - 59 ) ELSE - 11 END + - SUM( ALL - 17 ) * 42 col0
----
7465

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + 98 * - - 69 + CASE 84 WHEN 24 THEN + SUM ( - 59 ) ELSE - 11 END + - SUM ( ALL - 17 ) * 42 col0
----
7465

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL + CASE - - 83 WHEN + CASE - COUNT( * ) WHEN - 62 * 46 + 23 THEN - ( + COUNT( * ) ) + - 79 ELSE NULL END + + 87 THEN NULL WHEN + 38 THEN 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + CASE - - 83 WHEN + CASE - COUNT ( * ) WHEN - 62 * 46 + 23 THEN - ( + COUNT ( * ) ) + - 79 ELSE NULL END + + 87 THEN NULL WHEN + 38 THEN 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL ( COUNT( * ) ) * + MAX( 45 ) + - 3 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL ( COUNT ( * ) ) * + MAX ( 45 ) + - 3 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + - MAX( ALL - - 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + - MAX ( ALL - - 31 ) col2
----
-31

query I rowsort
SELECT + COALESCE ( 44, - 78 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT COALESCE ( - - 48, + CAST( NULL AS SIGNED ), + 79 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2069
SELECT COALESCE ( - - 48, + CAST ( NULL AS INTEGER ), + 79 ) AS col2
----
48

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

skipif mysql # not compatible
query I rowsort label-2070
SELECT - + 5 * - ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT DISTINCT + 77 * - CAST( + 29 AS SIGNED ) AS col1
----
-2233

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + 77 * - CAST ( + 29 AS INTEGER ) AS col1
----
-2233

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - 81 * + COALESCE ( ( + - COUNT( DISTINCT + 70 ) ), - COUNT( * ) * NULLIF ( 46, + 60 * - CASE - COUNT( * ) * + 73 WHEN 34 * + 79 THEN NULL WHEN 68 * - COALESCE ( + 30, 99 ) THEN + ( + 33 ) * 94 END ), - 53 + 43 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 81 * + COALESCE ( ( + - COUNT ( DISTINCT + 70 ) ), - COUNT ( * ) * NULLIF ( 46, + 60 * - CASE - COUNT ( * ) * + 73 WHEN 34 * + 79 THEN NULL WHEN 68 * - COALESCE ( + 30, 99 ) THEN + ( + 33 ) * 94 END ), - 53 + 43 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL + COUNT( * ) * + - 49 * + + 53 + - 17 * + 99 AS col1
----
-4280

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + COUNT ( * ) * + - 49 * + + 53 + - 17 * + 99 AS col1
----
-4280

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT + - 28 + 41 AS col1, 86 * - COUNT( * ) * + 81
----
13
-6966

skipif mysql # not compatible
query II rowsort label-2075
SELECT + - 28 + 41 AS col1, 86 * - COUNT ( * ) * + 81
----
13
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + + 67 * - 99 * + - 8 - + + COUNT( * )
----
53063

skipif mysql # not compatible
query I rowsort label-2076
SELECT + + 67 * - 99 * + - 8 - + + COUNT ( * )
----
53063

query I rowsort
SELECT - + 53 + - 67
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2078
SELECT ALL CASE - + 43 WHEN + 27 + - - CASE 70 WHEN 97 DIV + 25 + - 81 THEN + 42 * COUNT( DISTINCT 45 ) WHEN + 85 * - 97 THEN - 61 ELSE + 41 END * 60 THEN + MIN( - 62 ) WHEN 2 * 91 THEN NULL ELSE + 97 DIV 13 + 62 END AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL CASE - + 43 WHEN + 27 + - - CASE 70 WHEN 97 / + 25 + - 81 THEN + 42 * COUNT ( DISTINCT 45 ) WHEN + 85 * - 97 THEN - 61 ELSE + 41 END * 60 THEN + MIN ( - 62 ) WHEN 2 * 91 THEN NULL ELSE + 97 / 13 + 62 END AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + COUNT( * ) * 74 * - - 29 + + 21
----
2167

skipif mysql # not compatible
query I rowsort label-2079
SELECT + COUNT ( * ) * 74 * - - 29 + + 21
----
2167

query I rowsort
SELECT - - 73 * - 18 AS col0
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - + COUNT( * ) + + ( 77 ) + - 35 * 46
----
-1534

skipif mysql # not compatible
query I rowsort label-2081
SELECT - + COUNT ( * ) + + ( 77 ) + - 35 * 46
----
-1534

query I rowsort
SELECT ALL NULLIF ( 64, - + 3 + 40 ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL + 7 + MIN( DISTINCT - CAST( 79 AS SIGNED ) ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL + 7 + MIN ( DISTINCT - CAST ( 79 AS INTEGER ) ) col2
----
-72

query I rowsort
SELECT ALL ( 0 ) * + 90 - - - 49 * + COALESCE ( - 53, 17 )
----
2597

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

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

query I rowsort
SELECT - 30 + - 89 - + 83 + 58 + 37 AS col0
----
-107

query I rowsort
SELECT - 6 + - 81
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT ALL - 71 + + + CAST( + 59 AS SIGNED ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - 71 + + + CAST ( + 59 AS INTEGER ) col2
----
-12

query I rowsort
SELECT - 18 + - - ( + 53 ) AS col1
----
35

query I rowsort
SELECT ALL - 62 * - + 83 AS col0
----
5146

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT - ( + - 13 ) + + - COUNT( * ) AS col2, COUNT( * ) col1
----
12
1

skipif mysql # not compatible
query II rowsort label-2091
SELECT - ( + - 13 ) + + - COUNT ( * ) AS col2, COUNT ( * ) col1
----
12
1

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

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

query I rowsort
SELECT ALL + 99 * + + 36
----
3564

query II rowsort
SELECT 33 AS col1, 6
----
33
6

query I rowsort
SELECT DISTINCT + 17 * + 79
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL ( + COUNT( * ) ) - - NULLIF ( + 10, + 42 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL ( + COUNT ( * ) ) - - NULLIF ( + 10, + 42 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 64 * 29 DIV + 70
----
-26

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 64 * 29 / + 70
----
-26

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

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + COUNT ( * ) * 0 AS col2
----
0

query I rowsort
SELECT + 40 + + 94
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT - 79 DIV 50 + + 90 + + 38 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-2100
SELECT - 79 / 50 + + 90 + + 38 AS col1
----
127

query I rowsort
SELECT + - CASE + 21 WHEN + 39 * 47 - + 24 + + NULLIF ( + 15 + - 26 * 27, 58 + 11 ) THEN NULL WHEN 11 + + 24 THEN + 99 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT + - ( + + 33 ) DIV - - COUNT( ALL + 58 ) + 93 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2102
SELECT + - ( + + 33 ) / - - COUNT ( ALL + 58 ) + 93 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + - 6 * + - SUM( DISTINCT 92 ) + + COUNT( * ) AS col1
----
553

skipif mysql # not compatible
query I rowsort label-2103
SELECT + - 6 * + - SUM ( DISTINCT 92 ) + + COUNT ( * ) AS col1
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT + 29 DIV 98 * + 62 + + MIN( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-2104
SELECT + 29 / 98 * + 62 + + MIN ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL 99 * MAX( + 47 ) AS col2
----
4653

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL 99 * MAX ( + 47 ) AS col2
----
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2106
SELECT - 39 DIV + MAX( - 43 ) - + COUNT( * ) + + + NULLIF ( + 86, + 10 ) + 74 * + 15 col1
----
1195

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 39 / + MAX ( - 43 ) - + COUNT ( * ) + + + NULLIF ( + 86, + 10 ) + 74 * + 15 col1
----
1195

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + 51 + + - SUM( - 10 ) + + 90 * 78
----
7081

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 51 + + - SUM ( - 10 ) + + 90 * 78
----
7081

query I rowsort
SELECT ALL - 37 * + 32 * + 83 * + 37 AS col2
----
-3636064

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - + 51 + - - MAX( DISTINCT 14 )
----
-37

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + 51 + - - MAX ( DISTINCT 14 )
----
-37

query I rowsort
SELECT + + 45 col2
----
45

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

query I rowsort
SELECT ALL + - 67 + - 29
----
-96

query I rowsort
SELECT DISTINCT + - 42 * - - 99 col0
----
-4158

query I rowsort
SELECT DISTINCT - 94 + - + 70 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + 76 * - MAX( ALL 87 ) AS col0
----
-6612

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + 76 * - MAX ( ALL 87 ) AS col0
----
-6612

query I rowsort
SELECT 3 * + COALESCE ( - 99, + 83 - - 20 ) AS col2
----
-297

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

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL COUNT ( * ) + + 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT 16 AS col0, - COUNT( * ) AS col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-2118
SELECT 16 AS col0, - COUNT ( * ) AS col2
----
16
-1

query II rowsort
SELECT - 51 AS col2, + 62
----
-51
62

query II rowsort
SELECT 24 AS col2, + ( - - 70 ) + - 93
----
24
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT 93 DIV - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2122
SELECT 93 / - COUNT ( * )
----
-93

query I rowsort
SELECT 28 + + - ( + - 45 ) AS col1
----
73

query I rowsort
SELECT 38 + + 74 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2125
SELECT ALL 64, + CASE - COUNT( * ) WHEN - 97 THEN + COUNT( * ) * - COALESCE ( - 37, CASE 80 WHEN 52 THEN - 13 WHEN CAST( 58 AS SIGNED ) * - COUNT( * ) - + CASE 36 WHEN MIN( + 63 ) * 95 + 17 THEN 94 ELSE 90 * - COUNT( * ) + + AVG ( 47 + - 47 * ( 59 ) ) END THEN NULL END * - 42 ) ELSE + 55 END AS col2
----
64
55

skipif mysql # not compatible
query II rowsort label-2125
SELECT ALL 64, + CASE - COUNT ( * ) WHEN - 97 THEN + COUNT ( * ) * - COALESCE ( - 37, CASE 80 WHEN 52 THEN - 13 WHEN CAST ( 58 AS INTEGER ) * - COUNT ( * ) - + CASE 36 WHEN MIN ( + 63 ) * 95 + 17 THEN 94 ELSE 90 * - COUNT ( * ) + + AVG ( 47 + - 47 * ( 59 ) ) END THEN NULL END * - 42 ) ELSE + 55 END AS col2
----
64
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT ALL - NULLIF ( + 15, CAST( NULL AS SIGNED ) * - 48 / - 17 + + + 89 * 39 ) - 39 * 78 AS col1
----
-3057

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - NULLIF ( + 15, CAST ( NULL AS INTEGER ) * - 48 / - 17 + + + 89 * 39 ) - 39 * 78 AS col1
----
-3057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT 18 DIV - 19 * COUNT( * ) * - 87
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT 18 / - 19 * COUNT ( * ) * - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT ALL - ( - 1 ) DIV + 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - ( - 1 ) / + 72 col2
----
0

query II rowsort
SELECT ALL 74 AS col1, + 83
----
74
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT DISTINCT - 13 * + COUNT( * ) * + CAST( NULL AS SIGNED ) * 76 * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - 13 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 76 * + 54 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL - 41 DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - 41 / - + 50
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2132
SELECT 8 DIV + 65 AS col2, 61 * 86
----
0
5246

skipif mysql # not compatible
query II rowsort label-2132
SELECT 8 / + 65 AS col2, 61 * 86
----
0
5246

query I rowsort
SELECT 44 * + 80 * + + 24
----
84480

query II rowsort
SELECT DISTINCT - ( + ( + 26 ) ) * + 80 AS col2, - 35 AS col0
----
-2080
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT 27 + + 39 * - - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2135
SELECT 27 + + 39 * - - COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2136
SELECT ( - ( + COALESCE ( - COUNT( * ), + + 61, + 66 + 86, 77 DIV ( 80 * - 77 ) - - 45 * 48 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2136
SELECT ( - ( + COALESCE ( - COUNT ( * ), + + 61, + 66 + 86, 77 / ( 80 * - 77 ) - - 45 * 48 ) ) )
----
1

query I rowsort
SELECT 96 + + + 41 col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2138
SELECT ALL + 44 * CASE - 72 WHEN - 71 + 53 THEN NULL WHEN + COALESCE ( 2, COUNT( * ) * - 88, - 77 ) * CAST( NULL AS SIGNED ) + - 88 THEN + ( 60 ) WHEN 37 THEN MIN( + CAST( NULL AS SIGNED ) ) / ( 31 ) ELSE NULL END + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + 44 * CASE - 72 WHEN - 71 + 53 THEN NULL WHEN + COALESCE ( 2, COUNT ( * ) * - 88, - 77 ) * CAST ( NULL AS INTEGER ) + - 88 THEN + ( 60 ) WHEN 37 THEN MIN ( + CAST ( NULL AS INTEGER ) ) / ( 31 ) ELSE NULL END + - 82
----
NULL

query I rowsort
SELECT 98 * + 30 AS col0
----
2940

query I rowsort
SELECT DISTINCT - 99 + - - 33 AS col1
----
-66

query II rowsort
SELECT DISTINCT - + 92, 60 AS col0
----
-92
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - SUM( ALL + - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - SUM ( ALL + - 51 ) col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + 36 * - ( 98 ) * - 24 * - - COALESCE ( + MAX( 4 ), - CASE SUM( ALL 12 ) WHEN AVG ( DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), 81 ) ) THEN - NULLIF ( + 49, + 87 ) * + CASE + 73 * COUNT( * ) WHEN 38 THEN + 84 + - 58 WHEN COUNT( * ) THEN NULL END END ) * 47 AS col2
----
15918336

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 36 * - ( 98 ) * - 24 * - - COALESCE ( + MAX ( 4 ), - CASE SUM ( ALL 12 ) WHEN AVG ( DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), 81 ) ) THEN - NULLIF ( + 49, + 87 ) * + CASE + 73 * COUNT ( * ) WHEN 38 THEN + 84 + - 58 WHEN COUNT ( * ) THEN NULL END END ) * 47 AS col2
----
15918336

query I rowsort
SELECT DISTINCT + 61 + - 23 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2145
SELECT + 46 AS col2, - COUNT( * ) * - ( - 27 ) * - 44 DIV COUNT( * ) - + 76 * - NULLIF ( + ( - 14 ) + 41, + 49 DIV + 18 ) + + 59
----
46
3299

skipif mysql # not compatible
query II rowsort label-2145
SELECT + 46 AS col2, - COUNT ( * ) * - ( - 27 ) * - 44 / COUNT ( * ) - + 76 * - NULLIF ( + ( - 14 ) + 41, + 49 / + 18 ) + + 59
----
46
3299

query I rowsort
SELECT ALL + 17 + + + 57 AS col1
----
74

query I rowsort
SELECT 44 * - - 79 * + - 22 AS col0
----
-76472

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

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

query III rowsort
SELECT ALL 55 + + 47 col2, 59 * - - 98, + 97 AS col0
----
102
5782
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT + - 30 * - 82 + + - 68 * + 13 * + - 70 DIV - COUNT( * ) - 49 * 41 col1
----
-61429

skipif mysql # not compatible
query I rowsort label-2150
SELECT + - 30 * - 82 + + - 68 * + 13 * + - 70 / - COUNT ( * ) - 49 * 41 col1
----
-61429

query I rowsort
SELECT 24 - 9
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2152
SELECT ALL - COUNT( * ) AS col2, 33 DIV 27 AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL - COUNT ( * ) AS col2, 33 / 27 AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + CASE 50 WHEN COUNT( ALL + 50 ) THEN NULL ELSE + + 18 END
----
18

skipif mysql # not compatible
query I rowsort label-2153
SELECT + CASE 50 WHEN COUNT ( ALL + 50 ) THEN NULL ELSE + + 18 END
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT ALL - 72 AS col1, COUNT( * ) * - 33 * - 33
----
-72
1089

skipif mysql # not compatible
query II rowsort label-2154
SELECT ALL - 72 AS col1, COUNT ( * ) * - 33 * - 33
----
-72
1089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT - 16 * 94 - - CAST( - - 34 AS SIGNED ) * + + 69
----
842

skipif mysql # not compatible
query I rowsort label-2155
SELECT - 16 * 94 - - CAST ( - - 34 AS INTEGER ) * + + 69
----
842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT COALESCE ( - 38, 86, COALESCE ( - CAST( NULL AS SIGNED ), - 81 ) * - + 75 ) * 84 AS col0
----
-3192

skipif mysql # not compatible
query I rowsort label-2156
SELECT COALESCE ( - 38, 86, COALESCE ( - CAST ( NULL AS INTEGER ), - 81 ) * - + 75 ) * 84 AS col0
----
-3192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT 9 * - 25 * - COUNT( - - 92 ) * - 52 AS col0
----
-11700

skipif mysql # not compatible
query I rowsort label-2158
SELECT 9 * - 25 * - COUNT ( - - 92 ) * - 52 AS col0
----
-11700

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT 28 + - + 26 + 28 + + MIN( 47 ) * + NULLIF ( - ( 76 ), 76 )
----
-3542

skipif mysql # not compatible
query I rowsort label-2159
SELECT 28 + - + 26 + 28 + + MIN ( 47 ) * + NULLIF ( - ( 76 ), 76 )
----
-3542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2160
SELECT 34 * - CAST( - COUNT( * ) AS SIGNED ) DIV - 89 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT 34 * - CAST ( - COUNT ( * ) AS INTEGER ) / - 89 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT 37 + + - CAST( - COALESCE ( - 95, + 72 - - 77, + + 70 ) AS SIGNED ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-2161
SELECT 37 + + - CAST ( - COALESCE ( - 95, + 72 - - 77, + + 70 ) AS INTEGER ) col0
----
-58

query I rowsort
SELECT DISTINCT 82 * + 4 * + + ( - 40 ) AS col1
----
-13120

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT 53 DIV + 56 * 91 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT 53 / + 56 * 91 / + 33
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2164
SELECT 24 * NULLIF ( - 60, - + 4 * 0 + + + ( + 17 ) + + CAST( + 55 AS DECIMAL ) / 95 ) * - 21 AS col0
----
30240

skipif mysql # not compatible
query I rowsort label-2164
SELECT 24 * NULLIF ( - 60, - + 4 * 0 + + + ( + 17 ) + + CAST ( + 55 AS REAL ) / 95 ) * - 21 AS col0
----
30240

query I rowsort
SELECT 63 + + 41 col2
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT 58 + + - SUM( - 41 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT 58 + + - SUM ( - 41 ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2168
SELECT 13 + + + 43 + - 81 DIV ( - CASE - COUNT( * ) WHEN CASE WHEN NOT + 69 BETWEEN ( 12 ) AND + CAST( NULL AS SIGNED ) DIV + 41 THEN NULL ELSE - 51 + ( - 36 ) END * + 28 THEN NULL WHEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 92 ELSE 84 + + MAX( 68 ) END )
----
56

skipif mysql # not compatible
query I rowsort label-2168
SELECT 13 + + + 43 + - 81 / ( - CASE - COUNT ( * ) WHEN CASE WHEN NOT + 69 BETWEEN ( 12 ) AND + CAST ( NULL AS INTEGER ) / + 41 THEN NULL ELSE - 51 + ( - 36 ) END * + 28 THEN NULL WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 92 ELSE 84 + + MAX ( 68 ) END )
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-2169
SELECT 90 DIV - 81, 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-2169
SELECT 90 / - 81, 88 AS col1
----
-1
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT ALL - 19 * - COALESCE ( + 39, - 31, + 25 ) + + CAST( - 87 AS SIGNED ) AS col1
----
654

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - 19 * - COALESCE ( + 39, - 31, + 25 ) + + CAST ( - 87 AS INTEGER ) AS col1
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT 39 * + + ( - + COUNT( * ) ) * - 66 + + COUNT( DISTINCT - 30 ) AS col0
----
2575

skipif mysql # not compatible
query I rowsort label-2171
SELECT 39 * + + ( - + COUNT ( * ) ) * - 66 + + COUNT ( DISTINCT - 30 ) AS col0
----
2575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT 69 + - ( COUNT( * ) ) - - 97 / - 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT 69 + - ( COUNT ( * ) ) - - 97 / - 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2173
SELECT 13 / - COUNT ( * ) - + 1
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT 34 * 76 * - COUNT( * ) * 28 + - 44
----
-72396

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT 34 * 76 * - COUNT ( * ) * 28 + - 44
----
-72396

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - - 99 + + COUNT( * ) + + 69 * + 66 AS col1
----
4654

skipif mysql # not compatible
query I rowsort label-2176
SELECT - - 99 + + COUNT ( * ) + + 69 * + 66 AS col1
----
4654

query I rowsort
SELECT - ( 67 ) + 34
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2178
SELECT - 2 DIV + COUNT( * ), 75 * 77 DIV 51 AS col1
----
-2
113

skipif mysql # not compatible
query II rowsort label-2178
SELECT - 2 / + COUNT ( * ), 75 * 77 / 51 AS col1
----
-2
113

query II rowsort
SELECT 3 * + 84 + - 24 AS col1, 77
----
228
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT COUNT( * ) col2, - 31
----
1
-31

skipif mysql # not compatible
query II rowsort label-2181
SELECT COUNT ( * ) col2, - 31
----
1
-31

query I rowsort
SELECT ALL - 21 * + - 80 - + 81
----
1599

query I rowsort
SELECT + 77 + + + 7 * + 6 * - + 80
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL MIN( DISTINCT 3 ) * - 47 + + - COUNT( ALL - COALESCE ( - ( - - 34 ), 93 - 34 * 25 ) )
----
-142

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL MIN ( DISTINCT 3 ) * - 47 + + - COUNT ( ALL - COALESCE ( - ( - - 34 ), 93 - 34 * 25 ) )
----
-142

query I rowsort
SELECT - 89 * - 65
----
5785

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT COUNT( * ) * + 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT COUNT ( * ) * + 0 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2188
SELECT DISTINCT + 89 AS col1, + NULLIF ( 62, + COUNT( * ) ) AS col0
----
89
62

skipif mysql # not compatible
query II rowsort label-2188
SELECT DISTINCT + 89 AS col1, + NULLIF ( 62, + COUNT ( * ) ) AS col0
----
89
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL NULLIF ( AVG ( ALL - CAST( NULL AS SIGNED ) ), + 51 * - 6 - + ( - 10 ) * 2 - CAST( NULL AS SIGNED ) ) * MIN( DISTINCT 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL NULLIF ( AVG ( ALL - CAST ( NULL AS INTEGER ) ), + 51 * - 6 - + ( - 10 ) * 2 - CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT 36 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT MIN( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-2190
SELECT MIN ( - - 8 )
----
8

query I rowsort
SELECT - 29 - + 56
----
-85

query I rowsort
SELECT + 35 * 99 AS col2
----
3465

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

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT 41 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 69 AS col0, - 91
----
69
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT + 23 DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT + 23 / + 17
----
1

query II rowsort
SELECT ALL 26 AS col1, + 41 * + 45
----
26
1845

query I rowsort
SELECT + 99 * 92 * - - 24
----
218592

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2198
SELECT ALL 81, 11 DIV - 91 - - CAST( - 95 AS SIGNED ) AS col0
----
81
-95

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL 81, 11 / - 91 - - CAST ( - 95 AS INTEGER ) AS col0
----
81
-95

query I rowsort
SELECT ALL 87 + - + 46 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + - - 10 AS col2
----
11

query I rowsort
SELECT ALL - 5 * ( 8 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT + 91 + + COALESCE ( - + CAST( - - 72 AS SIGNED ), 48 * + CAST( 11 AS SIGNED ) - COUNT( * ), COUNT( 39 ) - 84 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2202
SELECT + 91 + + COALESCE ( - + CAST ( - - 72 AS INTEGER ), 48 * + CAST ( 11 AS INTEGER ) - COUNT ( * ), COUNT ( 39 ) - 84 ) AS col1
----
19

query II rowsort
SELECT - 41, + ( + 79 ) col2
----
-41
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL MIN( - 35 ) + 96 + + 40
----
101

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL MIN ( - 35 ) + 96 + + 40
----
101

query I rowsort
SELECT + + 72 * + 48 AS col2
----
3456

query I rowsort
SELECT ALL 87 * - + 64 AS col1
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - + MAX( DISTINCT - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-2207
SELECT - + MAX ( DISTINCT - 54 )
----
54

query II rowsort
SELECT - 97, 74 AS col0
----
-97
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT - - MAX( 4 ) + COUNT( * ) DIV 4 * + + 46 - - COALESCE ( - MAX( DISTINCT + - 90 ), 16 * - 12 + + ( 92 + + 29 ) )
----
94

skipif mysql # not compatible
query I rowsort label-2209
SELECT - - MAX ( 4 ) + COUNT ( * ) / 4 * + + 46 - - COALESCE ( - MAX ( DISTINCT + - 90 ), 16 * - 12 + + ( 92 + + 29 ) )
----
94

query I rowsort
SELECT DISTINCT - 59 + + 19
----
-40

query I rowsort
SELECT - + 89 + - 71 + 28 AS col0
----
-132

query I rowsort
SELECT ALL - + 73 + - 83 col2
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2213
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + + 10 + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT CAST ( NULL AS REAL ) / + + 10 + + 24 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2214
SELECT - CAST( NULL AS DECIMAL ) * - - 9 - 7 + - 63 + + 42 + - - 83 * - + 51 - - CASE 2 WHEN + 67 THEN 54 / CAST( 21 * MIN( ALL 3 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( NULL AS REAL ) * - - 9 - 7 + - 63 + + 42 + - - 83 * - + 51 - - CASE 2 WHEN + 67 THEN 54 / CAST ( 21 * MIN ( ALL 3 ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2215
SELECT ALL + - 69 DIV 65 + - - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + - 69 / 65 + - - COUNT ( * ) col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL - ( + CASE - 98 WHEN - + 0 THEN 83 / 83 - 0 * - 47 WHEN - 75 * + 88 + 87 THEN + 6 * + 17 - + 27 * 10 END ) * - COUNT( * ) - - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - ( + CASE - 98 WHEN - + 0 THEN 83 / 83 - 0 * - 47 WHEN - 75 * + 88 + 87 THEN + 6 * + 17 - + 27 * 10 END ) * - COUNT ( * ) - - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT ALL + COALESCE ( - 83, - 50 * - COUNT( * ) * - + 68 DIV 96 DIV + 87 + + - 32 + 91 + + 61, - 47 DIV 76 + + 77 ) * - 76
----
6308

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + COALESCE ( - 83, - 50 * - COUNT ( * ) * - + 68 / 96 / + 87 + + - 32 + 91 + + 61, - 47 / 76 + + 77 ) * - 76
----
6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2219
SELECT - 72 * + + COUNT( * ) AS col0, ( + 25 ) * COALESCE ( 68, - 57 * + 36 * - + 51 * - CASE 79 WHEN 76 THEN - 81 WHEN + CASE + 92 WHEN ( + 86 ) * - 18 + 38 * - 55 THEN + 59 WHEN 46 / COALESCE ( 9, COALESCE ( + 90, 90 / + COUNT( * ) ) / 28 ) THEN - 5 * 83 ELSE - CAST( + ( ( + 12 ) ) AS SIGNED ) + - 17 END THEN - 5 END )
----
-72
1700

skipif mysql # not compatible
query II rowsort label-2219
SELECT - 72 * + + COUNT ( * ) AS col0, ( + 25 ) * COALESCE ( 68, - 57 * + 36 * - + 51 * - CASE 79 WHEN 76 THEN - 81 WHEN + CASE + 92 WHEN ( + 86 ) * - 18 + 38 * - 55 THEN + 59 WHEN 46 / COALESCE ( 9, COALESCE ( + 90, 90 / + COUNT ( * ) ) / 28 ) THEN - 5 * 83 ELSE - CAST ( + ( ( + 12 ) ) AS INTEGER ) + - 17 END THEN - 5 END )
----
-72
1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL + COALESCE ( 73, 25 - 53 * + 76 * + CAST( NULL AS SIGNED ) * - 72 - + + 98 + - 82, 95 )
----
73

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + COALESCE ( 73, 25 - 53 * + 76 * + CAST ( NULL AS INTEGER ) * - 72 - + + 98 + - 82, 95 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT - ( + 70 ) DIV 31 * 7 - + 78
----
-92

skipif mysql # not compatible
query I rowsort label-2221
SELECT - ( + 70 ) / 31 * 7 - + 78
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - 65 - + - COALESCE ( - - 89, - COUNT( DISTINCT 77 ), 46 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-2222
SELECT - 65 - + - COALESCE ( - - 89, - COUNT ( DISTINCT 77 ), 46 ) col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - MAX( ( - ( 87 ) ) ) * CAST( NULL AS SIGNED ) / - 40 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - MAX ( ( - ( 87 ) ) ) * CAST ( NULL AS INTEGER ) / - 40 + - COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 29 + - 59 AS col2
----
-88

query I rowsort
SELECT + CASE + - ( + 23 ) WHEN - 45 THEN + 8 END
----
NULL

query I rowsort
SELECT - 5 + + 12 AS col1
----
7

query II rowsort
SELECT + 11 - - 35 - - + 46 * - + 51 AS col1, 79 + - + 68 * 81
----
-2300
-5429

query I rowsort
SELECT - 58 + + 17
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL + ( - - COUNT( * ) ) * - 84 + + - 73
----
-157

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + ( - - COUNT ( * ) ) * - 84 + + - 73
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + COALESCE ( - 72, 95, - 1 + + - 22 )
----
-71

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + COALESCE ( - 72, 95, - 1 + + - 22 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL COUNT( * ) * 22 + 84 col2
----
106

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COUNT ( * ) * 22 + 84 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + CASE - - 35 WHEN - - 8 + + COUNT( DISTINCT + 11 ) THEN NULL WHEN - - 34 / + + 4 - - + 43 THEN NULL WHEN - ( SUM( 65 ) ) THEN 74 * + ( + 23 ) END + 31 * + ( + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT + CASE - - 35 WHEN - - 8 + + COUNT ( DISTINCT + 11 ) THEN NULL WHEN - - 34 / + + 4 - - + 43 THEN NULL WHEN - ( SUM ( 65 ) ) THEN 74 * + ( + 23 ) END + 31 * + ( + 12 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT ALL + NULLIF ( + + 92, + - NULLIF ( 48, 79 * - + 72 * 78 + - 98 * - - NULLIF ( + 9, 97 ) ) ) DIV + 89
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + NULLIF ( + + 92, + - NULLIF ( 48, 79 * - + 72 * 78 + - 98 * - - NULLIF ( + 9, 97 ) ) ) / + 89
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL 6 * + 23 + + 49 DIV - + 40
----
137

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL 6 * + 23 + + 49 / - + 40
----
137

query I rowsort
SELECT + 28 + + 23 + 62 AS col1
----
113

query II rowsort
SELECT DISTINCT + 92 * 79 col1, - 34 + - 76 AS col0
----
7268
-110

query I rowsort
SELECT - 32 * - CASE COALESCE ( - NULLIF ( - CASE 83 WHEN 65 - + 65 THEN 28 + 64 / 47 ELSE NULL END, + 16 * 49 + - 31 * - 12 ), 8, 12 ) WHEN - 27 THEN - 64 WHEN - 60 THEN NULL END * 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT COALESCE ( + 39, - 92, - 95 + - 78 ) DIV COUNT( * ) * - COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2239
SELECT COALESCE ( + 39, - 92, - 95 + - 78 ) / COUNT ( * ) * - COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + NULLIF ( - 78, - 76 + + - COUNT( * ) ) + + 87
----
9

skipif mysql # not compatible
query I rowsort label-2240
SELECT + NULLIF ( - 78, - 76 + + - COUNT ( * ) ) + + 87
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT ALL + 29 DIV 97 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + 29 / 97 + + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT NULLIF ( - 85, - ( - CAST( NULL AS SIGNED ) ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT NULLIF ( - 85, - ( - CAST ( NULL AS INTEGER ) ) )
----
-85

query I rowsort
SELECT ALL + 60 + - ( 44 ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2244
SELECT ALL + 80 - + - COALESCE ( 82, - 76 DIV COUNT( * ) * - NULLIF ( - 28, 71 - SUM( 14 ) ) + + 56 * + COALESCE ( NULLIF ( + 55, 62 ) * 60, 60 + - 8 ) ) * + 45 AS col2
----
3770

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + 80 - + - COALESCE ( 82, - 76 / COUNT ( * ) * - NULLIF ( - 28, 71 - SUM ( 14 ) ) + + 56 * + COALESCE ( NULLIF ( + 55, 62 ) * 60, 60 + - 8 ) ) * + 45 AS col2
----
3770

query I rowsort
SELECT 91 * 11 + + 13 AS col1
----
1014

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2246
SELECT ALL + + NULLIF ( - + ( - 32 ), + 35 + - 95 / - + 39 * + - 28 * CAST( NULL AS DECIMAL ) / 60 ) * - 77 AS col0
----
-2464

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + + NULLIF ( - + ( - 32 ), + 35 + - 95 / - + 39 * + - 28 * CAST ( NULL AS REAL ) / 60 ) * - 77 AS col0
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT SUM( + 10 ) * + 24 * 90
----
21600

skipif mysql # not compatible
query I rowsort label-2247
SELECT SUM ( + 10 ) * + 24 * 90
----
21600

query I rowsort
SELECT + 45 * - 31
----
-1395

query II rowsort
SELECT 1 + 68 AS col0, 91
----
69
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT CAST( NULL AS SIGNED ) * - 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT CAST ( NULL AS INTEGER ) * - 91 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL - CASE - 12 WHEN 43 THEN - - 59 WHEN + - COUNT( * ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - CASE - 12 WHEN 43 THEN - - 59 WHEN + - COUNT ( * ) THEN COUNT ( * ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - SUM ( - 70 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT ALL - 86 DIV + ( - + 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - 86 / + ( - + 74 ) AS col0
----
1

query I rowsort
SELECT 38 + - 52 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT 47 * + COUNT( * ) * + ( 53 )
----
2491

skipif mysql # not compatible
query I rowsort label-2255
SELECT 47 * + COUNT ( * ) * + ( 53 )
----
2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT - CASE 2 WHEN COUNT( * ) * + + 64 THEN + 27 + - CAST( + 75 AS SIGNED ) END + - 65 + - + 81 * + NULLIF ( + 87, 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - CASE 2 WHEN COUNT ( * ) * + + 64 THEN + 27 + - CAST ( + 75 AS INTEGER ) END + - 65 + - + 81 * + NULLIF ( + 87, 40 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT 28 DIV + ( - 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2257
SELECT 28 / + ( - 99 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT 37 * + + CASE + COUNT( 80 ) WHEN - 25 THEN NULL WHEN - + 20 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN MIN( - 87 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT 37 * + + CASE + COUNT ( 80 ) WHEN - 25 THEN NULL WHEN - + 20 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN MIN ( - 87 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL - 51 + + + COALESCE ( + ( MIN( DISTINCT - 6 ) ), - 49, + 10 ) + + + 47
----
-10

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - 51 + + + COALESCE ( + ( MIN ( DISTINCT - 6 ) ), - 49, + 10 ) + + + 47
----
-10

query I rowsort
SELECT DISTINCT + 96 + + 56 AS col0
----
152

query I rowsort
SELECT ALL + 24 * - 68
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT 62 * + 28 * COUNT( * ) AS col2
----
1736

skipif mysql # not compatible
query I rowsort label-2262
SELECT 62 * + 28 * COUNT ( * ) AS col2
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + 6 * + - 79 * - CASE 26 WHEN + 44 + ( + NULLIF ( - - 65, + + 73 ) ) THEN NULL ELSE + COUNT( * ) END col0
----
474

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + 6 * + - 79 * - CASE 26 WHEN + 44 + ( + NULLIF ( - - 65, + + 73 ) ) THEN NULL ELSE + COUNT ( * ) END col0
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - 51 + - - MIN( ALL 57 )
----
6

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - 51 + - - MIN ( ALL 57 )
----
6

query I rowsort
SELECT 43 - - - 80 col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2266
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - + COALESCE ( + + 95, - 88 * - - 34 * - 39 DIV - COUNT( * ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2266
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - + COALESCE ( + + 95, - 88 * - - 34 * - 39 / - COUNT ( * ) ) AS col2
----
-95

query II rowsort
SELECT - 9 AS col1, - CASE - + 86 WHEN - 85 * - COALESCE ( ( 90 ), ( - - 53 ) ) * + 32 * + 28 + 82 * + 59 THEN - 83 + + 71 ELSE 33 * 83 + 99 END AS col0
----
-9
-2838

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2268
SELECT DISTINCT + + 19 DIV 58 * CAST( + 94 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + + 19 / 58 * CAST ( + 94 AS INTEGER ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 80 - + ( ( + 16 ) ) AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT - + 27 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - + 27 / - 96 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + COUNT( * ) * + 43 * 58 - + + 81
----
2413

skipif mysql # not compatible
query I rowsort label-2273
SELECT + COUNT ( * ) * + 43 * 58 - + + 81
----
2413

query I rowsort
SELECT ALL - - 77 * + 6
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL + COALESCE ( - 97, - SUM( + 26 ) + 43, - CAST( NULL AS SIGNED ) * + 62 )
----
-97

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + COALESCE ( - 97, - SUM ( + 26 ) + 43, - CAST ( NULL AS INTEGER ) * + 62 )
----
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT 88 AS col1, COUNT( * ) * + - COUNT( * ) + - + 38 - + COUNT( * ) * - COUNT( * ) * + 67 * + 30
----
88
1971

skipif mysql # not compatible
query II rowsort label-2277
SELECT 88 AS col1, COUNT ( * ) * + - COUNT ( * ) + - + 38 - + COUNT ( * ) * - COUNT ( * ) * + 67 * + 30
----
88
1971

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

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

query I rowsort
SELECT 13 + - - 41 AS col1
----
54

query I rowsort
SELECT - 43 - + 69 AS col1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2281
SELECT 16 * + - CASE + COUNT( DISTINCT - 95 ) WHEN - 39 + - 80 THEN + + 12 DIV SUM( DISTINCT - 14 ) DIV - 13 + 56 + - CAST( NULL AS SIGNED ) ELSE + COUNT( * ) * - 84 END
----
1344

skipif mysql # not compatible
query I rowsort label-2281
SELECT 16 * + - CASE + COUNT ( DISTINCT - 95 ) WHEN - 39 + - 80 THEN + + 12 / SUM ( DISTINCT - 14 ) / - 13 + 56 + - CAST ( NULL AS INTEGER ) ELSE + COUNT ( * ) * - 84 END
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 45 THEN NULL WHEN - 91 * + 85 THEN 34 WHEN - 13 * + 83 THEN - CAST( - 91 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 45 THEN NULL WHEN - 91 * + 85 THEN 34 WHEN - 13 * + 83 THEN - CAST ( - 91 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2283
SELECT DISTINCT - 89 col0, - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) + + 66 * 35 / + 10 ) * 22 + 69 + + - COUNT( * ) + - 84 * - 72
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT - 89 col0, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) + + 66 * 35 / + 10 ) * 22 + 69 + + - COUNT ( * ) + - 84 * - 72
----
-89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT ALL - CAST( NULL AS SIGNED ) * 23 / 40 + + 71 * + - 73 + + 53 - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - CAST ( NULL AS INTEGER ) * 23 / 40 + + 71 * + - 73 + + 53 - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT 9 - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2285
SELECT 9 - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT 82 * + 83 * 71 + ( - MAX( ALL + 73 ) ) AS col1
----
483153

skipif mysql # not compatible
query I rowsort label-2286
SELECT 82 * + 83 * 71 + ( - MAX ( ALL + 73 ) ) AS col1
----
483153

query I rowsort
SELECT DISTINCT 18 * 58 AS col0
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL + 13 * + SUM( DISTINCT - COALESCE ( - 77, 51 ) ) + - + 65 + - 85 * + 69 + 26 + + 0
----
-4903

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + 13 * + SUM ( DISTINCT - COALESCE ( - 77, 51 ) ) + - + 65 + - 85 * + 69 + 26 + + 0
----
-4903

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

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

query I rowsort
SELECT ALL 70 + + 95 * 21
----
2065

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT 43 - COUNT( * ) * - 73
----
116

skipif mysql # not compatible
query I rowsort label-2291
SELECT 43 - COUNT ( * ) * - 73
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT ( - - ( + 37 ) ) - - 61 AS col1, COALESCE ( + 36, - 36 * - 4 + + 90 + ( - 86 ) * + COUNT( * ), 84 * 34 + + MAX( DISTINCT - 24 ), - COUNT( * ) + - 18 ) AS col0
----
98
36

skipif mysql # not compatible
query II rowsort label-2292
SELECT ( - - ( + 37 ) ) - - 61 AS col1, COALESCE ( + 36, - 36 * - 4 + + 90 + ( - 86 ) * + COUNT ( * ), 84 * 34 + + MAX ( DISTINCT - 24 ), - COUNT ( * ) + - 18 ) AS col0
----
98
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2293
SELECT DISTINCT - COUNT( * ) AS col2, 67 DIV 27
----
-1
2

skipif mysql # not compatible
query II rowsort label-2293
SELECT DISTINCT - COUNT ( * ) AS col2, 67 / 27
----
-1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2294
SELECT DISTINCT ( COUNT( * ) ) + + 74 * + 15 col2, + NULLIF ( + - CASE + COUNT( DISTINCT + 77 ) WHEN CASE + CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 84 + 32 * 53 THEN COUNT( * ) END / + 63 THEN NULL WHEN COUNT( * ) THEN - 73 - + 47 END, - 38 * 33 ) AS col0
----
1111
120

skipif mysql # not compatible
query II rowsort label-2294
SELECT DISTINCT ( COUNT ( * ) ) + + 74 * + 15 col2, + NULLIF ( + - CASE + COUNT ( DISTINCT + 77 ) WHEN CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 + 32 * 53 THEN COUNT ( * ) END / + 63 THEN NULL WHEN COUNT ( * ) THEN - 73 - + 47 END, - 38 * 33 ) AS col0
----
1111
120

onlyif mysql # DIV for integer division: 
query II rowsort label-2295
SELECT ALL - 47 DIV - 79, + CASE - 8 WHEN - 88 THEN NULL WHEN - 98 THEN - 82 END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL - 47 / - 79, + CASE - 8 WHEN - 88 THEN NULL WHEN - 98 THEN - 82 END col2
----
0
NULL

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

skipif mysql # not compatible
query I rowsort label-2296
SELECT SUM ( + + ( - 87 ) )
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-2297
SELECT + 76 AS col2, ( - - 29 ) * 47 DIV - - 93
----
76
14

skipif mysql # not compatible
query II rowsort label-2297
SELECT + 76 AS col2, ( - - 29 ) * 47 / - - 93
----
76
14

query I rowsort
SELECT ALL 10 + - 82 AS col1
----
-72

query I rowsort
SELECT + 92 + 49
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2300
SELECT - COUNT( - 0 ) - ( - 3 ) DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COUNT ( - 0 ) - ( - 3 ) / + 38
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2301
SELECT - - 90, 84 DIV + - 80 AS col2
----
90
-1

skipif mysql # not compatible
query II rowsort label-2301
SELECT - - 90, 84 / + - 80 AS col2
----
90
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2302
SELECT - 41 + - 80 AS col2, ( - 39 ) DIV + 89 AS col0
----
-121
0

skipif mysql # not compatible
query II rowsort label-2302
SELECT - 41 + - 80 AS col2, ( - 39 ) / + 89 AS col0
----
-121
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT - + 7 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT - + 7 / 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL + 2 * 21 + 45 * + 49 * COUNT( * ) + - 85 AS col0
----
2162

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL + 2 * 21 + 45 * + 49 * COUNT ( * ) + - 85 AS col0
----
2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT - - COALESCE ( 87, SUM( + 38 ) ) + - - 54 * - COUNT( * ) * + CAST( COUNT( * ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2305
SELECT - - COALESCE ( 87, SUM ( + 38 ) ) + - - 54 * - COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER )
----
33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - - ( + - 0 ) + - + ( - CAST( + COALESCE ( 62, 47, 51 ) AS SIGNED ) ) + + NULLIF ( 14, + + 68 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2307
SELECT - - ( + - 0 ) + - + ( - CAST ( + COALESCE ( 62, 47, 51 ) AS INTEGER ) ) + + NULLIF ( 14, + + 68 ) AS col2
----
76

query I rowsort
SELECT ALL - 77 * - + ( - 79 ) - 25
----
-6108

query I rowsort
SELECT + 30 * + 53 - 3
----
1587

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2311
SELECT + 89, 89 DIV - - COUNT( * ) + - + 58 * 67 AS col2
----
89
-3797

skipif mysql # not compatible
query II rowsort label-2311
SELECT + 89, 89 / - - COUNT ( * ) + - + 58 * 67 AS col2
----
89
-3797

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + NULLIF ( 45, + 11 + - 5 * + NULLIF ( - AVG ( - 69 ), - 12 ) + - 52 ) + - + 32 + - COUNT( ALL ( ( 50 ) ) ) + - 21 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2312
SELECT + NULLIF ( 45, + 11 + - 5 * + NULLIF ( - AVG ( - 69 ), - 12 ) + - 52 ) + - + 32 + - COUNT ( ALL ( ( 50 ) ) ) + - 21 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - + COALESCE ( 76, + ( 18 ), - CASE - MAX( DISTINCT 0 ) WHEN + - NULLIF ( - + 67, + - 65 * 16 + 77 * - 62 + 37 ) THEN + 74 WHEN + 19 THEN + 66 + COUNT( 93 ) END * + 35 + 52 ) * 42 AS col1
----
-3192

skipif mysql # not compatible
query I rowsort label-2313
SELECT - + COALESCE ( 76, + ( 18 ), - CASE - MAX ( DISTINCT 0 ) WHEN + - NULLIF ( - + 67, + - 65 * 16 + 77 * - 62 + 37 ) THEN + 74 WHEN + 19 THEN + 66 + COUNT ( 93 ) END * + 35 + 52 ) * 42 AS col1
----
-3192

onlyif mysql # DIV for integer division: 
query II rowsort label-2314
SELECT ALL - + 49 DIV - - 51 AS col0, 14 DIV + 53 + + 86 + - - 6 AS col2
----
0
92

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL - + 49 / - - 51 AS col0, 14 / + 53 + + 86 + - - 6 AS col2
----
0
92

query II rowsort
SELECT ALL 12 AS col2, - 34 + 61 col2
----
12
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - + COALESCE ( SUM( - 60 ), + 2 * + 56 * + 58 * 85 - - 86, - - COUNT( * ) ) + + 82 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-2316
SELECT - + COALESCE ( SUM ( - 60 ), + 2 * + 56 * + 58 * 85 - - 86, - - COUNT ( * ) ) + + 82 AS col1
----
142

query II rowsort
SELECT 64 col1, 56 * + 96
----
64
5376

query I rowsort
SELECT ALL + 45 * + 76
----
3420

query I rowsort
SELECT - 3 + - 94
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT ALL - COUNT( * ) + - + 39 * - 60 + + - CAST( - - 37 AS SIGNED ) AS col1
----
2302

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - COUNT ( * ) + - + 39 * - 60 + + - CAST ( - - 37 AS INTEGER ) AS col1
----
2302

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

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

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( DISTINCT 51 ) AS col0
----
-1

query I rowsort
SELECT - 6 + 47 + + 34 AS col1
----
75

query II rowsort
SELECT ( 97 ), ( - 33 ) AS col0
----
97
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2325
SELECT - CAST( NULL AS SIGNED ) * - + 16 + - - 4 AS col1, + 15 DIV + - 7
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2325
SELECT - CAST ( NULL AS INTEGER ) * - + 16 + - - 4 AS col1, + 15 / + - 7
----
NULL
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT - 88 * - 77 / + ( 14 ) + - CASE 11 WHEN - - COUNT( * ) * 40 + - 51 THEN - ( + - 51 ) WHEN - 0 THEN NULL END / CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 88 * - 77 / + ( 14 ) + - CASE 11 WHEN - - COUNT ( * ) * 40 + - 51 THEN - ( + - 51 ) WHEN - 0 THEN NULL END / CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT 51 DIV - 53 * 40 + + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2327
SELECT 51 / - 53 * 40 + + - 34 AS col2
----
-34

query I rowsort
SELECT ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + COUNT( * ) + - - 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2329
SELECT + COUNT ( * ) + - - 28 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT 24 * + CAST( NULL AS SIGNED ) * - 56 * + - ( + SUM( - 0 ) ) + + - 29 * - - 82 * 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT 24 * + CAST ( NULL AS INTEGER ) * - 56 * + - ( + SUM ( - 0 ) ) + + - 29 * - - 82 * 75 AS col2
----
NULL

query I rowsort
SELECT + 22 * 84 * + 22
----
40656

query I rowsort
SELECT DISTINCT 28 * + - 14 AS col2
----
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT CASE - AVG ( DISTINCT - 22 ) WHEN + 90 THEN CAST( 95 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT CASE - AVG ( DISTINCT - 22 ) WHEN + 90 THEN CAST ( 95 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT ALL 63 * - 25 AS col0
----
-1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT CAST( - 61 AS SIGNED ) * - COALESCE ( 30, + + 22 ) + - 24 * + ( - + ( CASE CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) + - COUNT( * ) THEN + 23 ELSE + 40 END ) ) AS col2
----
2790

skipif mysql # not compatible
query I rowsort label-2335
SELECT CAST ( - 61 AS INTEGER ) * - COALESCE ( 30, + + 22 ) + - 24 * + ( - + ( CASE CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - COUNT ( * ) THEN + 23 ELSE + 40 END ) ) AS col2
----
2790

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

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

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

skipif mysql # not compatible
query I rowsort label-2337
SELECT + COUNT ( * ) - + 89 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2338
SELECT - 84 / - 74 - ( - COALESCE ( + 56, + - 71 + CAST( NULL AS DECIMAL ) ) ) * + + NULLIF ( - 95, 15 ) * + MAX( + - CAST( NULL AS SIGNED ) ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 84 / - 74 - ( - COALESCE ( + 56, + - 71 + CAST ( NULL AS REAL ) ) ) * + + NULLIF ( - 95, 15 ) * + MAX ( + - CAST ( NULL AS INTEGER ) ) * 70
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2340
SELECT + - 35 DIV - 72 + + COUNT( * ) + NULLIF ( - - ( 35 ), - 95 DIV NULLIF ( - 74, 43 ) ) + - 30 + + 20 DIV 97 * + 84 * - 84
----
6

skipif mysql # not compatible
query I rowsort label-2340
SELECT + - 35 / - 72 + + COUNT ( * ) + NULLIF ( - - ( 35 ), - 95 / NULLIF ( - 74, 43 ) ) + - 30 + + 20 / 97 * + 84 * - 84
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - CAST( + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-2341
SELECT - CAST ( + 78 AS INTEGER )
----
-78

query I rowsort
SELECT DISTINCT - 96 + - + 31
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT - - MIN( - + 68 ) - + + 37
----
-105

skipif mysql # not compatible
query I rowsort label-2343
SELECT - - MIN ( - + 68 ) - + + 37
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - - 72 + + 18 DIV - + 36 * ( - + 71 ) * 70 + - 73 + - - 50
----
49

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - - 72 + + 18 / - + 36 * ( - + 71 ) * 70 + - 73 + - - 50
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT - + CAST( NULL AS SIGNED ) - - 16 + - 34 * + - 79 + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT - + CAST ( NULL AS INTEGER ) - - 16 + - 34 * + - 79 + 67 AS col2
----
NULL

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

query II rowsort
SELECT - 43, 53 AS col1
----
-43
53

query II rowsort
SELECT - 89 + - ( 28 ), + 60 col1
----
-117
60

query II rowsort
SELECT DISTINCT COALESCE ( + 99, - + 82 ) AS col2, - 54
----
99
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL CASE + 47 WHEN - COUNT( * ) / - 11 + + 19 THEN + 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL CASE + 47 WHEN - COUNT ( * ) / - 11 + + 19 THEN + 62 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + MIN( DISTINCT - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + MIN ( DISTINCT - 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2352
SELECT 64 DIV + 9 + + + 9 + - 0, 18 * 70 + + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-2352
SELECT 64 / + 9 + + + 9 + - 0, 18 * 70 + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
16
NULL

query I rowsort
SELECT DISTINCT 82 * 41 col0
----
3362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT MAX( DISTINCT + + CAST( + 43 AS SIGNED ) ) * CASE 30 WHEN + - 61 + ( 98 ) THEN - - COALESCE ( - 66, + - 70 + + 87 ) * - - 55 * - NULLIF ( - 49, 40 * + 74 ) + 63 WHEN - 58 + 27 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT MAX ( DISTINCT + + CAST ( + 43 AS INTEGER ) ) * CASE 30 WHEN + - 61 + ( 98 ) THEN - - COALESCE ( - 66, + - 70 + + 87 ) * - - 55 * - NULLIF ( - 49, 40 * + 74 ) + 63 WHEN - 58 + 27 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 * - - 12 * 21 AS col0
----
11844

query I rowsort
SELECT ALL - 92 * - + 40
----
3680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT 88 * - 60 * 9 * COUNT( * ) * 77 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT 88 * - 60 * 9 * COUNT ( * ) * 77 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 74 col2, 24 - + 14
----
74
10

query I rowsort
SELECT ALL 81 - + 95 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT 68 DIV + 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2360
SELECT 68 / + 45 AS col0
----
1

query I rowsort
SELECT DISTINCT + 47 * 41
----
1927

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT 78 - ( 33 ) + - + 60 DIV - 40 + + 76 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-2362
SELECT 78 - ( 33 ) + - + 60 / - 40 + + 76 AS col0
----
122

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT - 33 - + + 87 DIV - - COUNT( * ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 33 - + + 87 / - - COUNT ( * ) AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + 91 * COUNT( * ) + + 26 * 48 + + 69 + MIN( - - 92 ) col0
----
1500

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 91 * COUNT ( * ) + + 26 * 48 + + 69 + MIN ( - - 92 ) col0
----
1500

query II rowsort
SELECT ALL - - 16, 63 * 18 + + - 30 * - 63 AS col1
----
16
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + 55 * + COUNT( * ) * - 21 AS col1
----
-1155

skipif mysql # not compatible
query I rowsort label-2367
SELECT + 55 * + COUNT ( * ) * - 21 AS col1
----
-1155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2369
SELECT ALL + 61 * - 72 * + COUNT( * ) AS col2, + CAST( - + 1 AS SIGNED ) AS col0
----
-4392
-1

skipif mysql # not compatible
query II rowsort label-2369
SELECT ALL + 61 * - 72 * + COUNT ( * ) AS col2, + CAST ( - + 1 AS INTEGER ) AS col0
----
-4392
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT - 22 * + CAST( - 43 AS SIGNED )
----
946

skipif mysql # not compatible
query I rowsort label-2370
SELECT - 22 * + CAST ( - 43 AS INTEGER )
----
946

query I rowsort
SELECT + 12 * - - COALESCE ( + 19, - - 12 ) + + 56
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + 96 - + COUNT( ALL + 65 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 96 - + COUNT ( ALL + 65 ) AS col1
----
95

query I rowsort
SELECT DISTINCT + + 41 * + + 27
----
1107

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL SUM( DISTINCT 67 ) + - COALESCE ( - - 65, + - 14 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL SUM ( DISTINCT 67 ) + - COALESCE ( - - 65, + - 14 ) col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2376
SELECT DISTINCT + 67 + + 34 - - + 14 * - - ( + COUNT( * ) ) - - + 21 DIV + - 94 + - ( + 48 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + 67 + + 34 - - + 14 * - - ( + COUNT ( * ) ) - - + 21 / + - 94 + - ( + 48 ) AS col2
----
67

query I rowsort
SELECT 60 + + 81 AS col2
----
141

query I rowsort
SELECT ALL 45 + - 77 col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT - MIN( + - ( 68 ) ) AS col0, ( - - 31 ) * + 57 + + 49 * - + 43 * + - 92 * CASE - ( 39 ) WHEN 82 THEN - 41 + 86 END * 14 + + MAX( DISTINCT - 48 ) / - 46 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-2379
SELECT - MIN ( + - ( 68 ) ) AS col0, ( - - 31 ) * + 57 + + 49 * - + 43 * + - 92 * CASE - ( 39 ) WHEN 82 THEN - 41 + 86 END * 14 + + MAX ( DISTINCT - 48 ) / - 46 AS col2
----
68
NULL

query II rowsort
SELECT - + 37 AS col2, 31
----
-37
31

query I rowsort
SELECT + 38 + + 88 * - 77 AS col2
----
-6738

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT COUNT( * ) * + 0 * + 70 AS col0, - 61 col1
----
0
-61

skipif mysql # not compatible
query II rowsort label-2382
SELECT COUNT ( * ) * + 0 * + 70 AS col0, - 61 col1
----
0
-61

query I rowsort
SELECT + ( + 59 ) * + 87 * 26 * 91
----
12144678

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT 63 DIV + + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2384
SELECT 63 / + + 57 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT ( + CAST( 66 AS SIGNED ) ) DIV + + ( 81 )
----
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT ( + CAST ( 66 AS INTEGER ) ) / + + ( 81 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2386
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 78 + 94 * + + 91, 83 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2386
SELECT DISTINCT CAST ( NULL AS REAL ) + 78 + 94 * + + 91, 83 AS col0
----
NULL
83

query I rowsort
SELECT 63 + + - 38 AS col0
----
25

query I rowsort
SELECT ALL 94 - - 23 - - - 94
----
23

query I rowsort
SELECT COALESCE ( + 26, 60 ) * + 91 AS col1
----
2366

query II rowsort
SELECT 82 * + - 11 AS col0, + 17
----
-902
17

query I rowsort
SELECT ( 44 ) + - 9
----
35

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

skipif mysql # not compatible
query I rowsort label-2392
SELECT 98 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 28, 77 ) col0
----
28

query I rowsort
SELECT 72 * - 2 AS col2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + NULLIF ( + COUNT( * ), - - 59 * 81 / 96 + + - 87 + + 8 * + COUNT( + + 4 ) ) * - 80 + - + MAX( DISTINCT + + 92 ) AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-2395
SELECT + NULLIF ( + COUNT ( * ), - - 59 * 81 / 96 + + - 87 + + 8 * + COUNT ( + + 4 ) ) * - 80 + - + MAX ( DISTINCT + + 92 ) AS col0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT + COUNT( * ) * + COALESCE ( MAX( + 5 ), + 25 )
----
5

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( MAX ( + 5 ), + 25 )
----
5

query I rowsort
SELECT DISTINCT - COALESCE ( + - CASE - 28 WHEN 59 THEN - + 90 * - ( + 7 ) * - 35 ELSE NULL END, - 20, + ( + + 35 ) )
----
20

query I rowsort
SELECT 97 + - CASE - COALESCE ( - 58, - 24, + 73 ) WHEN - + 49 THEN - 68 END AS col2
----
NULL

query I rowsort
SELECT - ( 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + - 18 * 64 * + - 33
----
38016

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT 26 DIV + - 72 * + 22
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT 26 / + - 72 * + 22
----
0

query I rowsort
SELECT ALL + 90 + + - 26 * 49 AS col2
----
-1184

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT + 97 * + + MIN( ALL - + 99 )
----
-9603

skipif mysql # not compatible
query I rowsort label-2403
SELECT + 97 * + + MIN ( ALL - + 99 )
----
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - + MIN( ALL + 33 ) * + + 22 + + 42
----
-684

skipif mysql # not compatible
query I rowsort label-2404
SELECT - + MIN ( ALL + 33 ) * + + 22 + + 42
----
-684

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2407
SELECT 6 DIV COUNT( * ) AS col0, - CASE + 69 WHEN - 79 THEN NULL WHEN CASE ( + MAX( + 32 ) ) WHEN - - 93 THEN + 30 * 34 + + ( + 39 ) * - 38 WHEN 69 - + 43 THEN - 68 WHEN 49 THEN + 72 ELSE NULL END THEN 91 DIV MAX( 89 ) END
----
6
NULL

skipif mysql # not compatible
query II rowsort label-2407
SELECT 6 / COUNT ( * ) AS col0, - CASE + 69 WHEN - 79 THEN NULL WHEN CASE ( + MAX ( + 32 ) ) WHEN - - 93 THEN + 30 * 34 + + ( + 39 ) * - 38 WHEN 69 - + 43 THEN - 68 WHEN 49 THEN + 72 ELSE NULL END THEN 91 / MAX ( 89 ) END
----
6
NULL

query I rowsort
SELECT ALL - - 76 + + 64 + + 9 AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL - 7 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - 7 / - 69
----
0

query II rowsort
SELECT 75 * + - 34 AS col2, NULLIF ( - 91, + NULLIF ( + 53, - + 72 ) * + - ( + - 26 ) )
----
-2550
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT - - ( + + CAST( 19 AS SIGNED ) ) * COUNT( * ) - - 61
----
80

skipif mysql # not compatible
query I rowsort label-2411
SELECT - - ( + + CAST ( 19 AS INTEGER ) ) * COUNT ( * ) - - 61
----
80

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

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

query I rowsort
SELECT 8 - + 91 col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL MAX( DISTINCT + - 93 ) + - 16 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL MAX ( DISTINCT + - 93 ) + - 16 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT DISTINCT + ( - 64 ) - - CAST( NULL AS SIGNED ) + NULLIF ( - 3, - - MAX( DISTINCT - + 92 ) ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + ( - 64 ) - - CAST ( NULL AS INTEGER ) + NULLIF ( - 3, - - MAX ( DISTINCT - + 92 ) ) + 39
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2416
SELECT - SUM ( + 11 )
----
-11

query II rowsort
SELECT 47 AS col1, - 58 * + 13
----
47
-754

query I rowsort
SELECT + 76 + + 45
----
121

query I rowsort
SELECT + 82 * + 89 AS col2
----
7298

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

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

query I rowsort
SELECT ALL 40 * 35 AS col2
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT + 46 DIV - 32 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2422
SELECT + 46 / - 32 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL 52 DIV 14 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 52 / 14 AS col0
----
3

query I rowsort
SELECT ALL + 29 * - - 5
----
145

query I rowsort
SELECT ALL 4 * - 7 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + 28 - - NULLIF ( + NULLIF ( 37, - 29 * - 9 + MAX( + 67 ) + - 11 ), + 62 ) + - 59 + + - 80 * 5 AS col2
----
-394

skipif mysql # not compatible
query I rowsort label-2426
SELECT + 28 - - NULLIF ( + NULLIF ( 37, - 29 * - 9 + MAX ( + 67 ) + - 11 ), + 62 ) + - 59 + + - 80 * 5 AS col2
----
-394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT + ( - - CAST( 44 AS SIGNED ) ) * 49 AS col0
----
2156

skipif mysql # not compatible
query I rowsort label-2427
SELECT + ( - - CAST ( 44 AS INTEGER ) ) * 49 AS col0
----
2156

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL COUNT( * ) * + - 6 + 44 + - 83 + + 61 + 70 * 89 + + 45 * + ( - 60 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL COUNT ( * ) * + - 6 + 44 + - 83 + + 61 + 70 * 89 + + 45 * + ( - 60 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT + ( + - COUNT( * ) ) + + 89 DIV ( - COALESCE ( COUNT( DISTINCT 20 ), COUNT( * ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2430
SELECT + ( + - COUNT ( * ) ) + + 89 / ( - COALESCE ( COUNT ( DISTINCT 20 ), COUNT ( * ) ) )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2431
SELECT ( + + 24 ) * + + NULLIF ( 50, - NULLIF ( 93, - - 35 ) ) + - + COUNT( * ) DIV + + 72 * - - 91 * + 60 + + 72
----
1272

skipif mysql # not compatible
query I rowsort label-2431
SELECT ( + + 24 ) * + + NULLIF ( 50, - NULLIF ( 93, - - 35 ) ) + - + COUNT ( * ) / + + 72 * - - 91 * + 60 + + 72
----
1272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT + COUNT( * ) DIV + 81 * + 56 + - 99 + 78
----
-21

skipif mysql # not compatible
query I rowsort label-2432
SELECT + COUNT ( * ) / + 81 * + 56 + - 99 + 78
----
-21

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

query I rowsort
SELECT DISTINCT + 70 * ( - + 5 ) + - - NULLIF ( 84, - - 57 )
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + + MIN( 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + + MIN ( 88 ) AS col0
----
88

query I rowsort
SELECT - + 73 - - ( 71 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2437
SELECT ALL - 12 * - 44 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - 12 * - 44 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT - - CASE + 68 WHEN - 98 THEN NULL WHEN + 43 THEN 72 * 89 + + 9 - ( - ( + 77 ) ) + + 78 / - - COUNT( * ) END * - NULLIF ( - + 13, + + 84 ) + CASE + CAST( NULL AS SIGNED ) WHEN + 2 THEN - 91 + MAX( - 35 ) * + 95 WHEN COALESCE ( CASE CAST( 20 AS SIGNED ) WHEN - 82 THEN 38 * 11 WHEN 45 THEN + 74 END, - 26 ) THEN 35 END * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - CASE + 68 WHEN - 98 THEN NULL WHEN + 43 THEN 72 * 89 + + 9 - ( - ( + 77 ) ) + + 78 / - - COUNT ( * ) END * - NULLIF ( - + 13, + + 84 ) + CASE + CAST ( NULL AS INTEGER ) WHEN + 2 THEN - 91 + MAX ( - 35 ) * + 95 WHEN COALESCE ( CASE CAST ( 20 AS INTEGER ) WHEN - 82 THEN 38 * 11 WHEN 45 THEN + 74 END, - 26 ) THEN 35 END * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL + 98 * ( - + CASE 37 WHEN MAX( ALL - + 27 ) THEN NULL WHEN - + 51 * - 41 * - - AVG ( ALL 81 ) THEN + 23 * + COUNT( * ) * 13 ELSE - 99 END ) + - + 17 AS col2
----
9685

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + 98 * ( - + CASE 37 WHEN MAX ( ALL - + 27 ) THEN NULL WHEN - + 51 * - 41 * - - AVG ( ALL 81 ) THEN + 23 * + COUNT ( * ) * 13 ELSE - 99 END ) + - + 17 AS col2
----
9685

query I rowsort
SELECT - 97 + 2
----
-95

query I rowsort
SELECT - 67 * - NULLIF ( + 86, 72 + + - ( + 31 ) )
----
5762

query I rowsort
SELECT - 80 - - 83 AS col1
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2444
SELECT 62 * - + MAX( ALL - NULLIF ( CAST( NULL AS SIGNED ), - 16 / - - 32 ) ) + - 59 + - - 34 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT 62 * - + MAX ( ALL - NULLIF ( CAST ( NULL AS INTEGER ), - 16 / - - 32 ) ) + - 59 + - - 34 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - - 6 - + 48 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL 7 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL 7 / CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT + ( - + COALESCE ( - 77, 77, MIN( 51 ) + + CAST( NULL AS SIGNED ), + 19 * - ( + 62 ) - - - COUNT( * ) ) ) * ( - - 85 )
----
6545

skipif mysql # not compatible
query I rowsort label-2448
SELECT + ( - + COALESCE ( - 77, 77, MIN ( 51 ) + + CAST ( NULL AS INTEGER ), + 19 * - ( + 62 ) - - - COUNT ( * ) ) ) * ( - - 85 )
----
6545

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

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

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

query I rowsort
SELECT - 94 + 1 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + 58 + NULLIF ( + 78, - 42 * + 69 * + COUNT( * ) * - 50 + - 71 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 58 + NULLIF ( + 78, - 42 * + 69 * + COUNT ( * ) * - 50 + - 71 ) AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT - 70 + 28 * - - 52 * + CAST( + + 67 AS SIGNED ) - - 14 * 92 * + 75
----
194082

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 70 + 28 * - - 52 * + CAST ( + + 67 AS INTEGER ) - - 14 * 92 * + 75
----
194082

query I rowsort
SELECT ALL ( - 3 ) AS col0
----
-3

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

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

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

query I rowsort
SELECT DISTINCT - 43 * 79 AS col0
----
-3397

query I rowsort
SELECT DISTINCT 63 * - 86 AS col1
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - NULLIF ( - + NULLIF ( - - COUNT( * ), 14 - - 10 ), + + 98 - + 43 + - - 17 ) + + ( 67 ) * 18 AS col0
----
1207

skipif mysql # not compatible
query I rowsort label-2459
SELECT - NULLIF ( - + NULLIF ( - - COUNT ( * ), 14 - - 10 ), + + 98 - + 43 + - - 17 ) + + ( 67 ) * 18 AS col0
----
1207

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2460
SELECT 41, - 92 / + CAST( NULL AS DECIMAL ) + ( - 69 ) AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2460
SELECT 41, - 92 / + CAST ( NULL AS REAL ) + ( - 69 ) AS col1
----
41
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT + 92 DIV 18
----
5

skipif mysql # not compatible
query I rowsort label-2461
SELECT + 92 / 18
----
5

query I rowsort
SELECT - 4 + ( - + 97 ) col0
----
-101

query I rowsort
SELECT + 10 - + 16 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2464
SELECT - CAST( - 83 AS SIGNED ) AS col1, - 78 * - - 66 AS col2
----
83
-5148

skipif mysql # not compatible
query II rowsort label-2464
SELECT - CAST ( - 83 AS INTEGER ) AS col1, - 78 * - - 66 AS col2
----
83
-5148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT CAST( + + COALESCE ( - - SUM( DISTINCT - 44 ), - CAST( - + 92 AS SIGNED ) ) AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-2465
SELECT CAST ( + + COALESCE ( - - SUM ( DISTINCT - 44 ), - CAST ( - + 92 AS INTEGER ) ) AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2466
SELECT ALL + 95 DIV + - MIN( + 78 ) + - 53 AS col2, 0 + + 63 AS col2
----
-54
63

skipif mysql # not compatible
query II rowsort label-2466
SELECT ALL + 95 / + - MIN ( + 78 ) + - 53 AS col2, 0 + + 63 AS col2
----
-54
63

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2468
SELECT + - CAST( - 67 AS SIGNED ) DIV + 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2468
SELECT + - CAST ( - 67 AS INTEGER ) / + 64 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT + 9 DIV 7 + + 91 + + 28 * + - 89
----
-2400

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + 9 / 7 + + 91 + + 28 * + - 89
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT 27 * - COALESCE ( + + 8, - + 7 - COUNT( * ) )
----
-216

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 27 * - COALESCE ( + + 8, - + 7 - COUNT ( * ) )
----
-216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2471
SELECT ALL - CAST( + COALESCE ( + 85, + - 54 DIV - 14 ) AS SIGNED ) DIV 13 + 83 + + 98
----
175

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - CAST ( + COALESCE ( + 85, + - 54 / - 14 ) AS INTEGER ) / 13 + 83 + + 98
----
175

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2472
SELECT ALL - 13 DIV CAST( + 78 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - 13 / CAST ( + 78 AS INTEGER )
----
0

query I rowsort
SELECT + 15 + 22 + + COALESCE ( 86, + 38 + - 41, ( - - 25 ) ) + 79 - - 7 col2
----
209

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT ALL - - CASE + CAST( NULL AS SIGNED ) WHEN 53 * + 58 THEN 80 * - + 40 + + + ( - 17 ) * - 82 END / 71 + + - ( + 31 ) * + + 65 + COUNT( * ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - - CASE + CAST ( NULL AS INTEGER ) WHEN 53 * + 58 THEN 80 * - + 40 + + + ( - 17 ) * - 82 END / 71 + + - ( + 31 ) * + + 65 + COUNT ( * ) + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + - COUNT( - 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2476
SELECT + - COUNT ( - 55 ) AS col1
----
-1

query II rowsort
SELECT + - 58 AS col2, - 87 AS col1
----
-58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ( + 3 ) * + MIN( DISTINCT + 93 ) + + COUNT( ALL 82 ) + 20
----
300

skipif mysql # not compatible
query I rowsort label-2478
SELECT ( + 3 ) * + MIN ( DISTINCT + 93 ) + + COUNT ( ALL 82 ) + 20
----
300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT SUM( ALL - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2480
SELECT SUM ( ALL - 74 ) AS col2
----
-74

query I rowsort
SELECT ALL + COALESCE ( - 66, + ( - 2 ), - 35 ) col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2482
SELECT DISTINCT - - CASE COUNT( ALL ( 41 ) ) WHEN 10 THEN - 29 WHEN ( + CASE - 22 WHEN - 42 + + + 78 * + COUNT( * ) * 48 THEN + ( 9 ) * 96 + 57 * + COUNT( * ) ELSE - 28 + 13 END ) / + 87 + CAST( NULL AS DECIMAL ) THEN + 71 END * - ( CAST( NULL AS SIGNED ) + + COALESCE ( - 12 + 70, - 43 + 85 * 74, + COUNT( * ) + - 49 ) * CASE - 86 WHEN + 18 THEN NULL WHEN - MIN( + 36 ) / 37 + 79 / - 69 THEN 14 * 35 END ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - - CASE COUNT ( ALL ( 41 ) ) WHEN 10 THEN - 29 WHEN ( + CASE - 22 WHEN - 42 + + + 78 * + COUNT ( * ) * 48 THEN + ( 9 ) * 96 + 57 * + COUNT ( * ) ELSE - 28 + 13 END ) / + 87 + CAST ( NULL AS REAL ) THEN + 71 END * - ( CAST ( NULL AS INTEGER ) + + COALESCE ( - 12 + 70, - 43 + 85 * 74, + COUNT ( * ) + - 49 ) * CASE - 86 WHEN + 18 THEN NULL WHEN - MIN ( + 36 ) / 37 + 79 / - 69 THEN 14 * 35 END ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 73 ) * - 67 + + 63
----
4954

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT ALL - 37 DIV 7 col2
----
-5

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - 37 / 7 col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT COUNT( * ) DIV ( 45 ) * 10
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT COUNT ( * ) / ( 45 ) * 10
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT 72 * 42 DIV + 17
----
177

skipif mysql # not compatible
query I rowsort label-2486
SELECT 72 * 42 / + 17
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - COUNT( * ) * - 51 - + 63 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COUNT ( * ) * - 51 - + 63 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT 56 - CAST( NULL AS SIGNED ) * 72 / - CASE + + 55 WHEN + + 40 THEN - ( + COUNT( * ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT 56 - CAST ( NULL AS INTEGER ) * 72 / - CASE + + 55 WHEN + + 40 THEN - ( + COUNT ( * ) ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2489
SELECT 62 / + - CASE + NULLIF ( + + NULLIF ( - ( + + ( 4 ) ), + 45 ), - CAST( + CAST( - 82 AS SIGNED ) AS SIGNED ) * + 6 ) WHEN - + ( - CASE - CAST( + 98 AS SIGNED ) WHEN - + CAST( 61 AS DECIMAL ) * - SUM( 15 ) THEN - 6 WHEN COALESCE ( - 88, - 37 - NULLIF ( + COUNT( * ) + - 55 / + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) + CAST( - 53 + - 80 * 86 AS SIGNED ) ), 76 + + 39 * + 84 ) / 23, + 48 * 21 ) THEN - 19 * COUNT( * ) ELSE NULL END ) THEN + 40 WHEN 36 + - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT 62 / + - CASE + NULLIF ( + + NULLIF ( - ( + + ( 4 ) ), + 45 ), - CAST ( + CAST ( - 82 AS INTEGER ) AS INTEGER ) * + 6 ) WHEN - + ( - CASE - CAST ( + 98 AS INTEGER ) WHEN - + CAST ( 61 AS REAL ) * - SUM ( 15 ) THEN - 6 WHEN COALESCE ( - 88, - 37 - NULLIF ( + COUNT ( * ) + - 55 / + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) + CAST ( - 53 + - 80 * 86 AS INTEGER ) ), 76 + + 39 * + 84 ) / 23, + 48 * 21 ) THEN - 19 * COUNT ( * ) ELSE NULL END ) THEN + 40 WHEN 36 + - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2490
SELECT ALL CASE - 94 WHEN + + 6 THEN + 55 WHEN + 74 THEN 19 * COUNT( * ) + 50 ELSE NULL END * - CAST( + - 47 AS SIGNED ) * AVG ( DISTINCT - - 67 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL CASE - 94 WHEN + + 6 THEN + 55 WHEN + 74 THEN 19 * COUNT ( * ) + 50 ELSE NULL END * - CAST ( + - 47 AS INTEGER ) * AVG ( DISTINCT - - 67 ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 94 * + 55 AS col0
----
5170

query I rowsort
SELECT ALL - 29 + COALESCE ( - 45, - + 76 ) - - 86 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT - 47 + + CASE + + 54 WHEN - - ( + COUNT( * ) ) - - 16 THEN 13 WHEN - - 14 THEN NULL END + + COUNT( * ) * + 70 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - 47 + + CASE + + 54 WHEN - - ( + COUNT ( * ) ) - - 16 THEN 13 WHEN - - 14 THEN NULL END + + COUNT ( * ) * + 70 * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - 30 + + + SUM( ( COALESCE ( - - 72, 84 ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - 30 + + + SUM ( ( COALESCE ( - - 72, 84 ) ) ) AS col2
----
42

query I rowsort
SELECT DISTINCT - 12 + 38 - 38
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT 81 + - + 50 + - + 2 DIV - - 68 + 11 + + 2 + + - 48 * 3 * - 49 AS col1
----
7100

skipif mysql # not compatible
query I rowsort label-2496
SELECT 81 + - + 50 + - + 2 / - - 68 + 11 + + 2 + + - 48 * 3 * - 49 AS col1
----
7100

query I rowsort
SELECT 87 * + - 41 AS col1
----
-3567

query II rowsort
SELECT 23 * - - 8 AS col1, - 43 AS col2
----
184
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2499
SELECT DISTINCT - 12 + 74 AS col1, - NULLIF ( + - 50, + NULLIF ( + 49, + ( 38 ) * + COUNT( * ) + + CAST( - - 23 AS SIGNED ) * 26 * - 38 ) / - 86 - + 55 ) * + COUNT( * ) + 38 * COUNT( * ) AS col0
----
62
88

skipif mysql # not compatible
query II rowsort label-2499
SELECT DISTINCT - 12 + 74 AS col1, - NULLIF ( + - 50, + NULLIF ( + 49, + ( 38 ) * + COUNT ( * ) + + CAST ( - - 23 AS INTEGER ) * 26 * - 38 ) / - 86 - + 55 ) * + COUNT ( * ) + 38 * COUNT ( * ) AS col0
----
62
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT 42 * - 85 * + + MAX( + 75 ) AS col0
----
-267750

skipif mysql # not compatible
query I rowsort label-2500
SELECT 42 * - 85 * + + MAX ( + 75 ) AS col0
----
-267750

query I rowsort
SELECT DISTINCT - + 32 * - 0 * + 40
----
0

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

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

query I rowsort
SELECT CASE + - 7 WHEN + 44 THEN - 98 END * ( 26 ) + 70 + + 10 + + ( - - 24 ) * 28 + + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT MIN( + 78 ) AS col1, - 78
----
78
-78

skipif mysql # not compatible
query II rowsort label-2504
SELECT MIN ( + 78 ) AS col1, - 78
----
78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT - CAST( + NULLIF ( - 81, ( - 97 ) ) AS SIGNED ) * - 64 + + 8 + 64 AS col1
----
-5112

skipif mysql # not compatible
query I rowsort label-2505
SELECT - CAST ( + NULLIF ( - 81, ( - 97 ) ) AS INTEGER ) * - 64 + + 8 + 64 AS col1
----
-5112

query I rowsort
SELECT 60 + - + 51 AS col1
----
9

query I rowsort
SELECT DISTINCT - - 71 AS col0
----
71

query I rowsort
SELECT ALL 46 * 16 * - 87 - 26
----
-64058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT ALL 85 DIV COUNT( * ) + - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL 85 / COUNT ( * ) + - + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT + 7 / 28 / + 66 / ( + 64 ) * - - 68 * + + 4 * - CASE - + 82 WHEN + CASE - - 60 WHEN + - ( + - 68 ) THEN NULL WHEN + 55 + - + NULLIF ( - - 51, + 33 * + 8 ) THEN NULL ELSE - 98 END THEN COUNT( * ) - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + 7 / 28 / + 66 / ( + 64 ) * - - 68 * + + 4 * - CASE - + 82 WHEN + CASE - - 60 WHEN + - ( + - 68 ) THEN NULL WHEN + 55 + - + NULLIF ( - - 51, + 33 * + 8 ) THEN NULL ELSE - 98 END THEN COUNT ( * ) - 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT ALL + COALESCE ( + SUM( DISTINCT + + 38 ), + - 38 DIV + 55 * COUNT( * ) * 19 * - + CASE 21 WHEN - + 33 THEN NULL WHEN + NULLIF ( 97, 34 + + - COUNT( * ) ) THEN + - CASE ( + 44 ) WHEN ( - CASE 2 WHEN + COUNT( * ) - + 74 DIV 8 THEN NULL WHEN - 79 DIV 85 THEN - 67 + 78 END ) THEN - MAX( ALL 75 ) END END DIV - 82, + 22, + 25 ) * - 79 col1
----
-3002

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + COALESCE ( + SUM ( DISTINCT + + 38 ), + - 38 / + 55 * COUNT ( * ) * 19 * - + CASE 21 WHEN - + 33 THEN NULL WHEN + NULLIF ( 97, 34 + + - COUNT ( * ) ) THEN + - CASE ( + 44 ) WHEN ( - CASE 2 WHEN + COUNT ( * ) - + 74 / 8 THEN NULL WHEN - 79 / 85 THEN - 67 + 78 END ) THEN - MAX ( ALL 75 ) END END / - 82, + 22, + 25 ) * - 79 col1
----
-3002

query II rowsort
SELECT - ( - 26 ) col1, 36 + - 41
----
26
-5

query I rowsort
SELECT ALL 12 * + - 43 * 56 * - ( + 3 ) AS col0
----
86688

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + 82 + - 45 * + + 13 + COUNT( * )
----
-502

skipif mysql # not compatible
query I rowsort label-2514
SELECT + 82 + - 45 * + + 13 + COUNT ( * )
----
-502

onlyif mysql # aggregate syntax: 
query II rowsort label-2515
SELECT SUM( ALL + 36 ) + 88 AS col1, - 56
----
124
-56

skipif mysql # not compatible
query II rowsort label-2515
SELECT SUM ( ALL + 36 ) + 88 AS col1, - 56
----
124
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT 46 + + + COALESCE ( + COUNT( * ), 9 ) + + 21
----
68

skipif mysql # not compatible
query I rowsort label-2516
SELECT 46 + + + COALESCE ( + COUNT ( * ), 9 ) + + 21
----
68

query I rowsort
SELECT ALL 89 * + 92 AS col2
----
8188

query I rowsort
SELECT 53 * + + 60 AS col0
----
3180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT DISTINCT 96, 0 * + CAST( NULL AS SIGNED ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT 96, 0 * + CAST ( NULL AS INTEGER ) AS col0
----
96
NULL

query I rowsort
SELECT ALL - 43 + + 44 AS col0
----
1

query I rowsort
SELECT 81 + 71
----
152

query I rowsort
SELECT DISTINCT 88 + 63 AS col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT 97 DIV + 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2523
SELECT 97 / + 62 AS col1
----
1

query II rowsort
SELECT - 13, + 84 + 89 * 61 + + 79 AS col1
----
-13
5592

query I rowsort
SELECT 78 + - 58
----
20

query II rowsort
SELECT 22 AS col0, + 44 AS col2
----
22
44

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

skipif mysql # not compatible
query I rowsort label-2527
SELECT ( - COUNT ( * ) ) + + COUNT ( * ) / - - 25 col0
----
-1

query I rowsort
SELECT 23 * + + 87 col0
----
2001

query I rowsort
SELECT 26 + - ( + + 54 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - CASE 35 WHEN COALESCE ( 1, - - 32 - + - ( - 10 ) * - + 52, - ( - 48 ) / + 27 * + 2 ) + + ( + MAX( ALL - 47 ) ) * + + 53 + COUNT( * ) THEN NULL WHEN COALESCE ( + 73, + 40 * + ( - 14 ) ) / + 62 THEN 76 ELSE NULL END + - 34 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - CASE 35 WHEN COALESCE ( 1, - - 32 - + - ( - 10 ) * - + 52, - ( - 48 ) / + 27 * + 2 ) + + ( + MAX ( ALL - 47 ) ) * + + 53 + COUNT ( * ) THEN NULL WHEN COALESCE ( + 73, + 40 * + ( - 14 ) ) / + 62 THEN 76 ELSE NULL END + - 34 * COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT 6 * COUNT( * ) * - 69 AS col2
----
-414

skipif mysql # not compatible
query I rowsort label-2531
SELECT 6 * COUNT ( * ) * - 69 AS col2
----
-414

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

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

query II rowsort
SELECT 13 + 80 * + 55, 17 * - 50 AS col1
----
4413
-850

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT COUNT( ALL - 31 ) + - 62, 20 AS col0
----
-61
20

skipif mysql # not compatible
query II rowsort label-2534
SELECT COUNT ( ALL - 31 ) + - 62, 20 AS col0
----
-61
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL - - COUNT( * ) - ( + 72 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - - COUNT ( * ) - ( + 72 ) AS col2
----
-71

query I rowsort
SELECT + 97 + 37 col2
----
134

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

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

query I rowsort
SELECT 80 + 13
----
93

query II rowsort
SELECT DISTINCT 10, 34 AS col0
----
10
34

query II rowsort
SELECT + 88, - 70 - 75 AS col0
----
88
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL + 39 * + COUNT( * ) * + 73 * COUNT( * ) + - 93 AS col0
----
2754

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + 39 * + COUNT ( * ) * + 73 * COUNT ( * ) + - 93 AS col0
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT 60 * - 24 * + MIN( 27 ) AS col1
----
-38880

skipif mysql # not compatible
query I rowsort label-2542
SELECT 60 * - 24 * + MIN ( 27 ) AS col1
----
-38880

query II rowsort
SELECT + 38 col1, 96 * - 78
----
38
-7488

query II rowsort
SELECT ALL - 18 AS col2, + 9 AS col0
----
-18
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT - - 73 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2545
SELECT - - 73 / - 43 AS col1
----
-1

query II rowsort
SELECT + 72 AS col1, 47 * + 93
----
72
4371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2547
SELECT DISTINCT + - 5 AS col0, CAST( - AVG ( + 36 ) AS SIGNED ), SUM( DISTINCT 49 ) * - 18 AS col1
----
-5
-36
-882

skipif mysql # not compatible
query III rowsort label-2547
SELECT DISTINCT + - 5 AS col0, CAST ( - AVG ( + 36 ) AS INTEGER ), SUM ( DISTINCT 49 ) * - 18 AS col1
----
-5
-36
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + - 91 * COUNT( * ) + + COUNT( * ) * - 38 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-2548
SELECT + - 91 * COUNT ( * ) + + COUNT ( * ) * - 38 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL COUNT( * ) * - 63 + - + ( - 18 ) + + MIN( - 22 )
----
-67

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL COUNT ( * ) * - 63 + - + ( - 18 ) + + MIN ( - 22 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT COUNT( ALL + + 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT COUNT ( ALL + + 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT ALL 22 * 46 DIV 32 + ( 31 ) * COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL 22 * 46 / 32 + ( 31 ) * COUNT ( * ) AS col2
----
62

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

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

query I rowsort
SELECT DISTINCT 47 + + - 12
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL 5 + COUNT( * ) * MAX( - 76 ) + ( - 86 ) * 81 AS col2
----
-7037

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 5 + COUNT ( * ) * MAX ( - 76 ) + ( - 86 ) * 81 AS col2
----
-7037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT + COALESCE ( + 82, - 38, + CAST( NULL AS SIGNED ) + + - 68 - - 63 * + + 88 )
----
82

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COALESCE ( + 82, - 38, + CAST ( NULL AS INTEGER ) + + - 68 - - 63 * + + 88 )
----
82

query I rowsort
SELECT + 76 * 99 * 51 * + + 71 AS col2
----
27244404

query I rowsort
SELECT ALL 82 + - 21 col0
----
61

query II rowsort
SELECT DISTINCT 40 * - 26, NULLIF ( 6, + 92 * - 41 ) col0
----
-1040
6

query I rowsort
SELECT ALL 99 * 75
----
7425

query I rowsort
SELECT - NULLIF ( - + 85, + 34 ) AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + COUNT( * ) * - 49 * 50 DIV 96 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) * - 49 * 50 / 96 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - 46 * + CASE 20 WHEN 22 - - - 16 THEN + 96 + + 59 / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 46 * + CASE 20 WHEN 22 - - - 16 THEN + 96 + + 59 / - COUNT ( * ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - SUM( ALL + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2564
SELECT - SUM ( ALL + 31 ) AS col1
----
-31

query I rowsort
SELECT - - 40 * - - 86
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ( + CASE - - 33 WHEN + ( + + 87 ) - + SUM( + 84 ) + - COUNT( * ) THEN NULL ELSE 83 END ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2566
SELECT ( + CASE - - 33 WHEN + ( + + 87 ) - + SUM ( + 84 ) + - COUNT ( * ) THEN NULL ELSE 83 END ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT DISTINCT + - 39 * - 75 / - 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + - 39 * - 75 / - 16 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 22 - 70 AS col2
----
-48

query I rowsort
SELECT + + 62 - + - 63 + + 54
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT DISTINCT + SUM( DISTINCT - - 56 ) * 88 * + + 80 + COUNT( * )
----
394241

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + SUM ( DISTINCT - - 56 ) * 88 * + + 80 + COUNT ( * )
----
394241

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - MAX( - - 3 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT - MAX ( - - 3 ) / 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL + CAST( 5 AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + CAST ( 5 AS INTEGER ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT + - 44 * 74, - CASE + - MIN( DISTINCT 79 ) WHEN - 99 THEN - COUNT( * ) + 36 + - COALESCE ( - ( - - 18 ), + 91 ) + + 28 ELSE + COUNT( * ) END * - 56 AS col0
----
-3256
56

skipif mysql # not compatible
query II rowsort label-2574
SELECT + - 44 * 74, - CASE + - MIN ( DISTINCT 79 ) WHEN - 99 THEN - COUNT ( * ) + 36 + - COALESCE ( - ( - - 18 ), + 91 ) + + 28 ELSE + COUNT ( * ) END * - 56 AS col0
----
-3256
56

query I rowsort
SELECT + 50 + + 94 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL + 51 DIV - + 77 + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + 51 / - + 77 + 55 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT 52 * - CAST( + + ( - 93 ) AS SIGNED ) + - 15 + 37
----
4858

skipif mysql # not compatible
query I rowsort label-2577
SELECT 52 * - CAST ( + + ( - 93 ) AS INTEGER ) + - 15 + 37
----
4858

query I rowsort
SELECT + + CASE WHEN NULL IS NULL THEN 24 END
----
24

query I rowsort
SELECT ALL 56 * - 66 + 2 AS col1
----
-3694

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + 88 * - CASE + 48 WHEN - + COALESCE ( + ( COUNT( * ) ), + - 19 ) + - 64 THEN - 4 WHEN - - NULLIF ( - ( + - 12 ), + 91 ) * - COALESCE ( - + 13, + - 48 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + 88 * - CASE + 48 WHEN - + COALESCE ( + ( COUNT ( * ) ), + - 19 ) + - 64 THEN - 4 WHEN - - NULLIF ( - ( + - 12 ), + 91 ) * - COALESCE ( - + 13, + - 48 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL 49 * + + 10 + + 94 - - MIN( + 9 ) * - COUNT( * ) AS col1
----
575

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 49 * + + 10 + + 94 - - MIN ( + 9 ) * - COUNT ( * ) AS col1
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT COALESCE ( + 86, - 74 * + 81 ) * + 50 + ( + 88 ) + + 30 * - 42 - - 13 * - - COUNT( * ) + - - 76
----
3217

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT COALESCE ( + 86, - 74 * + 81 ) * + 50 + ( + 88 ) + + 30 * - 42 - - 13 * - - COUNT ( * ) + - - 76
----
3217

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL + 25 * + + COUNT( * ) + + 18 * + 70
----
1285

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + 25 * + + COUNT ( * ) + + 18 * + 70
----
1285

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT ALL 93 * COUNT( * ) + + 49 * - ( + - 67 ) + 38 * - - MIN( - 0 ) AS col0, 22 AS col2
----
3376
22

skipif mysql # not compatible
query II rowsort label-2584
SELECT ALL 93 * COUNT ( * ) + + 49 * - ( + - 67 ) + 38 * - - MIN ( - 0 ) AS col0, 22 AS col2
----
3376
22

query I rowsort
SELECT DISTINCT + 88 * + 59 * - 51 AS col2
----
-264792

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ( + MAX( 89 ) ) AS col1, 61
----
89
61

skipif mysql # not compatible
query II rowsort label-2586
SELECT ( + MAX ( 89 ) ) AS col1, 61
----
89
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2587
SELECT - 87 * + - 79 * - 31 + - 92 + 17 AS col1, CAST( + - 9 AS SIGNED ) * COUNT( * ) * - COUNT( DISTINCT + 52 ) / AVG ( ALL - 64 ) + + CASE 12 WHEN + COUNT( * ) THEN - 89 * - 48 END
----
-213138
NULL

skipif mysql # not compatible
query II rowsort label-2587
SELECT - 87 * + - 79 * - 31 + - 92 + 17 AS col1, CAST ( + - 9 AS INTEGER ) * COUNT ( * ) * - COUNT ( DISTINCT + 52 ) / AVG ( ALL - 64 ) + + CASE 12 WHEN + COUNT ( * ) THEN - 89 * - 48 END
----
-213138
NULL

query I rowsort
SELECT + NULLIF ( 64, + AVG ( ALL + 72 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL 5 * 17 * 1 + + MIN( DISTINCT 35 ) + + 98 * 2
----
316

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 5 * 17 * 1 + + MIN ( DISTINCT 35 ) + + 98 * 2
----
316

query I rowsort
SELECT - CASE - 98 WHEN 80 * + - 37 * 3 THEN NULL WHEN + + 69 THEN + 14 END + - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT CASE + + 16 WHEN 89 THEN - 99 / + - 20 * 23 * + + MIN( 24 ) + + COUNT( 13 ) * - 45 / COUNT( * ) + - 32 + 66 WHEN + 18 * 57 / - + ( 7 ) THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT CASE + + 16 WHEN 89 THEN - 99 / + - 20 * 23 * + + MIN ( 24 ) + + COUNT ( 13 ) * - 45 / COUNT ( * ) + - 32 + 66 WHEN + 18 * 57 / - + ( 7 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2592
SELECT COALESCE ( + 61, - + 94 + NULLIF ( - COUNT( * ), + ( + 35 ) * + ( - 94 ) ), 87 + 73 * + MIN( ALL + 86 ) + - + CAST( NULL AS SIGNED ) DIV - - 73 * - 1 )
----
61

skipif mysql # not compatible
query I rowsort label-2592
SELECT COALESCE ( + 61, - + 94 + NULLIF ( - COUNT ( * ), + ( + 35 ) * + ( - 94 ) ), 87 + 73 * + MIN ( ALL + 86 ) + - + CAST ( NULL AS INTEGER ) / - - 73 * - 1 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT COUNT( * ) * + 20 + + COALESCE ( - 99, + + ( 29 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2593
SELECT COUNT ( * ) * + 20 + + COALESCE ( - 99, + + ( 29 ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL COUNT( * ) * 13 * - 70 * - 82 - + CASE - + 17 WHEN ( - COUNT( * ) ) + - + SUM( + 27 ) * 67 - COUNT( * ) + - 8 / + 28 THEN - - 5 * - - 47 WHEN 2 + + + ( CASE - 39 WHEN + 25 THEN - 89 WHEN + 4 - - 60 THEN 23 * - ( + AVG ( ( + 58 ) ) ) END ) THEN + 81 WHEN ( - 50 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL COUNT ( * ) * 13 * - 70 * - 82 - + CASE - + 17 WHEN ( - COUNT ( * ) ) + - + SUM ( + 27 ) * 67 - COUNT ( * ) + - 8 / + 28 THEN - - 5 * - - 47 WHEN 2 + + + ( CASE - 39 WHEN + 25 THEN - 89 WHEN + 4 - - 60 THEN 23 * - ( + AVG ( ( + 58 ) ) ) END ) THEN + 81 WHEN ( - 50 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2595
SELECT DISTINCT + NULLIF ( 6, - COUNT( * ) ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + NULLIF ( 6, - COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL CAST( + - ( - NULLIF ( + 13, + 20 * 49 + - 13 + + - ( - - 59 ) ) ) AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL CAST ( + - ( - NULLIF ( + 13, + 20 * 49 + - 13 + + - ( - - 59 ) ) ) AS INTEGER ) AS col2
----
13

query I rowsort
SELECT DISTINCT ( + 88 ) * - 72 - + ( + + 20 ) + + - ( - ( - + 8 ) ) AS col2
----
-6364

query I rowsort
SELECT ALL 22 * + 38 * NULLIF ( + 66, + 77 )
----
55176

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT DISTINCT - 35 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT - 35 / 58
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT SUM ( - + 37 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT - 74 DIV - - 11
----
-6

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 74 / - - 11
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + ( - 32 ) * + COUNT( * ) * + SUM( 80 ) + + COUNT( * )
----
-2559

skipif mysql # not compatible
query I rowsort label-2603
SELECT + ( - 32 ) * + COUNT ( * ) * + SUM ( 80 ) + + COUNT ( * )
----
-2559

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

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

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

skipif mysql # not compatible
query I rowsort label-2605
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL MAX( ALL - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL MAX ( ALL - 98 )
----
-98

query I rowsort
SELECT + + 33 * - - 39
----
1287

query I rowsort
SELECT ALL + 28 * + 29
----
812

onlyif mysql # aggregate syntax: 
query II rowsort label-2609
SELECT DISTINCT + MAX( ALL + ( + 72 ) ), + COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-2609
SELECT DISTINCT + MAX ( ALL + ( + 72 ) ), + COUNT ( * ) AS col1
----
72
1

query I rowsort
SELECT ALL NULLIF ( - 13, ( + 58 ) ) AS col2
----
-13

query I rowsort
SELECT - ( + 0 ) * - 33
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT 35 + 59 * - CAST( NULL AS SIGNED ) * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT 35 + 59 * - CAST ( NULL AS INTEGER ) * 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT - 45 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - 45 / 97 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT ALL 78 + 52 DIV + 73 + + - 73
----
5

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL 78 + 52 / + 73 + + - 73
----
5

query I rowsort
SELECT DISTINCT 83 + - + 88 AS col1
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT COALESCE ( 64, - 33 * - + NULLIF ( ( COUNT( * ) ), + 50 + 8 ) * + 83 + - 70 ) * - 69 * - 71 + - 4
----
313532

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT COALESCE ( 64, - 33 * - + NULLIF ( ( COUNT ( * ) ), + 50 + 8 ) * + 83 + - 70 ) * - 69 * - 71 + - 4
----
313532

query I rowsort
SELECT ALL + 26 + + + 15 + + ( - 76 ) * - + 60 AS col0
----
4601

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT DISTINCT 71 + - NULLIF ( 36, + 16 - + + 21 * ( + - 8 ) - - - COUNT( * ) ) + + 3 * + ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT 71 + - NULLIF ( 36, + 16 - + + 21 * ( + - 8 ) - - - COUNT ( * ) ) + + 3 * + ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT ALL 30 * - + COUNT( * ), 54 AS col0
----
-30
54

skipif mysql # not compatible
query II rowsort label-2621
SELECT ALL 30 * - + COUNT ( * ), 54 AS col0
----
-30
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT COUNT( - - 50 ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-2622
SELECT COUNT ( - - 50 ) * 19
----
19

query I rowsort
SELECT 7 * + + 16 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT ALL - 39 DIV + - 82 * + + 33
----
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - 39 / + - 82 * + + 33
----
0

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

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

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

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

query II rowsort
SELECT + 1 AS col2, 66 AS col0
----
1
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL - MIN( 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - MIN ( 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2630
SELECT 9 col2, - COUNT( * ) col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-2630
SELECT 9 col2, - COUNT ( * ) col0
----
9
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2631
SELECT DISTINCT - 48 AS col2, - CAST( NULL AS SIGNED ) - - 25 AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-2631
SELECT DISTINCT - 48 AS col2, - CAST ( NULL AS INTEGER ) - - 25 AS col2
----
-48
NULL

query II rowsort
SELECT - 38 * + 19 * - 27 + + 46, 65 AS col0
----
19540
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - NULLIF ( - 3, COUNT( * ) + 41 + 72 ) - + - NULLIF ( - 7, - - 57 ) * ( + 59 )
----
-410

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - NULLIF ( - 3, COUNT ( * ) + 41 + 72 ) - + - NULLIF ( - 7, - - 57 ) * ( + 59 )
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2634
SELECT 32 * + 83 AS col0, - CAST( + SUM( + - 85 ) AS SIGNED )
----
2656
85

skipif mysql # not compatible
query II rowsort label-2634
SELECT 32 * + 83 AS col0, - CAST ( + SUM ( + - 85 ) AS INTEGER )
----
2656
85

query II rowsort
SELECT ALL 77 col1, - 69
----
77
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT 51 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT 51 / - 85 AS col1
----
0

query I rowsort
SELECT 32 + 88 col2
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT ALL COUNT( * ) AS col1, - CASE 8 WHEN - COUNT( * ) * 40 + NULLIF ( 18, 59 + + + 86 ) THEN - + 49 ELSE - COUNT( * ) * + 91 * 31 END + 27 + - + 28 * + 2 - + 23 * + 70 AS col1
----
1
1182

skipif mysql # not compatible
query II rowsort label-2638
SELECT ALL COUNT ( * ) AS col1, - CASE 8 WHEN - COUNT ( * ) * 40 + NULLIF ( 18, 59 + + + 86 ) THEN - + 49 ELSE - COUNT ( * ) * + 91 * 31 END + 27 + - + 28 * + 2 - + 23 * + 70 AS col1
----
1
1182

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

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

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

query II rowsort
SELECT 11 * - 41 AS col0, + 71 * - 76
----
-451
-5396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2642
SELECT + 57 - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 57 - COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

query I rowsort
SELECT 73 - + + COALESCE ( + 28, 97 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT ALL + 7 DIV - 9 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + 7 / - 9 + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT NULLIF ( 9, 81 * ( - - COUNT( * ) ) )
----
9

skipif mysql # not compatible
query I rowsort label-2646
SELECT NULLIF ( 9, 81 * ( - - COUNT ( * ) ) )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 4 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT 4 / + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL - ( COALESCE ( - 41, COUNT( * ) ) ) + + + 80 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - ( COALESCE ( - 41, COUNT ( * ) ) ) + + + 80 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT 52 + + CASE - - 68 WHEN + - 94 * 38 + - 45 * + 28 + + + 25 * + 24 * 89 * + + 16 * 39 / + - 51 + + + 96 THEN ( + NULLIF ( + + NULLIF ( 44, + - 64 * + - 76 + - + MAX( ALL - 17 ) ), + ( + 51 ) * + CASE 77 * 0 WHEN ( 36 ) / - CASE 11 WHEN - 62 THEN NULL WHEN 92 THEN - 76 * - ( - 64 ) ELSE NULL END + + 67 THEN NULL ELSE + SUM( DISTINCT 78 ) + 24 END ) ) WHEN 81 * COUNT( * ) THEN NULL WHEN ( + 81 ) THEN NULL ELSE NULL END + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT 52 + + CASE - - 68 WHEN + - 94 * 38 + - 45 * + 28 + + + 25 * + 24 * 89 * + + 16 * 39 / + - 51 + + + 96 THEN ( + NULLIF ( + + NULLIF ( 44, + - 64 * + - 76 + - + MAX ( ALL - 17 ) ), + ( + 51 ) * + CASE 77 * 0 WHEN ( 36 ) / - CASE 11 WHEN - 62 THEN NULL WHEN 92 THEN - 76 * - ( - 64 ) ELSE NULL END + + 67 THEN NULL ELSE + SUM ( DISTINCT 78 ) + 24 END ) ) WHEN 81 * COUNT ( * ) THEN NULL WHEN ( + 81 ) THEN NULL ELSE NULL END + - 22
----
NULL

query I rowsort
SELECT - COALESCE ( 36, 84 )
----
-36

query I rowsort
SELECT ALL ( - 41 ) + 61 AS col1
----
20

query I rowsort
SELECT - NULLIF ( - 12, - 86 * + 86 + 98 + - 10 * + + 43 ) AS col1
----
12

query I rowsort
SELECT ALL COALESCE ( + 80, - 49 ) + 87 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT 52 * + + 10 * - + SUM( + + 55 ) * + - CAST( + MAX( + + 11 ) AS SIGNED ) + 28
----
314628

skipif mysql # not compatible
query I rowsort label-2654
SELECT 52 * + + 10 * - + SUM ( + + 55 ) * + - CAST ( + MAX ( + + 11 ) AS INTEGER ) + 28
----
314628

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT 62 * SUM( - 87 )
----
-5394

skipif mysql # not compatible
query I rowsort label-2655
SELECT 62 * SUM ( - 87 )
----
-5394

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT MAX( + ( - - 15 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2657
SELECT MAX ( + ( - - 15 ) ) AS col0
----
15

query I rowsort
SELECT COALESCE ( + + 67, - 78 + - + 95 - 28 * - + 11 ) * ( - 54 ) + - 99 * + 82
----
-11736

query I rowsort
SELECT ALL 76 * 45 col0
----
3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT + 78 DIV 80 * COUNT( * ) * 33 + - + 24
----
-24

skipif mysql # not compatible
query I rowsort label-2660
SELECT + 78 / 80 * COUNT ( * ) * 33 + - + 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL ( + 59 ) - 93 + + 26 + - AVG ( DISTINCT - + 91 ) * 61 + + 13 * CASE + + 78 WHEN - 21 * - COUNT( * ) THEN COUNT( * ) + + + COUNT( * ) WHEN 9 * - ( - COUNT( * ) ) * + - 28 THEN NULL ELSE NULL END + - + 28 * 52 * + - 90 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL ( + 59 ) - 93 + + 26 + - AVG ( DISTINCT - + 91 ) * 61 + + 13 * CASE + + 78 WHEN - 21 * - COUNT ( * ) THEN COUNT ( * ) + + + COUNT ( * ) WHEN 9 * - ( - COUNT ( * ) ) * + - 28 THEN NULL ELSE NULL END + - + 28 * 52 * + - 90 * 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT + COUNT( ALL + + CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT COUNT( * ) + + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2663
SELECT COUNT ( * ) + + 86 AS col0
----
87

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

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

query II rowsort
SELECT DISTINCT 58 * 92, - 61 + + 68 col1
----
5336
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT MAX( + 83 ) * 15 AS col1
----
1245

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT MAX ( + 83 ) * 15 AS col1
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT CASE WHEN NOT + 25 <> NULL THEN + ( - 17 ) * + 62 + + 18 ELSE NULL END / - + 92 - - - NULLIF ( + 32, 23 * - 20 * 1 + 68 + 8 * - - 63 / + 62 + - - CASE + COALESCE ( + 94, - CASE - 26 WHEN + COUNT( DISTINCT - 63 ) THEN + SUM( ALL 46 ) ELSE NULL END + - 91 / 85 ) WHEN 82 + - 84 THEN NULL WHEN + 13 THEN NULL ELSE 51 END + ( + 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT CASE WHEN NOT + 25 <> NULL THEN + ( - 17 ) * + 62 + + 18 ELSE NULL END / - + 92 - - - NULLIF ( + 32, 23 * - 20 * 1 + 68 + 8 * - - 63 / + 62 + - - CASE + COALESCE ( + 94, - CASE - 26 WHEN + COUNT ( DISTINCT - 63 ) THEN + SUM ( ALL 46 ) ELSE NULL END + - 91 / 85 ) WHEN 82 + - 84 THEN NULL WHEN + 13 THEN NULL ELSE 51 END + ( + 80 ) )
----
NULL

query I rowsort
SELECT 32 * 84
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT 41 * + ( + - COUNT( * ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2669
SELECT 41 * + ( + - COUNT ( * ) ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT ALL + MIN( 4 ) / + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + MIN ( 4 ) / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL + CASE - + 80 WHEN + + 97 * - AVG ( DISTINCT + 67 ) THEN + - COUNT( * ) END / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + CASE - + 80 WHEN + + 97 * - AVG ( DISTINCT + 67 ) THEN + - COUNT ( * ) END / 9
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( + 92, + 3 * 53 + + 56 * + 98 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2674
SELECT DISTINCT - COUNT( + - 99 ) AS col1, ( - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2674
SELECT DISTINCT - COUNT ( + - 99 ) AS col1, ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-1
NULL

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

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

query I rowsort
SELECT DISTINCT + 53 + - 98 + + 29
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT - 55 + 44 AS col2, COUNT( * ) AS col2
----
-11
1

skipif mysql # not compatible
query II rowsort label-2677
SELECT - 55 + 44 AS col2, COUNT ( * ) AS col2
----
-11
1

query I rowsort
SELECT - - COALESCE ( - 66, - - 42 * 11 + + + 67 + 88 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT - + ( - - 61 ) AS col1, + 68 + + - 32 + COUNT( * ) * ( - 22 ) * + 3 AS col2
----
-61
-30

skipif mysql # not compatible
query II rowsort label-2679
SELECT - + ( - - 61 ) AS col1, + 68 + + - 32 + COUNT ( * ) * ( - 22 ) * + 3 AS col2
----
-61
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-2680
SELECT ALL + 20 + - 50 DIV 1, + 6 * - 60 AS col2
----
-30
-360

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL + 20 + - 50 / 1, + 6 * - 60 AS col2
----
-30
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - - COUNT( ALL - 37 ) + - + 88 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - - COUNT ( ALL - 37 ) + - + 88 AS col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-2682
SELECT - - 24 + + 35 + COUNT ( * ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2683
SELECT ALL + COALESCE ( - 91, - 59 * + 84 DIV - COUNT( * ) + - 74 - 41 + - + ( NULLIF ( + 71, + CASE + + 97 WHEN - CAST( - 45 AS SIGNED ) + SUM( DISTINCT + 20 ) * + - 45 * + 59 THEN + + 86 * + + 1 WHEN - - CAST( NULL AS SIGNED ) THEN - COUNT( * ) ELSE NULL END * 18 ) ) + 62 * 2 )
----
-91

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + COALESCE ( - 91, - 59 * + 84 / - COUNT ( * ) + - 74 - 41 + - + ( NULLIF ( + 71, + CASE + + 97 WHEN - CAST ( - 45 AS INTEGER ) + SUM ( DISTINCT + 20 ) * + - 45 * + 59 THEN + + 86 * + + 1 WHEN - - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END * 18 ) ) + 62 * 2 )
----
-91

query I rowsort
SELECT - 89 * 88
----
-7832

query I rowsort
SELECT - ( 86 ) * 7
----
-602

query I rowsort
SELECT DISTINCT 18 * + - 70
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT ALL 87 AS col0, + COALESCE ( 7, SUM( + 32 ) ) AS col0
----
87
7

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL 87 AS col0, + COALESCE ( 7, SUM ( + 32 ) ) AS col0
----
87
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT - COUNT( DISTINCT - + 54 ) * 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - COUNT ( DISTINCT - + 54 ) * 37 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT + 5 AS col1, + NULLIF ( + + 21, + 55 ) + - 94 + - 29 + - 90 + 85 * - COUNT( * ) * + 31 - - + 59
----
5
-2768

skipif mysql # not compatible
query II rowsort label-2689
SELECT + 5 AS col1, + NULLIF ( + + 21, + 55 ) + - 94 + - 29 + - 90 + 85 * - COUNT ( * ) * + 31 - - + 59
----
5
-2768

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - 58 * + + CASE - - 78 WHEN - 75 + + 46 THEN NULL WHEN 67 THEN NULL WHEN 64 THEN NULL ELSE - + 38 - - CASE ( + 31 ) WHEN COUNT( * ) - + + CASE + COALESCE ( 89, - COUNT( * ) ) WHEN 64 THEN + 74 END + COUNT( * ) - - + 90 THEN + - 81 + - 65 * - 0 END END * COUNT( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT - 58 * + + CASE - - 78 WHEN - 75 + + 46 THEN NULL WHEN 67 THEN NULL WHEN 64 THEN NULL ELSE - + 38 - - CASE ( + 31 ) WHEN COUNT ( * ) - + + CASE + COALESCE ( 89, - COUNT ( * ) ) WHEN 64 THEN + 74 END + COUNT ( * ) - - + 90 THEN + - 81 + - 65 * - 0 END END * COUNT ( - 67 )
----
NULL

query I rowsort
SELECT + 63 * + + 22 AS col1
----
1386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT CASE 7 WHEN - COUNT( * ) THEN + 5 * + 95 - + 41 * + 22 WHEN + 23 - - SUM( DISTINCT - 6 ) THEN 95 + + NULLIF ( + ( + - 75 ), - 41 ) + - 81 * ( + COALESCE ( - 93, - 64 + + 88 + + + COUNT( * ) * + 91, - 38 * 70 ) ) ELSE - SUM( DISTINCT - 78 ) * + 74 + 41 END AS col0
----
5813

skipif mysql # not compatible
query I rowsort label-2693
SELECT CASE 7 WHEN - COUNT ( * ) THEN + 5 * + 95 - + 41 * + 22 WHEN + 23 - - SUM ( DISTINCT - 6 ) THEN 95 + + NULLIF ( + ( + - 75 ), - 41 ) + - 81 * ( + COALESCE ( - 93, - 64 + + 88 + + + COUNT ( * ) * + 91, - 38 * 70 ) ) ELSE - SUM ( DISTINCT - 78 ) * + 74 + 41 END AS col0
----
5813

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2695
SELECT DISTINCT + COUNT( * ) * + ( - 55 ) * 31 + - + 46 + 32 + - - 71 DIV + 2 col0, 45
----
-1684
45

skipif mysql # not compatible
query II rowsort label-2695
SELECT DISTINCT + COUNT ( * ) * + ( - 55 ) * 31 + - + 46 + 32 + - - 71 / + 2 col0, 45
----
-1684
45

query I rowsort
SELECT + NULLIF ( - 10, + - 61 - + 66 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL - 96 * COUNT( * ) + - + MIN( + 53 ) - + 28 * - 25 * ( + COUNT( * ) ) AS col1
----
551

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - 96 * COUNT ( * ) + - + MIN ( + 53 ) - + 28 * - 25 * ( + COUNT ( * ) ) AS col1
----
551

query I rowsort
SELECT ALL 35 * 98 + + - 35
----
3395

query I rowsort
SELECT + ( - 11 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + + 46 * + MAX( + 10 )
----
460

skipif mysql # not compatible
query I rowsort label-2700
SELECT + + 46 * + MAX ( + 10 )
----
460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - 50 * + + COUNT( * ) + - 15 + + - 54 + + ( + - MAX( + 63 ) ) AS col0
----
-182

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - 50 * + + COUNT ( * ) + - 15 + + - 54 + + ( + - MAX ( + 63 ) ) AS col0
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT ALL - 42 * + 49 + + COUNT( + + 80 ) DIV + 92
----
-2058

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - 42 * + 49 + + COUNT ( + + 80 ) / + 92
----
-2058

query II rowsort
SELECT + 2 AS col2, + 10 + + 0
----
2
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT + - 10 + - 29 * - 82 col2, - 48 * + - COUNT( * ) + + 97 - COUNT( * ) AS col0
----
2368
144

skipif mysql # not compatible
query II rowsort label-2705
SELECT + - 10 + - 29 * - 82 col2, - 48 * + - COUNT ( * ) + + 97 - COUNT ( * ) AS col0
----
2368
144

query I rowsort
SELECT ALL + + 50 * - + ( + 33 ) + + - 96 + 52
----
-1694

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2707
SELECT ALL - - CAST( + AVG ( + - 49 ) AS SIGNED ) * 40 + - + ( - + 82 ) * - COALESCE ( - 19, - 17 * - 4 + 68 ), 68 * + 87 * - 89 AS col0
----
-402
-526524

skipif mysql # not compatible
query II rowsort label-2707
SELECT ALL - - CAST ( + AVG ( + - 49 ) AS INTEGER ) * 40 + - + ( - + 82 ) * - COALESCE ( - 19, - 17 * - 4 + 68 ), 68 * + 87 * - 89 AS col0
----
-402
-526524

onlyif mysql # aggregate syntax: 
query II rowsort label-2708
SELECT - COUNT( * ) AS col2, 65 AS col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-2708
SELECT - COUNT ( * ) AS col2, 65 AS col0
----
-1
65

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

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

query II rowsort
SELECT ALL - 2, 33 AS col2
----
-2
33

query I rowsort
SELECT DISTINCT 29 * 35
----
1015

query I rowsort
SELECT + + 84 * 84
----
7056

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT ALL + COUNT( - CAST( + 50 AS SIGNED ) ) * + - 67 * 44 * 66, 37 AS col0
----
-194568
37

skipif mysql # not compatible
query II rowsort label-2714
SELECT ALL + COUNT ( - CAST ( + 50 AS INTEGER ) ) * + - 67 * 44 * 66, 37 AS col0
----
-194568
37

query II rowsort
SELECT + 17 - - 67 * 4 AS col1, + 81
----
285
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT - NULLIF ( - NULLIF ( - 92, 32 ), - - COUNT( * ) / - + 99 + - COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2716
SELECT - NULLIF ( - NULLIF ( - 92, 32 ), - - COUNT ( * ) / - + 99 + - COUNT ( * ) ) AS col2
----
-92

query II rowsort
SELECT - + 69, - 83 - + 84 - + 44 + 15 AS col0
----
-69
-196

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

query II rowsort
SELECT ALL 47 * - + 11, 76 AS col1
----
-517
76

query I rowsort
SELECT DISTINCT 6 - + 93 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT + ( - 50 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + ( - 50 ) / 62
----
0

query I rowsort
SELECT - 11 - + 19 * 14 AS col2
----
-277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT CAST( NULL AS SIGNED ) * - SUM( ALL + 78 ) * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( ALL + 78 ) * + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT ALL + COUNT( ALL + 9 ) AS col1, + 74 + - - NULLIF ( - COUNT( * ), - + ( COUNT( * ) ) ) + + + 24 + + - 69 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL + COUNT ( ALL + 9 ) AS col1, + 74 + - - NULLIF ( - COUNT ( * ), - + ( COUNT ( * ) ) ) + + + 24 + + - 69 AS col2
----
1
NULL

query I rowsort
SELECT - 75 + - + 25 + - - 35
----
-65

query I rowsort
SELECT + NULLIF ( 71, 22 )
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2728
SELECT 27 DIV 52 + - CAST( + 11 AS SIGNED ) - + ( COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2728
SELECT 27 / 52 + - CAST ( + 11 AS INTEGER ) - + ( COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - 4 + - 67 + + + SUM( ALL + 94 ) + + COUNT( + 0 ) + 61 * + ( - 7 ) * - 95 - 21 AS col0
----
40568

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 4 + - 67 + + + SUM ( ALL + 94 ) + + COUNT ( + 0 ) + 61 * + ( - 7 ) * - 95 - 21 AS col0
----
40568

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT ALL 16 + + 16 * 96 * 49 DIV - 38 + - 1
----
-1965

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL 16 + + 16 * 96 * 49 / - 38 + - 1
----
-1965

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) + + - 41 - - + 15 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) + + - 41 - - + 15 AS col0
----
-25

query II rowsort
SELECT ALL + 18 * + - 14 AS col2, - 59
----
-252
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT ALL - ( - + COUNT( 79 ) ) + + 72 DIV 40 + - 26 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - ( - + COUNT ( 79 ) ) + + 72 / 40 + - 26 AS col0
----
-24

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

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

query I rowsort
SELECT ALL 93 + 12 * - 48 col0
----
-483

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

query I rowsort
SELECT ALL 29 * + 50 * + 75 * 51
----
5546250

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + COUNT( * ) - - + 20
----
21

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + COUNT ( * ) - - + 20
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT DISTINCT + + 94 DIV - 75 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT + + 94 / - 75 AS col1
----
-1

query I rowsort
SELECT ALL - 79 - - 76 * - 31 AS col0
----
-2435

query I rowsort
SELECT + 26 * + 13 AS col2
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL - 68 * 85 + - COUNT( * )
----
-5781

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - 68 * 85 + - COUNT ( * )
----
-5781

query I rowsort
SELECT ALL - 18 - + + 60 AS col1
----
-78

query I rowsort
SELECT - 62 * 15
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT - CAST( NULL AS SIGNED ) + - + ( - CASE + - ( - 16 ) WHEN + 25 THEN + NULLIF ( COUNT( * ), - 54 * 12 + 17 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT - CAST ( NULL AS INTEGER ) + - + ( - CASE + - ( - 16 ) WHEN + 25 THEN + NULLIF ( COUNT ( * ), - 54 * 12 + 17 ) END )
----
NULL

query I rowsort
SELECT 37 + + 80 col0
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-2747
SELECT 96 DIV + 35 AS col1, 93 AS col1
----
2
93

skipif mysql # not compatible
query II rowsort label-2747
SELECT 96 / + 35 AS col1, 93 AS col1
----
2
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT + CAST( NULL AS SIGNED ) + + + CASE + 8 WHEN CASE - - COUNT( * ) WHEN - + 30 THEN NULL ELSE - 73 END - + + 52 THEN + 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT + CAST ( NULL AS INTEGER ) + + + CASE + 8 WHEN CASE - - COUNT ( * ) WHEN - + 30 THEN NULL ELSE - 73 END - + + 52 THEN + 35 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL - NULLIF ( - + 76, + 64 ) DIV - + 71
----
-1

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - NULLIF ( - + 76, + 64 ) / - + 71
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT DISTINCT 65 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT 65 / 92
----
0

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

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

query I rowsort
SELECT 16 + - 32 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT ( 3 ) * + 81 * + MIN( ALL - 58 ) AS col0, 27 + - 11 + - 77 * + 68
----
-14094
-5220

skipif mysql # not compatible
query II rowsort label-2753
SELECT ( 3 ) * + 81 * + MIN ( ALL - 58 ) AS col0, 27 + - 11 + - 77 * + 68
----
-14094
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT 26 + + - 37 * + 21 + + + COUNT( * )
----
-750

skipif mysql # not compatible
query I rowsort label-2754
SELECT 26 + + - 37 * + 21 + + + COUNT ( * )
----
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT ALL ( - 61 ) * - 92 AS col2, - ( - 28 ) * NULLIF ( 75, + 2 ) + NULLIF ( + - 12, - - 52 + - 24 + - + 79 + - + MIN( ALL + 1 ) * - ( 88 ) )
----
5612
2088

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL ( - 61 ) * - 92 AS col2, - ( - 28 ) * NULLIF ( 75, + 2 ) + NULLIF ( + - 12, - - 52 + - 24 + - + 79 + - + MIN ( ALL + 1 ) * - ( 88 ) )
----
5612
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT - 4 * 7 * + ( - MAX( DISTINCT 95 ) ) * - COUNT( * ) AS col0
----
-2660

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - 4 * 7 * + ( - MAX ( DISTINCT 95 ) ) * - COUNT ( * ) AS col0
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2757
SELECT DISTINCT 51 AS col2, + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) DIV + 31
----
51
0

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT 51 AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) / + 31
----
51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - MIN( DISTINCT - - 68 ) + + 96 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - MIN ( DISTINCT - - 68 ) + + 96 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT 51 + - CAST( + COUNT( - 58 ) AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2759
SELECT 51 + - CAST ( + COUNT ( - 58 ) AS INTEGER ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL + COUNT( * ) + + - 47 * + 29 AS col2
----
-1362

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + COUNT ( * ) + + - 47 * + 29 AS col2
----
-1362

query I rowsort
SELECT ALL - 59 + + 19 AS col0
----
-40

query I rowsort
SELECT 41 * + ( + + 4 ) AS col2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT DISTINCT - 50 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT - 50 / + 69
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT + 14 + + + 53 + + COALESCE ( - 43, CAST( NULL AS SIGNED ), - + 77 * 4, 9 + + - 65 + 79 + + + 88 + + 13 DIV - + 80 )
----
24

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + 14 + + + 53 + + COALESCE ( - 43, CAST ( NULL AS INTEGER ), - + 77 * 4, 9 + + - 65 + 79 + + + 88 + + 13 / - + 80 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2765
SELECT ALL - CAST( - - 65 AS SIGNED ) + - ( + ( 91 ) ) AS col0, + 12 AS col0
----
-156
12

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL - CAST ( - - 65 AS INTEGER ) + - ( + ( 91 ) ) AS col0, + 12 AS col0
----
-156
12

query I rowsort
SELECT ALL - 74 * - 59 + + 15
----
4381

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT + 74 DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-2767
SELECT + 74 / - 24
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + CASE + ( + 76 ) WHEN - CASE - 65 WHEN 28 * 3 THEN - 50 WHEN + - 19 * - ( + - MIN( - + 60 ) ) - - 97 THEN NULL END * + 85 + + 80 THEN 9 + - 98 + + 61 + - - 17 + - 20 * + - 45 * 81 + + - 83 - 11 * + - MIN( 3 ) * 7 ELSE NULL END * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + CASE + ( + 76 ) WHEN - CASE - 65 WHEN 28 * 3 THEN - 50 WHEN + - 19 * - ( + - MIN ( - + 60 ) ) - - 97 THEN NULL END * + 85 + + 80 THEN 9 + - 98 + + 61 + - - 17 + - 20 * + - 45 * 81 + + - 83 - 11 * + - MIN ( 3 ) * 7 ELSE NULL END * - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT ALL + COUNT( DISTINCT - + 40 ) * + 68 DIV 98 * + + 26 * COUNT( * ) * + + 61 * 95 DIV - 1
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + COUNT ( DISTINCT - + 40 ) * + 68 / 98 * + + 26 * COUNT ( * ) * + + 61 * 95 / - 1
----
0

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

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + 8 - - COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT - 39 * + 92 * + COUNT( - + 1 ) AS col1
----
-3588

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - 39 * + 92 * + COUNT ( - + 1 ) AS col1
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT 28 * - 65 - + - 59 + + - CASE - - 17 WHEN - - COUNT( * ) THEN 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT 28 * - 65 - + - 59 + + - CASE - - 17 WHEN - - COUNT ( * ) THEN 64 END
----
NULL

query I rowsort
SELECT 83 * - 89 AS col0
----
-7387

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2776
SELECT DISTINCT - 1, - 11 + - COUNT( * ) AS col1
----
-1
-12

skipif mysql # not compatible
query II rowsort label-2776
SELECT DISTINCT - 1, - 11 + - COUNT ( * ) AS col1
----
-1
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2777
SELECT + 60 * - SUM( 71 ) * 52 + 14 DIV - - 10 - + + COUNT( * ) + - - 69 AS col2
----
-221451

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 60 * - SUM ( 71 ) * 52 + 14 / - - 10 - + + COUNT ( * ) + - - 69 AS col2
----
-221451

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 21 + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2779
SELECT 21 + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT DISTINCT 47 * - 34 + + 95 + + COUNT( * ) * + 29 * 28 AS col1, 47 AS col0
----
-691
47

skipif mysql # not compatible
query II rowsort label-2780
SELECT DISTINCT 47 * - 34 + + 95 + + COUNT ( * ) * + 29 * 28 AS col1, 47 AS col0
----
-691
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT - 79, COUNT( * ) col0
----
-79
1

skipif mysql # not compatible
query II rowsort label-2781
SELECT - 79, COUNT ( * ) col0
----
-79
1

query I rowsort
SELECT ALL ( - + 67 ) + - 52 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 19 + + 58 - - COUNT( * ) col2
----
78

skipif mysql # not compatible
query I rowsort label-2783
SELECT 19 + + 58 - - COUNT ( * ) col2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2784
SELECT 90 / + - CAST( NULL AS DECIMAL ) / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT 90 / + - CAST ( NULL AS REAL ) / + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2785
SELECT COUNT( * ) * - 29 AS col1, 56 DIV 55
----
-29
1

skipif mysql # not compatible
query II rowsort label-2785
SELECT COUNT ( * ) * - 29 AS col1, 56 / 55
----
-29
1

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

query II rowsort
SELECT 87 AS col1, + 54 AS col0
----
87
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT ALL 0 AS col1, + NULLIF ( 1, - COUNT( * ) * + - 49 * - 20 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2788
SELECT ALL 0 AS col1, + NULLIF ( 1, - COUNT ( * ) * + - 49 * - 20 ) AS col1
----
0
1

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

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

query II rowsort
SELECT 82 AS col0, 61 AS col2
----
82
61

query I rowsort
SELECT + 22 - - - 44 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - NULLIF ( + + 16, + 28 + + ( - COUNT( * ) ) + + 37 * 95 * + - MIN( - 37 ) / - - 62 + 2 )
----
-16

skipif mysql # not compatible
query I rowsort label-2792
SELECT - NULLIF ( + + 16, + 28 + + ( - COUNT ( * ) ) + + 37 * 95 * + - MIN ( - 37 ) / - - 62 + 2 )
----
-16

query I rowsort
SELECT + 98 - ( + 76 ) + 17 - - - 36 AS col0
----
3

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

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL ( + 0 ) + + CAST ( NULL AS INTEGER ) + + 46
----
NULL

query I rowsort
SELECT + 86 + - 25 * + 16 AS col2
----
-314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2796
SELECT DISTINCT + COUNT( * ) AS col0, - 52 DIV + 35 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-2796
SELECT DISTINCT + COUNT ( * ) AS col0, - 52 / + 35 AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT 28 * + - ( - COALESCE ( - - ( + + 58 ), - 21 * 54, - + COUNT( * ) ) ) * + 7 * + + 33 + 14 + + 46 - - 24 + + COUNT( * )
----
375229

skipif mysql # not compatible
query I rowsort label-2797
SELECT 28 * + - ( - COALESCE ( - - ( + + 58 ), - 21 * 54, - + COUNT ( * ) ) ) * + 7 * + + 33 + 14 + + 46 - - 24 + + COUNT ( * )
----
375229

query I rowsort
SELECT - 68 * + - 45 AS col2
----
3060

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT + + CAST( 75 AS SIGNED ) * - SUM( + + 69 ) * + 38 + + 23 + 92
----
-196535

skipif mysql # not compatible
query I rowsort label-2800
SELECT + + CAST ( 75 AS INTEGER ) * - SUM ( + + 69 ) * + 38 + + 23 + 92
----
-196535

query I rowsort
SELECT - - 92 - - + 40
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT - 34 * - COUNT( * ) - + + COUNT( DISTINCT + 46 ) + 48
----
81

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - 34 * - COUNT ( * ) - + + COUNT ( DISTINCT + 46 ) + 48
----
81

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

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

query I rowsort
SELECT - ( + + 77 ) * 45
----
-3465

query I rowsort
SELECT ALL 50 * ( + - 60 )
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 94 + - + 40 + + 64 - COUNT( * ) * MIN( DISTINCT 59 ) + - 11 + COALESCE ( 57, 13 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 94 + - + 40 + + 64 - COUNT ( * ) * MIN ( DISTINCT 59 ) + - 11 + COALESCE ( 57, 13 ) col0
----
-83

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

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - - 94 / COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + 85 * - 40 * + 48 + 61 + + COUNT( * ) + - 69 - - 25 - - 87 * + 93 * 43 + + + COUNT( - - 32 ) * + + 9
----
184740

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 85 * - 40 * + 48 + 61 + + COUNT ( * ) + - 69 - - 25 - - 87 * + 93 * 43 + + + COUNT ( - - 32 ) * + + 9
----
184740

query I rowsort
SELECT + - 46 * + - 23 AS col1
----
1058

query I rowsort
SELECT - - 40 * - 11 * - 48
----
21120

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT 82 * + 37 + COUNT( + - 64 ) + 51 AS col2
----
3086

skipif mysql # not compatible
query I rowsort label-2811
SELECT 82 * + 37 + COUNT ( + - 64 ) + 51 AS col2
----
3086

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL + + SUM( ALL + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + + SUM ( ALL + - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2813
SELECT - - COUNT( + COALESCE ( + - 42, 94 + - 29, - - 67 ) ) DIV + 44 + + 97
----
97

skipif mysql # not compatible
query I rowsort label-2813
SELECT - - COUNT ( + COALESCE ( + - 42, 94 + - 29, - - 67 ) ) / + 44 + + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2814
SELECT - COUNT( DISTINCT 22 ) + 61 - - CAST( NULL AS SIGNED ) + - 93 + + 54 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COUNT ( DISTINCT 22 ) + 61 - - CAST ( NULL AS INTEGER ) + - 93 + + 54 / 40
----
NULL

query I rowsort
SELECT DISTINCT + + 52 * + 49 * - + 77
----
-196196

query I rowsort
SELECT DISTINCT - 94 * + 59 + + + 15
----
-5531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2817
SELECT - COUNT( * ) DIV + 9 - 67
----
-67

skipif mysql # not compatible
query I rowsort label-2817
SELECT - COUNT ( * ) / + 9 - 67
----
-67

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2819
SELECT DISTINCT - 33 + 32 AS col1, COALESCE ( - 98, + - 89 ) - + ( + COUNT( * ) )
----
-1
-99

skipif mysql # not compatible
query II rowsort label-2819
SELECT DISTINCT - 33 + 32 AS col1, COALESCE ( - 98, + - 89 ) - + ( + COUNT ( * ) )
----
-1
-99

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

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - COUNT ( * ) + - 57 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL - CASE CAST( - ( - COUNT( * ) ) AS SIGNED ) WHEN 14 * + 35 - - + 90 - + - 98 + + - CASE - 41 WHEN + COUNT( * ) + ( - 8 ) THEN 46 ELSE NULL END / + - MAX( DISTINCT 20 ) * - 72 THEN 52 - - - ( 92 ) * + 43 + - 62 + + 93 WHEN + AVG ( DISTINCT + - CAST( - 91 AS SIGNED ) ) THEN NULL ELSE - + 50 - 15 END + 89
----
154

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - CASE CAST ( - ( - COUNT ( * ) ) AS INTEGER ) WHEN 14 * + 35 - - + 90 - + - 98 + + - CASE - 41 WHEN + COUNT ( * ) + ( - 8 ) THEN 46 ELSE NULL END / + - MAX ( DISTINCT 20 ) * - 72 THEN 52 - - - ( 92 ) * + 43 + - 62 + + 93 WHEN + AVG ( DISTINCT + - CAST ( - 91 AS INTEGER ) ) THEN NULL ELSE - + 50 - 15 END + 89
----
154

query II rowsort
SELECT - 52 + - 15 AS col2, - CASE 63 WHEN 81 THEN NULL ELSE - 38 END * - - 89
----
-67
3382

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

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT CAST ( + ( + ( 13 ) ) AS INTEGER ) + 83
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT CASE + 73 WHEN + MAX( DISTINCT - ( 72 ) ) THEN - 18 - + - ( 24 ) + 49 - 9 ELSE - 96 END AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT CASE + 73 WHEN + MAX ( DISTINCT - ( 72 ) ) THEN - 18 - + - ( 24 ) + 49 - 9 ELSE - 96 END AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL COALESCE ( - - 17, 51 * - CAST( - 48 AS SIGNED ) * + 17 * CASE + 7 WHEN - + CAST( NULL AS SIGNED ) * + - 60 * - 29 + + + 31 THEN NULL WHEN - - 94 + + 70 THEN 19 * 95 + - - COUNT( * ) + COUNT( - ( + 51 ) ) * + COALESCE ( 52, - 28 * 82 ) + - 81 * - 36 * 0 END + - ( 70 ) ) + + 27 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COALESCE ( - - 17, 51 * - CAST ( - 48 AS INTEGER ) * + 17 * CASE + 7 WHEN - + CAST ( NULL AS INTEGER ) * + - 60 * - 29 + + + 31 THEN NULL WHEN - - 94 + + 70 THEN 19 * 95 + - - COUNT ( * ) + COUNT ( - ( + 51 ) ) * + COALESCE ( 52, - 28 * 82 ) + - 81 * - 36 * 0 END + - ( 70 ) ) + + 27 AS col1
----
44

query I rowsort
SELECT DISTINCT 58 * + + 64 AS col2
----
3712

query I rowsort
SELECT + 81 * - 95 col0
----
-7695

query I rowsort
SELECT + 75 + 56 + - 82 AS col2
----
49

query I rowsort
SELECT - 45 * 16
----
-720

query II rowsort
SELECT - ( - 80 ), + 52 + 25 AS col2
----
80
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2831
SELECT + 63 DIV - 40, - COUNT( * ) * - - 64 col0
----
-1
-64

skipif mysql # not compatible
query II rowsort label-2831
SELECT + 63 / - 40, - COUNT ( * ) * - - 64 col0
----
-1
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2832
SELECT - CASE - - COALESCE ( + - 32, - 41 + 89 DIV - + CASE - - 3 WHEN - 29 * + + SUM( 99 ) THEN NULL ELSE + 40 DIV ( + 46 ) END, NULLIF ( + + 49, 56 ) * - COALESCE ( + 11, + COUNT( * ) ) ) WHEN COUNT( * ) THEN NULL WHEN - 87 THEN NULL ELSE + - ( - 50 ) DIV - - COALESCE ( + 60, + + ( CAST( NULL AS SIGNED ) ) + 61 ) * + CAST( 95 DIV - 55 + - 84 AS SIGNED ) - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2832
SELECT - CASE - - COALESCE ( + - 32, - 41 + 89 / - + CASE - - 3 WHEN - 29 * + + SUM ( 99 ) THEN NULL ELSE + 40 / ( + 46 ) END, NULLIF ( + + 49, 56 ) * - COALESCE ( + 11, + COUNT ( * ) ) ) WHEN COUNT ( * ) THEN NULL WHEN - 87 THEN NULL ELSE + - ( - 50 ) / - - COALESCE ( + 60, + + ( CAST ( NULL AS INTEGER ) ) + 61 ) * + CAST ( 95 / - 55 + - 84 AS INTEGER ) - COUNT ( * ) END AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT ALL + 4 DIV + 5 - + 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + 4 / + 5 - + 21 col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT + - 36 DIV 23 * + + 24 DIV - + 47 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT + - 36 / 23 * + + 24 / - + 47 * + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2835
SELECT DISTINCT 44 DIV + 97, - 49 * 62 * - 33 col0
----
0
100254

skipif mysql # not compatible
query II rowsort label-2835
SELECT DISTINCT 44 / + 97, - 49 * 62 * - 33 col0
----
0
100254

query I rowsort
SELECT + CASE + + 51 WHEN + 2 THEN 54 ELSE 64 END col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT + - 60 DIV 44 + 58 + 83 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2837
SELECT + - 60 / 44 + 58 + 83 AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2838
SELECT - 15 * - CAST( NULL AS SIGNED ) AS col0, CASE + 56 WHEN + COUNT( ALL - 28 ) THEN - 17 * + CAST( NULL AS SIGNED ) WHEN - + 79 + + 53 THEN NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2838
SELECT - 15 * - CAST ( NULL AS INTEGER ) AS col0, CASE + 56 WHEN + COUNT ( ALL - 28 ) THEN - 17 * + CAST ( NULL AS INTEGER ) WHEN - + 79 + + 53 THEN NULL END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 84 * - 44
----
-3696

query I rowsort
SELECT + 72 - - 21 * + 15 * 66
----
20862

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL + MAX( DISTINCT + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + MAX ( DISTINCT + 81 )
----
81

query I rowsort
SELECT DISTINCT 20 * + 66 + + + 76 + - + 27
----
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - COUNT( + 93 ) * - + COUNT( * ) * NULLIF ( - ( 83 ), - + 41 ) + + 8 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - COUNT ( + 93 ) * - + COUNT ( * ) * NULLIF ( - ( 83 ), - + 41 ) + + 8 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - 41 * + SUM( + + 64 ) + + + 2 * - 31
----
-2686

skipif mysql # not compatible
query I rowsort label-2844
SELECT - 41 * + SUM ( + + 64 ) + + + 2 * - 31
----
-2686

query I rowsort
SELECT - - 10 - ( - 10 ) AS col0
----
20

query III rowsort
SELECT COALESCE ( - COALESCE ( 0, 83 * + 99, - 95 ), + 81 - - - 72 * 18 ) AS col1, 33 * 30 AS col2, - 51
----
0
990
-51

query I rowsort
SELECT ALL + 2 * 94 * 58 + - 58 AS col1
----
10846

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2848
SELECT + 77 * COUNT( * ) DIV + - 10 AS col2, 58 * + 65 * ( - - 92 )
----
-7
346840

skipif mysql # not compatible
query II rowsort label-2848
SELECT + 77 * COUNT ( * ) / + - 10 AS col2, 58 * + 65 * ( - - 92 )
----
-7
346840

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

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

query I rowsort
SELECT - 12 + + + 31 AS col0
----
19

query I rowsort
SELECT ALL + 36 * + ( 55 ) AS col1
----
1980

query I rowsort
SELECT COALESCE ( - - 39, - 41 ) AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT ALL COALESCE ( - + MIN( - + 61 ), - + 83, 29 ) + + 81 + - 35 - 98 * - + NULLIF ( - 34, + - 0 ) * - 26 * 52 * - COUNT( * ) * + SUM( + + 60 ) * - - 60 DIV - 60 + - + 21 + + 67
----
270291993

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL COALESCE ( - + MIN ( - + 61 ), - + 83, 29 ) + + 81 + - 35 - 98 * - + NULLIF ( - 34, + - 0 ) * - 26 * 52 * - COUNT ( * ) * + SUM ( + + 60 ) * - - 60 / - 60 + - + 21 + + 67
----
270291993

query I rowsort
SELECT DISTINCT - 91 + 26
----
-65

query I rowsort
SELECT 54 + + + NULLIF ( - 61, 43 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + ( - MAX( 0 ) ) * - 27 + + - ( MAX( DISTINCT + 89 ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + ( - MAX ( 0 ) ) * - 27 + + - ( MAX ( DISTINCT + 89 ) ) AS col0
----
-89

query II rowsort
SELECT 7 AS col1, 59 col0
----
7
59

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

query I rowsort
SELECT 31 - + 11
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT 41 + - CAST( NULL AS SIGNED ) * + ( 94 ) * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT 41 + - CAST ( NULL AS INTEGER ) * + ( 94 ) * - 98 AS col2
----
NULL

query I rowsort
SELECT 50 + + 81
----
131

query I rowsort
SELECT ALL + 28 - + 13
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT DISTINCT 86 * 22 DIV COUNT( * )
----
1892

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT 86 * 22 / COUNT ( * )
----
1892

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - 95 * 56 + - + 21 * + - COUNT( * )
----
-5299

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - 95 * 56 + - + 21 * + - COUNT ( * )
----
-5299

query II rowsort
SELECT 2 - 24 + - + 67, 64 col0
----
-89
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2867
SELECT DISTINCT + MAX( ALL + 72 ) * - + CAST( NULL AS SIGNED ) AS col0, + COALESCE ( 18, + CAST( COUNT( * ) AS SIGNED ) ) + + 93 DIV 63 * 26 AS col2
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2867
SELECT DISTINCT + MAX ( ALL + 72 ) * - + CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( 18, + CAST ( COUNT ( * ) AS INTEGER ) ) + + 93 / 63 * 26 AS col2
----
NULL
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2868
SELECT COUNT( + + 62 ) DIV - + 84 * 50
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( + + 62 ) / - + 84 * 50
----
0

query I rowsort
SELECT ALL 73 + 29 AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + NULLIF ( 30, - ( 57 ) - 90 + - + 84 ) / + CAST( NULL AS SIGNED ) + 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT + NULLIF ( 30, - ( 57 ) - 90 + - + 84 ) / + CAST ( NULL AS INTEGER ) + 95 col1
----
NULL

query I rowsort
SELECT ALL + 99 + 9
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + CASE 59 WHEN - - SUM( ALL + + 42 ) THEN + NULLIF ( + 74, 71 ) * + COUNT( DISTINCT - 20 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT + CASE 59 WHEN - - SUM ( ALL + + 42 ) THEN + NULLIF ( + 74, 71 ) * + COUNT ( DISTINCT - 20 ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2873
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT CAST ( NULL AS REAL ) + + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - 19 + 77 AS col1
----
58

query I rowsort
SELECT 50 + + 87 AS col1
----
137

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

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

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

query I rowsort
SELECT 76 * + 63
----
4788

query I rowsort
SELECT ( - 3 ) + - + 23
----
-26

query I rowsort
SELECT DISTINCT ( + 85 ) + 21
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL - NULLIF ( 5, + 47 + - + CAST( - - 75 AS SIGNED ) + 54 + - 44 * - + 91 - + 31 * + - 62 * ( - COUNT( * ) ) * - + COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - NULLIF ( 5, + 47 + - + CAST ( - - 75 AS INTEGER ) + 54 + - 44 * - + 91 - + 31 * + - 62 * ( - COUNT ( * ) ) * - + COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - 12 * - COUNT( * ) + - ( - SUM( DISTINCT + COALESCE ( + 50, - 84 + 40 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-2882
SELECT - 12 * - COUNT ( * ) + - ( - SUM ( DISTINCT + COALESCE ( + 50, - 84 + 40 ) ) )
----
62

query I rowsort
SELECT 51 + 54 AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2884
SELECT 54 DIV + + 55 AS col2, - COUNT( + 3 ) * + 23 + - 14 + - + 3 * + ( + - 22 )
----
0
29

skipif mysql # not compatible
query II rowsort label-2884
SELECT 54 / + + 55 AS col2, - COUNT ( + 3 ) * + 23 + - 14 + - + 3 * + ( + - 22 )
----
0
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT CAST( NULL AS SIGNED ) * + 23 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT CAST ( NULL AS INTEGER ) * + 23 * 47
----
NULL

query I rowsort
SELECT 60 + 33 * - - 25 + - + NULLIF ( - 36, + - 29 ) AS col0
----
921

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2887
SELECT 31 + 34 DIV CAST( + 78 AS SIGNED ) - - + 92 + - 59
----
64

skipif mysql # not compatible
query I rowsort label-2887
SELECT 31 + 34 / CAST ( + 78 AS INTEGER ) - - + 92 + - 59
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT 76 - + - COUNT( DISTINCT 60 ) DIV + 30 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2888
SELECT 76 - + - COUNT ( DISTINCT 60 ) / + 30 AS col1
----
76

query I rowsort
SELECT 79 * + 52 AS col1
----
4108

query I rowsort
SELECT 50 + + 71
----
121

query II rowsort
SELECT ALL - 96 * + 32, 42 AS col1
----
-3072
42

query I rowsort
SELECT ALL + 42 * - - 91 AS col1
----
3822

query I rowsort
SELECT 76 + - 32
----
44

query I rowsort
SELECT ALL - 97 * ( + - 3 ) col2
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT + MIN( + 96 ), 39 * 17 + + 44 AS col1
----
96
707

skipif mysql # not compatible
query II rowsort label-2895
SELECT + MIN ( + 96 ), 39 * 17 + + 44 AS col1
----
96
707

query I rowsort
SELECT 63 * + - 15 AS col2
----
-945

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

query I rowsort
SELECT DISTINCT + 62 + 34 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2899
SELECT ALL COUNT( DISTINCT - + 88 ) AS col1, NULLIF ( + 53, + 63 - + NULLIF ( - + 48, - - NULLIF ( AVG ( CAST( NULL AS SIGNED ) ), AVG ( DISTINCT + + 1 ) ) * 80 + + ( ( - 72 ) ) + 41 + - 23 + + + 43 / 60 * + - AVG ( - - 46 ) ) )
----
1
53

skipif mysql # not compatible
query II rowsort label-2899
SELECT ALL COUNT ( DISTINCT - + 88 ) AS col1, NULLIF ( + 53, + 63 - + NULLIF ( - + 48, - - NULLIF ( AVG ( CAST ( NULL AS INTEGER ) ), AVG ( DISTINCT + + 1 ) ) * 80 + + ( ( - 72 ) ) + 41 + - 23 + + + 43 / 60 * + - AVG ( - - 46 ) ) )
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL + + COUNT( * ) * + 53 - - 93 + COUNT( * ) - - - 30 * 46 + + SUM( DISTINCT + 69 ) col0
----
-1164

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + + COUNT ( * ) * + 53 - - 93 + COUNT ( * ) - - - 30 * 46 + + SUM ( DISTINCT + 69 ) col0
----
-1164

query II rowsort
SELECT ALL + + 91 + 40 AS col2, - 95
----
131
-95

query I rowsort
SELECT DISTINCT - 70 + + 75
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL + CASE 1 WHEN - + 15 THEN - CAST( + COALESCE ( - 11, - + 55 * - - AVG ( ALL - + 27 ) + SUM( ( + 74 ) ), - 31 ) AS SIGNED ) WHEN + - CASE - 63 WHEN - 56 THEN 35 * COUNT( * ) + - 77 END THEN 21 END * + 9 + - - 8 - + 61 + - + CAST( - + CASE - 41 WHEN - AVG ( + + CAST( - 29 AS SIGNED ) ) THEN COUNT( DISTINCT + 69 ) * + COUNT( * ) + 3 * + NULLIF ( 80, + ( + CAST( 91 AS SIGNED ) ) * - 37 ) ELSE NULL END AS SIGNED ) / 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + CASE 1 WHEN - + 15 THEN - CAST ( + COALESCE ( - 11, - + 55 * - - AVG ( ALL - + 27 ) + SUM ( ( + 74 ) ), - 31 ) AS INTEGER ) WHEN + - CASE - 63 WHEN - 56 THEN 35 * COUNT ( * ) + - 77 END THEN 21 END * + 9 + - - 8 - + 61 + - + CAST ( - + CASE - 41 WHEN - AVG ( + + CAST ( - 29 AS INTEGER ) ) THEN COUNT ( DISTINCT + 69 ) * + COUNT ( * ) + 3 * + NULLIF ( 80, + ( + CAST ( 91 AS INTEGER ) ) * - 37 ) ELSE NULL END AS INTEGER ) / 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT + 90 * MIN( + 40 )
----
3600

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + 90 * MIN ( + 40 )
----
3600

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

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - + COUNT ( * ) * - 10 AS col2
----
10

query I rowsort
SELECT 73 * 18 + - 32
----
1282

query I rowsort
SELECT ALL - - 44 * 37 + - 3 AS col1
----
1625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2908
SELECT 7 / 38 - + CASE - 82 WHEN - 15 * + - 35 + - - 4 * 76 * 54 THEN 32 + - 69 / 41 * 70 * + - 64 ELSE NULL END AS col0, + CAST( 82 AS SIGNED ) AS col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-2908
SELECT 7 / 38 - + CASE - 82 WHEN - 15 * + - 35 + - - 4 * 76 * 54 THEN 32 + - 69 / 41 * 70 * + - 64 ELSE NULL END AS col0, + CAST ( 82 AS INTEGER ) AS col1
----
NULL
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT + NULLIF ( MIN( 98 ), + 62 ) * - - 13 AS col0, + 62 * + + 95
----
1274
5890

skipif mysql # not compatible
query II rowsort label-2909
SELECT + NULLIF ( MIN ( 98 ), + 62 ) * - - 13 AS col0, + 62 * + + 95
----
1274
5890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL - COALESCE ( - - COUNT( ALL CAST( - + 96 AS SIGNED ) ), - SUM( 19 ) - 68 + - 62 + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - COALESCE ( - - COUNT ( ALL CAST ( - + 96 AS INTEGER ) ), - SUM ( 19 ) - 68 + - 62 + 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - - MAX( DISTINCT + - 93 ) * 39 AS col1
----
-3627

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - - MAX ( DISTINCT + - 93 ) * 39 AS col1
----
-3627

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

skipif mysql # not compatible
query I rowsort label-2912
SELECT SUM ( - + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + COUNT( DISTINCT + 62 ) * + + 69 - - + NULLIF ( - MIN( + 17 ), + - 49 * - + 78 ) + + - 32 * + - 16 + - - MIN( - - 27 ) * - - 74 col1
----
2562

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + COUNT ( DISTINCT + 62 ) * + + 69 - - + NULLIF ( - MIN ( + 17 ), + - 49 * - + 78 ) + + - 32 * + - 16 + - - MIN ( - - 27 ) * - - 74 col1
----
2562

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT ALL 17 DIV ( + - 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL 17 / ( + - 82 ) AS col2
----
0

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

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

query I rowsort
SELECT + 58 - + 34 AS col2
----
24

query I rowsort
SELECT + COALESCE ( 48, - + 50 + - - 13, - 59 ) col1
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2919
SELECT - 51 * - + COUNT( * ) + 74, - 1 + NULLIF ( - 45, MAX( ALL 86 ) * + CASE CAST( NULL AS SIGNED ) WHEN + - 98 THEN NULL ELSE - + 44 END ) + 87 + 26 * COUNT( * ) AS col0
----
125
67

skipif mysql # not compatible
query II rowsort label-2919
SELECT - 51 * - + COUNT ( * ) + 74, - 1 + NULLIF ( - 45, MAX ( ALL 86 ) * + CASE CAST ( NULL AS INTEGER ) WHEN + - 98 THEN NULL ELSE - + 44 END ) + 87 + 26 * COUNT ( * ) AS col0
----
125
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2920
SELECT + CASE COUNT( * ) WHEN 84 * - - 87 THEN + + COUNT( CAST( 53 AS DECIMAL ) ) WHEN + 75 + 88 + + COUNT( * ) * + + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT + CASE COUNT ( * ) WHEN 84 * - - 87 THEN + + COUNT ( CAST ( 53 AS REAL ) ) WHEN + 75 + 88 + + COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - MIN( - 79 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-2922
SELECT - MIN ( - 79 ) col1
----
79

query I rowsort
SELECT ALL 10 * 64
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + 16 * + MIN( DISTINCT + 25 ) col1
----
400

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 16 * + MIN ( DISTINCT + 25 ) col1
----
400

query I rowsort
SELECT - COALESCE ( - 55, + 54, - + 1 ) col0
----
55

query II rowsort
SELECT + 80 + 64 - - 12 AS col1, - 65 AS col0
----
156
-65

query I rowsort
SELECT + 86 * - 93
----
-7998

query II rowsort
SELECT - 74 AS col1, + 63
----
-74
63

query I rowsort
SELECT ALL 68 + - 54 AS col0
----
14

query I rowsort
SELECT + + ( + 96 ) - + 77 * 74 * + + 93 * - COALESCE ( - - 45, + 72 ) + ( - 56 ) col0
----
23846170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT - - 24 DIV + - COUNT( DISTINCT + 18 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2931
SELECT - - 24 / + - COUNT ( DISTINCT + 18 ) AS col1
----
-24

query I rowsort
SELECT + - 13 + + 5
----
-8

query I rowsort
SELECT + + 38 + + 11
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT + - 63 DIV - 2 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2934
SELECT + - 63 / - 2 AS col2
----
31

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + MIN( - 90 ) + + 32 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + MIN ( - 90 ) + + 32 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL + - 76 * + - SUM( 14 )
----
1064

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + - 76 * + - SUM ( 14 )
----
1064

query I rowsort
SELECT - 74 + + - 90 * + 93 AS col2
----
-8444

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT + + 86 * ( - 68 ) AS col0, 79 + NULLIF ( 3, + ( + - 61 ) * 19 + - + 95 + + CASE + COUNT( * ) WHEN 9 THEN - MAX( - COALESCE ( - - 33, 12, 62 ) ) END )
----
-5848
82

skipif mysql # not compatible
query II rowsort label-2940
SELECT + + 86 * ( - 68 ) AS col0, 79 + NULLIF ( 3, + ( + - 61 ) * 19 + - + 95 + + CASE + COUNT ( * ) WHEN 9 THEN - MAX ( - COALESCE ( - - 33, 12, 62 ) ) END )
----
-5848
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT - 88 + - 73 + + MAX( - 32 ) AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-2942
SELECT - 88 + - 73 + + MAX ( - 32 ) AS col0
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2943
SELECT ALL - 17 + + + MIN( ALL + - CAST( NULL AS DECIMAL ) ) * - SUM( ALL - CAST( - 33 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - 17 + + + MIN ( ALL + - CAST ( NULL AS REAL ) ) * - SUM ( ALL - CAST ( - 33 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + - 11 + + + 90
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( + ( 45 ) ) / + 32 + COUNT( * ) + 31 - CASE - 31 WHEN ( + + 86 ) THEN + - CASE - - 18 WHEN - SUM( ALL - 13 ) - 16 + - 29 THEN NULL WHEN - MIN( ALL - 60 ) THEN - 84 / 59 / - 91 / 11 END WHEN + 17 / AVG ( 80 ) + 6 THEN + 84 END / - MIN( 71 ) / - - 26 * + AVG ( DISTINCT 3 * + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( + ( 45 ) ) / + 32 + COUNT ( * ) + 31 - CASE - 31 WHEN ( + + 86 ) THEN + - CASE - - 18 WHEN - SUM ( ALL - 13 ) - 16 + - 29 THEN NULL WHEN - MIN ( ALL - 60 ) THEN - 84 / 59 / - 91 / 11 END WHEN + 17 / AVG ( 80 ) + 6 THEN + 84 END / - MIN ( 71 ) / - - 26 * + AVG ( DISTINCT 3 * + 18 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2946
SELECT ALL - ( + 27 ) * - + 34 - + COUNT( 20 ) AS col2, CAST( NULL AS SIGNED ) * + 91 + ( - 94 )
----
917
NULL

skipif mysql # not compatible
query II rowsort label-2946
SELECT ALL - ( + 27 ) * - + 34 - + COUNT ( 20 ) AS col2, CAST ( NULL AS INTEGER ) * + 91 + ( - 94 )
----
917
NULL

query I rowsort
SELECT ALL 76 * ( + 84 ) AS col1
----
6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT - 82 + + COALESCE ( + 20, - - 36, - + CAST( NULL AS SIGNED ) + - - 37 * - SUM( 6 ), 1 ) - + - CAST( - - COUNT( - 20 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-2948
SELECT - 82 + + COALESCE ( + 20, - - 36, - + CAST ( NULL AS INTEGER ) + - - 37 * - SUM ( 6 ), 1 ) - + - CAST ( - - COUNT ( - 20 ) AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT - 94 * + 44, + COUNT( * ) col0
----
-4136
1

skipif mysql # not compatible
query II rowsort label-2949
SELECT - 94 * + 44, + COUNT ( * ) col0
----
-4136
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT + 85, - COALESCE ( - - COUNT( * ), SUM( - 5 ) + + 57 ) AS col1
----
85
-1

skipif mysql # not compatible
query II rowsort label-2951
SELECT + 85, - COALESCE ( - - COUNT ( * ), SUM ( - 5 ) + + 57 ) AS col1
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + SUM( ALL - 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-2952
SELECT + SUM ( ALL - 65 ) col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT 50 DIV 16 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2953
SELECT 50 / 16 + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL - COUNT( * ) * + - ( + COUNT( * ) ) * - - 81 * - - 5
----
405

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - COUNT ( * ) * + - ( + COUNT ( * ) ) * - - 81 * - - 5
----
405

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT - 46 DIV + + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 46 / + + 77 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT - 64 + + 73 + - MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 64 + + 73 + - MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT + COALESCE ( COUNT( * ), + 57, 65 + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 57, 65 + 44 )
----
1

query I rowsort
SELECT - NULLIF ( - - 26, - 2 ) + - - 21 AS col1
----
-5

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

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

query I rowsort
SELECT ALL + 14 * - 77 AS col1
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2961
SELECT - COUNT( * ) DIV COALESCE ( + 94, + + MIN( + - 18 ) * + ( - 5 ) + 74 - + CAST( - 28 AS SIGNED ) + - NULLIF ( + 99, + 48 ) DIV - 78 + + COUNT( * ) + CAST( NULL AS SIGNED ) DIV - COUNT( * ), - - COALESCE ( + COUNT( * ), + - 87 ) + + 48 * - 92 ) DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT - COUNT ( * ) / COALESCE ( + 94, + + MIN ( + - 18 ) * + ( - 5 ) + 74 - + CAST ( - 28 AS INTEGER ) + - NULLIF ( + 99, + 48 ) / - 78 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ), - - COALESCE ( + COUNT ( * ), + - 87 ) + + 48 * - 92 ) / COUNT ( * )
----
0

query II rowsort
SELECT ALL + 34 AS col2, 30 * + - 59 * - 67 * 76 * 40 + - + 57 col2
----
34
360513543

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT CASE - 53 WHEN - 98 * - + 55 THEN - 2 WHEN - - ( - - ( 74 ) ) + 77 - + 97 * - 57 * + CASE - ( - NULLIF ( + 75, + ( - COUNT( * ) ) + - 46 ) ) WHEN - - 99 THEN ( 40 ) ELSE - + 79 + + CASE 59 WHEN + + 16 * + + 13 THEN + 0 ELSE NULL END END / + 71 THEN + - 17 + - 16 ELSE 2 * 19 END AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2963
SELECT CASE - 53 WHEN - 98 * - + 55 THEN - 2 WHEN - - ( - - ( 74 ) ) + 77 - + 97 * - 57 * + CASE - ( - NULLIF ( + 75, + ( - COUNT ( * ) ) + - 46 ) ) WHEN - - 99 THEN ( 40 ) ELSE - + 79 + + CASE 59 WHEN + + 16 * + + 13 THEN + 0 ELSE NULL END END / + 71 THEN + - 17 + - 16 ELSE 2 * 19 END AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2964
SELECT ALL + 5 AS col0, + CAST( - SUM( 18 ) AS SIGNED ) AS col2
----
5
-18

skipif mysql # not compatible
query II rowsort label-2964
SELECT ALL + 5 AS col0, + CAST ( - SUM ( 18 ) AS INTEGER ) AS col2
----
5
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT CASE - 13 WHEN - + 74 THEN - 80 WHEN COUNT( * ) + - 13 + - 37 + - + 45 * NULLIF ( + 23, 93 * - 96 + + - 19 ) * - CAST( + COUNT( ALL + ( + 83 ) ) AS SIGNED ) THEN NULL WHEN + 67 THEN + - 1 + + 33 + - COUNT( 22 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT CASE - 13 WHEN - + 74 THEN - 80 WHEN COUNT ( * ) + - 13 + - 37 + - + 45 * NULLIF ( + 23, 93 * - 96 + + - 19 ) * - CAST ( + COUNT ( ALL + ( + 83 ) ) AS INTEGER ) THEN NULL WHEN + 67 THEN + - 1 + + 33 + - COUNT ( 22 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT - MIN( DISTINCT - + 41 ) DIV + - 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2966
SELECT - MIN ( DISTINCT - + 41 ) / + - 17 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL ( + - 14 ) * + - COUNT( * ) + - 76 + + 16 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL ( + - 14 ) * + - COUNT ( * ) + - 76 + + 16 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + 62 + + COUNT( * ) * + 3
----
65

skipif mysql # not compatible
query I rowsort label-2968
SELECT + 62 + + COUNT ( * ) * + 3
----
65

query I rowsort
SELECT - 74 + 85 + + + 41
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT COUNT( * ) AS col0, ( + 46 ) * COALESCE ( - + 20, + 93 * 32 ) AS col2
----
1
-920

skipif mysql # not compatible
query II rowsort label-2970
SELECT COUNT ( * ) AS col0, ( + 46 ) * COALESCE ( - + 20, + 93 * 32 ) AS col2
----
1
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT + CASE - - 39 WHEN + 72 * + + 43 THEN - 14 * + + COUNT( * ) * + 27 + + + 38 + - CAST( NULL AS SIGNED ) / - 13 * + COUNT( * ) ELSE NULL END + + 97 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT + CASE - - 39 WHEN + 72 * + + 43 THEN - 14 * + + COUNT ( * ) * + 27 + + + 38 + - CAST ( NULL AS INTEGER ) / - 13 * + COUNT ( * ) ELSE NULL END + + 97 + - 68 AS col2
----
NULL

query I rowsort
SELECT + 65 + 61 AS col2
----
126

query I rowsort
SELECT + 9 * - - 13
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT + CAST( - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + CAST ( - 98 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT - COUNT( * ) + + - 26 * - 32 + 58 + - 12
----
877

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT - COUNT ( * ) + + - 26 * - 32 + 58 + - 12
----
877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT ALL 62 + - - 7 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 62 + - - 7 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 76 + - ( + 61 )
----
-137

query I rowsort
SELECT + + 1 + - - 13 + + 15 AS col0
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-2979
SELECT + - 26 + - - 13, + 68 + - 37 + 67 + + 35 DIV - - 55 AS col2
----
-13
98

skipif mysql # not compatible
query II rowsort label-2979
SELECT + - 26 + - - 13, + 68 + - 37 + 67 + + 35 / - - 55 AS col2
----
-13
98

query I rowsort
SELECT ALL - 21 + + 92
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT COUNT( - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2981
SELECT COUNT ( - 99 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 81 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2983
SELECT DISTINCT 51 DIV - COALESCE ( + + CAST( NULL AS SIGNED ), - 84 - - COUNT( * ) ) * 25 + + SUM( ALL + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT 51 / - COALESCE ( + + CAST ( NULL AS INTEGER ), - 84 - - COUNT ( * ) ) * 25 + + SUM ( ALL + 5 ) AS col0
----
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT - - 74 AS col1, 20 * - 63 + - 19 + + + COUNT( * ) * 33 col2
----
74
-1246

skipif mysql # not compatible
query II rowsort label-2985
SELECT - - 74 AS col1, 20 * - 63 + - 19 + + + COUNT ( * ) * 33 col2
----
74
-1246

query I rowsort
SELECT ALL - + 36 * - 21 AS col1
----
756

query II rowsort
SELECT + - 51 AS col1, + 15 AS col0
----
-51
15

query I rowsort
SELECT + 14 * + 38
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT 18 * + COUNT( * ) * + MAX( - 8 ) + - COUNT( * ) + 62
----
-83

skipif mysql # not compatible
query I rowsort label-2989
SELECT 18 * + COUNT ( * ) * + MAX ( - 8 ) + - COUNT ( * ) + 62
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL 65 * COALESCE ( + 0, - CASE - COUNT( * ) WHEN + 4 * + 61 * - - 21 * 74 + + 96 * + - 94 + 70 * 69 + + 57 / - ( - MIN( - 81 ) ) * + 99 * ( - 41 ) THEN - - CAST( NULL AS SIGNED ) END * 0 * - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL 65 * COALESCE ( + 0, - CASE - COUNT ( * ) WHEN + 4 * + 61 * - - 21 * 74 + + 96 * + - 94 + 70 * 69 + + 57 / - ( - MIN ( - 81 ) ) * + 99 * ( - 41 ) THEN - - CAST ( NULL AS INTEGER ) END * 0 * - 39 )
----
0

query II rowsort
SELECT 25 * - 28, + 35 col2
----
-700
35

query I rowsort
SELECT 60 * + 18 AS col2
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2993
SELECT ALL - COALESCE ( - - 66, + + CAST( - 55 AS SIGNED ) - MIN( ALL 5 ) DIV + - 25 * - 83 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - COALESCE ( - - 66, + + CAST ( - 55 AS INTEGER ) - MIN ( ALL 5 ) / + - 25 * - 83 ) AS col0
----
-66

query I rowsort
SELECT 44 - - 52
----
96

query I rowsort
SELECT 50 * + 98
----
4900

query III rowsort
SELECT 53 + - 38 AS col2, 25 col0, 62 - + 76 + - COALESCE ( ( 51 ), - 65 ) AS col2
----
15
25
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - MIN( + 12 ) * + 63 * - + 92 + - MAX( DISTINCT + + 76 ) + + ( 65 )
----
69541

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - MIN ( + 12 ) * + 63 * - + 92 + - MAX ( DISTINCT + + 76 ) + + ( 65 )
----
69541

query I rowsort
SELECT DISTINCT - 56 + + 51 + - 20 + - + 62
----
-87

query I rowsort
SELECT ALL - 38 + - 14 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3001
SELECT ALL + 83 * + 5 * + 1 AS col1, + ( + 55 ) DIV - - SUM( - 47 ) - + 78 * + COALESCE ( 40, 21 ) + + ( 65 ) + - 30 col0
----
415
-3086

skipif mysql # not compatible
query II rowsort label-3001
SELECT ALL + 83 * + 5 * + 1 AS col1, + ( + 55 ) / - - SUM ( - 47 ) - + 78 * + COALESCE ( 40, 21 ) + + ( 65 ) + - 30 col0
----
415
-3086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT 95 DIV - + SUM( ALL + 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-3002
SELECT 95 / - + SUM ( ALL + 37 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT 66 * - 48 AS col1, 32 + + CAST( NULL AS SIGNED ) * 59
----
-3168
NULL

skipif mysql # not compatible
query II rowsort label-3003
SELECT 66 * - 48 AS col1, 32 + + CAST ( NULL AS INTEGER ) * 59
----
-3168
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT + MIN( 87 ) * + 70
----
6090

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + MIN ( 87 ) * + 70
----
6090

query I rowsort
SELECT ALL - 11 + - 63 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT 78 + + 15 + + 46 DIV 91
----
93

skipif mysql # not compatible
query I rowsort label-3006
SELECT 78 + + 15 + + 46 / 91
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT - COUNT( - 58 ) + - ( + - 34 ) + - - 41 - + + 8 DIV 3
----
72

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - COUNT ( - 58 ) + - ( + - 34 ) + - - 41 - + + 8 / 3
----
72

query I rowsort
SELECT DISTINCT + CASE - + 36 WHEN - - 45 THEN + 20 ELSE NULL END * - 27 * 30
----
NULL

query II rowsort
SELECT ALL + 10 + - 0 AS col1, - 9 col2
----
10
-9

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

skipif mysql # not compatible
query I rowsort label-3010
SELECT ( 0 ) + - + 21 - COUNT ( * ) / 2 col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3011
SELECT - - CAST( 70 AS SIGNED ) AS col0, COUNT( * ) * CASE WHEN NULL <> 49 THEN NULL ELSE - 46 END AS col0
----
70
-46

skipif mysql # not compatible
query II rowsort label-3011
SELECT - - CAST ( 70 AS INTEGER ) AS col0, COUNT ( * ) * CASE WHEN NULL <> 49 THEN NULL ELSE - 46 END AS col0
----
70
-46

query II rowsort
SELECT ALL - - 71 - + + 54 AS col2, 71 col2
----
17
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ALL + 92 DIV SUM( - 70 ) * + 6 * + + 38
----
-228

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + 92 / SUM ( - 70 ) * + 6 * + + 38
----
-228

query I rowsort
SELECT + 87 * - - ( + + ( + 59 ) )
----
5133

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT - 96 + COUNT( * ) - + 21 + - 35 * + 80, + COUNT( DISTINCT 52 ) AS col2
----
-2916
1

skipif mysql # not compatible
query II rowsort label-3015
SELECT - 96 + COUNT ( * ) - + 21 + - 35 * + 80, + COUNT ( DISTINCT 52 ) AS col2
----
-2916
1

query II rowsort
SELECT 50 + - + 21 AS col2, + 41
----
29
41

query I rowsort
SELECT 96 + + 32
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT - MAX( + + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3018
SELECT - MAX ( + + 88 )
----
-88

query I rowsort
SELECT - 36 + - 86
----
-122

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT - - MIN( ALL + + 11 ) AS col2, COUNT( * ) - - 12 AS col1
----
11
13

skipif mysql # not compatible
query II rowsort label-3021
SELECT - - MIN ( ALL + + 11 ) AS col2, COUNT ( * ) - - 12 AS col1
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT COUNT( * ) * + 81 + - 81
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT COUNT ( * ) * + 81 + - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + SUM( - 44 ) + 45
----
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT + SUM ( - 44 ) + 45
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT - COUNT( * ) DIV + 18 * + + 24 + - MIN( ALL + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COUNT ( * ) / + 18 * + + 24 + - MIN ( ALL + 95 ) AS col0
----
-95

query I rowsort
SELECT 96 * + 80 AS col1
----
7680

query I rowsort
SELECT 64 + ( - 35 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT 34 + COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3027
SELECT 34 + COUNT ( * ) col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL - 5 AS col1, + CASE + + 5 WHEN - - 64 * + + 18 + - 97 THEN 83 WHEN - 63 THEN + - 0 WHEN + 86 * + + COUNT( * ) THEN NULL END
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL - 5 AS col1, + CASE + + 5 WHEN - - 64 * + + 18 + - 97 THEN 83 WHEN - 63 THEN + - 0 WHEN + 86 * + + COUNT ( * ) THEN NULL END
----
-5
NULL

query I rowsort
SELECT ALL 17 + - - 66 col1
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3030
SELECT DISTINCT CAST( + + 83 AS SIGNED ) DIV + - 53 + - 10 col0, + 37 AS col0
----
-11
37

skipif mysql # not compatible
query II rowsort label-3030
SELECT DISTINCT CAST ( + + 83 AS INTEGER ) / + - 53 + - 10 col0, + 37 AS col0
----
-11
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT COUNT( DISTINCT - + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT COUNT ( DISTINCT - + 28 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 16 + + 58
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT COUNT( - 16 ) * - + 37 + 43 + - 60 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3033
SELECT COUNT ( - 16 ) * - + 37 + 43 + - 60 AS col1
----
-54

query I rowsort
SELECT ALL 51 + 4 AS col0
----
55

query I rowsort
SELECT DISTINCT 10 * + + CASE + 78 WHEN + ( 78 ) - + 90 + + 88 / - 4 * + - 38 + - 80 THEN - - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT MIN( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3036
SELECT MIN ( ALL 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT 85 + + + COALESCE ( NULLIF ( 34, 10 ), MAX( ALL + - 40 ), - 95 ) + + + ( 99 ) AS col0
----
218

skipif mysql # not compatible
query I rowsort label-3037
SELECT 85 + + + COALESCE ( NULLIF ( 34, 10 ), MAX ( ALL + - 40 ), - 95 ) + + + ( 99 ) AS col0
----
218

query I rowsort
SELECT ALL - CASE WHEN NOT + 76 IS NOT NULL THEN - - NULLIF ( 40, + 30 ) * + 31 * + 6 / 99 END AS col0
----
NULL

query I rowsort
SELECT ALL - 81 - - 70
----
-11

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

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

query I rowsort
SELECT DISTINCT + - 7 * 40 AS col1
----
-280

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT - MIN( ALL - 91 ) * + + 46, 27 * - + 48 AS col2
----
4186
-1296

skipif mysql # not compatible
query II rowsort label-3042
SELECT - MIN ( ALL - 91 ) * + + 46, 27 * - + 48 AS col2
----
4186
-1296

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT - 54 * 85 + 73 col0, COALESCE ( + - COUNT( * ), + + 89 - ( + - 20 ) ) col2
----
-4517
-1

skipif mysql # not compatible
query II rowsort label-3043
SELECT - 54 * 85 + 73 col0, COALESCE ( + - COUNT ( * ), + + 89 - ( + - 20 ) ) col2
----
-4517
-1

query I rowsort
SELECT ALL + + 56 * - 71 AS col2
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT SUM( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-3045
SELECT SUM ( - 56 )
----
-56

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

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL SUM ( DISTINCT + 11 ) AS col1
----
11

query I rowsort
SELECT - + 74 * - + 21
----
1554

query I rowsort
SELECT ( - - 4 ) AS col1
----
4

query II rowsort
SELECT ALL - 32, 44 AS col2
----
-32
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + 57 * MIN( - 70 ) + - NULLIF ( 61, - + SUM( ALL + + 78 ) * + ( + CASE + 6 WHEN 58 * - 87 * - + 54 * + - ( - ( - ( + COUNT( * ) ) ) ) * - 63 / - + 5 * + ( - NULLIF ( 22, 49 ) ) + + AVG ( ALL - 69 ) + + 55 THEN NULL ELSE 97 + - SUM( 60 ) END ) ) AS col2
----
-4051

skipif mysql # not compatible
query I rowsort label-3050
SELECT + 57 * MIN ( - 70 ) + - NULLIF ( 61, - + SUM ( ALL + + 78 ) * + ( + CASE + 6 WHEN 58 * - 87 * - + 54 * + - ( - ( - ( + COUNT ( * ) ) ) ) * - 63 / - + 5 * + ( - NULLIF ( 22, 49 ) ) + + AVG ( ALL - 69 ) + + 55 THEN NULL ELSE 97 + - SUM ( 60 ) END ) ) AS col2
----
-4051

query II rowsort
SELECT - - 21 col1, 23 AS col0
----
21
23

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

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - 86 / COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT - CASE + 87 WHEN - 88 THEN - ( - - 29 ) WHEN - - 72 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 + 21 + - 48 + - - 64 + + 57 + - 0 * ( + 74 ) col0
----
170

query I rowsort
SELECT ALL + 10 + 7
----
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3056
SELECT ALL - CAST( - 61 AS SIGNED ) + AVG ( + 31 ) + - NULLIF ( - CASE + 76 WHEN CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN ( + - 66 ) END, + 96 ) + + CASE - 44 WHEN - ( + + 65 ) / - 86 * 43 + + 83 - + + 68 * 47 + + 6 THEN NULL WHEN - + 85 THEN 78 + + 1 END AS col2, + 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3056
SELECT ALL - CAST ( - 61 AS INTEGER ) + AVG ( + 31 ) + - NULLIF ( - CASE + 76 WHEN CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) THEN ( + - 66 ) END, + 96 ) + + CASE - 44 WHEN - ( + + 65 ) / - 86 * 43 + + 83 - + + 68 * 47 + + 6 THEN NULL WHEN - + 85 THEN 78 + + 1 END AS col2, + 10
----
NULL
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT ALL 35 * - 60 + + + 81 * ( COALESCE ( - 41, 85 DIV + 55 ) )
----
-5421

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL 35 * - 60 + + + 81 * ( COALESCE ( - 41, 85 / + 55 ) )
----
-5421

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL COUNT( * ) * - - 36 + + - 49 - 80 * 53 + + ( + 44 ) AS col2
----
-4209

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL COUNT ( * ) * - - 36 + + - 49 - 80 * 53 + + ( + 44 ) AS col2
----
-4209

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

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

query I rowsort
SELECT ALL 75 * - + 9
----
-675

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT + 22 DIV - 12 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3063
SELECT + 22 / - 12 AS col0
----
-1

query I rowsort
SELECT ALL 98 * - 89
----
-8722

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT ALL 9 DIV + NULLIF ( 88, - + 96 + + 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL 9 / + NULLIF ( 88, - + 96 + + 78 ) AS col0
----
0

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

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

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

query I rowsort
SELECT ALL 72 * - 54 AS col2
----
-3888

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT + - NULLIF ( 92, - CASE 22 WHEN 16 / + - 23 * + 23 / + SUM( ALL + CAST( NULL AS SIGNED ) ) * - 61 * 3 + CASE 76 WHEN + CAST( NULL AS SIGNED ) * + - 63 THEN - - 2 + + AVG ( 60 ) * + + 69 END * 77 THEN + + MIN( - + CASE + 8 WHEN 98 THEN 45 * 77 + - + 84 ELSE COALESCE ( - 73, + 29 ) + 28 END ) + NULLIF ( 9, 43 ) WHEN 65 / NULLIF ( 4, 51 ) THEN NULL WHEN - AVG ( ALL 94 ) * 27 THEN NULL ELSE - 91 END ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3070
SELECT + - NULLIF ( 92, - CASE 22 WHEN 16 / + - 23 * + 23 / + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - 61 * 3 + CASE 76 WHEN + CAST ( NULL AS INTEGER ) * + - 63 THEN - - 2 + + AVG ( 60 ) * + + 69 END * 77 THEN + + MIN ( - + CASE + 8 WHEN 98 THEN 45 * 77 + - + 84 ELSE COALESCE ( - 73, + 29 ) + 28 END ) + NULLIF ( 9, 43 ) WHEN 65 / NULLIF ( 4, 51 ) THEN NULL WHEN - AVG ( ALL 94 ) * 27 THEN NULL ELSE - 91 END ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT - 16 - - 83 AS col1, - 35 / CASE + - 45 WHEN + 41 THEN + COUNT( * ) * - - COUNT( * ) - 37 + + 34 WHEN 41 / 48 THEN + + 72 END * 85
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3071
SELECT - 16 - - 83 AS col1, - 35 / CASE + - 45 WHEN + 41 THEN + COUNT ( * ) * - - COUNT ( * ) - 37 + + 34 WHEN 41 / 48 THEN + + 72 END * 85
----
67
NULL

query I rowsort
SELECT + COALESCE ( - ( + 45 ), ( + + 83 ) ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT + 85 DIV + COALESCE ( + 73, + 25 + + COUNT( * ) * + 34 * + 96 + - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 85 / + COALESCE ( + 73, + 25 + + COUNT ( * ) * + 34 * + 96 + - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL - 57 + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - 57 + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3075
SELECT - - MAX( DISTINCT + ( + 78 ) ) + COUNT( * ) + - + 70 * 99 DIV 61 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3075
SELECT - - MAX ( DISTINCT + ( + 78 ) ) + COUNT ( * ) + - + 70 * 99 / 61 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - - SUM( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3076
SELECT - - SUM ( 15 )
----
15

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

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

query I rowsort
SELECT - + 77 + + + 45 AS col0
----
-32

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

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

query I rowsort
SELECT - CASE - 77 WHEN - + 16 * - 67 - + - 67 THEN - + 76 END + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL + CAST( NULL AS SIGNED ) + - MIN( + - 69 ) + - + 43 * COUNT( * ) + + 35 * 32 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + CAST ( NULL AS INTEGER ) + - MIN ( + - 69 ) + - + 43 * COUNT ( * ) + + 35 * 32 * - 64
----
NULL

query I rowsort
SELECT DISTINCT - 69 + 11 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT - 64 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 64 / 80
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT - CAST( NULL AS SIGNED ) + + 72 + MIN( - 7 ) - - + 45 / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT - CAST ( NULL AS INTEGER ) + + 72 + MIN ( - 7 ) - - + 45 / 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3086
SELECT - COUNT( * ) + 82 + - NULLIF ( + - 55, 88 * - + 29 + COUNT( * ) + - + COUNT( * ) + - 66 * 97 ) DIV 89
----
81

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( * ) + 82 + - NULLIF ( + - 55, 88 * - + 29 + COUNT ( * ) + - + COUNT ( * ) + - 66 * 97 ) / 89
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3087
SELECT + 40 * + COUNT( * ) * - 25, + 83 col0
----
-1000
83

skipif mysql # not compatible
query II rowsort label-3087
SELECT + 40 * + COUNT ( * ) * - 25, + 83 col0
----
-1000
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3088
SELECT 25 * - 85 + + 4 AS col0, - 75 DIV + COUNT( * ) col0
----
-2121
-75

skipif mysql # not compatible
query II rowsort label-3088
SELECT 25 * - 85 + + 4 AS col0, - 75 / + COUNT ( * ) col0
----
-2121
-75

query I rowsort
SELECT + CASE 18 WHEN + 67 THEN + 64 - 39 WHEN 68 + - 62 * 82 THEN NULL END / + 36 + + 16
----
NULL

query I rowsort
SELECT ALL - 61 * + 86 AS col1
----
-5246

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

query I rowsort
SELECT DISTINCT 21 * - 11 col1
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT 62 * - 17 + ( - - COUNT( * ) ) DIV + - 38
----
-1054

skipif mysql # not compatible
query I rowsort label-3093
SELECT 62 * - 17 + ( - - COUNT ( * ) ) / + - 38
----
-1054

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3094
SELECT - + COUNT( - 47 ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT - + COUNT ( - 47 ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + - 68 * + + 69 * - 8 + - 14
----
37522

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT 57 DIV - 93 + + 49 + 66 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-3096
SELECT 57 / - 93 + + 49 + 66 AS col0
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3097
SELECT + CAST( + + CASE 92 WHEN + 49 THEN ( - AVG ( DISTINCT 89 ) ) * 84 WHEN - 58 THEN NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT + CAST ( + + CASE 92 WHEN + 49 THEN ( - AVG ( DISTINCT 89 ) ) * 84 WHEN - 58 THEN NULL END AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT + + CAST( - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3098
SELECT + + CAST ( - 71 AS INTEGER ) AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3099
SELECT ALL 6 DIV - ( + + ( 46 ) ) - + 82 * - COALESCE ( - - 84, - + CAST( + ( + + COUNT( - 97 ) ) AS SIGNED ) ) AS col0
----
6888

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 6 / - ( + + ( 46 ) ) - + 82 * - COALESCE ( - - 84, - + CAST ( + ( + + COUNT ( - 97 ) ) AS INTEGER ) ) AS col0
----
6888

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + 39 + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3101
SELECT + 39 + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL + 86 + - + ( 33 ) + + - 44 * - COUNT( * ) DIV + - 87
----
53

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 86 + - + ( 33 ) + + - 44 * - COUNT ( * ) / + - 87
----
53

query I rowsort
SELECT 5 * + 89
----
445

query I rowsort
SELECT DISTINCT + 84 * + - ( + 68 ) AS col1
----
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL MAX( - + 5 ) + + - 15
----
-20

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL MAX ( - + 5 ) + + - 15
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT - NULLIF ( + 83, + COUNT( * ) ), - 58 * 6 + - - ( - - 50 ) AS col0
----
-83
-298

skipif mysql # not compatible
query II rowsort label-3106
SELECT - NULLIF ( + 83, + COUNT ( * ) ), - 58 * 6 + - - ( - - 50 ) AS col0
----
-83
-298

query I rowsort
SELECT 69 * - 91 AS col1
----
-6279

query II rowsort
SELECT 2 AS col1, + 28 col1
----
2
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT 77 AS col2, 48 + COUNT( * ) + + COALESCE ( - 62, - + 80, 50 + 69, 1 ) AS col1
----
77
-13

skipif mysql # not compatible
query II rowsort label-3109
SELECT 77 AS col2, 48 + COUNT ( * ) + + COALESCE ( - 62, - + 80, 50 + 69, 1 ) AS col1
----
77
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT MIN( - 21 ) * + 63
----
-1323

skipif mysql # not compatible
query I rowsort label-3110
SELECT MIN ( - 21 ) * + 63
----
-1323

query II rowsort
SELECT - 90 AS col0, - ( - 92 )
----
-90
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3112
SELECT - 42, - COALESCE ( + + 93, - 61 + CAST( NULL AS SIGNED ) ) DIV - 76 + + 6 - 41 AS col0
----
-42
-34

skipif mysql # not compatible
query II rowsort label-3112
SELECT - 42, - COALESCE ( + + 93, - 61 + CAST ( NULL AS INTEGER ) ) / - 76 + + 6 - 41 AS col0
----
-42
-34

query I rowsort
SELECT 85 * 9
----
765

query I rowsort
SELECT DISTINCT 34 * 30 col0
----
1020

query I rowsort
SELECT DISTINCT - 75 - - + 61
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT COUNT( * ) * + + 59 * + 30 + + CASE - 47 WHEN - 7 DIV - CASE - NULLIF ( - 3, - 97 DIV + - 4 * 63 ) WHEN 93 THEN NULL WHEN 69 * 7 + + + 27 + + 37 THEN NULL ELSE ( - 16 ) END THEN NULL ELSE - COUNT( * ) END DIV + - 66 + ( - 13 )
----
1757

skipif mysql # not compatible
query I rowsort label-3116
SELECT COUNT ( * ) * + + 59 * + 30 + + CASE - 47 WHEN - 7 / - CASE - NULLIF ( - 3, - 97 / + - 4 * 63 ) WHEN 93 THEN NULL WHEN 69 * 7 + + + 27 + + 37 THEN NULL ELSE ( - 16 ) END THEN NULL ELSE - COUNT ( * ) END / + - 66 + ( - 13 )
----
1757

query II rowsort
SELECT 1, 56 AS col0
----
1
56

query II rowsort
SELECT DISTINCT - 55 AS col0, + 64 * + - 67
----
-55
-4288

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT 94 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-3119
SELECT 94 / 65
----
1

query II rowsort
SELECT ALL - 68, 40 AS col0
----
-68
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT 94 DIV + 52 + + 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3121
SELECT 94 / + 52 + + 14 AS col0
----
15

query I rowsort
SELECT - 7 * - 17 AS col0
----
119

query I rowsort
SELECT 40 + + 10 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT 50 AS col1, NULLIF ( - + 38, 75 - + 7 / - 19 - - 94 * 27 + COUNT( * ) + CASE 39 WHEN - + COUNT( * ) THEN + 20 WHEN + 62 THEN NULL END * - - 78 )
----
50
-38

skipif mysql # not compatible
query II rowsort label-3124
SELECT 50 AS col1, NULLIF ( - + 38, 75 - + 7 / - 19 - - 94 * 27 + COUNT ( * ) + CASE 39 WHEN - + COUNT ( * ) THEN + 20 WHEN + 62 THEN NULL END * - - 78 )
----
50
-38

query II rowsort
SELECT ALL - 30, + 33 AS col1
----
-30
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + 73 * + - 45 * + COUNT( * ) * 89 - - MAX( - + 49 ) AS col0
----
-292414

skipif mysql # not compatible
query I rowsort label-3126
SELECT + 73 * + - 45 * + COUNT ( * ) * 89 - - MAX ( - + 49 ) AS col0
----
-292414

query I rowsort
SELECT ALL + 51 + - + 74 + + 49 - 73
----
-47

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

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

query II rowsort
SELECT + + 94 AS col2, - 43
----
94
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT + NULLIF ( + + COALESCE ( - 5, - CAST( - 61 AS SIGNED ) ), ( - 45 ) ) * + + 55
----
-275

skipif mysql # not compatible
query I rowsort label-3130
SELECT + NULLIF ( + + COALESCE ( - 5, - CAST ( - 61 AS INTEGER ) ), ( - 45 ) ) * + + 55
----
-275

query II rowsort
SELECT 40 * 47 * - 72 + + - 5, - ( - 27 ) AS col2
----
-135365
27

query II rowsort
SELECT - 18 AS col1, 94
----
-18
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + COUNT( * ) + + 51 * - + 4
----
-203

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + COUNT ( * ) + + 51 * - + 4
----
-203

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3134
SELECT ALL - - 20 AS col1, 90 DIV COUNT( * ) * 7
----
20
630

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL - - 20 AS col1, 90 / COUNT ( * ) * 7
----
20
630

query I rowsort
SELECT DISTINCT 24 + + - 18 + + 36 AS col0
----
42

query I rowsort
SELECT DISTINCT + - ( - + 11 ) + 15 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - SUM( - + 26 ) + - 41 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - SUM ( - + 26 ) + - 41 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3138
SELECT MIN( DISTINCT 25 ) + + - CAST( NULL AS DECIMAL ) / - 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT MIN ( DISTINCT 25 ) + + - CAST ( NULL AS REAL ) / - 45 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - COUNT( NULLIF ( 13, 98 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3139
SELECT - COUNT ( NULLIF ( 13, 98 ) ) AS col2
----
-1

query I rowsort
SELECT ALL 52 - - 73
----
125

onlyif mysql # aggregate syntax: 
query III rowsort label-3141
SELECT 69 + + 59 - - 0 + 90 * + COUNT( * ) * + + ( - - 91 ) AS col2, 16 col1, 13 * - 44 + + - 10 AS col1
----
8318
16
-582

skipif mysql # not compatible
query III rowsort label-3141
SELECT 69 + + 59 - - 0 + 90 * + COUNT ( * ) * + + ( - - 91 ) AS col2, 16 col1, 13 * - 44 + + - 10 AS col1
----
8318
16
-582

query I rowsort
SELECT 8 * - - 51
----
408

query I rowsort
SELECT DISTINCT 58 * + 52
----
3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3144
SELECT - COUNT( + 81 ) AS col2, 48 + + + CAST( - + 56 AS SIGNED )
----
-1
-8

skipif mysql # not compatible
query II rowsort label-3144
SELECT - COUNT ( + 81 ) AS col2, 48 + + + CAST ( - + 56 AS INTEGER )
----
-1
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT COUNT( ALL 54 ) + + + ( + 6 ) DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( ALL 54 ) + + + ( + 6 ) / - 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT CAST( - ( + NULLIF ( + NULLIF ( + - 84, - 54 ), + 41 / - 47 + - - MAX( DISTINCT + 48 ) + COUNT( * ) * + 76 - - 11 / SUM( + 91 ) + 37 + 99 + + 60 * - 39 + + ( - ( 95 ) ) + + 83 - + + COALESCE ( + 36, + + 61 * - 85 - + 16 + 89, + COUNT( * ) ) + - 29 * - + 37 * - 19 * + 34 * + 88 * + 30 ) ) AS SIGNED ) + - 90 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3146
SELECT CAST ( - ( + NULLIF ( + NULLIF ( + - 84, - 54 ), + 41 / - 47 + - - MAX ( DISTINCT + 48 ) + COUNT ( * ) * + 76 - - 11 / SUM ( + 91 ) + 37 + 99 + + 60 * - 39 + + ( - ( 95 ) ) + + 83 - + + COALESCE ( + 36, + + 61 * - 85 - + 16 + 89, + COUNT ( * ) ) + - 29 * - + 37 * - 19 * + 34 * + 88 * + 30 ) ) AS INTEGER ) + - 90 AS col2
----
-6

query I rowsort
SELECT 4 + + ( - 35 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3148
SELECT - SUM( DISTINCT 10 ) AS col1, 26 * - + COUNT( * ) DIV 46
----
-10
0

skipif mysql # not compatible
query II rowsort label-3148
SELECT - SUM ( DISTINCT 10 ) AS col1, 26 * - + COUNT ( * ) / 46
----
-10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT 13 + + 40 * MIN( ALL - - 16 ) AS col2
----
653

skipif mysql # not compatible
query I rowsort label-3149
SELECT 13 + + 40 * MIN ( ALL - - 16 ) AS col2
----
653

query I rowsort
SELECT 20 * + NULLIF ( + 97, 69 ) AS col2
----
1940

query I rowsort
SELECT 23 + 3 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - 9 + SUM( DISTINCT + 15 ) + 54 + + + 19 * - 12 + + - 83 + - - 11
----
-240

skipif mysql # not compatible
query I rowsort label-3152
SELECT - 9 + SUM ( DISTINCT + 15 ) + 54 + + + 19 * - 12 + + - 83 + - - 11
----
-240

query I rowsort
SELECT ALL + 89 * + - 58 * + 8
----
-41296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT COUNT( * ) DIV ( - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT COUNT ( * ) / ( - 67 )
----
0

query I rowsort
SELECT + ( - ( 9 ) ) col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) + - COALESCE ( - 16, + - 30 * 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - COALESCE ( - 16, + - 30 * 8 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ALL + 32 * - 67 + CAST( 57 AS SIGNED )
----
-2087

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL + 32 * - 67 + CAST ( 57 AS INTEGER )
----
-2087

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

skipif mysql # not compatible
query I rowsort label-3158
SELECT + - CAST ( - + MAX ( DISTINCT + 16 ) AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MIN( + - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3159
SELECT MIN ( + - 45 ) AS col0
----
-45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT + + 47 * + 37 * MIN( - CAST( + 42 AS SIGNED ) ) col1
----
-73038

skipif mysql # not compatible
query I rowsort label-3161
SELECT + + 47 * + 37 * MIN ( - CAST ( + 42 AS INTEGER ) ) col1
----
-73038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3162
SELECT ALL + - 76 * CAST( + NULLIF ( - 33, 54 * + - 80 ) AS SIGNED ) * - - COALESCE ( + + COUNT( * ), + 45 DIV - + 55 * - + 55 * + COUNT( * ) * - + 34 DIV 11 + - 37, CASE - 41 WHEN - 24 * - COUNT( * ) DIV + 89 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END ) + + ( + + 72 ) + + 53 AS col2
----
2633

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + - 76 * CAST ( + NULLIF ( - 33, 54 * + - 80 ) AS INTEGER ) * - - COALESCE ( + + COUNT ( * ), + 45 / - + 55 * - + 55 * + COUNT ( * ) * - + 34 / 11 + - 37, CASE - 41 WHEN - 24 * - COUNT ( * ) / + 89 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END ) + + ( + + 72 ) + + 53 AS col2
----
2633

query II rowsort
SELECT - 51 * - + 49 AS col0, 82 AS col2
----
2499
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + MAX( DISTINCT - 72 ) * - + 71 AS col1
----
5112

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + MAX ( DISTINCT - 72 ) * - + 71 AS col1
----
5112

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - - CASE + - 27 WHEN 13 + + 6 THEN - - 72 * SUM( ALL 0 ) END + ( - + 45 ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT - - CASE + - 27 WHEN 13 + + 6 THEN - - 72 * SUM ( ALL 0 ) END + ( - + 45 ) * + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL - 45 * + + 32 + - 83 + + ( + 61 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - 45 * + + 32 + - 83 + + ( + 61 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + + COUNT( + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT + + COUNT ( + 37 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3168
SELECT ALL + COALESCE ( + 29, + 42, + - 83 * - 92 * - 65 * - + COALESCE ( + 67, + + ( 8 ) * - 79 + - + COUNT( * ) + - CASE - - NULLIF ( + CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) ) WHEN - + 75 DIV + + 31 + - 49 THEN + 32 DIV + + 84 + + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END, - + 67 ), ( + 30 ) ) * + 57
----
1653

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + COALESCE ( + 29, + 42, + - 83 * - 92 * - 65 * - + COALESCE ( + 67, + + ( 8 ) * - 79 + - + COUNT ( * ) + - CASE - - NULLIF ( + CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) ) WHEN - + 75 / + + 31 + - 49 THEN + 32 / + + 84 + + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END, - + 67 ), ( + 30 ) ) * + 57
----
1653

query I rowsort
SELECT - NULLIF ( + 97, - COALESCE ( + ( - - 67 ), - 63 ) ) * + 75 * + - 27 AS col0
----
196425

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT + 37 * 1 * 32 DIV + 52 + + 8 * 94 * + + 37 * + 81 AS col2
----
2253766

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 37 * 1 * 32 / + 52 + + 8 * 94 * + + 37 * + 81 AS col2
----
2253766

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL NULLIF ( + + COUNT( - - 21 ), - COUNT( * ) - MAX( + 68 ) + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL NULLIF ( + + COUNT ( - - 21 ), - COUNT ( * ) - MAX ( + 68 ) + 3 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT + CAST( NULL AS SIGNED ) / + 79 * - 1 / - 60 / + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT + CAST ( NULL AS INTEGER ) / + 79 * - 1 / - 60 / + + 23
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3176
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - 66 AS col0, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-3176
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * - 66 AS col0, COUNT ( * )
----
66
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT - 69 DIV - + 63
----
1

skipif mysql # not compatible
query I rowsort label-3177
SELECT - 69 / - + 63
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - COUNT( + - 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3179
SELECT - COUNT ( + - 32 ) AS col1
----
-1

query II rowsort
SELECT + 10 * + ( 40 ) col1, - 14 * + 68 AS col0
----
400
-952

query I rowsort
SELECT + 21 - 33
----
-12

query II rowsort
SELECT - ( + NULLIF ( - + 25, - 48 / 66 + - 99 * ( 56 ) ) ), 29 AS col0
----
25
29

query II rowsort
SELECT 64 AS col2, 49
----
64
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT ALL 85 + MIN( - 44 ) AS col2, - 21 AS col2
----
41
-21

skipif mysql # not compatible
query II rowsort label-3185
SELECT ALL 85 + MIN ( - 44 ) AS col2, - 21 AS col2
----
41
-21

query I rowsort
SELECT + 55 - - 49 * + - 99 + - 95 col1
----
-4891

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT 76 * + 93 + 11 * MAX( - 97 ) / - 69 - 39 + - + ( + ( CASE + COUNT( * ) WHEN - + MAX( + 13 ) + - 32 * 7 - - - 67 THEN AVG ( ALL - 2 ) ELSE NULL END ) ) AS col2, - NULLIF ( + + 73, + 97 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3187
SELECT 76 * + 93 + 11 * MAX ( - 97 ) / - 69 - 39 + - + ( + ( CASE + COUNT ( * ) WHEN - + MAX ( + 13 ) + - 32 * 7 - - - 67 THEN AVG ( ALL - 2 ) ELSE NULL END ) ) AS col2, - NULLIF ( + + 73, + 97 )
----
NULL
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT COALESCE ( ( COUNT( * ) ), + 78 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT COALESCE ( ( COUNT ( * ) ), + 78 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT ALL - + 32 DIV COUNT( * ) * 58 + - 29 - + 59 + - - CAST( + 17 AS SIGNED ) + + + 40 * - 72 * + + 75
----
-217927

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - + 32 / COUNT ( * ) * 58 + - 29 - + 59 + - - CAST ( + 17 AS INTEGER ) + + + 40 * - 72 * + + 75
----
-217927

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL + 55 DIV 65 + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + 55 / 65 + - 24
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT ALL + 26 DIV - 46 - + - 26 + - + 48 * 93 * - - CASE 84 WHEN - 7 * - 89 - - 64 THEN NULL ELSE - 30 END
----
133946

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + 26 / - 46 - + - 26 + - + 48 * 93 * - - CASE 84 WHEN - 7 * - 89 - - 64 THEN NULL ELSE - 30 END
----
133946

query II rowsort
SELECT + 37 AS col2, + 34 AS col2
----
37
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - CASE 79 WHEN - + 59 THEN + NULLIF ( + 62, 41 ) / + 54 + MAX( + 65 ) END * + - MIN( DISTINCT + + 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT - CASE 79 WHEN - + 59 THEN + NULLIF ( + 62, 41 ) / + 54 + MAX ( + 65 ) END * + - MIN ( DISTINCT + + 92 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + MIN( DISTINCT + 94 ) * + 79 * - 98 - COALESCE ( + - 12, 88 )
----
-727736

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + MIN ( DISTINCT + 94 ) * + 79 * - 98 - COALESCE ( + - 12, 88 )
----
-727736

query I rowsort
SELECT + + 66 - - 36
----
102

query I rowsort
SELECT - + 3 * ( - 69 ) AS col2
----
207

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT - 41 DIV + 7 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3199
SELECT - 41 / + 7 AS col2
----
-5

query I rowsort
SELECT ALL + NULLIF ( 79, + - 42 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT - MIN( ALL - 68 ) * - 74 AS col2
----
-5032

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - MIN ( ALL - 68 ) * - 74 AS col2
----
-5032

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL 76 DIV - 12 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL 76 / - 12 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT - 88 * 32 DIV + 67 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 88 * 32 / + 67 AS col0
----
-42

query I rowsort
SELECT NULLIF ( 38, - 3 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - CAST( NULL AS SIGNED ) * - CAST( 18 AS SIGNED ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( 18 AS INTEGER ) * - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT NULLIF ( + 73, - + 14 ) * + - COALESCE ( + 96, CAST( - 76 AS SIGNED ) )
----
-7008

skipif mysql # not compatible
query I rowsort label-3206
SELECT NULLIF ( + 73, - + 14 ) * + - COALESCE ( + 96, CAST ( - 76 AS INTEGER ) )
----
-7008

query I rowsort
SELECT 94 + - - ( - ( + 55 ) ) + - 68 AS col2
----
-29

query I rowsort
SELECT 4 + + + 50
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT COUNT( * ) - + 0 + + CASE 93 WHEN 96 / + + 78 THEN NULL WHEN 0 * + 19 THEN + 35 + + ( CAST( - + COUNT( * ) AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT COUNT ( * ) - + 0 + + CASE 93 WHEN 96 / + + 78 THEN NULL WHEN 0 * + 19 THEN + 35 + + ( CAST ( - + COUNT ( * ) AS INTEGER ) ) END AS col2
----
NULL

query II rowsort
SELECT 13 + - 13 * + + COALESCE ( + 95, + 90, - - 41 * + 52, - - 72 + 28 ) - 68 * - + 84 * - 74 + + ( + + 1 ), + 78 AS col2
----
-423909
78

query I rowsort
SELECT ALL - 99 + + - 9 AS col0
----
-108

query I rowsort
SELECT DISTINCT - 90 + + 57 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL ( + + 93 ) + + + 4 + + 97 AS col2, 59 + + + COALESCE ( + 31, - + 35 * - - 75 + + 99 + ( - 34 ) * + COUNT( * ), + 30 + CASE + 84 WHEN + - 47 THEN NULL ELSE + 12 END, 21 * COUNT( DISTINCT - 47 ) + CASE + 63 WHEN 21 + ( + 94 ) THEN + COUNT( * ) + - ( - 12 ) + 48 END ) + 56 - COUNT( - 74 ) * + - 29 + COUNT( ALL + 48 ) + + 96 * - - ( ( 81 ) )
----
194
7952

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL ( + + 93 ) + + + 4 + + 97 AS col2, 59 + + + COALESCE ( + 31, - + 35 * - - 75 + + 99 + ( - 34 ) * + COUNT ( * ), + 30 + CASE + 84 WHEN + - 47 THEN NULL ELSE + 12 END, 21 * COUNT ( DISTINCT - 47 ) + CASE + 63 WHEN 21 + ( + 94 ) THEN + COUNT ( * ) + - ( - 12 ) + 48 END ) + 56 - COUNT ( - 74 ) * + - 29 + COUNT ( ALL + 48 ) + + 96 * - - ( ( 81 ) )
----
194
7952

query I rowsort
SELECT DISTINCT 44 * 49 * - 13
----
-28028

query I rowsort
SELECT DISTINCT - - 13 + + COALESCE ( + ( + 20 ), - - 5 * - 45 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL + 94 + + - NULLIF ( - - MIN( ALL + 62 ), + 89 + - ( 67 ) + + 46 * 7 + - + 0 + + - 92 * - + CAST( + ( - - 86 ) AS SIGNED ) / + 77 / - - 14 + 22 + - 25 * + SUM( ALL - 70 ) + - - CAST( - - 49 AS SIGNED ) * 88 * + - MAX( DISTINCT - - 5 ) ) + - 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + 94 + + - NULLIF ( - - MIN ( ALL + 62 ), + 89 + - ( 67 ) + + 46 * 7 + - + 0 + + - 92 * - + CAST ( + ( - - 86 ) AS INTEGER ) / + 77 / - - 14 + 22 + - 25 * + SUM ( ALL - 70 ) + - - CAST ( - - 49 AS INTEGER ) * 88 * + - MAX ( DISTINCT - - 5 ) ) + - 34 AS col0
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + MAX( DISTINCT + 50 ) + + 11
----
61

skipif mysql # not compatible
query I rowsort label-3218
SELECT + MAX ( DISTINCT + 50 ) + + 11
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT + COUNT( * ) DIV + + 95 * 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3219
SELECT + COUNT ( * ) / + + 95 * 72 AS col2
----
0

query I rowsort
SELECT ALL - + 71 - - 48
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT DISTINCT + 0 * - 88 + - MAX( ALL + ( - 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT + 0 * - 88 + - MAX ( ALL + ( - 98 ) )
----
98

query I rowsort
SELECT - 83 * - 18 + 14 AS col2
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL - CASE - 34 WHEN - 59 THEN NULL ELSE + - 50 + 80 * + + 0 + - COUNT( * ) + + 41 + COUNT( * ) - + 94 + - 49 * + ( - - 4 ) END
----
299

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - CASE - 34 WHEN - 59 THEN NULL ELSE + - 50 + 80 * + + 0 + - COUNT ( * ) + + 41 + COUNT ( * ) - + 94 + - 49 * + ( - - 4 ) END
----
299

query I rowsort
SELECT ( - + 41 ) * 66
----
-2706

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3226
SELECT 74 + + - 26 AS col1, CASE - COUNT( * ) WHEN + MIN( ALL - + 50 ) THEN + + 62 WHEN - - ( + - CAST( - - 14 AS DECIMAL ) ) THEN 44 END + - - 84
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3226
SELECT 74 + + - 26 AS col1, CASE - COUNT ( * ) WHEN + MIN ( ALL - + 50 ) THEN + + 62 WHEN - - ( + - CAST ( - - 14 AS REAL ) ) THEN 44 END + - - 84
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + COUNT( * ) * + 15 * - COALESCE ( 73, - + 11 + - + MIN( 59 ), - + COUNT( * ) ) - 52
----
-1147

skipif mysql # not compatible
query I rowsort label-3227
SELECT + COUNT ( * ) * + 15 * - COALESCE ( 73, - + 11 + - + MIN ( 59 ), - + COUNT ( * ) ) - 52
----
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - 58 + 83 * COUNT( * ) col0
----
25

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 58 + 83 * COUNT ( * ) col0
----
25

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

skipif mysql # not compatible
query I rowsort label-3229
SELECT 98 * - - COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3230
SELECT ALL 70 * + CASE - - COUNT( * ) WHEN - 22 THEN 21 WHEN - 94 + + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL 70 * + CASE - - COUNT ( * ) WHEN - 22 THEN 21 WHEN - 94 + + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT 87 * + 94 * 60 AS col2
----
490680

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

skipif mysql # not compatible
query I rowsort label-3232
SELECT 14 + - COUNT ( * ) * 50 AS col1
----
-36

query I rowsort
SELECT 23 + + - 99
----
-76

query II rowsort
SELECT 89 AS col2, - 10 AS col0
----
89
-10

query I rowsort
SELECT 33 * 56
----
1848

query I rowsort
SELECT ALL + 3 + 52
----
55

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

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL COUNT ( * ) + - 53 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT 13 DIV - - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT 13 / - - 81 AS col1
----
0

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

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

query I rowsort
SELECT ALL 80 + - 58
----
22

query I rowsort
SELECT DISTINCT - 58 * + 56 * 90 * - + 88
----
25724160

query I rowsort
SELECT DISTINCT - 85 + + + 59 + 72 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - COUNT( ALL + 97 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - COUNT ( ALL + 97 ) + - COUNT ( * )
----
-2

query I rowsort
SELECT - 90 - - 85
----
-5

query I rowsort
SELECT 63 - + 23 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL - - COALESCE ( - 1, - + 96 - - - ( - + 13 ) + + 62 * + ( + - 97 ) ) * - MIN( + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - - COALESCE ( - 1, - + 96 - - - ( - + 13 ) + + 62 * + ( + - 97 ) ) * - MIN ( + + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT - COALESCE ( - 3, - CAST( - - 78 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3247
SELECT - COALESCE ( - 3, - CAST ( - - 78 AS INTEGER ) )
----
3

query I rowsort
SELECT + 40 * ( - - 9 )
----
360

query I rowsort
SELECT ALL - ( + - 19 ) * 92 + + 41
----
1789

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT - + 94 - - 44 DIV - 71 + + - 57 AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - + 94 - - 44 / - 71 + + - 57 AS col1
----
-151

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

query I rowsort
SELECT 78 - + 20 * + + ( + 72 ) AS col1
----
-1362

query I rowsort
SELECT ALL - 47 * + 61
----
-2867

query I rowsort
SELECT 9 * - + 48
----
-432

query I rowsort
SELECT 12 * + 86
----
1032

query II rowsort
SELECT ALL 59 * - 76 - 15 * ( 87 ) + - 38 AS col0, 29 col2
----
-5827
29

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

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

query I rowsort
SELECT - 47 + - 71 AS col0
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + 53 * 84 + + - CAST( NULL AS SIGNED ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + 53 * 84 + + - CAST ( NULL AS INTEGER ) * 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT ALL - 95 * 11 + ( + MAX( DISTINCT 5 ) ) * NULLIF ( + - 47, + + CASE - ( - 2 ) WHEN - + 39 * - - COUNT( * ) * + 34 / + - COUNT( * ) * 95 + 54 + ( + 95 ) - - + ( - ( + 41 ) ) + 88 THEN + 28 WHEN - NULLIF ( - COUNT( * ), - COUNT( * ) * - 70 * - 39 ) THEN NULL ELSE NULL END ), + 49 AS col2
----
-1280
49

skipif mysql # not compatible
query II rowsort label-3260
SELECT ALL - 95 * 11 + ( + MAX ( DISTINCT 5 ) ) * NULLIF ( + - 47, + + CASE - ( - 2 ) WHEN - + 39 * - - COUNT ( * ) * + 34 / + - COUNT ( * ) * 95 + 54 + ( + 95 ) - - + ( - ( + 41 ) ) + 88 THEN + 28 WHEN - NULLIF ( - COUNT ( * ), - COUNT ( * ) * - 70 * - 39 ) THEN NULL ELSE NULL END ), + 49 AS col2
----
-1280
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL - - NULLIF ( - 70, + 66 * 75 * + 17 + - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - - NULLIF ( - 70, + 66 * 75 * + 17 + - COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT CASE + 0 WHEN - 69 - 60 THEN + 14 * + - 74 * - 30 / + - COUNT( * ) END / 75 * NULLIF ( - 84, - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT CASE + 0 WHEN - 69 - 60 THEN + 14 * + - 74 * - 30 / + - COUNT ( * ) END / 75 * NULLIF ( - 84, - 17 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT 78 * + MIN( + + 30 )
----
2340

skipif mysql # not compatible
query I rowsort label-3265
SELECT 78 * + MIN ( + + 30 )
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT 14 * - 74 * - COUNT( * ) * + 50 col2
----
51800

skipif mysql # not compatible
query I rowsort label-3266
SELECT 14 * - 74 * - COUNT ( * ) * + 50 col2
----
51800

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT + NULLIF ( + + MIN( ALL 76 ), + + 93 ) * + 96 + COUNT( 61 ) AS col1
----
7297

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + NULLIF ( + + MIN ( ALL 76 ), + + 93 ) * + 96 + COUNT ( 61 ) AS col1
----
7297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT MAX( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3269
SELECT MAX ( 44 ) AS col0
----
44

query I rowsort
SELECT ALL 16 + + + 35 - 70 * + 5
----
-299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT 35 * 55 * - 60 - - CAST( + 61 AS SIGNED ) + + + 8 + - 5
----
-115436

skipif mysql # not compatible
query I rowsort label-3271
SELECT 35 * 55 * - 60 - - CAST ( + 61 AS INTEGER ) + + + 8 + - 5
----
-115436

query I rowsort
SELECT ALL - 98 + - - COALESCE ( 27, - - 18 ) * + 26
----
604

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT ALL + 42 AS col0, + 27 + + COUNT( * ) + - 87 AS col1
----
42
-59

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL + 42 AS col0, + 27 + + COUNT ( * ) + - 87 AS col1
----
42
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT 45 + 10 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT 45 + 10 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3275
SELECT ALL CAST( NULL AS DECIMAL ) + + - 35 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL CAST ( NULL AS REAL ) + + - 35 * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL MIN( - 62 ) * - - 54
----
-3348

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL MIN ( - 62 ) * - - 54
----
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT MIN( - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-3277
SELECT MIN ( - + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL SUM( DISTINCT - 4 ) + + - COUNT( * ) - + 55 * - 74 AS col2
----
4065

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL SUM ( DISTINCT - 4 ) + + - COUNT ( * ) - + 55 * - 74 AS col2
----
4065

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL - 72 + 86 + + COUNT( * ) * + 32 * + 57
----
1838

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - 72 + 86 + + COUNT ( * ) * + 32 * + 57
----
1838

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + 68 - + 93 * - COUNT( * ) col2
----
161

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 68 - + 93 * - COUNT ( * ) col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL NULLIF ( - 37, - - 7 * + ( - + COUNT( * ) ) ) * COUNT( - 29 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL NULLIF ( - 37, - - 7 * + ( - + COUNT ( * ) ) ) * COUNT ( - 29 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT + 39 + 6 AS col0, 18 + COUNT( * ) + - 51 * + - 50 AS col2
----
45
2569

skipif mysql # not compatible
query II rowsort label-3282
SELECT + 39 + 6 AS col0, 18 + COUNT ( * ) + - 51 * + - 50 AS col2
----
45
2569

query I rowsort
SELECT + 56 * - + 96 AS col2
----
-5376

query I rowsort
SELECT + 32 + + - 57 + - 77
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT - 18 AS col1, ( - - COUNT( * ) ) * - 37 * - - 90
----
-18
-3330

skipif mysql # not compatible
query II rowsort label-3285
SELECT - 18 AS col1, ( - - COUNT ( * ) ) * - 37 * - - 90
----
-18
-3330

onlyif mysql # DIV for integer division: 
query II rowsort label-3286
SELECT DISTINCT 82, 86 + + COALESCE ( 70, - 27 DIV 40 + 18 ) AS col0
----
82
156

skipif mysql # not compatible
query II rowsort label-3286
SELECT DISTINCT 82, 86 + + COALESCE ( 70, - 27 / 40 + 18 ) AS col0
----
82
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + MAX( + 37 ) * 52 AS col0
----
1924

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + MAX ( + 37 ) * 52 AS col0
----
1924

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3288
SELECT ALL - ( + - CAST( - ( - 67 ) AS SIGNED ) ) DIV - + ( + 52 ) AS col2, 33
----
-1
33

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL - ( + - CAST ( - ( - 67 ) AS INTEGER ) ) / - + ( + 52 ) AS col2, 33
----
-1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3289
SELECT ALL - 44, 49 * - + CAST( NULL AS SIGNED ) / + 65 * + + ( ( COUNT( * ) ) ) + 77 AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL - 44, 49 * - + CAST ( NULL AS INTEGER ) / + 65 * + + ( ( COUNT ( * ) ) ) + 77 AS col1
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + MIN( ALL 76 ) * - 53
----
-4028

skipif mysql # not compatible
query I rowsort label-3290
SELECT + MIN ( ALL 76 ) * - 53
----
-4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT - COUNT( - + CAST( NULL AS SIGNED ) ) + - - 9 + 98 + - 21 - + 3 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3291
SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) ) + - - 9 + 98 + - 21 - + 3 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT - 5 AS col2, 30 - 4 + + COUNT( * )
----
-5
27

skipif mysql # not compatible
query II rowsort label-3292
SELECT - 5 AS col2, 30 - 4 + + COUNT ( * )
----
-5
27

query II rowsort
SELECT DISTINCT + 21, 11 * - + 24 * 1 AS col0
----
21
-264

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3295
SELECT DISTINCT + CAST( SUM( + + 36 ) AS SIGNED ) * - - 24 + + 63 + 80 * COUNT( * ) AS col1, 15 + + 87 AS col0
----
1007
102

skipif mysql # not compatible
query II rowsort label-3295
SELECT DISTINCT + CAST ( SUM ( + + 36 ) AS INTEGER ) * - - 24 + + 63 + 80 * COUNT ( * ) AS col1, 15 + + 87 AS col0
----
1007
102

query I rowsort
SELECT DISTINCT + + 96 col2
----
96

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

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

query I rowsort
SELECT - + 29 * 63
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + ( CASE - 29 WHEN + SUM( + + 61 ) THEN NULL ELSE - 94 END )
----
-94

skipif mysql # not compatible
query I rowsort label-3299
SELECT + ( CASE - 29 WHEN + SUM ( + + 61 ) THEN NULL ELSE - 94 END )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3300
SELECT DISTINCT 87 * + CAST( NULL AS SIGNED ) * 39 + MIN( + - 37 ) + + 33, CAST( NULL AS DECIMAL ) / - CASE + AVG ( DISTINCT + ( - - 47 ) ) WHEN - - 21 THEN COUNT( * ) WHEN - 69 * + 81 * 50 + 49 THEN - - 12 ELSE - 38 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT 87 * + CAST ( NULL AS INTEGER ) * 39 + MIN ( + - 37 ) + + 33, CAST ( NULL AS REAL ) / - CASE + AVG ( DISTINCT + ( - - 47 ) ) WHEN - - 21 THEN COUNT ( * ) WHEN - 69 * + 81 * 50 + 49 THEN - - 12 ELSE - 38 END AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL + 75 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 75 / 57
----
1

query I rowsort
SELECT - 58 + + ( - - 37 ) AS col0
----
-21

query I rowsort
SELECT ALL - 74 * + 94 + + - 66
----
-7022

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT + CASE 49 WHEN - COUNT( * ) * 32 * - + 17 * + ( + ( 25 ) ) THEN 90 * 35 END, MAX( - 73 ) AS col0
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3304
SELECT + CASE 49 WHEN - COUNT ( * ) * 32 * - + 17 * + ( + ( 25 ) ) THEN 90 * 35 END, MAX ( - 73 ) AS col0
----
NULL
-73

query I rowsort
SELECT - 22 + 95 AS col2
----
73

query III rowsort
SELECT DISTINCT + 58 * - 15 col1, 47 * 45 * - + 64, 80 AS col1
----
-870
-135360
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + MAX( DISTINCT + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3307
SELECT + MAX ( DISTINCT + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL + COALESCE ( + CASE + 85 WHEN + 94 * - ( - 35 ) THEN NULL WHEN 96 THEN + 60 END, + 22, - COUNT( * ) ) * 22 col2
----
484

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + COALESCE ( + CASE + 85 WHEN + 94 * - ( - 35 ) THEN NULL WHEN 96 THEN + 60 END, + 22, - COUNT ( * ) ) * 22 col2
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT NULLIF ( 17, + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-3309
SELECT NULLIF ( 17, + COUNT ( * ) )
----
17

query I rowsort
SELECT - 26 * 41 + + 22
----
-1044

query I rowsort
SELECT + 45 + - 70
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3312
SELECT NULLIF ( CAST( + - 72 AS SIGNED ), + COUNT( * ) * + CAST( NULL AS DECIMAL ) + + AVG ( 35 ) + - + COUNT( 95 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3312
SELECT NULLIF ( CAST ( + - 72 AS INTEGER ), + COUNT ( * ) * + CAST ( NULL AS REAL ) + + AVG ( 35 ) + - + COUNT ( 95 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + MAX( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3313
SELECT + MAX ( - 33 )
----
-33

query I rowsort
SELECT - 33 * 12 AS col0
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL CAST( - + 91 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL CAST ( - + 91 AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - CASE 55 WHEN + 13 - - - ( - + 66 ) * + 9 + 31 - 62 * COUNT( - 13 ) * - 35 + - + 88 THEN NULL ELSE - 95 - + COUNT( * ) END
----
96

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - CASE 55 WHEN + 13 - - - ( - + 66 ) * + 9 + 31 - 62 * COUNT ( - 13 ) * - 35 + - + 88 THEN NULL ELSE - 95 - + COUNT ( * ) END
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + ( CASE 49 WHEN - 39 * + 15 + - CASE 45 WHEN - COUNT( * ) THEN - COUNT( * ) ELSE NULL END / - NULLIF ( - COALESCE ( + + 74, 42 * - - 31 + - 95, - - 80 * 44 + + 54 ), - 78 ) * 87 * - SUM( - NULLIF ( 78, + 81 + - + 40 ) ) * - 62 / 2 * - - 49 + - + 73 * - 34 THEN - 3 * - 14 * + + 67 - + 68 - MAX( DISTINCT - 6 ) + - NULLIF ( - - ( + - 88 ), + 51 / - - 38 / - 60 + - NULLIF ( CASE + 33 WHEN + 83 THEN 87 ELSE + 89 END, - 14 * - 37 ) ) END ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT + ( CASE 49 WHEN - 39 * + 15 + - CASE 45 WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END / - NULLIF ( - COALESCE ( + + 74, 42 * - - 31 + - 95, - - 80 * 44 + + 54 ), - 78 ) * 87 * - SUM ( - NULLIF ( 78, + 81 + - + 40 ) ) * - 62 / 2 * - - 49 + - + 73 * - 34 THEN - 3 * - 14 * + + 67 - + 68 - MAX ( DISTINCT - 6 ) + - NULLIF ( - - ( + - 88 ), + 51 / - - 38 / - 60 + - NULLIF ( CASE + 33 WHEN + 83 THEN 87 ELSE + 89 END, - 14 * - 37 ) ) END ) * 12
----
NULL

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

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

query II rowsort
SELECT + - 2 * + 47 AS col2, 70
----
-94
70

query I rowsort
SELECT + 52 - - 9 * - 50
----
-398

query I rowsort
SELECT ALL 92 * + + 39 + + 99 + + 21
----
3708

query I rowsort
SELECT + + 50 - 94 * 87
----
-8128

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT DISTINCT + SUM( ALL + - 19 ) AS col0, 13 + 72 - - 53
----
-19
138

skipif mysql # not compatible
query II rowsort label-3323
SELECT DISTINCT + SUM ( ALL + - 19 ) AS col0, 13 + 72 - - 53
----
-19
138

query I rowsort
SELECT DISTINCT ( NULLIF ( 44, 45 ) ) + - 10 * 53 AS col2
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT - + COUNT( - 81 ) + - 55
----
-56

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT - + COUNT ( - 81 ) + - 55
----
-56

query I rowsort
SELECT + 77 * + 49 * + 58 * - 37 col2
----
-8096858

query I rowsort
SELECT + 82 + + 77
----
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3328
SELECT - 52 - - + 8 + 21 + - 84 + - + MIN( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 52 - - + 8 + 21 + - 84 + - + MIN ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 60 + + 73 * 15
----
1155

query I rowsort
SELECT ALL + 71 + - 58 AS col2
----
13

query I rowsort
SELECT ALL - ( - + 53 ) + - COALESCE ( + 95, - 93 ) AS col0
----
-42

query II rowsort
SELECT DISTINCT 70 + + 94 * + 11 AS col1, + 8
----
1104
8

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT ALL 63 + + CAST( - 65 AS SIGNED ) AS col2, + 26 AS col1
----
-2
26

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL 63 + + CAST ( - 65 AS INTEGER ) AS col2, + 26 AS col1
----
-2
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3337
SELECT ALL - CAST( + - 88 AS SIGNED ) + - 85, - 62 AS col2, - 51 * MIN( ALL + + 54 ) col1
----
3
-62
-2754

skipif mysql # not compatible
query III rowsort label-3337
SELECT ALL - CAST ( + - 88 AS INTEGER ) + - 85, - 62 AS col2, - 51 * MIN ( ALL + + 54 ) col1
----
3
-62
-2754

query I rowsort
SELECT 32 * + 87
----
2784

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3340
SELECT COUNT( * ) DIV + + 20 * - 47 * 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT COUNT ( * ) / + + 20 * - 47 * 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL - MAX( ALL + 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - MAX ( ALL + 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT + CAST( NULL AS SIGNED ) / NULLIF ( + 61, - - COALESCE ( 0, - 40 - + NULLIF ( + + NULLIF ( - COUNT( DISTINCT + 31 ), + COUNT( * ) ), - 80 * + + 98 / + 5 ) + - 48 / - 47 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / NULLIF ( + 61, - - COALESCE ( 0, - 40 - + NULLIF ( + + NULLIF ( - COUNT ( DISTINCT + 31 ), + COUNT ( * ) ), - 80 * + + 98 / + 5 ) + - 48 / - 47 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT 22 * 67 * - 96, + 66 * + COUNT( * ) * + 44 * - ( + 69 ) col1
----
-141504
-200376

skipif mysql # not compatible
query II rowsort label-3343
SELECT 22 * 67 * - 96, + 66 * + COUNT ( * ) * + 44 * - ( + 69 ) col1
----
-141504
-200376

query I rowsort
SELECT ALL - 9 * + 32
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT 29 - + - COALESCE ( + 93, + 75, MAX( DISTINCT + - 17 ) )
----
122

skipif mysql # not compatible
query I rowsort label-3345
SELECT 29 - + - COALESCE ( + 93, + 75, MAX ( DISTINCT + - 17 ) )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT 90 ), - 57 ) * 26 + - 3 AS col0
----
2337

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT 90 ), - 57 ) * 26 + - 3 AS col0
----
2337

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT DISTINCT - COUNT( * ) DIV - MAX( - 97 ) AS col2, 90
----
0
90

skipif mysql # not compatible
query II rowsort label-3347
SELECT DISTINCT - COUNT ( * ) / - MAX ( - 97 ) AS col2, 90
----
0
90

query I rowsort
SELECT DISTINCT + 36 * 80 * + - 52
----
-149760

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT - MAX( ALL - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - MAX ( ALL - 13 ) AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3351
SELECT DISTINCT - CASE - - 69 WHEN + 11 - - + COUNT( * ) THEN NULL WHEN - 15 DIV 49 * + CAST( NULL AS SIGNED ) THEN - 5 END, 55 * + 27 DIV - COUNT( * ) AS col2
----
NULL
-1485

skipif mysql # not compatible
query II rowsort label-3351
SELECT DISTINCT - CASE - - 69 WHEN + 11 - - + COUNT ( * ) THEN NULL WHEN - 15 / 49 * + CAST ( NULL AS INTEGER ) THEN - 5 END, 55 * + 27 / - COUNT ( * ) AS col2
----
NULL
-1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT - CAST( 56 AS SIGNED ) - + + SUM( ALL + + 12 )
----
-68

skipif mysql # not compatible
query I rowsort label-3352
SELECT - CAST ( 56 AS INTEGER ) - + + SUM ( ALL + + 12 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT COUNT( * ) * ( 13 ) + 51 - + 4 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3353
SELECT COUNT ( * ) * ( 13 ) + 51 - + 4 AS col2
----
60

query I rowsort
SELECT - - NULLIF ( - 86, + CASE - 61 WHEN + + 50 THEN - COALESCE ( - 36, + - 92 ) + 75 WHEN + - 90 THEN NULL END ) AS col1
----
-86

query I rowsort
SELECT 15 * - 93 * 3 col2
----
-4185

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL 26 * - - CASE - 80 WHEN - + 97 * 83 THEN - 9 / + 2 + + COUNT( * ) + + 52 + 83 WHEN + 15 - - - 34 + - 33 THEN - + CAST( + + 47 AS SIGNED ) ELSE NULL END * 70 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL 26 * - - CASE - 80 WHEN - + 97 * 83 THEN - 9 / + 2 + + COUNT ( * ) + + 52 + 83 WHEN + 15 - - - 34 + - 33 THEN - + CAST ( + + 47 AS INTEGER ) ELSE NULL END * 70 * + 6 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3360
SELECT ALL - + ( - 71 ) + - 63 + + ( - - CAST( 13 AS SIGNED ) ) AS col1, 31 col2
----
21
31

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL - + ( - 71 ) + - 63 + + ( - - CAST ( 13 AS INTEGER ) ) AS col1, 31 col2
----
21
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT DISTINCT CAST( - 48 AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT CAST ( - 48 AS INTEGER ) col1
----
-48

query I rowsort
SELECT ALL 53 + + + 76
----
129

onlyif mysql # DIV for integer division: 
query II rowsort label-3363
SELECT DISTINCT 10 * + COALESCE ( - 73, - + 66 DIV - 70 * - - 58 ), + 95 DIV + 25 AS col2
----
-730
3

skipif mysql # not compatible
query II rowsort label-3363
SELECT DISTINCT 10 * + COALESCE ( - 73, - + 66 / - 70 * - - 58 ), + 95 / + 25 AS col2
----
-730
3

query II rowsort
SELECT ALL + 58 + - - 78 * 89 * 4 AS col2, - 53
----
27826
-53

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

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

query I rowsort
SELECT NULLIF ( - + 60, 61 ) + - 81 * + 85 * - 65 * - 15 * 88 AS col0
----
-590733060

query I rowsort
SELECT DISTINCT 29 + + 38 + 40 * - 63 + 88 AS col2
----
-2365

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT ALL 93 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL 93 / + 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( * ) * - 31 * COALESCE ( - 69, + 51 ) AS col1
----
2139

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( * ) * - 31 * COALESCE ( - 69, + 51 ) AS col1
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT ALL 57 DIV SUM( ALL 66 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 57 / SUM ( ALL 66 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT MAX( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3371
SELECT MAX ( - - 30 ) AS col2
----
30

query II rowsort
SELECT 39 + - 21, - 25 AS col0
----
18
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT 48 + + 38 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3374
SELECT 48 + + 38 * + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT 13 * - 13 * - 55 + - 12 + 33 * - CAST( NULL AS SIGNED ) * - + 77 / + 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT 13 * - 13 * - 55 + - 12 + 33 * - CAST ( NULL AS INTEGER ) * - + 77 / + 87 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT 40 DIV - 52 + - 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3376
SELECT 40 / - 52 + - 11 AS col1
----
-11

query I rowsort
SELECT ALL 98 * + - 77 AS col2
----
-7546

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

skipif mysql # not compatible
query I rowsort label-3378
SELECT 38 + + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL 15 * + 19 col0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT 57 * + CAST( + + 1 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3380
SELECT 57 * + CAST ( + + 1 AS INTEGER ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT + 34 * - - CAST( + 8 AS SIGNED )
----
272

skipif mysql # not compatible
query I rowsort label-3381
SELECT + 34 * - - CAST ( + 8 AS INTEGER )
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - + CASE + 20 WHEN - + 70 THEN - - 4 * + + 43 WHEN COUNT( * ) THEN NULL ELSE NULL END / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - + CASE + 20 WHEN - + 70 THEN - - 4 * + + 43 WHEN COUNT ( * ) THEN NULL ELSE NULL END / 7
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3383
SELECT DISTINCT - COALESCE ( - 82, ( + COUNT( * ) ) ) AS col2, 62 AS col1, - COALESCE ( + 70, + 34, - 57 * + ( - - 96 ) )
----
82
62
-70

skipif mysql # not compatible
query III rowsort label-3383
SELECT DISTINCT - COALESCE ( - 82, ( + COUNT ( * ) ) ) AS col2, 62 AS col1, - COALESCE ( + 70, + 34, - 57 * + ( - - 96 ) )
----
82
62
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3384
SELECT + ( COUNT( * ) ) AS col2, - 76 DIV - 89 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3384
SELECT + ( COUNT ( * ) ) AS col2, - 76 / - 89 AS col0
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT ALL - 19 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 19 / - 59 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT 32 * - - NULLIF ( - COUNT( * ), + 33 * CASE 99 WHEN 12 + - - 78 + - - 76 THEN + - 51 * + + 5 ELSE NULL END + 67 + - 6 + + CAST( COUNT( * ) AS SIGNED ) * + 93 * + + 88 + - 39 )
----
-32

skipif mysql # not compatible
query I rowsort label-3386
SELECT 32 * - - NULLIF ( - COUNT ( * ), + 33 * CASE 99 WHEN 12 + - - 78 + - - 76 THEN + - 51 * + + 5 ELSE NULL END + 67 + - 6 + + CAST ( COUNT ( * ) AS INTEGER ) * + 93 * + + 88 + - 39 )
----
-32

query I rowsort
SELECT ALL - + 93 + - 55
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3388
SELECT ALL + 39 + NULLIF ( + COUNT( * ), 79 - - 11 / SUM( ALL 7 ) ), - CAST( + 82 AS SIGNED ) * + MAX( + 42 ) + 24 * - ( - 23 ) AS col1
----
40
-2892

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL + 39 + NULLIF ( + COUNT ( * ), 79 - - 11 / SUM ( ALL 7 ) ), - CAST ( + 82 AS INTEGER ) * + MAX ( + 42 ) + 24 * - ( - 23 ) AS col1
----
40
-2892

onlyif mysql # aggregate syntax: 
query III rowsort label-3389
SELECT DISTINCT - 80 + + ( + 49 ) * 67 AS col1, 26 * ( 78 ), - 8 - - COALESCE ( - 22, - COUNT( * ) ) * - 31 AS col2
----
3203
2028
674

skipif mysql # not compatible
query III rowsort label-3389
SELECT DISTINCT - 80 + + ( + 49 ) * 67 AS col1, 26 * ( 78 ), - 8 - - COALESCE ( - 22, - COUNT ( * ) ) * - 31 AS col2
----
3203
2028
674

query I rowsort
SELECT ALL + 47 + + 11
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2, 68 + 0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3391
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2, 68 + 0
----
NULL
68

query I rowsort
SELECT ALL + 87 + + 37
----
124

query I rowsort
SELECT - CASE 33 WHEN 1 THEN + - 98 END - - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL + NULLIF ( + 33, ( - 84 ) * 22 ) - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + NULLIF ( + 33, ( - 84 ) * 22 ) - - COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT 52 * + ( + 27 )
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3396
SELECT DISTINCT CASE + 33 WHEN - 33 - ( + 42 ) THEN NULL WHEN - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + 77 * - 42 THEN 90 + - 46 ELSE - + 98 * + + ( - COALESCE ( - 0, - COALESCE ( + 28, - - 34 ), 31 ) ) DIV - COALESCE ( - 78, 43 ) + - 93 - COUNT( * ) DIV + + 1 - - 20 + COUNT( * ) + 19 * 30 END
----
497

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT CASE + 33 WHEN - 33 - ( + 42 ) THEN NULL WHEN - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 77 * - 42 THEN 90 + - 46 ELSE - + 98 * + + ( - COALESCE ( - 0, - COALESCE ( + 28, - - 34 ), 31 ) ) / - COALESCE ( - 78, 43 ) + - 93 - COUNT ( * ) / + + 1 - - 20 + COUNT ( * ) + 19 * 30 END
----
497

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

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL CAST ( NULL AS INTEGER ) - + - 6 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 78 AS col2, - 43
----
78
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT 16 * MIN( + 87 )
----
1392

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT 16 * MIN ( + 87 )
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + 28 - + 11 * COUNT( * ) + 53 * + 57 * + + 81 * COUNT( * ) AS col2
----
244718

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 28 - + 11 * COUNT ( * ) + 53 * + 57 * + + 81 * COUNT ( * ) AS col2
----
244718

query II rowsort
SELECT - NULLIF ( + + 62, 9 ), NULLIF ( - NULLIF ( - + 87, + + 29 ), + 27 ) AS col1
----
-62
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + MAX( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3403
SELECT + MAX ( - 26 )
----
-26

query I rowsort
SELECT ( 91 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT + 92 DIV - - 38 col0
----
2

skipif mysql # not compatible
query I rowsort label-3405
SELECT + 92 / - - 38 col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT + COUNT( - ( 23 ) ) + - 39 * 48 DIV - + 34 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3406
SELECT + COUNT ( - ( 23 ) ) + - 39 * 48 / - + 34 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3407
SELECT ALL + 77 AS col2, - 87 * + + CASE + - COUNT( * ) WHEN - MAX( DISTINCT + ( - 41 ) ) + + ( - 2 ) + 73 * + 89 * + CAST( CASE 9 WHEN + + COUNT( * ) - + - COUNT( ALL - ( 79 ) ) THEN + + 97 * - 88 END AS SIGNED ) THEN 73 + + NULLIF ( + - 13, + 11 ) * - 95 END AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL + 77 AS col2, - 87 * + + CASE + - COUNT ( * ) WHEN - MAX ( DISTINCT + ( - 41 ) ) + + ( - 2 ) + 73 * + 89 * + CAST ( CASE 9 WHEN + + COUNT ( * ) - + - COUNT ( ALL - ( 79 ) ) THEN + + 97 * - 88 END AS INTEGER ) THEN 73 + + NULLIF ( + - 13, + 11 ) * - 95 END AS col1
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT CASE 47 WHEN COUNT( * ) / - 35 THEN + COALESCE ( - 3, 49 / CAST( NULL AS SIGNED ) * - CAST( + + 92 AS SIGNED ), + - 39 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT CASE 47 WHEN COUNT ( * ) / - 35 THEN + COALESCE ( - 3, 49 / CAST ( NULL AS INTEGER ) * - CAST ( + + 92 AS INTEGER ), + - 39 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT CASE - + 83 WHEN 55 THEN + 41 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + ( MIN( ALL - 27 ) ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-3410
SELECT + ( MIN ( ALL - 27 ) ) col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT 82 / - - 81 * + 68 + + CAST( NULL AS SIGNED ) * - + MIN( DISTINCT + - 63 ) + - SUM( - 68 ) - - - ( + 8 ) - - CAST( - 61 AS SIGNED ) * - MAX( - - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT 82 / - - 81 * + 68 + + CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT + - 63 ) + - SUM ( - 68 ) - - - ( + 8 ) - - CAST ( - 61 AS INTEGER ) * - MAX ( - - 91 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3414
SELECT - COALESCE ( - + COALESCE ( + 25, - 54 + - 54, + 54 + - 0 ), 61 + + 47 ) DIV - 33 AS col0, + 92
----
0
92

skipif mysql # not compatible
query II rowsort label-3414
SELECT - COALESCE ( - + COALESCE ( + 25, - 54 + - 54, + 54 + - 0 ), 61 + + 47 ) / - 33 AS col0, + 92
----
0
92

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + MIN( + - 44 ) * 12 * 32 * MIN( ALL 34 ) + 49 - + 34 AS col0
----
-574449

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + MIN ( + - 44 ) * 12 * 32 * MIN ( ALL 34 ) + 49 - + 34 AS col0
----
-574449

query I rowsort
SELECT + 62 * 8 + - 60 + + 6
----
442

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3419
SELECT + + SUM( - 98 ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT + + SUM ( - 98 ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3420
SELECT DISTINCT 47 * 5 * + - ( - 39 ) * 19 + + 88 AS col0, 80 * CAST( - COUNT( * ) AS SIGNED ) + + 3 AS col2
----
174223
-77

skipif mysql # not compatible
query II rowsort label-3420
SELECT DISTINCT 47 * 5 * + - ( - 39 ) * 19 + + 88 AS col0, 80 * CAST ( - COUNT ( * ) AS INTEGER ) + + 3 AS col2
----
174223
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - ( - NULLIF ( 10, ( SUM( - 94 ) ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3421
SELECT - ( - NULLIF ( 10, ( SUM ( - 94 ) ) ) ) AS col2
----
10

query I rowsort
SELECT - COALESCE ( ( 70 ), 84 )
----
-70

query I rowsort
SELECT - 86 * 17 + 17
----
-1445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT + + NULLIF ( + + 72, + COUNT( * ) + + - 51 * + 55 ) DIV + 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + + NULLIF ( + + 72, + COUNT ( * ) + + - 51 * + 55 ) / + 69 AS col0
----
1

query I rowsort
SELECT - 71 + + + 35 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT DISTINCT + 13 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + 13 / - 72
----
0

query I rowsort
SELECT DISTINCT + + 40 - - 91 col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT + MAX( ALL + 78 ) * 66
----
5148

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + MAX ( ALL + 78 ) * 66
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + NULLIF ( + COUNT( * ), 23 * + 66 + 50 ) * - 53 + + - 55 col0
----
-108

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + NULLIF ( + COUNT ( * ), 23 * + 66 + 50 ) * - 53 + + - 55 col0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT ALL - 58 * + 52, COUNT( ALL + 64 ) AS col0
----
-3016
1

skipif mysql # not compatible
query II rowsort label-3430
SELECT ALL - 58 * + 52, COUNT ( ALL + 64 ) AS col0
----
-3016
1

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

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

query I rowsort
SELECT - 64 + - ( - - 90 )
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT - COUNT( * ) + + + CAST( + 9 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3433
SELECT - COUNT ( * ) + + + CAST ( + 9 AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT - 40 * - ( - + SUM( DISTINCT - + ( + - 2 ) ) ) * 70, - 88 AS col0
----
-5600
-88

skipif mysql # not compatible
query II rowsort label-3434
SELECT - 40 * - ( - + SUM ( DISTINCT - + ( + - 2 ) ) ) * 70, - 88 AS col0
----
-5600
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - COUNT( * ) * 88 * + 20 AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-3435
SELECT - COUNT ( * ) * 88 * + 20 AS col1
----
-1760

query II rowsort
SELECT + 5 + + COALESCE ( - 51, - 18 ) AS col1, + 61 * + 2 * 78 AS col2
----
-46
9516

query I rowsort
SELECT - 16 * - 2
----
32

query I rowsort
SELECT + 22 * 25 AS col1
----
550

query II rowsort
SELECT 29 AS col0, 54
----
29
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - COUNT( * ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-3440
SELECT - COUNT ( * ) + - 88
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3441
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT 98 * - - 33 * COUNT( * )
----
3234

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT 98 * - - 33 * COUNT ( * )
----
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3443
SELECT DISTINCT - ( - 57 ) DIV 46 + + 65 * + NULLIF ( - ( - 32 ), - COALESCE ( 28, 10, - 66 ) ) + + 39 + + NULLIF ( + + COUNT( DISTINCT - 96 ), + 1 + 15 + - 56 ) col0
----
2121

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT - ( - 57 ) / 46 + + 65 * + NULLIF ( - ( - 32 ), - COALESCE ( 28, 10, - 66 ) ) + + 39 + + NULLIF ( + + COUNT ( DISTINCT - 96 ), + 1 + 15 + - 56 ) col0
----
2121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT NULLIF ( + 76, - - 99 ) DIV + 98 * - - 77 + - - 64 + + + 93 + + + COUNT( * ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT NULLIF ( + 76, - - 99 ) / + 98 * - - 77 + - - 64 + + + 93 + + + COUNT ( * ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + 32 + + - NULLIF ( - + COUNT( * ), + + 14 * 35 )
----
33

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 32 + + - NULLIF ( - + COUNT ( * ), + + 14 * 35 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT DISTINCT - - 44 DIV 14 * 40 * + COUNT( * ) + + 47 + COUNT( DISTINCT 73 ) - + 88 - + + NULLIF ( - - 37, - COUNT( DISTINCT 14 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - - 44 / 14 * 40 * + COUNT ( * ) + + 47 + COUNT ( DISTINCT 73 ) - + 88 - + + NULLIF ( - - 37, - COUNT ( DISTINCT 14 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + SUM( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3447
SELECT + SUM ( - 85 ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT ALL 14 DIV - 85 + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 14 / - 85 + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT + - CASE - ( + ( NULLIF ( - + 75, + 51 ) ) ) WHEN - 35 THEN + + ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + - CASE - ( + ( NULLIF ( - + 75, + 51 ) ) ) WHEN - 35 THEN + + ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3450
SELECT ALL + + 36 DIV - COUNT( * ) + - 58 + - 42 DIV - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + + 36 / - COUNT ( * ) + - 58 + - 42 / - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3451
SELECT DISTINCT - 53 + + + COUNT( * ) * AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1, - 80 * + 32
----
NULL
-2560

skipif mysql # not compatible
query II rowsort label-3451
SELECT DISTINCT - 53 + + + COUNT ( * ) * AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1, - 80 * + 32
----
NULL
-2560

query I rowsort
SELECT + 80 * 41 * + 9 AS col1
----
29520

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT + COUNT( + + ( - 42 ) ) + 77 * + 65 * - + 34 + + - 20
----
-170189

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + COUNT ( + + ( - 42 ) ) + 77 * + 65 * - + 34 + + - 20
----
-170189

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL ( + + 44 ) + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL ( + + 44 ) + COUNT ( * )
----
45

query I rowsort
SELECT + 28 * + 19 AS col0
----
532

query I rowsort
SELECT - 2 + - 85
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT MIN( - - 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-3457
SELECT MIN ( - - 91 ) col0
----
91

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

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

query I rowsort
SELECT ALL - 95 * + - NULLIF ( + + 67, + 49 ) col0
----
6365

query I rowsort
SELECT ALL - 84 - + + 71
----
-155

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN - 73 THEN NULL ELSE + 20 * + 85 * ( CASE MIN( - 58 ) WHEN - 71 DIV - + 26 - + ( - NULLIF ( - 16, - 26 ) ) - + 28 DIV - - 95 * 80 THEN NULL ELSE 27 + - 56 END ) + + - COUNT( * ) + 70 + + 33 DIV - - 97 END
----
-49231

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN - 73 THEN NULL ELSE + 20 * + 85 * ( CASE MIN ( - 58 ) WHEN - 71 / - + 26 - + ( - NULLIF ( - 16, - 26 ) ) - + 28 / - - 95 * 80 THEN NULL ELSE 27 + - 56 END ) + + - COUNT ( * ) + 70 + + 33 / - - 97 END
----
-49231

query I rowsort
SELECT COALESCE ( - 23, - 71 ) * - 45 AS col2
----
1035

query I rowsort
SELECT 7 + + ( - 87 )
----
-80

query I rowsort
SELECT 48 + - ( - 82 ) * - 3 + + + NULLIF ( 71, - 51 / - + 72 * + - 54 )
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3466
SELECT ( + - 35 ) DIV + - COALESCE ( + - 29, + COUNT( * ) ) + + COALESCE ( 61, - COALESCE ( - 54, - + COUNT( * ) ) + 40 * + CASE 73 WHEN 97 + - 34 THEN NULL ELSE + + 76 + 37 * + COUNT( * ) + - + MIN( ALL + 30 ) END ) * - NULLIF ( - 59, - - 31 DIV + - 38 ) * + 5 + + + 27 + 96 * 6
----
18597

skipif mysql # not compatible
query I rowsort label-3466
SELECT ( + - 35 ) / + - COALESCE ( + - 29, + COUNT ( * ) ) + + COALESCE ( 61, - COALESCE ( - 54, - + COUNT ( * ) ) + 40 * + CASE 73 WHEN 97 + - 34 THEN NULL ELSE + + 76 + 37 * + COUNT ( * ) + - + MIN ( ALL + 30 ) END ) * - NULLIF ( - 59, - - 31 / + - 38 ) * + 5 + + + 27 + 96 * 6
----
18597

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3467
SELECT 58 * MIN( - NULLIF ( - CAST( NULL AS DECIMAL ), + + ( - 69 ) / + + 79 + - 44 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT 58 * MIN ( - NULLIF ( - CAST ( NULL AS REAL ), + + ( - 69 ) / + + 79 + - 44 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 81 * - - 37 AS col1
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT ALL ( - 79 ) DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL ( - 79 ) / + + 98
----
0

query I rowsort
SELECT ALL + 54 * - - 42
----
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT 48 DIV - + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT 48 / - + 91 AS col0
----
0

query I rowsort
SELECT ALL - ( 13 ) + - - 63 + + 16 - 64
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MIN( DISTINCT 91 ) * - 79
----
-7189

skipif mysql # not compatible
query I rowsort label-3473
SELECT MIN ( DISTINCT 91 ) * - 79
----
-7189

query I rowsort
SELECT DISTINCT - 46 + - 2 + 81 * 46 AS col2
----
3678

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT CAST( + 65 AS SIGNED ) * + 18 * + 8 - 35 AS col1
----
9325

skipif mysql # not compatible
query I rowsort label-3476
SELECT CAST ( + 65 AS INTEGER ) * + 18 * + 8 - 35 AS col1
----
9325

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT - COALESCE ( - 83, + - COUNT( * ) + 58 * + + 49, + + COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - COALESCE ( - 83, + - COUNT ( * ) + 58 * + + 49, + + COUNT ( * ) ) AS col2
----
83

query I rowsort
SELECT ALL + 65 + - 38 * + + 79 + CASE 6 WHEN - 67 * + 34 THEN - 24 END AS col2
----
NULL

query I rowsort
SELECT 73 * - + 47 AS col1
----
-3431

query I rowsort
SELECT ALL - - 86 + 77 + 90 AS col0
----
253

query I rowsort
SELECT ALL 81 * - 15 + 17 * - 37 AS col2
----
-1844

query I rowsort
SELECT ALL 90 + + 70
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + MAX( ALL 52 ) * + - 76 AS col1
----
-3952

skipif mysql # not compatible
query I rowsort label-3483
SELECT + MAX ( ALL 52 ) * + - 76 AS col1
----
-3952

query I rowsort
SELECT DISTINCT + - 74 * - - 28
----
-2072

query I rowsort
SELECT ALL - 49 - 20 * + 5 * 7 AS col2
----
-749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT + 17 + + - 60 - - CAST( + 61 AS SIGNED ) + - 42 * + - 75
----
3168

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 17 + + - 60 - - CAST ( + 61 AS INTEGER ) + - 42 * + - 75
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT + MIN( DISTINCT CAST( + 98 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-3487
SELECT + MIN ( DISTINCT CAST ( + 98 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + COUNT( * ) + + + 36 * 3 - - COUNT( * ) * - - 80 + + 15 AS col0
----
204

skipif mysql # not compatible
query I rowsort label-3488
SELECT + COUNT ( * ) + + + 36 * 3 - - COUNT ( * ) * - - 80 + + 15 AS col0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT MAX( ALL 90 ) + - 32
----
58

skipif mysql # not compatible
query I rowsort label-3489
SELECT MAX ( ALL 90 ) + - 32
----
58

query I rowsort
SELECT ALL - 88 - + 91 + + - 58
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL + - 32 * + + 55 * - COUNT( * ) * + CAST( NULL AS SIGNED ) * + + 7 + COALESCE ( - 35, + - MAX( ALL + CASE 20 WHEN 25 * + 26 THEN NULL ELSE - - 38 END ) / - + 53 + 69 + - SUM( DISTINCT 86 ), - - NULLIF ( + 66, - 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + - 32 * + + 55 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + 7 + COALESCE ( - 35, + - MAX ( ALL + CASE 20 WHEN 25 * + 26 THEN NULL ELSE - - 38 END ) / - + 53 + 69 + - SUM ( DISTINCT 86 ), - - NULLIF ( + 66, - 15 ) )
----
NULL

query I rowsort
SELECT - 15 * - 56 + - - 85 AS col0
----
925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3493
SELECT - MIN( + - 75 ) + + CAST( - 52 AS SIGNED ) + - 44 + 51 * - 21, SUM( - 8 ) col0
----
-1092
-8

skipif mysql # not compatible
query II rowsort label-3493
SELECT - MIN ( + - 75 ) + + CAST ( - 52 AS INTEGER ) + - 44 + 51 * - 21, SUM ( - 8 ) col0
----
-1092
-8

query I rowsort
SELECT 25 + + 23 * + + 25 + + + 46
----
646

query I rowsort
SELECT ALL - - ( - 71 ) AS col0
----
-71

query I rowsort
SELECT 58 * 99 + + 39 * - 24 * + NULLIF ( - 8, - COALESCE ( - 74, + 90 * - 99 + + - 94 ) ) AS col1
----
13230

query I rowsort
SELECT 56 - 76 * + 54 + - 2 AS col1
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT ALL - ( + CASE 98 WHEN + COUNT( DISTINCT - - 98 ) THEN NULL ELSE + - 23 + + 19 END ) DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - ( + CASE 98 WHEN + COUNT ( DISTINCT - - 98 ) THEN NULL ELSE + - 23 + + 19 END ) / - 69 AS col0
----
0

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

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

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

query I rowsort
SELECT 16 * - 14 AS col0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT 95 * - - 38 + - 58 * - - SUM( - CASE - 44 WHEN + 37 THEN - 21 END ) + + SUM( + 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT 95 * - - 38 + - 58 * - - SUM ( - CASE - 44 WHEN + 37 THEN - 21 END ) + + SUM ( + 2 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT 58 DIV 27 * - + ( + 26 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3503
SELECT 58 / 27 * - + ( + 26 ) AS col2
----
-52

query I rowsort
SELECT DISTINCT 29 * - 94 AS col1
----
-2726

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3505
SELECT COALESCE ( CAST( 3 AS SIGNED ), + - 59 ) + + 58 DIV + ( + 81 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3505
SELECT COALESCE ( CAST ( 3 AS INTEGER ), + - 59 ) + + 58 / + ( + 81 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT 41 + - 83 + 76 + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) / + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT 41 + - 83 + 76 + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) / + + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ( + + SUM( + + 61 ) ) + - - 88
----
149

skipif mysql # not compatible
query I rowsort label-3507
SELECT ( + + SUM ( + + 61 ) ) + - - 88
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - MIN( ALL - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3508
SELECT - MIN ( ALL - 15 )
----
15

query I rowsort
SELECT DISTINCT + 50 + 95 * + + 77 col1
----
7365

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - MIN( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3510
SELECT - MIN ( - 22 )
----
22

query II rowsort
SELECT 11 AS col2, - 39
----
11
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL 39 + + COUNT ( * )
----
40

query II rowsort
SELECT ALL 6, - 10 AS col0
----
6
-10

query I rowsort
SELECT DISTINCT - 15 + - - 56 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL MIN( DISTINCT + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL MIN ( DISTINCT + 33 ) AS col0
----
33

query I rowsort
SELECT 82 + - 46 col0
----
36

query II rowsort
SELECT ALL + + 74 AS col2, + 3 + + - 75 AS col1
----
74
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT 58 DIV 90 + + - COUNT( * ) + - 56 + - 97 + 61 + - ( COALESCE ( + COUNT( * ), - 70 * - - 39 * - 24 + 38 ) ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-3518
SELECT 58 / 90 + + - COUNT ( * ) + - 56 + - 97 + 61 + - ( COALESCE ( + COUNT ( * ), - 70 * - - 39 * - 24 + 38 ) ) col1
----
-94

query I rowsort
SELECT DISTINCT - 53 * 80 AS col1
----
-4240

query I rowsort
SELECT ALL + 95 * + 53
----
5035

query I rowsort
SELECT - - 14 * - + 81 * + COALESCE ( 94, + 29 ) + - 85 + - 29 AS col1
----
-106710

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT 9 * - - 56 + + + COUNT( * ) - 63
----
442

skipif mysql # not compatible
query I rowsort label-3522
SELECT 9 * - - 56 + + + COUNT ( * ) - 63
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3523
SELECT - 10 DIV + + 32 * + 9, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 10 / + + 32 * + 9, - COUNT ( * ) AS col2
----
0
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - - CASE 40 WHEN + 2 THEN + 18 * 1 / - CASE - 7 WHEN - 51 * + 71 THEN NULL WHEN 41 THEN - 35 END + + + SUM( ALL - + NULLIF ( + 83, - 22 + + 72 + - + 23 ) ) + 27 * - - 1 END * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT - - CASE 40 WHEN + 2 THEN + 18 * 1 / - CASE - 7 WHEN - 51 * + 71 THEN NULL WHEN 41 THEN - 35 END + + + SUM ( ALL - + NULLIF ( + 83, - 22 + + 72 + - + 23 ) ) + 27 * - - 1 END * 4
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 51 ) * 20 + - + 51
----
-1071

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

query I rowsort
SELECT ALL + + ( - + 94 ) col2
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-3530
SELECT 86, 94 DIV 46 * 40 AS col0
----
86
80

skipif mysql # not compatible
query II rowsort label-3530
SELECT 86, 94 / 46 * 40 AS col0
----
86
80

query I rowsort
SELECT + 82 * + 7
----
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL CASE - 78 WHEN + + 17 + - 71 THEN + CAST( NULL AS SIGNED ) * 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL CASE - 78 WHEN + + 17 + - 71 THEN + CAST ( NULL AS INTEGER ) * 77 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3533
SELECT SUM ( + - 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + AVG ( + 73 ) + - 79 - - 18 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + AVG ( + 73 ) + - 79 - - 18 + 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT DISTINCT 99 + - 93 DIV 24 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT 99 + - 93 / 24 AS col2
----
96

query I rowsort
SELECT DISTINCT 75 + + 2 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT 4 DIV 70 * 23
----
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT 4 / 70 * 23
----
0

query I rowsort
SELECT - 10 + - + 65 AS col0
----
-75

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

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

query I rowsort
SELECT DISTINCT 39 + 70 + + - ( - 69 ) - - 59
----
237

query II rowsort
SELECT ALL 98 + 46 AS col0, 11 AS col0
----
144
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3542
SELECT - MIN( + 36 ), 71 AS col0
----
-36
71

skipif mysql # not compatible
query II rowsort label-3542
SELECT - MIN ( + 36 ), 71 AS col0
----
-36
71

query I rowsort
SELECT ALL 74 + - - 36 AS col1
----
110

query I rowsort
SELECT DISTINCT 3 - - ( - + 90 )
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL 38 - + 36 + MAX( - - 43 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL 38 - + 36 + MAX ( - - 43 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - SUM( DISTINCT 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3547
SELECT - SUM ( DISTINCT 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + 20 + + MIN( + 69 )
----
89

skipif mysql # not compatible
query I rowsort label-3548
SELECT + 20 + + MIN ( + 69 )
----
89

query II rowsort
SELECT + + 29 * - 15 AS col2, - 15
----
-435
-15

query I rowsort
SELECT + - 54 - - 48 * - 81 col0
----
-3942

query I rowsort
SELECT + 99 * - + 34 AS col2
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - 69 * - 73 - - MIN( ( - 66 ) ) AS col2
----
4971

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 69 * - 73 - - MIN ( ( - 66 ) ) AS col2
----
4971

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3553
SELECT ALL + 97 * + 11 AS col2, COUNT( * ) DIV - - 38
----
1067
0

skipif mysql # not compatible
query II rowsort label-3553
SELECT ALL + 97 * + 11 AS col2, COUNT ( * ) / - - 38
----
1067
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT ALL - - ( - - CAST( NULL AS SIGNED ) ) * + + COUNT( - 30 ) * + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - - ( - - CAST ( NULL AS INTEGER ) ) * + + COUNT ( - 30 ) * + - 86 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 27 * 64 AS col0
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3556
SELECT ALL - + 64 * + + 18 + 79 + - - 95 AS col2, CAST( NULL AS SIGNED )
----
-978
NULL

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL - + 64 * + + 18 + 79 + - - 95 AS col2, CAST ( NULL AS INTEGER )
----
-978
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - MAX( - 82 ) * + 24
----
1968

skipif mysql # not compatible
query I rowsort label-3557
SELECT - MAX ( - 82 ) * + 24
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + 15 + 18 * + 77 + - - CASE 97 WHEN - COUNT( * ) THEN + ( + 56 ) * 60 * + 27 + - 90 * - 33 + + + COALESCE ( + 69, - ( + 89 ) / - 37 ) + + 81 - 17 / - 33 END + NULLIF ( + - 20, - - 82 * 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 15 + 18 * + 77 + - - CASE 97 WHEN - COUNT ( * ) THEN + ( + 56 ) * 60 * + 27 + - 90 * - 33 + + + COALESCE ( + 69, - ( + 89 ) / - 37 ) + + 81 - 17 / - 33 END + NULLIF ( + - 20, - - 82 * 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3559
SELECT ALL - + 38 * - 94 + - 77 - - + COALESCE ( + + COALESCE ( - 33, + - 8 ), - - 78 * 27 - + 86 * - 18 ) + + 81 * COUNT( * ) * COALESCE ( CAST( + - 63 AS SIGNED ), + 18, 56 * + 69 + + ( 68 ) + - 52 ) + - 96 - - - 30 DIV - 22 AS col1
----
-1736

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - + 38 * - 94 + - 77 - - + COALESCE ( + + COALESCE ( - 33, + - 8 ), - - 78 * 27 - + 86 * - 18 ) + + 81 * COUNT ( * ) * COALESCE ( CAST ( + - 63 AS INTEGER ), + 18, 56 * + 69 + + ( 68 ) + - 52 ) + - 96 - - - 30 / - 22 AS col1
----
-1736

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT - 98 DIV + + 91 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 98 / + + 91 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT ALL NULLIF ( 62, - - COALESCE ( 75, + - 59 + - COUNT( * ) ) / + COUNT( * ) - 83 ) * + 95 + - 70 AS col1, + 34 - + 98 AS col1
----
5820
-64

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL NULLIF ( 62, - - COALESCE ( 75, + - 59 + - COUNT ( * ) ) / + COUNT ( * ) - 83 ) * + 95 + - 70 AS col1, + 34 - + 98 AS col1
----
5820
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT COUNT( * ) * + 75 + 30 * - 67 AS col2
----
-1935

skipif mysql # not compatible
query I rowsort label-3563
SELECT COUNT ( * ) * + 75 + 30 * - 67 AS col2
----
-1935

query I rowsort
SELECT ALL + ( - + 59 ) * + 79 + + 54 AS col0
----
-4607

query I rowsort
SELECT ALL + 19 * - + 13 + 41 AS col0
----
-206

query I rowsort
SELECT - 34 * 9 AS col1
----
-306

query I rowsort
SELECT - 40 + + - 15
----
-55

query I rowsort
SELECT ALL - 59 * + 66 AS col2
----
-3894

query I rowsort
SELECT COALESCE ( - + 57, + + 96 ) col0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3570
SELECT CAST( - - 33 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) + + 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( - - 33 AS REAL ) * + CAST ( NULL AS REAL ) + + 39 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL COUNT( * ) * 25 / - 57 * CASE + 73 WHEN 76 THEN + + 3 * - 25 / + 11 / - 96 - + + 94 - - COUNT( * ) + - 43 + + 31 + - + 73 WHEN - + 25 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL COUNT ( * ) * 25 / - 57 * CASE + 73 WHEN 76 THEN + + 3 * - 25 / + 11 / - 96 - + + 94 - - COUNT ( * ) + - 43 + + 31 + - + 73 WHEN - + 25 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT COUNT( * ) col0, 40 * - 59 + 72 + - COUNT( * ) AS col2
----
1
-2289

skipif mysql # not compatible
query II rowsort label-3572
SELECT COUNT ( * ) col0, 40 * - 59 + 72 + - COUNT ( * ) AS col2
----
1
-2289

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL - 33 - + CASE 88 WHEN 79 THEN + COUNT( * ) * + + 8 + - - 81 WHEN 64 / + 20 - - 28 THEN - + 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - 33 - + CASE 88 WHEN 79 THEN + COUNT ( * ) * + + 8 + - - 81 WHEN 64 / + 20 - - 28 THEN - + 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3574
SELECT - SUM( ALL + 96 ) * + 11 * 93 DIV + 33 + + COALESCE ( 48, 64 * + - 26 * + - 89 + + 73 ) + - 21 * COALESCE ( - COUNT( * ), 8 ) AS col0
----
-2907

skipif mysql # not compatible
query I rowsort label-3574
SELECT - SUM ( ALL + 96 ) * + 11 * 93 / + 33 + + COALESCE ( 48, 64 * + - 26 * + - 89 + + 73 ) + - 21 * COALESCE ( - COUNT ( * ), 8 ) AS col0
----
-2907

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT DISTINCT 85 DIV - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT 85 / - - 87 AS col0
----
0

query I rowsort
SELECT ALL 44 - + - 31
----
75

query I rowsort
SELECT 63 + - 72
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ALL + 97 DIV 75 * + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + 97 / 75 * + 34 AS col2
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3580
SELECT 72 * - 57 * + 11 * - 1 / - 50 / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT 72 * - 57 * + 11 * - 1 / - 50 / - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 11 + 97 AS col1
----
108

query I rowsort
SELECT COALESCE ( 53, - 84 ) + 88 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ( NULLIF ( + 93, 34 * - 81 ) ) / + ( CASE + 85 WHEN + 23 * 21 + COUNT( * ) THEN 57 WHEN COUNT( * ) THEN - 43 ELSE NULL END + AVG ( 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT ( NULLIF ( + 93, 34 * - 81 ) ) / + ( CASE + 85 WHEN + 23 * 21 + COUNT ( * ) THEN 57 WHEN COUNT ( * ) THEN - 43 ELSE NULL END + AVG ( 79 ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT 7 + 96 * NULLIF ( - ( - 74 ) * - 38, - NULLIF ( 73, - 2 * 97 - 40 ) ) col0
----
-269945

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT 26 * MAX( - 55 ) AS col1
----
-1430

skipif mysql # not compatible
query I rowsort label-3586
SELECT 26 * MAX ( - 55 ) AS col1
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL 42 * - COALESCE ( 73, 11 + 54, + 97, - 60 * MIN( + ( - ( + 77 ) ) ) )
----
-3066

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL 42 * - COALESCE ( 73, 11 + 54, + 97, - 60 * MIN ( + ( - ( + 77 ) ) ) )
----
-3066

query I rowsort
SELECT 97 * 78
----
7566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT COUNT( ALL 44 ) + 42 DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT COUNT ( ALL 44 ) + 42 / 55 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 49 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 64 * 90 AS col1
----
5760

query I rowsort
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 38 END + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 18 + + 94 AS col1
----
112

query I rowsort
SELECT ALL - 63 + + 59
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT NULLIF ( - 45, - 86 * - 78 ) DIV 2
----
-22

skipif mysql # not compatible
query I rowsort label-3596
SELECT NULLIF ( - 45, - 86 * - 78 ) / 2
----
-22

query I rowsort
SELECT 67 * 47 AS col0
----
3149

query I rowsort
SELECT ALL 5 * - 46
----
-230

query I rowsort
SELECT DISTINCT 63 + - 95 col1
----
-32

query I rowsort
SELECT ALL 22 + + 11 * - 63 col2
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + 1 - 12 * - ( - SUM( DISTINCT 19 ) + - ( - 37 ) * 86 )
----
37957

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + 1 - 12 * - ( - SUM ( DISTINCT 19 ) + - ( - 37 ) * 86 )
----
37957

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

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 70 * - 36 - + COUNT ( * ) AS col1
----
-2521

query I rowsort
SELECT 92 * 81 AS col0
----
7452

query I rowsort
SELECT 67 * - 82 AS col1
----
-5494

query I rowsort
SELECT ALL 62 - + 53 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL - 1 - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - 1 - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 92 * + 5 AS col2
----
460

query I rowsort
SELECT 66 + 31 AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT 76 + - 14 DIV - 44 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3609
SELECT 76 + - 14 / - 44 AS col0
----
76

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

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

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

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

query I rowsort
SELECT 17 * 89
----
1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT + 74 * COALESCE ( 2 DIV 30, + 54 + - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + 74 * COALESCE ( 2 / 30, + 54 + - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT + + 98 * ( CASE + COUNT( * ) WHEN COUNT( * ) THEN - 92 END ) AS col2
----
-9016

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + + 98 * ( CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 92 END ) AS col2
----
-9016

query I rowsort
SELECT ( - 76 ) + + 36 * 44 AS col1
----
1508

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

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

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

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL COUNT ( * ) + 39 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL 47 DIV + MAX( NULLIF ( + 96, 9 * + 12 + 25 * 27 ) + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL 47 / + MAX ( NULLIF ( + 96, 9 * + 12 + 25 * 27 ) + + 73 )
----
0

query I rowsort
SELECT 87 * + 3 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + 26 * + ( COUNT( * ) * NULLIF ( 47, + 57 ) )
----
1222

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 26 * + ( COUNT ( * ) * NULLIF ( 47, + 57 ) )
----
1222

query I rowsort
SELECT + 70 * 4 AS col0
----
280

query I rowsort
SELECT ALL - 89 + - ( + 48 )
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL + 31 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 31 / + 65
----
0

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

query I rowsort
SELECT 56 * 34 col0
----
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT - 20 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT - 20 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + COUNT( * ) * - 33 + + 26 * + 96
----
2463

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + COUNT ( * ) * - 33 + + 26 * + 96
----
2463

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL CASE SUM( DISTINCT + 11 ) WHEN + 77 THEN + 65 WHEN AVG ( + 5 ) + + ( 54 + 81 ) THEN NULL ELSE NULL END * + AVG ( 25 + - 19 ) + 63 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL CASE SUM ( DISTINCT + 11 ) WHEN + 77 THEN + 65 WHEN AVG ( + 5 ) + + ( 54 + 81 ) THEN NULL ELSE NULL END * + AVG ( 25 + - 19 ) + 63 * - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + SUM( DISTINCT 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-3629
SELECT + SUM ( DISTINCT 54 ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT COUNT( * ) + - + 14 col0
----
-13

skipif mysql # not compatible
query I rowsort label-3630
SELECT COUNT ( * ) + - + 14 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT COUNT( * ) * - 62 * 46 col1
----
-2852

skipif mysql # not compatible
query I rowsort label-3631
SELECT COUNT ( * ) * - 62 * 46 col1
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT MAX( DISTINCT + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3632
SELECT MAX ( DISTINCT + 73 ) AS col0
----
73

query I rowsort
SELECT 57 + - 47 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT CASE 56 WHEN + CAST( NULL AS SIGNED ) THEN + ( - 39 ) WHEN + SUM( - 73 ) THEN NULL WHEN 86 * + COUNT( * ) + NULLIF ( + AVG ( ALL 5 ) + - CASE - 90 WHEN MAX( ALL 34 ) THEN NULL ELSE + 31 * 68 END, 22 ) THEN 4 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT CASE 56 WHEN + CAST ( NULL AS INTEGER ) THEN + ( - 39 ) WHEN + SUM ( - 73 ) THEN NULL WHEN 86 * + COUNT ( * ) + NULLIF ( + AVG ( ALL 5 ) + - CASE - 90 WHEN MAX ( ALL 34 ) THEN NULL ELSE + 31 * 68 END, 22 ) THEN 4 END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT ALL 75 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL 75 / - 70
----
-1

query I rowsort
SELECT ALL 86 - + 22
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT NULLIF ( - COUNT( * ), 68 ) * + 67 + - CASE CASE - 4 WHEN + 90 + 65 THEN 14 ELSE - 8 END WHEN - 26 THEN NULL WHEN NULLIF ( CAST( - 26 AS SIGNED ), + COUNT( * ) ) + 31 * - 79 THEN + 31 ELSE NULL END * + ( + 49 * 88 + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT NULLIF ( - COUNT ( * ), 68 ) * + 67 + - CASE CASE - 4 WHEN + 90 + 65 THEN 14 ELSE - 8 END WHEN - 26 THEN NULL WHEN NULLIF ( CAST ( - 26 AS INTEGER ), + COUNT ( * ) ) + 31 * - 79 THEN + 31 ELSE NULL END * + ( + 49 * 88 + - 39 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT 21 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT 21 / 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT + CAST( NULL AS SIGNED ) + MAX( 33 ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT + CAST ( NULL AS INTEGER ) + MAX ( 33 ) * 99
----
NULL

query I rowsort
SELECT ALL + 69 * 80 AS col1
----
5520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3641
SELECT + CAST( - 30 AS SIGNED ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT + CAST ( - 30 AS INTEGER ) / - 57
----
0

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

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

query I rowsort
SELECT + 97 * 8 AS col0
----
776

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT + 15 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 15 / 75 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT - 20 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT - 20 / - 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 79 + - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 79 + - + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - COUNT( * ) + - 78 - - 67 * 6 AS col1
----
323

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - COUNT ( * ) + - 78 - - 67 * 6 AS col1
----
323

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT DISTINCT COALESCE ( - + 11, ( 57 ), - COALESCE ( - 42, 3 * 88, 21 ) DIV + 58 )
----
-11

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT COALESCE ( - + 11, ( 57 ), - COALESCE ( - 42, 3 * 88, 21 ) / + 58 )
----
-11

query I rowsort
SELECT ALL - - 49 + - 87 AS col2
----
-38

query I rowsort
SELECT + + 4 + + ( + 49 )
----
53

query I rowsort
SELECT - + 24 * 54
----
-1296

query I rowsort
SELECT DISTINCT + + 20 + + 15
----
35

query I rowsort
SELECT DISTINCT + - 95 * + 40 + - 39
----
-3839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT COALESCE ( - 27, - 78 + - CAST( + 22 AS SIGNED ) ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT COALESCE ( - 27, - 78 + - CAST ( + 22 AS INTEGER ) ) col1
----
-27

query I rowsort
SELECT ALL + + 45 * 94 AS col0
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - 90 + + ( COUNT( ALL - 7 ) ) + - 98 * + CASE - CASE COALESCE ( - ( 56 ), - 53 ) WHEN - 65 THEN NULL ELSE + MAX( + 86 ) * 99 END WHEN + 57 THEN - 51 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT - 90 + + ( COUNT ( ALL - 7 ) ) + - 98 * + CASE - CASE COALESCE ( - ( 56 ), - 53 ) WHEN - 65 THEN NULL ELSE + MAX ( + 86 ) * 99 END WHEN + 57 THEN - 51 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT - 4 + - CAST( 64 AS SIGNED ) + - 13 * NULLIF ( 60, + 96 ) AS col1
----
-848

skipif mysql # not compatible
query I rowsort label-3660
SELECT - 4 + - CAST ( 64 AS INTEGER ) + - 13 * NULLIF ( 60, + 96 ) AS col1
----
-848

query I rowsort
SELECT DISTINCT - 77 + + + 1 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL - CASE NULLIF ( + 83, COUNT( * ) * - 94 + + 84 * + 46 ) WHEN SUM( ALL 17 ) + + ( - 9 ) * - 34 THEN NULL ELSE COUNT( * ) * - 81 END
----
81

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - CASE NULLIF ( + 83, COUNT ( * ) * - 94 + + 84 * + 46 ) WHEN SUM ( ALL 17 ) + + ( - 9 ) * - 34 THEN NULL ELSE COUNT ( * ) * - 81 END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + - 86 / + + ( CASE + 95 WHEN 46 + + 6 * 78 THEN NULL WHEN 26 + ( 23 ) * 59 THEN - 0 ELSE NULL END ) + SUM( ALL + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT + - 86 / + + ( CASE + 95 WHEN 46 + + 6 * 78 THEN NULL WHEN 26 + ( 23 ) * 59 THEN - 0 ELSE NULL END ) + SUM ( ALL + 7 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT DISTINCT 40 * - ( 68 ) - 1 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT 40 * - ( 68 ) - 1 * CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT + 17 + - + 56 + + ( 75 ) DIV - 76 * 87 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3666
SELECT + 17 + - + 56 + + ( 75 ) / - 76 * 87 AS col0
----
-39

query I rowsort
SELECT ALL 6 * 22 - + 38
----
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT DISTINCT - 91 DIV 43
----
-2

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - 91 / 43
----
-2

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

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

query I rowsort
SELECT - 63 * 81
----
-5103

query I rowsort
SELECT ALL 75 * - - 91 * - + 66 * 89 AS col2
----
-40090050

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT DISTINCT + 28 * - - CASE + - 78 WHEN 47 THEN CAST( + 12 AS SIGNED ) END * + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + 28 * - - CASE + - 78 WHEN 47 THEN CAST ( + 12 AS INTEGER ) END * + 30 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT COALESCE ( 83, NULLIF ( + 72, COUNT( * ) ) )
----
83

skipif mysql # not compatible
query I rowsort label-3677
SELECT COALESCE ( 83, NULLIF ( + 72, COUNT ( * ) ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3678
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - ( - ( - 35 ) ) * + 66 AS col0
----
-2310

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

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

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

skipif mysql # not compatible
query I rowsort label-3681
SELECT - CAST ( COUNT ( - + 93 ) AS INTEGER ) * + 33
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT + 79 * 39 DIV - 41 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3682
SELECT + 79 * 39 / - 41 AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT CAST( NULL AS SIGNED ) * - + 45 - + 19 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT CAST ( NULL AS INTEGER ) * - + 45 - + 19 * 65
----
NULL

query I rowsort
SELECT ALL + 79 * + 43 + - ( - 79 ) col2
----
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT CASE + 5 WHEN + COUNT( * ) THEN NULL ELSE 61 * + 63 END
----
3843

skipif mysql # not compatible
query I rowsort label-3685
SELECT CASE + 5 WHEN + COUNT ( * ) THEN NULL ELSE 61 * + 63 END
----
3843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL + COALESCE ( 29, - + CAST( - 12 AS SIGNED ) * 63 )
----
29

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + COALESCE ( 29, - + CAST ( - 12 AS INTEGER ) * 63 )
----
29

query II rowsort
SELECT 73 col0, 43 + + 50 + 35 AS col2
----
73
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + 83 * - 28 * 1 - - CASE - 56 WHEN 88 * - MAX( DISTINCT 51 ) + - 54 THEN 62 END + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 83 * - 28 * 1 - - CASE - 56 WHEN 88 * - MAX ( DISTINCT 51 ) + - 54 THEN 62 END + - 15 AS col1
----
NULL

query I rowsort
SELECT + + 75 + - 78
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3690
SELECT ALL + 64 * - 92 + - CASE + 73 WHEN 16 * 69 + + 41 THEN 77 * 70 + 11 WHEN 34 + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * 64 THEN 66 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + 64 * - 92 + - CASE + 73 WHEN 16 * 69 + + 41 THEN 77 * 70 + 11 WHEN 34 + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * 64 THEN 66 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + 8 + - + 46 * - COUNT( - 4 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 8 + - + 46 * - COUNT ( - 4 ) AS col1
----
54

query I rowsort
SELECT ALL 82 + + 82 AS col2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT ALL 91 + - 28 DIV 60
----
91

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL 91 + - 28 / 60
----
91

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

query I rowsort
SELECT + 79 + + - 68 AS col2
----
11

query II rowsort
SELECT DISTINCT 75 AS col1, + 99 * - 95
----
75
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT + CASE + 66 WHEN + MIN( DISTINCT ( 10 ) ) THEN - 90 END + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT + CASE + 66 WHEN + MIN ( DISTINCT ( 10 ) ) THEN - 90 END + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + MIN( + 86 ) - - 23 + - 86
----
23

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + MIN ( + 86 ) - - 23 + - 86
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + + MIN( ALL + 98 ) * 95
----
9310

skipif mysql # not compatible
query I rowsort label-3699
SELECT + + MIN ( ALL + 98 ) * 95
----
9310

query I rowsort
SELECT DISTINCT 94 - + - ( + - 26 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT + 82 * NULLIF ( - 38, + MAX( 11 ) / 81 )
----
-3116

skipif mysql # not compatible
query I rowsort label-3701
SELECT + 82 * NULLIF ( - 38, + MAX ( 11 ) / 81 )
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - 5 - + COUNT( * ) * + + 39 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3702
SELECT - 5 - + COUNT ( * ) * + + 39 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT + 58 DIV + + 16 - + - 9 * MIN( DISTINCT - 48 ) * COUNT( * ) col1
----
-429

skipif mysql # not compatible
query I rowsort label-3703
SELECT + 58 / + + 16 - + - 9 * MIN ( DISTINCT - 48 ) * COUNT ( * ) col1
----
-429

query I rowsort
SELECT DISTINCT - COALESCE ( - 9, + 10 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT 76 * - COUNT( DISTINCT + 39 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3705
SELECT 76 * - COUNT ( DISTINCT + 39 ) AS col1
----
-76

query I rowsort
SELECT ALL - NULLIF ( - 56, - NULLIF ( 3, - ( + 66 ) * 72 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT 92 - 34 * SUM( ALL - 19 ) * 7 - - 87 AS col1
----
4701

skipif mysql # not compatible
query I rowsort label-3707
SELECT 92 - 34 * SUM ( ALL - 19 ) * 7 - - 87 AS col1
----
4701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT 42 DIV - 61 DIV COUNT( * ) * COUNT( * ) + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3708
SELECT 42 / - 61 / COUNT ( * ) * COUNT ( * ) + 62 AS col1
----
62

query I rowsort
SELECT 6 * 86 * NULLIF ( - 26, 16 ) - + 13
----
-13429

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT 85 DIV - MIN( DISTINCT 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT 85 / - MIN ( DISTINCT 68 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT ALL - NULLIF ( CASE - 0 WHEN CAST( NULL AS SIGNED ) / 30 + 40 THEN NULL WHEN ( 34 ) * 87 + ( - 47 - CAST( + 61 + + 59 AS SIGNED ) ) THEN NULL WHEN - 43 + + 46 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE NULL END, 35 ) + - 53 * + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - NULLIF ( CASE - 0 WHEN CAST ( NULL AS INTEGER ) / 30 + 40 THEN NULL WHEN ( 34 ) * 87 + ( - 47 - CAST ( + 61 + + 59 AS INTEGER ) ) THEN NULL WHEN - 43 + + 46 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END, 35 ) + - 53 * + 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT ALL - 70 DIV - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - 70 / - 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL + MIN( 62 ) + - 97 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + MIN ( 62 ) + - 97 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 98 AS col1
----
NULL

query I rowsort
SELECT 20 + - - 82 + - 73
----
29

query I rowsort
SELECT ALL - 80 + + + 61 * - 77
----
-4777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT 51 + + - COUNT( * ) DIV - ( + 33 )
----
51

skipif mysql # not compatible
query I rowsort label-3718
SELECT 51 + + - COUNT ( * ) / - ( + 33 )
----
51

query I rowsort
SELECT 54 * CASE + 56 WHEN + 50 THEN + 69 * 19 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 86 * + - 76 + + 26 + 25 AS col0
----
-6485

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT 44 + + 82 - - COUNT( * ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-3721
SELECT 44 + + 82 - - COUNT ( * ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL MIN( ALL - 93 ) + + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL MIN ( ALL - 93 ) + + COUNT ( * ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( 67 AS SIGNED ) + + + 53 * - ( 75 ) + 53 * + 12
----
-3272

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( 67 AS INTEGER ) + + + 53 * - ( 75 ) + 53 * + 12
----
-3272

query I rowsort
SELECT + 63 * + - 99 AS col2
----
-6237

query I rowsort
SELECT ALL - 52 * - + 29 * - - 96
----
144768

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT + 19 * COUNT( * ) - + - 12 * + 49 + 36 * 74
----
3271

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + 19 * COUNT ( * ) - + - 12 * + 49 + 36 * 74
----
3271

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT ALL - 8 DIV - 73 + + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - 8 / - 73 + + 19 AS col0
----
19

query I rowsort
SELECT + 30 - - 3
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - COALESCE ( + 86, - NULLIF ( COUNT( * ), + 30 ) ) + + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COALESCE ( + 86, - NULLIF ( COUNT ( * ), + 30 ) ) + + COUNT ( * )
----
-85

query I rowsort
SELECT 79 * - 5 AS col0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT COUNT( * ) * CASE 53 WHEN - 72 THEN NULL ELSE 38 END
----
38

skipif mysql # not compatible
query I rowsort label-3732
SELECT COUNT ( * ) * CASE 53 WHEN - 72 THEN NULL ELSE 38 END
----
38

query I rowsort
SELECT DISTINCT - 14 * + NULLIF ( - + 70, - 63 ) * - 97
----
-95060

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT CASE + 28 WHEN - + ( 78 ) THEN - 38 WHEN 94 + MAX( 93 ) THEN 95 / COUNT( * ) END - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT CASE + 28 WHEN - + ( 78 ) THEN - 38 WHEN 94 + MAX ( 93 ) THEN 95 / COUNT ( * ) END - 90 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL + 46 DIV + - 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + 46 / + - 82 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN 25 ELSE NULL END + + 69 + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN 25 ELSE NULL END + + 69 + 9 AS col1
----
NULL

query I rowsort
SELECT 86 * 27 col1
----
2322

query II rowsort
SELECT DISTINCT 72, 99 col0
----
72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 2 + MIN( DISTINCT - - 99 )
----
101

skipif mysql # not compatible
query I rowsort label-3739
SELECT 2 + MIN ( DISTINCT - - 99 )
----
101

query I rowsort
SELECT 76 * - 76
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - MAX( - 72 ) * 25 + 39 + - ( - 61 ) AS col0
----
1900

skipif mysql # not compatible
query I rowsort label-3741
SELECT - MAX ( - 72 ) * 25 + 39 + - ( - 61 ) AS col0
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( DISTINCT + 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( DISTINCT + 82 ) AS col0
----
1

query I rowsort
SELECT ALL 56 * + + 9 * + + 31 AS col2
----
15624

query I rowsort
SELECT 1 * - - 33 AS col0
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL CASE - ( - 26 ) WHEN - CASE + - 6 WHEN - 94 + 51 THEN 79 * - 15 ELSE - 20 END + 33 THEN NULL WHEN NULLIF ( - ( + 30 ), NULLIF ( 73, 88 ) + + 4 ) THEN - NULLIF ( ( MAX( 22 ) ), 13 * - COUNT( DISTINCT 7 ) ) - 0 END + CASE 70 WHEN CASE 25 WHEN + COUNT( * ) THEN - 96 / 66 END THEN NULL WHEN 68 THEN NULL WHEN - 50 + 31 THEN ( 99 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL CASE - ( - 26 ) WHEN - CASE + - 6 WHEN - 94 + 51 THEN 79 * - 15 ELSE - 20 END + 33 THEN NULL WHEN NULLIF ( - ( + 30 ), NULLIF ( 73, 88 ) + + 4 ) THEN - NULLIF ( ( MAX ( 22 ) ), 13 * - COUNT ( DISTINCT 7 ) ) - 0 END + CASE 70 WHEN CASE 25 WHEN + COUNT ( * ) THEN - 96 / 66 END THEN NULL WHEN 68 THEN NULL WHEN - 50 + 31 THEN ( 99 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT - ( + 63 ) + - ( - 67 ) + + + 13 DIV 24
----
4

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - ( + 63 ) + - ( - 67 ) + + + 13 / 24
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3748
SELECT CASE - CAST( + 25 AS SIGNED ) WHEN + 75 - - 75 THEN NULL WHEN + 40 * + 54 THEN 37 * - 81 WHEN CAST( + COUNT( * ) AS DECIMAL ) THEN 31 * 55 + 94 END - + 68 * + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT CASE - CAST ( + 25 AS INTEGER ) WHEN + 75 - - 75 THEN NULL WHEN + 40 * + 54 THEN 37 * - 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN 31 * 55 + 94 END - + 68 * + 21 AS col1
----
NULL

query I rowsort
SELECT 26 * - 15
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL - MIN( - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - MIN ( - 39 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT 66 DIV + + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT 66 / + + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + COUNT( * ) * 29 / CASE - - 60 WHEN + 31 THEN + 9 END / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT + COUNT ( * ) * 29 / CASE - - 60 WHEN + 31 THEN + 9 END / 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT DISTINCT + 3 DIV + 23 * - 98
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + 3 / + 23 * - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT NULLIF ( - 17, + + 65 + + 50 + 22 * + COUNT( * ) ) - 7
----
-24

skipif mysql # not compatible
query I rowsort label-3754
SELECT NULLIF ( - 17, + + 65 + + 50 + 22 * + COUNT ( * ) ) - 7
----
-24

query II rowsort
SELECT ALL + - ( - + 40 ) * 36 AS col2, - ( + ( 45 ) ) * 42
----
1440
-1890

query I rowsort
SELECT 76 * + + 58 * + 10 AS col1
----
44080

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT DISTINCT + 70 DIV - NULLIF ( - 87, - NULLIF ( - 94, + 18 * 41 ) * - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT + 70 / - NULLIF ( - 87, - NULLIF ( - 94, + 18 * 41 ) * - 80 )
----
0

query I rowsort
SELECT ALL - 12 - + - 34 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT COALESCE ( 93, + - 5 * + 64 DIV - NULLIF ( + 40, 45 ) * 41 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT COALESCE ( 93, + - 5 * + 64 / - NULLIF ( + 40, 45 ) * 41 ) AS col2
----
93

query I rowsort
SELECT - 14 + + + 64
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3761
SELECT - 93 AS col1, 46 DIV - 71 * NULLIF ( 37, 71 ) * + COUNT( * ) AS col1
----
-93
0

skipif mysql # not compatible
query II rowsort label-3761
SELECT - 93 AS col1, 46 / - 71 * NULLIF ( 37, 71 ) * + COUNT ( * ) AS col1
----
-93
0

query I rowsort
SELECT - 97 - - 24 * - 60
----
-1537

query I rowsort
SELECT + 37 * 77 + 3 AS col0
----
2852

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

skipif mysql # not compatible
query I rowsort label-3764
SELECT + SUM ( + - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + COUNT( DISTINCT + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( DISTINCT + 85 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT + 47 * 22 * + COUNT( * )
----
1034

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + 47 * 22 * + COUNT ( * )
----
1034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT DISTINCT 58 DIV + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT 58 / + COUNT ( * ) AS col0
----
58

query II rowsort
SELECT - 20 AS col1, - 14 + + 53
----
-20
39

query I rowsort
SELECT + 4 * + + ( 42 ) AS col1
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT + 80 * + 97 * + + CASE 77 WHEN + ( + 39 ) + + 31 THEN + COUNT( * ) + + COALESCE ( 57, - COUNT( * ), 49, + 51 * + 60 ) WHEN COUNT( * ) THEN 25 + - CASE ( 76 ) WHEN - MIN( 41 ) THEN MIN( 15 ) + + 36 WHEN COUNT( * ) / 25 THEN + 25 + - 96 * - CAST( + 77 AS SIGNED ) END * + ( - ( 66 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT + 80 * + 97 * + + CASE 77 WHEN + ( + 39 ) + + 31 THEN + COUNT ( * ) + + COALESCE ( 57, - COUNT ( * ), 49, + 51 * + 60 ) WHEN COUNT ( * ) THEN 25 + - CASE ( 76 ) WHEN - MIN ( 41 ) THEN MIN ( 15 ) + + 36 WHEN COUNT ( * ) / 25 THEN + 25 + - 96 * - CAST ( + 77 AS INTEGER ) END * + ( - ( 66 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + MIN( + 35 ) - 56
----
-21

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MIN ( + 35 ) - 56
----
-21

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

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

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

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

query I rowsort
SELECT DISTINCT 55 * - ( + 24 ) + + 50
----
-1270

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT + 44 * CASE + CAST( NULL AS SIGNED ) WHEN - 33 / + COALESCE ( - 68, - COUNT( * ) * - 62 ) THEN - 3 WHEN 40 + 1 THEN 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 44 * CASE + CAST ( NULL AS INTEGER ) WHEN - 33 / + COALESCE ( - 68, - COUNT ( * ) * - 62 ) THEN - 3 WHEN 40 + 1 THEN 18 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT 99 * + CASE + 56 WHEN 65 THEN + 30 - ( ( COUNT( * ) ) ) / - 92 WHEN - 90 + + 24 THEN NULL END + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT 99 * + CASE + 56 WHEN 65 THEN + 30 - ( ( COUNT ( * ) ) ) / - 92 WHEN - 90 + + 24 THEN NULL END + - 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT CASE 44 WHEN - - 71 * 50 + - COUNT( * ) - - + CAST( + 25 AS SIGNED ) + + NULLIF ( 49 - COUNT( * ), + 58 ) * 86 THEN - 23 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT CASE 44 WHEN - - 71 * 50 + - COUNT ( * ) - - + CAST ( + 25 AS INTEGER ) + + NULLIF ( 49 - COUNT ( * ), + 58 ) * 86 THEN - 23 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 49 * + CASE 34 WHEN + 45 / - 64 THEN 36 ELSE + 88 END + ( + 0 + - 96 )
----
4216

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT - 55 / AVG ( + 76 ) + - - CAST( CASE - COUNT( * ) WHEN - 96 THEN NULLIF ( NULLIF ( 85, + 42 ), + 54 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT - 55 / AVG ( + 76 ) + - - CAST ( CASE - COUNT ( * ) WHEN - 96 THEN NULLIF ( NULLIF ( 85, + 42 ), + 54 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 * 1 * + ( - NULLIF ( + + 63, - 22 ) ) - 74
----
4147

query I rowsort
SELECT + 85 + + + 87 - + + 18 col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + ( - 88 ) * + CASE WHEN NULL NOT BETWEEN ( + 99 ) AND + COUNT( * ) THEN NULL ELSE - 63 END - NULLIF ( 51, - 55 )
----
5493

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + ( - 88 ) * + CASE WHEN NULL NOT BETWEEN ( + 99 ) AND + COUNT ( * ) THEN NULL ELSE - 63 END - NULLIF ( 51, - 55 )
----
5493

query I rowsort
SELECT DISTINCT + COALESCE ( + + 44, - 57 )
----
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - 59 + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 59 + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + CASE - COUNT( * ) WHEN - AVG ( 94 ) THEN - 62 - + 6 * ( COUNT( * ) * - 0 ) WHEN + 69 THEN NULL ELSE 19 END AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + CASE - COUNT ( * ) WHEN - AVG ( 94 ) THEN - 62 - + 6 * ( COUNT ( * ) * - 0 ) WHEN + 69 THEN NULL ELSE 19 END AS col1
----
19

query I rowsort
SELECT + + 44 + - + 80
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - - ( - COUNT( * ) ) + + + 2 + + 6 + 60 * - 1 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3791
SELECT - - ( - COUNT ( * ) ) + + + 2 + + 6 + 60 * - 1 AS col2
----
-53

query I rowsort
SELECT + - 69 * COALESCE ( - 21, - - 1 )
----
1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT - 40 * + 38 - - + 72 * + 69 * CAST( NULL AS SIGNED ) + - 63 + + CAST( 38 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - 40 * + 38 - - + 72 * + 69 * CAST ( NULL AS INTEGER ) + - 63 + + CAST ( 38 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + CAST( - CASE + + 43 WHEN ( + 43 ) THEN NULL WHEN + AVG ( 36 ) + + ( 85 ) * + NULLIF ( + ( - 34 ), + 43 ) THEN - 63 * 88 - 37 ELSE 77 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT + CAST ( - CASE + + 43 WHEN ( + 43 ) THEN NULL WHEN + AVG ( 36 ) + + ( 85 ) * + NULLIF ( + ( - 34 ), + 43 ) THEN - 63 * 88 - 37 ELSE 77 END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 52, + 74 ) * 5 AS col2
----
260

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT + - 2 DIV - + 16 col2
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + - 2 / - + 16 col2
----
0

query I rowsort
SELECT ALL + + 31 * + - 9
----
-279

query I rowsort
SELECT - 70 * + 47 AS col1
----
-3290

query I rowsort
SELECT - 75 * + ( 79 ) - - 8 - + + 97 AS col2
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - NULLIF ( + + MAX( + 52 ), SUM( DISTINCT - - 95 ) + - COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - NULLIF ( + + MAX ( + 52 ), SUM ( DISTINCT - - 95 ) + - COUNT ( * ) )
----
-52

query I rowsort
SELECT - + 43 + 67 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT - COUNT( * ) - + + 69, 27 col1
----
-70
27

skipif mysql # not compatible
query II rowsort label-3802
SELECT - COUNT ( * ) - + + 69, 27 col1
----
-70
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3804
SELECT - COUNT( * ) * - 76, 2 * CAST( NULL AS SIGNED ) AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3804
SELECT - COUNT ( * ) * - 76, 2 * CAST ( NULL AS INTEGER ) AS col1
----
76
NULL

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

query I rowsort
SELECT + 4 + - 47 AS col0
----
-43

query I rowsort
SELECT ALL - 11 + + 49 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + COUNT( + 48 ) + + COALESCE ( 76, + 20 ) + - 37 + + 60 - 13 * + 52
----
-576

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + COUNT ( + 48 ) + + COALESCE ( 76, + 20 ) + - 37 + + 60 - 13 * + 52
----
-576

query I rowsort
SELECT ALL + 84 * 51
----
4284

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

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

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT ( - NULLIF ( + 39, COUNT ( * ) ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - 11 + + COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - 11 + + COUNT ( * ) col1
----
-10

query I rowsort
SELECT ALL ( 72 ) * - + 4 + - - 60 * - 85
----
-5388

query I rowsort
SELECT ALL ( 55 ) + - 86
----
-31

query I rowsort
SELECT + 38 + ( + - 83 ) AS col2
----
-45

query I rowsort
SELECT + 97 * + + 2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + COUNT( * ) + ( 31 ) + + ( + 81 ) + - 16 + - + 36 * - 3
----
205

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( * ) + ( 31 ) + + ( + 81 ) + - 16 + - + 36 * - 3
----
205

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

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

query I rowsort
SELECT + 61 * + - 53 * - + 5 col1
----
16165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + NULLIF ( 36, - CASE ( + 17 ) WHEN + COUNT( * ) THEN MIN( DISTINCT - ( ( 5 ) ) ) END + 90 )
----
36

skipif mysql # not compatible
query I rowsort label-3821
SELECT + NULLIF ( 36, - CASE ( + 17 ) WHEN + COUNT ( * ) THEN MIN ( DISTINCT - ( ( 5 ) ) ) END + 90 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT DISTINCT - - 30 * + - 27, + 28 + - 30 * + COUNT( * ) + + - 57 AS col0
----
-810
-59

skipif mysql # not compatible
query II rowsort label-3822
SELECT DISTINCT - - 30 * + - 27, + 28 + - 30 * + COUNT ( * ) + + - 57 AS col0
----
-810
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + 30 * + - COUNT( * ) * + 6 * - - 34 AS col1
----
-6120

skipif mysql # not compatible
query I rowsort label-3823
SELECT + 30 * + - COUNT ( * ) * + 6 * - - 34 AS col1
----
-6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3824
SELECT + + 59 DIV + + COUNT( * ) AS col1, + 95 * CASE + 85 WHEN + NULLIF ( - MAX( 88 ), - 13 * 55 ) THEN - ( 39 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END * SUM( DISTINCT 43 )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3824
SELECT + + 59 / + + COUNT ( * ) AS col1, + 95 * CASE + 85 WHEN + NULLIF ( - MAX ( 88 ), - 13 * 55 ) THEN - ( 39 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END * SUM ( DISTINCT 43 )
----
59
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT + NULLIF ( + CAST( + + 34 AS SIGNED ), - 47 )
----
34

skipif mysql # not compatible
query I rowsort label-3826
SELECT + NULLIF ( + CAST ( + + 34 AS INTEGER ), - 47 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + - 15 + + 64 * - - MAX( + - ( - - 72 ) ) * - NULLIF ( + + 55, - 26 ) * 15 AS col2
----
3801585

skipif mysql # not compatible
query I rowsort label-3827
SELECT + - 15 + + 64 * - - MAX ( + - ( - - 72 ) ) * - NULLIF ( + + 55, - 26 ) * 15 AS col2
----
3801585

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3828
SELECT - CAST( - 96 AS SIGNED ) AS col0, - 70 * + 83 + - 13 AS col1
----
96
-5823

skipif mysql # not compatible
query II rowsort label-3828
SELECT - CAST ( - 96 AS INTEGER ) AS col0, - 70 * + 83 + - 13 AS col1
----
96
-5823

query I rowsort
SELECT + + 40 * - 53 AS col0
----
-2120

query I rowsort
SELECT - 96 * + 12 - - - ( 47 ) AS col0
----
-1199

query I rowsort
SELECT ALL + 80 + - 72
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT 77 - - - 69 + + NULLIF ( 77, + + 26 * - COUNT( * ) ) * 3 * ( 54 DIV 77 )
----
8

skipif mysql # not compatible
query I rowsort label-3832
SELECT 77 - - - 69 + + NULLIF ( 77, + + 26 * - COUNT ( * ) ) * 3 * ( 54 / 77 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT COALESCE ( + 7, ( - MIN( ALL - 75 ) ) + COUNT( * ) + + ( MAX( DISTINCT + 90 ) ) ) * - 50
----
-350

skipif mysql # not compatible
query I rowsort label-3833
SELECT COALESCE ( + 7, ( - MIN ( ALL - 75 ) ) + COUNT ( * ) + + ( MAX ( DISTINCT + 90 ) ) ) * - 50
----
-350

query II rowsort
SELECT ALL ( - 47 ), - 68 AS col0
----
-47
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL - COUNT( + + 49 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - COUNT ( + + 49 ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3836
SELECT 88 DIV 85 * 3 * + + 24 - - 59 - - - NULLIF ( - - MIN( DISTINCT - 3 ), 45 + + 10 * - COUNT( * ) )
----
134

skipif mysql # not compatible
query I rowsort label-3836
SELECT 88 / 85 * 3 * + + 24 - - 59 - - - NULLIF ( - - MIN ( DISTINCT - 3 ), 45 + + 10 * - COUNT ( * ) )
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT - CASE - COALESCE ( - + 62, 86 ) WHEN + 13 THEN - 14 + 59 ELSE + CASE COALESCE ( CAST( 2 AS SIGNED ), + 79 / 10 ) WHEN CASE + 37 WHEN 44 THEN - 36 END THEN ( - 55 ) WHEN - CAST( NULL AS SIGNED ) * - 15 THEN NULL END END + COUNT( * ) * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - CASE - COALESCE ( - + 62, 86 ) WHEN + 13 THEN - 14 + 59 ELSE + CASE COALESCE ( CAST ( 2 AS INTEGER ), + 79 / 10 ) WHEN CASE + 37 WHEN 44 THEN - 36 END THEN ( - 55 ) WHEN - CAST ( NULL AS INTEGER ) * - 15 THEN NULL END END + COUNT ( * ) * 48 AS col1
----
NULL

query I rowsort
SELECT 14 - - 43 * 80 AS col0
----
3454

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL - COUNT( * ) + 36 + + + 50
----
85

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL - COUNT ( * ) + 36 + + + 50
----
85

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

skipif mysql # not compatible
query II rowsort label-3840
SELECT - 16 col0, - COUNT ( * ) AS col1
----
-16
-1

query I rowsort
SELECT DISTINCT 40 + 86 AS col2
----
126

query I rowsort
SELECT 95 + 66
----
161

query I rowsort
SELECT DISTINCT - 98 + - 53 AS col0
----
-151

query I rowsort
SELECT 4 + 7 + + ( - ( - 44 ) ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT ALL 33 DIV - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL 33 / - 37 AS col0
----
0

query I rowsort
SELECT ALL + 25 * + - 61
----
-1525

query II rowsort
SELECT 25 AS col2, - NULLIF ( - - 58, 41 )
----
25
-58

query II rowsort
SELECT ALL 83 AS col2, 37 AS col2
----
83
37

query I rowsort
SELECT 27 * 63 col1
----
1701

query I rowsort
SELECT 30 * - 17 AS col1
----
-510

query I rowsort
SELECT ALL - 80 - + 90 AS col2
----
-170

query I rowsort
SELECT 17 - - 25 + ( + 20 ) AS col1
----
62

query I rowsort
SELECT DISTINCT - 35 * - 48 AS col2
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT 54 DIV - 98 + - 79 * 60 * + + MIN( + 39 ) * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT 54 / - 98 + - 79 * 60 * + + MIN ( + 39 ) * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL - MAX( ALL 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - MAX ( ALL 87 )
----
-87

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

skipif mysql # not compatible
query I rowsort label-3856
SELECT SUM ( ALL - - 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + 58 * + 89 + + CAST( NULL AS SIGNED ) / COALESCE ( 75, - - 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 58 * + 89 + + CAST ( NULL AS INTEGER ) / COALESCE ( 75, - - 19 ) AS col0
----
NULL

query I rowsort
SELECT 44 * COALESCE ( + ( - + 85 ), - - 59 * 73 + - + ( - - CASE 69 WHEN 12 THEN + 29 END ) + + 84 - - 77 * + 91 )
----
-3740

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT - 80 + - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3860
SELECT - 80 + - COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT DISTINCT - 31 + + - 40
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL + 9 + NULLIF ( COUNT( * ), - - 44 ) + - ( - COUNT( * ) ) + + 67 + + 69 + 91 * + 19 * - 19 * 69
----
-2266572

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + 9 + NULLIF ( COUNT ( * ), - - 44 ) + - ( - COUNT ( * ) ) + + 67 + + 69 + 91 * + 19 * - 19 * 69
----
-2266572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT - 68 * - - CASE - 44 WHEN CAST( NULL AS SIGNED ) / 89 THEN - ( - 0 ) WHEN - COUNT( * ) THEN NULL END + - 75 + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT - 68 * - - CASE - 44 WHEN CAST ( NULL AS INTEGER ) / 89 THEN - ( - 0 ) WHEN - COUNT ( * ) THEN NULL END + - 75 + 9 AS col1
----
NULL

query I rowsort
SELECT 92 + + 73
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3865
SELECT ALL - - NULLIF ( + 61, + CAST( NULL AS SIGNED ) ) AS col1, COUNT( 47 )
----
61
1

skipif mysql # not compatible
query II rowsort label-3865
SELECT ALL - - NULLIF ( + 61, + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( 47 )
----
61
1

query I rowsort
SELECT ALL + 48 + + 86 + + 1 * - 62 AS col1
----
72

query I rowsort
SELECT - 5 + + - 61 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT 72 * + MIN( DISTINCT 24 ) + + 98 + + AVG ( DISTINCT - 65 ) + + CAST( NULL AS SIGNED ) * + 96 * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT 72 * + MIN ( DISTINCT 24 ) + + 98 + + AVG ( DISTINCT - 65 ) + + CAST ( NULL AS INTEGER ) * + 96 * 3 AS col2
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( + 74, + - 21, 28 ) col0
----
74

query I rowsort
SELECT DISTINCT 99 + - 7 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT 1 + CASE + CASE + COUNT( * ) WHEN - ( - 42 ) THEN + 13 + 96 END WHEN + 83 THEN + NULLIF ( ( 76 ), 62 ) + NULLIF ( + 92, - 40 * - 15 ) ELSE NULL END + 37 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT 1 + CASE + CASE + COUNT ( * ) WHEN - ( - 42 ) THEN + 13 + 96 END WHEN + 83 THEN + NULLIF ( ( 76 ), 62 ) + NULLIF ( + 92, - 40 * - 15 ) ELSE NULL END + 37 * + 39
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3872
SELECT 20 * - CAST( NULL AS DECIMAL ) AS col2, - 19 AS col1
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-3872
SELECT 20 * - CAST ( NULL AS REAL ) AS col2, - 19 AS col1
----
NULL
-19

query I rowsort
SELECT ALL 27 * 28
----
756

query I rowsort
SELECT 36 + - 73
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT 39 DIV - - 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT 39 / - - 61 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT COUNT( * ) * + - 70 * - NULLIF ( - + 45, - - 71 + + 57 )
----
-3150

skipif mysql # not compatible
query I rowsort label-3876
SELECT COUNT ( * ) * + - 70 * - NULLIF ( - + 45, - - 71 + + 57 )
----
-3150

query I rowsort
SELECT 36 + + + 77
----
113

query I rowsort
SELECT DISTINCT + 49 * + 49 AS col1
----
2401

onlyif mysql # DIV for integer division: 
query II rowsort label-3879
SELECT 55 DIV 50 AS col2, + 55
----
1
55

skipif mysql # not compatible
query II rowsort label-3879
SELECT 55 / 50 AS col2, + 55
----
1
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3880
SELECT ALL + 59 * + CAST( NULL AS DECIMAL ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + 59 * + CAST ( NULL AS REAL ) * + 50
----
NULL

query II rowsort
SELECT 99 * - 75 * - 2 * 88 AS col0, 5
----
1306800
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT - 21 + + 89 + + ( - + MIN( - COALESCE ( - 4, + - 93 + 11 + 13 ) ) ) * + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT - 21 + + 89 + + ( - + MIN ( - COALESCE ( - 4, + - 93 + 11 + 13 ) ) ) * + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT MAX( ALL - 15 ) + + 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3883
SELECT MAX ( ALL - 15 ) + + 6 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT + COALESCE ( 90, - COUNT( * ) * 89 * + 9 ) * 64 DIV + COUNT( * ) + 62 DIV + COUNT( - 51 )
----
5822

skipif mysql # not compatible
query I rowsort label-3884
SELECT + COALESCE ( 90, - COUNT ( * ) * 89 * + 9 ) * 64 / + COUNT ( * ) + 62 / + COUNT ( - 51 )
----
5822

query I rowsort
SELECT ALL - 2 * ( - 16 )
----
32

query I rowsort
SELECT - NULLIF ( + + 3, - 0 * 30 * - + 73 * - 50 ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT DISTINCT + 6 * - 71 - - MAX( DISTINCT 17 ) * + CAST( NULLIF ( - 32, - CASE 74 WHEN - 87 * 69 + - 82 * 56 THEN ( 28 ) END ) AS SIGNED ) + + 68
----
-902

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + 6 * - 71 - - MAX ( DISTINCT 17 ) * + CAST ( NULLIF ( - 32, - CASE 74 WHEN - 87 * 69 + - 82 * 56 THEN ( 28 ) END ) AS INTEGER ) + + 68
----
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL - MAX( - 88 ) * - CAST( NULL AS SIGNED ) + - MIN( 60 ) + CAST( NULL AS SIGNED ) + + 40 + CAST( NULL AS SIGNED ) * - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - MAX ( - 88 ) * - CAST ( NULL AS INTEGER ) + - MIN ( 60 ) + CAST ( NULL AS INTEGER ) + + 40 + CAST ( NULL AS INTEGER ) * - - 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - ( - 98 ) - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3889
SELECT - ( - 98 ) - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - MAX( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3890
SELECT - MAX ( DISTINCT + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL COUNT( * ) * - - 45 + + 68
----
113

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL COUNT ( * ) * - - 45 + + 68
----
113

query I rowsort
SELECT + + 75 + + 45 + + + 53
----
173

query I rowsort
SELECT ( - - ( - - 2 ) )
----
2

query I rowsort
SELECT ALL + - 56 AS col2
----
-56

query I rowsort
SELECT - - 31 - - - 83 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT + COUNT( * ) * - - ( + COUNT( * ) ) DIV - + ( - 12 ) + + 29 + + 99 col1
----
128

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + COUNT ( * ) * - - ( + COUNT ( * ) ) / - + ( - 12 ) + + 29 + + 99 col1
----
128

query I rowsort
SELECT + 21 * - + 90 * - 43 + - 90 AS col0
----
81180

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT + 22 * 88 * + + COUNT( * ) AS col2, 32 * 23
----
1936
736

skipif mysql # not compatible
query II rowsort label-3898
SELECT + 22 * 88 * + + COUNT ( * ) AS col2, 32 * 23
----
1936
736

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - 92 + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3899
SELECT - 92 + + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT - NULLIF ( + - COUNT( * ), + 88 + 89 + + 96 ), CASE + 3 WHEN + 0 THEN - COUNT( * ) * + 96 - - COUNT( - 34 ) + - 58 WHEN ( 51 ) + 45 THEN NULL END * - 83 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3900
SELECT - NULLIF ( + - COUNT ( * ), + 88 + 89 + + 96 ), CASE + 3 WHEN + 0 THEN - COUNT ( * ) * + 96 - - COUNT ( - 34 ) + - 58 WHEN ( 51 ) + 45 THEN NULL END * - 83 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT ALL ( - + 92 ) DIV + 47 + - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL ( - + 92 ) / + 47 + - + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + 50 - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3902
SELECT + 50 - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + 62 * + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3903
SELECT + 62 * + + COUNT ( * )
----
62

query I rowsort
SELECT - NULLIF ( - - 48, + 33 ) AS col0
----
-48

query I rowsort
SELECT DISTINCT ( - 28 ) AS col2
----
-28

query I rowsort
SELECT - CASE + 30 WHEN - + 76 * - + 12 - - AVG ( + - 21 ) + - - ( 19 ) THEN NULL WHEN - + 75 * + 93 THEN NULL WHEN + 69 THEN 55 ELSE + 74 + - ( 43 + 96 ) END
----
65

query I rowsort
SELECT ALL 26 * - + 34
----
-884

query I rowsort
SELECT + 32 * + 89 AS col1
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - ( - CASE + 43 WHEN - 70 THEN NULL WHEN 70 THEN NULL ELSE COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-3909
SELECT - ( - CASE + 43 WHEN - 70 THEN NULL WHEN 70 THEN NULL ELSE COUNT ( * ) END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + 20 + + 66 + - + 73 * 83 * - + NULLIF ( COUNT( * ), + + 84 ) AS col0
----
6145

skipif mysql # not compatible
query I rowsort label-3910
SELECT + 20 + + 66 + - + 73 * 83 * - + NULLIF ( COUNT ( * ), + + 84 ) AS col0
----
6145

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT - - 97 * - ( - COUNT( * ) ) - 57
----
40

skipif mysql # not compatible
query I rowsort label-3911
SELECT - - 97 * - ( - COUNT ( * ) ) - 57
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT CASE - COUNT( * ) WHEN + 15 THEN - + 23 + + - 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT CASE - COUNT ( * ) WHEN + 15 THEN - + 23 + + - 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + 42 + - 84 * - 2 * - ( - - COALESCE ( - 73, - ( - 90 ), + - 61 + - 31 + - CASE 8 WHEN - 0 + - 20 THEN + 61 * - 26 WHEN 54 / + 66 THEN - ( 45 ) - - ( 88 ) ELSE - COALESCE ( + 42, COALESCE ( ( - 79 ), 0 ) ) + + COUNT( * ) END ) ) + + 99 AS col0
----
12405

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + 42 + - 84 * - 2 * - ( - - COALESCE ( - 73, - ( - 90 ), + - 61 + - 31 + - CASE 8 WHEN - 0 + - 20 THEN + 61 * - 26 WHEN 54 / + 66 THEN - ( 45 ) - - ( 88 ) ELSE - COALESCE ( + 42, COALESCE ( ( - 79 ), 0 ) ) + + COUNT ( * ) END ) ) + + 99 AS col0
----
12405

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3914
SELECT + 85 + + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL CASE + COALESCE ( - 34, 53 * 55 * - - CAST( NULL AS SIGNED ) * + 41 ) WHEN 93 / 4 + - 22 + - ( - 59 ) * - 9 THEN ( 20 ) - 66 ELSE NULL END + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL CASE + COALESCE ( - 34, 53 * 55 * - - CAST ( NULL AS INTEGER ) * + 41 ) WHEN 93 / 4 + - 22 + - ( - 59 ) * - 9 THEN ( 20 ) - 66 ELSE NULL END + 20
----
NULL

query I rowsort
SELECT ALL + ( - - 17 ) AS col0
----
17

query I rowsort
SELECT - 12 + + CASE 85 WHEN + 91 * 5 * + 46 * - - 35 + - 9 * 80 THEN + ( - 57 ) * 2 WHEN + 37 THEN - 36 * 83 + 82 / - 22 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL + CAST( NULL AS SIGNED ) / + + 32 * 17 + COUNT( * ) + - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 32 * 17 + COUNT ( * ) + - - 95
----
NULL

query I rowsort
SELECT - + 70 * - 43
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + - MAX( - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3920
SELECT + - MAX ( - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT COUNT( * ) DIV + MAX( DISTINCT 29 ) + 66 + + 21 + - 63 * 65 + - + COALESCE ( + - 57, + 24 + + COUNT( * ) * + COUNT( * ), + 49 * MAX( ALL 49 ) ) AS col2
----
-3951

skipif mysql # not compatible
query I rowsort label-3921
SELECT COUNT ( * ) / + MAX ( DISTINCT 29 ) + 66 + + 21 + - 63 * 65 + - + COALESCE ( + - 57, + 24 + + COUNT ( * ) * + COUNT ( * ), + 49 * MAX ( ALL 49 ) ) AS col2
----
-3951

query I rowsort
SELECT 95 * + + 20 - + 68
----
1832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + + 26 + - 14 + + ( + 27 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT + + 26 + - 14 + + ( + 27 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT - - 87 * 19 + - CAST( NULL AS SIGNED ) + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - - 87 * 19 + - CAST ( NULL AS INTEGER ) + 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT + - COUNT( * ) * + + MAX( + + 49 ) AS col2, COUNT( * ) AS col0
----
-49
1

skipif mysql # not compatible
query II rowsort label-3925
SELECT + - COUNT ( * ) * + + MAX ( + + 49 ) AS col2, COUNT ( * ) AS col0
----
-49
1

query I rowsort
SELECT DISTINCT + - 27 AS col2
----
-27

query III rowsort
SELECT DISTINCT ( - + 79 ) * + 91 - + 87 * 34, 12 AS col1, 30 AS col1
----
-10147
12
30

query I rowsort
SELECT ALL 71 * - 56 AS col0
----
-3976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3929
SELECT 60 * - 23 + 18 AS col0, - SUM( ALL CAST( NULL AS SIGNED ) ) * MIN( - + ( 76 ) ) - + 72 + - 46 AS col0
----
-1362
NULL

skipif mysql # not compatible
query II rowsort label-3929
SELECT 60 * - 23 + 18 AS col0, - SUM ( ALL CAST ( NULL AS INTEGER ) ) * MIN ( - + ( 76 ) ) - + 72 + - 46 AS col0
----
-1362
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT - - 51 * - 55 + + - COUNT( * ) + + 55 DIV 82 + - 74
----
-2880

skipif mysql # not compatible
query I rowsort label-3930
SELECT - - 51 * - 55 + + - COUNT ( * ) + + 55 / 82 + - 74
----
-2880

query I rowsort
SELECT - 46 * + + 93
----
-4278

query I rowsort
SELECT - 5 + 88 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT NULLIF ( + CASE COUNT( * ) WHEN + 35 THEN NULL ELSE 37 END, + 27 )
----
37

skipif mysql # not compatible
query I rowsort label-3933
SELECT NULLIF ( + CASE COUNT ( * ) WHEN + 35 THEN NULL ELSE 37 END, + 27 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - 34 + - ( + COUNT( * ) ) - + - 23 * + 0
----
-35

skipif mysql # not compatible
query I rowsort label-3934
SELECT - 34 + - ( + COUNT ( * ) ) - + - 23 * + 0
----
-35

query I rowsort
SELECT - 98 + - - 37
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + CASE ( + CASE - + SUM( DISTINCT - 36 ) WHEN + + 49 / - 27 - - - 8 THEN - NULLIF ( + ( + 78 ), MAX( DISTINCT - 46 ) * - COUNT( * ) + - 26 * + COUNT( * ) ) END ) WHEN + 13 THEN - 35 - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + CASE ( + CASE - + SUM ( DISTINCT - 36 ) WHEN + + 49 / - 27 - - - 8 THEN - NULLIF ( + ( + 78 ), MAX ( DISTINCT - 46 ) * - COUNT ( * ) + - 26 * + COUNT ( * ) ) END ) WHEN + 13 THEN - 35 - 32 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT SUM( - 45 ) * - 61 + CAST( NULL AS SIGNED ) * - - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT SUM ( - 45 ) * - 61 + CAST ( NULL AS INTEGER ) * - - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT - COUNT( * ), + ( + - 32 ) * COUNT( * ) col2
----
-1
-32

skipif mysql # not compatible
query II rowsort label-3938
SELECT - COUNT ( * ), + ( + - 32 ) * COUNT ( * ) col2
----
-1
-32

query I rowsort
SELECT ALL ( + - 43 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT + 76 * + 4
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL + 6 * MAX( DISTINCT 92 ) + - 93 AS col1
----
459

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + 6 * MAX ( DISTINCT 92 ) + - 93 AS col1
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - COUNT( * ) + + - 43 * CASE WHEN 27 NOT BETWEEN - 55 AND + + COUNT( * ) THEN - 84 ELSE NULL END * - COUNT( + 50 ) + - ( COUNT( * ) ) AS col1
----
-3614

skipif mysql # not compatible
query I rowsort label-3942
SELECT - COUNT ( * ) + + - 43 * CASE WHEN 27 NOT BETWEEN - 55 AND + + COUNT ( * ) THEN - 84 ELSE NULL END * - COUNT ( + 50 ) + - ( COUNT ( * ) ) AS col1
----
-3614

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT MIN( ALL 68 ), 12 * 46 AS col2
----
68
552

skipif mysql # not compatible
query II rowsort label-3943
SELECT MIN ( ALL 68 ), 12 * 46 AS col2
----
68
552

query II rowsort
SELECT ALL 0, - 41 AS col0
----
0
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT - 96 DIV + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3945
SELECT - 96 / + 10 AS col2
----
-9

query I rowsort
SELECT + 2 + - 42 AS col2
----
-40

query I rowsort
SELECT ALL 86 + + + ( + 36 ) AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT DISTINCT - MIN( + - 49 ), + 77 col0
----
49
77

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT - MIN ( + - 49 ), + 77 col0
----
49
77

query II rowsort
SELECT ALL 91 AS col2, 39
----
91
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT 31 * - - 51 * + COUNT( * )
----
1581

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT 31 * - - 51 * + COUNT ( * )
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + MIN( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3951
SELECT + MIN ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT + 49 * + COUNT( DISTINCT + 64 ) + 33 * - + 91 AS col1
----
-2954

skipif mysql # not compatible
query I rowsort label-3952
SELECT + 49 * + COUNT ( DISTINCT + 64 ) + 33 * - + 91 AS col1
----
-2954

query II rowsort
SELECT + ( - 59 ) + - 56 * 28, 78 AS col1
----
-1627
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL 88 * COUNT( * ) + + 41 + + 43 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL 88 * COUNT ( * ) + + 41 + + 43 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - 32 + MAX( ALL - 51 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-3955
SELECT - 32 + MAX ( ALL - 51 ) col2
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3956
SELECT + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT + + CAST ( NULL AS REAL ) col2
----
NULL

query II rowsort
SELECT + - 67, 21 AS col2
----
-67
21

query I rowsort
SELECT ALL 55 * - 87 AS col1
----
-4785

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL - CASE - + MIN( + 74 ) WHEN - - 27 THEN + - 80 WHEN 23 * - 67 + - - COUNT( + - 54 ) - + 61 * 42 THEN - 64 * COALESCE ( 18, - 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - CASE - + MIN ( + 74 ) WHEN - - 27 THEN + - 80 WHEN 23 * - 67 + - - COUNT ( + - 54 ) - + 61 * 42 THEN - 64 * COALESCE ( 18, - 56 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - COALESCE ( 18, + + CASE + 13 WHEN - 83 THEN 4 * - COUNT( * ) WHEN ( 84 ) + - SUM( 1 ) + 69 THEN NULL ELSE ( + 24 ) END + 51 * - 30, 96 )
----
-18

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - COALESCE ( 18, + + CASE + 13 WHEN - 83 THEN 4 * - COUNT ( * ) WHEN ( 84 ) + - SUM ( 1 ) + 69 THEN NULL ELSE ( + 24 ) END + 51 * - 30, 96 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT + + 75 DIV 26 * + 85 - + 95 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3961
SELECT + + 75 / 26 * + 85 - + 95 * + COUNT ( * )
----
75

query I rowsort
SELECT + 35 * + 70 col1
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL 4 * - + ( + CAST( - 68 AS SIGNED ) ) AS col1
----
272

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 4 * - + ( + CAST ( - 68 AS INTEGER ) ) AS col1
----
272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT 1 DIV + 14 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT 1 / + 14 * COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3965
SELECT ( - CAST( - 92 AS DECIMAL ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ( - CAST ( - 92 AS REAL ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 46 * - 29 * + - SUM( - 90 )
----
-120060

skipif mysql # not compatible
query I rowsort label-3966
SELECT 46 * - 29 * + - SUM ( - 90 )
----
-120060

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL - ( + - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - ( + - ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT ( CAST( CASE 40 WHEN + 90 THEN + + 45 * CASE WHEN NOT ( - COUNT( * ) ) IS NULL THEN NULL ELSE + + COUNT( * ) + - + 29 END END AS SIGNED ) ) + + 15 / 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT ( CAST ( CASE 40 WHEN + 90 THEN + + 45 * CASE WHEN NOT ( - COUNT ( * ) ) IS NULL THEN NULL ELSE + + COUNT ( * ) + - + 29 END END AS INTEGER ) ) + + 15 / 88 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL + CAST( + 33 AS SIGNED ) + + 50 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + CAST ( + 33 AS INTEGER ) + + 50 AS col1
----
83

query I rowsort
SELECT - 74 * ( - + 9 ) + + - 85 AS col0
----
581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3971
SELECT COUNT( * ) + + SUM( + COALESCE ( 11, - NULLIF ( - 90, + ( - + 43 ) + 12 ) * - CAST( + + ( + 4 ) AS SIGNED ) DIV + 91 + - 59 ) ) * - MIN( ALL 51 )
----
-560

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) + + SUM ( + COALESCE ( 11, - NULLIF ( - 90, + ( - + 43 ) + 12 ) * - CAST ( + + ( + 4 ) AS INTEGER ) / + 91 + - 59 ) ) * - MIN ( ALL 51 )
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT DISTINCT + 45 + - COUNT( * ) col0, 86 AS col1
----
44
86

skipif mysql # not compatible
query II rowsort label-3972
SELECT DISTINCT + 45 + - COUNT ( * ) col0, 86 AS col1
----
44
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT SUM( DISTINCT + 80 ) - - 16 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3973
SELECT SUM ( DISTINCT + 80 ) - - 16 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - 27 + + + MAX( + - 18 ) * + CASE - 38 WHEN + 78 + - + 64 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - 27 + + + MAX ( + - 18 ) * + CASE - 38 WHEN + 78 + - + 64 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 73 + - 63
----
10

query I rowsort
SELECT DISTINCT - 46 + + 76 AS col1
----
30

query I rowsort
SELECT - ( - - 36 ) + - - 88 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT 54 + + 21 + + CAST( + - 25 AS SIGNED ) + + CASE - + 0 WHEN + + 97 THEN - 13 END * - 5 * 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT 54 + + 21 + + CAST ( + - 25 AS INTEGER ) + + CASE - + 0 WHEN + + 97 THEN - 13 END * - 5 * 81 col0
----
NULL

query I rowsort
SELECT 13 * + - 43
----
-559

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT 43 DIV 98 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT 43 / 98 / 75
----
0

query I rowsort
SELECT + 56 * - - 5 + - - 1 * + 53 AS col2
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT 92 * - COUNT( * ) * - 56 AS col2
----
5152

skipif mysql # not compatible
query I rowsort label-3982
SELECT 92 * - COUNT ( * ) * - 56 AS col2
----
5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT ALL COALESCE ( COUNT( * ), + 63 * - MIN( + 27 ) + + - 27 ) DIV 28 DIV - + 84 + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL COALESCE ( COUNT ( * ), + 63 * - MIN ( + 27 ) + + - 27 ) / 28 / - + 84 + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT COUNT( * ) + + - 75 * + 72 AS col2
----
-5399

skipif mysql # not compatible
query I rowsort label-3984
SELECT COUNT ( * ) + + - 75 * + 72 AS col2
----
-5399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT + 83 + + 62 + - CAST( NULL AS SIGNED ) * + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 83 + + 62 + - CAST ( NULL AS INTEGER ) * + - 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3986
SELECT ALL - MAX( 61 ) AS col0, - 24 * + + 13 * + 98 * - 52 * - 56 * - - 87 * + + 23 * - 0, - + 97 + - 96 DIV - 14 AS col0
----
-61
0
-91

skipif mysql # not compatible
query III rowsort label-3986
SELECT ALL - MAX ( 61 ) AS col0, - 24 * + + 13 * + 98 * - 52 * - 56 * - - 87 * + + 23 * - 0, - + 97 + - 96 / - 14 AS col0
----
-61
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - + CASE + - 93 WHEN - COUNT( * ) / + - 69 * + MIN( - + 2 ) + - 15 + + AVG ( 39 ) THEN - - 2 * - 52 * 65 * 53 + + 35 - ( - ( + 35 ) ) * 54 ELSE 41 END
----
-41

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - + CASE + - 93 WHEN - COUNT ( * ) / + - 69 * + MIN ( - + 2 ) + - 15 + + AVG ( 39 ) THEN - - 2 * - 52 * 65 * 53 + + 35 - ( - ( + 35 ) ) * 54 ELSE 41 END
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3988
SELECT 61 + - NULLIF ( + CAST( NULL AS DECIMAL ), - - 78 ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT 61 + - NULLIF ( + CAST ( NULL AS REAL ), - - 78 ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT + COUNT( * ) * ( + COUNT( - - 84 ) ) + NULLIF ( + 72, - 77 ) + 31 * NULLIF ( + CAST( NULL AS SIGNED ), 48 * 18 + SUM( ( - 51 ) ) ) + - 15 * AVG ( DISTINCT - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT + COUNT ( * ) * ( + COUNT ( - - 84 ) ) + NULLIF ( + 72, - 77 ) + 31 * NULLIF ( + CAST ( NULL AS INTEGER ), 48 * 18 + SUM ( ( - 51 ) ) ) + - 15 * AVG ( DISTINCT - 26 ) AS col0
----
NULL

query I rowsort
SELECT ALL 89 * + 20 AS col2
----
1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT + + COUNT( * ) DIV 26 + - SUM( ALL + + 60 ) + - 84
----
-144

skipif mysql # not compatible
query I rowsort label-3991
SELECT + + COUNT ( * ) / 26 + - SUM ( ALL + + 60 ) + - 84
----
-144

query I rowsort
SELECT - 42 * - + 8 + + ( + 75 )
----
411

query I rowsort
SELECT ALL 63 * - + 69 AS col0
----
-4347

query I rowsort
SELECT 4 * - 43
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT 46 * + - CAST( 52 AS SIGNED )
----
-2392

skipif mysql # not compatible
query I rowsort label-3995
SELECT 46 * + - CAST ( 52 AS INTEGER )
----
-2392

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT ALL - 55 AS col1, COALESCE ( - + 13, - ( + + MIN( DISTINCT + 94 ) ) ) col2
----
-55
-13

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - 55 AS col1, COALESCE ( - + 13, - ( + + MIN ( DISTINCT + 94 ) ) ) col2
----
-55
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL 28 + + CAST( NULL AS SIGNED ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL 28 + + CAST ( NULL AS INTEGER ) + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT CASE + SUM( ALL + - 22 ) WHEN 32 * - COUNT( * ) THEN + 69 END + + ( - - 74 ) / - + ( - - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT CASE + SUM ( ALL + - 22 ) WHEN 32 * - COUNT ( * ) THEN + 69 END + + ( - - 74 ) / - + ( - - 65 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT ALL 51 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 51 / 91 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT 36 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT 36 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MIN ( - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT 49 DIV + + 25
----
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT 49 / + + 25
----
1

query I rowsort
SELECT 26 + 63 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + MAX( ALL + - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4004
SELECT + MAX ( ALL + - 47 ) AS col1
----
-47

query I rowsort
SELECT 64 + - 6
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + MAX( ALL - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4006
SELECT + MAX ( ALL - 21 )
----
-21

query II rowsort
SELECT 71 * 34 * - - 89 col0, - 36 AS col1
----
214846
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + 41 + + - CASE + - 43 WHEN + ( - 3 ) + - 80 * + 79 * + 80 THEN - ( - SUM( DISTINCT - 63 ) ) END + - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + 41 + + - CASE + - 43 WHEN + ( - 3 ) + - 80 * + 79 * + 80 THEN - ( - SUM ( DISTINCT - 63 ) ) END + - + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4009
SELECT 90 AS col0, + 82 + - 68 * + CAST( NULL AS SIGNED ) / - - 72 * + + 74 + + 7 * + + CASE NULLIF ( - ( + 23 ), 28 * + - ( - ( COUNT( DISTINCT 67 ) ) ) * COUNT( * ) ) WHEN 92 / - 63 THEN + 10 END
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4009
SELECT 90 AS col0, + 82 + - 68 * + CAST ( NULL AS INTEGER ) / - - 72 * + + 74 + + 7 * + + CASE NULLIF ( - ( + 23 ), 28 * + - ( - ( COUNT ( DISTINCT 67 ) ) ) * COUNT ( * ) ) WHEN 92 / - 63 THEN + 10 END
----
90
NULL

query I rowsort
SELECT DISTINCT 73 + - 55
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL MAX ( + 90 )
----
90

query I rowsort
SELECT ALL 49 - - 7
----
56

query I rowsort
SELECT ALL + 85 - - + 83
----
168

query I rowsort
SELECT - + 83 + - 50 + - 67 + + 89
----
-111

query I rowsort
SELECT - 92 * + 56 AS col2
----
-5152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL - - 73 * + CAST( NULL AS SIGNED ) + - 45 + 16 + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - - 73 * + CAST ( NULL AS INTEGER ) + - 45 + 16 + + 73 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4017
SELECT ALL + ( + COALESCE ( + 6, 59 DIV - 42 * 67, - 52 * + 0 ) ) AS col0, - 30 * + - 9
----
6
270

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL + ( + COALESCE ( + 6, 59 / - 42 * 67, - 52 * + 0 ) ) AS col0, - 30 * + - 9
----
6
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT - - 64 * + 81 * - 58 DIV + COUNT( * )
----
-300672

skipif mysql # not compatible
query I rowsort label-4018
SELECT - - 64 * + 81 * - 58 / + COUNT ( * )
----
-300672

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL - 58 DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - 58 / - 39 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + MAX( ALL - + 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4020
SELECT + MAX ( ALL - + 70 ) AS col2
----
-70

query I rowsort
SELECT ALL - + 81 * + 29
----
-2349

query I rowsort
SELECT DISTINCT - - 31 * - 46 * - 63 AS col1
----
89838

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT - SUM( DISTINCT - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - SUM ( DISTINCT - 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4024
SELECT DISTINCT COUNT( * ), + CASE 60 WHEN - 7 THEN SUM( + CAST( + 44 AS SIGNED ) ) END * - 45 / COUNT( * ) * + 86 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT COUNT ( * ), + CASE 60 WHEN - 7 THEN SUM ( + CAST ( + 44 AS INTEGER ) ) END * - 45 / COUNT ( * ) * + 86 AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT ALL + 26 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + 26 / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - 46 * ( - CASE + - 39 WHEN 72 * 70 + 59 THEN + MIN( 19 ) WHEN - 60 THEN NULLIF ( + MIN( 57 ), + 33 ) END ) * + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT - 46 * ( - CASE + - 39 WHEN 72 * 70 + 59 THEN + MIN ( 19 ) WHEN - 60 THEN NULLIF ( + MIN ( 57 ), + 33 ) END ) * + 81 col2
----
NULL

query I rowsort
SELECT ALL 61 * + + 77 + - + 33 AS col2
----
4664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT NULLIF ( + 9, - CAST( - - ( - 76 ) AS SIGNED ) DIV - 17 + - COUNT( * ) ) DIV + 7 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT NULLIF ( + 9, - CAST ( - - ( - 76 ) AS INTEGER ) / - 17 + - COUNT ( * ) ) / + 7 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4029
SELECT ALL 85 * - 42 + - + 54 DIV 64 AS col2, - 41 AS col1
----
-3570
-41

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL 85 * - 42 + - + 54 / 64 AS col2, - 41 AS col1
----
-3570
-41

query I rowsort
SELECT + 16 * - 0
----
0

query I rowsort
SELECT ALL - 90 * NULLIF ( ( 12 ), - - 8 ) + - 48 col1
----
-1128

query I rowsort
SELECT DISTINCT + ( + ( - + 66 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - 4 + - MIN( + ( + 84 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 4 + - MIN ( + ( + 84 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + CASE 41 WHEN + + 63 * + - 17 THEN + 39 + - 75 WHEN 4 THEN + 86 - - - 24 - - + ( + COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT + CASE 41 WHEN + + 63 * + - 17 THEN + 39 + - 75 WHEN 4 THEN + 86 - - - 24 - - + ( + COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT - 80 + COUNT( * ) + 7 * - - 58 AS col0, 42 AS col2
----
327
42

skipif mysql # not compatible
query II rowsort label-4035
SELECT - 80 + COUNT ( * ) + 7 * - - 58 AS col0, 42 AS col2
----
327
42

query I rowsort
SELECT + 86 * - 10 AS col0
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT NULLIF ( + COUNT( * ), - 40 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4037
SELECT NULLIF ( + COUNT ( * ), - 40 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT 97 * + + 24 + + 75 DIV + + 22 DIV + + COUNT( * )
----
2331

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT 97 * + + 24 + + 75 / + + 22 / + + COUNT ( * )
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + MIN( ALL 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4039
SELECT + MIN ( ALL 20 ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4040
SELECT ALL + CAST( - - 38 AS SIGNED ), ( - 56 ) AS col0
----
38
-56

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL + CAST ( - - 38 AS INTEGER ), ( - 56 ) AS col0
----
38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL - 14 * + COUNT( * ) + + 95
----
81

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - 14 * + COUNT ( * ) + + 95
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT + COALESCE ( - 43, + + COUNT( * ) + COUNT( * ) - + + 1 * 60 + + 88, + + 89 * - - 82 ), - 76 col1
----
-43
-76

skipif mysql # not compatible
query II rowsort label-4042
SELECT + COALESCE ( - 43, + + COUNT ( * ) + COUNT ( * ) - + + 1 * 60 + + 88, + + 89 * - - 82 ), - 76 col1
----
-43
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + 81 * + 95 - - MAX( DISTINCT - 50 ) * ( + MAX( ALL + - 34 ) )
----
9395

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 81 * + 95 - - MAX ( DISTINCT - 50 ) * ( + MAX ( ALL + - 34 ) )
----
9395

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + COUNT( * ) + + 89 * - + 39 AS col1
----
-3470

skipif mysql # not compatible
query I rowsort label-4044
SELECT + COUNT ( * ) + + 89 * - + 39 AS col1
----
-3470

query I rowsort
SELECT ALL 9 * + 61 - + 65
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + NULLIF ( + 21, COUNT( * ) ) * + + 72 * - + 44 * + - 46 * + - COUNT( * ) + - COALESCE ( - 27, + - 33 * + 76 * - - ( + - 65 ) ) col2
----
-3060261

skipif mysql # not compatible
query I rowsort label-4046
SELECT + NULLIF ( + 21, COUNT ( * ) ) * + + 72 * - + 44 * + - 46 * + - COUNT ( * ) + - COALESCE ( - 27, + - 33 * + 76 * - - ( + - 65 ) ) col2
----
-3060261

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL 25 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 25 / - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + MIN( - - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4048
SELECT + MIN ( - - 79 ) AS col0
----
79

query I rowsort
SELECT + 93 + + 5 - + 25 + - 63 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT 37 * + 18 + - ( 20 ) + - COALESCE ( - 63, - + 93 + 20 ) * COUNT( * ) AS col1
----
709

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT 37 * + 18 + - ( 20 ) + - COALESCE ( - 63, - + 93 + 20 ) * COUNT ( * ) AS col1
----
709

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + COUNT( * ) + + 92 * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4051
SELECT + COUNT ( * ) + + 92 * - COUNT ( * )
----
-91

query I rowsort
SELECT + + 43 * - - 58
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL - COUNT( * ) * + CASE + + 42 WHEN - 28 * 13 * + 48 THEN - + 99 + 61 * + + 12 WHEN - - 17 THEN + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - COUNT ( * ) * + CASE + + 42 WHEN - 28 * 13 * + 48 THEN - + 99 + 61 * + + 12 WHEN - - 17 THEN + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4054
SELECT DISTINCT + 4 * - - 74 + + 55 + + 95 col0, 11, - - COUNT( * ) * - COUNT( * ) AS col0
----
446
11
-1

skipif mysql # not compatible
query III rowsort label-4054
SELECT DISTINCT + 4 * - - 74 + + 55 + + 95 col0, 11, - - COUNT ( * ) * - COUNT ( * ) AS col0
----
446
11
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT - 29 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - 29 * COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4056
SELECT ALL COUNT( * ) * COUNT( * ) + - 33 + - NULLIF ( - + 72, + + 41 ) DIV ( + - 58 ) + 53 col2, 7 DIV - + 60 AS col2
----
20
0

skipif mysql # not compatible
query II rowsort label-4056
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 33 + - NULLIF ( - + 72, + + 41 ) / ( + - 58 ) + 53 col2, 7 / - + 60 AS col2
----
20
0

query I rowsort
SELECT DISTINCT - ( + 71 ) AS col2
----
-71

query I rowsort
SELECT - + 10 - - - ( 76 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + CASE COALESCE ( 59, + COUNT( * ) ) WHEN + + 36 * - 8 / 91 + + COUNT( * ) THEN 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + CASE COALESCE ( 59, + COUNT ( * ) ) WHEN + + 36 * - 8 / 91 + + COUNT ( * ) THEN 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + + COUNT( DISTINCT 80 ) + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4060
SELECT + + COUNT ( DISTINCT 80 ) + 75 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT - - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT ( - + COUNT( * ) ) AS col0, 88 col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-4062
SELECT ( - + COUNT ( * ) ) AS col0, 88 col2
----
-1
88

query I rowsort
SELECT ALL - 86 + - ( - 33 ) + 17 * + 26 AS col2
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - 28 + + 43 + - - COUNT( * ) + + + 9 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - 28 + + 43 + - - COUNT ( * ) + + + 9 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - SUM( ALL + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4065
SELECT - SUM ( ALL + 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - 40 + - + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4066
SELECT - 40 + - + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4067
SELECT ALL 46 + - + COUNT( * ) + - + 78 * + COUNT( * ) + - 27 DIV 43 * + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL 46 + - + COUNT ( * ) + - + 78 * + COUNT ( * ) + - 27 / 43 * + COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT ALL + 49 * 44 AS col0
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - 16 + - 66 + - 55 + - 82 - - 53 + ( - - COUNT( * ) )
----
-165

skipif mysql # not compatible
query I rowsort label-4069
SELECT - 16 + - 66 + - 55 + - 82 - - 53 + ( - - COUNT ( * ) )
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT + COUNT( * ) * + - 48 col0
----
-48

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + COUNT ( * ) * + - 48 col0
----
-48

query II rowsort
SELECT + 76, 66 + 25 AS col0
----
76
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4072
SELECT DISTINCT + 86 DIV - MIN( ALL 99 ), 46 AS col2
----
0
46

skipif mysql # not compatible
query II rowsort label-4072
SELECT DISTINCT + 86 / - MIN ( ALL 99 ), 46 AS col2
----
0
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4073
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN COALESCE ( + ( - + 64 ), - 65 DIV + 36 ) * - 46 DIV - 43 + + 5 + + 77 WHEN + 69 THEN NULL ELSE - - NULLIF ( 75, + NULLIF ( 96, + 35 + 36 ) ) END
----
-75

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN COALESCE ( + ( - + 64 ), - 65 / + 36 ) * - 46 / - 43 + + 5 + + 77 WHEN + 69 THEN NULL ELSE - - NULLIF ( 75, + NULLIF ( 96, + 35 + 36 ) ) END
----
-75

query I rowsort
SELECT ALL + 68 * + ( + 96 )
----
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL - MAX( 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - MAX ( 34 ) AS col1
----
-34

query I rowsort
SELECT ALL - 14 * 10
----
-140

query I rowsort
SELECT 54 * + + 17 * + - 28 * + 36 * 54 AS col2
----
-49968576

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT COUNT( 35 ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-4078
SELECT COUNT ( 35 ) * - 23
----
-23

query I rowsort
SELECT 60 + + + 19
----
79

query I rowsort
SELECT DISTINCT + 96 * + 83
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + - CASE - COUNT( * ) WHEN ( 75 ) - - - 29 THEN NULL ELSE 83 * - + 76 * + + 17 + + 23 END AS col1
----
107213

skipif mysql # not compatible
query I rowsort label-4081
SELECT + - CASE - COUNT ( * ) WHEN ( 75 ) - - - 29 THEN NULL ELSE 83 * - + 76 * + + 17 + + 23 END AS col1
----
107213

query I rowsort
SELECT ( + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT 98 * NULLIF ( COUNT( * ), + COUNT( * ) + + 11 ) * + + 88 AS col0
----
8624

skipif mysql # not compatible
query I rowsort label-4083
SELECT 98 * NULLIF ( COUNT ( * ), + COUNT ( * ) + + 11 ) * + + 88 AS col0
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + ( 63 ) * + COUNT( DISTINCT + 10 ) + + 94 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + ( 63 ) * + COUNT ( DISTINCT + 10 ) + + 94 AS col2
----
157

query I rowsort
SELECT - ( + - 97 ) + - - ( + 21 )
----
118

query I rowsort
SELECT DISTINCT - ( 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - MAX( DISTINCT - - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-4087
SELECT - MAX ( DISTINCT - - 20 ) col1
----
-20

query I rowsort
SELECT ALL + 50 + + 17 + 40 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - ( - + NULLIF ( + - COALESCE ( - - 20, COUNT( * ), + 62 ), + - NULLIF ( - - ( + 35 ), - 5 ) + + ( - ( 34 ) ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-4089
SELECT - ( - + NULLIF ( + - COALESCE ( - - 20, COUNT ( * ), + 62 ), + - NULLIF ( - - ( + 35 ), - 5 ) + + ( - ( 34 ) ) ) )
----
-20

query I rowsort
SELECT 70 - - 92 col2
----
162

query I rowsort
SELECT ( NULLIF ( - - 65, 75 - + - NULLIF ( + ( + 64 ), - 13 ) * 1 ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - SUM( - 30 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4092
SELECT - SUM ( - 30 ) + + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT ( - 35 ) + + 74 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4094
SELECT 90 + + 17 DIV 55 AS col1, CASE + + 2 WHEN + + NULLIF ( ( CASE - - 64 WHEN 23 THEN NULL WHEN + 67 THEN - + COALESCE ( - 25, + + COUNT( + + 83 ) ) * + 62 WHEN 16 - MIN( ALL 58 ) DIV + COUNT( * ) THEN + 51 ELSE NULL END ), - 68 ) THEN + ( 42 ) ELSE NULL END - + 36 AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4094
SELECT 90 + + 17 / 55 AS col1, CASE + + 2 WHEN + + NULLIF ( ( CASE - - 64 WHEN 23 THEN NULL WHEN + 67 THEN - + COALESCE ( - 25, + + COUNT ( + + 83 ) ) * + 62 WHEN 16 - MIN ( ALL 58 ) / + COUNT ( * ) THEN + 51 ELSE NULL END ), - 68 ) THEN + ( 42 ) ELSE NULL END - + 36 AS col1
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - COUNT( * ) * + - 12
----
12

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - COUNT ( * ) * + - 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + CASE - - 27 WHEN - MAX( - + 27 ) + - AVG ( DISTINCT - 40 ) * - 33 THEN + 46 END * + 32 / + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + CASE - - 27 WHEN - MAX ( - + 27 ) + - AVG ( DISTINCT - 40 ) * - 33 THEN + 46 END * + 32 / + 49 AS col0
----
NULL

query I rowsort
SELECT ALL - 98 * 96 AS col0
----
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL 96 + COUNT( 8 ) - + - 12 DIV + 76 * - - 43
----
97

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 96 + COUNT ( 8 ) - + - 12 / + 76 * - - 43
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + 24 + - 31 + + + COUNT( - + 4 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 24 + - 31 + + + COUNT ( - + 4 ) AS col0
----
-6

query II rowsort
SELECT DISTINCT 10 AS col0, 21
----
10
21

query I rowsort
SELECT NULLIF ( + 62, - 52 + 52 ) * + + 7
----
434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT 55 * COUNT( + 90 ) DIV + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT 55 * COUNT ( + 90 ) / + 36 AS col0
----
1

query I rowsort
SELECT DISTINCT ( - 54 ) - + ( + 41 ) * 4
----
-218

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT ALL 18, 69 - + + COALESCE ( + COUNT( DISTINCT - + 23 ), + - 98 + - 74, - - 37 ) * - 98 AS col1
----
18
167

skipif mysql # not compatible
query II rowsort label-4104
SELECT ALL 18, 69 - + + COALESCE ( + COUNT ( DISTINCT - + 23 ), + - 98 + - 74, - - 37 ) * - 98 AS col1
----
18
167

query II rowsort
SELECT 82, 56 * 33 AS col2
----
82
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ( + 4 ) * + 98 * - 5 + COALESCE ( COUNT( * ), 59, - 91 ) + + 45 AS col1
----
-1914

skipif mysql # not compatible
query I rowsort label-4106
SELECT ( + 4 ) * + 98 * - 5 + COALESCE ( COUNT ( * ), 59, - 91 ) + + 45 AS col1
----
-1914

query I rowsort
SELECT DISTINCT + 0 * - 83
----
0

query II rowsort
SELECT ALL - 90 AS col1, - 85 AS col0
----
-90
-85

query I rowsort
SELECT ALL + 82 * + 63
----
5166

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT 6 AS col1, 47 + + - COUNT( * ) AS col1
----
6
46

skipif mysql # not compatible
query II rowsort label-4110
SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1
----
6
46

query I rowsort
SELECT ALL 32 - - 14
----
46

query I rowsort
SELECT 70 * 56
----
3920

query I rowsort
SELECT 83 * - 35
----
-2905

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4114
SELECT 89 DIV - + 23 AS col1, CAST( NULL AS SIGNED ) + ( - ( - 6 ) ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4114
SELECT 89 / - + 23 AS col1, CAST ( NULL AS INTEGER ) + ( - ( - 6 ) ) AS col1
----
-3
NULL

query II rowsort
SELECT 35, - 39 col1
----
35
-39

query II rowsort
SELECT DISTINCT - 38, ( + - 28 ) AS col1
----
-38
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4117
SELECT ALL - + 67 DIV + - CASE WHEN NOT ( NULL ) IS NULL THEN COUNT( * ) ELSE + 7 + - CAST( 93 AS SIGNED ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - + 67 / + - CASE WHEN NOT ( NULL ) IS NULL THEN COUNT ( * ) ELSE + 7 + - CAST ( 93 AS INTEGER ) END AS col2
----
0

query II rowsort
SELECT DISTINCT - + 76, 5 AS col1
----
-76
5

query II rowsort
SELECT ALL - 56 AS col1, + NULLIF ( 65, - 60 ) - + 71 * + + 57
----
-56
-3982

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - COUNT( * ) + + + 21 + - ( - 28 )
----
48

skipif mysql # not compatible
query I rowsort label-4120
SELECT - COUNT ( * ) + + + 21 + - ( - 28 )
----
48

query I rowsort
SELECT ALL - 54 + - 89 * - + 29 + + 64 AS col0
----
2591

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT + COUNT( * ) col0, 34 AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-4122
SELECT + COUNT ( * ) col0, 34 AS col0
----
1
34

query I rowsort
SELECT 23 * + + 7 col1
----
161

query II rowsort
SELECT - 24, 99 AS col0
----
-24
99

query I rowsort
SELECT DISTINCT - 88 + 62 * - CASE + - 82 WHEN - 11 THEN 50 * + 7 ELSE + - 46 + 7 END
----
2330

query I rowsort
SELECT ALL + + 12 * - 65
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - + COUNT( * ) + - ( - 22 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - + COUNT ( * ) + - ( - 22 ) col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT - 13 AS col0, 93 * + COUNT( 80 ) AS col2
----
-13
93

skipif mysql # not compatible
query II rowsort label-4128
SELECT - 13 AS col0, 93 * + COUNT ( 80 ) AS col2
----
-13
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT ALL - COUNT( * ) + - 19 DIV 14
----
-2

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - COUNT ( * ) + - 19 / 14
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT MAX( + 30 ) - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4130
SELECT MAX ( + 30 ) - - COUNT ( * )
----
31

query I rowsort
SELECT ALL + + 20 * - 14 * + - 4 AS col2
----
1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + MIN( - ( + + 0 ) ) * - + COALESCE ( + 31, - - 46 ) DIV 32 + + 68 + + 44 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-4132
SELECT + MIN ( - ( + + 0 ) ) * - + COALESCE ( + 31, - - 46 ) / 32 + + 68 + + 44 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + - 7 + - 56 * + - 22 * COALESCE ( - SUM( + 29 ), + + COUNT( * ), - 72 )
----
-35735

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + - 7 + - 56 * + - 22 * COALESCE ( - SUM ( + 29 ), + + COUNT ( * ), - 72 )
----
-35735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT + CAST( NULL AS SIGNED ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + CAST ( NULL AS INTEGER ) * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT CASE + COUNT( * ) WHEN 27 THEN 7 END, + 30 + + 63 * + 15 * - - AVG ( ALL + 77 ) + + - CASE + 23 WHEN + - 61 THEN - + 63 * + 34 + 55 + ( + 97 ) * + 53 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT CASE + COUNT ( * ) WHEN 27 THEN 7 END, + 30 + + 63 * + 15 * - - AVG ( ALL + 77 ) + + - CASE + 23 WHEN + - 61 THEN - + 63 * + 34 + 55 + ( + 97 ) * + 53 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 20 + ( - 25 )
----
-5

query I rowsort
SELECT 55 - 42 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT DISTINCT 16 DIV + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT 16 / + COUNT ( * )
----
16

query I rowsort
SELECT - 81 + + + 10 col2
----
-71

query I rowsort
SELECT ALL 92 - + - ( + 82 )
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL 51 * - - 24 * - 92 * - - MAX( - + CAST( NULL AS SIGNED ) ) * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL 51 * - - 24 * - 92 * - - MAX ( - + CAST ( NULL AS INTEGER ) ) * + 12 AS col2
----
NULL

query I rowsort
SELECT + 57 + + 10 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - COALESCE ( 46, + - 40 * 7 + + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4143
SELECT - COALESCE ( 46, + - 40 * 7 + + COUNT ( * ) )
----
-46

query I rowsort
SELECT DISTINCT + 59 - - - 2 + + + 25 + - 54
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT - MIN( - + 60 ) AS col2, - 65
----
60
-65

skipif mysql # not compatible
query II rowsort label-4145
SELECT - MIN ( - + 60 ) AS col2, - 65
----
60
-65

query I rowsort
SELECT ALL 45 * 68 * + ( - 41 ) col0
----
-125460

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + SUM( ALL + - 7 ) + + 15 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4147
SELECT + SUM ( ALL + - 7 ) + + 15 AS col1
----
8

query I rowsort
SELECT + 27 + - - 77 + + 57
----
161

query I rowsort
SELECT DISTINCT 91 * + 68 * - + 62
----
-383656

query I rowsort
SELECT + ( - + ( - - 63 ) ) + + - 7 col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4151
SELECT ALL 9 * 46 col1, + COALESCE ( CASE + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( * ) + - ( - + COALESCE ( + 54, + 43 - - + 62 * - 72 ) ) WHEN 31 * + - ( + + 4 ) * - + 17 * + CAST( NULL AS SIGNED ) + 12 THEN - 14 + 4 END, - 27 ) + ( 22 ) AS col1
----
414
-5

skipif mysql # not compatible
query II rowsort label-4151
SELECT ALL 9 * 46 col1, + COALESCE ( CASE + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - ( - + COALESCE ( + 54, + 43 - - + 62 * - 72 ) ) WHEN 31 * + - ( + + 4 ) * - + 17 * + CAST ( NULL AS INTEGER ) + 12 THEN - 14 + 4 END, - 27 ) + ( 22 ) AS col1
----
414
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + 28 * - 76 + + + 69 - + - 30 - + COUNT( + + 94 )
----
-2030

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 28 * - 76 + + + 69 - + - 30 - + COUNT ( + + 94 )
----
-2030

query I rowsort
SELECT + ( - + 16 ) * 24 * 66
----
-25344

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT 51 DIV + 15 + - 79
----
-76

skipif mysql # not compatible
query I rowsort label-4154
SELECT 51 / + 15 + - 79
----
-76

query I rowsort
SELECT ALL + 34 * + 42 + - + 95
----
1333

query I rowsort
SELECT ALL - 50 * 81 + - 42 AS col0
----
-4092

query I rowsort
SELECT DISTINCT 85 * - 42 + + 77 AS col2
----
-3493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT - CASE NULLIF ( - + 16, + + 11 - - - 62 ) WHEN - 29 THEN - COUNT( * ) ELSE NULL END * 59 + + - NULLIF ( - 81, + 99 + COALESCE ( - - COUNT( * ), + 33 + + 40 + - 80 - + + COUNT( * ) + - CAST( NULL AS SIGNED ) * 88 * + 94, 21 ) * AVG ( - 68 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - CASE NULLIF ( - + 16, + + 11 - - - 62 ) WHEN - 29 THEN - COUNT ( * ) ELSE NULL END * 59 + + - NULLIF ( - 81, + 99 + COALESCE ( - - COUNT ( * ), + 33 + + 40 + - 80 - + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 88 * + 94, 21 ) * AVG ( - 68 ) ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4159
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( 32 ) + + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( 32 ) + + - 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT DISTINCT - 36 * 1 * - 30 + - - COUNT( * ) + ( + - NULLIF ( + 74, - - CAST( NULL AS SIGNED ) ) ) * + 22
----
-547

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - 36 * 1 * - 30 + - - COUNT ( * ) + ( + - NULLIF ( + 74, - - CAST ( NULL AS INTEGER ) ) ) * + 22
----
-547

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + - NULLIF ( MIN( + 80 ), 86 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + - NULLIF ( MIN ( + 80 ), 86 ) AS col0
----
-80

query I rowsort
SELECT + 51 * 22 + - 31 + 88 col0
----
1179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT - - 48 / + CASE 67 WHEN + + COUNT( * ) * + 64 THEN NULL WHEN + 37 * + - 37 * - 97 * + 25 * 36 / + - 62 * 77 THEN 57 WHEN - ( + CAST( + - 79 AS SIGNED ) ) THEN - 15 END / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - - 48 / + CASE 67 WHEN + + COUNT ( * ) * + 64 THEN NULL WHEN + 37 * + - 37 * - 97 * + 25 * 36 / + - 62 * 77 THEN 57 WHEN - ( + CAST ( + - 79 AS INTEGER ) ) THEN - 15 END / 35
----
NULL

query II rowsort
SELECT - - 62 + 23, - ( + - 64 ) AS col1
----
85
64

query I rowsort
SELECT DISTINCT + + 14 * + 78 + + 50
----
1142

query I rowsort
SELECT - 34 + 12 * - 51
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - + 29 * - MAX( + 87 ) AS col1
----
2523

skipif mysql # not compatible
query I rowsort label-4168
SELECT - + 29 * - MAX ( + 87 ) AS col1
----
2523

query I rowsort
SELECT + 87 * + 41
----
3567

query II rowsort
SELECT - 4, - NULLIF ( - 21, + - 9 ) * + + 23 col1
----
-4
483

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + 87 + COUNT( * ) + + 27 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-4171
SELECT + 87 + COUNT ( * ) + + 27 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - SUM( - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4172
SELECT - SUM ( - 52 )
----
52

query I rowsort
SELECT DISTINCT - 99 * 94 col0
----
-9306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL CAST( + + 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL CAST ( + + 16 AS INTEGER ) AS col1
----
16

query I rowsort
SELECT ALL ( - 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( DISTINCT 76 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 76 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 24, + 71 col2
----
24
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + 3 * ( - + 43 ) * MIN( ALL + - 49 ) * - ( - 32 )
----
202272

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 3 * ( - + 43 ) * MIN ( ALL + - 49 ) * - ( - 32 )
----
202272

query I rowsort
SELECT - 15 - - - 77 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT + 21 / COUNT( * ) / - + 2 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + 21 / COUNT ( * ) / - + 2 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT - 85 DIV + 19 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4181
SELECT - 85 / + 19 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - SUM( - 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4182
SELECT - SUM ( - 75 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4183
SELECT CAST( NULLIF ( 48, + + ( 88 ) * + 83 + - + 87 + + 54 ) AS SIGNED ), 94 * + 47 * + 58 - - NULLIF ( 58, + + 1 ) AS col1
----
48
256302

skipif mysql # not compatible
query II rowsort label-4183
SELECT CAST ( NULLIF ( 48, + + ( 88 ) * + 83 + - + 87 + + 54 ) AS INTEGER ), 94 * + 47 * + 58 - - NULLIF ( 58, + + 1 ) AS col1
----
48
256302

query II rowsort
SELECT ALL + 44 col1, 11 col0
----
44
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4185
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 17 - + 64 * - + 95 AS col1
----
NULL
6097

skipif mysql # not compatible
query II rowsort label-4185
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 17 - + 64 * - + 95 AS col1
----
NULL
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL - 6 DIV 84 + + 95 + + 95 * - 81 AS col1
----
-7600

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - 6 / 84 + + 95 + + 95 * - 81 AS col1
----
-7600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT + COUNT( * ) - - + COALESCE ( - + COUNT( * ), - 78 ) DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-4187
SELECT + COUNT ( * ) - - + COALESCE ( - + COUNT ( * ), - 78 ) / 40
----
1

query I rowsort
SELECT ALL - 47 * 94 AS col0
----
-4418

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT + 7 DIV - - 27
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT + 7 / - - 27
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT ALL + 25 DIV - 49 * + 74 + + - 70 - + 17
----
-87

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + 25 / - 49 * + 74 + + - 70 - + 17
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + ( + + ( 62 ) ) + + MIN( DISTINCT 76 ) - - 45 + - - ( + - COALESCE ( + 92, ( + COALESCE ( - COUNT( * ), + 38 ) ), MAX( + 92 ) ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4191
SELECT + ( + + ( 62 ) ) + + MIN ( DISTINCT 76 ) - - 45 + - - ( + - COALESCE ( + 92, ( + COALESCE ( - COUNT ( * ), + 38 ) ), MAX ( + 92 ) ) ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT ALL + COUNT( * ) AS col0, - 77 col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL + COUNT ( * ) AS col0, - 77 col1
----
1
-77

query I rowsort
SELECT ALL - 24 * - + 51 + + 31
----
1255

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + + 33 + + + ( - COUNT( * ) ) col1
----
32

skipif mysql # not compatible
query I rowsort label-4194
SELECT + + 33 + + + ( - COUNT ( * ) ) col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL + - CAST( 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + - CAST ( 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4196
SELECT + 9 AS col0, - COUNT( * ) col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-4196
SELECT + 9 AS col0, - COUNT ( * ) col0
----
9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - NULLIF ( + 89, + COUNT( * ) / + + 64 - 58 ) * - 20
----
1780

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - NULLIF ( + 89, + COUNT ( * ) / + + 64 - 58 ) * - 20
----
1780

query I rowsort
SELECT ALL NULLIF ( - 27, 14 ) * + 46 AS col2
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + CASE - + 61 WHEN + COUNT( * ) THEN - + 38 * + 4 * - 3 - + 59 - 30 END * COUNT( - 38 ) - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + CASE - + 61 WHEN + COUNT ( * ) THEN - + 38 * + 4 * - 3 - + 59 - 30 END * COUNT ( - 38 ) - 99
----
NULL

query I rowsort
SELECT DISTINCT - 20 * - 78 AS col2
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT - COUNT( ALL + 29 ) DIV 22 * + - 36 * + 82
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT - COUNT ( ALL + 29 ) / 22 * + - 36 * + 82
----
0

query I rowsort
SELECT 14 * + 66 * + 56 + + 60
----
51804

query I rowsort
SELECT + 72 + + + 72
----
144

query I rowsort
SELECT + COALESCE ( 43, + 26 + - 68 + 30 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT COUNT( * ) * + - 65 * 72 * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT COUNT ( * ) * + - 65 * 72 * - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 81 * - 9
----
-729

query I rowsort
SELECT 55 - 45 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4208
SELECT 58 * NULLIF ( - 30, - 40 ) AS col0, CAST( NULL AS SIGNED )
----
-1740
NULL

skipif mysql # not compatible
query II rowsort label-4208
SELECT 58 * NULLIF ( - 30, - 40 ) AS col0, CAST ( NULL AS INTEGER )
----
-1740
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL + COUNT( * ) * 74 * + 62 AS col0
----
4588

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + COUNT ( * ) * 74 * + 62 AS col0
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT 74 * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4210
SELECT 74 * + COUNT ( * ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT ALL + 50 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + 50 / - 79 AS col1
----
0

query I rowsort
SELECT ( + 41 ) + 53
----
94

query I rowsort
SELECT 48 * + + 89
----
4272

query I rowsort
SELECT 83 * - - 27 * - 21
----
-47061

query I rowsort
SELECT 54 + + 15 * - + 81 * 63 * + 54
----
-4133376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT 64 + - + CAST( NULL AS SIGNED ) * - - 48 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT 64 + - + CAST ( NULL AS INTEGER ) * - - 48 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT SUM( DISTINCT + - 60 ) - - 32 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4217
SELECT SUM ( DISTINCT + - 60 ) - - 32 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4218
SELECT 73 + + CAST( - ( + 45 ) AS SIGNED ) col0, - 32 * + COUNT( * ) + ( + ( CAST( NULL AS SIGNED ) ) )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4218
SELECT 73 + + CAST ( - ( + 45 ) AS INTEGER ) col0, - 32 * + COUNT ( * ) + ( + ( CAST ( NULL AS INTEGER ) ) )
----
28
NULL

query I rowsort
SELECT ALL - 51 + - 86 AS col0
----
-137

query II rowsort
SELECT 80 + + 55, 63 AS col0
----
135
63

query I rowsort
SELECT ALL - 78 * + 86
----
-6708

query I rowsort
SELECT 89 + - 41 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - 61 * SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - 61 * SUM ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL 8 + + COUNT ( * )
----
9

query I rowsort
SELECT 99 + - 26
----
73

query II rowsort
SELECT ALL - 52 + COALESCE ( 57, 58 ) AS col1, ( 31 ) col0
----
5
31

query II rowsort
SELECT 8 + 13, - 6 AS col1
----
21
-6

query I rowsort
SELECT ALL - + 70 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL - + MAX( - - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - + MAX ( - - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL 10 - - + MAX( DISTINCT + 73 ) - + 40 + + - 89
----
-46

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 10 - - + MAX ( DISTINCT + 73 ) - + 40 + + - 89
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - CASE + - COUNT( * ) WHEN - 93 / - 47 * 76 THEN + - 98 - - 38 + + - 75 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT - CASE + - COUNT ( * ) WHEN - 93 / - 47 * 76 THEN + - 98 - - 38 + + - 75 END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT ALL + - 88 DIV + + 61
----
-1

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + - 88 / + + 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL 33 * + + COUNT( * ) - COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 33 * + + COUNT ( * ) - COUNT ( * ) col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + COUNT( * ) + + + 83 * 53 AS col1
----
4400

skipif mysql # not compatible
query I rowsort label-4234
SELECT + COUNT ( * ) + + + 83 * 53 AS col1
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + CASE 44 WHEN + 12 THEN 11 WHEN - 67 THEN NULL ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT + CASE 44 WHEN + 12 THEN 11 WHEN - 67 THEN NULL ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT CASE + AVG ( ALL + - 29 ) WHEN - ( ( CAST( NULL AS SIGNED ) ) ) + 96 * + COALESCE ( - 29, + 65 ) THEN - AVG ( ALL 16 ) WHEN + 83 + 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT CASE + AVG ( ALL + - 29 ) WHEN - ( ( CAST ( NULL AS INTEGER ) ) ) + 96 * + COALESCE ( - 29, + 65 ) THEN - AVG ( ALL 16 ) WHEN + 83 + 78 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4237
SELECT ALL + CAST( COALESCE ( 41, CAST( - - 88 AS DECIMAL ) ) AS SIGNED ) * + COALESCE ( 58, + COUNT( * ) + 69 - - - NULLIF ( + 22, + + 75 * + 68 * + + AVG ( DISTINCT - - 13 ) * - 83 ) + COUNT( * ) DIV COUNT( * ) )
----
2378

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + CAST ( COALESCE ( 41, CAST ( - - 88 AS REAL ) ) AS INTEGER ) * + COALESCE ( 58, + COUNT ( * ) + 69 - - - NULLIF ( + 22, + + 75 * + 68 * + + AVG ( DISTINCT - - 13 ) * - 83 ) + COUNT ( * ) / COUNT ( * ) )
----
2378

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT + 69 + + 0 DIV + 89 * - 86 * - ( - 63 )
----
69

skipif mysql # not compatible
query I rowsort label-4238
SELECT + 69 + + 0 / + 89 * - 86 * - ( - 63 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 30 * + - COUNT( * ) - - 40 - 76 * 87 AS col2
----
-6542

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 30 * + - COUNT ( * ) - - 40 - 76 * 87 AS col2
----
-6542

query I rowsort
SELECT - 96 * - ( + 54 )
----
5184

query I rowsort
SELECT DISTINCT - ( + + 32 ) AS col2
----
-32

query I rowsort
SELECT ALL 22 * - 25 * 33 AS col2
----
-18150

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT - COUNT( * ) AS col1, ( + + 52 )
----
-1
52

skipif mysql # not compatible
query II rowsort label-4243
SELECT - COUNT ( * ) AS col1, ( + + 52 )
----
-1
52

query I rowsort
SELECT DISTINCT 68 * - - 65
----
4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4245
SELECT ( 30 ) DIV + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4245
SELECT ( 30 ) / + COUNT ( * ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT + CAST( NULL AS SIGNED ) * - ( + 87 ) * + CAST( + - 52 AS SIGNED ) - - CASE + 9 WHEN + + ( - + 76 ) * + 40 * - - 70 THEN - + MIN( ALL - 73 ) WHEN - 98 THEN NULL ELSE 23 END + + COUNT( * ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT + CAST ( NULL AS INTEGER ) * - ( + 87 ) * + CAST ( + - 52 AS INTEGER ) - - CASE + 9 WHEN + + ( - + 76 ) * + 40 * - - 70 THEN - + MIN ( ALL - 73 ) WHEN - 98 THEN NULL ELSE 23 END + + COUNT ( * ) + - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL 22, 40 col1
----
22
40

query II rowsort
SELECT - 23 AS col2, + 54
----
-23
54

query I rowsort
SELECT 99 + 41
----
140

query I rowsort
SELECT ALL 80 + + 85 AS col1
----
165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4251
SELECT ( NULLIF ( CAST( - 25 AS SIGNED ), + - 85 ) ) DIV - 26 + + 1 + + + ( - 90 ) + + 95 * + + 97 * - NULLIF ( - 55, + + 28 )
----
506736

skipif mysql # not compatible
query I rowsort label-4251
SELECT ( NULLIF ( CAST ( - 25 AS INTEGER ), + - 85 ) ) / - 26 + + 1 + + + ( - 90 ) + + 95 * + + 97 * - NULLIF ( - 55, + + 28 )
----
506736

query I rowsort
SELECT ALL + 19 + + 50
----
69

query I rowsort
SELECT DISTINCT 67 * 63
----
4221

query I rowsort
SELECT DISTINCT 85 + + 35 * + + 31 + ( - + 27 ) + - 21 * + 40
----
303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4255
SELECT ALL + 92 + + COUNT( * ) + - 7 AS col0, CAST( - + 31 AS SIGNED )
----
86
-31

skipif mysql # not compatible
query II rowsort label-4255
SELECT ALL + 92 + + COUNT ( * ) + - 7 AS col0, CAST ( - + 31 AS INTEGER )
----
86
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT 99 DIV + COUNT( 30 )
----
99

skipif mysql # not compatible
query I rowsort label-4256
SELECT 99 / + COUNT ( 30 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL COUNT( * ) + + + 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL COUNT ( * ) + + + 21 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4258
SELECT 23 AS col0, 21 * + + CASE + 57 WHEN + 61 THEN 46 WHEN - + ( CASE - + 0 WHEN 1 THEN + + 71 - 80 * - 43 * - - 68 * + + 65 WHEN + + 22 THEN + 62 / - NULLIF ( + + COALESCE ( - COUNT( * ), 46 ), 63 ) * - 22 ELSE NULL END ) THEN CAST( 14 AS SIGNED ) * NULLIF ( 15 * AVG ( DISTINCT + 90 ), 88 ) - 9 END * + 91
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4258
SELECT 23 AS col0, 21 * + + CASE + 57 WHEN + 61 THEN 46 WHEN - + ( CASE - + 0 WHEN 1 THEN + + 71 - 80 * - 43 * - - 68 * + + 65 WHEN + + 22 THEN + 62 / - NULLIF ( + + COALESCE ( - COUNT ( * ), 46 ), 63 ) * - 22 ELSE NULL END ) THEN CAST ( 14 AS INTEGER ) * NULLIF ( 15 * AVG ( DISTINCT + 90 ), 88 ) - 9 END * + 91
----
23
NULL

query II rowsort
SELECT ALL 99 col2, - 68 * - - 72 * NULLIF ( - 72, + + 85 )
----
99
352512

query I rowsort
SELECT 89 - - 31 * ( 50 )
----
1639

query I rowsort
SELECT ALL + 63 * - 4 + 82
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-4262
SELECT - + CASE 40 WHEN + 61 THEN NULL WHEN + + 46 THEN NULL WHEN - - MAX( ALL + 30 ) THEN + + 29 - 29 + - COUNT( * ) * + 14 END AS col2, 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4262
SELECT - + CASE 40 WHEN + 61 THEN NULL WHEN + + 46 THEN NULL WHEN - - MAX ( ALL + 30 ) THEN + + 29 - 29 + - COUNT ( * ) * + 14 END AS col2, 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - 11 * + COUNT( * ) + 25
----
14

skipif mysql # not compatible
query I rowsort label-4263
SELECT - 11 * + COUNT ( * ) + 25
----
14

query I rowsort
SELECT ALL - + 37 * + - 70 * 99 * + + 85 - + + ( - 3 ) + - + 18 AS col0
----
21794835

query I rowsort
SELECT ALL + + 86 * - 86
----
-7396

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT + COUNT( * ), 15 + - ( - 50 ) + + + 5 + - 45 * + 26 AS col2
----
1
-1100

skipif mysql # not compatible
query II rowsort label-4266
SELECT + COUNT ( * ), 15 + - ( - 50 ) + + + 5 + - 45 * + 26 AS col2
----
1
-1100

query I rowsort
SELECT DISTINCT - - 26 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT - - 30 DIV ( + 25 ) + 23 DIV - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT - - 30 / ( + 25 ) + 23 / - 21 AS col2
----
0

query I rowsort
SELECT - - 25 * + - 43 * + 43 + + 12
----
-46213

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL + COUNT( DISTINCT 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + COUNT ( DISTINCT 74 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4271
SELECT ( + + ( + - NULLIF ( + 62, COALESCE ( - CAST( NULL AS DECIMAL ), 87 * - SUM( 8 ) + 74, + 82 ) ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4271
SELECT ( + + ( + - NULLIF ( + 62, COALESCE ( - CAST ( NULL AS REAL ), 87 * - SUM ( 8 ) + 74, + 82 ) ) ) ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT COUNT( * ) * + 5 + - 77 + - COUNT( + 39 ) * CAST( - - ( + + 40 ) AS SIGNED ) AS col2, + 85 + + - COUNT( * ) col1
----
-112
84

skipif mysql # not compatible
query II rowsort label-4272
SELECT COUNT ( * ) * + 5 + - 77 + - COUNT ( + 39 ) * CAST ( - - ( + + 40 ) AS INTEGER ) AS col2, + 85 + + - COUNT ( * ) col1
----
-112
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT ALL + 70 DIV - - 26 col2
----
2

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + 70 / - - 26 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - SUM( ALL NULLIF ( + 26, + 94 ) ) * + 8 * 90 * + 28 * + + COUNT( * )
----
-524160

skipif mysql # not compatible
query I rowsort label-4274
SELECT - SUM ( ALL NULLIF ( + 26, + 94 ) ) * + 8 * 90 * + 28 * + + COUNT ( * )
----
-524160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4275
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - COUNT( ALL - 47 ) * + - 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4276
SELECT - COUNT ( ALL - 47 ) * + - 11 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4277
SELECT DISTINCT + ( - COUNT( * ) ) DIV - 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + ( - COUNT ( * ) ) / - 57 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - COUNT( * ) + + 76 col2
----
75

skipif mysql # not compatible
query I rowsort label-4278
SELECT - COUNT ( * ) + + 76 col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4279
SELECT ALL + CASE CAST( + 73 AS DECIMAL ) WHEN + 22 THEN - MAX( - + 91 ) - - 11 + + 20 - - COUNT( * ) / 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + CASE CAST ( + 73 AS REAL ) WHEN + 22 THEN - MAX ( - + 91 ) - - 11 + + 20 - - COUNT ( * ) / 95 END
----
NULL

query I rowsort
SELECT + + 98 * + - 32
----
-3136

query I rowsort
SELECT ALL + COALESCE ( + 47, 25 * + 34 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - 16 + - SUM( - 51 )
----
35

skipif mysql # not compatible
query I rowsort label-4282
SELECT - 16 + - SUM ( - 51 )
----
35

query II rowsort
SELECT + 9, 60 + 49 AS col0
----
9
109

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT + COUNT( * ) AS col2, 53 col1
----
1
53

skipif mysql # not compatible
query II rowsort label-4284
SELECT + COUNT ( * ) AS col2, 53 col1
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL 86 + - COUNT( * ) col2
----
85

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL 86 + - COUNT ( * ) col2
----
85

query I rowsort
SELECT ALL 80 + - 88
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL - 24 + - 86 + 15 + COUNT( * ) + - 47
----
-141

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - 24 + - 86 + 15 + COUNT ( * ) + - 47
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + ( - CASE 99 WHEN - 11 THEN - 21 / 53 * - 54 WHEN - COUNT( * ) * - + 66 / + 63 THEN + 53 END ) - + - 42 + + 69 * + ( ( 94 ) ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT + ( - CASE 99 WHEN - 11 THEN - 21 / 53 * - 54 WHEN - COUNT ( * ) * - + 66 / + 63 THEN + 53 END ) - + - 42 + + 69 * + ( ( 94 ) ) + - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + COUNT( * ) + ( 72 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4289
SELECT + COUNT ( * ) + ( 72 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL 20 + 85 DIV + 79
----
21

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL 20 + 85 / + 79
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT ALL 26 + + - COUNT( * ) AS col0, 62 * 44
----
25
2728

skipif mysql # not compatible
query II rowsort label-4291
SELECT ALL 26 + + - COUNT ( * ) AS col0, 62 * 44
----
25
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - SUM( DISTINCT - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4292
SELECT - SUM ( DISTINCT - 72 ) AS col2
----
72

query I rowsort
SELECT + ( - - 6 ) + + 37
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4294
SELECT + 8 * - - CASE - COUNT( * ) WHEN 58 THEN 58 WHEN + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) THEN NULL ELSE + 2 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4294
SELECT + 8 * - - CASE - COUNT ( * ) WHEN 58 THEN 58 WHEN + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) THEN NULL ELSE + 2 END AS col0
----
16

query I rowsort
SELECT + 84 - - + 7 + - 64 * - 17 * - + NULLIF ( + 59, + + 55 ) + + + 4 * - 7 * - 41 col0
----
-62953

query I rowsort
SELECT - 43 * 63 * 93
----
-251937

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - MAX( ( - 58 ) ) - 15 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4297
SELECT - MAX ( ( - 58 ) ) - 15 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT ALL 66 - + - CAST( NULL AS SIGNED ) * + SUM( + - 75 ) + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 66 - + - CAST ( NULL AS INTEGER ) * + SUM ( + - 75 ) + + - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT SUM( + ( - ( + + CAST( - - 31 AS SIGNED ) ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT SUM ( + ( - ( + + CAST ( - - 31 AS INTEGER ) ) ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4300
SELECT COUNT( * ) AS col0, - 27, - - NULLIF ( - COUNT( * ), - + 5 * 77 - - COUNT( * ) + - - 99 * ( 13 ) + - + 74 + - - 52 * + - NULLIF ( 11, + CASE 34 WHEN - 65 THEN - 90 WHEN - 89 THEN NULL ELSE NULL END ) + - 63 + 12 + - ( 84 ) / + 92 * ( 72 ) * 39 ) * CAST( NULL AS DECIMAL ) AS col2
----
1
-27
NULL

skipif mysql # not compatible
query III rowsort label-4300
SELECT COUNT ( * ) AS col0, - 27, - - NULLIF ( - COUNT ( * ), - + 5 * 77 - - COUNT ( * ) + - - 99 * ( 13 ) + - + 74 + - - 52 * + - NULLIF ( 11, + CASE 34 WHEN - 65 THEN - 90 WHEN - 89 THEN NULL ELSE NULL END ) + - 63 + 12 + - ( 84 ) / + 92 * ( 72 ) * 39 ) * CAST ( NULL AS REAL ) AS col2
----
1
-27
NULL

query I rowsort
SELECT + + 95 + - 72 AS col1
----
23

query II rowsort
SELECT DISTINCT + 56 col0, + 66
----
56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT - ( 62 ) DIV MIN( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-4303
SELECT - ( 62 ) / MIN ( 46 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT ALL 68 DIV - NULLIF ( - 50, 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL 68 / - NULLIF ( - 50, 21 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT + 42 * CAST( + - 14 AS SIGNED ) + 8 * + COUNT( * )
----
-580

skipif mysql # not compatible
query I rowsort label-4305
SELECT + 42 * CAST ( + - 14 AS INTEGER ) + 8 * + COUNT ( * )
----
-580

query I rowsort
SELECT + + 69 * 64 - - ( - 92 ) * + - 27 col1
----
6900

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT COUNT( * ) AS col0, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-4307
SELECT COUNT ( * ) AS col0, - 2
----
1
-2

query I rowsort
SELECT ALL + + 33 * + 99
----
3267

query I rowsort
SELECT + NULLIF ( - - 21, - 89 ) col0
----
21

query II rowsort
SELECT ALL + 89 AS col0, + 92 AS col1
----
89
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT 28 * COUNT( * ) + - + MAX( ALL + COALESCE ( 30, + 49 ) ) + + + 28 + - 67 * + - COUNT( * ) / - 30 * - - CAST( NULL AS SIGNED ) * ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT 28 * COUNT ( * ) + - + MAX ( ALL + COALESCE ( 30, + 49 ) ) + + + 28 + - 67 * + - COUNT ( * ) / - 30 * - - CAST ( NULL AS INTEGER ) * ( 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + 39 * + 52 + - 87 + - 6 + + - COUNT( * ) AS col2
----
1934

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + 39 * + 52 + - 87 + - 6 + + - COUNT ( * ) AS col2
----
1934

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT - MIN( + - 0 ) + + 19
----
19

skipif mysql # not compatible
query I rowsort label-4314
SELECT - MIN ( + - 0 ) + + 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT + 74 + + + 34 * - 8 + CAST( NULL AS SIGNED ) * 54 * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 74 + + + 34 * - 8 + CAST ( NULL AS INTEGER ) * 54 * + 80 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 77 * - 69 * - 79 + - 49
----
419678

query II rowsort
SELECT ALL + ( + 94 ) AS col2, 57
----
94
57

query I rowsort
SELECT ALL 33 * + - 82 AS col0
----
-2706

query I rowsort
SELECT - 38 + - 96
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT 14 * + 97 + + + CAST( NULL AS SIGNED ) + ( 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT 14 * + 97 + + + CAST ( NULL AS INTEGER ) + ( 55 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4321
SELECT - CAST( NULL AS SIGNED ) + + + 88 * + + 30 AS col0, + 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4321
SELECT - CAST ( NULL AS INTEGER ) + + + 88 * + + 30 AS col0, + 92
----
NULL
92

query I rowsort
SELECT ALL - 14 * + + 22 + + 82 * + ( 98 )
----
7728

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - NULLIF ( 62, - - ( - - COUNT( * ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4323
SELECT - NULLIF ( 62, - - ( - - COUNT ( * ) ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL + COUNT( * ) * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + COUNT ( * ) * - 98 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT - CASE + 84 WHEN - - 34 * + + 43 / + 31 * - 22 + + + COUNT( * ) + + + COUNT( * ) THEN - 90 WHEN COUNT( * ) THEN + + ( + COUNT( * ) ) * + - 20 * CAST( - 68 AS SIGNED ) + 6 + 26 * ( + + COALESCE ( - + CAST( NULL AS SIGNED ), - 72 * - 10 + - 45 * + 21 ) ) / COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - CASE + 84 WHEN - - 34 * + + 43 / + 31 * - 22 + + + COUNT ( * ) + + + COUNT ( * ) THEN - 90 WHEN COUNT ( * ) THEN + + ( + COUNT ( * ) ) * + - 20 * CAST ( - 68 AS INTEGER ) + 6 + 26 * ( + + COALESCE ( - + CAST ( NULL AS INTEGER ), - 72 * - 10 + - 45 * + 21 ) ) / COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 49 * + + ( - 57 )
----
-2793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT - CAST( + - 53 AS SIGNED ) * 79 * - 17
----
-71179

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - CAST ( + - 53 AS INTEGER ) * 79 * - 17
----
-71179

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL SUM( ALL + 42 ) * - - MAX( + ( - 21 ) )
----
-882

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL SUM ( ALL + 42 ) * - - MAX ( + ( - 21 ) )
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT + CAST( ( + 89 ) AS SIGNED ) * + COUNT( * ) * - 91 AS col2
----
-8099

skipif mysql # not compatible
query I rowsort label-4329
SELECT + CAST ( ( + 89 ) AS INTEGER ) * + COUNT ( * ) * - 91 AS col2
----
-8099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4330
SELECT DISTINCT + 53 DIV - + 84 * + CAST( COUNT( * ) AS SIGNED ) * - + COUNT( * ) * + - 23
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + 53 / - + 84 * + CAST ( COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) * + - 23
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4331
SELECT - 13 - COALESCE ( - 74, - + CAST( NULL AS SIGNED ), + 56 ) DIV ( 51 ) AS col2, 16 * - 93 + - - 33 DIV - + 80 - - 99 - - - COUNT( * ) - - 27 * + 83
----
-12
851

skipif mysql # not compatible
query II rowsort label-4331
SELECT - 13 - COALESCE ( - 74, - + CAST ( NULL AS INTEGER ), + 56 ) / ( 51 ) AS col2, 16 * - 93 + - - 33 / - + 80 - - 99 - - - COUNT ( * ) - - 27 * + 83
----
-12
851

query I rowsort
SELECT - + 42 col1
----
-42

query I rowsort
SELECT 57 * - ( ( 30 ) ) AS col0
----
-1710

query I rowsort
SELECT ALL + 3 * - 60 * + 48
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL + SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + SUM ( + 40 )
----
40

query I rowsort
SELECT - + NULLIF ( - - 52, + 51 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT COUNT( * ) * + - 16 * 80 + 1
----
-1279

skipif mysql # not compatible
query I rowsort label-4337
SELECT COUNT ( * ) * + - 16 * 80 + 1
----
-1279

query I rowsort
SELECT ALL + 59 + + NULLIF ( 60, - 47 ) AS col1
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT COALESCE ( - 57, 66 * - MAX( ALL ( 36 ) ) + + NULLIF ( - CAST( NULL AS SIGNED ), - 85 ) * + + 34 ) - + 35 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4339
SELECT COALESCE ( - 57, 66 * - MAX ( ALL ( 36 ) ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) * + + 34 ) - + 35 AS col2
----
-92

query I rowsort
SELECT DISTINCT - ( + 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT MIN( + 3 ) + - 68 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4341
SELECT MIN ( + 3 ) + - 68 AS col0
----
-65

query I rowsort
SELECT + + NULLIF ( - - 16, + - 41 )
----
16

query I rowsort
SELECT 24 * + - 64 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT 86 AS col1, COUNT( * ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-4344
SELECT 86 AS col1, COUNT ( * ) AS col0
----
86
1

query I rowsort
SELECT 5 * 43 * + 53 + + 22
----
11417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT 2 - + CAST( 65 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-4346
SELECT 2 - + CAST ( 65 AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - 33 * - + COALESCE ( + COUNT( * ), - 91 + + 62 * - 47 * + 5 * - 81, + - 29 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - 33 * - + COALESCE ( + COUNT ( * ), - 91 + + 62 * - 47 * + 5 * - 81, + - 29 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL - 24 + - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - 24 + - COUNT ( * ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT 68 + + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT 68 + + COUNT ( * ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4350
SELECT + 65 AS col0, CAST( 67 AS SIGNED )
----
65
67

skipif mysql # not compatible
query II rowsort label-4350
SELECT + 65 AS col0, CAST ( 67 AS INTEGER )
----
65
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL 3 * ( - ( + COUNT( * ) ) ) * - 40
----
120

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 3 * ( - ( + COUNT ( * ) ) ) * - 40
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT DISTINCT - COUNT( * ) col1, - SUM( DISTINCT + 84 ) - - - 45
----
-1
-129

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT - COUNT ( * ) col1, - SUM ( DISTINCT + 84 ) - - - 45
----
-1
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4353
SELECT + 73 AS col0, + 20 + - + 71 + ( - - COUNT( * ) ) DIV + MIN( + 84 ) + - 4 AS col2
----
73
-55

skipif mysql # not compatible
query II rowsort label-4353
SELECT + 73 AS col0, + 20 + - + 71 + ( - - COUNT ( * ) ) / + MIN ( + 84 ) + - 4 AS col2
----
73
-55

query II rowsort
SELECT 23 AS col2, 26 AS col0
----
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - COALESCE ( 15, + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - COALESCE ( 15, + COUNT ( * ) )
----
-15

query I rowsort
SELECT + 66 * - 5 + - 89 + + - 0 AS col1
----
-419

query I rowsort
SELECT 82 * + + 56 * + 74 AS col1
----
339808

query I rowsort
SELECT 18 * - 46
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ( 99 ) * - COUNT( - 30 ) + + NULLIF ( - COUNT( * ), + - COUNT( * ) ) + - 38 + 73 + - + 56 * - - 64 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ( 99 ) * - COUNT ( - 30 ) + + NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) + - 38 + 73 + - + 56 * - - 64 + - 45
----
NULL

query I rowsort
SELECT 98 + + - 59 * 16 * + 47
----
-44270

query I rowsort
SELECT 14 - 75 AS col2
----
-61

query II rowsort
SELECT DISTINCT 99 AS col0, - 19 AS col0
----
99
-19

query I rowsort
SELECT - 88 * 47 AS col0
----
-4136

query I rowsort
SELECT ALL - - 67 * 71 * - + 76 + + 97 + 92 + + 80 AS col1
----
-361263

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + CASE - + 9 WHEN - - 72 THEN COUNT( - 76 ) WHEN - + 67 - - MIN( - + 0 ) THEN NULL END + - 69 * - 55 / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT + CASE - + 9 WHEN - - 72 THEN COUNT ( - 76 ) WHEN - + 67 - - MIN ( - + 0 ) THEN NULL END + - 69 * - 55 / 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 10 + + - SUM( - - 17 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 10 + + - SUM ( - - 17 ) AS col1
----
-7

query I rowsort
SELECT + 94 + + - 82 * - ( 39 ) + + 78
----
3370

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 82 + + - SUM( DISTINCT - 59 )
----
141

skipif mysql # not compatible
query I rowsort label-4368
SELECT 82 + + - SUM ( DISTINCT - 59 )
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4369
SELECT ALL - ( - + CASE - - 39 WHEN - - 71 + - 7 * + 13 + + + AVG ( 45 ) THEN - 59 + 50 ELSE - + 70 + - NULLIF ( - - 25, - 82 - 2 - 57 ) * - + 0 END ) * + - 0 * + 58 * - 61 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - ( - + CASE - - 39 WHEN - - 71 + - 7 * + 13 + + + AVG ( 45 ) THEN - 59 + 50 ELSE - + 70 + - NULLIF ( - - 25, - 82 - 2 - 57 ) * - + 0 END ) * + - 0 * + 58 * - 61 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - + COUNT( * ) + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - + COUNT ( * ) + 99 AS col0
----
98

query I rowsort
SELECT ( - - 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - 87 + - COUNT( * ) + - 30
----
-118

skipif mysql # not compatible
query I rowsort label-4372
SELECT - 87 + - COUNT ( * ) + - 30
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT 62 * COUNT( * ) * - - 65 + - + 68 AS col0
----
3962

skipif mysql # not compatible
query I rowsort label-4373
SELECT 62 * COUNT ( * ) * - - 65 + - + 68 AS col0
----
3962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT + NULLIF ( - 52, CAST( NULL AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-4374
SELECT + NULLIF ( - 52, CAST ( NULL AS INTEGER ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT + 54 DIV - 5 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 54 / - 5 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-4376
SELECT - - 66 DIV 68 + - 81 AS col1, 25 col2
----
-81
25

skipif mysql # not compatible
query II rowsort label-4376
SELECT - - 66 / 68 + - 81 AS col1, 25 col2
----
-81
25

query I rowsort
SELECT ALL 16 - 72
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT 89 + + 97 + + 92 * + CAST( NULL AS SIGNED ) * 53 + + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT 89 + + 97 + + 92 * + CAST ( NULL AS INTEGER ) * 53 + + + 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4379
SELECT ALL COUNT( * ) DIV + - 48 AS col1, 59
----
0
59

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL COUNT ( * ) / + - 48 AS col1, 59
----
0
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT + 63 * + 55 + + + 78 + - 40 DIV + 39
----
3542

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 63 * + 55 + + + 78 + - 40 / + 39
----
3542

query I rowsort
SELECT 79 + + 23
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT 18 * - - COUNT( * ), 25 AS col1
----
18
25

skipif mysql # not compatible
query II rowsort label-4382
SELECT 18 * - - COUNT ( * ), 25 AS col1
----
18
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT 24 + 61 DIV COUNT( * ) * + 36 AS col1
----
2220

skipif mysql # not compatible
query I rowsort label-4383
SELECT 24 + 61 / COUNT ( * ) * + 36 AS col1
----
2220

query I rowsort
SELECT DISTINCT CASE 72 WHEN + 62 THEN 20 WHEN - 52 THEN NULL ELSE - + 44 + - 85 END - + 77
----
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT DISTINCT NULLIF ( + + COALESCE ( - + 11, - COUNT( * ) + 8 ), + - 41 * 32 + 9 ) * - 63, - 59 * + 76 AS col0
----
693
-4484

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT NULLIF ( + + COALESCE ( - + 11, - COUNT ( * ) + 8 ), + - 41 * 32 + 9 ) * - 63, - 59 * + 76 AS col0
----
693
-4484

query I rowsort
SELECT DISTINCT - ( 39 ) * - 21
----
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL - CASE + 33 WHEN ( + - 46 ) THEN + ( - + ( - 60 ) ) * - CASE - CAST( NULL AS SIGNED ) WHEN - 49 THEN + - 70 / + 87 + + + 70 / 4 - + + 85 * - 16 - - 53 * + 47 WHEN + 63 THEN - CASE 27 WHEN - + 42 THEN 6 END ELSE NULL END * 71 - + COUNT( * ) WHEN MAX( ALL NULLIF ( - ( 19 ), ( + ( - NULLIF ( 29, + 46 * 20 + - 23 * 21 ) ) ) ) ) + - 62 THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - CASE + 33 WHEN ( + - 46 ) THEN + ( - + ( - 60 ) ) * - CASE - CAST ( NULL AS INTEGER ) WHEN - 49 THEN + - 70 / + 87 + + + 70 / 4 - + + 85 * - 16 - - 53 * + 47 WHEN + 63 THEN - CASE 27 WHEN - + 42 THEN 6 END ELSE NULL END * 71 - + COUNT ( * ) WHEN MAX ( ALL NULLIF ( - ( 19 ), ( + ( - NULLIF ( 29, + 46 * 20 + - 23 * 21 ) ) ) ) ) + - 62 THEN + 88 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT - COALESCE ( - 75, - 2 ) * 65 + CAST( NULL AS SIGNED ) * - - 21 + + COUNT( * ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COALESCE ( - 75, - 2 ) * 65 + CAST ( NULL AS INTEGER ) * - - 21 + + COUNT ( * ) + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT COUNT( * ) * 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4389
SELECT COUNT ( * ) * 14 AS col0
----
14

query I rowsort
SELECT ALL 14 * - 19 * + 26 col0
----
-6916

query I rowsort
SELECT 24 + - 54
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT - ( + 36 ) * + 91 * + 37 * MIN( ( - 26 ) ) - COALESCE ( + 71, + - NULLIF ( + + 28, 89 ) + + 56 + + ( - ( - 88 ) ) * CAST( ( + + 20 ) AS SIGNED ), 22 ) - - 63 * + 66
----
3155599

skipif mysql # not compatible
query I rowsort label-4392
SELECT - ( + 36 ) * + 91 * + 37 * MIN ( ( - 26 ) ) - COALESCE ( + 71, + - NULLIF ( + + 28, 89 ) + + 56 + + ( - ( - 88 ) ) * CAST ( ( + + 20 ) AS INTEGER ), 22 ) - - 63 * + 66
----
3155599

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT ALL COUNT( ALL - 94 ) AS col1, + 77 + - 86
----
1
-9

skipif mysql # not compatible
query II rowsort label-4393
SELECT ALL COUNT ( ALL - 94 ) AS col1, + 77 + - 86
----
1
-9

query I rowsort
SELECT + 72 * - 98 AS col0
----
-7056

query I rowsort
SELECT - 78 * - 65
----
5070

query I rowsort
SELECT ALL + 53 + + 51 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT - MIN( - CAST( - 73 AS SIGNED ) ) + - 51 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-4397
SELECT - MIN ( - CAST ( - 73 AS INTEGER ) ) + - 51 AS col2
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT - 64 + + CAST( NULL AS SIGNED ) + - 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 64 + + CAST ( NULL AS INTEGER ) + - 74 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - COUNT( * ) + - + 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - COUNT ( * ) + - + 85 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT ALL + 43 + + 91 AS col2, - COUNT( * ) + 21 AS col2
----
134
20

skipif mysql # not compatible
query II rowsort label-4400
SELECT ALL + 43 + + 91 AS col2, - COUNT ( * ) + 21 AS col2
----
134
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - + 31 * SUM( 59 )
----
-1829

skipif mysql # not compatible
query I rowsort label-4401
SELECT - + 31 * SUM ( 59 )
----
-1829

query I rowsort
SELECT ALL + - 26 * - 97 + - 82 - + 10
----
2430

query I rowsort
SELECT ALL - 51 + + + ( + + 61 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT - - COALESCE ( - - COUNT( * ), - 4 * - 31 - 53 + + 27, - CAST( - 42 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT - - COALESCE ( - - COUNT ( * ), - 4 * - 31 - 53 + + 27, - CAST ( - 42 AS INTEGER ) )
----
1

query I rowsort
SELECT - 80 * - ( + 15 ) col1
----
1200

query I rowsort
SELECT ALL + 60 * 8
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT - 38 + + - 44, COUNT( * ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-4407
SELECT - 38 + + - 44, COUNT ( * ) AS col2
----
-82
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT ALL + 16 - NULLIF ( + 79, + - NULLIF ( - 54, - - AVG ( 61 ) ) - + - MAX( - 97 ) * + CAST( NULL AS SIGNED ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + 16 - NULLIF ( + 79, + - NULLIF ( - 54, - - AVG ( 61 ) ) - + - MAX ( - 97 ) * + CAST ( NULL AS INTEGER ) ) AS col0
----
-63

query I rowsort
SELECT DISTINCT - 57 * + 37 + - 46 col0
----
-2155

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT + 46 DIV + - 73 * + 76 - + - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4410
SELECT + 46 / + - 73 * + 76 - + - 30 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT ( + CAST( + SUM( DISTINCT 6 ) AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-4411
SELECT ( + CAST ( + SUM ( DISTINCT 6 ) AS INTEGER ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4412
SELECT - SUM( DISTINCT - 34 ) * - COUNT( * ) DIV - 85 + + CAST( - 95 AS SIGNED ) + - CAST( + 57 AS SIGNED ) + + 92 + - COUNT( * ) * - COUNT( * ) * - + 30 + + - COUNT( * ) + + 75 + 24 * - 98 * + COUNT( * ) * + 1 * COUNT( * )
----
-2368

skipif mysql # not compatible
query I rowsort label-4412
SELECT - SUM ( DISTINCT - 34 ) * - COUNT ( * ) / - 85 + + CAST ( - 95 AS INTEGER ) + - CAST ( + 57 AS INTEGER ) + + 92 + - COUNT ( * ) * - COUNT ( * ) * - + 30 + + - COUNT ( * ) + + 75 + 24 * - 98 * + COUNT ( * ) * + 1 * COUNT ( * )
----
-2368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4413
SELECT ALL 71 * - NULLIF ( 13, + ( - - 64 ) * - - 54 + - NULLIF ( NULLIF ( + 27, + + 8 * - CAST( NULL AS DECIMAL ) ), + 12 + - + NULLIF ( + 62, 17 * - 27 ) ) + + 38 ) - - 60
----
-863

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 71 * - NULLIF ( 13, + ( - - 64 ) * - - 54 + - NULLIF ( NULLIF ( + 27, + + 8 * - CAST ( NULL AS REAL ) ), + 12 + - + NULLIF ( + 62, 17 * - 27 ) ) + + 38 ) - - 60
----
-863

query I rowsort
SELECT + 92 * + 84 AS col0
----
7728

onlyif mysql # aggregate syntax: 
query II rowsort label-4415
SELECT ALL + 47 AS col1, COUNT( - 89 ) * + + 47 * - 67
----
47
-3149

skipif mysql # not compatible
query II rowsort label-4415
SELECT ALL + 47 AS col1, COUNT ( - 89 ) * + + 47 * - 67
----
47
-3149

query I rowsort
SELECT - 62 + - 62 AS col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT + 96 * + - 40 * + CASE - 7 WHEN + 66 * - 87 / + ( 73 ) * + - CASE - + COUNT( 29 ) WHEN 85 THEN - + COUNT( * ) + + - 56 + + - 56 + + - 27 + 75 WHEN CAST( 41 AS SIGNED ) THEN NULL END + 10 + + COUNT( * ) THEN NULL WHEN + 52 * + COALESCE ( ( 96 ), - 84, + CAST( 18 AS SIGNED ) ) THEN ( + 1 ) * - COALESCE ( + 88 + + ( CAST( + 24 AS SIGNED ) ), ( SUM( - 51 ) ) ) WHEN CASE 68 WHEN 59 THEN + ( 9 ) ELSE - 50 + + 21 END + 99 THEN COUNT( ALL 72 ) END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT + 96 * + - 40 * + CASE - 7 WHEN + 66 * - 87 / + ( 73 ) * + - CASE - + COUNT ( 29 ) WHEN 85 THEN - + COUNT ( * ) + + - 56 + + - 56 + + - 27 + 75 WHEN CAST ( 41 AS INTEGER ) THEN NULL END + 10 + + COUNT ( * ) THEN NULL WHEN + 52 * + COALESCE ( ( 96 ), - 84, + CAST ( 18 AS INTEGER ) ) THEN ( + 1 ) * - COALESCE ( + 88 + + ( CAST ( + 24 AS INTEGER ) ), ( SUM ( - 51 ) ) ) WHEN CASE 68 WHEN 59 THEN + ( 9 ) ELSE - 50 + + 21 END + 99 THEN COUNT ( ALL 72 ) END + 64
----
NULL

query I rowsort
SELECT + 44 - + 15
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT - CAST( - 95 AS SIGNED ) * + 43 * COUNT( * )
----
4085

skipif mysql # not compatible
query I rowsort label-4419
SELECT - CAST ( - 95 AS INTEGER ) * + 43 * COUNT ( * )
----
4085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT CASE - 81 WHEN + - 93 + + 53 - 44 * 68 * SUM( ALL - CAST( NULL AS SIGNED ) ) + - - ( + 9 ) * - 76 + NULLIF ( + 90, - 68 * + 59 + - - 17 * - + COUNT( * ) ) * - 29 * + + ( - - CASE - 35 WHEN + 69 THEN NULL ELSE - 77 END ) * + + MAX( - + 60 ) THEN + 52 + ( 27 ) WHEN 95 * ( 59 ) THEN NULL WHEN 0 THEN - 29 / 3 + - 33 ELSE NULL END * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT CASE - 81 WHEN + - 93 + + 53 - 44 * 68 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) + - - ( + 9 ) * - 76 + NULLIF ( + 90, - 68 * + 59 + - - 17 * - + COUNT ( * ) ) * - 29 * + + ( - - CASE - 35 WHEN + 69 THEN NULL ELSE - 77 END ) * + + MAX ( - + 60 ) THEN + 52 + ( 27 ) WHEN 95 * ( 59 ) THEN NULL WHEN 0 THEN - 29 / 3 + - 33 ELSE NULL END * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL + 71 * - 34 * COUNT( * )
----
-2414

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL + 71 * - 34 * COUNT ( * )
----
-2414

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT + 26 * + 23 * + 84 AS col2, 24 + - COALESCE ( MIN( DISTINCT 97 ), 30 * + 35 ) + - 35 AS col2
----
50232
-108

skipif mysql # not compatible
query II rowsort label-4422
SELECT + 26 * + 23 * + 84 AS col2, 24 + - COALESCE ( MIN ( DISTINCT 97 ), 30 * + 35 ) + - 35 AS col2
----
50232
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + 84 + - - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 84 + - - COUNT ( * ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT CASE 30 WHEN + + 57 THEN NULL WHEN + 62 THEN 82 * + 98 WHEN 87 * COUNT( CAST( - 46 AS SIGNED ) ) - - 15 - + 28 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT CASE 30 WHEN + + 57 THEN NULL WHEN + 62 THEN 82 * + 98 WHEN 87 * COUNT ( CAST ( - 46 AS INTEGER ) ) - - 15 - + 28 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT ALL - 28 * 76 + + 61 * + 89 DIV + + COUNT( * )
----
3301

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - 28 * 76 + + 61 * + 89 / + + COUNT ( * )
----
3301

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4426
SELECT CASE 88 WHEN + 93 THEN CAST( ( - 25 ) AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT CASE 88 WHEN + 93 THEN CAST ( ( - 25 ) AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT CAST( NULL AS SIGNED ) / 49 * + ( - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 49 * + ( - 55 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL COUNT( * ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL COUNT ( * ) * 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT MAX( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4429
SELECT MAX ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT - SUM( + 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - SUM ( + 22 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT - - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 12 + + 20
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - - 11 + - MAX( - - 61 ) + + + 21
----
-29

skipif mysql # not compatible
query I rowsort label-4433
SELECT - - 11 + - MAX ( - - 61 ) + + + 21
----
-29

query I rowsort
SELECT - 65 - + 73
----
-138

query I rowsort
SELECT - 78 - + 55
----
-133

query I rowsort
SELECT ALL - + 20 - + 87 col2
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4437
SELECT ALL + CAST( NULLIF ( ( 44 ), + - 0 ) AS SIGNED ), + 57 + 62 col1
----
44
119

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL + CAST ( NULLIF ( ( 44 ), + - 0 ) AS INTEGER ), + 57 + 62 col1
----
44
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + 65 * ( - COUNT( * ) ) + - + 50 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + 65 * ( - COUNT ( * ) ) + - + 50 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + + COUNT( * ) * 68 col0
----
68

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + + COUNT ( * ) * 68 col0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4440
SELECT DISTINCT + - 90 DIV NULLIF ( - 15, + 69 + 5 ) AS col1, + 96 DIV 85
----
6
1

skipif mysql # not compatible
query II rowsort label-4440
SELECT DISTINCT + - 90 / NULLIF ( - 15, + 69 + 5 ) AS col1, + 96 / 85
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - COALESCE ( + + COUNT( * ), + 11 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - COALESCE ( + + COUNT ( * ), + 11 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL - COUNT( 41 ) * 36 + COUNT( * ) + + 85
----
50

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - COUNT ( 41 ) * 36 + COUNT ( * ) + + 85
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT + 86 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 86 / - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT - 92 * 44 DIV COUNT( * )
----
-4048

skipif mysql # not compatible
query I rowsort label-4444
SELECT - 92 * 44 / COUNT ( * )
----
-4048

query I rowsort
SELECT - 51 + - 50 * + 35
----
-1801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT DISTINCT - COUNT( * ) DIV + 61 - - - 92 * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - COUNT ( * ) / + 61 - - - 92 * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL + COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + COUNT ( * ) * 33 AS col1
----
33

query I rowsort
SELECT 75 * 70 + + + 33
----
5283

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 62 * + CASE 22 WHEN 50 THEN - - 82 - - MAX( + - 77 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 62 * + CASE 22 WHEN 50 THEN - - 82 - - MAX ( + - 77 ) END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 69 AS col0, 62
----
69
62

query I rowsort
SELECT - 32 * - 8 AS col2
----
256

query I rowsort
SELECT ALL + 2 * + + ( 53 ) AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT DISTINCT + NULLIF ( + - 64, + NULLIF ( COUNT( * ), + COALESCE ( + + 59, 55, - + 71 ) ) ) DIV 43 + + + 75
----
74

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + NULLIF ( + - 64, + NULLIF ( COUNT ( * ), + COALESCE ( + + 59, 55, - + 71 ) ) ) / 43 + + + 75
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + MAX( ALL + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4454
SELECT + MAX ( ALL + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ALL - 98 AS col1, - NULLIF ( 82, - 54 ) + + CASE 54 WHEN - - 6 * + + 81 - - + ( + - ( - 52 ) ) * + + COUNT( * ) THEN - COUNT( * ) + + + COUNT( * ) END * + - 6 + + COUNT( * ) + - 64
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL - 98 AS col1, - NULLIF ( 82, - 54 ) + + CASE 54 WHEN - - 6 * + + 81 - - + ( + - ( - 52 ) ) * + + COUNT ( * ) THEN - COUNT ( * ) + + + COUNT ( * ) END * + - 6 + + COUNT ( * ) + - 64
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - 16 * - - 94 + + MAX( DISTINCT + + ( + 68 ) ) AS col2
----
-1436

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 16 * - - 94 + + MAX ( DISTINCT + + ( + 68 ) ) AS col2
----
-1436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT DISTINCT - CAST( + AVG ( + + 73 ) AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - CAST ( + AVG ( + + 73 ) AS INTEGER ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + NULLIF ( + 0, - 28 / + + COUNT( * ) + COUNT( * ) + - COUNT( * ) ) + - - 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + NULLIF ( + 0, - 28 / + + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) ) + - - 59 AS col0
----
59

query I rowsort
SELECT ALL + 45 + - + 39 + - 70 * + 24
----
-1674

query II rowsort
SELECT 65 AS col2, + COALESCE ( - - 75, 13 ) AS col1
----
65
75

query I rowsort
SELECT - 99 * + + 73
----
-7227

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT - - COUNT( * ) + - + 6 * 16 + - 56
----
-151

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - - COUNT ( * ) + - + 6 * 16 + - 56
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT - 66 * + COUNT( * ) * 60 + + - 90 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT - 66 * + COUNT ( * ) * 60 + + - 90 + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 8 AS col1, + 99
----
8
99

query I rowsort
SELECT 68 * - 72 + - 2
----
-4898

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + 63 * - 32 - COUNT( * ) + + 24 + 43 + + - 25 * - COALESCE ( + - 18, - SUM( + 42 ) ) AS col0
----
-2400

skipif mysql # not compatible
query I rowsort label-4467
SELECT + 63 * - 32 - COUNT ( * ) + + 24 + 43 + + - 25 * - COALESCE ( + - 18, - SUM ( + 42 ) ) AS col0
----
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4468
SELECT ALL COUNT( * ) DIV + 20 * - + MIN( DISTINCT - 84 ) AS col1, - 62 - 1
----
0
-63

skipif mysql # not compatible
query II rowsort label-4468
SELECT ALL COUNT ( * ) / + 20 * - + MIN ( DISTINCT - 84 ) AS col1, - 62 - 1
----
0
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT DISTINCT 59 AS col0, SUM( + - 66 ) AS col0
----
59
-66

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT 59 AS col0, SUM ( + - 66 ) AS col0
----
59
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4470
SELECT ALL - 68 - + - 84 * - 55 + + - CASE - CASE + 1 WHEN + 94 THEN + 72 * + 2 + + + 47 WHEN 9 THEN + 47 + - 99 + - + 58 + 13 * - CAST( NULL AS DECIMAL ) ELSE 63 END WHEN + 49 + + + ( + NULLIF ( - 95, - CASE + 10 WHEN CAST( + 62 AS SIGNED ) * - 84 THEN CAST( NULL AS SIGNED ) END ) ) THEN 93 ELSE 98 END * 51
----
-9686

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - 68 - + - 84 * - 55 + + - CASE - CASE + 1 WHEN + 94 THEN + 72 * + 2 + + + 47 WHEN 9 THEN + 47 + - 99 + - + 58 + 13 * - CAST ( NULL AS REAL ) ELSE 63 END WHEN + 49 + + + ( + NULLIF ( - 95, - CASE + 10 WHEN CAST ( + 62 AS INTEGER ) * - 84 THEN CAST ( NULL AS INTEGER ) END ) ) THEN 93 ELSE 98 END * 51
----
-9686

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( * ) * + COUNT( * ) * 14 + - 28 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( * ) * + COUNT ( * ) * 14 + - 28 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT DISTINCT - 34 AS col0, 51 + ( + COUNT( * ) ) AS col2
----
-34
52

skipif mysql # not compatible
query II rowsort label-4472
SELECT DISTINCT - 34 AS col0, 51 + ( + COUNT ( * ) ) AS col2
----
-34
52

query I rowsort
SELECT ALL ( + + 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL + COUNT( * ) * + ( - - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + COUNT ( * ) * + ( - - 93 ) AS col1
----
93

query I rowsort
SELECT ALL 12 - - 93 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT ALL - 85 AS col0, COUNT( * ) AS col1
----
-85
1

skipif mysql # not compatible
query II rowsort label-4476
SELECT ALL - 85 AS col0, COUNT ( * ) AS col1
----
-85
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4477
SELECT - + 29 AS col2, - ( + 16 ) + - ( 73 ) DIV - 82 AS col1
----
-29
-16

skipif mysql # not compatible
query II rowsort label-4477
SELECT - + 29 AS col2, - ( + 16 ) + - ( 73 ) / - 82 AS col1
----
-29
-16

query I rowsort
SELECT 12 * - + 67 * - + 65
----
52260

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 83 + ( 41 ) + COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-4479
SELECT 83 + ( 41 ) + COUNT ( * )
----
125

query I rowsort
SELECT 89 * - ( 89 )
----
-7921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT - 0 DIV - COUNT( * ) - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4481
SELECT - 0 / - COUNT ( * ) - 82 AS col0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4482
SELECT ALL - CAST( NULL AS DECIMAL ) + + 85 AS col1, 29 * - 80 col2
----
NULL
-2320

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL - CAST ( NULL AS REAL ) + + 85 AS col1, 29 * - 80 col2
----
NULL
-2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT 27 - + - ( + CAST( NULL AS SIGNED ) ) / + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT 27 - + - ( + CAST ( NULL AS INTEGER ) ) / + 31 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT ALL 91 DIV 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL 91 / 9 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4485
SELECT 33 DIV - 87 AS col1, - CASE + 59 WHEN + 82 THEN NULL ELSE 34 END * COUNT( * ) * ( - + 82 ) - - 24 + + 14 * - 65 * + 30 - + 90 + - 19 AS col2
----
0
-24597

skipif mysql # not compatible
query II rowsort label-4485
SELECT 33 / - 87 AS col1, - CASE + 59 WHEN + 82 THEN NULL ELSE 34 END * COUNT ( * ) * ( - + 82 ) - - 24 + + 14 * - 65 * + 30 - + 90 + - 19 AS col2
----
0
-24597

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4486
SELECT DISTINCT - 26 * + - 41 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 26 * + - 41 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL + ( COUNT( * ) ) + + CAST( - MIN( - 80 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + ( COUNT ( * ) ) + + CAST ( - MIN ( - 80 ) AS INTEGER )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4488
SELECT 59 DIV - - COALESCE ( 59, 40 + - 38 ) AS col0, 7
----
1
7

skipif mysql # not compatible
query II rowsort label-4488
SELECT 59 / - - COALESCE ( 59, 40 + - 38 ) AS col0, 7
----
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT DISTINCT - CAST( - + CAST( + + ( + 83 ) AS SIGNED ) AS SIGNED ) + - + 35
----
48

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - CAST ( - + CAST ( + + ( + 83 ) AS INTEGER ) AS INTEGER ) + - + 35
----
48

query I rowsort
SELECT - 97 * - 62
----
6014

query II rowsort
SELECT ALL - 13 + + 65 AS col0, 68 * - - 34
----
52
2312

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT - 54 * + - 64 + - COUNT( * ) AS col1, - 32
----
3455
-32

skipif mysql # not compatible
query II rowsort label-4492
SELECT - 54 * + - 64 + - COUNT ( * ) AS col1, - 32
----
3455
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL - COUNT( ALL - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - COUNT ( ALL - 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - COUNT( * ) * 64 + - CASE - - 18 WHEN + 16 THEN - 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT - COUNT ( * ) * 64 + - CASE - - 18 WHEN + 16 THEN - 69 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 82 + - 41 * 60
----
-2378

query II rowsort
SELECT 59 + - 12 AS col1, + 6
----
47
6

query I rowsort
SELECT DISTINCT 39 * - + 70
----
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT ( + CAST( - - CASE + COALESCE ( + - NULLIF ( + 4, 28 ), ( ( + + 17 ) ) ) WHEN - - NULLIF ( + 13, + COALESCE ( 91, + - 25, - 32 * + + ( CAST( - 44 AS SIGNED ) ) ) / 99 ) * - 7 * - + 51 + + 37 + + 73 THEN NULL WHEN + CAST( - 86 AS SIGNED ) + + 38 + 73 THEN ( - ( ( - 5 ) ) ) * 47 ELSE + 39 END AS SIGNED ) ) * 99
----
3861

skipif mysql # not compatible
query I rowsort label-4498
SELECT ( + CAST ( - - CASE + COALESCE ( + - NULLIF ( + 4, 28 ), ( ( + + 17 ) ) ) WHEN - - NULLIF ( + 13, + COALESCE ( 91, + - 25, - 32 * + + ( CAST ( - 44 AS INTEGER ) ) ) / 99 ) * - 7 * - + 51 + + 37 + + 73 THEN NULL WHEN + CAST ( - 86 AS INTEGER ) + + 38 + 73 THEN ( - ( ( - 5 ) ) ) * 47 ELSE + 39 END AS INTEGER ) ) * 99
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT MAX( + 95 ) + - - 65 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-4499
SELECT MAX ( + 95 ) + - - 65 AS col2
----
160

query I rowsort
SELECT - + 54 col2
----
-54

query I rowsort
SELECT 98 + - - 26
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT SUM( - 34 ), - 88 AS col1
----
-34
-88

skipif mysql # not compatible
query II rowsort label-4502
SELECT SUM ( - 34 ), - 88 AS col1
----
-34
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - CAST( + + 10 AS SIGNED ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - CAST ( + + 10 AS INTEGER ) AS col0
----
-10

query I rowsort
SELECT + 63 + - 21 * - + 10
----
273

query I rowsort
SELECT 28 + + 95
----
123

query II rowsort
SELECT ALL 2 AS col0, - 32 + 6
----
2
-26

query I rowsort
SELECT 98 * - + 62 AS col1
----
-6076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4508
SELECT ALL ( + + 16 ) + - CASE - AVG ( ALL - + 20 ) WHEN 71 THEN + CAST( NULL AS SIGNED ) DIV 56 WHEN 51 THEN - + ( + - COUNT( * ) ) ELSE - 93 * - + 51 * + COUNT( * ) + 15 END - 94 * CAST( - 87 AS SIGNED ) * + - 19 AS col0
----
-160124

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL ( + + 16 ) + - CASE - AVG ( ALL - + 20 ) WHEN 71 THEN + CAST ( NULL AS INTEGER ) / 56 WHEN 51 THEN - + ( + - COUNT ( * ) ) ELSE - 93 * - + 51 * + COUNT ( * ) + 15 END - 94 * CAST ( - 87 AS INTEGER ) * + - 19 AS col0
----
-160124

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT + 85 + - COUNT( * ) + + 47 AS col2, - ( ( - 46 ) ) - 42 AS col2
----
131
4

skipif mysql # not compatible
query II rowsort label-4509
SELECT + 85 + - COUNT ( * ) + + 47 AS col2, - ( ( - 46 ) ) - 42 AS col2
----
131
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL CASE 30 WHEN + 7 * - 86 THEN CAST( NULL AS SIGNED ) ELSE + 16 END + + 50 + + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL CASE 30 WHEN + 7 * - 86 THEN CAST ( NULL AS INTEGER ) ELSE + 16 END + + 50 + + COUNT ( * ) AS col2
----
67

query I rowsort
SELECT DISTINCT 50 * - ( - 54 )
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + 61 + + - 17 * - COUNT( * ) * + 85 * + 20 + + 42 + - 93 + 99 col1
----
29009

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 61 + + - 17 * - COUNT ( * ) * + 85 * + 20 + + 42 + - 93 + 99 col1
----
29009

query I rowsort
SELECT ALL 85 * + 47
----
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - 8 * SUM( ALL - - 80 ) * + 24 + - 61 AS col2
----
-15421

skipif mysql # not compatible
query I rowsort label-4514
SELECT - 8 * SUM ( ALL - - 80 ) * + 24 + - 61 AS col2
----
-15421

query I rowsort
SELECT + 26 * + 19
----
494

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT 49 * - - NULLIF ( + + COALESCE ( 32, - 94 ), - - AVG ( ALL - 47 ) ) + + 11 + + - 12 DIV - 64 AS col2
----
1579

skipif mysql # not compatible
query I rowsort label-4516
SELECT 49 * - - NULLIF ( + + COALESCE ( 32, - 94 ), - - AVG ( ALL - 47 ) ) + + 11 + + - 12 / - 64 AS col2
----
1579

query I rowsort
SELECT ALL 49 * 81 AS col0
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL 7 * - COUNT( ALL - + 66 ) + + 51
----
44

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 7 * - COUNT ( ALL - + 66 ) + + 51
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL + NULLIF ( + 92, COUNT( * ) - - COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + NULLIF ( + 92, COUNT ( * ) - - COUNT ( * ) ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - CASE + 2 WHEN - 37 * COUNT( * ) THEN 29 ELSE NULL END * + 85 / + 85 + + - 8 + - - 25 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - CASE + 2 WHEN - 37 * COUNT ( * ) THEN 29 ELSE NULL END * + 85 / + 85 + + - 8 + - - 25 / 19
----
NULL

query I rowsort
SELECT ALL - 77 * + - 98 * - - 36 * 75 col1
----
20374200

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT 68 * - - 56 - - 38 + 73 + + ( + MIN( + - 0 ) ) * 56 col1
----
3919

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT 68 * - - 56 - - 38 + 73 + + ( + MIN ( + - 0 ) ) * 56 col1
----
3919

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + + COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-4523
SELECT + + COUNT ( * ) * + 68
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT - COUNT( * ) AS col0, - MIN( DISTINCT + 1 ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4524
SELECT - COUNT ( * ) AS col0, - MIN ( DISTINCT + 1 ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT + + 51 AS col1, + MAX( + 36 )
----
51
36

skipif mysql # not compatible
query II rowsort label-4525
SELECT + + 51 AS col1, + MAX ( + 36 )
----
51
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT - CAST( NULL AS SIGNED ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS INTEGER ) + + 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL 88 * - 46 - + - 24 DIV - ( - 31 ) * + SUM( + + 48 ) * 26 + - + 46 + + 79 AS col2
----
-4015

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 88 * - 46 - + - 24 / - ( - 31 ) * + SUM ( + + 48 ) * 26 + - + 46 + + 79 AS col2
----
-4015

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT - - 21 DIV + 53 * + + ( 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT - - 21 / + 53 * + + ( 43 ) AS col0
----
0

query I rowsort
SELECT ALL - 41 * - 13 AS col1
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + CASE + COUNT( * ) WHEN + - 75 THEN 7 * 95 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT + CASE + COUNT ( * ) WHEN + - 75 THEN 7 * 95 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 79 ) AS col2
----
-79

query I rowsort
SELECT + + 2 * 43
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COALESCE ( ( - 11 ), COUNT( * ), 89 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COALESCE ( ( - 11 ), COUNT ( * ), 89 ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT + CAST( - + 39 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4534
SELECT + CAST ( - + 39 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + - COUNT( * ) * - + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4535
SELECT + - COUNT ( * ) * - + 27 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4536
SELECT - 91 * - COUNT( - - 28 ) * + + 51 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - 91 * - COUNT ( - - 28 ) * + + 51 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 25 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT MAX( - 77 ) * + 94 * ( + - 33 )
----
238854

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT MAX ( - 77 ) * + 94 * ( + - 33 )
----
238854

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT 45 + - + 37 * - - MAX( ALL 82 ) / + 49 + - + COUNT( * ) - - + CASE - 16 WHEN + + 93 THEN + 58 + 35 + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT 45 + - + 37 * - - MAX ( ALL 82 ) / + 49 + - + COUNT ( * ) - - + CASE - 16 WHEN + + 93 THEN + 58 + 35 + - 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL NULLIF ( 65, NULLIF ( CASE + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN NULL ELSE - 96 + + 83 * - - 62 END, + CAST( - 30 AS SIGNED ) ) ) + + 28 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL NULLIF ( 65, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL ELSE - 96 + + 83 * - - 62 END, + CAST ( - 30 AS INTEGER ) ) ) + + 28 AS col1
----
93

query I rowsort
SELECT - 9 * + 48
----
-432

query I rowsort
SELECT ALL + 43 * + + 33 AS col1
----
1419

query I rowsort
SELECT ALL 80 + + + ( + 47 )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT + 62 DIV + - MAX( ALL + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 62 / + - MAX ( ALL + 89 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT - 50 + COALESCE ( - 74, COUNT( + - 53 ) ), 22 AS col0
----
-124
22

skipif mysql # not compatible
query II rowsort label-4545
SELECT - 50 + COALESCE ( - 74, COUNT ( + - 53 ) ), 22 AS col0
----
-124
22

query I rowsort
SELECT - COALESCE ( - + 85, + 69 )
----
85

query I rowsort
SELECT - 26 + - 44
----
-70

query I rowsort
SELECT + NULLIF ( - 21, + 86 - - 8 ) * - 59 col0
----
1239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT ALL CAST( NULL AS SIGNED ) / - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL CAST ( NULL AS INTEGER ) / - 45 col1
----
NULL

query I rowsort
SELECT - 43 * 14
----
-602

query I rowsort
SELECT + 2 + - 96
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4552
SELECT ALL - 53 + 97 AS col0, + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL - 53 + 97 AS col0, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
44
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT ALL 90 - - 50, - COUNT( * ) + 21 + 81 col0
----
140
101

skipif mysql # not compatible
query II rowsort label-4553
SELECT ALL 90 - - 50, - COUNT ( * ) + 21 + 81 col0
----
140
101

query I rowsort
SELECT + ( 68 ) col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT CASE + 12 WHEN 33 + + + COUNT( - 10 ) THEN + 62 - 30 - - + CAST( 48 AS SIGNED ) * - - NULLIF ( + 66, 93 ) END * - ( + COUNT( ALL - CAST( 46 AS SIGNED ) ) ) * - 7 * + 35 + + + 51 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT CASE + 12 WHEN 33 + + + COUNT ( - 10 ) THEN + 62 - 30 - - + CAST ( 48 AS INTEGER ) * - - NULLIF ( + 66, 93 ) END * - ( + COUNT ( ALL - CAST ( 46 AS INTEGER ) ) ) * - 7 * + 35 + + + 51 * 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + COUNT( - 64 ) * 77 + + + ( - 72 )
----
5

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + COUNT ( - 64 ) * 77 + + + ( - 72 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + + COUNT( DISTINCT - ( 0 ) ) + 38 + + 34
----
73

skipif mysql # not compatible
query I rowsort label-4557
SELECT + + COUNT ( DISTINCT - ( 0 ) ) + 38 + + 34
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT + COUNT( * ) * + CASE 49 WHEN + - 26 THEN + 63 * + + SUM( ALL - - 40 ) ELSE NULL END AS col2, 66 + - 15 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4558
SELECT + COUNT ( * ) * + CASE 49 WHEN + - 26 THEN + 63 * + + SUM ( ALL - - 40 ) ELSE NULL END AS col2, 66 + - 15 AS col2
----
NULL
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4559
SELECT - COUNT( * ) - - 60 DIV + ( - - 59 ) AS col1, + COUNT( - 61 ) - - 82
----
0
83

skipif mysql # not compatible
query II rowsort label-4559
SELECT - COUNT ( * ) - - 60 / + ( - - 59 ) AS col1, + COUNT ( - 61 ) - - 82
----
0
83

query I rowsort
SELECT DISTINCT 33 * - 36
----
-1188

query I rowsort
SELECT DISTINCT + + ( 50 ) AS col0
----
50

query I rowsort
SELECT DISTINCT + - 35 col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT + - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + 47 * 82 + + + ( + 17 ) * CASE + + 55 WHEN - 63 + 37 / + - 1 THEN 77 * + + 27 * 36 * ( 47 ) * + 38 + - MAX( DISTINCT + - 95 ) ELSE NULL END * - COUNT( * ) - - - ( 51 ) + + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + 47 * 82 + + + ( + 17 ) * CASE + + 55 WHEN - 63 + 37 / + - 1 THEN 77 * + + 27 * 36 * ( 47 ) * + 38 + - MAX ( DISTINCT + - 95 ) ELSE NULL END * - COUNT ( * ) - - - ( 51 ) + + + 22
----
NULL

query I rowsort
SELECT + 48 + - - ( 96 )
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-4566
SELECT + CASE + + SUM( ALL 19 ) WHEN 58 + - 8 THEN - - 71 * + + 58 END, 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4566
SELECT + CASE + + SUM ( ALL 19 ) WHEN 58 + - 8 THEN - - 71 * + + 58 END, 41 AS col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT COUNT( * ) * + COUNT( * ) * + 70 + + + ( + COALESCE ( - 31, - + 82 ) ), - ( + - 97 ) AS col0
----
39
97

skipif mysql # not compatible
query II rowsort label-4567
SELECT COUNT ( * ) * + COUNT ( * ) * + 70 + + + ( + COALESCE ( - 31, - + 82 ) ), - ( + - 97 ) AS col0
----
39
97

query I rowsort
SELECT + 75 + + 52 * 43 * 88 + + 48
----
196891

query I rowsort
SELECT - COALESCE ( COALESCE ( + + 79, + 94 ), 15, - 20 ) * - 83 AS col2
----
6557

query I rowsort
SELECT + 89 + - + 39
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4571
SELECT ALL NULLIF ( + - 23, + - 43 ) * + - 21 + CASE + COALESCE ( 26, + SUM( DISTINCT 88 ), - CASE - 23 WHEN + ( - 55 ) + + 27 / + 87 + + 38 THEN - - ( + + 95 ) + - COUNT( * ) + - 65 - - 89 END + - + 63 * + 21 / + COUNT( * ), + CASE 86 WHEN 64 - 85 * - 24 THEN NULL WHEN - 42 - 57 THEN + 93 + 62 END ) WHEN + 89 * 6 THEN NULL WHEN 21 THEN NULL WHEN - 42 THEN + CAST( 1 AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL NULLIF ( + - 23, + - 43 ) * + - 21 + CASE + COALESCE ( 26, + SUM ( DISTINCT 88 ), - CASE - 23 WHEN + ( - 55 ) + + 27 / + 87 + + 38 THEN - - ( + + 95 ) + - COUNT ( * ) + - 65 - - 89 END + - + 63 * + 21 / + COUNT ( * ), + CASE 86 WHEN 64 - 85 * - 24 THEN NULL WHEN - 42 - 57 THEN + 93 + 62 END ) WHEN + 89 * 6 THEN NULL WHEN 21 THEN NULL WHEN - 42 THEN + CAST ( 1 AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT 39 * - - 69 + 29 - 9 + - 56 * + - 50 + + 80 + + COUNT( * ) * 41 + + 25 AS col2
----
5657

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT 39 * - - 69 + 29 - 9 + - 56 * + - 50 + + 80 + + COUNT ( * ) * 41 + + 25 AS col2
----
5657

query I rowsort
SELECT 18 + - + 36 AS col0
----
-18

query I rowsort
SELECT 37 + - + 41
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4575
SELECT ALL - CASE - + 33 WHEN + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - MIN( DISTINCT + 80 ) THEN - + 17 + 25 ELSE + 13 END + + 11 DIV + 41
----
-13

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - CASE - + 33 WHEN + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - MIN ( DISTINCT + 80 ) THEN - + 17 + 25 ELSE + 13 END + + 11 / + 41
----
-13

query I rowsort
SELECT 17 * + + 94 * - 83
----
-132634

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 62 + NULLIF ( COUNT( * ), + COUNT( * ) * - - 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT 62 + NULLIF ( COUNT ( * ), + COUNT ( * ) * - - 1 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 * + 63 AS col1
----
5922

query II rowsort
SELECT ALL 75 AS col1, 56 AS col0
----
75
56

query II rowsort
SELECT ALL 32 AS col2, + 18 col0
----
32
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT DISTINCT 25 - 48 + 39 DIV - 58 + - MAX( DISTINCT ( + + 13 ) ) * + - 74 + + 34 AS col2
----
973

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT 25 - 48 + 39 / - 58 + - MAX ( DISTINCT ( + + 13 ) ) * + - 74 + + 34 AS col2
----
973

query I rowsort
SELECT 32 * + 14 * 18 AS col0
----
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT CASE 37 WHEN 78 THEN + - 95 * - 45 * NULLIF ( - NULLIF ( - SUM( 11 ), COUNT( * ) ), 70 ) + + 64 * MIN( ALL 61 ) END * + + 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT CASE 37 WHEN 78 THEN + - 95 * - 45 * NULLIF ( - NULLIF ( - SUM ( 11 ), COUNT ( * ) ), 70 ) + + 64 * MIN ( ALL 61 ) END * + + 33 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT - 90 DIV - 2 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4584
SELECT - 90 / - 2 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - - SUM( - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - - SUM ( - 23 ) AS col0
----
-23

query I rowsort
SELECT + 25 * + - 44 + 32
----
-1068

query I rowsort
SELECT + 0 * - + 1 - + 34 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT 78 DIV + 71 + - - 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT 78 / + 71 + - - 46 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT DISTINCT COUNT( * ) * - 37 DIV COUNT( - - 99 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT COUNT ( * ) * - 37 / COUNT ( - - 99 ) AS col0
----
-37

query I rowsort
SELECT ALL 63 + - 17 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL 67 * + + 33 + 95 + + 86 * ( COUNT( * ) ) * - ( + COUNT( * ) )
----
2220

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 67 * + + 33 + 95 + + 86 * ( COUNT ( * ) ) * - ( + COUNT ( * ) )
----
2220

query I rowsort
SELECT COALESCE ( + 47, - + CASE 77 WHEN + + 28 THEN + + 61 END, + 16 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - 58 * + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - 58 * + COUNT ( * ) AS col2
----
-58

query II rowsort
SELECT ALL - - 90, 10 AS col2
----
90
10

query I rowsort
SELECT + ( - 50 ) AS col0
----
-50

query I rowsort
SELECT ALL - 9 + - 88 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4597
SELECT DISTINCT - 3 AS col2, + COALESCE ( + 38, - - 58 * 29 + + MAX( ALL - 0 ) + + + 44 * + 77 * + COUNT( * ), + 35 + + + 83 + - + CASE - - 44 WHEN 97 + + 70 + + + 95 / + 54 THEN NULL WHEN + + 36 * 22 + 69 / 38 * + - CAST( + 30 AS SIGNED ) * 23 - - + 83 THEN + ( + 83 ) END + + 3, COUNT( * ) ) * - ( 15 * - MIN( DISTINCT 73 ) )
----
-3
41610

skipif mysql # not compatible
query II rowsort label-4597
SELECT DISTINCT - 3 AS col2, + COALESCE ( + 38, - - 58 * 29 + + MAX ( ALL - 0 ) + + + 44 * + 77 * + COUNT ( * ), + 35 + + + 83 + - + CASE - - 44 WHEN 97 + + 70 + + + 95 / + 54 THEN NULL WHEN + + 36 * 22 + 69 / 38 * + - CAST ( + 30 AS INTEGER ) * 23 - - + 83 THEN + ( + 83 ) END + + 3, COUNT ( * ) ) * - ( 15 * - MIN ( DISTINCT 73 ) )
----
-3
41610

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT + 76 + - 61 + - - COALESCE ( - - 47, + - 16 * + MIN( ALL - 81 ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + 76 + - 61 + - - COALESCE ( - - 47, + - 16 * + MIN ( ALL - 81 ) ) AS col1
----
62

query I rowsort
SELECT + + ( ( - 88 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT 33 + - COUNT( * ) * 58
----
-25

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT 33 + - COUNT ( * ) * 58
----
-25

query I rowsort
SELECT 98 * + 89
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT COUNT( * ) - - 26 - CASE + COUNT( * ) WHEN - 90 THEN + 48 WHEN + COUNT( * ) THEN NULL ELSE 44 * 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT COUNT ( * ) - - 26 - CASE + COUNT ( * ) WHEN - 90 THEN + 48 WHEN + COUNT ( * ) THEN NULL ELSE 44 * 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT - 55, 87 * + MIN( ALL - 80 ) AS col1
----
-55
-6960

skipif mysql # not compatible
query II rowsort label-4603
SELECT - 55, 87 * + MIN ( ALL - 80 ) AS col1
----
-55
-6960

query I rowsort
SELECT 53 * - 43 * + 4 AS col1
----
-9116

query I rowsort
SELECT ALL 62 * + + ( + 55 ) AS col0
----
3410

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT 62 * - MAX( - 52 ) AS col0
----
3224

skipif mysql # not compatible
query I rowsort label-4606
SELECT 62 * - MAX ( - 52 ) AS col0
----
3224

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT - 66, MIN( ALL + + 21 ) AS col2
----
-66
21

skipif mysql # not compatible
query II rowsort label-4607
SELECT - 66, MIN ( ALL + + 21 ) AS col2
----
-66
21

query I rowsort
SELECT 52 * + + 65 AS col0
----
3380

query II rowsort
SELECT DISTINCT 27 AS col2, - 77
----
27
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4610
SELECT - 84 AS col0, - CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 2 * - 4 * - 79
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-4610
SELECT - 84 AS col0, - CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 2 * - 4 * - 79
----
-84
NULL

query II rowsort
SELECT ALL 85, 59 AS col0
----
85
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - - 70
----
NULL

query I rowsort
SELECT 77 * - + 75
----
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT MAX( DISTINCT - - 7 ) + - - 11
----
18

skipif mysql # not compatible
query I rowsort label-4614
SELECT MAX ( DISTINCT - - 7 ) + - - 11
----
18

query I rowsort
SELECT 87 - - - 75 + 98 col2
----
110

query I rowsort
SELECT 61 + + - 68
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - ( COUNT( * ) ) * + 48
----
-48

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - ( COUNT ( * ) ) * + 48
----
-48

query II rowsort
SELECT ALL - 82 AS col1, 91 + 14 AS col0
----
-82
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT - COALESCE ( + + 0, + NULLIF ( 0, + ( - 21 ) ) ) * + 59 + + 83 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - COALESCE ( + + 0, + NULLIF ( 0, + ( - 21 ) ) ) * + 59 + + 83 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL 39 * - 79 + - + 2 + COUNT( * ) * NULLIF ( CASE - 2 WHEN + 94 + - MIN( DISTINCT 57 ) + - CASE + + CAST( + - 48 AS SIGNED ) WHEN - - ( - 76 ) * COUNT( * ) + 79 - 74 - + 68 / 27 THEN NULL WHEN 62 THEN NULL ELSE - CAST( NULL AS SIGNED ) END THEN 48 END, - NULLIF ( NULLIF ( + 71, + - 48 ), + 97 + - - ( COUNT( * ) ) ) ) * - COALESCE ( + 39, + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 39 * - 79 + - + 2 + COUNT ( * ) * NULLIF ( CASE - 2 WHEN + 94 + - MIN ( DISTINCT 57 ) + - CASE + + CAST ( + - 48 AS INTEGER ) WHEN - - ( - 76 ) * COUNT ( * ) + 79 - 74 - + 68 / 27 THEN NULL WHEN 62 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END THEN 48 END, - NULLIF ( NULLIF ( + 71, + - 48 ), + 97 + - - ( COUNT ( * ) ) ) ) * - COALESCE ( + 39, + 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT - COUNT( * ) AS col0, + 59
----
-1
59

skipif mysql # not compatible
query II rowsort label-4621
SELECT - COUNT ( * ) AS col0, + 59
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + 30 * - COUNT( * ) + 77 - - ( 84 ) * 34
----
2903

skipif mysql # not compatible
query I rowsort label-4622
SELECT + 30 * - COUNT ( * ) + 77 - - ( 84 ) * 34
----
2903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT COUNT( * ) + 47 + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT COUNT ( * ) + 47 + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( + - 88 ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT CAST( - 5 AS SIGNED ) * + + 49 AS col0
----
-245

skipif mysql # not compatible
query I rowsort label-4625
SELECT CAST ( - 5 AS INTEGER ) * + + 49 AS col0
----
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4626
SELECT ALL 47 * + - CAST( + - 82 AS SIGNED ) * - + COUNT( * ) + + CAST( 40 AS SIGNED ), - 84 AS col2
----
-3814
-84

skipif mysql # not compatible
query II rowsort label-4626
SELECT ALL 47 * + - CAST ( + - 82 AS INTEGER ) * - + COUNT ( * ) + + CAST ( 40 AS INTEGER ), - 84 AS col2
----
-3814
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT + COALESCE ( - 92, - 37 + 62 ) col1, + MIN( DISTINCT + 80 ) + SUM( + 46 ) AS col1
----
-92
126

skipif mysql # not compatible
query II rowsort label-4627
SELECT + COALESCE ( - 92, - 37 + 62 ) col1, + MIN ( DISTINCT + 80 ) + SUM ( + 46 ) AS col1
----
-92
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL - - 42 * 12 * - 21 + ( - + COUNT( * ) ) + + 50 AS col1
----
-10535

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL - - 42 * 12 * - 21 + ( - + COUNT ( * ) ) + + 50 AS col1
----
-10535

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT 28 - - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4629
SELECT 28 - - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT DISTINCT + MAX( - 39 ) AS col2, 26
----
-39
26

skipif mysql # not compatible
query II rowsort label-4630
SELECT DISTINCT + MAX ( - 39 ) AS col2, 26
----
-39
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL COALESCE ( - ( 8 ), 61 ) * - SUM( + 8 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL COALESCE ( - ( 8 ), 61 ) * - SUM ( + 8 ) col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4632
SELECT + - COUNT( * ) AS col2, + 13 + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4632
SELECT + - COUNT ( * ) AS col2, + 13 + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT - + 72 + 75
----
3

query I rowsort
SELECT - 80 * - 0 + + + 87 AS col1
----
87

query I rowsort
SELECT + 15 * + 98
----
1470

query I rowsort
SELECT ALL 21 * + + 59 AS col0
----
1239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4637
SELECT + 3 + + - 24 DIV - COUNT( * ) AS col2, + 38 AS col1
----
27
38

skipif mysql # not compatible
query II rowsort label-4637
SELECT + 3 + + - 24 / - COUNT ( * ) AS col2, + 38 AS col1
----
27
38

query I rowsort
SELECT + 79 * + 41 col0
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + 97 + + - COUNT( ALL - 23 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 97 + + - COUNT ( ALL - 23 ) AS col1
----
96

query II rowsort
SELECT ALL 8 * - 78, 38 col2
----
-624
38

query I rowsort
SELECT + NULLIF ( - 15, - 16 ) * - + 33 + + - 9 AS col1
----
486

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4642
SELECT + 67 DIV + + COUNT( * ) AS col2, MAX( - - ( 28 ) ) col0
----
67
28

skipif mysql # not compatible
query II rowsort label-4642
SELECT + 67 / + + COUNT ( * ) AS col2, MAX ( - - ( 28 ) ) col0
----
67
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4643
SELECT ALL 72 * + 21, COUNT( * ) + + 40 DIV 58 + - ( + COUNT( * ) ) AS col0
----
1512
0

skipif mysql # not compatible
query II rowsort label-4643
SELECT ALL 72 * + 21, COUNT ( * ) + + 40 / 58 + - ( + COUNT ( * ) ) AS col0
----
1512
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - CASE - 46 WHEN - 51 THEN NULL WHEN COUNT( - + 11 ) THEN 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT - CASE - 46 WHEN - 51 THEN NULL WHEN COUNT ( - + 11 ) THEN 46 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - CAST( NULL AS SIGNED ) + - - 46 + + 18 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT - CAST ( NULL AS INTEGER ) + - - 46 + + 18 * - 97
----
NULL

query I rowsort
SELECT + 13 * + - ( - 2 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL MIN( + ( + 90 ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL MIN ( + ( + 90 ) ) col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4648
SELECT DISTINCT - CAST( - 97 AS SIGNED ) AS col1, 42 * SUM( + 82 ) AS col2
----
97
3444

skipif mysql # not compatible
query II rowsort label-4648
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) AS col1, 42 * SUM ( + 82 ) AS col2
----
97
3444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL 0 + CAST( NULL AS SIGNED ) + + MAX( ALL 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 0 + CAST ( NULL AS INTEGER ) + + MAX ( ALL 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4650
SELECT + 39 * 61, + 55 - + COUNT( * ) DIV + + 67 * + 47 + + CASE - + 54 WHEN ( COUNT( * ) ) * + 20 * + COUNT( * ) THEN 99 ELSE 15 END DIV - 36 AS col2
----
2379
55

skipif mysql # not compatible
query II rowsort label-4650
SELECT + 39 * 61, + 55 - + COUNT ( * ) / + + 67 * + 47 + + CASE - + 54 WHEN ( COUNT ( * ) ) * + 20 * + COUNT ( * ) THEN 99 ELSE 15 END / - 36 AS col2
----
2379
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4651
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) DIV 17 DIV + - COUNT( * ) * + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) / 17 / + - COUNT ( * ) * + 27 AS col1
----
0

query I rowsort
SELECT ALL - 24 + - 39 * + + 94
----
-3690

query I rowsort
SELECT + - 69 * ( + - 49 ) AS col2
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT + ( + SUM( + - 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + ( + SUM ( + - 50 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4655
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 67 * + 8 * CAST( NULL AS SIGNED ) + - - ( - COUNT( * ) ) THEN + - CAST( NULL AS SIGNED ) + 60 + 44 ELSE NULL END AS col1, 7 + 46
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 67 * + 8 * CAST ( NULL AS INTEGER ) + - - ( - COUNT ( * ) ) THEN + - CAST ( NULL AS INTEGER ) + 60 + 44 ELSE NULL END AS col1, 7 + 46
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4656
SELECT - + 91 * + + 88 - + 45 * - 35 DIV COUNT( * ) - + 92 * - COUNT( * ) * - 35 + + 32 + - NULLIF ( 68, - CAST( NULL AS DECIMAL ) * - + 45 ) * - + 15
----
-8601

skipif mysql # not compatible
query I rowsort label-4656
SELECT - + 91 * + + 88 - + 45 * - 35 / COUNT ( * ) - + 92 * - COUNT ( * ) * - 35 + + 32 + - NULLIF ( 68, - CAST ( NULL AS REAL ) * - + 45 ) * - + 15
----
-8601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4657
SELECT ALL + 62 * 25 - - - CASE + - 36 WHEN 69 + MIN( - 60 ) + + COUNT( DISTINCT 65 ) THEN + CAST( + COUNT( ALL - + 6 ) AS SIGNED ) ELSE NULL END AS col1, 97 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-4657
SELECT ALL + 62 * 25 - - - CASE + - 36 WHEN 69 + MIN ( - 60 ) + + COUNT ( DISTINCT 65 ) THEN + CAST ( + COUNT ( ALL - + 6 ) AS INTEGER ) ELSE NULL END AS col1, 97 AS col0
----
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL - - 20 * COALESCE ( - - 46, 92 ) * - CAST( NULL AS SIGNED ) + - 42 / - MAX( ALL 16 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - - 20 * COALESCE ( - - 46, 92 ) * - CAST ( NULL AS INTEGER ) + - 42 / - MAX ( ALL 16 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT - + 42 * SUM( ALL + COALESCE ( + + ( 29 ), + 86 DIV - - 58, + 92 ) ) * - - 60 * + MIN( 95 ) + + NULLIF ( - 27, + 89 ) - 64 DIV 92
----
-6942627

skipif mysql # not compatible
query I rowsort label-4659
SELECT - + 42 * SUM ( ALL + COALESCE ( + + ( 29 ), + 86 / - - 58, + 92 ) ) * - - 60 * + MIN ( 95 ) + + NULLIF ( - 27, + 89 ) - 64 / 92
----
-6942627

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT - 30 DIV - 93 - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 30 / - 93 - 97 AS col2
----
-97

query I rowsort
SELECT + 15 * + ( + 93 ) col0
----
1395

query II rowsort
SELECT DISTINCT + 94 AS col0, 82
----
94
82

query I rowsort
SELECT DISTINCT 74 * 51 AS col2
----
3774

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT - 79 DIV - 19
----
4

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 79 / - 19
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT COALESCE ( 62, 82 * + 35 + + - 42 + + 87 DIV + 81 * 63 + + - 58 * 37 * - - 20 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4665
SELECT COALESCE ( 62, 82 * + 35 + + - 42 + + 87 / + 81 * 63 + + - 58 * 37 * - - 20 ) AS col0
----
62

query I rowsort
SELECT ALL 67 * + 58 AS col2
----
3886

query I rowsort
SELECT + COALESCE ( 9, 93 * + 57 * + - 2 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4668
SELECT + 19, 12 * + 92 + - 38 + 78 * + 20 + - 91 DIV 19 * + 34 AS col1
----
19
2490

skipif mysql # not compatible
query II rowsort label-4668
SELECT + 19, 12 * + 92 + - 38 + 78 * + 20 + - 91 / 19 * + 34 AS col1
----
19
2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT - COUNT( + 14 ) - - 61 + + 35 * - 18 * 37
----
-23250

skipif mysql # not compatible
query I rowsort label-4669
SELECT - COUNT ( + 14 ) - - 61 + + 35 * - 18 * 37
----
-23250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT SUM( ALL - 13 ) * + CAST( NULL AS SIGNED ) + - 60 + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT SUM ( ALL - 13 ) * + CAST ( NULL AS INTEGER ) + - 60 + - 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + - 25
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL 19 + + - 33 + + + ( - - COUNT( * ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL 19 + + - 33 + + + ( - - COUNT ( * ) ) AS col0
----
-13

query I rowsort
SELECT ALL + 53 + + - 51 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT - + ( CAST( + 70 AS SIGNED ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4674
SELECT - + ( CAST ( + 70 AS INTEGER ) ) AS col0
----
-70

query I rowsort
SELECT COALESCE ( - 43, 93 )
----
-43

query I rowsort
SELECT + - 73 + + 93
----
20

query I rowsort
SELECT ALL + 4 + - 2 * - 64
----
132

query I rowsort
SELECT + 17 + 14
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL SUM( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL SUM ( ALL + 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL CAST( NULL AS SIGNED ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL CAST ( NULL AS INTEGER ) + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT 81 * MIN( DISTINCT - 77 ) AS col2
----
-6237

skipif mysql # not compatible
query I rowsort label-4681
SELECT 81 * MIN ( DISTINCT - 77 ) AS col2
----
-6237

query I rowsort
SELECT ALL COALESCE ( - 48, - 60 )
----
-48

query I rowsort
SELECT DISTINCT 18 - 97 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - 77 - + 38 + + 74 * 86 * - COUNT( * )
----
-6479

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - 77 - + 38 + + 74 * 86 * - COUNT ( * )
----
-6479

query I rowsort
SELECT 60 * - 0 + 72
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - 75 * + COUNT( * ) * - 35 + + + 55 AS col0, + 21 + + + 92 AS col2
----
2680
113

skipif mysql # not compatible
query II rowsort label-4686
SELECT - 75 * + COUNT ( * ) * - 35 + + + 55 AS col0, + 21 + + + 92 AS col2
----
2680
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT + 19 * + + NULLIF ( + 83, + 56 / - ( - 13 ) + + CAST( NULL AS SIGNED ) + + 19 / + 96 ) / - COUNT( * ) * - CASE WHEN ( + COALESCE ( - 89, - 91 ) IS NULL ) THEN - 0 ELSE NULL END * AVG ( + + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 19 * + + NULLIF ( + 83, + 56 / - ( - 13 ) + + CAST ( NULL AS INTEGER ) + + 19 / + 96 ) / - COUNT ( * ) * - CASE WHEN ( + COALESCE ( - 89, - 91 ) IS NULL ) THEN - 0 ELSE NULL END * AVG ( + + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT - 38 AS col2, - 56 * - + COUNT( * )
----
-38
56

skipif mysql # not compatible
query II rowsort label-4688
SELECT - 38 AS col2, - 56 * - + COUNT ( * )
----
-38
56

query I rowsort
SELECT ALL - ( + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT - MIN( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - MIN ( - 65 )
----
65

query I rowsort
SELECT - 84 * - NULLIF ( 41, + 44 ) - + - ( - ( + 32 ) ) AS col1
----
3412

query I rowsort
SELECT DISTINCT + 49 * 31
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT COALESCE ( 14, COUNT( * ) * - 22 ) * - - 91 col1
----
1274

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COALESCE ( 14, COUNT ( * ) * - 22 ) * - - 91 col1
----
1274

query I rowsort
SELECT 62 * + 15 * + 13
----
12090

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT COALESCE ( + 43, - 43 ) + + 12 + + 74 + + COUNT( * ) * - + 6 * - ( COUNT( * ) )
----
135

skipif mysql # not compatible
query I rowsort label-4695
SELECT COALESCE ( + 43, - 43 ) + + 12 + + 74 + + COUNT ( * ) * - + 6 * - ( COUNT ( * ) )
----
135

query I rowsort
SELECT DISTINCT + 49 * - ( - 4 ) AS col1
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT 59 * 71 * + 44 + CAST( NULL AS SIGNED ) * + 32 / + 65 * - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT 59 * 71 * + 44 + CAST ( NULL AS INTEGER ) * + 32 / + 65 * - - 66
----
NULL

query I rowsort
SELECT 78 - + 91 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT 81 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-4699
SELECT 81 / 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT + COUNT( * ) * - 24 + + 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4700
SELECT + COUNT ( * ) * - 24 + + 25 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT MIN( ALL 25 ) - - 96 + - 73
----
48

skipif mysql # not compatible
query I rowsort label-4701
SELECT MIN ( ALL 25 ) - - 96 + - 73
----
48

query I rowsort
SELECT DISTINCT ( 88 ) + 45
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - 59 + - + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - 59 + - + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4704
SELECT DISTINCT + COUNT( * ) DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + COUNT ( * ) / 86 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT 71 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-4705
SELECT 71 / + - 54
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4706
SELECT ALL + 32 + 68 * + 9 * - 82 + CAST( NULL AS SIGNED ) AS col0, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4706
SELECT ALL + 32 + 68 * + 9 * - 82 + CAST ( NULL AS INTEGER ) AS col0, 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT + 87 * - CASE + COUNT( * ) WHEN - - 47 THEN - 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + 87 * - CASE + COUNT ( * ) WHEN - - 47 THEN - 97 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL 78 + + ( - CAST( 48 AS SIGNED ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL 78 + + ( - CAST ( 48 AS INTEGER ) ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT 61 DIV + - ( + COALESCE ( COUNT( * ), - COUNT( * ), 42 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-4709
SELECT 61 / + - ( + COALESCE ( COUNT ( * ), - COUNT ( * ), 42 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT SUM( 92 ) + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4710
SELECT SUM ( 92 ) + + COUNT ( * )
----
93

query I rowsort
SELECT DISTINCT + 66 * + - 2 * + + 64
----
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + 75 + + - 58 DIV 35 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 75 + + - 58 / 35 AS col2
----
74

query I rowsort
SELECT ALL + 42 - 5 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL + COUNT( * ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1
----
-1

query I rowsort
SELECT 96 * 2 col1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT MIN( - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4716
SELECT MIN ( - 32 ) AS col2
----
-32

query I rowsort
SELECT 75 - 97 AS col1
----
-22

query I rowsort
SELECT - 73 * 1 + + 45
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT COUNT( * ) + COUNT( * ) - - 52
----
54

skipif mysql # not compatible
query I rowsort label-4719
SELECT COUNT ( * ) + COUNT ( * ) - - 52
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT + CAST( - CASE + 21 WHEN + - 61 * + 63 - 98 THEN - 16 / - + 75 WHEN + COUNT( * ) * - 63 THEN NULL END AS SIGNED ) / + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + CAST ( - CASE + 21 WHEN + - 61 * + 63 - 98 THEN - 16 / - + 75 WHEN + COUNT ( * ) * - 63 THEN NULL END AS INTEGER ) / + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + MIN( + 67 ) * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + MIN ( + 67 ) * - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4722
SELECT + ( - 34 ) DIV + MIN( DISTINCT + - 95 ) + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-4722
SELECT + ( - 34 ) / + MIN ( DISTINCT + - 95 ) + - 4
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT ALL + 54 * COUNT( * ), + 76 + - + MAX( DISTINCT + - 14 ) AS col2
----
54
90

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL + 54 * COUNT ( * ), + 76 + - + MAX ( DISTINCT + - 14 ) AS col2
----
54
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT DISTINCT CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 65
----
NULL

query I rowsort
SELECT ALL COALESCE ( - ( - 20 ), - ( - 87 ) ) * + 37
----
740

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT 26 DIV + + 15 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4726
SELECT 26 / + + 15 AS col2
----
1

query II rowsort
SELECT + 6, - 21 AS col0
----
6
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ( + + 73 ) * + MAX( DISTINCT - 36 )
----
-2628

skipif mysql # not compatible
query I rowsort label-4728
SELECT ( + + 73 ) * + MAX ( DISTINCT - 36 )
----
-2628

query I rowsort
SELECT ALL 56 + - 73 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + ( + COUNT( * ) ) * + 95 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4730
SELECT + ( + COUNT ( * ) ) * + 95 + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT ALL - 23, ( + MIN( DISTINCT - 78 ) ) AS col2
----
-23
-78

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL - 23, ( + MIN ( DISTINCT - 78 ) ) AS col2
----
-23
-78

query I rowsort
SELECT DISTINCT 61 + + + 52 AS col0
----
113

query I rowsort
SELECT ALL 96 + - 32
----
64

query I rowsort
SELECT DISTINCT 55 + + - 9
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4735
SELECT 0 col2, CAST( NULL AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4735
SELECT 0 col2, CAST ( NULL AS REAL )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + COUNT( * ) + MIN( 6 )
----
7

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + COUNT ( * ) + MIN ( 6 )
----
7

query I rowsort
SELECT ALL 90 + 12 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT NULLIF ( 55, ( + + 36 ) ) * 21 + + - 16 + 74 + 15 + - COUNT( * ) - COALESCE ( COUNT( * ), + 71 ) AS col1
----
1226

skipif mysql # not compatible
query I rowsort label-4738
SELECT NULLIF ( 55, ( + + 36 ) ) * 21 + + - 16 + 74 + 15 + - COUNT ( * ) - COALESCE ( COUNT ( * ), + 71 ) AS col1
----
1226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT ALL + 1 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + 1 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT 71 AS col1, COUNT( * ) AS col2
----
71
1

skipif mysql # not compatible
query II rowsort label-4741
SELECT 71 AS col1, COUNT ( * ) AS col2
----
71
1

query I rowsort
SELECT DISTINCT 46 * - - NULLIF ( 86, - 55 )
----
3956

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT - 31, ( - 48 ) - - 20 * - + 44 + - MAX( - 64 ) AS col0
----
-31
-864

skipif mysql # not compatible
query II rowsort label-4743
SELECT - 31, ( - 48 ) - - 20 * - + 44 + - MAX ( - 64 ) AS col0
----
-31
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - + 55 DIV COALESCE ( - 34, + - COUNT( * ) * + 71, - 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - + 55 / COALESCE ( - 34, + - COUNT ( * ) * + 71, - 60 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT - COUNT( * ) - + 74 + + COUNT( * ) * - 96
----
-171

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - COUNT ( * ) - + 74 + + COUNT ( * ) * - 96
----
-171

query I rowsort
SELECT ALL - - 5 * + - 1 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT ALL - - 88 DIV - + 25 + - 91
----
-94

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - - 88 / - + 25 + - 91
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - MAX( ALL + 75 ) * - + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT - MAX ( ALL + 75 ) * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4749
SELECT ALL - - 13 * - 54 + + 60 * - - 29 DIV - COUNT( * ) col1, 40 col1, - 38 + + 79
----
-2442
40
41

skipif mysql # not compatible
query III rowsort label-4749
SELECT ALL - - 13 * - 54 + + 60 * - - 29 / - COUNT ( * ) col1, 40 col1, - 38 + + 79
----
-2442
40
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT - CASE WHEN NOT - 91 IN ( + CAST( - 59 AS SIGNED ) * COUNT( DISTINCT - 35 ) * 33 ) THEN 38 + 53 ELSE NULL END
----
-91

skipif mysql # not compatible
query I rowsort label-4750
SELECT - CASE WHEN NOT - 91 IN ( + CAST ( - 59 AS INTEGER ) * COUNT ( DISTINCT - 35 ) * 33 ) THEN 38 + 53 ELSE NULL END
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4751
SELECT CASE + CASE + - COALESCE ( + 37, 85, + COALESCE ( - 33, - - CAST( NULL AS SIGNED ) ), + 37 + - 49 ) WHEN + 86 * + MAX( + - 92 ) * + CAST( NULL AS SIGNED ) - + COUNT( * ) + - 22 THEN NULL WHEN + + 29 / - + 83 THEN + 9 END WHEN + 97 THEN + 90 WHEN 65 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT CASE + CASE + - COALESCE ( + 37, 85, + COALESCE ( - 33, - - CAST ( NULL AS INTEGER ) ), + 37 + - 49 ) WHEN + 86 * + MAX ( + - 92 ) * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - 22 THEN NULL WHEN + + 29 / - + 83 THEN + 9 END WHEN + 97 THEN + 90 WHEN 65 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - - 80 + 9 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT + - 75 - - ( - COUNT( DISTINCT + + 97 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4753
SELECT + - 75 - - ( - COUNT ( DISTINCT + + 97 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + + COUNT( * ) * - - 5 col0
----
5

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + + COUNT ( * ) * - - 5 col0
----
5

query I rowsort
SELECT - + 64 * - - 64 col2
----
-4096

onlyif mysql # aggregate syntax: 
query III rowsort label-4756
SELECT ALL 44 AS col2, - ( + COUNT( * ) ) AS col1, COUNT( * ) col0
----
44
-1
1

skipif mysql # not compatible
query III rowsort label-4756
SELECT ALL 44 AS col2, - ( + COUNT ( * ) ) AS col1, COUNT ( * ) col0
----
44
-1
1

query I rowsort
SELECT + 46 * + - 79 AS col2
----
-3634

query I rowsort
SELECT + 57 + - 22
----
35

query I rowsort
SELECT ALL 69 * + 76 + + - 40 col2
----
5204

query I rowsort
SELECT + CASE - 88 WHEN - 22 THEN NULL WHEN - - ( 24 ) THEN - - 85 * + NULLIF ( 79, + 65 - - - 38 * 77 ) + + COALESCE ( - COALESCE ( NULLIF ( 11, - 83 * + 35 * - 62 + - 3 * AVG ( - 4 ) ), + 49 * + + 89 ), - 91 * + 31, - + COALESCE ( - AVG ( ALL + 36 ), + - 32 + + 19 * - ( - - 59 ) ) ) * 61 * + 10 * 83 WHEN - COALESCE ( + 64, + 71 ) * + 85 - 49 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT COUNT( * ) * 93 * - - 30 * + 87 + - 15
----
242715

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT COUNT ( * ) * 93 * - - 30 * + 87 + - 15
----
242715

query I rowsort
SELECT ALL 8 * 82 * + 66 AS col2
----
43296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT + 14 / + - 46 * + ( + CASE + CAST( NULL AS SIGNED ) WHEN 11 THEN - - CASE - + 10 WHEN + 23 THEN + MIN( DISTINCT 75 ) ELSE NULL END ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 14 / + - 46 * + ( + CASE + CAST ( NULL AS INTEGER ) WHEN 11 THEN - - CASE - + 10 WHEN + 23 THEN + MIN ( DISTINCT 75 ) ELSE NULL END ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL 25 * - 36 + + - SUM( + 89 )
----
-989

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL 25 * - 36 + + - SUM ( + 89 )
----
-989

query I rowsort
SELECT + 37 * 87 - NULLIF ( + + 17, + 19 / 93 ) AS col1
----
3202

query II rowsort
SELECT DISTINCT + 13, 37 AS col1
----
13
37

query I rowsort
SELECT ALL 73 * 49 AS col1
----
3577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT CAST( NULL AS SIGNED ) * 89 + - 28 / 50 + + 82 + + 66 + - AVG ( - 36 ) + + 55 + + NULLIF ( 46, + + COALESCE ( + 45, + 38 ) + - MAX( DISTINCT - 8 ) ) * - 14 * 14 * + 46 + COUNT( DISTINCT + - 89 ) * - - 8 * - 93 + + COUNT( * ) + - 66 + + 4 * + 88 / 64 * - + 58 + - 58 * 81 + + 68 * - 23 * 35 + 35 - - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT CAST ( NULL AS INTEGER ) * 89 + - 28 / 50 + + 82 + + 66 + - AVG ( - 36 ) + + 55 + + NULLIF ( 46, + + COALESCE ( + 45, + 38 ) + - MAX ( DISTINCT - 8 ) ) * - 14 * 14 * + 46 + COUNT ( DISTINCT + - 89 ) * - - 8 * - 93 + + COUNT ( * ) + - 66 + + 4 * + 88 / 64 * - + 58 + - 58 * 81 + + 68 * - 23 * 35 + 35 - - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + SUM( ALL 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4769
SELECT + SUM ( ALL 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT CASE COUNT( * ) WHEN - 22 + - 64 THEN NULL WHEN + + 36 * - + 3 / + - 73 * 9 THEN + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT CASE COUNT ( * ) WHEN - 22 + - 64 THEN NULL WHEN + + 36 * - + 3 / + - 73 * 9 THEN + 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + 54 - COUNT( * ) DIV + ( + + 64 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4771
SELECT + 54 - COUNT ( * ) / + ( + + 64 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT + CAST( - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4772
SELECT + CAST ( - 1 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4773
SELECT + CAST( NULL AS DECIMAL ) + + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + CAST ( NULL AS REAL ) + + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + MAX( ALL + + ( - 8 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + MAX ( ALL + + ( - 8 ) ) AS col1
----
-8

query I rowsort
SELECT ALL + - NULLIF ( + 92, 81 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + - COUNT( + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - COUNT ( + 36 )
----
-1

query I rowsort
SELECT ALL - - 53 * + 58
----
3074

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT + ( - - 6 ) + + COALESCE ( 63, 2 DIV 43, - - 50 ) * - + 90 + + - 62
----
-5726

skipif mysql # not compatible
query I rowsort label-4778
SELECT + ( - - 6 ) + + COALESCE ( 63, 2 / 43, - - 50 ) * - + 90 + + - 62
----
-5726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL CASE + 98 WHEN + 41 * - 41 * + 0 * + NULLIF ( - - 82, - - 70 ) / - 18 * CAST( NULL AS SIGNED ) + 45 THEN 22 * 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL CASE + 98 WHEN + 41 * - 41 * + 0 * + NULLIF ( - - 82, - - 70 ) / - 18 * CAST ( NULL AS INTEGER ) + 45 THEN 22 * 43 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT - 57 * + + 92 + + 37 DIV COUNT( * ) AS col1
----
-5207

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 57 * + + 92 + + 37 / COUNT ( * ) AS col1
----
-5207

query I rowsort
SELECT - + CASE + 68 WHEN 5 THEN + 1 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT + + MIN( DISTINCT + 68 ) DIV - 18 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4782
SELECT + + MIN ( DISTINCT + 68 ) / - 18 AS col2
----
-3

query I rowsort
SELECT - - 95 + + 97 * + 41 AS col1
----
4072

query II rowsort
SELECT 85 col0, 44 + + 57 + - - 56 AS col2
----
85
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - - 4 + + ( - 95 ) * - 85 + COUNT( + 59 ) + + 94 + - 72 * 17
----
6950

skipif mysql # not compatible
query I rowsort label-4785
SELECT - - 4 + + ( - 95 ) * - 85 + COUNT ( + 59 ) + + 94 + - 72 * 17
----
6950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT + 95 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT + 95 * + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 48 AS col2, ( - 15 ) AS col2
----
-48
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT - - COUNT( * ), - 11 + 99 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-4789
SELECT - - COUNT ( * ), - 11 + 99 AS col2
----
1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT - 5 DIV - ( - - COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 5 / - ( - - COUNT ( * ) )
----
5

query I rowsort
SELECT ALL + 46 + - ( 70 ) col0
----
-24

query I rowsort
SELECT + 44 + 96 + - 2 + 13 + 72 * - 99 * + 96 * - - 6 AS col2
----
-4105577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL CAST( - ( + 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL CAST ( - ( + 49 ) AS INTEGER )
----
-49

query I rowsort
SELECT DISTINCT - 18 * + - 35
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT ALL COUNT( * ) / 28 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL COUNT ( * ) / 28 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT ALL 52 DIV - - 6 + + 78
----
86

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL 52 / - - 6 + + 78
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT DISTINCT 77 DIV - 40 + + ( + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT 77 / - 40 + + ( + COUNT ( * ) ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 19 * 62 AS col2, - 85
----
-1178
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 72 * - - 8
----
-576

query I rowsort
SELECT + ( 34 ) col2
----
34

query I rowsort
SELECT + 13 * 54
----
702

query I rowsort
SELECT + 31 + - 51
----
-20

query I rowsort
SELECT 25 * + 98 AS col1
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL - 54 * + COUNT( * ) AS col1, 83 * + 73 * 16
----
-54
96944

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL - 54 * + COUNT ( * ) AS col1, 83 * + 73 * 16
----
-54
96944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT 11 - - 92 * ( - 58 ) * - 41 * - - 10 + 23 DIV - + COUNT( * )
----
2187748

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT 11 - - 92 * ( - 58 ) * - 41 * - - 10 + 23 / - + COUNT ( * )
----
2187748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT 55 * + 70 * - CAST( NULL AS SIGNED ) * + + MAX( + 5 ) - 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT 55 * + 70 * - CAST ( NULL AS INTEGER ) * + + MAX ( + 5 ) - 51 col2
----
NULL

query I rowsort
SELECT 4 * + 67 AS col2
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT + 3 * - + ( - - ( - COUNT( * ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4809
SELECT + 3 * - + ( - - ( - COUNT ( * ) ) ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT - COUNT( * ) * + - 53 - + 36 DIV - 60 * + - 82 * - 97 - 12
----
41

skipif mysql # not compatible
query I rowsort label-4810
SELECT - COUNT ( * ) * + - 53 - + 36 / - 60 * + - 82 * - 97 - 12
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT 81 - MIN( - 55 ) - - MIN( + + 24 ) AS col0
----
160

skipif mysql # not compatible
query I rowsort label-4811
SELECT 81 - MIN ( - 55 ) - - MIN ( + + 24 ) AS col0
----
160

query I rowsort
SELECT - 70 + + + 60
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL 53 + - 97 + + + COUNT( * ) + MIN( - 42 ) - - 33 col2
----
-52

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL 53 + - 97 + + + COUNT ( * ) + MIN ( - 42 ) - - 33 col2
----
-52

query I rowsort
SELECT ALL NULLIF ( - 22, + 46 )
----
-22

query I rowsort
SELECT DISTINCT 80 + 36 + + 56 * 95
----
5436

query I rowsort
SELECT - 28 * - 30
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT COUNT( * ) + 33 + + - ( + 96 )
----
-62

skipif mysql # not compatible
query I rowsort label-4817
SELECT COUNT ( * ) + 33 + + - ( + 96 )
----
-62

query I rowsort
SELECT ALL 33 * 13 AS col1
----
429

query I rowsort
SELECT 71 * - + 68 AS col2
----
-4828

query I rowsort
SELECT ALL - 14 - 92 AS col2
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4821
SELECT DISTINCT 91 - - - CAST( + + 52 AS SIGNED ) col1, 35
----
39
35

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT 91 - - - CAST ( + + 52 AS INTEGER ) col1, 35
----
39
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT ALL + 69 DIV 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + 69 / 45 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT 12 * - COUNT( * ) DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT 12 * - COUNT ( * ) / - 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT COUNT( * ) * + ( + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4825
SELECT COUNT ( * ) * + ( + + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL + 42 * - COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 42 * - COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT 86 + + 69 AS col0
----
155

query II rowsort
SELECT ALL - 25 AS col2, 6 + - 7
----
-25
-1

query I rowsort
SELECT DISTINCT - ( 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - 70 * - - 45 * - COALESCE ( 95, - ( - 14 ) * 51 + - - CASE - 88 WHEN - + COUNT( * ) THEN 93 END + + 42, + 86 + - COUNT( * ) ) * ( + 6 ) * + + 54
----
96957000

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 70 * - - 45 * - COALESCE ( 95, - ( - 14 ) * 51 + - - CASE - 88 WHEN - + COUNT ( * ) THEN 93 END + + 42, + 86 + - COUNT ( * ) ) * ( + 6 ) * + + 54
----
96957000

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT 2 - - 8 + - 18 * + COUNT( * ) AS col2, 65
----
-8
65

skipif mysql # not compatible
query II rowsort label-4831
SELECT 2 - - 8 + - 18 * + COUNT ( * ) AS col2, 65
----
-8
65

query I rowsort
SELECT DISTINCT - 97 * - 75
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - ( + - 14 ) * + 0 + - - COUNT( ALL - - 77 ) - + 5 * - - MIN( + 35 ) + - + 58 - SUM( DISTINCT 6 ) * + COUNT( * ) * - 27 * 11 col0
----
1550

skipif mysql # not compatible
query I rowsort label-4833
SELECT - ( + - 14 ) * + 0 + - - COUNT ( ALL - - 77 ) - + 5 * - - MIN ( + 35 ) + - + 58 - SUM ( DISTINCT 6 ) * + COUNT ( * ) * - 27 * 11 col0
----
1550

query I rowsort
SELECT 15 * - 58
----
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL - SUM( NULLIF ( - 19, ( + 94 ) / ( + 40 ) ) ) * + + COUNT( * ) / 31 + CAST( NULL AS SIGNED ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - SUM ( NULLIF ( - 19, ( + 94 ) / ( + 40 ) ) ) * + + COUNT ( * ) / 31 + CAST ( NULL AS INTEGER ) * - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT + CAST( ( - 68 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4836
SELECT + CAST ( ( - 68 ) AS INTEGER )
----
-68

query I rowsort
SELECT 16 + + 99 AS col0
----
115

query I rowsort
SELECT - 27 + + 49 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT 40, NULLIF ( - COUNT( * ), - 11 + + 47 ) - - + 42 AS col2
----
40
41

skipif mysql # not compatible
query II rowsort label-4839
SELECT 40, NULLIF ( - COUNT ( * ), - 11 + + 47 ) - - + 42 AS col2
----
40
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4840
SELECT - 86 * 38 + 96 col0, - 3 AS col0, MIN( - CAST( 6 AS SIGNED ) )
----
-3172
-3
-6

skipif mysql # not compatible
query III rowsort label-4840
SELECT - 86 * 38 + 96 col0, - 3 AS col0, MIN ( - CAST ( 6 AS INTEGER ) )
----
-3172
-3
-6

query I rowsort
SELECT ALL - + ( - 84 ) + - COALESCE ( + 41, + 53 ) col1
----
43

query I rowsort
SELECT 96 + 14 * - - ( 34 ) col0
----
572

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT ALL - 62 + + + 9 * 48, - ( + COUNT( * ) ) - - 33 + 30 AS col1
----
370
62

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL - 62 + + + 9 * 48, - ( + COUNT ( * ) ) - - 33 + 30 AS col1
----
370
62

query I rowsort
SELECT - 68 * - ( + NULLIF ( 87, - - 87 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + 82 + - COUNT ( * )
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4846
SELECT 83 col2, CASE COALESCE ( + + 21, + - 42, - ( 95 ) ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 46 THEN + 45 + - 79 + - ( + + 32 ) * + AVG ( DISTINCT - 92 ) * - + 3 / + 21 ELSE 43 + + - 83 * 60 END
----
83
-4937

skipif mysql # not compatible
query II rowsort label-4846
SELECT 83 col2, CASE COALESCE ( + + 21, + - 42, - ( 95 ) ) WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + 46 THEN + 45 + - 79 + - ( + + 32 ) * + AVG ( DISTINCT - 92 ) * - + 3 / + 21 ELSE 43 + + - 83 * 60 END
----
83
-4937

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL - 13 + + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - 13 + + - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT COUNT( * ) + - 78 - 81 AS col1, 43 + - - 60 AS col0
----
-158
103

skipif mysql # not compatible
query II rowsort label-4848
SELECT COUNT ( * ) + - 78 - 81 AS col1, 43 + - - 60 AS col0
----
-158
103

query II rowsort
SELECT ALL - 6, 43 * - COALESCE ( 15, + 21 ) AS col2
----
-6
-645

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT DISTINCT - + CASE + + ( + 92 ) WHEN - 27 * 2 DIV - 78 THEN NULL ELSE + 50 DIV + 64 END + - + 2 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - + CASE + + ( + 92 ) WHEN - 27 * 2 / - 78 THEN NULL ELSE + 50 / + 64 END + - + 2 col1
----
-2

query I rowsort
SELECT ALL + 21 + + 41
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT NULLIF ( - 98, - + SUM( - ( + + 86 ) ) * + + 66 ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-4852
SELECT NULLIF ( - 98, - + SUM ( - ( + + 86 ) ) * + + 66 ) col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT - 29 AS col0, - MIN( ALL 61 ) AS col2
----
-29
-61

skipif mysql # not compatible
query II rowsort label-4853
SELECT - 29 AS col0, - MIN ( ALL 61 ) AS col2
----
-29
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL MIN( 72 ) + 55 - 54 * 62 + + 34 AS col2
----
-3187

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL MIN ( 72 ) + 55 - 54 * 62 + + 34 AS col2
----
-3187

query I rowsort
SELECT ALL - CASE - 10 WHEN - - ( - + 80 ) THEN - 74 END AS col2
----
NULL

query I rowsort
SELECT 88 * 41 AS col1
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4857
SELECT ALL - 45 + - - 75 * - COUNT( * ) * - - 8 - + 81 + - - 67 DIV 30 * - 35 + + 98 - - 89 + + 99 col0
----
-510

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - 45 + - - 75 * - COUNT ( * ) * - - 8 - + 81 + - - 67 / 30 * - 35 + + 98 - - 89 + + 99 col0
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT COUNT( DISTINCT - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT COUNT ( DISTINCT - 69 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT DISTINCT 27 + 43 AS col2, MAX( ALL + + 40 )
----
70
40

skipif mysql # not compatible
query II rowsort label-4859
SELECT DISTINCT 27 + 43 AS col2, MAX ( ALL + + 40 )
----
70
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT SUM( + 94 ) * - 70 + + 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT SUM ( + 94 ) * - 70 + + 68 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL SUM( 52 ) * - 24 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL SUM ( 52 ) * - 24 AS col2
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4862
SELECT 96 + - - 26 * 70 + - CAST( NULL AS SIGNED ) * + - 28 / 70 + - - 75, 27 + 84 AS col1
----
NULL
111

skipif mysql # not compatible
query II rowsort label-4862
SELECT 96 + - - 26 * 70 + - CAST ( NULL AS INTEGER ) * + - 28 / 70 + - - 75, 27 + 84 AS col1
----
NULL
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT ALL 26 - 54, + COUNT( * ) * 11 col2
----
-28
11

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL 26 - 54, + COUNT ( * ) * 11 col2
----
-28
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL 43 * + ( - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 43 * + ( - COUNT ( * ) )
----
-43

query II rowsort
SELECT 80 - + 70 AS col2, - 48
----
10
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4866
SELECT ALL 90 - - - 94 * + 11 + + CAST( NULL AS DECIMAL ) * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 90 - - - 94 * + 11 + + CAST ( NULL AS REAL ) * - + 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + CAST( NULL AS SIGNED ) * - 54 * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( NULL AS INTEGER ) * - 54 * - 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT COUNT( * ) * - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COUNT ( * ) * - 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL + SUM( ( - 2 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + SUM ( ( - 2 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + + CASE 94 WHEN - COUNT( * ) THEN - - 56 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + + CASE 94 WHEN - COUNT ( * ) THEN - - 56 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - + 39 * - CASE + + COUNT( * ) WHEN 78 + + 10 THEN 40 + + - 68 ELSE - + 14 * 66 + + - 61 END + + 93 AS col0
----
-38322

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - + 39 * - CASE + + COUNT ( * ) WHEN 78 + + 10 THEN 40 + + - 68 ELSE - + 14 * 66 + + - 61 END + + 93 AS col0
----
-38322

query I rowsort
SELECT + - 72 * 52
----
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT - + 26 DIV SUM( DISTINCT - 1 ) + - ( ( + COUNT( * ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4873
SELECT - + 26 / SUM ( DISTINCT - 1 ) + - ( ( + COUNT ( * ) ) ) AS col0
----
25

query I rowsort
SELECT - + 97 * + + 49
----
-4753

query I rowsort
SELECT DISTINCT - 47 * - 56 + - 74
----
2558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT CASE + - 80 WHEN - + COUNT( * ) THEN + 63 WHEN + COUNT( + CAST( NULL AS SIGNED ) ) THEN 6 WHEN 29 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4876
SELECT CASE + - 80 WHEN - + COUNT ( * ) THEN + 63 WHEN + COUNT ( + CAST ( NULL AS INTEGER ) ) THEN 6 WHEN 29 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL + COUNT( * ) * - AVG ( DISTINCT + NULLIF ( + - 41, - - 78 ) ) * + CAST( 78 AS SIGNED ) * 76 / SUM( CAST( NULL AS SIGNED ) ) * - - 15 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + COUNT ( * ) * - AVG ( DISTINCT + NULLIF ( + - 41, - - 78 ) ) * + CAST ( 78 AS INTEGER ) * 76 / SUM ( CAST ( NULL AS INTEGER ) ) * - - 15 + - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL + + 89 * 81 * - + MAX( DISTINCT + 64 ) + - COALESCE ( - - MAX( ALL 76 ), + 84 * - 88 * - - NULLIF ( + 60, CAST( NULL AS SIGNED ) * - + SUM( + 67 ) ) + + + 64, + 9 * - + 51 + 94 / - 0 ) - 59 * + 38 * + 94 * + CASE - 59 WHEN + - 38 - + 62 * + - 38 THEN + 13 * + - 44 END * NULLIF ( - - 91, 38 / + NULLIF ( COUNT( * ), - - 90 ) ) + + + AVG ( DISTINCT + 15 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + + 89 * 81 * - + MAX ( DISTINCT + 64 ) + - COALESCE ( - - MAX ( ALL 76 ), + 84 * - 88 * - - NULLIF ( + 60, CAST ( NULL AS INTEGER ) * - + SUM ( + 67 ) ) + + + 64, + 9 * - + 51 + 94 / - 0 ) - 59 * + 38 * + 94 * + CASE - 59 WHEN + - 38 - + 62 * + - 38 THEN + 13 * + - 44 END * NULLIF ( - - 91, 38 / + NULLIF ( COUNT ( * ), - - 90 ) ) + + + AVG ( DISTINCT + 15 ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4879
SELECT - CAST( NULL AS DECIMAL ) * - 27 + - 2 * + 21 + + 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT - CAST ( NULL AS REAL ) * - 27 + - 2 * + 21 + + 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + COUNT( ALL + + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + COUNT ( ALL + + 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + 11 * - 38 * + 87 + + + MIN( DISTINCT + 8 ) - + COUNT( * ) AS col2
----
-36359

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 11 * - 38 * + 87 + + + MIN ( DISTINCT + 8 ) - + COUNT ( * ) AS col2
----
-36359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT - + 95 - - 16 + + 81 * + CASE + 42 WHEN - - 92 THEN + COALESCE ( - + 92, + 34 ) DIV + 7 DIV COUNT( * ) * - SUM( DISTINCT + 7 ) WHEN 37 THEN NULL ELSE - ( 45 ) END - 25 * - - 33
----
-4549

skipif mysql # not compatible
query I rowsort label-4882
SELECT - + 95 - - 16 + + 81 * + CASE + 42 WHEN - - 92 THEN + COALESCE ( - + 92, + 34 ) / + 7 / COUNT ( * ) * - SUM ( DISTINCT + 7 ) WHEN 37 THEN NULL ELSE - ( 45 ) END - 25 * - - 33
----
-4549

query II rowsort
SELECT - CASE + 22 WHEN - 76 THEN + 69 ELSE NULL END, - NULLIF ( - 32, 24 ) AS col2
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - - COUNT( * ) + + + 84 * + - ( - + 15 ) + - 58 + + SUM( + - 95 ) AS col0
----
1108

skipif mysql # not compatible
query I rowsort label-4884
SELECT - - COUNT ( * ) + + + 84 * + - ( - + 15 ) + - 58 + + SUM ( + - 95 ) AS col0
----
1108

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT ALL + 15 - 96 - - 93 + - 3 DIV 39 + + 62 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + 15 - 96 - - 93 + - 3 / 39 + + 62 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4886
SELECT - COUNT( * ) * - 53 + - CASE - 71 WHEN 8 THEN NULL ELSE - CASE + 32 WHEN - 72 THEN - CAST( - 25 AS DECIMAL ) + + 94 + COUNT( * ) - - 21 END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT - COUNT ( * ) * - 53 + - CASE - 71 WHEN 8 THEN NULL ELSE - CASE + 32 WHEN - 72 THEN - CAST ( - 25 AS REAL ) + + 94 + COUNT ( * ) - - 21 END END col2
----
NULL

query I rowsort
SELECT ALL + 35 - + 72
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT COUNT( * ) * + CAST( + - CASE ( - CASE + 91 WHEN + 34 THEN + 55 * 91 * + ( - 60 ) + + 42 END ) WHEN - + 81 + - 19 THEN 66 WHEN - 72 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT COUNT ( * ) * + CAST ( + - CASE ( - CASE + 91 WHEN + 34 THEN + 55 * 91 * + ( - 60 ) + + 42 END ) WHEN - + 81 + - 19 THEN 66 WHEN - 72 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT - 32 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - 32 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 38 + + + NULLIF ( - 22, - 89 * + 90 * + - 73 ) + + - 40 AS col0
----
-100

query I rowsort
SELECT + 20 + + - 99 AS col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT - 32 DIV 75 * 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT - 32 / 75 * 8 AS col0
----
0

query I rowsort
SELECT + 38 * + 5 * - 96 AS col0
----
-18240

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - COALESCE ( + 85, + 91 * COUNT( * ) ) + MAX( 89 )
----
4

skipif mysql # not compatible
query I rowsort label-4894
SELECT - COALESCE ( + 85, + 91 * COUNT ( * ) ) + MAX ( 89 )
----
4

query I rowsort
SELECT + 14 * 22
----
308

query I rowsort
SELECT - 84 + - 39 * + 51 + + 69 * 43 AS col0
----
894

query I rowsort
SELECT DISTINCT ( 70 ) AS col1
----
70

query I rowsort
SELECT + 78 * - 85
----
-6630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL CAST( + + ( + 15 ) AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL CAST ( + + ( + 15 ) AS INTEGER ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - CASE 45 WHEN + 5 THEN 11 / + - COUNT( * ) + + + 27 / - 8 - - - 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT - CASE 45 WHEN + 5 THEN 11 / + - COUNT ( * ) + + + 27 / - 8 - - - 28 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT + 30 + - CAST( + 92 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4901
SELECT + 30 + - CAST ( + 92 AS INTEGER )
----
-62

query I rowsort
SELECT + 48 * + + ( 66 ) * 18 + - - 57 * + + CASE + - 6 WHEN - - ( 37 ) + - 58 + + 9 / - 90 THEN 34 ELSE - - 19 END * + 27
----
86265

query I rowsort
SELECT + NULLIF ( 73, + 9 * + 21 / - 53 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT + 6 DIV + 2 + - 82 * - 74 AS col2
----
6071

skipif mysql # not compatible
query I rowsort label-4904
SELECT + 6 / + 2 + - 82 * - 74 AS col2
----
6071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4905
SELECT 1 AS col2, NULLIF ( - 47, - 82 * - 88 + + 25 + 4 * + 13 + CAST( NULL AS SIGNED ) ) col0
----
1
-47

skipif mysql # not compatible
query II rowsort label-4905
SELECT 1 AS col2, NULLIF ( - 47, - 82 * - 88 + + 25 + 4 * + 13 + CAST ( NULL AS INTEGER ) ) col0
----
1
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT ALL - - 30 DIV + + ( - 40 ) + 66 + + ( - 53 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - - 30 / + + ( - 40 ) + 66 + + ( - 53 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT 1 * - 25 - - COUNT( - 70 )
----
-24

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT 1 * - 25 - - COUNT ( - 70 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT ALL + 57 DIV 52 + COALESCE ( 74, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + 57 / 52 + COALESCE ( 74, + COUNT ( * ) )
----
75

query I rowsort
SELECT + 45 + + 22
----
67

query II rowsort
SELECT DISTINCT + 97 AS col0, + 87
----
97
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4911
SELECT ALL + MAX( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + MAX ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - + COUNT( * ) + 70 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4912
SELECT - + COUNT ( * ) + 70 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT - + CAST( + CAST( 44 AS SIGNED ) AS SIGNED ) * - COUNT( * ) * - 94 * + - 94 * - 25 * - 72
----
699811200

skipif mysql # not compatible
query I rowsort label-4913
SELECT - + CAST ( + CAST ( 44 AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * - 94 * + - 94 * - 25 * - 72
----
699811200

onlyif mysql # DIV for integer division: 
query II rowsort label-4914
SELECT DISTINCT 64 DIV - 86 * + - 51 - - 49 + 62, + 23 - - ( - + 98 ) * 79 col1
----
111
-7719

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT 64 / - 86 * + - 51 - - 49 + 62, + 23 - - ( - + 98 ) * 79 col1
----
111
-7719

query I rowsort
SELECT - - 19 - + + 65 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + + 50 + + COUNT( * ) * + - 35 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4916
SELECT + + 50 + + COUNT ( * ) * + - 35 AS col0
----
15

query I rowsort
SELECT - 61 * + ( - 64 ) AS col2
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT 31 * 45 * MAX( - COALESCE ( + - 50, - 3 ) ) AS col0
----
69750

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT 31 * 45 * MAX ( - COALESCE ( + - 50, - 3 ) ) AS col0
----
69750

query I rowsort
SELECT - 75 * - 89 AS col1
----
6675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL + - COALESCE ( + 95, 83 * CAST( + 9 AS SIGNED ) + - 47, - 0 * + COUNT( DISTINCT - 8 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + - COALESCE ( + 95, 83 * CAST ( + 9 AS INTEGER ) + - 47, - 0 * + COUNT ( DISTINCT - 8 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT DISTINCT - COUNT( * ) * 83 * + + CAST( 20 AS SIGNED )
----
-1660

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT - COUNT ( * ) * 83 * + + CAST ( 20 AS INTEGER )
----
-1660

query I rowsort
SELECT ALL NULLIF ( + - 89, - 7 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL SUM( + + 88 ) * - - 47 - + 41 col2
----
4095

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL SUM ( + + 88 ) * - - 47 - + 41 col2
----
4095

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT COUNT( * ) AS col1, 46
----
1
46

skipif mysql # not compatible
query II rowsort label-4924
SELECT COUNT ( * ) AS col1, 46
----
1
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL CAST ( 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT - 5 AS col2, - COUNT( * ) + + 82 AS col2
----
-5
81

skipif mysql # not compatible
query II rowsort label-4926
SELECT - 5 AS col2, - COUNT ( * ) + + 82 AS col2
----
-5
81

query I rowsort
SELECT 86 + 56
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT 18 col1, COUNT( * ) + 18 AS col1
----
18
19

skipif mysql # not compatible
query II rowsort label-4928
SELECT 18 col1, COUNT ( * ) + 18 AS col1
----
18
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT DISTINCT 12, + 80 * + 76 + - - COUNT( * ) AS col1
----
12
6081

skipif mysql # not compatible
query II rowsort label-4929
SELECT DISTINCT 12, + 80 * + 76 + - - COUNT ( * ) AS col1
----
12
6081

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - COUNT( * ) * + ( 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - COUNT ( * ) * + ( 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL 90 + + 78 + COUNT( * ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL 90 + + 78 + COUNT ( * ) AS col2
----
169

query I rowsort
SELECT DISTINCT - 38 * + + 69
----
-2622

query II rowsort
SELECT ALL 73 col1, 14 AS col1
----
73
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT - 74 AS col1, - ( 1 ) + - + 60 * + + COUNT( * ) * - 80 + 59
----
-74
4858

skipif mysql # not compatible
query II rowsort label-4934
SELECT - 74 AS col1, - ( 1 ) + - + 60 * + + COUNT ( * ) * - 80 + 59
----
-74
4858

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT COUNT( * ) + - ( - 75 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4935
SELECT COUNT ( * ) + - ( - 75 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT 25 * MAX( DISTINCT 67 )
----
1675

skipif mysql # not compatible
query I rowsort label-4936
SELECT 25 * MAX ( DISTINCT 67 )
----
1675

query I rowsort
SELECT ALL - 20 * - 12 AS col1
----
240

query II rowsort
SELECT 18, + 42 col2
----
18
42

query II rowsort
SELECT ALL + 48 + - 58, 47 * - - 34 AS col0
----
-10
1598

query I rowsort
SELECT 14 - + 11 * - 90
----
1004

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4941
SELECT DISTINCT + SUM( ALL - 53 ) * 46 * - 11 DIV + ( + - COUNT( * ) ) AS col1, + 34 AS col2
----
-26818
34

skipif mysql # not compatible
query II rowsort label-4941
SELECT DISTINCT + SUM ( ALL - 53 ) * 46 * - 11 / + ( + - COUNT ( * ) ) AS col1, + 34 AS col2
----
-26818
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT ALL - 4 AS col0, COUNT( DISTINCT 79 ) AS col0
----
-4
1

skipif mysql # not compatible
query II rowsort label-4942
SELECT ALL - 4 AS col0, COUNT ( DISTINCT 79 ) AS col0
----
-4
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT CAST( NULL AS SIGNED ), + 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4943
SELECT CAST ( NULL AS INTEGER ), + 4 AS col2
----
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL + CAST( + 23 AS SIGNED ) + - NULLIF ( - - 58, + 77 * 67 - - 91 * - 52 + - 82 ) + + - 8 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + CAST ( + 23 AS INTEGER ) + - NULLIF ( - - 58, + 77 * 67 - - 91 * - 52 + - 82 ) + + - 8 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4945
SELECT DISTINCT - - 20 + - + SUM( DISTINCT - 44 ) DIV + 50 AS col1, + 33 * + 81 + + 62 AS col2
----
20
2735

skipif mysql # not compatible
query II rowsort label-4945
SELECT DISTINCT - - 20 + - + SUM ( DISTINCT - 44 ) / + 50 AS col1, + 33 * + 81 + + 62 AS col2
----
20
2735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT - CAST( - 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) AS col1
----
35

query I rowsort
SELECT ALL + ( 98 ) + - 49 col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4948
SELECT + + COUNT( * ) AS col0, + COALESCE ( - + ( - COALESCE ( - 75, - COUNT( * ) DIV + 39 ) ), - 45 ) DIV + + 25
----
1
-3

skipif mysql # not compatible
query II rowsort label-4948
SELECT + + COUNT ( * ) AS col0, + COALESCE ( - + ( - COALESCE ( - 75, - COUNT ( * ) / + 39 ) ), - 45 ) / + + 25
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4949
SELECT CASE CAST( + + 69 AS DECIMAL ) WHEN 93 - COUNT( * ) THEN + + 19 ELSE NULL END * + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT CASE CAST ( + + 69 AS REAL ) WHEN 93 - COUNT ( * ) THEN + + 19 ELSE NULL END * + - 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT + 74 * - - CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) - - - 25 * 97 - + + COUNT( + + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT + 74 * - - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) - - - 25 * 97 - + + COUNT ( + + 38 )
----
NULL

query I rowsort
SELECT + 14 * - 3 * - 9
----
378

query II rowsort
SELECT - 59 col0, 74 * 20
----
-59
1480

query I rowsort
SELECT ALL 53 * - 81
----
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - 31 * - + COUNT( * ) + 41 * + 53 * - - ( - + 58 ) * + ( 26 )
----
-3276853

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - 31 * - + COUNT ( * ) + 41 * + 53 * - - ( - + 58 ) * + ( 26 )
----
-3276853

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4955
SELECT ALL CAST( NULL AS SIGNED ) * - + 33 * 23 + + 29 AS col0, 42 * - 7 + - + ( 65 ) AS col1
----
NULL
-359

skipif mysql # not compatible
query II rowsort label-4955
SELECT ALL CAST ( NULL AS INTEGER ) * - + 33 * 23 + + 29 AS col0, 42 * - 7 + - + ( 65 ) AS col1
----
NULL
-359

query I rowsort
SELECT DISTINCT 24 - - 36
----
60

onlyif mysql # aggregate syntax: 
query III rowsort label-4957
SELECT DISTINCT - - COUNT( * ) AS col1, 99, - 0 + + COALESCE ( - + 7, 47, + 53 - 47 + + 23 + + + 63 + - 48 ) * COUNT( * ) AS col2
----
1
99
-7

skipif mysql # not compatible
query III rowsort label-4957
SELECT DISTINCT - - COUNT ( * ) AS col1, 99, - 0 + + COALESCE ( - + 7, 47, + 53 - 47 + + 23 + + + 63 + - 48 ) * COUNT ( * ) AS col2
----
1
99
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT 43 * + 20 + COALESCE ( - MIN( + 7 ), - 57, + 70 ) AS col2
----
853

skipif mysql # not compatible
query I rowsort label-4958
SELECT 43 * + 20 + COALESCE ( - MIN ( + 7 ), - 57, + 70 ) AS col2
----
853

onlyif mysql # DIV for integer division: 
query II rowsort label-4959
SELECT 61 DIV - 76, - 85 AS col0
----
0
-85

skipif mysql # not compatible
query II rowsort label-4959
SELECT 61 / - 76, - 85 AS col0
----
0
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT 68 DIV 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 68 / 54 AS col2
----
1

query I rowsort
SELECT ( - 48 ) - + - 54 AS col1
----
6

query I rowsort
SELECT 6 * 65 col0
----
390

query I rowsort
SELECT 9 * + - 97 AS col1
----
-873

query I rowsort
SELECT ALL + 15 * + 45 * - 92 AS col0
----
-62100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4965
SELECT DISTINCT 32 DIV + COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4965
SELECT DISTINCT 32 / + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - ( - 5 ) * 91 * + COUNT( * ) AS col2
----
455

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - ( - 5 ) * 91 * + COUNT ( * ) AS col2
----
455

query I rowsort
SELECT 96 * + 47
----
4512

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT ALL 67 + + - COUNT( * ), 52 AS col1
----
66
52

skipif mysql # not compatible
query II rowsort label-4968
SELECT ALL 67 + + - COUNT ( * ), 52 AS col1
----
66
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL + ( + 42 ) + 49 * + + 78 * + + CAST( - COUNT( * ) AS SIGNED ) * 8 AS col0
----
-30534

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + ( + 42 ) + 49 * + + 78 * + + CAST ( - COUNT ( * ) AS INTEGER ) * 8 AS col0
----
-30534

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - COUNT( * ) + - + 23 col2
----
-24

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - COUNT ( * ) + - + 23 col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT 15 - COUNT( * ) * 97 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT 15 - COUNT ( * ) * 97 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 61 * + 13
----
793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT DISTINCT COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4974
SELECT 11 * + 97 AS col2, - COUNT( * ) DIV + + 98 AS col0
----
1067
0

skipif mysql # not compatible
query II rowsort label-4974
SELECT 11 * + 97 AS col2, - COUNT ( * ) / + + 98 AS col0
----
1067
0

query I rowsort
SELECT 14 + 81 + 33 * + 61 AS col1
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT COUNT( + + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT COUNT ( + + 28 ) AS col0
----
1

query I rowsort
SELECT ALL - 98 + - 52
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT + - 30 - + - ( + 87 ) + + 62 * + CAST( + COUNT( * ) AS SIGNED ) col2
----
119

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + - 30 - + - ( + 87 ) + + 62 * + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
119

query I rowsort
SELECT ALL - + 68 * + 3 + 6
----
-198

query I rowsort
SELECT + 71 + + - ( 19 )
----
52

query I rowsort
SELECT ALL - - 55 * + 15 + 77
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT 88 * + - SUM( - 68 ) * + MAX( ALL + 78 ) * + AVG ( CAST( NULL AS SIGNED ) ) + + 75 * + + 20 + 10 + NULLIF ( ( + COUNT( * ) ), - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT 88 * + - SUM ( - 68 ) * + MAX ( ALL + 78 ) * + AVG ( CAST ( NULL AS INTEGER ) ) + + 75 * + + 20 + 10 + NULLIF ( ( + COUNT ( * ) ), - 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT - 68 * + 94 AS col2, - COUNT( * )
----
-6392
-1

skipif mysql # not compatible
query II rowsort label-4983
SELECT - 68 * + 94 AS col2, - COUNT ( * )
----
-6392
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT + SUM( ALL - ( 25 ) ) DIV 16
----
-1

skipif mysql # not compatible
query I rowsort label-4984
SELECT + SUM ( ALL - ( 25 ) ) / 16
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4985
SELECT DISTINCT + + COALESCE ( - 95, - 23 ) * COUNT( DISTINCT 37 ) + + 99 + 94 AS col2, - COALESCE ( + 27, + 21 DIV + COUNT( * ) + MAX( DISTINCT - + 16 ) ) AS col2
----
98
-27

skipif mysql # not compatible
query II rowsort label-4985
SELECT DISTINCT + + COALESCE ( - 95, - 23 ) * COUNT ( DISTINCT 37 ) + + 99 + 94 AS col2, - COALESCE ( + 27, + 21 / + COUNT ( * ) + MAX ( DISTINCT - + 16 ) ) AS col2
----
98
-27

query I rowsort
SELECT ALL - - 63 * + 61
----
3843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL + CAST( NULL AS SIGNED ) / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + CAST ( NULL AS INTEGER ) / 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + 59 * + COUNT( * ) + 45
----
104

skipif mysql # not compatible
query I rowsort label-4988
SELECT + 59 * + COUNT ( * ) + 45
----
104

query I rowsort
SELECT COALESCE ( 91, + 15 - + 80 + 86 + - 17 * - 7 - + 67 ) * - + 15 + + + 26 - 87 AS col0
----
-1426

query II rowsort
SELECT 36 * 29, + 17 AS col2
----
1044
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL 54 * + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL 54 * + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT 81 * + MAX( DISTINCT - ( 68 ) ) + COUNT( * )
----
-5507

skipif mysql # not compatible
query I rowsort label-4992
SELECT 81 * + MAX ( DISTINCT - ( 68 ) ) + COUNT ( * )
----
-5507

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4993
SELECT + 40 * - ( + CASE - 62 WHEN + 78 THEN + 83 WHEN + 88 THEN NULL WHEN + 61 * + + 95 + + 23 * + NULLIF ( 18, + - 56 ) THEN + - 1 + - CASE COUNT( * ) WHEN 99 / + 12 THEN - - MIN( ALL - + 21 ) * - SUM( - - 59 ) - - 3 WHEN - + COUNT( * ) / - CAST( NULL AS DECIMAL ) + + ( ( COUNT( ALL 11 ) ) ) * + COUNT( * ) + - + 69 + 50 + - - 39 * - 1 - + + 72 THEN + 21 ELSE NULL END + + 59 END ) * - - COUNT( * ) * + - 35 * + ( - 92 ) + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT + 40 * - ( + CASE - 62 WHEN + 78 THEN + 83 WHEN + 88 THEN NULL WHEN + 61 * + + 95 + + 23 * + NULLIF ( 18, + - 56 ) THEN + - 1 + - CASE COUNT ( * ) WHEN 99 / + 12 THEN - - MIN ( ALL - + 21 ) * - SUM (