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 ( - - 59 ) - - 3 WHEN - + COUNT ( * ) / - CAST ( NULL AS REAL ) + + ( ( COUNT ( ALL 11 ) ) ) * + COUNT ( * ) + - + 69 + 50 + - - 39 * - 1 - + + 72 THEN + 21 ELSE NULL END + + 59 END ) * - - COUNT ( * ) * + - 35 * + ( - 92 ) + + 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT - 53 * ( + 11 ) + 68 DIV - 54 + - - MIN( DISTINCT + + 56 ) DIV 77 - + - 60
----
-524

skipif mysql # not compatible
query I rowsort label-4994
SELECT - 53 * ( + 11 ) + 68 / - 54 + - - MIN ( DISTINCT + + 56 ) / 77 - + - 60
----
-524

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT ALL + 51, 17 * + 92 - - MIN( + + 11 ) AS col0
----
51
1575

skipif mysql # not compatible
query II rowsort label-4995
SELECT ALL + 51, 17 * + 92 - - MIN ( + + 11 ) AS col0
----
51
1575

query I rowsort
SELECT ALL 79 * 13
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - 56 + 69 - - + CASE + - 79 WHEN 33 + + 40 THEN + + 5 WHEN + 88 * 60 * + 97 * - 79 + + 24 + + ( ( - 26 ) ) + + + COUNT( * ) / - 86 THEN + + 56 / + 66 END * + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - 56 + 69 - - + CASE + - 79 WHEN 33 + + 40 THEN + + 5 WHEN + 88 * 60 * + 97 * - 79 + + 24 + + ( ( - 26 ) ) + + + COUNT ( * ) / - 86 THEN + + 56 / + 66 END * + - 32 AS col1
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - NULLIF ( MAX( DISTINCT - + 18 ), + 44 )
----
18

skipif mysql # not compatible
query I rowsort label-5001
SELECT - NULLIF ( MAX ( DISTINCT - + 18 ), + 44 )
----
18

query I rowsort
SELECT ALL 55 + - + 75 + - + 75 + 91 * 14 AS col2
----
1179

query I rowsort
SELECT + 19 * - 67
----
-1273

query II rowsort
SELECT - NULLIF ( - + 3, - 75 + - - 13 * + - 7 + + - 94 ), + 55 AS col0
----
3
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5005
SELECT ALL 26 AS col1, + NULLIF ( 30, + CAST( NULL AS SIGNED ) ) AS col0
----
26
30

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL 26 AS col1, + NULLIF ( 30, + CAST ( NULL AS INTEGER ) ) AS col0
----
26
30

query II rowsort
SELECT ALL 19 + 82 * + 84 AS col1, ( - - 66 )
----
6907
66

query II rowsort
SELECT ALL 37 AS col0, + 41 AS col1
----
37
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT + COUNT( * ) * - - SUM( + ( - + 13 ) ) * 38 + SUM( - 87 ) * + 30
----
-3104

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + COUNT ( * ) * - - SUM ( + ( - + 13 ) ) * 38 + SUM ( - 87 ) * + 30
----
-3104

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

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - COUNT ( ALL + + 45 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + 69 * + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 69 * + COUNT ( * ) AS col0
----
69

query II rowsort
SELECT - 20 AS col0, + 27 AS col2
----
-20
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL COALESCE ( - 41, 30, - - COALESCE ( - + 37, - 19 * + - 61 * - 62 * 47 + 60 + - 7 - + + 4, + ( 11 ) + + SUM( + - 2 ), - 39 + - + 99 ) + + 88 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL COALESCE ( - 41, 30, - - COALESCE ( - + 37, - 19 * + - 61 * - 62 * 47 + 60 + - 7 - + + 4, + ( 11 ) + + SUM ( + - 2 ), - 39 + - + 99 ) + + 88 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL - 34 - NULLIF ( + 94, COUNT( * ) ) * - 86 + 91 - - 28 - + - MIN( ALL 4 ) + - ( + 32 ) * 93 AS col2
----
5197

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - 34 - NULLIF ( + 94, COUNT ( * ) ) * - 86 + 91 - - 28 - + - MIN ( ALL 4 ) + - ( + 32 ) * 93 AS col2
----
5197

query I rowsort
SELECT DISTINCT + ( 16 ) col1
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT - - 6 + + 66 + - 10 + + 10 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT - - 6 + + 66 + - 10 + + 10 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - SUM( DISTINCT + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - SUM ( DISTINCT + 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + CASE + 2 WHEN - 98 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT + CASE + 2 WHEN - 98 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT ALL + - 58 AS col1, - COUNT( * ) + + 87 * 79 + + COUNT( * )
----
-58
6873

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL + - 58 AS col1, - COUNT ( * ) + + 87 * 79 + + COUNT ( * )
----
-58
6873

query I rowsort
SELECT - - 87 * - 64 AS col1
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + SUM( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5020
SELECT + SUM ( 84 )
----
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT - 98 DIV + 12 + + - 80 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5022
SELECT - 98 / + 12 + + - 80 AS col1
----
-88

query I rowsort
SELECT - NULLIF ( - + 52, - 9 * - 72 + - - 47 - + 97 ) AS col2
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5025
SELECT - CAST( + 30 AS SIGNED ) DIV 86 - - ( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5025
SELECT - CAST ( + 30 AS INTEGER ) / 86 - - ( 59 )
----
59

query I rowsort
SELECT ALL 86 * 37 + - - 92
----
3274

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT 88 * + ( + + ( - - ( + COUNT( * ) ) ) ) * + + SUM( - 52 ) - - - 78 + + 3 * + + COUNT( * ) AS col0
----
-4651

skipif mysql # not compatible
query I rowsort label-5027
SELECT 88 * + ( + + ( - - ( + COUNT ( * ) ) ) ) * + + SUM ( - 52 ) - - - 78 + + 3 * + + COUNT ( * ) AS col0
----
-4651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT NULLIF ( + 57, + - CAST( NULL AS SIGNED ) / - 28 + 9 + 83 )
----
57

skipif mysql # not compatible
query I rowsort label-5028
SELECT NULLIF ( + 57, + - CAST ( NULL AS INTEGER ) / - 28 + 9 + 83 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT + CASE - ( 75 ) WHEN + - 63 + - 56 * + + 8 * 33 * - - 26 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - 69 ) + + 6 + 70 THEN + + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + CASE - ( 75 ) WHEN + - 63 + - 56 * + + 8 * 33 * - - 26 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - 69 ) + + 6 + 70 THEN + + 82 ELSE NULL END
----
NULL

query I rowsort
SELECT + 32 * - - 53 AS col0
----
1696

query I rowsort
SELECT + NULLIF ( - 82, 81 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - COUNT( * ) * + 33 * - + 91 + + ( 94 ) + - 17 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - COUNT ( * ) * + 33 * - + 91 + + ( 94 ) + - 17 AS col0
----
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5033
SELECT - 20 + - - COUNT( * ), + 52 - - 66 + + + 82 - - COUNT( ALL 1 ) DIV - 19 AS col2
----
-19
200

skipif mysql # not compatible
query II rowsort label-5033
SELECT - 20 + - - COUNT ( * ), + 52 - - 66 + + + 82 - - COUNT ( ALL 1 ) / - 19 AS col2
----
-19
200

query I rowsort
SELECT DISTINCT + 16 * - 4 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT - 64 * + - 13 - - - COUNT( * ) AS col1
----
831

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT - 64 * + - 13 - - - COUNT ( * ) AS col1
----
831

query II rowsort
SELECT DISTINCT + 7 * + - 91, 41 AS col2
----
-637
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT + MAX( - + 13 ) * + CAST( MIN( - 68 ) AS SIGNED )
----
884

skipif mysql # not compatible
query I rowsort label-5037
SELECT + MAX ( - + 13 ) * + CAST ( MIN ( - 68 ) AS INTEGER )
----
884

query I rowsort
SELECT + 42 + - 46
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5039
SELECT + + COUNT( * ) * + - 51 DIV + 15
----
-3

skipif mysql # not compatible
query I rowsort label-5039
SELECT + + COUNT ( * ) * + - 51 / + 15
----
-3

query I rowsort
SELECT ALL COALESCE ( 89, + - 48 )
----
89

query I rowsort
SELECT + - 57 + 8
----
-49

query I rowsort
SELECT ALL + 72 * 56 AS col1
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT + 89 * + ( COUNT( * ) ) - + + 3 DIV + + 22 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 89 * + ( COUNT ( * ) ) - + + 3 / + + 22 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT ALL 59 DIV + + 80 * + + 11
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 59 / + + 80 * + + 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT + COALESCE ( + COUNT( * ), + 84 * + + 75 - 1 + + 63 + + CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( - 12, + 68 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + 84 * + + 75 - 1 + + 63 + + CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( - 12, + 68 ) ) col1
----
1

query I rowsort
SELECT + 30 + + 94
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - CASE + 41 WHEN + + SUM( + 74 ) THEN 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - CASE + 41 WHEN + + SUM ( + 74 ) THEN 61 END
----
NULL

query I rowsort
SELECT ALL + 20 + + + 43
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + - COALESCE ( - - COUNT( * ), + 59 ) + - - 37
----
36

skipif mysql # not compatible
query I rowsort label-5049
SELECT + - COALESCE ( - - COUNT ( * ), + 59 ) + - - 37
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT - COUNT( * ) DIV - ( - - 95 ) + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( * ) / - ( - - 95 ) + - 14
----
-14

query I rowsort
SELECT 48 - - 90 AS col2
----
138

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL 75 + - + CASE 36 WHEN + - MIN( ALL - 35 ) + MAX( DISTINCT ( - 24 ) ) THEN NULL WHEN - 51 THEN + CASE WHEN NOT ( NULL ) IN ( 78, + ( - 16 ), - MIN( - 46 ) ) THEN ( - 22 ) ELSE + - ( - NULLIF ( + NULLIF ( 8, - 6 ), + 5 ) ) - + - 72 * + ( + COUNT( * ) ) END * - 89 - - 64 + + - COUNT( * ) * + CAST( + + 14 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 75 + - + CASE 36 WHEN + - MIN ( ALL - 35 ) + MAX ( DISTINCT ( - 24 ) ) THEN NULL WHEN - 51 THEN + CASE WHEN NOT ( NULL ) IN ( 78, + ( - 16 ), - MIN ( - 46 ) ) THEN ( - 22 ) ELSE + - ( - NULLIF ( + NULLIF ( 8, - 6 ), + 5 ) ) - + - 72 * + ( + COUNT ( * ) ) END * - 89 - - 64 + + - COUNT ( * ) * + CAST ( + + 14 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT 97 + 61
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL - + NULLIF ( + - MAX( DISTINCT 5 ), - 65 * 34 ) + + 81 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - + NULLIF ( + - MAX ( DISTINCT 5 ), - 65 * 34 ) + + 81 AS col0
----
86

query I rowsort
SELECT DISTINCT + ( + + 48 ) * - + ( + 40 )
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT + 11 + + + COUNT( * ) DIV - ( + 43 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + 11 + + + COUNT ( * ) / - ( + 43 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT + NULLIF ( - COALESCE ( COUNT( * ), + COALESCE ( - 14, - 79 ) ), 15 + + 6 ) + - + 3
----
-4

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT + NULLIF ( - COALESCE ( COUNT ( * ), + COALESCE ( - 14, - 79 ) ), 15 + + 6 ) + - + 3
----
-4

query I rowsort
SELECT ALL - 93 + + 81 * + + 92 col0
----
7359

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 96 * COUNT( * ) * 14 AS col0
----
1344

skipif mysql # not compatible
query I rowsort label-5060
SELECT 96 * COUNT ( * ) * 14 AS col0
----
1344

query II rowsort
SELECT + 54 AS col1, - 27
----
54
-27

query I rowsort
SELECT 34 + + 28
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL - CASE 19 WHEN - - 6 THEN + + 0 * - - 56 + + - 36 + + + NULLIF ( - 83, - ( - COUNT( * ) ) ) WHEN + 3 * + 59 + - 20 * 73 * 17 - + + 30 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - CASE 19 WHEN - - 6 THEN + + 0 * - - 56 + + - 36 + + + NULLIF ( - 83, - ( - COUNT ( * ) ) ) WHEN + 3 * + 59 + - 20 * 73 * 17 - + + 30 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT 15 DIV - - 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT 15 / - - 27 col1
----
0

query I rowsort
SELECT ALL 2 - + + 27 col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5066
SELECT 21 * COUNT( * ) DIV + - 96 AS col2, CAST( + + 86 AS SIGNED ) AS col0
----
0
86

skipif mysql # not compatible
query II rowsort label-5066
SELECT 21 * COUNT ( * ) / + - 96 AS col2, CAST ( + + 86 AS INTEGER ) AS col0
----
0
86

query I rowsort
SELECT ALL + ( - 20 ) * - 55
----
1100

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT 40 / + 34 * + CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT ALL 78 DIV 46 col0
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL 78 / 46 col0
----
1

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

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

query II rowsort
SELECT DISTINCT 82 col2, 99
----
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT - COUNT( + 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - COUNT ( + 10 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT 24 + CASE 1 WHEN ( + + 57 ) * + + 33 * 44 + 95 THEN NULL WHEN + 29 THEN NULL WHEN - + 59 THEN + 58 ELSE + + 75 END + MAX( 16 ) * 31 AS col1
----
595

skipif mysql # not compatible
query I rowsort label-5074
SELECT 24 + CASE 1 WHEN ( + + 57 ) * + + 33 * 44 + 95 THEN NULL WHEN + 29 THEN NULL WHEN - + 59 THEN + 58 ELSE + + 75 END + MAX ( 16 ) * 31 AS col1
----
595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT DISTINCT + 42 * - 36 * - 10 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + 42 * - 36 * - 10 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + 35 + - - 40 + COUNT( * ) * 94 * + 13 * - 13 * 73 AS col0
----
-1159603

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 35 + - - 40 + COUNT ( * ) * 94 * + 13 * - 13 * 73 AS col0
----
-1159603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5077
SELECT CAST( 41 AS SIGNED ) + - + COUNT( * ) + + 88
----
128

skipif mysql # not compatible
query I rowsort label-5077
SELECT CAST ( 41 AS INTEGER ) + - + COUNT ( * ) + + 88
----
128

query II rowsort
SELECT DISTINCT + 37 AS col2, + 61
----
37
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5079
SELECT + 53 DIV + - COUNT( DISTINCT + ( - 49 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 53 / + - COUNT ( DISTINCT + ( - 49 ) ) AS col1
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL COUNT( * ) + + 44 / - 57 + - + CASE 62 WHEN + + 21 * + 1 * - 51 + + - COUNT( * ) + 16 + 64 THEN - - 35 ELSE NULL END + + - COUNT( * ) + - + 25 * + 49 * 58 / - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL COUNT ( * ) + + 44 / - 57 + - + CASE 62 WHEN + + 21 * + 1 * - 51 + + - COUNT ( * ) + 16 + 64 THEN - - 35 ELSE NULL END + + - COUNT ( * ) + - + 25 * + 49 * 58 / - 17 AS col0
----
NULL

query I rowsort
SELECT - 90 * + 52 * - - 86 - - 95 + + - 31 * - + 31 * 94
----
-312051

query II rowsort
SELECT - 3 * + 2 - - - 49 AS col1, 90
----
-55
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5084
SELECT ALL - 8 + + NULLIF ( 12, 99 / + 32 - - + 81 ) * - + 65 + - - 27 AS col2, COUNT( * ) - + 70 + + 91
----
-761
22

skipif mysql # not compatible
query II rowsort label-5084
SELECT ALL - 8 + + NULLIF ( 12, 99 / + 32 - - + 81 ) * - + 65 + - - 27 AS col2, COUNT ( * ) - + 70 + + 91
----
-761
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL COUNT( * ) * - - 23 * 48 + - CASE WHEN NOT + COALESCE ( 86, 99, - 93 * 38 * - COUNT( 72 ) + - + AVG ( DISTINCT 29 ) + - 66, + SUM( + NULLIF ( - + 15, 20 ) ) ) = NULL THEN + COALESCE ( + - 14, + 24 * 9 / + + ( - COALESCE ( - ( - 2 ), + 2 ) ) ) + 73 WHEN NOT NULL BETWEEN ( NULLIF ( + + 73, - + 22 ) ) AND ( - - CASE WHEN - CASE - 63 WHEN 41 THEN + - 31 + - + 26 WHEN 26 THEN NULL END IS NOT NULL THEN NULL ELSE + - AVG ( DISTINCT - - 62 ) + - 32 * - 16 END ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL COUNT ( * ) * - - 23 * 48 + - CASE WHEN NOT + COALESCE ( 86, 99, - 93 * 38 * - COUNT ( 72 ) + - + AVG ( DISTINCT 29 ) + - 66, + SUM ( + NULLIF ( - + 15, 20 ) ) ) = NULL THEN + COALESCE ( + - 14, + 24 * 9 / + + ( - COALESCE ( - ( - 2 ), + 2 ) ) ) + 73 WHEN NOT NULL BETWEEN ( NULLIF ( + + 73, - + 22 ) ) AND ( - - CASE WHEN - CASE - 63 WHEN 41 THEN + - 31 + - + 26 WHEN 26 THEN NULL END IS NOT NULL THEN NULL ELSE + - AVG ( DISTINCT - - 62 ) + - 32 * - 16 END ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL MAX( ALL + CASE - 97 WHEN - COALESCE ( - - 1, + 44 ) THEN NULL WHEN NULLIF ( - 16, 69 ) THEN - 19 END ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL MAX ( ALL + CASE - 97 WHEN - COALESCE ( - - 1, + 44 ) THEN NULL WHEN NULLIF ( - 16, 69 ) THEN - 19 END ) + + 76
----
NULL

query I rowsort
SELECT ( 40 ) * + 8 - + 4 col2
----
316

query II rowsort
SELECT DISTINCT - + 65, - 67 AS col2
----
-65
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + SUM( + - 29 ) * - - 80 AS col1
----
-2320

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + SUM ( + - 29 ) * - - 80 AS col1
----
-2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT CAST( NULL AS SIGNED ) * - - AVG ( ALL - ( ( + + 38 ) ) ) * - - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CAST ( NULL AS INTEGER ) * - - AVG ( ALL - ( ( + + 38 ) ) ) * - - 33 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5092
SELECT + COUNT( * ), - COALESCE ( - COUNT( * ), + COUNT( * ), + - 28 ) DIV 15 + + + NULLIF ( - COUNT( * ), - 62 ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5092
SELECT + COUNT ( * ), - COALESCE ( - COUNT ( * ), + COUNT ( * ), + - 28 ) / 15 + + + NULLIF ( - COUNT ( * ), - 62 ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT ALL 38 + - 71 + COUNT( * ) * + 86 + + + 72 DIV - - 46 col1
----
54

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL 38 + - 71 + COUNT ( * ) * + 86 + + + 72 / - - 46 col1
----
54

query I rowsort
SELECT 5 - 40 + 42 + + 94 AS col1
----
101

query I rowsort
SELECT 41 * + 9 AS col0
----
369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5096
SELECT DISTINCT - 76, + 28 * 34 + 87 * CAST( NULL AS SIGNED ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-5096
SELECT DISTINCT - 76, + 28 * 34 + 87 * CAST ( NULL AS INTEGER ) AS col2
----
-76
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT ALL - 79 AS col0, + ( - CASE 94 WHEN + - 39 THEN NULL WHEN 25 THEN COUNT( * ) END ) AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-5097
SELECT ALL - 79 AS col0, + ( - CASE 94 WHEN + - 39 THEN NULL WHEN 25 THEN COUNT ( * ) END ) AS col2
----
-79
NULL

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

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

query I rowsort
SELECT 40 - - 62 * - 59 * + COALESCE ( - 98, - 10 ) AS col0
----
358524

query I rowsort
SELECT 35 * + 80 + + 41 * - - ( + 66 ) AS col1
----
5506

onlyif mysql # DIV for integer division: 
query II rowsort label-5101
SELECT ALL 48 DIV + 87, + ( 31 ) AS col2
----
0
31

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL 48 / + 87, + ( 31 ) AS col2
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT 21 * - - CASE 4 WHEN + 87 + + + 16 * 85 THEN NULL WHEN + - COUNT( * ) * + - COUNT( * ) THEN NULL ELSE - + ( - - COUNT( * ) ) END AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5102
SELECT 21 * - - CASE 4 WHEN + 87 + + + 16 * 85 THEN NULL WHEN + - COUNT ( * ) * + - COUNT ( * ) THEN NULL ELSE - + ( - - COUNT ( * ) ) END AS col0
----
-21

query I rowsort
SELECT 56 * + + 22
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL - MAX( DISTINCT - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - MAX ( DISTINCT - 11 ) AS col0
----
11

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

skipif mysql # not compatible
query I rowsort label-5105
SELECT + MAX ( - 17 )
----
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT COUNT( * ) + MIN( ALL - - 71 )
----
72

skipif mysql # not compatible
query I rowsort label-5107
SELECT COUNT ( * ) + MIN ( ALL - - 71 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT 75 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT 75 / 89 AS col1
----
0

query I rowsort
SELECT ALL - 26 * 97
----
-2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT 49 + MAX( - ( ( + CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT 49 + MAX ( - ( ( + CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT MIN( - 15 ) * - 52 + - 59 * + 27
----
-813

skipif mysql # not compatible
query I rowsort label-5111
SELECT MIN ( - 15 ) * - 52 + - 59 * + 27
----
-813

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - + SUM( ALL + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5112
SELECT - + SUM ( ALL + 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT ALL - NULLIF ( + COALESCE ( - - 92, 77 * - + SUM( DISTINCT - + 33 ) + - - 6, 11 DIV 72 ), + 11 + 5 + + 35 + - ( - + 54 ) ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - NULLIF ( + COALESCE ( - - 92, 77 * - + SUM ( DISTINCT - + 33 ) + - - 6, 11 / 72 ), + 11 + 5 + + 35 + - ( - + 54 ) ) col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5114
SELECT + 12, 38 AS col2, 52 + + 88 DIV + - 83 * COUNT( * ) AS col0
----
12
38
51

skipif mysql # not compatible
query III rowsort label-5114
SELECT + 12, 38 AS col2, 52 + + 88 / + - 83 * COUNT ( * ) AS col0
----
12
38
51

query I rowsort
SELECT + 29 * 17 col1
----
493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT CASE + 53 WHEN + CAST( NULL AS SIGNED ) THEN - 7 * - 19 WHEN - 65 * AVG ( ALL + + 51 ) + + - 86 + + 23 * - 85 * + 89 / - MIN( 90 ) THEN 38 * - 92 - 62 * + 84 END + + - MIN( - - 35 ) / + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT CASE + 53 WHEN + CAST ( NULL AS INTEGER ) THEN - 7 * - 19 WHEN - 65 * AVG ( ALL + + 51 ) + + - 86 + + 23 * - 85 * + 89 / - MIN ( 90 ) THEN 38 * - 92 - 62 * + 84 END + + - MIN ( - - 35 ) / + 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5117
SELECT - - 25 + - 1 + + - 97 + - CAST( NULL AS SIGNED ) + + + CASE 73 WHEN - 92 THEN NULL ELSE - - ( + 24 ) END AS col1, 28 * 65
----
NULL
1820

skipif mysql # not compatible
query II rowsort label-5117
SELECT - - 25 + - 1 + + - 97 + - CAST ( NULL AS INTEGER ) + + + CASE 73 WHEN - 92 THEN NULL ELSE - - ( + 24 ) END AS col1, 28 * 65
----
NULL
1820

query II rowsort
SELECT DISTINCT + 83 col1, - 41
----
83
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5119
SELECT - 18 AS col1, 29 * CAST( NULL AS SIGNED )
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-5119
SELECT - 18 AS col1, 29 * CAST ( NULL AS INTEGER )
----
-18
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT - 78 + - COUNT( * ) * ( COUNT( * ) ) DIV - 8 DIV + COUNT( * ) + + 20 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 78 + - COUNT ( * ) * ( COUNT ( * ) ) / - 8 / + COUNT ( * ) + + 20 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT + MAX( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5121
SELECT + MAX ( ALL 88 ) AS col1
----
88

query I rowsort
SELECT ALL + 37 + + + 82 AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5123
SELECT ALL + 24 AS col2, COALESCE ( 30, - 2 - - 99 * + + MAX( - + 40 ) DIV + ( - 75 ) DIV 43 DIV + NULLIF ( + CASE - 35 WHEN ( - - 89 ) THEN + 41 ELSE NULL END, + - 63 ) - - 6 DIV NULLIF ( 23, - + 98 ) + 0 - ( 49 ) - - 65 * - ( - COUNT( DISTINCT + 94 ) ) )
----
24
30

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL + 24 AS col2, COALESCE ( 30, - 2 - - 99 * + + MAX ( - + 40 ) / + ( - 75 ) / 43 / + NULLIF ( + CASE - 35 WHEN ( - - 89 ) THEN + 41 ELSE NULL END, + - 63 ) - - 6 / NULLIF ( 23, - + 98 ) + 0 - ( 49 ) - - 65 * - ( - COUNT ( DISTINCT + 94 ) ) )
----
24
30

query I rowsort
SELECT - + 87 + + 42 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT + 23 DIV - 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 23 / - 42 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL - 76 - - MIN( ALL 7 ) * 9 + + 71 + + 93 * NULLIF ( - CAST( + 58 AS SIGNED ), 57 ) AS col1
----
-5336

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 76 - - MIN ( ALL 7 ) * 9 + + 71 + + 93 * NULLIF ( - CAST ( + 58 AS INTEGER ), 57 ) AS col1
----
-5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT 29 DIV - MIN( - + 60 ) + + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5127
SELECT 29 / - MIN ( - + 60 ) + + 84 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT 93 * - - COALESCE ( + + 75, - + MIN( DISTINCT + 68 ) ) - COUNT( * ) DIV 25 + - 65 AS col1
----
6910

skipif mysql # not compatible
query I rowsort label-5128
SELECT 93 * - - COALESCE ( + + 75, - + MIN ( DISTINCT + 68 ) ) - COUNT ( * ) / 25 + - 65 AS col1
----
6910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT - 54 * - COUNT( * ) * ( + - 55 ) + + 49 DIV + 15 + + 74
----
-2893

skipif mysql # not compatible
query I rowsort label-5129
SELECT - 54 * - COUNT ( * ) * ( + - 55 ) + + 49 / + 15 + + 74
----
-2893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT NULLIF ( + COUNT( * ), COUNT( * ) * - 31 ) DIV + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT NULLIF ( + COUNT ( * ), COUNT ( * ) * - 31 ) / + 41 AS col0
----
0

query I rowsort
SELECT DISTINCT 78 * - - 47 * + 27
----
98982

query I rowsort
SELECT - 37 * ( - 69 )
----
2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT ALL NULLIF ( + - 64, CAST( + + MIN( + CAST( 27 AS SIGNED ) ) AS SIGNED ) ) * - 93 AS col1
----
5952

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL NULLIF ( + - 64, CAST ( + + MIN ( + CAST ( 27 AS INTEGER ) ) AS INTEGER ) ) * - 93 AS col1
----
5952

query I rowsort
SELECT + 19 + 74 + + - 29
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT CASE 96 WHEN COUNT( * ) THEN - SUM( 7 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT CASE 96 WHEN COUNT ( * ) THEN - SUM ( 7 ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 42 * + + NULLIF ( - 89, - 49 + + + 4 ) AS col1, - 96 AS col0
----
-3738
-96

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

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

query I rowsort
SELECT ALL + + 86 col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT DISTINCT - CASE 17 WHEN + 84 + - + ( + 68 ) * - 22 THEN COUNT( 10 ) ELSE + ( + COUNT( DISTINCT + 37 ) ) - + + 93 + - 25 END * 87 + + CAST( - 84 AS SIGNED ) + + 17
----
10112

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - CASE 17 WHEN + 84 + - + ( + 68 ) * - 22 THEN COUNT ( 10 ) ELSE + ( + COUNT ( DISTINCT + 37 ) ) - + + 93 + - 25 END * 87 + + CAST ( - 84 AS INTEGER ) + + 17
----
10112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT DISTINCT - 65 DIV 12 - + - 4 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - 65 / 12 - + - 4 + COUNT ( * )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5142
SELECT + 49 - - - 72 col1, CAST( NULL AS SIGNED )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-5142
SELECT + 49 - - - 72 col1, CAST ( NULL AS INTEGER )
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + + COUNT( ALL - 16 ) + + + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5143
SELECT + + COUNT ( ALL - 16 ) + + + 86 AS col0
----
87

query II rowsort
SELECT + ( - 67 ) * 74, 77 AS col0
----
-4958
77

query I rowsort
SELECT ALL - 72 * - - 0 * + 98 AS col1
----
0

query I rowsort
SELECT ALL - NULLIF ( ( + 67 ), 42 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT - 38 + - - SUM( - 22 ) * 41
----
-940

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - 38 + - - SUM ( - 22 ) * 41
----
-940

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5149
SELECT - - COUNT( * ) * CAST( NULL AS DECIMAL ) + 86 AS col0, 61 + 20
----
NULL
81

skipif mysql # not compatible
query II rowsort label-5149
SELECT - - COUNT ( * ) * CAST ( NULL AS REAL ) + 86 AS col0, 61 + 20
----
NULL
81

query I rowsort
SELECT DISTINCT + NULLIF ( 10, + 48 / - + 51 ) AS col0
----
10

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

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

query I rowsort
SELECT - 85 * - ( 21 ) AS col1
----
1785

query I rowsort
SELECT ALL - 61 - 99 col0
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL CAST( - - MAX( ALL + ( + 83 ) ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL CAST ( - - MAX ( ALL + ( + 83 ) ) AS INTEGER )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL CASE - + 54 WHEN - 72 + + 61 - CASE - 34 WHEN 16 THEN NULL WHEN 83 * + - 12 * - COALESCE ( + - SUM( ALL + + 17 ), + - 78 ) / - + 30 + COUNT( DISTINCT 13 ) + + + 6 * + 63 + 45 * + 76 THEN - 4 END * ( - 62 ) * + - CAST( NULL AS SIGNED ) + + COUNT( * ) / - + COUNT( * ) THEN NULL WHEN 76 + + ( - - 39 ) THEN + CAST( + 21 AS SIGNED ) + + + 43 * - - COUNT( * ) * - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL CASE - + 54 WHEN - 72 + + 61 - CASE - 34 WHEN 16 THEN NULL WHEN 83 * + - 12 * - COALESCE ( + - SUM ( ALL + + 17 ), + - 78 ) / - + 30 + COUNT ( DISTINCT 13 ) + + + 6 * + 63 + 45 * + 76 THEN - 4 END * ( - 62 ) * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - + COUNT ( * ) THEN NULL WHEN 76 + + ( - - 39 ) THEN + CAST ( + 21 AS INTEGER ) + + + 43 * - - COUNT ( * ) * - 23 END
----
NULL

query I rowsort
SELECT - 49 * 69 AS col0
----
-3381

query II rowsort
SELECT + 11, - 58 AS col0
----
11
-58

query I rowsort
SELECT - 13 * + 13
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + ( - NULLIF ( - 15, + CASE COALESCE ( 72, 24 - - 59 ) WHEN - 55 THEN + 85 END * 68 * - + COUNT( * ) + - 6 + + 43 * ( + 86 ) + - NULLIF ( 69, - 86 ) + + - 31 * - AVG ( ALL + + NULLIF ( - 66, CASE - + 15 WHEN - + 2 THEN - - 1 WHEN 62 * - + 97 * + - 22 * + 47 / + 45 - 74 THEN NULL END ) ) * - 71 ) )
----
15

skipif mysql # not compatible
query I rowsort label-5159
SELECT + ( - NULLIF ( - 15, + CASE COALESCE ( 72, 24 - - 59 ) WHEN - 55 THEN + 85 END * 68 * - + COUNT ( * ) + - 6 + + 43 * ( + 86 ) + - NULLIF ( 69, - 86 ) + + - 31 * - AVG ( ALL + + NULLIF ( - 66, CASE - + 15 WHEN - + 2 THEN - - 1 WHEN 62 * - + 97 * + - 22 * + 47 / + 45 - 74 THEN NULL END ) ) * - 71 ) )
----
15

query I rowsort
SELECT - 7 - 21 AS col1
----
-28

query I rowsort
SELECT ALL + CASE - + 62 WHEN + + 0 - - + 21 THEN 78 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT DISTINCT - 34 DIV + 53 + + + COALESCE ( - 94, 69 * + 81 * 48 - + COUNT( * ) + - 4, + ( - 31 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - 34 / + 53 + + + COALESCE ( - 94, 69 * + 81 * 48 - + COUNT ( * ) + - 4, + ( - 31 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL + ( - - CAST( + COUNT( * ) AS SIGNED ) ) / - 47 + 71 * CASE - 22 WHEN - 55 + + - 27 THEN + 67 WHEN - 9 + 75 THEN NULL END + - 74 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) / - 47 + 71 * CASE - 22 WHEN - 55 + + - 27 THEN + 67 WHEN - 9 + 75 THEN NULL END + - 74 * - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT + COALESCE ( ( - + 92 ), 80 * 13 DIV 60 - - + 49 + + 14 + - NULLIF ( - 66, + 72 ) * + 4 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5164
SELECT + COALESCE ( ( - + 92 ), 80 * 13 / 60 - - + 49 + + 14 + - NULLIF ( - 66, + 72 ) * + 4 ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT + ( 58 ) DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-5165
SELECT + ( 58 ) / 12
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5166
SELECT ALL COUNT( * ) / ( + + 69 ) + - CASE + ( - 99 ) WHEN - 31 + - - MIN( ALL - CAST( NULL AS SIGNED ) ) THEN - + 33 END + - 54 AS col1, ( COUNT( * ) ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5166
SELECT ALL COUNT ( * ) / ( + + 69 ) + - CASE + ( - 99 ) WHEN - 31 + - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) THEN - + 33 END + - 54 AS col1, ( COUNT ( * ) ) col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + ( - - MAX( DISTINCT 7 ) ) - - 43 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5167
SELECT + ( - - MAX ( DISTINCT 7 ) ) - - 43 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL 23 * 49 + - COUNT( * )
----
1126

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL 23 * 49 + - COUNT ( * )
----
1126

query I rowsort
SELECT 17 + + 52
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT COUNT( * ) * + COUNT( * ) DIV 44 + COUNT( DISTINCT + 5 ) * - SUM( DISTINCT 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5170
SELECT COUNT ( * ) * + COUNT ( * ) / 44 + COUNT ( DISTINCT + 5 ) * - SUM ( DISTINCT 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5171
SELECT + 57 col1, - 65 DIV ( - NULLIF ( + COUNT( * ), + - 94 ) )
----
57
65

skipif mysql # not compatible
query II rowsort label-5171
SELECT + 57 col1, - 65 / ( - NULLIF ( + COUNT ( * ), + - 94 ) )
----
57
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT + - 38, COUNT( * ) * + NULLIF ( + MAX( DISTINCT + 17 ), 71 * - 57 * - CAST( - 71 AS SIGNED ) * + 54 + ( - + ( - 95 ) ) + + 17 + - ( 3 ) * + 80 * - 8 ) AS col2
----
-38
17

skipif mysql # not compatible
query II rowsort label-5172
SELECT + - 38, COUNT ( * ) * + NULLIF ( + MAX ( DISTINCT + 17 ), 71 * - 57 * - CAST ( - 71 AS INTEGER ) * + 54 + ( - + ( - 95 ) ) + + 17 + - ( 3 ) * + 80 * - 8 ) AS col2
----
-38
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT - 30, 78 * MAX( 48 ) AS col1
----
-30
3744

skipif mysql # not compatible
query II rowsort label-5173
SELECT - 30, 78 * MAX ( 48 ) AS col1
----
-30
3744

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

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

query II rowsort
SELECT - - 17 AS col0, 59 * - + 17
----
17
-1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL - - 99 - - CAST( + ( - - CAST( + COALESCE ( + 27, - CAST( 33 AS SIGNED ) * - 74 * - 41 + + ( + + 96 ) ) AS SIGNED ) ) AS SIGNED ) * - SUM( - - ( + - 55 ) ) * - - 46 * 99
----
6762789

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - - 99 - - CAST ( + ( - - CAST ( + COALESCE ( + 27, - CAST ( 33 AS INTEGER ) * - 74 * - 41 + + ( + + 96 ) ) AS INTEGER ) ) AS INTEGER ) * - SUM ( - - ( + - 55 ) ) * - - 46 * 99
----
6762789

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT ALL + ( COUNT( * ) ) * 1 + - + 32 AS col0, 80 * + - 10 * - + 90 * + 52 * 13
----
-31
48672000

skipif mysql # not compatible
query II rowsort label-5177
SELECT ALL + ( COUNT ( * ) ) * 1 + - + 32 AS col0, 80 * + - 10 * - + 90 * + 52 * 13
----
-31
48672000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT - NULLIF ( + 82, + COALESCE ( + MIN( + - CAST( - - 30 AS SIGNED ) ), ( + + SUM( - 55 ) ) + - - 62 + + ( - - 25 ) ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5178
SELECT - NULLIF ( + 82, + COALESCE ( + MIN ( + - CAST ( - - 30 AS INTEGER ) ), ( + + SUM ( - 55 ) ) + - - 62 + + ( - - 25 ) ) ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5179
SELECT ALL 26, - CAST( NULL AS SIGNED ) / - - 17 * 66 - 78 + 6 / 1 + + COUNT( * ) - - 0 * - 10 AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL 26, - CAST ( NULL AS INTEGER ) / - - 17 * 66 - 78 + 6 / 1 + + COUNT ( * ) - - 0 * - 10 AS col2
----
26
NULL

query I rowsort
SELECT DISTINCT ( + 51 ) * + 71
----
3621

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

skipif mysql # not compatible
query I rowsort label-5181
SELECT 34 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 40 - + 53 * - + 32 + + 44 AS col2
----
1780

query I rowsort
SELECT 43 * 85 AS col1
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT 50 + + SUM( - 24 )
----
26

skipif mysql # not compatible
query I rowsort label-5184
SELECT 50 + + SUM ( - 24 )
----
26

query I rowsort
SELECT 59 * 6 AS col0
----
354

query II rowsort
SELECT ALL - 3 + - 63, + 46 + + 42 AS col0
----
-66
88

query I rowsort
SELECT 30 + - - 14
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT ALL + 40 + + MIN( DISTINCT + 64 ) DIV - 45 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 40 + + MIN ( DISTINCT + 64 ) / - 45 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT - 96 DIV + 66 + + ( + SUM( ALL + 82 ) )
----
81

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 96 / + 66 + + ( + SUM ( ALL + 82 ) )
----
81

query I rowsort
SELECT DISTINCT - NULLIF ( + - 41, 81 / + 16 * - - 79 )
----
41

query I rowsort
SELECT DISTINCT COALESCE ( + ( - + 79 ), + + 48 ) + - 26 AS col2
----
-105

query I rowsort
SELECT ALL + 13 * + 52 col1
----
676

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT + COALESCE ( 50, - 65 * - - 60, 90 ) * - SUM( - 42 ) + - NULLIF ( 67, 19 ) AS col0, - NULLIF ( - + 93, 17 / + + 11 )
----
2033
93

skipif mysql # not compatible
query II rowsort label-5193
SELECT + COALESCE ( 50, - 65 * - - 60, 90 ) * - SUM ( - 42 ) + - NULLIF ( 67, 19 ) AS col0, - NULLIF ( - + 93, 17 / + + 11 )
----
2033
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT - 86 + 32 - - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - 86 + 32 - - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT COUNT( * ) * + - 26 + - + 62
----
-88

skipif mysql # not compatible
query I rowsort label-5195
SELECT COUNT ( * ) * + - 26 + - + 62
----
-88

query I rowsort
SELECT 49 * + 23
----
1127

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT + 57 DIV - 78 + + 57
----
57

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 57 / - 78 + + 57
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT ALL - + 35 + + COUNT( * ), ( + 58 ) AS col0
----
-34
58

skipif mysql # not compatible
query II rowsort label-5198
SELECT ALL - + 35 + + COUNT ( * ), ( + 58 ) AS col0
----
-34
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - + 68 * 35 + - COUNT( * )
----
-2381

skipif mysql # not compatible
query I rowsort label-5199
SELECT - + 68 * 35 + - COUNT ( * )
----
-2381

query II rowsort
SELECT ALL + 32 + - 65 + - - 3 + - 24 AS col2, 88 AS col0
----
-54
88

query I rowsort
SELECT 6 * - 7 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT - 83 DIV + 43 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - 83 / + 43 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT MIN( ALL + ( - 89 ) ) * + MAX( - 32 ) + - COUNT( * ) * - 83 + - NULLIF ( - 3, + COUNT( * ) + + - 14 ) + - 77 + + 45 * - 61 * - ( - COUNT( * ) ) + + - 38 col2
----
74

skipif mysql # not compatible
query I rowsort label-5203
SELECT MIN ( ALL + ( - 89 ) ) * + MAX ( - 32 ) + - COUNT ( * ) * - 83 + - NULLIF ( - 3, + COUNT ( * ) + + - 14 ) + - 77 + + 45 * - 61 * - ( - COUNT ( * ) ) + + - 38 col2
----
74

query I rowsort
SELECT ALL 98 * + 62
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - MAX( ALL - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - MAX ( ALL - 9 ) AS col1
----
9

query I rowsort
SELECT ( 63 ) + + + 53
----
116

query I rowsort
SELECT 65 * ( - 53 )
----
-3445

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

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

query I rowsort
SELECT NULLIF ( + 34, - - 57 * + 21 ) * 73
----
2482

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 42 + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5211
SELECT 42 + - COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT 50 * - COUNT( * ) - + 22
----
-72

skipif mysql # not compatible
query I rowsort label-5212
SELECT 50 * - COUNT ( * ) - + 22
----
-72

query I rowsort
SELECT DISTINCT + 86 * - 57 * + 12
----
-58824

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT COUNT( * ) + + + 11
----
12

skipif mysql # not compatible
query I rowsort label-5214
SELECT COUNT ( * ) + + + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - MIN( + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5215
SELECT - MIN ( + 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT CASE - + 12 WHEN 9 * + COUNT( * ) THEN - - 57 ELSE NULL END - - CAST( NULL AS SIGNED ) * 36 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT CASE - + 12 WHEN 9 * + COUNT ( * ) THEN - - 57 ELSE NULL END - - CAST ( NULL AS INTEGER ) * 36 * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT ALL 84 * - 67 * + 87 * + 90 * - 22, 57 * + COUNT( DISTINCT 88 ) * 99 - - ( - 28 ) * - ( - COUNT( * ) ) AS col1
----
969479280
5615

skipif mysql # not compatible
query II rowsort label-5217
SELECT ALL 84 * - 67 * + 87 * + 90 * - 22, 57 * + COUNT ( DISTINCT 88 ) * 99 - - ( - 28 ) * - ( - COUNT ( * ) ) AS col1
----
969479280
5615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5218
SELECT 69 DIV - MIN( ( + + 39 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5218
SELECT 69 / - MIN ( ( + + 39 ) ) AS col0
----
-1

query I rowsort
SELECT 40 * - 63 AS col1
----
-2520

query I rowsort
SELECT DISTINCT 19 * - - 62 AS col1
----
1178

query I rowsort
SELECT ALL 78 + - - 75 AS col0
----
153

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

skipif mysql # not compatible
query I rowsort label-5222
SELECT - MIN ( ALL - 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5223
SELECT ALL CASE + 87 WHEN CAST( NULL AS SIGNED ) THEN 53 END + + 42 col1, - 56 col2
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-5223
SELECT ALL CASE + 87 WHEN CAST ( NULL AS INTEGER ) THEN 53 END + + 42 col1, - 56 col2
----
NULL
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - COALESCE ( + + 88, CASE 74 WHEN + 88 + + 50 + - 41 * + 56 THEN NULL WHEN - ( - COUNT( * ) ) THEN - 88 END + - 27 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5224
SELECT - COALESCE ( + + 88, CASE 74 WHEN + 88 + + 50 + - 41 * + 56 THEN NULL WHEN - ( - COUNT ( * ) ) THEN - 88 END + - 27 ) AS col1
----
-88

query I rowsort
SELECT ALL - 72 + + - 93 * + 74 + + + 99 AS col2
----
-6855

query I rowsort
SELECT 65 * - + 86 col1
----
-5590

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT DISTINCT 28 * + + 12 + 19 + - + 90 DIV 20 DIV - + 8 * 45 * 21 + + 8 + + 40 DIV 58 col0
----
363

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT 28 * + + 12 + 19 + - + 90 / 20 / - + 8 * 45 * 21 + + 8 + + 40 / 58 col0
----
363

query I rowsort
SELECT + 42 * 13
----
546

query I rowsort
SELECT CASE - - 71 WHEN ( + 76 ) THEN - 83 + - - 39 + + + 67 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT NULLIF ( COUNT( * ), + SUM( 18 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT NULLIF ( COUNT ( * ), + SUM ( 18 ) ) AS col2
----
1

query I rowsort
SELECT ALL 40 * - ( 10 ) - 3 col2
----
-403

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT ALL + 31 * ( 76 DIV 72 ) - - 5 col0
----
36

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + 31 * ( 76 / 72 ) - - 5 col0
----
36

query I rowsort
SELECT - 40 - - 11
----
-29

query I rowsort
SELECT + 52 * 88 AS col2
----
4576

query I rowsort
SELECT + 71 * 46 + + ( 85 )
----
3351

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT - 4 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 4 / 80
----
0

query I rowsort
SELECT - 10 * - 88
----
880

query I rowsort
SELECT - 80 + - 32 col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT DISTINCT + CASE - 46 WHEN - COUNT( * ) THEN - CASE + 44 WHEN NULLIF ( + 10, 97 ) THEN 7 WHEN - 61 THEN - CAST( NULL AS SIGNED ) ELSE - CAST( NULL AS SIGNED ) * 57 END WHEN + 63 - - 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + CASE - 46 WHEN - COUNT ( * ) THEN - CASE + 44 WHEN NULLIF ( + 10, 97 ) THEN 7 WHEN - 61 THEN - CAST ( NULL AS INTEGER ) ELSE - CAST ( NULL AS INTEGER ) * 57 END WHEN + 63 - - 38 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT - 74 DIV + 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5242
SELECT - 74 / + 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT COALESCE ( ( + 39 ), 38 + COUNT( * ) * 3, 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT COALESCE ( ( + 39 ), 38 + COUNT ( * ) * 3, 39 ) AS col1
----
39

query I rowsort
SELECT ALL CASE 26 WHEN - 99 THEN + 92 + - 47 WHEN 78 THEN 79 + 27 ELSE + 21 * 78 END AS col0
----
1638

query I rowsort
SELECT ALL 21 * + 11
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT - 38 DIV - ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT - 38 / - ( 94 )
----
0

query I rowsort
SELECT + 44 * 26 AS col0
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL - NULLIF ( CAST( 68 AS SIGNED ), + 2 ) + - 8 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - NULLIF ( CAST ( 68 AS INTEGER ), + 2 ) + - 8 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + COALESCE ( 16, - 15, 72 + 5, - ( - 67 ) * + 51 - + COUNT( * ) ) * - 53 AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-5249
SELECT + COALESCE ( 16, - 15, 72 + 5, - ( - 67 ) * + 51 - + COUNT ( * ) ) * - 53 AS col0
----
-848

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

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

query I rowsort
SELECT DISTINCT 43 * COALESCE ( - 42 * + 49, 24 ) AS col0
----
-88494

query I rowsort
SELECT - 8 + 61
----
53

query I rowsort
SELECT + 84 + + 87 * + 77
----
6783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT ALL - CAST( NULL AS SIGNED ) + 8 * 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - CAST ( NULL AS INTEGER ) + 8 * 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - CASE SUM( DISTINCT + 10 ) WHEN + COUNT( * ) + 41 THEN - COUNT( * ) * - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT - CASE SUM ( DISTINCT + 10 ) WHEN + COUNT ( * ) + 41 THEN - COUNT ( * ) * - 43 END
----
NULL

query I rowsort
SELECT ALL 72 + 47 * + 97 AS col2
----
4631

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - COALESCE ( - SUM( 78 ), NULLIF ( + COUNT( * ), + 73 * + 37 - 58 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5257
SELECT - COALESCE ( - SUM ( 78 ), NULLIF ( + COUNT ( * ), + 73 * + 37 - 58 ) ) AS col1
----
78

query I rowsort
SELECT + 54 - + 39 AS col1
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + 18 + MIN( ALL - 99 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5261
SELECT + 18 + MIN ( ALL - 99 ) AS col1
----
-81

query I rowsort
SELECT + 24 * 97
----
2328

query I rowsort
SELECT DISTINCT 30 * + 12
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT + ( + 38 ) + + SUM( - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT + ( + 38 ) + + SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT ALL 30 * CAST( SUM( 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL 30 * CAST ( SUM ( 0 ) AS INTEGER )
----
0

query I rowsort
SELECT + - 10 + 43 AS col2
----
33

query I rowsort
SELECT + - 94 * 21
----
-1974

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

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

query I rowsort
SELECT ALL + + ( + CASE ( 65 ) WHEN ( 93 ) THEN NULL ELSE - 66 END )
----
-66

query I rowsort
SELECT + - 61 * - 10
----
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL - CAST( 5 AS SIGNED ) * + 41 AS col2
----
-205

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - CAST ( 5 AS INTEGER ) * + 41 AS col2
----
-205

query I rowsort
SELECT 44 * + 0 + 71 * - 86
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - CASE WHEN NOT ( COUNT( - NULLIF ( - 81, 46 * - 79 + - NULLIF ( + 57, + 35 ) ) ) ) >= NULL THEN + 10 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - CASE WHEN NOT ( COUNT ( - NULLIF ( - 81, 46 * - 79 + - NULLIF ( + 57, + 35 ) ) ) ) >= NULL THEN + 10 * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 49 + 58 * 61
----
3489

query I rowsort
SELECT + 89 * + 67
----
5963

query I rowsort
SELECT + 93 * 22 AS col2
----
2046

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT - + ( + 62 ) DIV + ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT - + ( + 62 ) / + ( - 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL + MIN( DISTINCT - CASE + 8 WHEN - 17 + - 84 THEN - 66 * 88 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL + MIN ( DISTINCT - CASE + 8 WHEN - 17 + - 84 THEN - 66 * 88 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5279
SELECT ALL + CASE + 32 WHEN 3 THEN + 40 WHEN COUNT( * ) + + CAST( 50 AS SIGNED ) THEN + COUNT( 19 ) * 65 + + AVG ( ALL - 23 ) * - 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL + CASE + 32 WHEN 3 THEN + 40 WHEN COUNT ( * ) + + CAST ( 50 AS INTEGER ) THEN + COUNT ( 19 ) * 65 + + AVG ( ALL - 23 ) * - 56 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT + - 37 * COUNT( * ) + 77 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + - 37 * COUNT ( * ) + 77 AS col0
----
40

query I rowsort
SELECT ALL - ( 48 ) * 60
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT + + CASE - 59 WHEN 59 + - 76 THEN - 51 WHEN COUNT( DISTINCT - 56 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + + CASE - 59 WHEN 59 + - 76 THEN - 51 WHEN COUNT ( DISTINCT - 56 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT DISTINCT - 37 * + 14 + 3 DIV 91 col1
----
-518

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT - 37 * + 14 + 3 / 91 col1
----
-518

query I rowsort
SELECT + + 73 - - 75
----
148

query I rowsort
SELECT ALL - 68 * - + 17 + + 97
----
1253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT 44 * COUNT( * ) DIV + 37 + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-5286
SELECT 44 * COUNT ( * ) / + 37 + - 62
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT COALESCE ( - - NULLIF ( + 20, 45 ), + 94 * MIN( DISTINCT 90 ) + + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-5287
SELECT COALESCE ( - - NULLIF ( + 20, 45 ), + 94 * MIN ( DISTINCT 90 ) + + COUNT ( * ) )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5288
SELECT - COUNT( * ) + + + ( 10 ) + CAST( 50 + 32 DIV 48 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-5288
SELECT - COUNT ( * ) + + + ( 10 ) + CAST ( 50 + 32 / 48 AS INTEGER )
----
59

query I rowsort
SELECT DISTINCT - ( + - ( 36 ) ) * + 95 + - 95
----
3325

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

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

skipif mysql # not compatible
query I rowsort label-5291
SELECT - COUNT ( * ) * - 44
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL + 81 DIV 12 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 81 / 12 AS col2
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT ALL - 9 - 12 + MAX( + 51 ) DIV MIN( + 73 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - 9 - 12 + MAX ( + 51 ) / MIN ( + 73 ) AS col1
----
-21

query I rowsort
SELECT ALL + 54 * 19
----
1026

query I rowsort
SELECT 58 * ( 67 ) * 95 col1
----
369170

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT 65 DIV + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT 65 / + 60 AS col2
----
1

query I rowsort
SELECT ALL - 9 - + ( 18 )
----
-27

query I rowsort
SELECT 92 * 73
----
6716

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT - MIN( 52 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - MIN ( 52 ) col1
----
-52

query I rowsort
SELECT 40 * - 44
----
-1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT + COUNT( - - CAST( - NULLIF ( 16, - 32 * 17 + - 69 ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5302
SELECT + COUNT ( - - CAST ( - NULLIF ( 16, - 32 * 17 + - 69 ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT + 43 * - 10 AS col0
----
-430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + 43 + - 14 + + COUNT( 80 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + 43 + - 14 + + COUNT ( 80 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - - 62 * 32 - + COUNT( * ) * + NULLIF ( - 83, 38 ) AS col0
----
2067

skipif mysql # not compatible
query I rowsort label-5306
SELECT - - 62 * 32 - + COUNT ( * ) * + NULLIF ( - 83, 38 ) AS col0
----
2067

query I rowsort
SELECT - 9 * - 87 * 45
----
35235

query I rowsort
SELECT 63 * + 74 * + COALESCE ( - 57, 41 * 18 ) + + 29 * CASE + 92 * NULLIF ( - 75 * 34, 30 + 37 ) + NULLIF ( + 74, + 7 / 56 ) / 13 WHEN 46 THEN 78 ELSE 46 END
----
-264400

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

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

query I rowsort
SELECT ALL ( 1 ) + 26 * 65 AS col0
----
1691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL 66 + - ( - CAST( - 90 AS SIGNED ) ) * 92 AS col2
----
-8214

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL 66 + - ( - CAST ( - 90 AS INTEGER ) ) * 92 AS col2
----
-8214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL + CASE - + NULLIF ( - 48, - CASE 52 WHEN 60 THEN 51 WHEN 94 THEN NULL ELSE NULL END ) WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) + - 31 WHEN 87 + + 52 * 96 THEN NULL ELSE NULL END + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + CASE - + NULLIF ( - 48, - CASE 52 WHEN 60 THEN 51 WHEN 94 THEN NULL ELSE NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + - 31 WHEN 87 + + 52 * 96 THEN NULL ELSE NULL END + 81 AS col2
----
NULL

query I rowsort
SELECT + 73 * 0 - 49 * - 98 + - 19
----
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - 50 - + + 71 - - COUNT( * ) * - 52 * COUNT( * )
----
-173

skipif mysql # not compatible
query I rowsort label-5314
SELECT - 50 - + + 71 - - COUNT ( * ) * - 52 * COUNT ( * )
----
-173

query I rowsort
SELECT + ( - 85 ) * 44
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + + 61 * + COUNT( * ) * - 80 - + COALESCE ( + 73, - COUNT( * ) ) AS col1
----
-4953

skipif mysql # not compatible
query I rowsort label-5316
SELECT + + 61 * + COUNT ( * ) * - 80 - + COALESCE ( + 73, - COUNT ( * ) ) AS col1
----
-4953

query I rowsort
SELECT - 77 * 3 + 23
----
-208

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT 34 + - ( + - 48 ) DIV 9
----
39

skipif mysql # not compatible
query I rowsort label-5318
SELECT 34 + - ( + - 48 ) / 9
----
39

query II rowsort
SELECT + 36 AS col2, ( + 22 ) + 23
----
36
45

query I rowsort
SELECT ALL + 58 + 95 + - + 73
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT CAST( NULL AS SIGNED ) + - 43 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT CAST ( NULL AS INTEGER ) + - 43 + - 92 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5322
SELECT 58 * + COALESCE ( 32, 63, CAST( SUM( 55 ) AS SIGNED ) ) DIV 32 + 7 * 89
----
681

skipif mysql # not compatible
query I rowsort label-5322
SELECT 58 * + COALESCE ( 32, 63, CAST ( SUM ( 55 ) AS INTEGER ) ) / 32 + 7 * 89
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - 22 - NULLIF ( ( + 67 ), - 15 + COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - 22 - NULLIF ( ( + 67 ), - 15 + COUNT ( * ) )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5324
SELECT - 1 AS col0, - CASE + CASE - COALESCE ( 91, 87 + - 61 ) WHEN - ( + 34 ) DIV 28 THEN NULL WHEN 40 THEN NULL ELSE + 97 END WHEN 23 * 15 THEN + ( - COUNT( * ) ) WHEN + 4 * 58 + + 0 THEN NULL ELSE + CAST( 76 AS SIGNED ) DIV + 42 END + 70
----
-1
69

skipif mysql # not compatible
query II rowsort label-5324
SELECT - 1 AS col0, - CASE + CASE - COALESCE ( 91, 87 + - 61 ) WHEN - ( + 34 ) / 28 THEN NULL WHEN 40 THEN NULL ELSE + 97 END WHEN 23 * 15 THEN + ( - COUNT ( * ) ) WHEN + 4 * 58 + + 0 THEN NULL ELSE + CAST ( 76 AS INTEGER ) / + 42 END + 70
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT 2 * - MIN( ALL 66 ) col1
----
-132

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 2 * - MIN ( ALL 66 ) col1
----
-132

query I rowsort
SELECT 78 + - 14 AS col1
----
64

query II rowsort
SELECT 20 AS col0, 34
----
20
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT 65 + - + 54 + + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5328
SELECT 65 + - + 54 + + COUNT ( * ) AS col1
----
12

query I rowsort
SELECT 68 * - - 69
----
4692

query I rowsort
SELECT 3 * + + 36 col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL 1 * - + COUNT( ALL - CAST( - COALESCE ( 78, + 3 + + 16 ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL 1 * - + COUNT ( ALL - CAST ( - COALESCE ( 78, + 3 + + 16 ) AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT 84 + + ( - + 81 ) + + 13 * + 32
----
419

query II rowsort
SELECT ALL 26 col1, - 21
----
26
-21

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

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

query I rowsort
SELECT 93 * + 86 AS col1
----
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT 0 - + 21 + - - NULLIF ( - 54, + 43 ) * CASE - 51 WHEN - 29 THEN + 26 * COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN 78 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT 0 - + 21 + - - NULLIF ( - 54, + 43 ) * CASE - 51 WHEN - 29 THEN + 26 * COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5337
SELECT DISTINCT + 66 * - + COALESCE ( + + 75, 59 DIV + ( - 48 * 39 ), - 3 * 35 + + 75 * COUNT( * ) ) AS col1
----
-4950

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT + 66 * - + COALESCE ( + + 75, 59 / + ( - 48 * 39 ), - 3 * 35 + + 75 * COUNT ( * ) ) AS col1
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - COUNT( * ) + - ( + 16 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5338
SELECT - COUNT ( * ) + - ( + 16 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT COUNT( * ) + - 68 + + + 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5339
SELECT COUNT ( * ) + - 68 + + + 34 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL CASE 32 WHEN 66 THEN 25 WHEN COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL CASE 32 WHEN 66 THEN 25 WHEN COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 48 * 2 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT + 18 + + 11 + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5342
SELECT + 18 + + 11 + - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT DISTINCT + 11 AS col1, COALESCE ( + 6, + 28 + COUNT( * ) )
----
11
6

skipif mysql # not compatible
query II rowsort label-5343
SELECT DISTINCT + 11 AS col1, COALESCE ( + 6, + 28 + COUNT ( * ) )
----
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT + ( + - CAST( + 41 AS SIGNED ) ) + + 46 * 93
----
4237

skipif mysql # not compatible
query I rowsort label-5344
SELECT + ( + - CAST ( + 41 AS INTEGER ) ) + + 46 * 93
----
4237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT CAST( 95 AS SIGNED ) + + 82 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-5345
SELECT CAST ( 95 AS INTEGER ) + + 82 AS col1
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT 9 AS col1, MAX( ALL 69 ) col0
----
9
69

skipif mysql # not compatible
query II rowsort label-5346
SELECT 9 AS col1, MAX ( ALL 69 ) col0
----
9
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT 45 DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5347
SELECT 45 / - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL - 72 + + COUNT( - 10 ) + 17 * + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - 72 + + COUNT ( - 10 ) + 17 * + COUNT ( * )
----
-54

query I rowsort
SELECT - 84 + + 67
----
-17

query I rowsort
SELECT - ( + 88 ) + + - ( - 95 )
----
7

query I rowsort
SELECT ALL + 86 * 5 * + + 77 + + 43 AS col1
----
33153

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

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

query I rowsort
SELECT ALL - - 27 * + 83 + + 90
----
2331

query I rowsort
SELECT - 64 * 24 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT MIN( DISTINCT - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5355
SELECT MIN ( DISTINCT - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + COUNT( * ) + 14 col2
----
15

skipif mysql # not compatible
query I rowsort label-5356
SELECT + COUNT ( * ) + 14 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT 93 + + COUNT( * ) * - - NULLIF ( 46, 32 / 50 )
----
139

skipif mysql # not compatible
query I rowsort label-5357
SELECT 93 + + COUNT ( * ) * - - NULLIF ( 46, 32 / 50 )
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT + 52, + 50 * - COUNT( * ) + MAX( ALL - 61 ) * 98 col1
----
52
-6028

skipif mysql # not compatible
query II rowsort label-5358
SELECT + 52, + 50 * - COUNT ( * ) + MAX ( ALL - 61 ) * 98 col1
----
52
-6028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5359
SELECT MIN( ALL 70 ) AS col0, - NULLIF ( 47, 30 / MAX( - 9 ) ) + - CAST( NULL AS SIGNED )
----
70
NULL

skipif mysql # not compatible
query II rowsort label-5359
SELECT MIN ( ALL 70 ) AS col0, - NULLIF ( 47, 30 / MAX ( - 9 ) ) + - CAST ( NULL AS INTEGER )
----
70
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5360
SELECT + CAST( NULL AS DECIMAL ) / + 30 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + CAST ( NULL AS REAL ) / + 30 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT 81 * - 95 + + 49 + + 56 DIV SUM( ALL 23 ) col1
----
-7644

skipif mysql # not compatible
query I rowsort label-5361
SELECT 81 * - 95 + + 49 + + 56 / SUM ( ALL 23 ) col1
----
-7644

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT + 78 DIV + + 35 col2
----
2

skipif mysql # not compatible
query I rowsort label-5362
SELECT + 78 / + + 35 col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT - 84 DIV - + 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 84 / - + 66 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5364
SELECT + 95 * - 50, CAST( 63 AS SIGNED ) + - 33 * - COUNT( * ) AS col1
----
-4750
96

skipif mysql # not compatible
query II rowsort label-5364
SELECT + 95 * - 50, CAST ( 63 AS INTEGER ) + - 33 * - COUNT ( * ) AS col1
----
-4750
96

query I rowsort
SELECT + 0 * 21 - + 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT + 37 * - + CASE + - 12 WHEN - COUNT( * ) * + 47 THEN 59 ELSE 54 * - MAX( ALL 88 * + 24 ) END
----
4219776

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT + 37 * - + CASE + - 12 WHEN - COUNT ( * ) * + 47 THEN 59 ELSE 54 * - MAX ( ALL 88 * + 24 ) END
----
4219776

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + 65 + - COUNT( * ) + - 98 * + 71 + 58 AS col0
----
-6836

skipif mysql # not compatible
query I rowsort label-5367
SELECT + 65 + - COUNT ( * ) + - 98 * + 71 + 58 AS col0
----
-6836

query I rowsort
SELECT + ( - 0 ) * - 75 - - + 52 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT - CASE COALESCE ( + 75, - 11 * CAST( 63 AS SIGNED ) ) WHEN 46 THEN + 54 * + 62 - - 29 WHEN 60 * + 49 THEN NULL ELSE 0 * + 35 END col0
----
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT - CASE COALESCE ( + 75, - 11 * CAST ( 63 AS INTEGER ) ) WHEN 46 THEN + 54 * + 62 - - 29 WHEN 60 * + 49 THEN NULL ELSE 0 * + 35 END col0
----
0

query II rowsort
SELECT + - 87 * - - 64 AS col2, + 40 AS col0
----
-5568
40

query I rowsort
SELECT - - 82 * + + 24 + 58 AS col2
----
2026

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + 76 + - 23 + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 76 + - 23 + COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT + + 19 + 74 + + 71 AS col2
----
164

query I rowsort
SELECT ALL 43 * + 15 * + 10
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - MAX( + 93 ) + - + 56 AS col1
----
-149

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - MAX ( + 93 ) + - + 56 AS col1
----
-149

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5376
SELECT DISTINCT - + COUNT( * ) + - 56, + CAST( NULL AS DECIMAL ) + - 5 + 51 col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-5376
SELECT DISTINCT - + COUNT ( * ) + - 56, + CAST ( NULL AS REAL ) + - 5 + 51 col1
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT - MAX( - - 93 ) + - 57 * 73
----
-4254

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - MAX ( - - 93 ) + - 57 * 73
----
-4254

query II rowsort
SELECT + + 60 + - 69, 45 * 85 AS col1
----
-9
3825

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT - + 10 DIV + 46 * ( + + 47 ) + 33 + - 25 DIV - 87 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5379
SELECT - + 10 / + 46 * ( + + 47 ) + 33 + - 25 / - 87 AS col0
----
33

query I rowsort
SELECT + NULLIF ( 32, ( - 80 ) ) col1
----
32

query I rowsort
SELECT + 54 * + - 48 * 63 - + + 89 AS col2
----
-163385

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - + 24 * 91 + - 73 + + MAX( ALL 90 ) + 98 col1
----
-2069

skipif mysql # not compatible
query I rowsort label-5382
SELECT - + 24 * 91 + - 73 + + MAX ( ALL 90 ) + 98 col1
----
-2069

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL + + 89 * + SUM( + ( + 28 ) ) AS col0
----
2492

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + + 89 * + SUM ( + ( + 28 ) ) AS col0
----
2492

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT DISTINCT + + CAST( - 82 AS SIGNED ) * 32
----
-2624

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + + CAST ( - 82 AS INTEGER ) * 32
----
-2624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT COALESCE ( - COUNT( * ), - 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5387
SELECT COALESCE ( - COUNT ( * ), - 56 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT + COUNT( * ) - + CAST( + + 13 AS SIGNED ) * - 36 + 18 - 47 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COUNT ( * ) - + CAST ( + + 13 AS INTEGER ) * - 36 + 18 - 47 AS col2
----
440

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT COALESCE ( - 33, + 16 DIV + 56 * + - 19 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5391
SELECT COALESCE ( - 33, + 16 / + 56 * + - 19 ) AS col0
----
-33

query I rowsort
SELECT - 54 + + 52
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL 66 * - CASE - 76 WHEN + COUNT( * ) THEN 67 ELSE NULL END * 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL 66 * - CASE - 76 WHEN + COUNT ( * ) THEN 67 ELSE NULL END * 33 AS col2
----
NULL

query I rowsort
SELECT + 72 * + 32
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT ALL - 50 DIV + - 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - 50 / + - 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + CASE - COUNT( * ) WHEN + - 6 * 40 THEN NULL WHEN + + 7 + + 85 THEN 94 / 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT + CASE - COUNT ( * ) WHEN + - 6 * 40 THEN NULL WHEN + + 7 + + 85 THEN 94 / 55 ELSE NULL END
----
NULL

query I rowsort
SELECT - 36 + - 60 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + 42 * - 61 * SUM( ALL - - 2 ) AS col2
----
-5124

skipif mysql # not compatible
query I rowsort label-5398
SELECT + 42 * - 61 * SUM ( ALL - - 2 ) AS col2
----
-5124

query I rowsort
SELECT - ( - 18 ) + 23 + + - 34 * + + 91 AS col1
----
-3053

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5400
SELECT - COALESCE ( - 78, + + 58 + CAST( NULL AS SIGNED ), + + CASE - 89 WHEN 97 THEN - 78 DIV + 47 + + 60 WHEN 1 THEN NULL END - 33, 18 * 63 - 9 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5400
SELECT - COALESCE ( - 78, + + 58 + CAST ( NULL AS INTEGER ), + + CASE - 89 WHEN 97 THEN - 78 / + 47 + + 60 WHEN 1 THEN NULL END - 33, 18 * 63 - 9 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + 0 DIV ( + + 6 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5401
SELECT + 0 / ( + + 6 ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT + + 0 + + + COUNT( * ) + + - 32 DIV + + 3 col2
----
-9

skipif mysql # not compatible
query I rowsort label-5402
SELECT + + 0 + + + COUNT ( * ) + + - 32 / + + 3 col2
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT - CASE ( 66 ) WHEN + 4 * - 59 + - ( 3 ) THEN + ( 82 ) DIV + 21 + 25 * COUNT( * ) WHEN 14 + + 79 THEN NULL ELSE 16 END AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - CASE ( 66 ) WHEN + 4 * - 59 + - ( 3 ) THEN + ( 82 ) / + 21 + 25 * COUNT ( * ) WHEN 14 + + 79 THEN NULL ELSE 16 END AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT ALL + ( 33 ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + ( 33 ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + + 50 + + 42 + 81 * + COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-5406
SELECT + + 50 + + 42 + 81 * + COUNT ( * )
----
173

query I rowsort
SELECT ALL - 45 + + 70 - + - NULLIF ( - 73, - 11 + + 47 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5408
SELECT + CAST( AVG ( - 55 ) AS SIGNED ) + - COUNT( * ) - + + COUNT( * ) DIV - 80 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5408
SELECT + CAST ( AVG ( - 55 ) AS INTEGER ) + - COUNT ( * ) - + + COUNT ( * ) / - 80 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5409
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5411
SELECT DISTINCT - COALESCE ( CAST( + 15 AS SIGNED ), + 96 + + 71 DIV - COUNT( DISTINCT 54 * + 55 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - COALESCE ( CAST ( + 15 AS INTEGER ), + 96 + + 71 / - COUNT ( DISTINCT 54 * + 55 ) )
----
-15

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

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

query I rowsort
SELECT - 29 + + - 73
----
-102

query I rowsort
SELECT + + 23 + + + 9 * + + 79 * 73
----
51926

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + - COALESCE ( - COUNT( * ), 69, - 33 ) + CASE COUNT( * ) WHEN + 31 THEN 5 END * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT + - COALESCE ( - COUNT ( * ), 69, - 33 ) + CASE COUNT ( * ) WHEN + 31 THEN 5 END * 61
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT 61 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE + 95 WHEN + 62 THEN + ( 77 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT ALL - 88 DIV - 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - 88 / - 35 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT 90 * + 0 + + COALESCE ( + - 11, 34 ) + + 71 DIV + 62
----
-10

skipif mysql # not compatible
query I rowsort label-5419
SELECT 90 * + 0 + + COALESCE ( + - 11, 34 ) + + 71 / + 62
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COUNT( * ) * - + ( 18 ) * 90 * - 83
----
134460

skipif mysql # not compatible
query I rowsort label-5420
SELECT COUNT ( * ) * - + ( 18 ) * 90 * - 83
----
134460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT 87 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-5421
SELECT 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
87
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT + 11 DIV - + 38 * - COUNT( * ) + NULLIF ( - 1, + 10 * - 78 ) * + 91
----
-91

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 11 / - + 38 * - COUNT ( * ) + NULLIF ( - 1, + 10 * - 78 ) * + 91
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5423
SELECT DISTINCT - 36 DIV - - 48 AS col2, 88 * 50 AS col2
----
0
4400

skipif mysql # not compatible
query II rowsort label-5423
SELECT DISTINCT - 36 / - - 48 AS col2, 88 * 50 AS col2
----
0
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT COUNT( - + 59 ) * - 35 - 36 + 63 + + 31 - 93
----
-70

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( - + 59 ) * - 35 - 36 + 63 + + 31 - 93
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5425
SELECT 88 + - + 5 * - CAST( NULL AS SIGNED ) / + 37 AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5425
SELECT 88 + - + 5 * - CAST ( NULL AS INTEGER ) / + 37 AS col1, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + 23 * - COUNT( * ) + COALESCE ( - 87, + 71 ) - - 87 * + 77
----
6589

skipif mysql # not compatible
query I rowsort label-5426
SELECT + 23 * - COUNT ( * ) + COALESCE ( - 87, + 71 ) - - 87 * + 77
----
6589

query I rowsort
SELECT DISTINCT - 9 * 38 AS col2
----
-342

query II rowsort
SELECT DISTINCT - 10, 5 AS col2
----
-10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL - COALESCE ( + - 2, + COUNT( * ) - + 7 + - 86 * SUM( 71 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - COALESCE ( + - 2, + COUNT ( * ) - + 7 + - 86 * SUM ( 71 ) ) AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-5430
SELECT 84 / + + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT ALL + 19 * 58 * 17
----
18734

query I rowsort
SELECT ALL - 64 * - + 8
----
512

query I rowsort
SELECT 93 * ( + 37 )
----
3441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT ALL 60 + - 56 + COUNT( * ) DIV - + 59 * 7
----
4

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL 60 + - 56 + COUNT ( * ) / - + 59 * 7
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT ALL - NULLIF ( + CAST( 10 AS SIGNED ), COALESCE ( 0, + + 47 * + COUNT( * ) ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - NULLIF ( + CAST ( 10 AS INTEGER ), COALESCE ( 0, + + 47 * + COUNT ( * ) ) )
----
-10

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

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

query II rowsort
SELECT ALL - 19 + - 97 * - 49 + + 60, + ( + - NULLIF ( - 8, - 16 + 86 ) ) AS col2
----
4794
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT 30 AS col0, + COALESCE ( + - 0, - - 66 * + 30 + + NULLIF ( - COUNT( * ), COUNT( * ) + 24 ) * + 66 )
----
30
0

skipif mysql # not compatible
query II rowsort label-5438
SELECT 30 AS col0, + COALESCE ( + - 0, - - 66 * + 30 + + NULLIF ( - COUNT ( * ), COUNT ( * ) + 24 ) * + 66 )
----
30
0

query I rowsort
SELECT DISTINCT + + 48 + - 26 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT ALL - 49 + - + MIN( ALL + - 22 ) DIV 38
----
-49

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - 49 + - + MIN ( ALL + - 22 ) / 38
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL - - 35 + NULLIF ( - 73, COUNT( * ) - - + 54 + - - 98 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - - 35 + NULLIF ( - 73, COUNT ( * ) - - + 54 + - - 98 ) AS col0
----
-38

query I rowsort
SELECT DISTINCT - 83 * - 56 AS col1
----
4648

onlyif mysql # aggregate syntax: 
query II rowsort label-5443
SELECT - COALESCE ( + + 81, - 17, + 33 ) AS col1, + COUNT( * ) * + + MIN( + 4 ) AS col2
----
-81
4

skipif mysql # not compatible
query II rowsort label-5443
SELECT - COALESCE ( + + 81, - 17, + 33 ) AS col1, + COUNT ( * ) * + + MIN ( + 4 ) AS col2
----
-81
4

query I rowsort
SELECT ALL - ( 61 ) - + 14 + - 4 + 58 - 8
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT COUNT( * ) - 2
----
-1

skipif mysql # not compatible
query I rowsort label-5445
SELECT COUNT ( * ) - 2
----
-1

query I rowsort
SELECT COALESCE ( - 50, 84 ) AS col2
----
-50

query II rowsort
SELECT + 87 AS col0, - 45 col2
----
87
-45

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

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

query I rowsort
SELECT - + COALESCE ( 43, + 25, + 43 ) AS col0
----
-43

query I rowsort
SELECT ALL + + 18 - + ( - + 55 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL CASE + + 95 WHEN - CASE - 57 WHEN - + 84 THEN + ( - COALESCE ( 73, - 38 + 8, + 85 * COUNT( * ) + 46 ) ) / 2 END - + COUNT( * ) * - CASE COUNT( * ) * 28 WHEN 58 THEN NULL ELSE - 56 + - 89 END THEN NULLIF ( - 66, 36 / COUNT( * ) ) / 47 + + 83 WHEN - 6 + 79 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL CASE + + 95 WHEN - CASE - 57 WHEN - + 84 THEN + ( - COALESCE ( 73, - 38 + 8, + 85 * COUNT ( * ) + 46 ) ) / 2 END - + COUNT ( * ) * - CASE COUNT ( * ) * 28 WHEN 58 THEN NULL ELSE - 56 + - 89 END THEN NULLIF ( - 66, 36 / COUNT ( * ) ) / 47 + + 83 WHEN - 6 + 79 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT DISTINCT 15 * + + 13 * + - SUM( + 89 ) AS col0, 63 AS col2
----
-17355
63

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT 15 * + + 13 * + - SUM ( + 89 ) AS col0, 63 AS col2
----
-17355
63

query I rowsort
SELECT DISTINCT - 39 - + - 1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5454
SELECT 58 + - COUNT ( * )
----
57

query I rowsort
SELECT 49 * 75 * + 42 col1
----
154350

query I rowsort
SELECT 97 * + 47 * - 71 AS col2
----
-323689

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

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

query I rowsort
SELECT ALL 37 + - + 87
----
-50

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

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

query I rowsort
SELECT DISTINCT 89 + - NULLIF ( - - 52, - 25 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT 19 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT 19 / - 46
----
0

query I rowsort
SELECT DISTINCT + 87 + - 28 * + 45
----
-1173

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT 9 DIV - + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT 9 / - + 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL - MIN( ALL 86 ) + - 3 col0
----
-89

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - MIN ( ALL 86 ) + - 3 col0
----
-89

query I rowsort
SELECT DISTINCT - - 33 * + + 73
----
2409

query I rowsort
SELECT - + COALESCE ( 5, + + 54 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL - 53 * - - 76 * - - MAX( DISTINCT + 20 ) AS col1
----
-80560

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - 53 * - - 76 * - - MAX ( DISTINCT + 20 ) AS col1
----
-80560

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + 1 + + + 43 + - 62 * + + 59 + + + COUNT( * )
----
-3613

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 1 + + + 43 + - 62 * + + 59 + + + COUNT ( * )
----
-3613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5469
SELECT - CASE + 52 WHEN + 7 THEN NULL WHEN 31 * + 19 * + COALESCE ( - - NULLIF ( + 49, + 66 * + 3 ), 63 + 92 ) + - 58 THEN - 35 + ( CASE 63 WHEN 62 THEN 63 * + 20 WHEN + CAST( + CAST( 53 AS SIGNED ) AS DECIMAL ) * - ( COUNT( - 37 ) ) THEN + 23 END ) ELSE 23 + 72 * - 96 END + + 25 DIV + 80
----
6889

skipif mysql # not compatible
query I rowsort label-5469
SELECT - CASE + 52 WHEN + 7 THEN NULL WHEN 31 * + 19 * + COALESCE ( - - NULLIF ( + 49, + 66 * + 3 ), 63 + 92 ) + - 58 THEN - 35 + ( CASE 63 WHEN 62 THEN 63 * + 20 WHEN + CAST ( + CAST ( 53 AS INTEGER ) AS REAL ) * - ( COUNT ( - 37 ) ) THEN + 23 END ) ELSE 23 + 72 * - 96 END + + 25 / + 80
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - CASE - - 99 WHEN ( + NULLIF ( 7, - + 71 ) ) + 55 THEN NULL WHEN - MAX( DISTINCT 33 ) * - 48 THEN - 63 * + 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT - CASE - - 99 WHEN ( + NULLIF ( 7, - + 71 ) ) + 55 THEN NULL WHEN - MAX ( DISTINCT 33 ) * - 48 THEN - 63 * + 72 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT 24 * + 85 * + - 10 - + - SUM( DISTINCT + 7 ) AS col2
----
-20393

skipif mysql # not compatible
query I rowsort label-5471
SELECT 24 * + 85 * + - 10 - + - SUM ( DISTINCT + 7 ) AS col2
----
-20393

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - + COUNT( DISTINCT + + COALESCE ( + 8, + - 37 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5472
SELECT - + COUNT ( DISTINCT + + COALESCE ( + 8, + - 37 ) )
----
-1

query II rowsort
SELECT 55 + + - 46 col2, 33
----
9
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COUNT( ALL ( - + 22 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5474
SELECT COUNT ( ALL ( - + 22 ) ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - MAX( DISTINCT + + 91 ) + SUM( NULLIF ( - 16, - 22 * - 13 + + 68 / + 41 ) ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-5476
SELECT - MAX ( DISTINCT + + 91 ) + SUM ( NULLIF ( - 16, - 22 * - 13 + + 68 / + 41 ) ) AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + - 41 + + COUNT( * ) * - + 57 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5477
SELECT + - 41 + + COUNT ( * ) * - + 57 AS col0
----
-98

query I rowsort
SELECT - + 72 * 81 AS col1
----
-5832

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

skipif mysql # not compatible
query I rowsort label-5479
SELECT - - 55 / + - COUNT ( * ) col2
----
-55

query I rowsort
SELECT + + 91 + - - 42 AS col2
----
133

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

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

query II rowsort
SELECT 55, CASE - - 60 WHEN + + 1 + + + 76 THEN NULL ELSE + 75 END - 38 AS col2
----
55
37

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

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

query I rowsort
SELECT ALL - 45 * 15 + 75 AS col1
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5485
SELECT ALL COUNT( DISTINCT - 20 ) DIV - CAST( - 62 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL COUNT ( DISTINCT - 20 ) / - CAST ( - 62 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - 59 * 43 + - - 34 + - 47 AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + SUM( - + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5487
SELECT + SUM ( - + 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT CASE + - 67 WHEN - CASE WHEN NOT NULL = + COUNT( * ) AND - CASE + COUNT( * ) WHEN ( + 57 ) THEN NULL WHEN - 22 THEN 53 / + 63 ELSE NULL END * + CAST( NULL AS SIGNED ) = - COALESCE ( 47, + 34 * - 40 ) THEN + 47 END THEN - ( - 83 ) ELSE - 88 + + 92 END
----
4

skipif mysql # not compatible
query I rowsort label-5488
SELECT CASE + - 67 WHEN - CASE WHEN NOT NULL = + COUNT ( * ) AND - CASE + COUNT ( * ) WHEN ( + 57 ) THEN NULL WHEN - 22 THEN 53 / + 63 ELSE NULL END * + CAST ( NULL AS INTEGER ) = - COALESCE ( 47, + 34 * - 40 ) THEN + 47 END THEN - ( - 83 ) ELSE - 88 + + 92 END
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT 1 DIV + 28 + COUNT( * ) + + + ( 21 ) DIV - - 85 - 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5489
SELECT 1 / + 28 + COUNT ( * ) + + + ( 21 ) / - - 85 - 77 AS col1
----
-76

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

query I rowsort
SELECT + 77 + 14 AS col2
----
91

query I rowsort
SELECT 92 * 24 + + 40
----
2248

query I rowsort
SELECT ALL 20 * ( + 4 ) + 12
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-5494
SELECT DISTINCT + 51, - 15 - + 31 + - 58 + - - 40 DIV 46 * 12 col1
----
51
-104

skipif mysql # not compatible
query II rowsort label-5494
SELECT DISTINCT + 51, - 15 - + 31 + - 58 + - - 40 / 46 * 12 col1
----
51
-104

query II rowsort
SELECT DISTINCT + 60 col0, ( + - 42 ) * - + 52 AS col0
----
60
2184

query I rowsort
SELECT - + 88 * - + 91 AS col2
----
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5497
SELECT ( ( + CASE - 35 WHEN + - CAST( + + ( 89 ) AS SIGNED ) THEN - + 31 + COUNT( 4 ) ELSE NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT ( ( + CASE - 35 WHEN + - CAST ( + + ( 89 ) AS INTEGER ) THEN - + 31 + COUNT ( 4 ) ELSE NULL END ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5498
SELECT ( - 53 ) * + 56 + - 90 AS col2, + 83 DIV + + 88 AS col1
----
-3058
0

skipif mysql # not compatible
query II rowsort label-5498
SELECT ( - 53 ) * + 56 + - 90 AS col2, + 83 / + + 88 AS col1
----
-3058
0

query I rowsort
SELECT + + 27 * + - 26
----
-702

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT ALL 60, NULLIF ( + - COUNT( * ), 17 ) AS col1
----
60
-1

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL 60, NULLIF ( + - COUNT ( * ), 17 ) AS col1
----
60
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - + SUM( ALL + ( - 39 ) ) * - 66 col2
----
-2574

skipif mysql # not compatible
query I rowsort label-5501
SELECT - + SUM ( ALL + ( - 39 ) ) * - 66 col2
----
-2574

query I rowsort
SELECT ALL + - 63 * 66 + 11 * + 5 * + 46 * + 95
----
236192

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT - - 12 DIV + - 11
----
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - 12 / + - 11
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5504
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + 27 ) AS col1, 94 AS col2
----
-27
94

skipif mysql # not compatible
query II rowsort label-5504
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + 27 ) AS col1, 94 AS col2
----
-27
94

query II rowsort
SELECT ALL 67 AS col1, 90
----
67
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - + 26 * + CASE + 49 WHEN 46 / 2 + + CAST( NULL AS SIGNED ) + 8 THEN NULL WHEN 16 * 0 + - 22 THEN NULL ELSE CAST( 24 AS SIGNED ) END
----
-624

skipif mysql # not compatible
query I rowsort label-5506
SELECT - + 26 * + CASE + 49 WHEN 46 / 2 + + CAST ( NULL AS INTEGER ) + 8 THEN NULL WHEN 16 * 0 + - 22 THEN NULL ELSE CAST ( 24 AS INTEGER ) END
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT - - CAST( NULL AS SIGNED ) * - CASE WHEN NOT NULL IN ( + 99 ) THEN COALESCE ( - + MIN( + - 14 ), - 71, - COUNT( DISTINCT 9 ) ) + CASE COUNT( * ) WHEN 56 THEN - 86 * - 2 + - 60 END WHEN - 36 * + 95 NOT BETWEEN + 60 * 85 AND NULL THEN 54 * 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT - - CAST ( NULL AS INTEGER ) * - CASE WHEN NOT NULL IN ( + 99 ) THEN COALESCE ( - + MIN ( + - 14 ), - 71, - COUNT ( DISTINCT 9 ) ) + CASE COUNT ( * ) WHEN 56 THEN - 86 * - 2 + - 60 END WHEN - 36 * + 95 NOT BETWEEN + 60 * 85 AND NULL THEN 54 * 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - 38 - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5508
SELECT - 38 - + COUNT ( * )
----
-39

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

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

query I rowsort
SELECT DISTINCT + 87 + 59
----
146

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT ALL + 5 + 22 + - + 7 DIV + + 76
----
27

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + 5 + 22 + - + 7 / + + 76
----
27

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

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

query I rowsort
SELECT ALL + 32 + 65
----
97

query I rowsort
SELECT DISTINCT NULLIF ( 32, + 86 )
----
32

query I rowsort
SELECT ALL 43 + - 18 AS col1
----
25

query I rowsort
SELECT ALL + 5 + 70 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - ( - COUNT( * ) ) + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5518
SELECT - ( - COUNT ( * ) ) + 37 AS col2
----
38

query I rowsort
SELECT - 25 - + 71
----
-96

query I rowsort
SELECT ALL + 33 + + 46
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-5521
SELECT + 78 DIV 25 AS col1, 86
----
3
86

skipif mysql # not compatible
query II rowsort label-5521
SELECT + 78 / 25 AS col1, 86
----
3
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT CAST( - ( - 96 ) AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5523
SELECT CAST ( - ( - 96 ) AS INTEGER ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT 73 DIV SUM( + + 28 ) + + + MIN( - 21 ) * + - 56 * + COUNT( * ) - - 96 * + 43
----
5306

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT 73 / SUM ( + + 28 ) + + + MIN ( - 21 ) * + - 56 * + COUNT ( * ) - - 96 * + 43
----
5306

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT 6 * 82 DIV 26 + - + 70
----
-52

skipif mysql # not compatible
query I rowsort label-5526
SELECT 6 * 82 / 26 + - + 70
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT - 41 DIV 20 + + 54
----
52

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 41 / 20 + + 54
----
52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT ALL 0 DIV + 87 DIV 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL 0 / + 87 / 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT + 12 - CAST( 58 AS SIGNED ) * NULLIF ( 47, + 84 * COUNT( 72 ) )
----
-2714

skipif mysql # not compatible
query I rowsort label-5530
SELECT + 12 - CAST ( 58 AS INTEGER ) * NULLIF ( 47, + 84 * COUNT ( 72 ) )
----
-2714

query II rowsort
SELECT - 23 * - - 55 col1, 95 AS col0
----
-1265
95

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

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

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

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

query I rowsort
SELECT - 83 * 30
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT CASE + 15 WHEN - + COALESCE ( - MAX( ALL + 57 ), + NULLIF ( - + 67, - 65 ) ) THEN + 23 + + ( 80 ) END * 8 + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT CASE + 15 WHEN - + COALESCE ( - MAX ( ALL + 57 ), + NULLIF ( - + 67, - 65 ) ) THEN + 23 + + ( 80 ) END * 8 + 4 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + 32 * + - 96 * + + 74 * + 5 AS col2
----
4546560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL 80 * - NULLIF ( + CAST( 52 AS SIGNED ), + 51 )
----
-4160

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL 80 * - NULLIF ( + CAST ( 52 AS INTEGER ), + 51 )
----
-4160

query I rowsort
SELECT 7 * ( CASE + 73 WHEN + - 47 THEN 16 ELSE NULL END ) * + AVG ( - 85 ) / - 33 + + 38 AS col0
----
NULL

query I rowsort
SELECT + 46 * + 24
----
1104

query I rowsort
SELECT - 86 + + 34 AS col1
----
-52

query I rowsort
SELECT + COALESCE ( 5, + + 30 * CASE + 14 WHEN + + 94 THEN + 6 + + 45 END ) * - 1 - 48 AS col2
----
-53

query I rowsort
SELECT 64 + 43 AS col0
----
107

query I rowsort
SELECT 23 + + 56 * + 55 * + 77
----
237183

onlyif mysql # DIV for integer division: 
query II rowsort label-5544
SELECT - 13 DIV - - 61 col1, - 49 + 43 - 73 + + - 3
----
0
-82

skipif mysql # not compatible
query II rowsort label-5544
SELECT - 13 / - - 61 col1, - 49 + 43 - 73 + + - 3
----
0
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + COUNT( * ) + + MIN( + 40 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5545
SELECT + COUNT ( * ) + + MIN ( + 40 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + MAX( DISTINCT - 16 ) + ( + + 42 ) + + + 98
----
124

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + MAX ( DISTINCT - 16 ) + ( + + 42 ) + + + 98
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT 87 + MAX( 13 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5547
SELECT 87 + MAX ( 13 ) AS col2
----
100

query I rowsort
SELECT ALL - 58 + + + 7 col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5549
SELECT ALL COUNT( * ) DIV 51 DIV - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL COUNT ( * ) / 51 / - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT NULLIF ( + NULLIF ( ( - + NULLIF ( - COUNT( * ), - + 65 ) ), 57 ), - + 51 * + 96 ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-5550
SELECT NULLIF ( + NULLIF ( ( - + NULLIF ( - COUNT ( * ), - + 65 ) ), 57 ), - + 51 * + 96 ) + 41
----
42

query I rowsort
SELECT ALL - 78 + + + ( 33 )
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT DISTINCT 34 AS col1, 41 + + + NULLIF ( - + COUNT( * ), + + 32 * 40 ) AS col1
----
34
40

skipif mysql # not compatible
query II rowsort label-5553
SELECT DISTINCT 34 AS col1, 41 + + + NULLIF ( - + COUNT ( * ), + + 32 * 40 ) AS col1
----
34
40

query II rowsort
SELECT DISTINCT 86 col0, - 19
----
86
-19

query I rowsort
SELECT 13 + - 9
----
4

query I rowsort
SELECT ALL + 1 + 27
----
28

query II rowsort
SELECT DISTINCT 45 AS col0, 69 AS col1
----
45
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 22 + MAX( + - 54 ) * - - 47 AS col1
----
-2516

skipif mysql # not compatible
query I rowsort label-5558
SELECT 22 + MAX ( + - 54 ) * - - 47 AS col1
----
-2516

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT DISTINCT 13 - - - ( - 24 ), 66 - CAST( NULL AS SIGNED ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5559
SELECT DISTINCT 13 - - - ( - 24 ), 66 - CAST ( NULL AS INTEGER ) AS col2
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5560
SELECT DISTINCT - CAST( 41 AS SIGNED ) - - 75 - + - 49 DIV - - 79 * - + 18 * - 77
----
34

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT - CAST ( 41 AS INTEGER ) - - 75 - + - 49 / - - 79 * - + 18 * - 77
----
34

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

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

query I rowsort
SELECT 28 * 14 AS col1
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL - CASE - 27 WHEN - ( + ( + 62 ) ) * + 28 + 91 + 20 THEN - COUNT( * ) * + COUNT( * ) WHEN NULLIF ( - 36, - 97 ) + - 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - CASE - 27 WHEN - ( + ( + 62 ) ) * + 28 + 91 + 20 THEN - COUNT ( * ) * + COUNT ( * ) WHEN NULLIF ( - 36, - 97 ) + - 96 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT - MIN( DISTINCT - 93 ) * + SUM( ALL - - 93 ) AS col2
----
8649

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - MIN ( DISTINCT - 93 ) * + SUM ( ALL - - 93 ) AS col2
----
8649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5565
SELECT ALL - CAST( NULL AS SIGNED ) - + 42 + - CAST( + CASE + SUM( ALL - - 60 ) WHEN 71 * + - 81 * + + 12 - MAX( + CAST( + 13 AS SIGNED ) ) + 76 * - 68 / - COALESCE ( + 86, 78, 19 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN 2 THEN + 35 * 91 + - 9 ELSE NULL END AS SIGNED ) * + NULLIF ( - 61, 97 + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - CAST ( NULL AS INTEGER ) - + 42 + - CAST ( + CASE + SUM ( ALL - - 60 ) WHEN 71 * + - 81 * + + 12 - MAX ( + CAST ( + 13 AS INTEGER ) ) + 76 * - 68 / - COALESCE ( + 86, 78, 19 ) THEN NULL WHEN CAST ( NULL AS REAL ) THEN NULL WHEN 2 THEN + 35 * 91 + - 9 ELSE NULL END AS INTEGER ) * + NULLIF ( - 61, 97 + 82 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT 18 * + 31 * COUNT( * ), + 36 AS col2
----
558
36

skipif mysql # not compatible
query II rowsort label-5566
SELECT 18 * + 31 * COUNT ( * ), + 36 AS col2
----
558
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT 53 * COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-5567
SELECT 53 * COUNT ( * ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT + - COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5568
SELECT + - COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
-1

query II rowsort
SELECT ALL - + 20 AS col1, - 60 - - - 28
----
-20
-88

query I rowsort
SELECT ALL - - 84 * 14 AS col1
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL - COALESCE ( - 80, + + CAST( NULL AS SIGNED ), 73 * COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - COALESCE ( - 80, + + CAST ( NULL AS INTEGER ), 73 * COUNT ( * ) ) AS col1
----
80

query I rowsort
SELECT 30 + - + 54
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT DISTINCT - 31 + - + CASE 63 WHEN + - 76 + CAST( NULL AS SIGNED ) * 54 THEN NULL ELSE - 25 END * + + 50
----
1219

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT - 31 + - + CASE 63 WHEN + - 76 + CAST ( NULL AS INTEGER ) * 54 THEN NULL ELSE - 25 END * + + 50
----
1219

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + COALESCE ( + 39, - 20, - + 56 * MIN( ALL - - 80 ) + + CASE - 63 WHEN + 46 + + 32 THEN NULL WHEN 50 + 31 * COUNT( * ) THEN + 71 END + + 41 ) * + 19
----
741

skipif mysql # not compatible
query I rowsort label-5575
SELECT + COALESCE ( + 39, - 20, - + 56 * MIN ( ALL - - 80 ) + + CASE - 63 WHEN + 46 + + 32 THEN NULL WHEN 50 + 31 * COUNT ( * ) THEN + 71 END + + 41 ) * + 19
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT - MIN( + 2 ) + 26 * + ( + 61 ) + + 37 AS col0
----
1621

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - MIN ( + 2 ) + 26 * + ( + 61 ) + + 37 AS col0
----
1621

onlyif mysql # aggregate syntax: 
query II rowsort label-5577
SELECT ALL ( MIN( + 54 ) ) col0, 53 - 52
----
54
1

skipif mysql # not compatible
query II rowsort label-5577
SELECT ALL ( MIN ( + 54 ) ) col0, 53 - 52
----
54
1

query I rowsort
SELECT ALL 16 + - 7 + ( + 90 )
----
99

query II rowsort
SELECT DISTINCT 29 AS col1, - 63 + + ( 72 )
----
29
9

query II rowsort
SELECT - 81 AS col0, - 90 * 30
----
-81
-2700

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT 85 AS col2, - COALESCE ( + NULLIF ( - 78, + 99 ), + COUNT( * ) - - 37 ) + 89 AS col2
----
85
167

skipif mysql # not compatible
query II rowsort label-5581
SELECT 85 AS col2, - COALESCE ( + NULLIF ( - 78, + 99 ), + COUNT ( * ) - - 37 ) + 89 AS col2
----
85
167

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

skipif mysql # not compatible
query I rowsort label-5582
SELECT COUNT ( * ) * - - 12
----
12

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

skipif mysql # not compatible
query I rowsort label-5583
SELECT COUNT ( * ) / + 70
----
0

query I rowsort
SELECT 84 * ( - 11 )
----
-924

query II rowsort
SELECT 66 col2, + 51
----
66
51

query II rowsort
SELECT - 91, + 81 AS col0
----
-91
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ( 83 ) - + + COALESCE ( + 24, + COUNT( ALL - + 16 ) * + + 73 - 26 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5587
SELECT ( 83 ) - + + COALESCE ( + 24, + COUNT ( ALL - + 16 ) * + + 73 - 26 ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5588
SELECT ALL MIN( ALL + - 80 ) * - - 37 + - 52 + + 44 * + 72 * + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) / + - 81 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL MIN ( ALL + - 80 ) * - - 37 + - 52 + + 44 * + 72 * + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) / + - 81 + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5589
SELECT COUNT( * ) DIV - 50 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5589
SELECT COUNT ( * ) / - 50 AS col2, + COUNT ( * )
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT DISTINCT 90 DIV - - 50
----
1

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT 90 / - - 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5591
SELECT ALL - CASE + COUNT( * ) WHEN 56 * + 44 THEN - 46 END * - + 70 AS col2, CAST( - ( - + NULLIF ( + 4, CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) * - COUNT( * ) AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-5591
SELECT ALL - CASE + COUNT ( * ) WHEN 56 * + 44 THEN - 46 END * - + 70 AS col2, CAST ( - ( - + NULLIF ( + 4, CAST ( NULL AS REAL ) ) ) AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL + 15 * - + MAX( DISTINCT - 52 ) * + 79
----
61620

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + 15 * - + MAX ( DISTINCT - 52 ) * + 79
----
61620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT NULLIF ( - 45, COUNT( * ) * COUNT( * ) ) * + ( - NULLIF ( - CAST( + + COUNT( * ) AS SIGNED ), - - COUNT( * ) ) ) + + + MAX( DISTINCT - - 55 ) * 25 AS col0
----
1330

skipif mysql # not compatible
query I rowsort label-5593
SELECT NULLIF ( - 45, COUNT ( * ) * COUNT ( * ) ) * + ( - NULLIF ( - CAST ( + + COUNT ( * ) AS INTEGER ), - - COUNT ( * ) ) ) + + + MAX ( DISTINCT - - 55 ) * 25 AS col0
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COUNT( * ) * - 41 * - + ( ( ( + 2 ) ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL COUNT ( * ) * - 41 * - + ( ( ( + 2 ) ) ) col0
----
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5596
SELECT 3, + CAST( NULL AS SIGNED ) - 69 * - + COALESCE ( - 67, + 82, + 40 * + COUNT( * ) * + - 78 + ( + 95 ) ) * + 75 AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5596
SELECT 3, + CAST ( NULL AS INTEGER ) - 69 * - + COALESCE ( - 67, + 82, + 40 * + COUNT ( * ) * + - 78 + ( + 95 ) ) * + 75 AS col2
----
3
NULL

query I rowsort
SELECT 2 + 3
----
5

query II rowsort
SELECT 38 - 71 col1, 41
----
-33
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5599
SELECT ALL 66 AS col0, 99 + - CAST( 52 AS SIGNED ) AS col1
----
66
47

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL 66 AS col0, 99 + - CAST ( 52 AS INTEGER ) AS col1
----
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT COALESCE ( - + 70, 92 * + 0 + + 54 + - 50 + 26 * - - 9 + - 66 * + CASE + + 77 WHEN + 23 THEN SUM( + 0 ) * - COUNT( * ) - 37 END * MAX( + 4 ) * + 10 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5600
SELECT COALESCE ( - + 70, 92 * + 0 + + 54 + - 50 + 26 * - - 9 + - 66 * + CASE + + 77 WHEN + 23 THEN SUM ( + 0 ) * - COUNT ( * ) - 37 END * MAX ( + 4 ) * + 10 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT 28 + + 61 + - + MIN( - - 5 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5601
SELECT 28 + + 61 + - + MIN ( - - 5 ) AS col2
----
84

query I rowsort
SELECT 63 * + 90 AS col0
----
5670

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

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

query III rowsort
SELECT 20, - 63 col2, 69 AS col1
----
20
-63
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT + - 59 * - + ( - COUNT( * ) ) * - - 53 + - + 17 + + ( COUNT( * ) ) DIV - 75
----
-3144

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + - 59 * - + ( - COUNT ( * ) ) * - - 53 + - + 17 + + ( COUNT ( * ) ) / - 75
----
-3144

query I rowsort
SELECT ALL - + 48 * + + 49 AS col2
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL - + COUNT( DISTINCT - + 34 ) * + 92 * 71 + - - 67 * - - 55 AS col0
----
-2847

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - + COUNT ( DISTINCT - + 34 ) * + 92 * 71 + - - 67 * - - 55 AS col0
----
-2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5608
SELECT DISTINCT + 96 AS col0, - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-5608
SELECT DISTINCT + 96 AS col0, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT + CASE + 29 WHEN COUNT( * ) * + - 48 * + 12 / 15 * + MIN( 1 ) + + 85 / + - 11 * + + 89 THEN 56 * - 10 END * + NULLIF ( 2 - - 6, - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT + CASE + 29 WHEN COUNT ( * ) * + - 48 * + 12 / 15 * + MIN ( 1 ) + + 85 / + - 11 * + + 89 THEN 56 * - 10 END * + NULLIF ( 2 - - 6, - 84 )
----
NULL

query I rowsort
SELECT - 28 + - 36 * - 2
----
44

query I rowsort
SELECT - - 83 * 23 col1
----
1909

query I rowsort
SELECT + - COALESCE ( + - 31, - 43, + - 90 )
----
31

query I rowsort
SELECT ALL 44 * - 56 * + 80 + + - 47 AS col0
----
-197167

query I rowsort
SELECT ALL + 33 * - - NULLIF ( + + 20, 21 ) AS col1
----
660

query I rowsort
SELECT + 48 * + 7 + - - 67 AS col2
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT + + 14 * + 75 * + ( + 45 ) + + MAX( ALL + 18 )
----
47268

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + + 14 * + 75 * + ( + 45 ) + + MAX ( ALL + 18 )
----
47268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT DISTINCT - + 2 + + CASE + 76 WHEN + - 72 * + CAST( NULL AS SIGNED ) THEN - CAST( 74 AS SIGNED ) + - 18 WHEN + + 11 / + 78 * - 48 - + 49 - 48 THEN - COUNT( * ) * - 57 ELSE NULL END - + 20 / - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - + 2 + + CASE + 76 WHEN + - 72 * + CAST ( NULL AS INTEGER ) THEN - CAST ( 74 AS INTEGER ) + - 18 WHEN + + 11 / + 78 * - 48 - + 49 - 48 THEN - COUNT ( * ) * - 57 ELSE NULL END - + 20 / - 57 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - - SUM( ALL 65 ) + + COUNT( * ) + - 29 + + 44 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5619
SELECT - - SUM ( ALL 65 ) + + COUNT ( * ) + - 29 + + 44 AS col2
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5620
SELECT ALL + + 89 DIV - COALESCE ( - 67, 3 * 46, + 0 + + 89 ), 9 * + 92 AS col0
----
1
828

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + + 89 / - COALESCE ( - 67, 3 * 46, + 0 + + 89 ), 9 * + 92 AS col0
----
1
828

query I rowsort
SELECT - ( - - 91 ) + - + 24 - + 46 AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT COUNT( - - NULLIF ( 27, + 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5622
SELECT COUNT ( - - NULLIF ( 27, + 28 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT - MAX( + 46 ) + ( COUNT( * ) ) + + 11 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5623
SELECT - MAX ( + 46 ) + ( COUNT ( * ) ) + + 11 AS col1
----
-34

query I rowsort
SELECT - 67 + + 38
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT DISTINCT ( - 40 ) AS col1, - COUNT( * ) - + - COUNT( * ) + 81 AS col2
----
-40
81

skipif mysql # not compatible
query II rowsort label-5625
SELECT DISTINCT ( - 40 ) AS col1, - COUNT ( * ) - + - COUNT ( * ) + 81 AS col2
----
-40
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT ALL - 74 * - 36 AS col0, 63 * - 24 + SUM( + - ( + - 71 ) ) AS col0
----
2664
-1441

skipif mysql # not compatible
query II rowsort label-5626
SELECT ALL - 74 * - 36 AS col0, 63 * - 24 + SUM ( + - ( + - 71 ) ) AS col0
----
2664
-1441

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT + 19 + + COUNT( * ) AS col0, - 26 * - COUNT( * ) AS col0
----
20
26

skipif mysql # not compatible
query II rowsort label-5627
SELECT + 19 + + COUNT ( * ) AS col0, - 26 * - COUNT ( * ) AS col0
----
20
26

query I rowsort
SELECT + 13 + - + 31 - - 90 * + 82 + + - 19 + 39 * 18
----
8045

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT - 24 * + 84, ( COUNT( * ) ) AS col0
----
-2016
1

skipif mysql # not compatible
query II rowsort label-5629
SELECT - 24 * + 84, ( COUNT ( * ) ) AS col0
----
-2016
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT + 89 + + 55 + - 18 * + COUNT( * ) * + ( - 82 ) AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-5630
SELECT + 89 + + 55 + - 18 * + COUNT ( * ) * + ( - 82 ) AS col1
----
1620

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + MIN( DISTINCT 97 ) + - COALESCE ( - 45, - 27, + 96 )
----
142

skipif mysql # not compatible
query I rowsort label-5632
SELECT + MIN ( DISTINCT 97 ) + - COALESCE ( - 45, - 27, + 96 )
----
142

query I rowsort
SELECT - NULLIF ( + + 97, 73 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT ALL 46 + - - 88 + 39 DIV - - 14
----
136

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL 46 + - - 88 + 39 / - - 14
----
136

query II rowsort
SELECT DISTINCT - + 46 * - 29, + ( - + 71 ) AS col0
----
1334
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - - 28 * + CASE 85 WHEN + - 15 THEN + COUNT( * ) END + NULLIF ( - 11, 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT - - 28 * + CASE 85 WHEN + - 15 THEN + COUNT ( * ) END + NULLIF ( - 11, 55 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL + 23 * 37 * - MIN( ALL 28 ) * + COUNT( * ) + + 71
----
-23757

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + 23 * 37 * - MIN ( ALL 28 ) * + COUNT ( * ) + + 71
----
-23757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT ALL 4 DIV + ( - COALESCE ( - 93, + CASE - 93 WHEN COUNT( * ) + + + 23 + + 83 DIV - - 97 THEN ( + + 7 ) ELSE NULL END + + COUNT( * ), 58 + COUNT( * ) ) ) + - 49 + + 32
----
-17

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL 4 / + ( - COALESCE ( - 93, + CASE - 93 WHEN COUNT ( * ) + + + 23 + + 83 / - - 97 THEN ( + + 7 ) ELSE NULL END + + COUNT ( * ), 58 + COUNT ( * ) ) ) + - 49 + + 32
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5640
SELECT ALL 41 / + CAST( NULL AS SIGNED ) + 42 + + COUNT( * ) * 64 * - CAST( NULL AS SIGNED ) * - 16 * + 16 + + 22 * - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL 41 / + CAST ( NULL AS INTEGER ) + 42 + + COUNT ( * ) * 64 * - CAST ( NULL AS INTEGER ) * - 16 * + 16 + + 22 * - 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 4 * - 72 * - 33
----
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT ALL + 4 * 73 / - CAST( NULL AS SIGNED ) + - + 74 / + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + 4 * 73 / - CAST ( NULL AS INTEGER ) + - + 74 / + - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + COUNT( * ) * + 42 - ( 61 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + COUNT ( * ) * + 42 - ( 61 ) AS col0
----
-19

query I rowsort
SELECT - + 27 * + 44 AS col2
----
-1188

query I rowsort
SELECT - + 10 + 63 + - ( - + 29 )
----
82

onlyif mysql # aggregate syntax: 
query III rowsort label-5646
SELECT DISTINCT + 88 * - 47 col0, - 98 * + 29 - 71, + + ( + COUNT( * ) ) AS col1
----
-4136
-2913
1

skipif mysql # not compatible
query III rowsort label-5646
SELECT DISTINCT + 88 * - 47 col0, - 98 * + 29 - 71, + + ( + COUNT ( * ) ) AS col1
----
-4136
-2913
1

query I rowsort
SELECT - + 66 * - + 26 AS col0
----
1716

query I rowsort
SELECT ALL + NULLIF ( - 96, - + 72 + 51 ) * + 97 AS col2
----
-9312

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

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + 60 * + COUNT ( * ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL CAST( + + 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL CAST ( + + 35 AS INTEGER ) AS col2
----
35

query I rowsort
SELECT - 43 * - - 96 col0
----
-4128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT CAST( - + 56 AS SIGNED ) DIV + + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT CAST ( - + 56 AS INTEGER ) / + + 54 AS col0
----
-1

query II rowsort
SELECT ALL 45 AS col2, + 99 * + 5
----
45
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5654
SELECT - MIN( ALL - + 1 ) DIV ( 11 ) * - 77 + 3, + 34 AS col2
----
3
34

skipif mysql # not compatible
query II rowsort label-5654
SELECT - MIN ( ALL - + 1 ) / ( 11 ) * - 77 + 3, + 34 AS col2
----
3
34

query I rowsort
SELECT - 7 * + + 57 * 39
----
-15561

query II rowsort
SELECT + 65 * 27 * 22, + 22 * 94 AS col2
----
38610
2068

query I rowsort
SELECT ALL - ( + 27 ) + 7 AS col0
----
-20

query I rowsort
SELECT - 77 - - ( 1 )
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL CAST( - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL CAST ( - 41 AS INTEGER )
----
-41

query I rowsort
SELECT DISTINCT - 98 + 8
----
-90

query I rowsort
SELECT ALL 65 * - 60 * - 84
----
327600

query I rowsort
SELECT ALL 24 + + - 77
----
-53

query I rowsort
SELECT ALL 17 + 34 * - + 23
----
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT ALL + - 64 * - COUNT( * ) * + 38, 18 AS col0
----
2432
18

skipif mysql # not compatible
query II rowsort label-5665
SELECT ALL + - 64 * - COUNT ( * ) * + 38, 18 AS col0
----
2432
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT CAST( NULL AS SIGNED ) + - 44 / 4 / 58 * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT CAST ( NULL AS INTEGER ) + - 44 / 4 / 58 * - 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5667
SELECT + 97 - - + CAST( NULL AS SIGNED ) * - 74 AS col2, - NULLIF ( - 35, - 68 * - AVG ( ALL - 41 ) * + ( + 34 ) ) - + 31 * - + 4
----
NULL
159

skipif mysql # not compatible
query II rowsort label-5667
SELECT + 97 - - + CAST ( NULL AS INTEGER ) * - 74 AS col2, - NULLIF ( - 35, - 68 * - AVG ( ALL - 41 ) * + ( + 34 ) ) - + 31 * - + 4
----
NULL
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + 41 + - + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5668
SELECT + 41 + - + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ALL 94 + + 38 AS col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT - 63 + 14 DIV - 22
----
-63

skipif mysql # not compatible
query I rowsort label-5670
SELECT - 63 + 14 / - 22
----
-63

query II rowsort
SELECT ALL - 18, + ( - 17 ) col1
----
-18
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT - - MIN( ALL 53 ) + - 13
----
40

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT - - MIN ( ALL 53 ) + - 13
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT DISTINCT - - COUNT( * ), 34 * + 34 AS col1
----
1
1156

skipif mysql # not compatible
query II rowsort label-5674
SELECT DISTINCT - - COUNT ( * ), 34 * + 34 AS col1
----
1
1156

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT - 31 AS col2, + 52 / - CASE 62 WHEN - 44 THEN - COUNT( * ) WHEN - COUNT( * ) THEN 31 * + + 8 ELSE NULL END + + 92 / COUNT( * ) + + 1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-5675
SELECT - 31 AS col2, + 52 / - CASE 62 WHEN - 44 THEN - COUNT ( * ) WHEN - COUNT ( * ) THEN 31 * + + 8 ELSE NULL END + + 92 / COUNT ( * ) + + 1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT + + COUNT( * ) AS col1, 83 + + SUM( + - 28 )
----
1
55

skipif mysql # not compatible
query II rowsort label-5676
SELECT + + COUNT ( * ) AS col1, 83 + + SUM ( + - 28 )
----
1
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT + - 33 AS col2, + 73 * 87 * - - COUNT( + + 55 )
----
-33
6351

skipif mysql # not compatible
query II rowsort label-5677
SELECT + - 33 AS col2, + 73 * 87 * - - COUNT ( + + 55 )
----
-33
6351

query I rowsort
SELECT ALL 5 * + 89
----
445

query I rowsort
SELECT - 79 * - - 54 AS col0
----
-4266

query I rowsort
SELECT - ( - 41 ) * + 64 - - 36 * + 10 AS col2
----
2984

query I rowsort
SELECT 25 * - + 44 * - 86 * + 77 AS col0
----
7284200

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL - SUM( 54 ) AS col1, 26
----
-54
26

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL - SUM ( 54 ) AS col1, 26
----
-54
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL SUM( ALL + CASE + ( + 50 ) WHEN - 43 THEN - - 9 WHEN 60 * - + 53 THEN NULL WHEN - 62 * + 88 + + - 10 THEN + + 96 END ) * COUNT( * ) * + 4 * + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL SUM ( ALL + CASE + ( + 50 ) WHEN - 43 THEN - - 9 WHEN 60 * - + 53 THEN NULL WHEN - 62 * + 88 + + - 10 THEN + + 96 END ) * COUNT ( * ) * + 4 * + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + COUNT( * ) * NULLIF ( - 72, + 44 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + COUNT ( * ) * NULLIF ( - 72, + 44 ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT 28 - - COUNT( * ) + + 12 * - + 64 * - 37
----
28445

skipif mysql # not compatible
query I rowsort label-5685
SELECT 28 - - COUNT ( * ) + + 12 * - + 64 * - 37
----
28445

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT COUNT( * ) + 2 - - - 83
----
-80

skipif mysql # not compatible
query I rowsort label-5686
SELECT COUNT ( * ) + 2 - - - 83
----
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT 18 + + + SUM( + 76 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5688
SELECT 18 + + + SUM ( + 76 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 28 + - + COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-5689
SELECT 28 + - + COUNT ( * ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL 42 * + 61 * COUNT( * ) * + 42 col0
----
107604

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL 42 * + 61 * COUNT ( * ) * + 42 col0
----
107604

query I rowsort
SELECT ALL - 84 + + 66
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT 37 + + + MAX( - 11 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5692
SELECT 37 + + + MAX ( - 11 ) AS col2
----
26

query I rowsort
SELECT ALL 59 + + - ( - + 88 )
----
147

query I rowsort
SELECT ALL + 21 + + - 74
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT 63 + 62, COUNT( * ) + 8 AS col0
----
125
9

skipif mysql # not compatible
query II rowsort label-5695
SELECT 63 + 62, COUNT ( * ) + 8 AS col0
----
125
9

query I rowsort
SELECT 37 * + + 99 AS col2
----
3663

query I rowsort
SELECT ALL - 6 + - 45 + - ( + 72 ) * - 21 * + 11 AS col2
----
16581

query II rowsort
SELECT 12 + - - 88, 92 * 21 AS col0
----
100
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( 20, - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( 20, - 61 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 45 - + 38 * - 77
----
2881

query I rowsort
SELECT DISTINCT + 82 * + + 38
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL + - SUM( 51 ) - + 9
----
-60

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + - SUM ( 51 ) - + 9
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5703
SELECT + MIN( - 33 ) AS col1, + 89 AS col2
----
-33
89

skipif mysql # not compatible
query II rowsort label-5703
SELECT + MIN ( - 33 ) AS col1, + 89 AS col2
----
-33
89

query I rowsort
SELECT - 11 * - ( + 90 ) AS col0
----
990

query I rowsort
SELECT 1 * + 65 * 44 AS col0
----
2860

query I rowsort
SELECT 94 * + - 99 + - + 80
----
-9386

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT - MAX( 49 ) * + 81 + - - 54 - - + 18 + - 90 * - 33 * + 15 AS col2
----
40653

skipif mysql # not compatible
query I rowsort label-5709
SELECT - MAX ( 49 ) * + 81 + - - 54 - - + 18 + - 90 * - 33 * + 15 AS col2
----
40653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL - + CAST( 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - + CAST ( 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT 97 * + COUNT ( * )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL 8 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL 8 / - 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT 22 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT 22 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT COUNT( - 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5714
SELECT COUNT ( - 95 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-5715
SELECT 12 / + - 58 / - - COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5716
SELECT COALESCE ( 23, 8 ) * 49 + COUNT( * ) * - CAST( - 87 AS SIGNED ) * - - 49 + - - COALESCE ( + 8, + + 94 ) AS col0
----
5398

skipif mysql # not compatible
query I rowsort label-5716
SELECT COALESCE ( 23, 8 ) * 49 + COUNT ( * ) * - CAST ( - 87 AS INTEGER ) * - - 49 + - - COALESCE ( + 8, + + 94 ) AS col0
----
5398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL SUM( ALL - 96 ) + + 65 + + CAST( 95 AS SIGNED ) * - COUNT( * ) AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL SUM ( ALL - 96 ) + + 65 + + CAST ( 95 AS INTEGER ) * - COUNT ( * ) AS col0
----
-126

query II rowsort
SELECT 72 AS col2, 16
----
72
16

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

skipif mysql # not compatible
query I rowsort label-5719
SELECT + MAX ( - - 55 )
----
55

query I rowsort
SELECT ALL 48 + - 72 * - - 26
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL - 80 + + 9 + + - 70 + + COUNT( * ) + 12 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - 80 + + 9 + + - 70 + + COUNT ( * ) + 12 AS col0
----
-128

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

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL ( COUNT ( * ) ) + 81 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + 18 - + + SUM( DISTINCT 66 ) - + 6
----
-54

skipif mysql # not compatible
query I rowsort label-5723
SELECT + 18 - + + SUM ( DISTINCT 66 ) - + 6
----
-54

query I rowsort
SELECT + 94 + + 25 + + + 72 col2
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL 6 + 58 * - - COUNT( * ) + - - 74
----
138

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL 6 + 58 * - - COUNT ( * ) + - - 74
----
138

query II rowsort
SELECT ALL + 17 - 34 * + - 10 col0, - 65 + + - CASE WHEN ( 77 IS NOT NULL ) THEN - 74 END AS col2
----
357
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL COALESCE ( - 99, + + 62, - + NULLIF ( + 22, COUNT( * ) * - COUNT( * ) * + - 11 - + 56 ), + 68 - + 16 ) - 35
----
-134

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL COALESCE ( - 99, + + 62, - + NULLIF ( + 22, COUNT ( * ) * - COUNT ( * ) * + - 11 - + 56 ), + 68 - + 16 ) - 35
----
-134

query I rowsort
SELECT - ( + 31 ) * 63 - + 93
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + 25 + - MAX( DISTINCT + 38 )
----
-13

skipif mysql # not compatible
query I rowsort label-5730
SELECT + 25 + - MAX ( DISTINCT + 38 )
----
-13

query I rowsort
SELECT - ( + ( + 39 ) ) - 75
----
-114

query I rowsort
SELECT - + 28 * - 93 + 89 AS col2
----
2693

query I rowsort
SELECT - - 23 * 33 AS col0
----
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT - - 64 - + CAST( NULL AS SIGNED ) * + 67 / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT - - 64 - + CAST ( NULL AS INTEGER ) * + 67 / 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT - + CASE - - CAST( + 90 AS SIGNED ) WHEN + AVG ( - 53 ) THEN + 39 WHEN + - 39 * 70 + - + 22 * - 57 + - - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT - + CASE - - CAST ( + 90 AS INTEGER ) WHEN + AVG ( - 53 ) THEN + 39 WHEN + - 39 * 70 + - + 22 * - 57 + - - 57 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 3 AS col1, 59 + - 18 AS col1
----
3
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT - + MIN( + - 9 ) + 50 AS col1, + 31 * - COUNT( * ) * + COUNT( DISTINCT + 88 ) col0
----
59
-31

skipif mysql # not compatible
query II rowsort label-5737
SELECT - + MIN ( + - 9 ) + 50 AS col1, + 31 * - COUNT ( * ) * + COUNT ( DISTINCT + 88 ) col0
----
59
-31

query II rowsort
SELECT ALL + 68 * 84 * - 42 AS col0, 23 + + ( - - 33 ) + 31 AS col2
----
-239904
87

query I rowsort
SELECT DISTINCT - 65 * 90
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - - 55 * 55 + - + COUNT( * ) + + 32 * 97 * + 85 + - 54 + + 31 * - 32
----
265818

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - - 55 * 55 + - + COUNT ( * ) + + 32 * 97 * + 85 + - 54 + + 31 * - 32
----
265818

query I rowsort
SELECT ALL + 56 * - 45 * - - 56 + - 52 AS col1
----
-141172

query I rowsort
SELECT - 8 + - - 18 * - 26 AS col1
----
-476

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5744
SELECT CASE - CASE + CAST( + 47 AS DECIMAL ) WHEN 31 THEN NULL WHEN - + 61 * - 51 * - 34 - + + CASE 26 WHEN - 66 / - NULLIF ( + - ( + 78 ), - - 54 + - 16 ) + COALESCE ( 28 + + 98, - 20 ) THEN NULL WHEN 90 THEN 80 END * + 37 THEN NULL ELSE + 79 + 10 END WHEN - 30 THEN NULL WHEN CAST( NULL AS SIGNED ) + 84 THEN + 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT CASE - CASE + CAST ( + 47 AS REAL ) WHEN 31 THEN NULL WHEN - + 61 * - 51 * - 34 - + + CASE 26 WHEN - 66 / - NULLIF ( + - ( + 78 ), - - 54 + - 16 ) + COALESCE ( 28 + + 98, - 20 ) THEN NULL WHEN 90 THEN 80 END * + 37 THEN NULL ELSE + 79 + 10 END WHEN - 30 THEN NULL WHEN CAST ( NULL AS INTEGER ) + 84 THEN + 46 END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 45, + + 88 + ( + 65 ) + - 94 + - 22 * - - 88 ) col2
----
45

query I rowsort
SELECT ALL + 23 * - 19 + 34 AS col1
----
-403

query I rowsort
SELECT DISTINCT + 46 * + + 19 + 0 * 44
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + COUNT( + 90 ) + + + 40 - + + 73 * ( - 13 ) AS col1
----
990

skipif mysql # not compatible
query I rowsort label-5748
SELECT + COUNT ( + 90 ) + + + 40 - + + 73 * ( - 13 ) AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL + 96 * + 39 * + - ( - 70 ) * - 65 + + 18 + - - MAX( - 97 ) + 25 + 95 + - - 82 + + 37 / CASE 58 WHEN 59 * 1 THEN 21 END * 75 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + 96 * + 39 * + - ( - 70 ) * - 65 + + 18 + - - MAX ( - 97 ) + 25 + 95 + - - 82 + + 37 / CASE 58 WHEN 59 * 1 THEN 21 END * 75 + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT 44 * COUNT( * ) + + - 82 * + ( + 86 )
----
-7008

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT 44 * COUNT ( * ) + + - 82 * + ( + 86 )
----
-7008

query I rowsort
SELECT ALL 50 * - - 51 + - ( - 56 ) AS col2
----
2606

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5752
SELECT 85 * - CASE + - 15 WHEN CASE + - CAST( - COUNT( * ) AS DECIMAL ) WHEN + ( + 56 ) * + ( 31 ) + + 99 + + 69 - + - NULLIF ( + 85, - - COUNT( * ) + + 61 ) * 17 THEN + 46 END / + 84 THEN 19 * + 54 WHEN + 3 THEN + COALESCE ( SUM( 48 ), 9 ) END + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT 85 * - CASE + - 15 WHEN CASE + - CAST ( - COUNT ( * ) AS REAL ) WHEN + ( + 56 ) * + ( 31 ) + + 99 + + 69 - + - NULLIF ( + 85, - - COUNT ( * ) + + 61 ) * 17 THEN + 46 END / + 84 THEN 19 * + 54 WHEN + 3 THEN + COALESCE ( SUM ( 48 ), 9 ) END + - 20
----
NULL

query I rowsort
SELECT + 24 - 86 * + 20 AS col2
----
-1696

query I rowsort
SELECT - 94 + - - 4 + ( - 22 ) col1
----
-112

query I rowsort
SELECT ALL 87 * - 31 * + 84 * - + 57 - 5 AS col1
----
12913231

query I rowsort
SELECT ALL 65 * + + 15 AS col2
----
975

query I rowsort
SELECT - NULLIF ( + ( 45 ), + + 53 + - 45 + + 48 * 69 - - 99 + - 96 / + 7 )
----
-45

query I rowsort
SELECT + 76 + 75 AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 88 + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 88 + COUNT ( * ) AS col1
----
89

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

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

query I rowsort
SELECT DISTINCT - 4 * + 55 AS col0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL CAST( + 42 AS SIGNED ) * + 28 * - 72
----
-84672

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL CAST ( + 42 AS INTEGER ) * + 28 * - 72
----
-84672

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + COUNT( * ) + 23 + + - 68 col2
----
-44

skipif mysql # not compatible
query I rowsort label-5763
SELECT + COUNT ( * ) + 23 + + - 68 col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT MIN( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT MIN ( - 98 )
----
-98

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

query II rowsort
SELECT - + 75 AS col0, - 85
----
-75
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5767
SELECT - 65 AS col2, 86 * - ( - ( - 66 ) ) - + MIN( ALL + 21 ) AS col0
----
-65
-5697

skipif mysql # not compatible
query II rowsort label-5767
SELECT - 65 AS col2, 86 * - ( - ( - 66 ) ) - + MIN ( ALL + 21 ) AS col0
----
-65
-5697

query I rowsort
SELECT + + 43 + 44 + - 82 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + + 99 * COUNT( * ) + - 30 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + 99 * COUNT ( * ) + - 30 AS col0
----
69

query I rowsort
SELECT - 2 * + + 57 AS col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT ALL ( - CAST( 42 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL ( - CAST ( 42 AS INTEGER ) )
----
-42

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

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

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

query I rowsort
SELECT ALL 29 * - 11
----
-319

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

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

query I rowsort
SELECT DISTINCT - 11 + - + 24 * + 24 - - 82 AS col2
----
-505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5779
SELECT ALL + + 12 DIV - CAST( + + 86 AS SIGNED ) * + - 23 + - CASE + 79 WHEN - 41 * - + 65 - 44 - + COUNT( * ) THEN NULL WHEN COALESCE ( - 26, ( MAX( DISTINCT - 14 ) ) * + AVG ( ALL 70 ), - 54 ) + - 44 THEN + 18 ELSE 27 + 42 END AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + + 12 / - CAST ( + + 86 AS INTEGER ) * + - 23 + - CASE + 79 WHEN - 41 * - + 65 - 44 - + COUNT ( * ) THEN NULL WHEN COALESCE ( - 26, ( MAX ( DISTINCT - 14 ) ) * + AVG ( ALL 70 ), - 54 ) + - 44 THEN + 18 ELSE 27 + 42 END AS col0
----
-69

query II rowsort
SELECT + - 0 AS col0, - 24
----
0
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + ( - 51 ) + - + 71 + - + MIN( 59 ) AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + ( - 51 ) + - + 71 + - + MIN ( 59 ) AS col1
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT 28 + MIN( CAST( - 43 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5782
SELECT 28 + MIN ( CAST ( - 43 AS INTEGER ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT CASE ( + 76 ) WHEN - 41 THEN NULL WHEN 21 / 15 * + + CAST( NULL AS SIGNED ) THEN - + 40 ELSE MIN( 98 ) END + + + COUNT( * ) * MAX( 66 )
----
164

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT CASE ( + 76 ) WHEN - 41 THEN NULL WHEN 21 / 15 * + + CAST ( NULL AS INTEGER ) THEN - + 40 ELSE MIN ( 98 ) END + + + COUNT ( * ) * MAX ( 66 )
----
164

query II rowsort
SELECT ALL 1 * - 28 AS col0, 59 * 7 + + 67 * 1 AS col2
----
-28
480

query I rowsort
SELECT ALL + 89 * + 35 AS col1
----
3115

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT - ( 43 ) - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - ( 43 ) - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT 99 * + 81 * + 1 * 24 + + + 11 * - + COUNT( * ) AS col0
----
192445

skipif mysql # not compatible
query I rowsort label-5787
SELECT 99 * + 81 * + 1 * 24 + + + 11 * - + COUNT ( * ) AS col0
----
192445

query II rowsort
SELECT 72 + 2 AS col1, - 80 * + 80 - + + 24 * + 77
----
74
-8248

query I rowsort
SELECT ALL - 17 - - - 89 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - NULLIF ( COUNT( * ), + 22 - - 3 + ( + - 5 ) * + - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - NULLIF ( COUNT ( * ), + 22 - - 3 + ( + - 5 ) * + - 35 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT ALL 71 * + + CAST( 50 AS SIGNED )
----
3550

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL 71 * + + CAST ( 50 AS INTEGER )
----
3550

query I rowsort
SELECT ALL 20 * - + 30 col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ( + MIN( + + 81 ) ) + + + 52 - + 62 * + + 18 col2
----
-983

skipif mysql # not compatible
query I rowsort label-5793
SELECT ( + MIN ( + + 81 ) ) + + + 52 - + 62 * + + 18 col2
----
-983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT 66 * - - 32 + - COALESCE ( + 28, - CAST( NULL AS SIGNED ), + 1 ) AS col0
----
2084

skipif mysql # not compatible
query I rowsort label-5794
SELECT 66 * - - 32 + - COALESCE ( + 28, - CAST ( NULL AS INTEGER ), + 1 ) AS col0
----
2084

query I rowsort
SELECT DISTINCT + COALESCE ( + ( - 54 ), - 65, - 22 ) AS col0
----
-54

query I rowsort
SELECT - 30 - 0 AS col0
----
-30

query I rowsort
SELECT ALL + 31 * + 29 AS col0
----
899

query I rowsort
SELECT DISTINCT 78 + + 9 col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT + 57 + MAX( ALL + 56 ) DIV - 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 57 + MAX ( ALL + 56 ) / - 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL - 82 + + 85 + - 45 * - + COUNT( * ) * + + 25 + - 38 + + + 95 + + 63 AS col2
----
1248

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 82 + + 85 + - 45 * - + COUNT ( * ) * + + 25 + - 38 + + + 95 + + 63 AS col2
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT - NULLIF ( - 46, + MAX( - - 20 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5801
SELECT - NULLIF ( - 46, + MAX ( - - 20 ) ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL + COUNT( * ) + - 15 * + 75 / - CAST( COUNT( * ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) - + 89 - - CAST( - 13 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL + COUNT ( * ) + - 15 * + 75 / - CAST ( COUNT ( * ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - + 89 - - CAST ( - 13 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 2 ) + - 26 + NULLIF ( + - 36, + 75 )
----
-60

query I rowsort
SELECT + 24 + - + 71 + + 89
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT COUNT( * ) - - 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5805
SELECT COUNT ( * ) - - 9 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5806
SELECT DISTINCT CAST( 53 AS SIGNED ) + - - 84 + + - 98 * + NULLIF ( 13, - + 81 * 76 - 86 * - 19 / - 85 / + 50 ) AS col0, 94 + + - 71 AS col0
----
-1137
23

skipif mysql # not compatible
query II rowsort label-5806
SELECT DISTINCT CAST ( 53 AS INTEGER ) + - - 84 + + - 98 * + NULLIF ( 13, - + 81 * 76 - 86 * - 19 / - 85 / + 50 ) AS col0, 94 + + - 71 AS col0
----
-1137
23

query II rowsort
SELECT - 27, NULLIF ( - 0, - 97 ) AS col0
----
-27
0

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

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

query II rowsort
SELECT 88 AS col0, - ( + 28 ) AS col1
----
88
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT 66 * + 73 * - ( - 80 ) + + COALESCE ( + COUNT( * ), 82 DIV ( COUNT( * ) ), 8 )
----
385441

skipif mysql # not compatible
query I rowsort label-5810
SELECT 66 * + 73 * - ( - 80 ) + + COALESCE ( + COUNT ( * ), 82 / ( COUNT ( * ) ), 8 )
----
385441

query I rowsort
SELECT DISTINCT - ( 76 ) col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5812
SELECT ALL CAST( 41 AS SIGNED ) - + 47 + + 21 * + 19 * - 90 AS col2, + COALESCE ( - 23, + 40 * ( - + CAST( NULL AS SIGNED ) ) * + + MIN( ALL - 71 ) )
----
-35916
-23

skipif mysql # not compatible
query II rowsort label-5812
SELECT ALL CAST ( 41 AS INTEGER ) - + 47 + + 21 * + 19 * - 90 AS col2, + COALESCE ( - 23, + 40 * ( - + CAST ( NULL AS INTEGER ) ) * + + MIN ( ALL - 71 ) )
----
-35916
-23

query I rowsort
SELECT 56 * + 64 col0
----
3584

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

skipif mysql # not compatible
query I rowsort label-5814
SELECT CAST ( NULL AS INTEGER ) + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT COUNT( * ) + - 27 * + 0
----
1

skipif mysql # not compatible
query I rowsort label-5815
SELECT COUNT ( * ) + - 27 * + 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT + 51 AS col0, - MIN( + ( - + 67 ) ) + + - 43 AS col1
----
51
24

skipif mysql # not compatible
query II rowsort label-5816
SELECT + 51 AS col0, - MIN ( + ( - + 67 ) ) + + - 43 AS col1
----
51
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT 76 + + CASE + + 97 WHEN CASE - 96 WHEN CAST( + 15 AS SIGNED ) THEN 96 END THEN NULL WHEN 7 + - - 49 - + + COUNT( * ) THEN NULL WHEN - 9 THEN - + 81 ELSE NULL END * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT 76 + + CASE + + 97 WHEN CASE - 96 WHEN CAST ( + 15 AS INTEGER ) THEN 96 END THEN NULL WHEN 7 + - - 49 - + + COUNT ( * ) THEN NULL WHEN - 9 THEN - + 81 ELSE NULL END * + 62
----
NULL

query II rowsort
SELECT 46 * + - 84 * + 52 * + 75, 29 AS col2
----
-15069600
29

query II rowsort
SELECT 26, - 56 col2
----
26
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT ALL - 22 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 22 / + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + MIN( - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5821
SELECT + MIN ( - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + 66 * 59 * + ( - NULLIF ( - + ( - 13 ), + 46 ) ) + + COUNT( * ) AS col2
----
-50621

skipif mysql # not compatible
query I rowsort label-5822
SELECT + 66 * 59 * + ( - NULLIF ( - + ( - 13 ), + 46 ) ) + + COUNT ( * ) AS col2
----
-50621

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT - COALESCE ( - COUNT( * ), + + 15, + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + 15, + 63 )
----
1

query I rowsort
SELECT 72 + + 86 AS col2
----
158

query I rowsort
SELECT ALL + 32 * + - 43
----
-1376

query I rowsort
SELECT 81 + - 72
----
9

query I rowsort
SELECT + - NULLIF ( + 18, ( 22 ) ) col1
----
-18

query I rowsort
SELECT DISTINCT - - 4 col2
----
4

query I rowsort
SELECT ALL + 38 * 34
----
1292

onlyif mysql # aggregate syntax: 
query II rowsort label-5830
SELECT - - 14 * - + ( - 13 ) + - - COUNT( * ), 17 AS col2
----
183
17

skipif mysql # not compatible
query II rowsort label-5830
SELECT - - 14 * - + ( - 13 ) + - - COUNT ( * ), 17 AS col2
----
183
17

query II rowsort
SELECT - - 91 AS col1, - 95
----
91
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT - MIN( + 98 ) + 87 + + 16 + + 67 - + 47 * CAST( - + 65 AS SIGNED ) AS col0
----
3127

skipif mysql # not compatible
query I rowsort label-5832
SELECT - MIN ( + 98 ) + 87 + + 16 + + 67 - + 47 * CAST ( - + 65 AS INTEGER ) AS col0
----
3127

query I rowsort
SELECT ALL - 46 + - + 79
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5834
SELECT 22 + 37 + CAST( NULL AS SIGNED ) AS col2, + 47 * - 78
----
NULL
-3666

skipif mysql # not compatible
query II rowsort label-5834
SELECT 22 + 37 + CAST ( NULL AS INTEGER ) AS col2, + 47 * - 78
----
NULL
-3666

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

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + - COUNT ( * ) + + 66 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT ALL + CAST( COALESCE ( + + CASE + 65 WHEN - - 87 + - + CAST( NULL AS SIGNED ) + - 37 / CASE + COALESCE ( + + CAST( - COUNT( * ) AS SIGNED ), 34 * + - MIN( + 36 ) ) WHEN + 79 / AVG ( - 25 ) * - - 74 THEN - 12 WHEN 48 + 32 THEN 22 + 88 ELSE NULL END THEN 83 WHEN 52 THEN NULL END, 2 ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + CAST ( COALESCE ( + + CASE + 65 WHEN - - 87 + - + CAST ( NULL AS INTEGER ) + - 37 / CASE + COALESCE ( + + CAST ( - COUNT ( * ) AS INTEGER ), 34 * + - MIN ( + 36 ) ) WHEN + 79 / AVG ( - 25 ) * - - 74 THEN - 12 WHEN 48 + 32 THEN 22 + 88 ELSE NULL END THEN 83 WHEN 52 THEN NULL END, 2 ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT + COUNT( * ) + + 75 + + 67 * + - 48 AS col1
----
-3140

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + COUNT ( * ) + + 75 + + 67 * + - 48 AS col1
----
-3140

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

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

query I rowsort
SELECT ALL + 22 * - + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL - - 44 + + + CASE + 40 WHEN + - 43 THEN + + 51 / + + COUNT( * ) WHEN + CAST( - 41 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - - 44 + + + CASE + 40 WHEN + - 43 THEN + + 51 / + + COUNT ( * ) WHEN + CAST ( - 41 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 33, - - 26 )
----
-33

query II rowsort
SELECT - + 7 AS col1, - 58 AS col0
----
-7
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT - MAX( - - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5843
SELECT - MAX ( - - 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT 40 DIV - 72 + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5844
SELECT 40 / - 72 + 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - COUNT( * ) + + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - COUNT ( * ) + + 33 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - CASE NULLIF ( + COUNT( * ), + - 6 ) WHEN + 16 THEN MIN( - + 1 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - CASE NULLIF ( + COUNT ( * ), + - 6 ) WHEN + 16 THEN MIN ( - + 1 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 95 + + 18 - - + 13 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT + 38 DIV + 74 * + 13
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 38 / + 74 * + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL MAX( ALL - 2 ) - + 91 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL MAX ( ALL - 2 ) - + 91 AS col0
----
-93

query I rowsort
SELECT - 78 - + + 8 AS col1
----
-86

query I rowsort
SELECT + ( - - 60 ) * + 39 AS col0
----
2340

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 57 * + COUNT( * ) + + + 42 * + - 23 + - 51
----
-960

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 57 * + COUNT ( * ) + + + 42 * + - 23 + - 51
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT ( + - COUNT( * ) ) DIV + - 27 + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5854
SELECT ( + - COUNT ( * ) ) / + - 27 + - 42 AS col0
----
-42

query I rowsort
SELECT CASE - 27 WHEN + + 37 + 48 THEN - 44 ELSE NULL END
----
NULL

query I rowsort
SELECT + 48 * + + 40 * + - 7 AS col2
----
-13440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT + 62 / + - CAST( NULL AS SIGNED ) - - + 54 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT + 62 / + - CAST ( NULL AS INTEGER ) - - + 54 + - 48
----
NULL

query I rowsort
SELECT ALL 23 * - ( + - 39 ) * + - 79 * + + 40
----
-2834520

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT DISTINCT 41 * 94 AS col0, COUNT( * ) col0
----
3854
1

skipif mysql # not compatible
query II rowsort label-5859
SELECT DISTINCT 41 * 94 AS col0, COUNT ( * ) col0
----
3854
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - ( 29 ) + - MAX( DISTINCT + 43 )
----
-72

skipif mysql # not compatible
query I rowsort label-5860
SELECT - ( 29 ) + - MAX ( DISTINCT + 43 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT + 62 * + COUNT( * ) * - + 16
----
-992

skipif mysql # not compatible
query I rowsort label-5861
SELECT + 62 * + COUNT ( * ) * - + 16
----
-992

query I rowsort
SELECT + 76 * - + 66 * + 58
----
-290928

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL + ( - 73 ) * 30 + + 64 + - NULLIF ( + - MAX( DISTINCT + 21 ), - 85 )
----
-2105

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + ( - 73 ) * 30 + + 64 + - NULLIF ( + - MAX ( DISTINCT + 21 ), - 85 )
----
-2105

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT DISTINCT - + 21 DIV - 14
----
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - + 21 / - 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + - COUNT( 32 ) * - 52
----
52

skipif mysql # not compatible
query I rowsort label-5865
SELECT + - COUNT ( 32 ) * - 52
----
52

query I rowsort
SELECT ALL 92 * + 22 + - + 55
----
1969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT - 26 DIV COUNT( * ) * - 54
----
1404

skipif mysql # not compatible
query I rowsort label-5867
SELECT - 26 / COUNT ( * ) * - 54
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - 34 + - + 13 + + + 56 + 3 * - COUNT( * ) * 51
----
-144

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - 34 + - + 13 + + + 56 + 3 * - COUNT ( * ) * 51
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - SUM( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-5869
SELECT - SUM ( 99 )
----
-99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT ALL - 99 - 8, 67 * + - 50 * + MAX( + + 16 ) AS col1
----
-107
-53600

skipif mysql # not compatible
query II rowsort label-5871
SELECT ALL - 99 - 8, 67 * + - 50 * + MAX ( + + 16 ) AS col1
----
-107
-53600

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - - 93 - - SUM( ALL - - 74 ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-5872
SELECT - - 93 - - SUM ( ALL - - 74 ) AS col2
----
167

query I rowsort
SELECT - + 19 - 76 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - - COUNT( * ) + + CASE - 81 WHEN + + COUNT( * ) / - 47 THEN + COUNT( * ) * 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - - COUNT ( * ) + + CASE - 81 WHEN + + COUNT ( * ) / - 47 THEN + COUNT ( * ) * 77 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 32 * - 27 AS col1
----
864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT ALL 2 - - CAST( - + COALESCE ( - 47, 3 + + 22 * + ( + 51 ) * 63 * - 7 ) AS SIGNED ) + 40 * + 48
----
1969

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 2 - - CAST ( - + COALESCE ( - 47, 3 + + 22 * + ( + 51 ) * 63 * - 7 ) AS INTEGER ) + 40 * + 48
----
1969

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - MIN( - + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5878
SELECT - MIN ( - + 59 ) AS col1
----
59

query I rowsort
SELECT - 78 + - 36 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-5880
SELECT + 84 - - - 91 + - 73, + COUNT( * ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-5880
SELECT + 84 - - - 91 + - 73, + COUNT ( * ) AS col1
----
-80
1

query I rowsort
SELECT ALL - 30 * + + 37 AS col2
----
-1110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5882
SELECT - 96 * + CAST( - 51 AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) / ( + ( 2 ) ) * + 77
----
4896
NULL

skipif mysql # not compatible
query II rowsort label-5882
SELECT - 96 * + CAST ( - 51 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / ( + ( 2 ) ) * + 77
----
4896
NULL

query I rowsort
SELECT + ( - 25 ) - + + 58 AS col2
----
-83

query I rowsort
SELECT DISTINCT 83 * - - ( + - 58 ) * + 61
----
-293654

query I rowsort
SELECT ALL 42 * 2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL - COALESCE ( + 99, COUNT( * ) * + - 47 * 53, + CAST( NULL AS SIGNED ) * + COUNT( * ) ) * 25 * - 85
----
210375

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - COALESCE ( + 99, COUNT ( * ) * + - 47 * 53, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) * 25 * - 85
----
210375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT DISTINCT + CAST( 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + CAST ( 56 AS INTEGER ) AS col0
----
56

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

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

query I rowsort
SELECT ALL - 59 * 51 AS col2
----
-3009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5890
SELECT ALL + NULLIF ( + 76, MAX( ALL - - ( - 64 ) ) + + CASE + - COUNT( * ) WHEN + 18 * ( 17 ) THEN - 76 * COUNT( * ) + - - NULLIF ( + - MAX( ALL ( + 63 ) ), - MIN( - 11 ) - + + COUNT( * ) ) WHEN ( + 56 ) - - NULLIF ( - 79, 80 + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) THEN NULL END ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL + NULLIF ( + 76, MAX ( ALL - - ( - 64 ) ) + + CASE + - COUNT ( * ) WHEN + 18 * ( 17 ) THEN - 76 * COUNT ( * ) + - - NULLIF ( + - MAX ( ALL ( + 63 ) ), - MIN ( - 11 ) - + + COUNT ( * ) ) WHEN ( + 56 ) - - NULLIF ( - 79, 80 + + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) THEN NULL END ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT + NULLIF ( 13, - 42 ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT + NULLIF ( 13, - 42 ) / - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5892
SELECT + 94 * - + 10 / + - CAST( NULL AS SIGNED ) AS col0, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5892
SELECT + 94 * - + 10 / + - CAST ( NULL AS INTEGER ) AS col0, 16
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT CAST( + 54 AS SIGNED ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5893
SELECT CAST ( + 54 AS INTEGER ) col2
----
54

query I rowsort
SELECT + - 10 * + 36
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5895
SELECT DISTINCT COUNT( * ) DIV + 47 + + - 27 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT COUNT ( * ) / + 47 + + - 27 / + 98 AS col2
----
0

query I rowsort
SELECT + 96 + - 72 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5897
SELECT ALL - COUNT( * ) * + NULLIF ( - ( + - 27 ), + + CAST( + + COALESCE ( 13, SUM( DISTINCT - COALESCE ( + + 57, + - 74 ) ) * + 35, + 86, 88, 83 ) AS DECIMAL ) ) * - 64 + + 84 * + + COUNT( * ) DIV 98 * - - 22 + 75 * 25
----
3603

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - COUNT ( * ) * + NULLIF ( - ( + - 27 ), + + CAST ( + + COALESCE ( 13, SUM ( DISTINCT - COALESCE ( + + 57, + - 74 ) ) * + 35, + 86, 88, 83 ) AS REAL ) ) * - 64 + + 84 * + + COUNT ( * ) / 98 * - - 22 + 75 * 25
----
3603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL - CAST( NULLIF ( + 51, - - 18 * + COALESCE ( ( - 18 ), 35 ) * + MAX( 64 ) + + + 14 + - 34 ) AS SIGNED ) * + + 53 * - 64 AS col2
----
172992

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - CAST ( NULLIF ( + 51, - - 18 * + COALESCE ( ( - 18 ), 35 ) * + MAX ( 64 ) + + + 14 + - 34 ) AS INTEGER ) * + + 53 * - 64 AS col2
----
172992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5899
SELECT + - 89 DIV - 11 - - - COUNT( * ) + COUNT( * ) + COUNT( * ) * - - COUNT( * ) DIV - + COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-5899
SELECT + - 89 / - 11 - - - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * - - COUNT ( * ) / - + COUNT ( * ) col0
----
7

query I rowsort
SELECT + 60 * + ( - 32 ) + ( + + 56 ) + + - 7
----
-1871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - - 8 + + + 24 * + ( - NULLIF ( + - MIN( + 97 ), AVG ( ALL 53 ) ) )
----
2336

skipif mysql # not compatible
query I rowsort label-5902
SELECT - - 8 + + + 24 * + ( - NULLIF ( + - MIN ( + 97 ), AVG ( ALL 53 ) ) )
----
2336

query I rowsort
SELECT ALL + 19 * - 31 - + 70
----
-659

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT NULLIF ( + - COUNT( * ), - COUNT( * ) ), + 18 * 17 AS col0
----
NULL
306

skipif mysql # not compatible
query II rowsort label-5904
SELECT NULLIF ( + - COUNT ( * ), - COUNT ( * ) ), + 18 * 17 AS col0
----
NULL
306

query I rowsort
SELECT ALL 29 - + 43
----
-14

query I rowsort
SELECT ALL + - COALESCE ( + 4, + 1 ) * - ( 32 ) * + + 88 col0
----
11264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT ALL CAST( CASE + - 74 WHEN 83 + COUNT( * ) THEN - CASE + ( + - 50 ) WHEN + 79 * 29 + - 29 THEN NULL WHEN + - ( - - 26 ) + + - 71 THEN - - 78 END WHEN 86 THEN NULL END AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL CAST ( CASE + - 74 WHEN 83 + COUNT ( * ) THEN - CASE + ( + - 50 ) WHEN + 79 * 29 + - 29 THEN NULL WHEN + - ( - - 26 ) + + - 71 THEN - - 78 END WHEN 86 THEN NULL END AS INTEGER ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 35 * + 57 AS col0
----
1995

query I rowsort
SELECT 57 * ( + 97 )
----
5529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5910
SELECT ALL 25 AS col2, + CAST( 45 AS SIGNED )
----
25
45

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL 25 AS col2, + CAST ( 45 AS INTEGER )
----
25
45

query II rowsort
SELECT ALL 77 AS col1, + ( 89 ) * - - ( 3 )
----
77
267

query I rowsort
SELECT 66 + - 97 + + 83
----
52

query I rowsort
SELECT ALL - 35 * + - ( + 71 ) AS col1
----
2485

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT 82 * + - 94 * + + 45 * - - COUNT( * ) AS col1, COUNT( * ) col1
----
-346860
1

skipif mysql # not compatible
query II rowsort label-5915
SELECT 82 * + - 94 * + + 45 * - - COUNT ( * ) AS col1, COUNT ( * ) col1
----
-346860
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT MAX( 87 ) + + 83 DIV COALESCE ( + 60, + 6 )
----
88

skipif mysql # not compatible
query I rowsort label-5916
SELECT MAX ( 87 ) + + 83 / COALESCE ( + 60, + 6 )
----
88

query II rowsort
SELECT - 44 AS col0, + 6
----
-44
6

query I rowsort
SELECT 56 - - 13 * 74 * 14 AS col1
----
13524

query I rowsort
SELECT 65 - + + 57 col0
----
8

query II rowsort
SELECT + 10, - 4 + NULLIF ( - 24, + COALESCE ( + 86, - - 8 ) ) AS col2
----
10
-28

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

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

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

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - COUNT ( * ) + 60 AS col2
----
59

query I rowsort
SELECT ALL + 73 * - + 10 AS col2
----
-730

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

query I rowsort
SELECT ALL 97 + - 40 AS col1
----
57

query I rowsort
SELECT DISTINCT - 68 + 57 + - + 30 AS col0
----
-41

query II rowsort
SELECT DISTINCT - - 59 col2, 53
----
59
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT MAX( + 3 ) * - 52 * - COUNT( * )
----
156

skipif mysql # not compatible
query I rowsort label-5928
SELECT MAX ( + 3 ) * - 52 * - COUNT ( * )
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5929
SELECT ALL - CAST( - COALESCE ( - - COUNT( * ), + - 77 + COUNT( * ), - 94 ) AS SIGNED ), + 80 DIV + + 26 col0
----
1
3

skipif mysql # not compatible
query II rowsort label-5929
SELECT ALL - CAST ( - COALESCE ( - - COUNT ( * ), + - 77 + COUNT ( * ), - 94 ) AS INTEGER ), + 80 / + + 26 col0
----
1
3

query I rowsort
SELECT ALL 0 - + + 65
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5931
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 85 DIV + 39 - - 2 + + 2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5931
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 85 / + 39 - - 2 + + 2
----
NULL
6

query I rowsort
SELECT DISTINCT - 99 - ( - 9 ) AS col0
----
-90

query II rowsort
SELECT 38 * + + 91 + + 27 * + 78, 5 AS col0
----
5564
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL + - NULLIF ( + SUM( DISTINCT - 90 ), - 73 ) - 19 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + - NULLIF ( + SUM ( DISTINCT - 90 ), - 73 ) - 19 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5935
SELECT ALL - - 41, CAST( CASE + ( ( + 43 ) ) WHEN COALESCE ( - 59, + 90 * 20 ) * - COUNT( 96 ) THEN - 82 WHEN - - 6 THEN NULL END AS DECIMAL ) * - CASE + + CASE - - 4 WHEN - 83 THEN - + 57 * + ( 87 ) * - COUNT( * ) ELSE NULL END WHEN + COUNT( * ) * - 1 THEN + 48 END AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL - - 41, CAST ( CASE + ( ( + 43 ) ) WHEN COALESCE ( - 59, + 90 * 20 ) * - COUNT ( 96 ) THEN - 82 WHEN - - 6 THEN NULL END AS REAL ) * - CASE + + CASE - - 4 WHEN - 83 THEN - + 57 * + ( 87 ) * - COUNT ( * ) ELSE NULL END WHEN + COUNT ( * ) * - 1 THEN + 48 END AS col1
----
41
NULL

query I rowsort
SELECT 82 * - 24 AS col0
----
-1968

query I rowsort
SELECT 56 - + 73
----
-17

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

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

query I rowsort
SELECT ALL - 4 * - 3 AS col1
----
12

query I rowsort
SELECT ALL 24 + 63 AS col2
----
87

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

skipif mysql # not compatible
query I rowsort label-5941
SELECT ( CAST ( NULL AS REAL ) ) + + 84 + + 91 AS col2
----
NULL

query I rowsort
SELECT ALL 59 + - 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT SUM( DISTINCT - 85 ) + + 30 * - 67
----
-2095

skipif mysql # not compatible
query I rowsort label-5943
SELECT SUM ( DISTINCT - 85 ) + + 30 * - 67
----
-2095

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

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

query I rowsort
SELECT DISTINCT + 87 * - - 64
----
5568

query I rowsort
SELECT 20 + 59 AS col2
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT - COUNT( * ) DIV 31 + 98 * - COALESCE ( + ( 99 ), + + MIN( 20 ) ) col2
----
-9702

skipif mysql # not compatible
query I rowsort label-5948
SELECT - COUNT ( * ) / 31 + 98 * - COALESCE ( + ( 99 ), + + MIN ( 20 ) ) col2
----
-9702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT ALL + + 2 DIV COUNT( * ) * - MAX( ALL + 10 )
----
-20

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + + 2 / COUNT ( * ) * - MAX ( ALL + 10 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5950
SELECT + 77 / + ( - + CAST( NULL AS DECIMAL ) ) * + 4 * + COUNT( * ) / COUNT( DISTINCT 46 ) + + COUNT( - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 77 / + ( - + CAST ( NULL AS REAL ) ) * + 4 * + COUNT ( * ) / COUNT ( DISTINCT 46 ) + + COUNT ( - - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT + - COUNT( ALL + 32 ) AS col0, - 33
----
-1
-33

skipif mysql # not compatible
query II rowsort label-5951
SELECT + - COUNT ( ALL + 32 ) AS col0, - 33
----
-1
-33

query I rowsort
SELECT + 6 * - + 79 AS col2
----
-474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + + 16 * + 8 * 20 * - - 64 * - 18 - + COUNT( * ) + + CAST( NULL AS SIGNED ) + ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + + 16 * + 8 * 20 * - - 64 * - 18 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + ( 22 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT DISTINCT + - 43 DIV ( + 19 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + - 43 / ( + 19 ) AS col0
----
-2

query II rowsort
SELECT - 72 * + 27 AS col0, - 20 col1
----
-1944
-20

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

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

skipif mysql # not compatible
query I rowsort label-5957
SELECT - + CAST ( NULL AS INTEGER ) + - 53 + + - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT ALL - MAX( ALL - 59 ) DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - MAX ( ALL - 59 ) / + 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT 56 * 46 * - COUNT( - 69 ) + - - ( - CASE 62 WHEN - 32 - - 10 THEN NULL WHEN - ( - 2 ) THEN - 53 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT 56 * 46 * - COUNT ( - 69 ) + - - ( - CASE 62 WHEN - 32 - - 10 THEN NULL WHEN - ( - 2 ) THEN - 53 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + CASE - 59 WHEN 76 + + 78 + + + 19 + + + 72 THEN - 85 WHEN + 70 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + NULLIF ( + - CASE + COALESCE ( + - 93, - 55 ) WHEN - - 55 THEN NULL ELSE + 60 END, - COALESCE ( COUNT( * ), + - 43 ) * 67 - + - 14 ) + 63
----
3

skipif mysql # not compatible
query I rowsort label-5961
SELECT + NULLIF ( + - CASE + COALESCE ( + - 93, - 55 ) WHEN - - 55 THEN NULL ELSE + 60 END, - COALESCE ( COUNT ( * ), + - 43 ) * 67 - + - 14 ) + 63
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT + COUNT( * ) + + COALESCE ( CAST( 93 AS SIGNED ), + 90 ) + 47 + + + CAST( 16 AS SIGNED )
----
157

skipif mysql # not compatible
query I rowsort label-5962
SELECT + COUNT ( * ) + + COALESCE ( CAST ( 93 AS INTEGER ), + 90 ) + 47 + + + CAST ( 16 AS INTEGER )
----
157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT + ( - MIN( ALL 26 ) ) + + 41 + 23 * 27 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-5964
SELECT + ( - MIN ( ALL 26 ) ) + + 41 + 23 * 27 AS col0
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT COALESCE ( + - SUM( ALL - 44 ), - 22 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT COALESCE ( + - SUM ( ALL - 44 ), - 22 ) AS col1
----
44

query I rowsort
SELECT ALL 19 + + - 9
----
10

query I rowsort
SELECT DISTINCT 78 + 13 AS col2
----
91

query II rowsort
SELECT DISTINCT ( ( + 35 ) ) AS col1, 55 + 93
----
35
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL COUNT( * ) * - COUNT( DISTINCT 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT 25 + + CASE 73 WHEN - 44 THEN NULL WHEN + COUNT( + - 57 ) THEN - 33 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT 25 + + CASE 73 WHEN - 44 THEN NULL WHEN + COUNT ( + - 57 ) THEN - 33 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL 83 + 51 + + ( - - 24 ) * - 17
----
-274

query I rowsort
SELECT - ( + + 52 ) * 39 * 89
----
-180492

query II rowsort
SELECT + 71 + - + 70 + + + 81 AS col1, - 65 AS col2
----
82
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT + 47 + 50 + + 28 * + ( + MIN( ALL + 64 ) ) - 73
----
1816

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 47 + 50 + + 28 * + ( + MIN ( ALL + 64 ) ) - 73
----
1816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT ALL 53 + 11 + + - 99 + - COUNT( * ) DIV + + 48
----
-35

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL 53 + 11 + + - 99 + - COUNT ( * ) / + + 48
----
-35

query II rowsort
SELECT 61 AS col2, - 28 AS col0
----
61
-28

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

query I rowsort
SELECT DISTINCT 82 + + 19
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL COUNT( * ) + + - 36 * 89 AS col2
----
-3203

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL COUNT ( * ) + + - 36 * 89 AS col2
----
-3203

onlyif mysql # DIV for integer division: 
query II rowsort label-5980
SELECT DISTINCT 15, 74 DIV - 47 AS col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-5980
SELECT DISTINCT 15, 74 / - 47 AS col2
----
15
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT ALL - CAST( NULL AS SIGNED ) * + - SUM( + 34 ) * + ( 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - CAST ( NULL AS INTEGER ) * + - SUM ( + 34 ) * + ( 75 )
----
NULL

query I rowsort
SELECT + 5 * - + ( + - 28 ) * + 99 + - - 59 * + 71 col0
----
18049

query II rowsort
SELECT - 64 AS col1, - 60 AS col2
----
-64
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT + 7 - + 59 DIV 46 * 50
----
-43

skipif mysql # not compatible
query I rowsort label-5984
SELECT + 7 - + 59 / 46 * 50
----
-43

query II rowsort
SELECT 20 AS col2, + 67
----
20
67

query II rowsort
SELECT - - 37, - 13 AS col2
----
37
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - + COUNT( * ) * + ( + 79 ) + ( - ( - - 49 ) ) + - + COUNT( * ) - - 36 * - - ( + 59 )
----
1995

skipif mysql # not compatible
query I rowsort label-5987
SELECT - + COUNT ( * ) * + ( + 79 ) + ( - ( - - 49 ) ) + - + COUNT ( * ) - - 36 * - - ( + 59 )
----
1995

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + - 6 / + - CASE + 88 WHEN 0 * 85 THEN - - COUNT( * ) END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT + - 6 / + - CASE + 88 WHEN 0 * 85 THEN - - COUNT ( * ) END + 36
----
NULL

query I rowsort
SELECT ALL + 16 * - 67
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL - 71 * + MAX( ALL 78 ) AS col2
----
-5538

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - 71 * + MAX ( ALL 78 ) AS col2
----
-5538

query I rowsort
SELECT - 79 * + 95 AS col1
----
-7505

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5994
SELECT DISTINCT - 33 * 24 - + 61 + MIN( - 1 ) / - 80 + + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - 33 * 24 - + 61 + MIN ( - 1 ) / - 80 + + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT - 6 * 18 + + 39 - + + COUNT( + 48 )
----
-70

skipif mysql # not compatible
query I rowsort label-5995
SELECT - 6 * 18 + + 39 - + + COUNT ( + 48 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5996
SELECT ALL - - CAST( + 30 AS SIGNED ) DIV + ( + + 94 ) AS col2, - 1
----
0
-1

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL - - CAST ( + 30 AS INTEGER ) / + ( + + 94 ) AS col2, - 1
----
0
-1

query I rowsort
SELECT + - COALESCE ( - - 8, - 42 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT ALL - NULLIF ( MIN( DISTINCT - - 46 ), - - COUNT( * ) * 37 * 1 + 2 + + - 1 ) DIV COUNT( * ) * COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - NULLIF ( MIN ( DISTINCT - - 46 ), - - COUNT ( * ) * 37 * 1 + 2 + + - 1 ) / COUNT ( * ) * COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT ALL 87 * 9 + COALESCE ( - 98, - 80 ) + + 11 + 94 + - - ( ( - - 59 ) ) * 25 * + + 47 AS col0
----
70115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL - 86 * + - COUNT( + ( - CAST( - 22 AS SIGNED ) ) ) col2
----
86

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL - 86 * + - COUNT ( + ( - CAST ( - 22 AS INTEGER ) ) ) col2
----
86

query II rowsort
SELECT DISTINCT 49 * 59 + + NULLIF ( - 76, - 49 ) AS col0, - ( - 30 )
----
2815
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6002
SELECT ALL 30 * NULLIF ( - - 10, 78 ) * 69 + - COUNT( 35 ) + - 21 + - - CAST( NULL AS DECIMAL ) * - - 83 * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL 30 * NULLIF ( - - 10, 78 ) * 69 + - COUNT ( 35 ) + - 21 + - - CAST ( NULL AS REAL ) * - - 83 * - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT - CAST( 44 AS SIGNED ) * + 34 col2
----
-1496

skipif mysql # not compatible
query I rowsort label-6003
SELECT - CAST ( 44 AS INTEGER ) * + 34 col2
----
-1496

query I rowsort
SELECT ALL 24 * - + 43 + - 7 * + + 79 * 99
----
-55779

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6005
SELECT - CASE 24 WHEN - - NULLIF ( + 58, 27 ) THEN - CAST( NULL AS SIGNED ) END + - CAST( 99 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT - CASE 24 WHEN - - NULLIF ( + 58, 27 ) THEN - CAST ( NULL AS INTEGER ) END + - CAST ( 99 AS REAL )
----
NULL

query I rowsort
SELECT - 66 + 55 AS col2
----
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6008
SELECT ALL CAST( + 92 AS SIGNED ) AS col2, + 40 * 27 AS col0
----
92
1080

skipif mysql # not compatible
query II rowsort label-6008
SELECT ALL CAST ( + 92 AS INTEGER ) AS col2, + 40 * 27 AS col0
----
92
1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT - CAST( NULL AS SIGNED ) + 65 * - + ( + 60 ) + + + 74 + + + 18 * + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT - CAST ( NULL AS INTEGER ) + 65 * - + ( + 60 ) + + + 74 + + + 18 * + 30 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6010
SELECT - ( - 20 ) AS col0, ( COUNT ( * ) )
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT ALL COUNT( * ) + - CAST( - 20 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL COUNT ( * ) + - CAST ( - 20 AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL 6 * + ( + + 5 ) * - - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL 6 * + ( + + 5 ) * - - COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT COUNT( ALL + + 49 ) - - + 83
----
84

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT COUNT ( ALL + + 49 ) - - + 83
----
84

query I rowsort
SELECT ALL 23 * 61 * 57
----
79971

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - MAX( + 20 ) * + - 69 AS col0
----
1380

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - MAX ( + 20 ) * + - 69 AS col0
----
1380

query I rowsort
SELECT - 76 + - 74 - + - 84 * - NULLIF ( - + 75, + + 91 )
----
6150

query I rowsort
SELECT + 82 * - 65 AS col2
----
-5330

query I rowsort
SELECT - 4 + - 76 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT DISTINCT + COUNT( * ) / + - 11 * CAST( NULL AS SIGNED ) + 32 - + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT + COUNT ( * ) / + - 11 * CAST ( NULL AS INTEGER ) + 32 - + + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT + 59 * + + CASE + COUNT( * ) WHEN - COUNT( * ) * - COUNT( * ) * + 12 + - 86 * - 73 THEN - + COALESCE ( 56, - 95 ) END + - 95 - - 77 + + - 23 * + ( - COUNT( * ) ) * + 39 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 59 * + + CASE + COUNT ( * ) WHEN - COUNT ( * ) * - COUNT ( * ) * + 12 + - 86 * - 73 THEN - + COALESCE ( 56, - 95 ) END + - 95 - - 77 + + - 23 * + ( - COUNT ( * ) ) * + 39 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 * + - 26
----
-546

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6022
SELECT - - 1 / + NULLIF ( COUNT( ALL 77 ), + 34 * 97 ) + 26 + + 75 + - + ( 97 ) * - + CAST( NULL AS DECIMAL ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - - 1 / + NULLIF ( COUNT ( ALL 77 ), + 34 * 97 ) + 26 + + 75 + - + ( 97 ) * - + CAST ( NULL AS REAL ) * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT 0 + 69 + - - MIN( - 37 ) + + - 16 * - + ( - 20 )
----
-288

skipif mysql # not compatible
query I rowsort label-6023
SELECT 0 + 69 + - - MIN ( - 37 ) + + - 16 * - + ( - 20 )
----
-288

query I rowsort
SELECT ALL + 60 * - - 52 + + 89 AS col1
----
3209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT - 54 * - SUM( ALL - + 93 ) + 16 + + CASE 57 WHEN + - CAST( + 38 AS SIGNED ) THEN + 61 * - 2 / - 26 WHEN + MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN + 78 / - + 90 END + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT - 54 * - SUM ( ALL - + 93 ) + 16 + + CASE 57 WHEN + - CAST ( + 38 AS INTEGER ) THEN + 61 * - 2 / - 26 WHEN + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN + 78 / - + 90 END + + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) * + 90 + - - COUNT( + 20 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-6026
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + 90 + - - COUNT ( + 20 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL SUM( DISTINCT - 11 ) + 83 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL SUM ( DISTINCT - 11 ) + 83 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6028
SELECT + COUNT( * ) * 15 + + MIN( DISTINCT + 76 ) * - - 67 AS col2, + MAX( ALL - - 26 ) + - ( - CAST( 71 AS SIGNED ) )
----
5107
97

skipif mysql # not compatible
query II rowsort label-6028
SELECT + COUNT ( * ) * 15 + + MIN ( DISTINCT + 76 ) * - - 67 AS col2, + MAX ( ALL - - 26 ) + - ( - CAST ( 71 AS INTEGER ) )
----
5107
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6029
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ), - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6029
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ), - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT 69 + - ( + 28 ) DIV 38 * + ( - COUNT( * ) ) * MAX( DISTINCT 68 ) * + 15 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6030
SELECT 69 + - ( + 28 ) / 38 * + ( - COUNT ( * ) ) * MAX ( DISTINCT 68 ) * + 15 AS col1
----
69

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

query I rowsort
SELECT ALL - COALESCE ( + 94, + 28 )
----
-94

query I rowsort
SELECT 75 + + 14 AS col0
----
89

query I rowsort
SELECT ALL 8 + + - 33 AS col1
----
-25

query II rowsort
SELECT 5 AS col2, + 63 + - - 70
----
5
133

query I rowsort
SELECT ( 2 ) * + 90 + + 61 + + - 56
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT 56 * - CASE + 7 WHEN + - COUNT( * ) THEN - 20 * + - 2 ELSE NULL END, 9 + 20 + - + 88 * - 68 col1
----
NULL
6013

skipif mysql # not compatible
query II rowsort label-6037
SELECT 56 * - CASE + 7 WHEN + - COUNT ( * ) THEN - 20 * + - 2 ELSE NULL END, 9 + 20 + - + 88 * - 68 col1
----
NULL
6013

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

query II rowsort
SELECT ALL - 27, + 90 col2
----
-27
90

onlyif mysql # DIV for integer division: 
query II rowsort label-6040
SELECT 86 AS col2, - 95 + + ( + 0 ) DIV - 78 * + 10 + + 90 AS col2
----
86
-5

skipif mysql # not compatible
query II rowsort label-6040
SELECT 86 AS col2, - 95 + + ( + 0 ) / - 78 * + 10 + + 90 AS col2
----
86
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT 81 * - + 22 * - CAST( 12 AS SIGNED ) AS col2
----
21384

skipif mysql # not compatible
query I rowsort label-6041
SELECT 81 * - + 22 * - CAST ( 12 AS INTEGER ) AS col2
----
21384

query I rowsort
SELECT 17 * + + 93 AS col2
----
1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6043
SELECT ALL + 82 - - - 15 - + 99 col1, COUNT( * ) DIV - - 25
----
-32
0

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL + 82 - - - 15 - + 99 col1, COUNT ( * ) / - - 25
----
-32
0

query I rowsort
SELECT ALL 0 * - ( + - 39 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT 7 * ( - MIN( - + 62 ) ) AS col0
----
434

skipif mysql # not compatible
query I rowsort label-6045
SELECT 7 * ( - MIN ( - + 62 ) ) AS col0
----
434

onlyif mysql # DIV for integer division: 
query II rowsort label-6046
SELECT DISTINCT + 37 * - 93 * + + 78, + 69 + + - 75 + + ( - - 80 ) + + + 35 DIV + 91 AS col2
----
-268398
74

skipif mysql # not compatible
query II rowsort label-6046
SELECT DISTINCT + 37 * - 93 * + + 78, + 69 + + - 75 + + ( - - 80 ) + + + 35 / + 91 AS col2
----
-268398
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL - CASE 61 WHEN + 56 + + COUNT( DISTINCT - 69 ) THEN 6 * - 58 * 22 / - CAST( NULL AS SIGNED ) ELSE NULL END * 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - CASE 61 WHEN + 56 + + COUNT ( DISTINCT - 69 ) THEN 6 * - 58 * 22 / - CAST ( NULL AS INTEGER ) ELSE NULL END * 68 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT DISTINCT - 65 - - CAST( - + 10 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT - 65 - - CAST ( - + 10 AS INTEGER )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT 96 * + - 35 * - CAST( + + 9 AS SIGNED ) AS col1
----
30240

skipif mysql # not compatible
query I rowsort label-6050
SELECT 96 * + - 35 * - CAST ( + + 9 AS INTEGER ) AS col1
----
30240

query I rowsort
SELECT 6 * - + 82 col1
----
-492

query I rowsort
SELECT - 25 - 72
----
-97

query II rowsort
SELECT ALL 88 AS col2, - CASE - 66 WHEN + ( - - 80 ) THEN - 4 END - + 26
----
88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT + 34 + + + 63 / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 34 + + + 63 / + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + 17 AS col1
----
-1394

query I rowsort
SELECT ALL + - 86 + + + 18 AS col1
----
-68

query I rowsort
SELECT ALL - - 23 * - + ( 95 ) + 7 AS col0
----
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + 0 * - ( - + 30 ) + - COUNT( * ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 0 * - ( - + 30 ) + - COUNT ( * ) * - 56
----
56

query I rowsort
SELECT DISTINCT - - 73 * 36 AS col1
----
2628

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - 83 + + NULLIF ( COUNT( * ), + + 33 * + COUNT( DISTINCT + 27 ) ) * + 36 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6061
SELECT - 83 + + NULLIF ( COUNT ( * ), + + 33 * + COUNT ( DISTINCT + 27 ) ) * + 36 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT 15 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT 15 / 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT + + 75 DIV + CASE WHEN 80 IN ( 3 DIV + 28 - - 97, - COUNT( * ) * ( + ( + - 86 ) ) * + - 56, - 89, 56 * + 79, 22 ) THEN - 55 WHEN NOT ( - COUNT( * ) ) <> 46 * + 59 * 26 - - - COUNT( * ) THEN + 4 ELSE + 18 END + 12 * - 46 AS col0
----
-548

skipif mysql # not compatible
query I rowsort label-6063
SELECT + + 75 / + CASE WHEN 80 IN ( 3 / + 28 - - 97, - COUNT ( * ) * ( + ( + - 86 ) ) * + - 56, - 89, 56 * + 79, 22 ) THEN - 55 WHEN NOT ( - COUNT ( * ) ) <> 46 * + 59 * 26 - - - COUNT ( * ) THEN + 4 ELSE + 18 END + 12 * - 46 AS col0
----
-548

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT DISTINCT - + 69 + - 86 + + CAST( NULL AS SIGNED ) / 70 * - 7 * + 45 - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT - + 69 + - 86 + + CAST ( NULL AS INTEGER ) / 70 * - 7 * + 45 - + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6066
SELECT DISTINCT + 6 DIV - + CASE - 34 WHEN COUNT( * ) THEN - 80 WHEN 29 THEN NULL ELSE + 37 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT + 6 / - + CASE - 34 WHEN COUNT ( * ) THEN - 80 WHEN 29 THEN NULL ELSE + 37 END AS col0
----
0

query I rowsort
SELECT DISTINCT 51 + + 42 * + 81 AS col0
----
3453

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

skipif mysql # not compatible
query I rowsort label-6068
SELECT SUM ( DISTINCT - 25 )
----
-25

query I rowsort
SELECT ( + + 33 ) * - 62 AS col2
----
-2046

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

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT 2 / 87
----
0

query II rowsort
SELECT + 27 AS col2, 68
----
27
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT DISTINCT 95 * + - ( - 82 ) * COUNT( * )
----
7790

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 95 * + - ( - 82 ) * COUNT ( * )
----
7790

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT DISTINCT - 17 AS col1, 48 + COUNT( * ) * - 78 col2
----
-17
-30

skipif mysql # not compatible
query II rowsort label-6074
SELECT DISTINCT - 17 AS col1, 48 + COUNT ( * ) * - 78 col2
----
-17
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT + 53 + - + 46 + + 61 - 51 DIV - 35 + + 10 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6076
SELECT + 53 + - + 46 + + 61 - 51 / - 35 + + 10 AS col1
----
79

query I rowsort
SELECT - 58 - 27 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT + 29 + + NULLIF ( - 15, + 69 ), + NULLIF ( - 22, - - MAX( ALL + ( - 39 ) ) ) AS col2
----
14
-22

skipif mysql # not compatible
query II rowsort label-6078
SELECT + 29 + + NULLIF ( - 15, + 69 ), + NULLIF ( - 22, - - MAX ( ALL + ( - 39 ) ) ) AS col2
----
14
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT ALL COUNT( * ) AS col0, + 99 + + 87
----
1
186

skipif mysql # not compatible
query II rowsort label-6079
SELECT ALL COUNT ( * ) AS col0, + 99 + + 87
----
1
186

query I rowsort
SELECT - NULLIF ( - - 68, - 32 ) col1
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT - 9 + - + 23 + + 55 * 38 DIV + - ( + - 14 )
----
117

skipif mysql # not compatible
query I rowsort label-6082
SELECT - 9 + - + 23 + + 55 * 38 / + - ( + - 14 )
----
117

query I rowsort
SELECT ALL + + 51 * - + 50
----
-2550

query II rowsort
SELECT ALL 6, + 19 AS col0
----
6
19

query I rowsort
SELECT ALL + 84 + - 5
----
79

query I rowsort
SELECT DISTINCT - - 21 * + 68 * + 42 col0
----
59976

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT CASE CASE - 1 WHEN + 78 + 27 THEN NULL WHEN 9 THEN - 28 ELSE NULL END WHEN 43 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT CASE CASE - 1 WHEN + 78 + 27 THEN NULL WHEN 9 THEN - 28 ELSE NULL END WHEN 43 THEN + COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT ALL - 94, 55 AS col1
----
-94
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT - 98 * + NULLIF ( - - CAST( NULL AS SIGNED ), - + 39 - ( - 40 ) * - 60 + + + 25 ) - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 98 * + NULLIF ( - - CAST ( NULL AS INTEGER ), - + 39 - ( - 40 ) * - 60 + + + 25 ) - - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT - 81 DIV - NULLIF ( + 86, - COALESCE ( + 55, - - 51 ) ) * - 99
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 81 / - NULLIF ( + 86, - COALESCE ( + 55, - - 51 ) ) * - 99
----
0

query I rowsort
SELECT - + 21 - - ( 21 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6092
SELECT ALL 13 AS col2, - COUNT( * ) * - CAST( + 2 AS SIGNED )
----
13
2

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL 13 AS col2, - COUNT ( * ) * - CAST ( + 2 AS INTEGER )
----
13
2

query I rowsort
SELECT ALL - 41 + 19 + + ( - 85 )
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT ALL + 77 * - - AVG ( 16 ) + CASE - ( - COUNT( * ) ) WHEN + COUNT( * ) THEN NULL ELSE - 39 - + - 71 * + 16 * CAST( NULL AS SIGNED ) END * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + 77 * - - AVG ( 16 ) + CASE - ( - COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL ELSE - 39 - + - 71 * + 16 * CAST ( NULL AS INTEGER ) END * + 20
----
NULL

query I rowsort
SELECT DISTINCT + 49 * + 75 AS col2
----
3675

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - ( - 28 ) * 21 + - MAX( ALL + 40 ) - - MIN( DISTINCT + 77 ) AS col2
----
625

skipif mysql # not compatible
query I rowsort label-6097
SELECT - ( - 28 ) * 21 + - MAX ( ALL + 40 ) - - MIN ( DISTINCT + 77 ) AS col2
----
625

query II rowsort
SELECT ALL + 54 * 9 AS col0, - 56
----
486
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT COALESCE ( - - NULLIF ( - COUNT( * ), 0 + - 90 ), - 75 * + 93, + + COUNT( * ) + 53 + - 85 + + + ( - 37 ) DIV + 56 - 90 + - 10 DIV - COUNT( * ) + + 47 + + 18 * - - 85 * + SUM( - 24 ) ) * + 5 * COUNT( * ) * COUNT( * ) + + + 38 + 9 * - + 15 + + 41 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6099
SELECT COALESCE ( - - NULLIF ( - COUNT ( * ), 0 + - 90 ), - 75 * + 93, + + COUNT ( * ) + 53 + - 85 + + + ( - 37 ) / + 56 - 90 + - 10 / - COUNT ( * ) + + 47 + + 18 * - - 85 * + SUM ( - 24 ) ) * + 5 * COUNT ( * ) * COUNT ( * ) + + + 38 + 9 * - + 15 + + 41 AS col0
----
-61

query I rowsort
SELECT - ( + + 40 ) * + 10
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT + 13 + - - ( + ( - 27 ) ) + 91 + - COALESCE ( 71, - 31 + + 78 ) + - 27 * CASE + + CAST( NULL AS SIGNED ) WHEN - + 8 * - 97 * 1 THEN - 2 WHEN - 82 + + NULLIF ( - - 79, - 34 * - 56 + - + NULLIF ( ( - - 24 ), - MIN( - ( - ( 15 ) ) ) ) - 17 * + 89 ) THEN - 90 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 13 + - - ( + ( - 27 ) ) + 91 + - COALESCE ( 71, - 31 + + 78 ) + - 27 * CASE + + CAST ( NULL AS INTEGER ) WHEN - + 8 * - 97 * 1 THEN - 2 WHEN - 82 + + NULLIF ( - - 79, - 34 * - 56 + - + NULLIF ( ( - - 24 ), - MIN ( - ( - ( 15 ) ) ) ) - 17 * + 89 ) THEN - 90 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT ALL ( 90 ) DIV + 39 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL ( 90 ) / + 39 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT + 6 DIV + ( 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT + 6 / + ( 51 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT NULLIF ( - - 86, - CASE WHEN NOT NULL BETWEEN - 14 AND + 30 OR ( ( - 98 ) <> + CAST( 88 AS SIGNED ) ) THEN NULL ELSE + COALESCE ( 68, 57 DIV 48, - + 24 ) + NULLIF ( 84, - 70 DIV + + 21 DIV - + 99 + - 68 + 84 + + 27 + COUNT( * ) * ( + 18 * - 97 ) ) END DIV + 49 ) DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT NULLIF ( - - 86, - CASE WHEN NOT NULL BETWEEN - 14 AND + 30 OR ( ( - 98 ) <> + CAST ( 88 AS INTEGER ) ) THEN NULL ELSE + COALESCE ( 68, 57 / 48, - + 24 ) + NULLIF ( 84, - 70 / + + 21 / - + 99 + - 68 + 84 + + 27 + COUNT ( * ) * ( + 18 * - 97 ) ) END / + 49 ) / 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT ALL 47 * - + CASE + + CAST( NULL AS SIGNED ) WHEN + - 21 - - 17 THEN NULL WHEN + + 70 THEN - NULLIF ( NULLIF ( - 53, - 30 * + + 18 ), - - 59 ) + + 92 + + 54 * - + 71 ELSE COUNT( * ) * + 15 END * + 27
----
-19035

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 47 * - + CASE + + CAST ( NULL AS INTEGER ) WHEN + - 21 - - 17 THEN NULL WHEN + + 70 THEN - NULLIF ( NULLIF ( - 53, - 30 * + + 18 ), - - 59 ) + + 92 + + 54 * - + 71 ELSE COUNT ( * ) * + 15 END * + 27
----
-19035

query I rowsort
SELECT - 53 * - 37 AS col0
----
1961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT 20 * NULLIF ( - CAST( NULL AS SIGNED ), MIN( + 26 ) + COALESCE ( - - 92, + + 68 + - + 67, - 58, - + 28 ) * - COUNT( * ) / 79 * - CASE 93 WHEN + + 70 * - 59 + + 51 THEN CASE 68 WHEN - 50 * 50 THEN + ( + 74 ) * + 16 ELSE + + AVG ( DISTINCT - 37 ) END * - 90 END * - 18 ) + - ( COUNT( ALL + 68 ) + 73 * COALESCE ( - 57 * 17, 36 * COALESCE ( + 47, - 72 * - 74, + ( - COUNT( ALL + CASE WHEN 34 BETWEEN 6 AND 43 THEN NULL WHEN NULL NOT IN ( 34 ) THEN NULL ELSE - 96 * 78 END ) ) ), - 10 / - 48 + 50 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT 20 * NULLIF ( - CAST ( NULL AS INTEGER ), MIN ( + 26 ) + COALESCE ( - - 92, + + 68 + - + 67, - 58, - + 28 ) * - COUNT ( * ) / 79 * - CASE 93 WHEN + + 70 * - 59 + + 51 THEN CASE 68 WHEN - 50 * 50 THEN + ( + 74 ) * + 16 ELSE + + AVG ( DISTINCT - 37 ) END * - 90 END * - 18 ) + - ( COUNT ( ALL + 68 ) + 73 * COALESCE ( - 57 * 17, 36 * COALESCE ( + 47, - 72 * - 74, + ( - COUNT ( ALL + CASE WHEN 34 BETWEEN 6 AND 43 THEN NULL WHEN NULL NOT IN ( 34 ) THEN NULL ELSE - 96 * 78 END ) ) ), - 10 / - 48 + 50 ) ) AS col1
----
NULL

query I rowsort
SELECT + CASE - ( + ( + 3 ) ) WHEN + ( 74 ) + 63 / - 57 THEN NULL ELSE - + 40 END
----
-40

query I rowsort
SELECT + 35 + + 45 col0
----
80

query I rowsort
SELECT ALL NULLIF ( 80, - 47 ) * - 98
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL - CASE + 75 WHEN 11 THEN + MAX( - 35 ) * + - ( + + 38 ) * - 37 END * - + 49 + + 42 + - COALESCE ( 44, 36 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL - CASE + 75 WHEN 11 THEN + MAX ( - 35 ) * + - ( + + 38 ) * - 37 END * - + 49 + + 42 + - COALESCE ( 44, 36 ) * 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT - NULLIF ( + COALESCE ( - ( 56 ), + COUNT( * ) ), CAST( - + COUNT( * ) AS SIGNED ) * + - 88 )
----
56

skipif mysql # not compatible
query I rowsort label-6112
SELECT - NULLIF ( + COALESCE ( - ( 56 ), + COUNT ( * ) ), CAST ( - + COUNT ( * ) AS INTEGER ) * + - 88 )
----
56

query I rowsort
SELECT ALL + ( + 99 ) * 30 * + 14 + - ( + - 27 ) * + - 78
----
39474

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT DISTINCT + - MIN( + ( + + 21 ) ) + - - 69 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT + - MIN ( + ( + + 21 ) ) + - - 69 AS col2
----
48

query I rowsort
SELECT + 60 - ( - 44 ) AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6116
SELECT ALL 99 + - 7, - CAST( NULL AS SIGNED ) * - 8 col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6116
SELECT ALL 99 + - 7, - CAST ( NULL AS INTEGER ) * - 8 col2
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6117
SELECT + CASE - 76 WHEN 24 THEN + 71 + - 36 * + 83 WHEN CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL END - - 97 * - 43 + - + 74 AS col0, 29 * + + 79 * 6 * - + 54 * - - NULLIF ( 75, - COUNT( * ) + + + 18 ) col0
----
NULL
-55671300

skipif mysql # not compatible
query II rowsort label-6117
SELECT + CASE - 76 WHEN 24 THEN + 71 + - 36 * + 83 WHEN CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL END - - 97 * - 43 + - + 74 AS col0, 29 * + + 79 * 6 * - + 54 * - - NULLIF ( 75, - COUNT ( * ) + + + 18 ) col0
----
NULL
-55671300

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - - COALESCE ( + + 56, + ( - - 93 ) * + SUM( DISTINCT - 43 ) + + COUNT( * ) * - 25 )
----
56

skipif mysql # not compatible
query I rowsort label-6118
SELECT - - COALESCE ( + + 56, + ( - - 93 ) * + SUM ( DISTINCT - 43 ) + + COUNT ( * ) * - 25 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT - 5 + - + COUNT( DISTINCT + ( - 81 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - 5 + - + COUNT ( DISTINCT + ( - 81 ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + + SUM( + + 99 ) + - 11
----
88

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + + SUM ( + + 99 ) + - 11
----
88

query II rowsort
SELECT DISTINCT 83 + - 53 AS col0, + 67 + + + 94 + - 39 AS col0
----
30
122

query I rowsort
SELECT + - 92 - + 93
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6123
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1, - CASE + 67 WHEN 39 THEN - NULLIF ( 45, + + 86 ) + + CAST( NULL AS SIGNED ) WHEN + + 82 * - COALESCE ( - ( COUNT( * ) ), CASE + 86 WHEN + 92 THEN + + CASE 15 WHEN NULLIF ( - + 66, + 61 ) + + MIN( ALL - 89 ) * 34 THEN + - 37 / ( + NULLIF ( 55, - 35 ) ) + + 2 * COALESCE ( + 62, 51 ) WHEN + 96 THEN 40 * NULLIF ( + 80 / - 37, 1 ) + - 25 * 58 ELSE 14 + - 25 / - 25 END WHEN 33 THEN 68 * + 79 WHEN CAST( 84 AS SIGNED ) THEN NULL ELSE NULL END ) THEN CAST( NULL AS SIGNED ) END * NULLIF ( - ( - 89 ), ( + COUNT( * ) ) * 51 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6123
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - CASE + 67 WHEN 39 THEN - NULLIF ( 45, + + 86 ) + + CAST ( NULL AS INTEGER ) WHEN + + 82 * - COALESCE ( - ( COUNT ( * ) ), CASE + 86 WHEN + 92 THEN + + CASE 15 WHEN NULLIF ( - + 66, + 61 ) + + MIN ( ALL - 89 ) * 34 THEN + - 37 / ( + NULLIF ( 55, - 35 ) ) + + 2 * COALESCE ( + 62, 51 ) WHEN + 96 THEN 40 * NULLIF ( + 80 / - 37, 1 ) + - 25 * 58 ELSE 14 + - 25 / - 25 END WHEN 33 THEN 68 * + 79 WHEN CAST ( 84 AS INTEGER ) THEN NULL ELSE NULL END ) THEN CAST ( NULL AS INTEGER ) END * NULLIF ( - ( - 89 ), ( + COUNT ( * ) ) * 51 )
----
-1
NULL

query I rowsort
SELECT DISTINCT 2 + + - ( - 95 )
----
97

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

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

query II rowsort
SELECT DISTINCT + 79 * - 66, 92 AS col2
----
-5214
92

query II rowsort
SELECT ALL + - 51 * + - 34, + 9 AS col0
----
1734
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6128
SELECT + 3 + - ( - + 80 ) + + 26 + - 43 * CASE NULLIF ( 58, + 35 + - 76 * + 90 * + SUM( ALL - ( - 77 ) ) ) WHEN - COUNT( * ) THEN AVG ( ALL - 9 ) END * - + CASE + + 1 WHEN - + 9 THEN + 59 END * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT + 3 + - ( - + 80 ) + + 26 + - 43 * CASE NULLIF ( 58, + 35 + - 76 * + 90 * + SUM ( ALL - ( - 77 ) ) ) WHEN - COUNT ( * ) THEN AVG ( ALL - 9 ) END * - + CASE + + 1 WHEN - + 9 THEN + 59 END * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - + COUNT( * ) + 81 AS col2, + NULLIF ( - + 1, + 36 * MAX( + 75 ) * - 27 - - 83 ) + 70 * 99 + + 4
----
80
6933

skipif mysql # not compatible
query II rowsort label-6129
SELECT - + COUNT ( * ) + 81 AS col2, + NULLIF ( - + 1, + 36 * MAX ( + 75 ) * - 27 - - 83 ) + 70 * 99 + + 4
----
80
6933

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT + 87 DIV 31 - + 7 + 87 - ( + 25 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + 87 / 31 - + 7 + 87 - ( + 25 ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT - CASE CASE - CASE WHEN ( NULL ) IN ( - - 20 ) THEN 18 * MIN( + 92 ) WHEN 79 / + 87 IS NOT NULL THEN 20 ELSE 41 END WHEN - 35 + 82 - - ( + 20 ) THEN + 2 WHEN + + COUNT( * ) * - - MAX( ALL 65 ) THEN NULL WHEN + 99 THEN - + 19 / CAST( NULL AS SIGNED ) + MAX( 60 ) + - COUNT( * ) END WHEN - COUNT( * ) THEN NULL WHEN + 16 + + COUNT( * ) * - 17 THEN ( 24 ) END / COUNT( * ) + + ( ( + 60 ) - 84 * 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT - CASE CASE - CASE WHEN ( NULL ) IN ( - - 20 ) THEN 18 * MIN ( + 92 ) WHEN 79 / + 87 IS NOT NULL THEN 20 ELSE 41 END WHEN - 35 + 82 - - ( + 20 ) THEN + 2 WHEN + + COUNT ( * ) * - - MAX ( ALL 65 ) THEN NULL WHEN + 99 THEN - + 19 / CAST ( NULL AS INTEGER ) + MAX ( 60 ) + - COUNT ( * ) END WHEN - COUNT ( * ) THEN NULL WHEN + 16 + + COUNT ( * ) * - 17 THEN ( 24 ) END / COUNT ( * ) + + ( ( + 60 ) - 84 * 14 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT DISTINCT + SUM( DISTINCT + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + SUM ( DISTINCT + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) - - 90
----
89

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) - - 90
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT - CAST( - 55 AS SIGNED ) * - 15 + 93 col1
----
-732

skipif mysql # not compatible
query I rowsort label-6135
SELECT - CAST ( - 55 AS INTEGER ) * - 15 + 93 col1
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT COUNT( * ) * + - 41 * + - 34 AS col1
----
1394

skipif mysql # not compatible
query I rowsort label-6136
SELECT COUNT ( * ) * + - 41 * + - 34 AS col1
----
1394

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT + ( + 17 ) * + COUNT( * ) - + 15 DIV - + 13 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6138
SELECT + ( + 17 ) * + COUNT ( * ) - + 15 / - + 13 AS col1
----
18

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

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

query II rowsort
SELECT + 44, - 94 AS col1
----
44
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT + 6 * NULLIF ( + 31, + + COUNT( * ) )
----
186

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT + 6 * NULLIF ( + 31, + + COUNT ( * ) )
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL - CASE + 56 WHEN - - 82 + - 0 THEN - - MIN( ALL + - 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - CASE + 56 WHEN - - 82 + - 0 THEN - - MIN ( ALL + - 78 ) END
----
NULL

query I rowsort
SELECT 9 * + 8
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT 45 * - CAST( + - MIN( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT 45 * - CAST ( + - MIN ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 16 - + 43 + + COUNT( * ) - + 83
----
-109

skipif mysql # not compatible
query I rowsort label-6145
SELECT 16 - + 43 + + COUNT ( * ) - + 83
----
-109

query I rowsort
SELECT ALL + 61 + + 95
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL 93 + + 94 * + SUM( + - 53 ) * + ( - 90 ) * - 98 AS col2
----
-43941147

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL 93 + + 94 * + SUM ( + - 53 ) * + ( - 90 ) * - 98 AS col2
----
-43941147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6148
SELECT DISTINCT - CASE 40 WHEN + MIN( ALL + 48 ) * - + 85 THEN + NULLIF ( + - 86, + 5 / 93 / + 50 ) * - CAST( NULL AS SIGNED ) / + + ( - 1 ) END AS col2, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-6148
SELECT DISTINCT - CASE 40 WHEN + MIN ( ALL + 48 ) * - + 85 THEN + NULLIF ( + - 86, + 5 / 93 / + 50 ) * - CAST ( NULL AS INTEGER ) / + + ( - 1 ) END AS col2, + 78
----
NULL
78

query II rowsort
SELECT + 67, + 7 col0
----
67
7

query I rowsort
SELECT - ( + + 6 ) + + + 79 * - 21 * + 2 - + 53
----
-3377

query I rowsort
SELECT ALL - 67 + - - COALESCE ( 89, 73 ) AS col0
----
22

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

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

query I rowsort
SELECT + 27 - - - ( - + ( + - 37 ) ) + - 45
----
-55

query II rowsort
SELECT 80 col1, - 78
----
80
-78

query I rowsort
SELECT - + 42 * + - 41 + + COALESCE ( - - 35, - 18, + 58 * - 1 * - 12 + + ( + + 85 ) * + 33 )
----
1757

query I rowsort
SELECT - + 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + 85 + - 28 + - MIN( DISTINCT - 61 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-6157
SELECT + 85 + - 28 + - MIN ( DISTINCT - 61 ) AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 54 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 54 / + 79
----
0

query I rowsort
SELECT ALL + ( + - 23 ) col2
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT ALL 90 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 90 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 82 * + - 53
----
-4346

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

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

query I rowsort
SELECT 92 * + 8
----
736

query I rowsort
SELECT - 43 * - 78 - 86
----
3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6166
SELECT DISTINCT + 56, MIN( - 76 ) DIV - - 9 + + 48 AS col0
----
56
40

skipif mysql # not compatible
query II rowsort label-6166
SELECT DISTINCT + 56, MIN ( - 76 ) / - - 9 + + 48 AS col0
----
56
40

query II rowsort
SELECT ALL 48 AS col1, 20 col1
----
48
20

onlyif mysql # DIV for integer division: 
query II rowsort label-6168
SELECT + 10 * - 14 * - 36, 59 DIV + 7 AS col1
----
5040
8

skipif mysql # not compatible
query II rowsort label-6168
SELECT + 10 * - 14 * - 36, 59 / + 7 AS col1
----
5040
8

query I rowsort
SELECT DISTINCT 58 * + 11 AS col2
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ( - ( - COUNT( - 96 ) ) ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-6170
SELECT ( - ( - COUNT ( - 96 ) ) ) + 77
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT 94 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT 94 / + 81
----
1

query I rowsort
SELECT 0 + 39 + + 84
----
123

query I rowsort
SELECT DISTINCT - 82 * - 13
----
1066

query I rowsort
SELECT DISTINCT 37 * 5
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT 19 DIV - + 55
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT 19 / - + 55
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT SUM( DISTINCT + 69 ) + + + 51
----
120

skipif mysql # not compatible
query I rowsort label-6177
SELECT SUM ( DISTINCT + 69 ) + + + 51
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT 19 * - - 46 - - COUNT( * ) col1
----
875

skipif mysql # not compatible
query I rowsort label-6178
SELECT 19 * - - 46 - - COUNT ( * ) col1
----
875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT - CASE + + 28 WHEN CASE + 69 WHEN - 81 THEN + 45 - - MAX( + 77 ) ELSE - + 63 + + - 20 END THEN NULL WHEN - 21 THEN NULL ELSE + 86 END * - COUNT( * ) + - CASE - COUNT( ALL + - 21 ) WHEN - - 38 THEN NULL WHEN + 34 THEN + + 82 * + + 24 ELSE - - 15 END + - 36 DIV COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6179
SELECT - CASE + + 28 WHEN CASE + 69 WHEN - 81 THEN + 45 - - MAX ( + 77 ) ELSE - + 63 + + - 20 END THEN NULL WHEN - 21 THEN NULL ELSE + 86 END * - COUNT ( * ) + - CASE - COUNT ( ALL + - 21 ) WHEN - - 38 THEN NULL WHEN + 34 THEN + + 82 * + + 24 ELSE - - 15 END + - 36 / COUNT ( * )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT 35 + + 42 - + 75 * + - NULLIF ( 53, - 90 * + ( + 27 ) - - CAST( NULL AS SIGNED ) ) AS col2
----
4052

skipif mysql # not compatible
query I rowsort label-6180
SELECT 35 + + 42 - + 75 * + - NULLIF ( 53, - 90 * + ( + 27 ) - - CAST ( NULL AS INTEGER ) ) AS col2
----
4052

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT NULLIF ( + 6, + + 85 DIV + + 74 + 28 + - 57 ) DIV 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-6181
SELECT NULLIF ( + 6, + + 85 / + + 74 + 28 + - 57 ) / 59 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - 93 + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - 93 + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT 56 DIV 4 + - COUNT( DISTINCT - 34 )
----
13

skipif mysql # not compatible
query I rowsort label-6183
SELECT 56 / 4 + - COUNT ( DISTINCT - 34 )
----
13

query I rowsort
SELECT 35 + - 14 AS col0
----
21

query I rowsort
SELECT ALL - NULLIF ( + 62, - 16 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6186
SELECT DISTINCT - MAX( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT - MAX ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 15 * + + 46 AS col2
----
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL + COALESCE ( + 5, - - 31 + NULLIF ( - - CAST( NULL AS SIGNED ), + + 67 ) ) + 76 + + 41 * + 13 * - NULLIF ( - 5, - COUNT( * ) ) + 49
----
2795

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + COALESCE ( + 5, - - 31 + NULLIF ( - - CAST ( NULL AS INTEGER ), + + 67 ) ) + 76 + + 41 * + 13 * - NULLIF ( - 5, - COUNT ( * ) ) + 49
----
2795

query I rowsort
SELECT DISTINCT - 75 + + - 7
----
-82

query II rowsort
SELECT 58 * - 17 - + 4 * - 91 + - - 14 AS col1, 20
----
-608
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL - COALESCE ( + COUNT( * ), + ( + 77 ) * - COUNT( - + 27 ) * - 47, + 4 * 1 + + COALESCE ( - 51, - + 96 ) ) + + 11 + - 25 * + 28
----
-690

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - COALESCE ( + COUNT ( * ), + ( + 77 ) * - COUNT ( - + 27 ) * - 47, + 4 * 1 + + COALESCE ( - 51, - + 96 ) ) + + 11 + - 25 * + 28
----
-690

query II rowsort
SELECT DISTINCT - CASE - 91 WHEN 51 THEN + 31 WHEN + 50 * - 44 THEN NULL ELSE - + 80 END AS col1, 83 AS col0
----
80
83

query I rowsort
SELECT ALL + - 85 + 42 AS col2
----
-43

query I rowsort
SELECT DISTINCT - 78 - - 77
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6195
SELECT ALL - - 72 * - CASE 95 WHEN + 38 * + 0 * + + 50 + 99 THEN 28 WHEN + - MIN( ALL - ( - 64 ) ) THEN NULL WHEN + + 73 THEN - - 10 * + 54 END, 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6195
SELECT ALL - - 72 * - CASE 95 WHEN + 38 * + 0 * + + 50 + 99 THEN 28 WHEN + - MIN ( ALL - ( - 64 ) ) THEN NULL WHEN + + 73 THEN - - 10 * + 54 END, 29 AS col0
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT - COUNT( * ) - - 47
----
46

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT - COUNT ( * ) - - 47
----
46

query I rowsort
SELECT + 27 * + - 46 * + - 88 AS col2
----
109296

query II rowsort
SELECT 7 - + 65, + 32 AS col1
----
-58
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + 41 * MAX( DISTINCT 12 )
----
492

skipif mysql # not compatible
query I rowsort label-6199
SELECT + 41 * MAX ( DISTINCT 12 )
----
492

query I rowsort
SELECT - ( - + 15 ) + 65 AS col1
----
80

query I rowsort
SELECT ALL 24 * - 64 + + - 0
----
-1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6202
SELECT - 94 DIV COUNT( * ) - + 3 * 83 * + - ( COUNT( * ) ) + 50 * - 67 AS col1
----
-3195

skipif mysql # not compatible
query I rowsort label-6202
SELECT - 94 / COUNT ( * ) - + 3 * 83 * + - ( COUNT ( * ) ) + 50 * - 67 AS col1
----
-3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT 76 - ( - CAST( 67 AS SIGNED ) )
----
143

skipif mysql # not compatible
query I rowsort label-6203
SELECT 76 - ( - CAST ( 67 AS INTEGER ) )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT 4 - COALESCE ( + - 69, + 81 ) + - - 21 * - COUNT( * ) * - - 4 + + COALESCE ( + 54, + + 46 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6204
SELECT 4 - COALESCE ( + - 69, + 81 ) + - - 21 * - COUNT ( * ) * - - 4 + + COALESCE ( + 54, + + 46 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT 10 * + - ( + - COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6205
SELECT 10 * + - ( + - COUNT ( * ) ) AS col1
----
10

query I rowsort
SELECT ALL 96 + ( - 9 ) AS col1
----
87

query II rowsort
SELECT DISTINCT 81 AS col0, + 74 + - 75 * - 82
----
81
6224

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + 54 * - MIN( - 44 ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-6208
SELECT + 54 * - MIN ( - 44 ) AS col0
----
2376

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT + 60 + 74 + 15 + - 51 * 53 + 91 - + 66 + - COUNT( * ), + 84 * + + 40 * 3 * + - 88 AS col1
----
-2530
-887040

skipif mysql # not compatible
query II rowsort label-6209
SELECT + 60 + 74 + 15 + - 51 * 53 + 91 - + 66 + - COUNT ( * ), + 84 * + + 40 * 3 * + - 88 AS col1
----
-2530
-887040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT CASE - NULLIF ( - 94, 69 ) WHEN + 15 + CAST( NULL AS SIGNED ) THEN - 6 WHEN - 33 * 95 THEN - 93 ELSE - - 48 END AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6210
SELECT CASE - NULLIF ( - 94, 69 ) WHEN + 15 + CAST ( NULL AS INTEGER ) THEN - 6 WHEN - 33 * 95 THEN - 93 ELSE - - 48 END AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT - 24 DIV - MIN( DISTINCT - 97 ) + - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6211
SELECT - 24 / - MIN ( DISTINCT - 97 ) + - 56 AS col0
----
-56

query I rowsort
SELECT + 24 * - 82
----
-1968

query I rowsort
SELECT + NULLIF ( + 34, - 13 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT ALL 85 * - 61 + + COUNT( * ) * + - SUM( DISTINCT CAST( - ( + + 33 ) AS SIGNED ) ) AS col0
----
-5152

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL 85 * - 61 + + COUNT ( * ) * + - SUM ( DISTINCT CAST ( - ( + + 33 ) AS INTEGER ) ) AS col0
----
-5152

query I rowsort
SELECT ALL + 34 * - 60
----
-2040

query I rowsort
SELECT + 88 - - 13
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT - COUNT( + + 57 ) * + 99 * 99 * 76, + COUNT( 32 ) AS col1
----
-744876
1

skipif mysql # not compatible
query II rowsort label-6217
SELECT - COUNT ( + + 57 ) * + 99 * 99 * 76, + COUNT ( 32 ) AS col1
----
-744876
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT NULLIF ( + + CASE - 75 WHEN - MIN( DISTINCT - 35 ) THEN - CAST( + + 47 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + - ( + + 4 ) WHEN - NULLIF ( + - 98, 65 * 7 + - 98 * - 72 ) + + - 5 THEN + 76 * COUNT( * ) END, - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT NULLIF ( + + CASE - 75 WHEN - MIN ( DISTINCT - 35 ) THEN - CAST ( + + 47 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + - ( + + 4 ) WHEN - NULLIF ( + - 98, 65 * 7 + - 98 * - 72 ) + + - 5 THEN + 76 * COUNT ( * ) END, - + 76 )
----
NULL

query I rowsort
SELECT + CASE 62 WHEN - 92 THEN - - 89 ELSE NULL END
----
NULL

query I rowsort
SELECT + 49 * 35 col2
----
1715

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL 23 * - 76 + - 90 DIV - 2 AS col0
----
-1703

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 23 * - 76 + - 90 / - 2 AS col0
----
-1703

query I rowsort
SELECT DISTINCT + 33 * 3 - - NULLIF ( - - 33, 20 ) col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT ALL + 49 * 13 * + 74 + + 41 * + COUNT( * )
----
47179

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + 49 * 13 * + 74 + + 41 * + COUNT ( * )
----
47179

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT ALL + 85 DIV 43 * 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + 85 / 43 * 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT - - MIN( + 28 ) - + + 1 col2, 44
----
27
44

skipif mysql # not compatible
query II rowsort label-6225
SELECT - - MIN ( + 28 ) - + + 1 col2, 44
----
27
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6226
SELECT + 53 * 3 + - - MIN( - + 19 ) * - 93 + + 17, - 16 DIV 5 * + + 61 AS col0
----
1943
-183

skipif mysql # not compatible
query II rowsort label-6226
SELECT + 53 * 3 + - - MIN ( - + 19 ) * - 93 + + 17, - 16 / 5 * + + 61 AS col0
----
1943
-183

query I rowsort
SELECT + - 19 + + + 83
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT - 25 - - COALESCE ( + - 9, - MIN( + 22 ) DIV - 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 25 - - COALESCE ( + - 9, - MIN ( + 22 ) / - 19 )
----
-34

query I rowsort
SELECT - 65 * + 99
----
-6435

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - COUNT( * ) - - - ( ( 72 ) ) * ( 70 )
----
-5041

skipif mysql # not compatible
query I rowsort label-6231
SELECT - COUNT ( * ) - - - ( ( 72 ) ) * ( 70 )
----
-5041

query I rowsort
SELECT DISTINCT + - 95 * + + 85
----
-8075

query I rowsort
SELECT DISTINCT + ( - COALESCE ( 48, 78 ) ) AS col0
----
-48

query II rowsort
SELECT DISTINCT + 27 AS col0, 90
----
27
90

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

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

query I rowsort
SELECT DISTINCT + 39 * 62 * + 30 AS col0
----
72540

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT - + 12 DIV - ( - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT - + 12 / - ( - 18 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - 78 + COUNT( * ) + - - 13
----
-64

skipif mysql # not compatible
query I rowsort label-6240
SELECT - 78 + COUNT ( * ) + - - 13
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT ALL + MAX( DISTINCT - 49 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + MAX ( DISTINCT - 49 ) / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - 54 + - 38 + - + 85 * 42 * + COUNT( * )
----
-3662

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 54 + - 38 + - + 85 * 42 * + COUNT ( * )
----
-3662

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT + 60 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 60 / - + 79
----
0

query II rowsort
SELECT DISTINCT ( + 61 ) * - - NULLIF ( - - 50, + + 1 ) * 20, - 23 AS col0
----
61000
-23

query I rowsort
SELECT DISTINCT ( - 58 ) AS col2
----
-58

query I rowsort
SELECT + 0 + + ( 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT ALL + COUNT( * ) AS col0, 23 + - 85
----
1
-62

skipif mysql # not compatible
query II rowsort label-6247
SELECT ALL + COUNT ( * ) AS col0, 23 + - 85
----
1
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT ALL + 24 DIV - 19 + - + 40 DIV 85 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + 24 / - 19 + - + 40 / 85 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT 93 DIV + 40 + 65 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6249
SELECT 93 / + 40 + 65 AS col1
----
67

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

skipif mysql # not compatible
query II rowsort label-6250
SELECT CAST ( NULL AS INTEGER ), - 71 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT + ( + CASE - 18 WHEN - - 28 * - 59 / - 77 + + 85 - + 11 THEN - MAX( DISTINCT + 95 ) * + + 73 * - 8 ELSE 83 + - + COUNT( * ) + 63 + + + 95 END ), 91 AS col0
----
240
91

skipif mysql # not compatible
query II rowsort label-6251
SELECT + ( + CASE - 18 WHEN - - 28 * - 59 / - 77 + + 85 - + 11 THEN - MAX ( DISTINCT + 95 ) * + + 73 * - 8 ELSE 83 + - + COUNT ( * ) + 63 + + + 95 END ), 91 AS col0
----
240
91

query I rowsort
SELECT - 64 + + 69 col0
----
5

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

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

query I rowsort
SELECT + 46 + - 44 + COALESCE ( - + 67, - - 0 ) AS col0
----
-65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + CASE 63 WHEN - 60 THEN 30 ELSE 71 END * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6257
SELECT + CASE 63 WHEN - 60 THEN 30 ELSE 71 END * - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6258
SELECT + - 0 * - - 76 * - - ( - + ( - 62 ) ) + - CAST( NULL AS DECIMAL ), - 21 AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-6258
SELECT + - 0 * - - 76 * - - ( - + ( - 62 ) ) + - CAST ( NULL AS REAL ), - 21 AS col1
----
NULL
-21

query II rowsort
SELECT ALL 79 * - - 6 AS col0, 64 * + - 18
----
474
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6260
SELECT - 94 col1, CASE 67 WHEN + COALESCE ( - 44, - 32 * - NULLIF ( + 7, 91 ) ) THEN MAX( - 92 ) WHEN - 94 / - 59 + + 72 + + CAST( + 62 AS SIGNED ) * 55 * + 77 * - COUNT( * ) THEN NULL ELSE NULL END
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-6260
SELECT - 94 col1, CASE 67 WHEN + COALESCE ( - 44, - 32 * - NULLIF ( + 7, 91 ) ) THEN MAX ( - 92 ) WHEN - 94 / - 59 + + 72 + + CAST ( + 62 AS INTEGER ) * 55 * + 77 * - COUNT ( * ) THEN NULL ELSE NULL END
----
-94
NULL

query I rowsort
SELECT - 23 + + NULLIF ( - ( 69 ), - + 7 + - 50 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6262
SELECT + - 82 * - 41 + - NULLIF ( + + COUNT( * ), + 30 * + 85 + - 45 - ( - COALESCE ( + + 68, + 75 ) ) ) AS col2, 50 + - CAST( NULL AS SIGNED ) AS col1
----
3361
NULL

skipif mysql # not compatible
query II rowsort label-6262
SELECT + - 82 * - 41 + - NULLIF ( + + COUNT ( * ), + 30 * + 85 + - 45 - ( - COALESCE ( + + 68, + 75 ) ) ) AS col2, 50 + - CAST ( NULL AS INTEGER ) AS col1
----
3361
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT ( - COUNT( * ) ) * 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT ( - COUNT ( * ) ) * 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT - + 13 AS col1, + ( + COUNT( * ) ) * 23 AS col2
----
-13
23

skipif mysql # not compatible
query II rowsort label-6264
SELECT - + 13 AS col1, + ( + COUNT ( * ) ) * 23 AS col2
----
-13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT + SUM( DISTINCT - + 33 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + SUM ( DISTINCT - + 33 ) col0
----
-33

query I rowsort
SELECT DISTINCT + 35 * + 82 + 86 AS col1
----
2956

query I rowsort
SELECT 6 * + 37 + - 89 * 96 col0
----
-8322

onlyif mysql # aggregate syntax: 
query III rowsort label-6268
SELECT 29 AS col1, MAX( DISTINCT 96 ) + - 78 AS col2, - COUNT( * ) + + - 20 + COUNT( * ) + 40 * 22 + + - 42 AS col1
----
29
18
818

skipif mysql # not compatible
query III rowsort label-6268
SELECT 29 AS col1, MAX ( DISTINCT 96 ) + - 78 AS col2, - COUNT ( * ) + + - 20 + COUNT ( * ) + 40 * 22 + + - 42 AS col1
----
29
18
818

query I rowsort
SELECT 94 - - 49
----
143

query I rowsort
SELECT DISTINCT + 78 + 57 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT 39 * - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6271
SELECT 39 * - COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT ALL + COUNT( + 78 ) + - 38 DIV + 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + COUNT ( + 78 ) + - 38 / + 31 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT + MIN( ALL 63 ) + 77
----
140

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT + MIN ( ALL 63 ) + 77
----
140

query I rowsort
SELECT 29 - + 95 AS col1
----
-66

query I rowsort
SELECT ALL + 61 + + 8 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL - COALESCE ( + + 40, COALESCE ( - + 27, + ( 50 ) + + 60 + MIN( DISTINCT 77 ), - ( 17 ) ) ) + - 35 col2
----
-75

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - COALESCE ( + + 40, COALESCE ( - + 27, + ( 50 ) + + 60 + MIN ( DISTINCT 77 ), - ( 17 ) ) ) + - 35 col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6277
SELECT DISTINCT + COUNT( * ) - - ( CASE 98 WHEN + CASE - 41 WHEN + 65 THEN - CAST( - COUNT( * ) AS SIGNED ) - + 9 END + - CASE + 43 WHEN + - COUNT( * ) - + 92 - - ( + 29 ) - + + 81 THEN 31 END THEN NULL ELSE + 53 END )
----
54

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + COUNT ( * ) - - ( CASE 98 WHEN + CASE - 41 WHEN + 65 THEN - CAST ( - COUNT ( * ) AS INTEGER ) - + 9 END + - CASE + 43 WHEN + - COUNT ( * ) - + 92 - - ( + 29 ) - + + 81 THEN 31 END THEN NULL ELSE + 53 END )
----
54

query II rowsort
SELECT 19 * + 82 AS col1, + 77 AS col2
----
1558
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT CASE + 40 WHEN 96 THEN + 26 END + COUNT( * ) col1, - 72 * 45 AS col2
----
NULL
-3240

skipif mysql # not compatible
query II rowsort label-6279
SELECT CASE + 40 WHEN 96 THEN + 26 END + COUNT ( * ) col1, - 72 * 45 AS col2
----
NULL
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT DISTINCT - 16 DIV COALESCE ( NULLIF ( 80, + - COUNT( * ) ), COUNT( * ), + - ( - 27 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - 16 / COALESCE ( NULLIF ( 80, + - COUNT ( * ) ), COUNT ( * ), + - ( - 27 ) ) col2
----
0

query I rowsort
SELECT ALL - 98 * + 47 col0
----
-4606

onlyif mysql # DIV for integer division: 
query II rowsort label-6282
SELECT 50 DIV 47, + 34 AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-6282
SELECT 50 / 47, + 34 AS col0
----
1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT DISTINCT - COUNT( * ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - COUNT ( * ) / 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT - COALESCE ( - 56, + 76 * COUNT( * ) ) * + + 20 + - ( + - 72 ) * - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - COALESCE ( - 56, + 76 * COUNT ( * ) ) * + + 20 + - ( + - 72 ) * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT + - 95 DIV + 4 + 43 + 32
----
52

skipif mysql # not compatible
query I rowsort label-6285
SELECT + - 95 / + 4 + 43 + 32
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT 36 - - MAX( DISTINCT + 75 ) + 7 + + 56
----
174

skipif mysql # not compatible
query I rowsort label-6286
SELECT 36 - - MAX ( DISTINCT + 75 ) + 7 + + 56
----
174

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6288
SELECT DISTINCT - - 48 + - 50 + 32 + + COUNT( * ) DIV + + 55 * - COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - - 48 + - 50 + 32 + + COUNT ( * ) / + + 55 * - COUNT ( * ) col2
----
30

query I rowsort
SELECT ALL 13 * + 24 * + 94 * COALESCE ( + CASE + AVG ( - 72 ) WHEN - - ( + 86 ) + - 52 * + - 6 THEN - 59 WHEN + - 3 + 42 THEN NULL ELSE NULL END, + 86 ) + + 54 AS col0
----
2522262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT - CAST( NULL AS SIGNED ) * - 95 + - 49 - - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT - CAST ( NULL AS INTEGER ) * - 95 + - 49 - - + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL COUNT( ALL 41 ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL COUNT ( ALL 41 ) + + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT 10 * - + 60 + + 66 * 48 + - 38 DIV - 89 AS col2
----
2568

skipif mysql # not compatible
query I rowsort label-6292
SELECT 10 * - + 60 + + 66 * 48 + - 38 / - 89 AS col2
----
2568

query I rowsort
SELECT ALL 37 * - - 45 AS col1
----
1665

query I rowsort
SELECT ALL ( 92 ) + 38 * - 42 AS col2
----
-1504

query II rowsort
SELECT 81 AS col1, 53 AS col1
----
81
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT ALL - 2 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - 2 / 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT ALL 7 DIV + 69 * - 88
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL 7 / + 69 * - 88
----
0

query I rowsort
SELECT ( + 7 ) + - 7 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6300
SELECT ALL 41 AS col2, 73 DIV 90 AS col2
----
41
0

skipif mysql # not compatible
query II rowsort label-6300
SELECT ALL 41 AS col2, 73 / 90 AS col2
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT COUNT( * ) + + - ( + + 86 ) * - 83 + - - 2
----
7141

skipif mysql # not compatible
query I rowsort label-6301
SELECT COUNT ( * ) + + - ( + + 86 ) * - 83 + - - 2
----
7141

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT 64 * - MAX( 72 )
----
-4608

skipif mysql # not compatible
query I rowsort label-6302
SELECT 64 * - MAX ( 72 )
----
-4608

query II rowsort
SELECT 24 AS col2, 17 AS col2
----
24
17

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

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + 30 * COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT - MIN( - - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6305
SELECT - MIN ( - - 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT 53 * + - CASE - 84 WHEN - 89 / CASE - CAST( NULL AS SIGNED ) WHEN 19 * - COALESCE ( + 21, + - 58 + + 72, + 27 ) * - COUNT( * ) + - 27 + 86 THEN - 13 * - 82 ELSE NULL END * - - 85 THEN - + MIN( DISTINCT 50 ) + + 31 * - 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT 53 * + - CASE - 84 WHEN - 89 / CASE - CAST ( NULL AS INTEGER ) WHEN 19 * - COALESCE ( + 21, + - 58 + + 72, + 27 ) * - COUNT ( * ) + - 27 + 86 THEN - 13 * - 82 ELSE NULL END * - - 85 THEN - + MIN ( DISTINCT 50 ) + + 31 * - 44 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6307
SELECT DISTINCT 58 col2, ( 66 ) DIV - - 81 * - 95 + 50 col0
----
58
50

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT 58 col2, ( 66 ) / - - 81 * - 95 + 50 col0
----
58
50

query I rowsort
SELECT ALL 17 * - 45 AS col1
----
-765

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT 69 + MAX( DISTINCT + - 1 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6310
SELECT 69 + MAX ( DISTINCT + - 1 ) AS col1
----
68

query II rowsort
SELECT ALL 63, 68 AS col1
----
63
68

query I rowsort
SELECT - 86 * - 99 AS col1
----
8514

query I rowsort
SELECT - 47 * - 99 + + 19
----
4672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT NULLIF ( + 3, - 47 DIV + + 67 ) * - 14 * - 10 - - 70 DIV 52 DIV - 84 - + COUNT( * ) + - 1 col1
----
418

skipif mysql # not compatible
query I rowsort label-6314
SELECT NULLIF ( + 3, - 47 / + + 67 ) * - 14 * - 10 - - 70 / 52 / - 84 - + COUNT ( * ) + - 1 col1
----
418

query I rowsort
SELECT DISTINCT + 63 * + ( 42 ) + 19
----
2665

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT ALL - 45 DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - 45 / 56 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6317
SELECT - 39 AS col0, 94 DIV + + 58 + + 27 AS col0
----
-39
28

skipif mysql # not compatible
query II rowsort label-6317
SELECT - 39 AS col0, 94 / + + 58 + + 27 AS col0
----
-39
28

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

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

query I rowsort
SELECT ALL 59 * - 31 - 44 + + 47 + - + 27 col2
----
-1853

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + COUNT( * ) * + + 95 * + + 67 + + 16 + - 64 col0
----
6317

skipif mysql # not compatible
query I rowsort label-6320
SELECT + COUNT ( * ) * + + 95 * + + 67 + + 16 + - 64 col0
----
6317

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL + 5 * COUNT( * ) + - + 16 + + 80 * ( - NULLIF ( - COUNT( * ), - 12 ) ) + + 3 + 78
----
150

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + 5 * COUNT ( * ) + - + 16 + + 80 * ( - NULLIF ( - COUNT ( * ), - 12 ) ) + + 3 + 78
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL 58 * + - 86 + 97 AS col0, MIN( DISTINCT + 13 ) * - 19 * 35 + 9
----
-4891
-8636

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL 58 * + - 86 + 97 AS col0, MIN ( DISTINCT + 13 ) * - 19 * 35 + 9
----
-4891
-8636

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT + MAX( + - ( + 45 ) ) * + 6 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT + MAX ( + - ( + 45 ) ) * + 6 AS col1
----
-270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL - + ( 84 ) * + 95 + 80 + ( + COUNT( DISTINCT - - 91 ) ) AS col0
----
-7899

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - + ( 84 ) * + 95 + 80 + ( + COUNT ( DISTINCT - - 91 ) ) AS col0
----
-7899

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT 49 * + NULLIF ( + CASE - 42 WHEN COUNT( * ) THEN NULL WHEN - 17 THEN - - 91 END, - 20 ) + - + 38 * + 67 + - SUM( - - ( 78 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT 49 * + NULLIF ( + CASE - 42 WHEN COUNT ( * ) THEN NULL WHEN - 17 THEN - - 91 END, - 20 ) + - + 38 * + 67 + - SUM ( - - ( 78 ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + + 75 + - 89 * MIN( 91 ) col1
----
-8024

skipif mysql # not compatible
query I rowsort label-6329
SELECT + + 75 + - 89 * MIN ( 91 ) col1
----
-8024

onlyif mysql # aggregate syntax: 
query II rowsort label-6330
SELECT ALL 91 + 81 + + + MAX( DISTINCT + 28 ) * + - 19 - + 17 col1, 45 AS col2
----
-377
45

skipif mysql # not compatible
query II rowsort label-6330
SELECT ALL 91 + 81 + + + MAX ( DISTINCT + 28 ) * + - 19 - + 17 col1, 45 AS col2
----
-377
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6331
SELECT + 7 * CASE - 90 WHEN + 9 - - 53 THEN - CAST( + - 56 AS SIGNED ) + + 73 * - COUNT( + 30 ) * 77 * - 25 * - 34 * 56 WHEN - 34 THEN - 34 * - 76 END / + - CAST( ( 54 ) AS SIGNED ) * + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT + 7 * CASE - 90 WHEN + 9 - - 53 THEN - CAST ( + - 56 AS INTEGER ) + + 73 * - COUNT ( + 30 ) * 77 * - 25 * - 34 * 56 WHEN - 34 THEN - 34 * - 76 END / + - CAST ( ( 54 ) AS INTEGER ) * + + 9
----
NULL

query II rowsort
SELECT ALL 19 * + 29 AS col2, + 4
----
551
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT - 61 - - 16 DIV 88 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - 61 - - 16 / 88 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT 13 - + 32 + + COUNT( * ) * + 94
----
75

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT 13 - + 32 + + COUNT ( * ) * + 94
----
75

query I rowsort
SELECT - 72 * 26
----
-1872

query I rowsort
SELECT + 77 * + - 51
----
-3927

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6337
SELECT ALL 83 * - ( + + 12 ) * - COUNT( * ) * 81 + CAST( NULL AS DECIMAL ) + + MAX( + 76 ) - SUM( + 85 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL 83 * - ( + + 12 ) * - COUNT ( * ) * 81 + CAST ( NULL AS REAL ) + + MAX ( + 76 ) - SUM ( + 85 ) col2
----
NULL

query I rowsort
SELECT - 70 * 62 * - - 10 * + 50 - + + 68 * - - 47
----
-2173196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT + 24 - + - 9 * + + COUNT( * ) + - + COUNT( * ) + - 66
----
-34

skipif mysql # not compatible
query I rowsort label-6340
SELECT + 24 - + - 9 * + + COUNT ( * ) + - + COUNT ( * ) + - 66
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT + 30 DIV + 11
----
2

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 30 / + 11
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT + 94 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 94 / 98 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT ALL 5 DIV + + ( + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL 5 / + + ( + 28 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT + 70 - - + COUNT( * ) AS col2, + 80 col0
----
71
80

skipif mysql # not compatible
query II rowsort label-6345
SELECT + 70 - - + COUNT ( * ) AS col2, + 80 col0
----
71
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL 52 DIV + 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL 52 / + 28 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL 69 + 67 + + 3 + + 52 - NULLIF ( - 78, - 9 ) * + 96 * COUNT( * )
----
7679

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL 69 + 67 + + 3 + + 52 - NULLIF ( - 78, - 9 ) * + 96 * COUNT ( * )
----
7679

query I rowsort
SELECT - COALESCE ( + + 13, + 4 ) AS col1
----
-13

query I rowsort
SELECT - 62 + + 33 + - ( + - 80 ) * + 76 * + 82 + + 77 - - + 69 AS col1
----
498677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6350
SELECT - ( - 99 ) AS col1, + 5 DIV + NULLIF ( + - 89, + + COUNT( * ) ) + - COUNT( * ) + - 28 * + 7 + + - 69
----
99
-266

skipif mysql # not compatible
query II rowsort label-6350
SELECT - ( - 99 ) AS col1, + 5 / + NULLIF ( + - 89, + + COUNT ( * ) ) + - COUNT ( * ) + - 28 * + 7 + + - 69
----
99
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + + SUM( + 8 ) + 91
----
99

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + + SUM ( + 8 ) + 91
----
99

query I rowsort
SELECT ALL - NULLIF ( - 54, + 32 * 56 ) * - - 98 + + 47
----
5339

query II rowsort
SELECT DISTINCT - + ( + 96 ) * - + 71 * 45 * - 92, + 4 * - - 19 AS col2
----
-28218240
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL 16 * - COALESCE ( + - ( - COUNT( * ) ), 75 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL 16 * - COALESCE ( + - ( - COUNT ( * ) ), 75 ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT + + NULLIF ( + 7, + 82 ) - - 53 - + + SUM( + 98 ) * - ( - 16 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) * MAX( 1 ) / + 63 + 28 * 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT + + NULLIF ( + 7, + 82 ) - - 53 - + + SUM ( + 98 ) * - ( - 16 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * MAX ( 1 ) / + 63 + 28 * 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT + - 72 * + + 51 + + NULLIF ( 69, + CAST( - 47 AS SIGNED ) )
----
-3603

skipif mysql # not compatible
query I rowsort label-6356
SELECT + - 72 * + + 51 + + NULLIF ( 69, + CAST ( - 47 AS INTEGER ) )
----
-3603

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + COALESCE ( - 77, - COUNT( * ) + + NULLIF ( 44, - 9 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + COALESCE ( - 77, - COUNT ( * ) + + NULLIF ( 44, - 9 ) )
----
-77

query I rowsort
SELECT - 35 * + + 90 + 16
----
-3134

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

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

query I rowsort
SELECT - 36 + - - 96
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL - + 78 * 1 * + 77 + + - 80 - - + AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - + 78 * 1 * + 77 + + - 80 - - + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 41 ) * 63 - - 4 col0
----
-2579

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL + NULLIF ( + NULLIF ( - COUNT( * ), 8 ), - 18 + + 27 ) * 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + NULLIF ( + NULLIF ( - COUNT ( * ), 8 ), - 18 + + 27 ) * 98 AS col1
----
-98

query I rowsort
SELECT ALL - 49 * - - 26
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT - 72 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-6365
SELECT - 72 / + 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - MAX( - + 57 ) * ( - + 94 ) * + 36
----
-192888

skipif mysql # not compatible
query I rowsort label-6366
SELECT - MAX ( - + 57 ) * ( - + 94 ) * + 36
----
-192888

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

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

query I rowsort
SELECT NULLIF ( 80, - - 75 )
----
80

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

query I rowsort
SELECT - 18 * - + 58 AS col2
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL - 39 * - - CAST( - 94 AS SIGNED ) AS col2
----
3666

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - 39 * - - CAST ( - 94 AS INTEGER ) AS col2
----
3666

query II rowsort
SELECT DISTINCT ( + + ( 30 ) ) AS col2, 3
----
30
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6373
SELECT COUNT( * ) AS col0, 14 DIV 2
----
1
7

skipif mysql # not compatible
query II rowsort label-6373
SELECT COUNT ( * ) AS col0, 14 / 2
----
1
7

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT + 47 + CAST( NULL AS SIGNED ) - 60 - + COUNT( * ) + + 56 / + 28 * - 48 * ( + 65 ) + - 88 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 47 + CAST ( NULL AS INTEGER ) - 60 - + COUNT ( * ) + + 56 / + 28 * - 48 * ( + 65 ) + - 88 * 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT + 94 DIV 8
----
11

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + 94 / 8
----
11

query I rowsort
SELECT ALL 70 + 34
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - 76 + + COUNT( * ) + 89
----
14

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 76 + + COUNT ( * ) + 89
----
14

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

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

query I rowsort
SELECT DISTINCT 63 + + 71 + + 58 * 26 col2
----
1642

query II rowsort
SELECT + 90 + + 88 + + 12, 42 AS col2
----
190
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6383
SELECT ALL + + 79 + + ( 38 ) * + 52 * SUM( ALL + + 38 ) * - 41 * + - CAST( + ( - 74 ) AS SIGNED )
----
-227816913

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL + + 79 + + ( 38 ) * + 52 * SUM ( ALL + + 38 ) * - 41 * + - CAST ( + ( - 74 ) AS INTEGER )
----
-227816913

query I rowsort
SELECT DISTINCT - ( - 59 ) * + + 64
----
3776

query I rowsort
SELECT ALL - 54 + - 39 + + 65
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT CASE + + 55 WHEN 54 THEN 95 + - - SUM( + - 52 ) WHEN + + 71 THEN NULL END + + 82 - - - 3 * 5 + + ( + + 40 ) + - 0 * - COALESCE ( 29, - ( - - 31 ) + + + COALESCE ( + 9, - + CAST( + - CASE + 37 WHEN - COUNT( * ) THEN NULL ELSE 73 * 52 * CAST( - 12 AS SIGNED ) - - 70 END AS SIGNED ) - - + 89 + + COUNT( * ) ) / - NULLIF ( 79, + 90 * - + COALESCE ( - AVG ( DISTINCT + 19 ), + 17 - 42 ) * 6 ) ) * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT CASE + + 55 WHEN 54 THEN 95 + - - SUM ( + - 52 ) WHEN + + 71 THEN NULL END + + 82 - - - 3 * 5 + + ( + + 40 ) + - 0 * - COALESCE ( 29, - ( - - 31 ) + + + COALESCE ( + 9, - + CAST ( + - CASE + 37 WHEN - COUNT ( * ) THEN NULL ELSE 73 * 52 * CAST ( - 12 AS INTEGER ) - - 70 END AS INTEGER ) - - + 89 + + COUNT ( * ) ) / - NULLIF ( 79, + 90 * - + COALESCE ( - AVG ( DISTINCT + 19 ), + 17 - 42 ) * 6 ) ) * 49 AS col0
----
NULL

query I rowsort
SELECT ALL 96 + - - 48 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT SUM( + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT SUM ( + 98 ) AS col2
----
98

query I rowsort
SELECT 21 * + 34
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT - NULLIF ( 47, SUM( + - 10 ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-6390
SELECT - NULLIF ( 47, SUM ( + - 10 ) ) col0
----
-47

query II rowsort
SELECT ALL - - 23 col0, - 32 * - 74 + - 66 AS col1
----
23
2302

query I rowsort
SELECT DISTINCT + 35 + + 96
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT - MIN( 91 ) - 69 * 83 AS col2
----
-5818

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT - MIN ( 91 ) - 69 * 83 AS col2
----
-5818

query I rowsort
SELECT ALL 50 * + 49 AS col1
----
2450

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6397
SELECT + 56 + + 50 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT + 56 + + 50 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) * + COUNT( * ) + + - 90 * + - 81 + + 3 AS col2
----
7294

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) + + - 90 * + - 81 + + 3 AS col2
----
7294

query I rowsort
SELECT 48 * - 95 AS col2
----
-4560

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT 54 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT 54 / - 62 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT 44 DIV 7 * 39 AS col1
----
234

skipif mysql # not compatible
query I rowsort label-6401
SELECT 44 / 7 * 39 AS col1
----
234

query I rowsort
SELECT DISTINCT + 71 * + 44 * + 21
----
65604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CASE + - COUNT( * ) WHEN 87 + - 9 * + 13 * + + 99 THEN 73 + + 3 * + - COUNT( * ) ELSE + + 86 * 67 * 49 + + - 67 + + - 36 * + COALESCE ( + - 98, NULLIF ( + 34, + - 44 * + - 36 / - 29 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CASE + - COUNT ( * ) WHEN 87 + - 9 * + 13 * + + 99 THEN 73 + + 3 * + - COUNT ( * ) ELSE + + 86 * 67 * 49 + + - 67 + + - 36 * + COALESCE ( + - 98, NULLIF ( + 34, + - 44 * + - 36 / - 29 ) ) END
----
NULL

query I rowsort
SELECT 60 + 13
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL + CAST( - 27 AS SIGNED ) * CASE + COUNT( * ) WHEN - 16 / - - NULLIF ( - + 84, - + 49 ) + - ( ( + CAST( 79 AS SIGNED ) ) ) THEN 58 * 92 * - NULLIF ( - COUNT( * ), 93 - 49 ) * ( + - SUM( - NULLIF ( - - 73, + + 21 ) ) ) ELSE NULL END * 24 * SUM( + CAST( - 39 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + CAST ( - 27 AS INTEGER ) * CASE + COUNT ( * ) WHEN - 16 / - - NULLIF ( - + 84, - + 49 ) + - ( ( + CAST ( 79 AS INTEGER ) ) ) THEN 58 * 92 * - NULLIF ( - COUNT ( * ), 93 - 49 ) * ( + - SUM ( - NULLIF ( - - 73, + + 21 ) ) ) ELSE NULL END * 24 * SUM ( + CAST ( - 39 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + 23 * 9 + - - 23 * - SUM( 69 ) AS col0
----
-1380

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 23 * 9 + - - 23 * - SUM ( 69 ) AS col0
----
-1380

query I rowsort
SELECT ALL + 71 + + - 86
----
-15

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

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

query II rowsort
SELECT 34, 20 AS col0
----
34
20

query II rowsort
SELECT ALL - 8 + + - NULLIF ( + 89, + 7 ) AS col0, 66 * + 31
----
-97
2046

query I rowsort
SELECT 17 * 57 - - - 3 * - 22 AS col0
----
1035

query I rowsort
SELECT 95 + - 86 * - - 63 * 59
----
-319567

onlyif mysql # DIV for integer division: 
query II rowsort label-6413
SELECT 21 AS col1, + 85 DIV 65
----
21
1

skipif mysql # not compatible
query II rowsort label-6413
SELECT 21 AS col1, + 85 / 65
----
21
1

query I rowsort
SELECT ALL - 54 + - 57 + + 79 + 90 * 93 + - + 51 + - 84 * + 81 col1
----
1483

query I rowsort
SELECT ALL - 58 + - 62
----
-120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT + 15 - + CASE COUNT( * ) WHEN - NULLIF ( - - 13, 32 + ( + 28 ) + + + 25 ) THEN + 81 WHEN 67 * - 3 + COUNT( * ) THEN NULL WHEN - 61 / + 28 THEN COUNT( * ) ELSE NULL END + + 0 * + CAST( - 46 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT + 15 - + CASE COUNT ( * ) WHEN - NULLIF ( - - 13, 32 + ( + 28 ) + + + 25 ) THEN + 81 WHEN 67 * - 3 + COUNT ( * ) THEN NULL WHEN - 61 / + 28 THEN COUNT ( * ) ELSE NULL END + + 0 * + CAST ( - 46 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT MAX( DISTINCT + - 80 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT MAX ( DISTINCT + - 80 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT + COUNT( DISTINCT 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6419
SELECT + COUNT ( DISTINCT 14 ) AS col0
----
1

query I rowsort
SELECT 5 * - 78 AS col2
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6421
SELECT + COUNT( * ) * CASE 86 WHEN + + COALESCE ( + + MAX( - 30 ), + + COUNT( * ) * ( - + 61 ) ) THEN NULL ELSE + 52 / 2 / + COUNT( * ) + - 49 + 39 + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT + COUNT ( * ) * CASE 86 WHEN + + COALESCE ( + + MAX ( - 30 ), + + COUNT ( * ) * ( - + 61 ) ) THEN NULL ELSE + 52 / 2 / + COUNT ( * ) + - 49 + 39 + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT DISTINCT + - 27 * - COALESCE ( 43, - - ( + CAST( 99 AS SIGNED ) ) + + 42 ) * + 94
----
109134

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT + - 27 * - COALESCE ( 43, - - ( + CAST ( 99 AS INTEGER ) ) + + 42 ) * + 94
----
109134

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

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

query I rowsort
SELECT ALL - 31 - - 25 + - + 88 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT - + 97 - + MAX( ALL - 90 ) * + 62 * COUNT( * ) + - 67 AS col1
----
5416

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - + 97 - + MAX ( ALL - 90 ) * + 62 * COUNT ( * ) + - 67 AS col1
----
5416

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT 71 AS col2, + SUM( - - 35 )
----
71
35

skipif mysql # not compatible
query II rowsort label-6426
SELECT 71 AS col2, + SUM ( - - 35 )
----
71
35

query I rowsort
SELECT ALL - 12 * + - 60 + - 53
----
667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT DISTINCT - COALESCE ( 30, 30 + 94, 41 DIV 72 * + + 86 + + + COUNT( * ) ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - COALESCE ( 30, 30 + 94, 41 / 72 * + + 86 + + + COUNT ( * ) ) col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT ALL COUNT( ALL + 19 ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL COUNT ( ALL + 19 ) / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + 63 * NULLIF ( - 84, - 81 - + 85 - - 98 + - 68 * - 24 * - COUNT( + 32 ) ) + - COUNT( * )
----
-5293

skipif mysql # not compatible
query I rowsort label-6430
SELECT + 63 * NULLIF ( - 84, - 81 - + 85 - - 98 + - 68 * - 24 * - COUNT ( + 32 ) ) + - COUNT ( * )
----
-5293

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

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

query I rowsort
SELECT ( + 60 ) + 50
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL CAST( NULL AS SIGNED ) * - - 40 / - 55 * - 81 / - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL CAST ( NULL AS INTEGER ) * - - 40 / - 55 * - 81 / - 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT MIN( ALL + - 23 ) + + - COUNT( * ) + 13 * 13 * 49 * + 75 + + + 32 + - 92 + + + 30 AS col0
----
621021

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT MIN ( ALL + - 23 ) + + - COUNT ( * ) + 13 * 13 * 49 * + 75 + + + 32 + - 92 + + + 30 AS col0
----
621021

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT 35 * + MAX( - 68 ) AS col0
----
-2380

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT 35 * + MAX ( - 68 ) AS col0
----
-2380

query I rowsort
SELECT DISTINCT 94 + - 98 AS col0
----
-4

query I rowsort
SELECT ALL 53 + - + 70
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT MAX( DISTINCT 8 ) + 98 * + + 14 * + 37
----
50772

skipif mysql # not compatible
query I rowsort label-6438
SELECT MAX ( DISTINCT 8 ) + 98 * + + 14 * + 37
----
50772

query I rowsort
SELECT + 56 * + 55 + + 82 * - 12 AS col2
----
2096

query I rowsort
SELECT 98 - - 55 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT - COALESCE ( + COUNT( * ), - 92, - 96 + - - COALESCE ( - COUNT( * ), 44 * + 84 + + MIN( 28 ) + - 65 * 37 + 7 + - + 79, - 58 ), - - 58 DIV + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6441
SELECT - COALESCE ( + COUNT ( * ), - 92, - 96 + - - COALESCE ( - COUNT ( * ), 44 * + 84 + + MIN ( 28 ) + - 65 * 37 + 7 + - + 79, - 58 ), - - 58 / + 51 )
----
-1

query I rowsort
SELECT DISTINCT 28 + + 11 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6443
SELECT ALL 87 DIV - 16, SUM( - - 42 ) AS col1
----
-5
42

skipif mysql # not compatible
query II rowsort label-6443
SELECT ALL 87 / - 16, SUM ( - - 42 ) AS col1
----
-5
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT - COUNT( * ) + - 23 AS col0, 93 AS col0
----
-24
93

skipif mysql # not compatible
query II rowsort label-6444
SELECT - COUNT ( * ) + - 23 AS col0, 93 AS col0
----
-24
93

query I rowsort
SELECT ALL + 38 * - ( - 29 ) - - + 72 + + - 44 * - 75
----
4474

query I rowsort
SELECT ALL - 68 - 91 AS col2
----
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6447
SELECT - + 57 * - 85 AS col0, 55 DIV - 95 + - 63 + MIN( DISTINCT + 98 )
----
4845
35

skipif mysql # not compatible
query II rowsort label-6447
SELECT - + 57 * - 85 AS col0, 55 / - 95 + - 63 + MIN ( DISTINCT + 98 )
----
4845
35

query I rowsort
SELECT + + 46 + + - 30
----
16

query II rowsort
SELECT ALL + 77 * 28 + + 8 AS col1, 54 + - 50
----
2164
4

query I rowsort
SELECT - + 8 + + - 88 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT + COUNT( * ) * - - 75 + 83
----
158

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT + COUNT ( * ) * - - 75 + 83
----
158

query I rowsort
SELECT - - 22 * - ( - + 96 ) + + 74
----
2186

query II rowsort
SELECT DISTINCT + - 7 - + 24 AS col0, - 45 AS col0
----
-31
-45

query I rowsort
SELECT - 25 + 52
----
27

query I rowsort
SELECT ALL 68 * - - 32 * - 14
----
-30464

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT ALL - NULLIF ( - - 55, - COUNT( * ) ), + 53 col2
----
-55
53

skipif mysql # not compatible
query II rowsort label-6456
SELECT ALL - NULLIF ( - - 55, - COUNT ( * ) ), + 53 col2
----
-55
53

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT - - NULLIF ( - ( + 27 ), COUNT( * ) ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT - - NULLIF ( - ( + 27 ), COUNT ( * ) ) / - 53
----
0

query I rowsort
SELECT + NULLIF ( 96, + + 11 - + + 63 * + - 97 ) col1
----
96

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

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

query II rowsort
SELECT ALL - - 57 * 23, + 87 * + 47 AS col1
----
1311
4089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT ( - ( - - 93 ) ) DIV + 71 + - 75 DIV + 19 + COUNT( * ) + + 79 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6462
SELECT ( - ( - - 93 ) ) / + 71 + - 75 / + 19 + COUNT ( * ) + + 79 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT - CASE WHEN NOT MAX( ALL + + 80 ) BETWEEN 0 AND + - 10 - + 82 + + 20 THEN + + 54 + - 9 END * - - 58
----
-2610

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - CASE WHEN NOT MAX ( ALL + + 80 ) BETWEEN 0 AND + - 10 - + 82 + + 20 THEN + + 54 + - 9 END * - - 58
----
-2610

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT ALL NULLIF ( 69, + CASE COUNT( * ) WHEN - + 76 THEN + 42 WHEN + 40 / - - 39 + - COUNT( * ) - COUNT( * ) + + ( - + 54 ) * COUNT( * ) * + 40 * - - 81 THEN NULL ELSE NULL END ) * + COUNT( * ) + - 2 + - + 69 * - 76 + + - 53 * - 39 AS col2, + 2 AS col0
----
7378
2

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL NULLIF ( 69, + CASE COUNT ( * ) WHEN - + 76 THEN + 42 WHEN + 40 / - - 39 + - COUNT ( * ) - COUNT ( * ) + + ( - + 54 ) * COUNT ( * ) * + 40 * - - 81 THEN NULL ELSE NULL END ) * + COUNT ( * ) + - 2 + - + 69 * - 76 + + - 53 * - 39 AS col2, + 2 AS col0
----
7378
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6465
SELECT ALL + 56 * CAST( 28 AS SIGNED ) DIV + 48 + + 28
----
60

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + 56 * CAST ( 28 AS INTEGER ) / + 48 + + 28
----
60

query I rowsort
SELECT DISTINCT - ( - 95 ) * + 99 + - - 59
----
9464

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL MIN( 70 ) * - - 34 + - 69
----
2311

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL MIN ( 70 ) * - - 34 + - 69
----
2311

query I rowsort
SELECT 17 * + 95 * - 80 - - + 46 * 35 AS col0
----
-127590

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + SUM( ALL 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6469
SELECT + SUM ( ALL 91 ) AS col2
----
91

query I rowsort
SELECT CASE 27 WHEN + 53 THEN 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL NULLIF ( + 60, 46 ) * - - 63 + + - 85 + COUNT( * ) * 5 AS col1
----
3700

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL NULLIF ( + 60, 46 ) * - - 63 + + - 85 + COUNT ( * ) * 5 AS col1
----
3700

query I rowsort
SELECT DISTINCT 34 * 86 AS col0
----
2924

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6474
SELECT + + NULLIF ( - 72, - 36 + - CAST( NULL AS SIGNED ) + + + 18 + 15 + + 11 * CAST( - CASE - 90 WHEN + 69 * + COUNT( * ) THEN + 87 + 69 ELSE NULL END AS SIGNED ) * + - 29 ) + + + 7 * 89 DIV 63 + + + 4 + 97 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6474
SELECT + + NULLIF ( - 72, - 36 + - CAST ( NULL AS INTEGER ) + + + 18 + 15 + + 11 * CAST ( - CASE - 90 WHEN + 69 * + COUNT ( * ) THEN + 87 + 69 ELSE NULL END AS INTEGER ) * + - 29 ) + + + 7 * 89 / 63 + + + 4 + 97 AS col0
----
38

query I rowsort
SELECT - + 12 * + + 78
----
-936

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

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

query I rowsort
SELECT ALL - + 9 - 83
----
-92

query II rowsort
SELECT ALL - 55 AS col2, + 90 col0
----
-55
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + 80 - - 6
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6480
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 80 - - 6
----
NULL
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT + - CASE 93 WHEN - 37 + + COUNT( * ) THEN 24 * - 67 * + COUNT( * ) WHEN - - 89 - ( 53 ) THEN NULL ELSE NULL END / - + 1 - + 55 + 59 / + ( - 8 ) * - ( 77 ) + + - COALESCE ( 80, + 80 ) * + 7 + - 14 + + - 54 col1, + NULLIF ( 86, 21 )
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6481
SELECT + - CASE 93 WHEN - 37 + + COUNT ( * ) THEN 24 * - 67 * + COUNT ( * ) WHEN - - 89 - ( 53 ) THEN NULL ELSE NULL END / - + 1 - + 55 + 59 / + ( - 8 ) * - ( 77 ) + + - COALESCE ( 80, + 80 ) * + 7 + - 14 + + - 54 col1, + NULLIF ( 86, 21 )
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - - 85 * MAX( + 19 )
----
1615

skipif mysql # not compatible
query I rowsort label-6482
SELECT - - 85 * MAX ( + 19 )
----
1615

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT - + COUNT( * ) * 17 DIV 11 * 1 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6484
SELECT - + COUNT ( * ) * 17 / 11 * 1 col0
----
-1

query I rowsort
SELECT DISTINCT - 88 * - 21 AS col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - + 55 + + + COUNT( * ) + - - 72 * - 86 * + NULLIF ( + 76, + SUM( 67 ) ) + - 56 - + 92
----
-470794

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - + 55 + + + COUNT ( * ) + - - 72 * - 86 * + NULLIF ( + 76, + SUM ( 67 ) ) + - 56 - + 92
----
-470794

query I rowsort
SELECT ALL - 38 + - 2 - + - 30 + - 79
----
-89

query I rowsort
SELECT - 19 - 19 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6489
SELECT DISTINCT 25 * CAST( NULL AS SIGNED ) AS col0, + COALESCE ( - 54, ( - ( - 81 ) ), 30 ) * + 0 * - - 46 + - + 88 + + 95 + + + 70 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT 25 * CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - 54, ( - ( - 81 ) ), 30 ) * + 0 * - - 46 + - + 88 + + 95 + + + 70 AS col0
----
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT ALL + 62 DIV + 66 + - MIN( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL + 62 / + 66 + - MIN ( DISTINCT 99 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT - 29 DIV - 32 + - - NULLIF ( + COUNT( * ), - 30 ) * ( 78 ) + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT - 29 / - 32 + - - NULLIF ( + COUNT ( * ), - 30 ) * ( 78 ) + + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT ALL 86 DIV + 55 + 95 * - ( COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL 86 / + 55 + 95 * - ( COUNT ( * ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT + ( - CASE + - 92 WHEN NULLIF ( AVG ( DISTINCT + + NULLIF ( - 61, + 49 ) ), + 82 ) THEN NULL WHEN 86 THEN + 90 + 3 + - - COUNT( * ) + - COUNT( * ) + 10 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + ( - CASE + - 92 WHEN NULLIF ( AVG ( DISTINCT + + NULLIF ( - 61, + 49 ) ), + 82 ) THEN NULL WHEN 86 THEN + 90 + 3 + - - COUNT ( * ) + - COUNT ( * ) + 10 END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COUNT ( * ) - - + 94 AS col2
----
95

query I rowsort
SELECT ALL - 49 * ( 3 )
----
-147

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

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

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

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

query I rowsort
SELECT ALL - 50 * - + 15
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT CASE - ( - 96 ) WHEN - 55 * - 64 * + - 59 THEN 84 WHEN + ( + 92 ) THEN 85 * + 3 ELSE + COUNT( * ) + - 86 - - 9 END + 68
----
-8

skipif mysql # not compatible
query I rowsort label-6499
SELECT CASE - ( - 96 ) WHEN - 55 * - 64 * + - 59 THEN 84 WHEN + ( + 92 ) THEN 85 * + 3 ELSE + COUNT ( * ) + - 86 - - 9 END + 68
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT + 32 * - ( + CASE - + COUNT( * ) WHEN - 14 THEN + 46 * + COUNT( * ) + + - 24 WHEN + + COUNT( * ) THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + 32 * - ( + CASE - + COUNT ( * ) WHEN - 14 THEN + 46 * + COUNT ( * ) + + - 24 WHEN + + COUNT ( * ) THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 23 - + 75 AS col2
----
-52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6503
SELECT 7 + - + 72 AS col2, CAST( NULL AS SIGNED ) AS col0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-6503
SELECT 7 + - + 72 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-65
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT - NULLIF ( + AVG ( + + CAST( NULL AS SIGNED ) ), + 57 * 35 - 86 ) * - - NULLIF ( + + ( + 98 ), 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT - NULLIF ( + AVG ( + + CAST ( NULL AS INTEGER ) ), + 57 * 35 - 86 ) * - - NULLIF ( + + ( + 98 ), 27 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT DISTINCT COUNT( * ) * COALESCE ( + + 8, 11 DIV - 59 ) * 75
----
600

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT COUNT ( * ) * COALESCE ( + + 8, 11 / - 59 ) * 75
----
600

query I rowsort
SELECT - NULLIF ( - - 7, - 28 ) * - 78 - - + 9 + + - 17 * 85 AS col0
----
-890

query I rowsort
SELECT + 84 + - + 81
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT ALL - 94 * + - 47 DIV COUNT( * )
----
4418

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 94 * + - 47 / COUNT ( * )
----
4418

onlyif mysql # DIV for integer division: 
query II rowsort label-6510
SELECT ALL 63 * - - 64 AS col0, - 68 DIV + + 63 AS col2
----
4032
-1

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL 63 * - - 64 AS col0, - 68 / + + 63 AS col2
----
4032
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + COALESCE ( + 96, 41 * - + 10 * - ( - - COUNT( 98 ) ) * 12 + + + COUNT( * ) - - - 95 * + 26 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + COALESCE ( + 96, 41 * - + 10 * - ( - - COUNT ( 98 ) ) * 12 + + + COUNT ( * ) - - - 95 * + 26 ) col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT - - ( - + 34 ) AS col2, - COUNT( * ) + - + 31 col2
----
-34
-32

skipif mysql # not compatible
query II rowsort label-6512
SELECT - - ( - + 34 ) AS col2, - COUNT ( * ) + - + 31 col2
----
-34
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT 90 + 39 + 63 * - COUNT( ALL 89 ), 79 AS col1
----
66
79

skipif mysql # not compatible
query II rowsort label-6513
SELECT 90 + 39 + 63 * - COUNT ( ALL 89 ), 79 AS col1
----
66
79

query I rowsort
SELECT 49 * - CASE + 27 WHEN 17 + - + 90 + 72 THEN 95 + + 76 WHEN + - 35 THEN NULL ELSE NULL END / - 56 + 45 AS col2
----
NULL

query I rowsort
SELECT - 60 + + 22 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT MAX( - 8 ) - 51
----
-59

skipif mysql # not compatible
query I rowsort label-6516
SELECT MAX ( - 8 ) - 51
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - 73 + - 33 * + + MAX( ALL - + 70 )
----
2237

skipif mysql # not compatible
query I rowsort label-6517
SELECT - 73 + - 33 * + + MAX ( ALL - + 70 )
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT MIN( ALL 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT MIN ( ALL 59 )
----
59

query I rowsort
SELECT ALL + 67 + + 38 + + 45 + - 40
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6520
SELECT CAST( 62 AS SIGNED ) + - COUNT( DISTINCT - ( + 80 ) ) col0, - 42 * 62 * + - 22
----
61
57288

skipif mysql # not compatible
query II rowsort label-6520
SELECT CAST ( 62 AS INTEGER ) + - COUNT ( DISTINCT - ( + 80 ) ) col0, - 42 * 62 * + - 22
----
61
57288

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

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - 98 + COUNT ( * ) / - 14 * 11 AS col1
----
-98

query I rowsort
SELECT DISTINCT 74 + + - 90 col1
----
-16

query I rowsort
SELECT ( - 26 ) + - + 79 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6524
SELECT 73 + 57 + - 44 - COUNT( * ) + CASE - + 81 WHEN - ( + 92 ) + - 23 THEN + 36 ELSE + - 55 * + 37 - + 48 - CAST( NULL AS SIGNED ) * - 70 / - + 78 / ( + - 72 ) * + 53 END * + - 2 * + - 82 + + + CASE + NULLIF ( + + 56, - 82 - - AVG ( DISTINCT - 64 ) + + 35 + + + CAST( NULL AS DECIMAL ) * 92 * 77 * - 91 / - + 91 * + - 88 - - CAST( 43 AS SIGNED ) ) WHEN + 75 THEN + + CAST( - 7 AS SIGNED ) + + CASE 33 WHEN - 80 + - COUNT( * ) * COUNT( * ) THEN 2 END - 29 / - 98 WHEN + 80 THEN - 70 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT 73 + 57 + - 44 - COUNT ( * ) + CASE - + 81 WHEN - ( + 92 ) + - 23 THEN + 36 ELSE + - 55 * + 37 - + 48 - CAST ( NULL AS INTEGER ) * - 70 / - + 78 / ( + - 72 ) * + 53 END * + - 2 * + - 82 + + + CASE + NULLIF ( + + 56, - 82 - - AVG ( DISTINCT - 64 ) + + 35 + + + CAST ( NULL AS REAL ) * 92 * 77 * - 91 / - + 91 * + - 88 - - CAST ( 43 AS INTEGER ) ) WHEN + 75 THEN + + CAST ( - 7 AS INTEGER ) + + CASE 33 WHEN - 80 + - COUNT ( * ) * COUNT ( * ) THEN 2 END - 29 / - 98 WHEN + 80 THEN - 70 ELSE NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 13 + + - 53 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6526
SELECT ( 9 ) * + 59 DIV COUNT( * )
----
531

skipif mysql # not compatible
query I rowsort label-6526
SELECT ( 9 ) * + 59 / COUNT ( * )
----
531

query I rowsort
SELECT ALL + 26 * + 81
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ( 11 ) DIV + + 89 - - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6528
SELECT ( 11 ) / + + 89 - - 88 AS col2
----
88

query I rowsort
SELECT ALL - 63 * 7 AS col0
----
-441

query I rowsort
SELECT DISTINCT + 8 + - 89 * 33 + - 77 * - 32 * - 82
----
-204977

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL - 54 - + + 21 * - + COALESCE ( + 38, + 16 + + 21 + - 56 - COALESCE ( + + MIN( + 3 ), + 36 * - - 71 * - COUNT( * ) + + - 15 ) + - + MIN( DISTINCT + 89 ) * + COUNT( * ) + - 55 * + + 54 )
----
744

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL - 54 - + + 21 * - + COALESCE ( + 38, + 16 + + 21 + - 56 - COALESCE ( + + MIN ( + 3 ), + 36 * - - 71 * - COUNT ( * ) + + - 15 ) + - + MIN ( DISTINCT + 89 ) * + COUNT ( * ) + - 55 * + + 54 )
----
744

onlyif mysql # DIV for integer division: 
query II rowsort label-6532
SELECT DISTINCT 35 * + - 15 * 92, 45 DIV - 76 * - + 61 * + 53 * 35 AS col1
----
-48300
0

skipif mysql # not compatible
query II rowsort label-6532
SELECT DISTINCT 35 * + - 15 * 92, 45 / - 76 * - + 61 * + 53 * 35 AS col1
----
-48300
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL + 90 - 57 + - 9 - 30 + - 99 * - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL + 90 - 57 + - 9 - 30 + - 99 * - COUNT ( * ) AS col0
----
93

query I rowsort
SELECT DISTINCT - ( - 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT ALL - CAST( - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - CAST ( - 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + COUNT( * ) * 87 - COALESCE ( 37, - - 57 * - + 76 + 97 ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6536
SELECT + COUNT ( * ) * 87 - COALESCE ( 37, - - 57 * - + 76 + 97 ) * COUNT ( * )
----
50

query I rowsort
SELECT 14 * + 56 AS col1
----
784

query I rowsort
SELECT DISTINCT + ( NULLIF ( + ( 98 ), + + 98 ) ) * 43 + + 1 + - 36 AS col1
----
NULL

query I rowsort
SELECT + 41 * - - 78
----
3198

query II rowsort
SELECT DISTINCT - - 90 AS col2, - 98
----
90
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT NULLIF ( 19, - COUNT( * ) * - - ( - 83 ) )
----
19

skipif mysql # not compatible
query I rowsort label-6542
SELECT NULLIF ( 19, - COUNT ( * ) * - - ( - 83 ) )
----
19

query I rowsort
SELECT - 91 * - 24
----
2184

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

query I rowsort
SELECT 5 * - 64
----
-320

query I rowsort
SELECT ALL + 2 + + 82 AS col1
----
84

query I rowsort
SELECT - - COALESCE ( + 54, 99 )
----
54

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

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

query I rowsort
SELECT 74 * - + 45 AS col1
----
-3330

query I rowsort
SELECT DISTINCT + 11 + 45 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL ( + + 74 ) * + + 69 + + + COUNT( * ) - - 24 * 98 AS col1
----
7459

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL ( + + 74 ) * + + 69 + + + COUNT ( * ) - - 24 * 98 AS col1
----
7459

query II rowsort
SELECT 76 AS col2, + 35 + - 59
----
76
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT COUNT( * ) - - - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6553
SELECT COUNT ( * ) - - - 61 AS col2
----
-60

query II rowsort
SELECT ALL 18, + 21 * ( + 20 ) AS col0
----
18
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT 89 - + + CASE - + 25 WHEN - + MIN( 73 ) + 85 THEN NULL WHEN - SUM( ALL 39 ) + + - 65 THEN - AVG ( ALL + + 58 ) + + + 7 + 71 - - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT 89 - + + CASE - + 25 WHEN - + MIN ( 73 ) + 85 THEN NULL WHEN - SUM ( ALL 39 ) + + - 65 THEN - AVG ( ALL + + 58 ) + + + 7 + 71 - - COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - SUM( + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6556
SELECT - SUM ( + 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT - CASE ( CASE - - 70 WHEN ( - 29 ) THEN - CAST( NULL AS SIGNED ) * + 65 + + 94 WHEN - COUNT( ALL + 23 ) THEN + MAX( + 86 ) END ) WHEN - 87 THEN + 19 * 7 + + + CASE 17 WHEN 98 + - - 71 - 36 + + + 43 + + + ( + + MAX( - - 77 ) ) / + 97 * CASE 78 WHEN 6 THEN NULL WHEN - 79 / + - 34 + + - 64 - - 82 THEN - 89 * + - CAST( + 49 AS SIGNED ) - + 74 - - 92 * + - 23 / + + COUNT( * ) * - ( 68 ) * + 0 * 20 + - 98 * 61 ELSE + CASE + 1 WHEN 51 * NULLIF ( 42, - 57 * CAST( + NULLIF ( ( 12 ), 20 + - 39 ) AS SIGNED ) ) THEN NULL WHEN 27 THEN 45 * - 65 ELSE - 26 + + 73 END END THEN CASE - CAST( NULL AS SIGNED ) WHEN - MIN( + CAST( NULL AS SIGNED ) ) * - 47 + + 91 THEN - 79 END WHEN - 4 THEN COUNT( * ) ELSE NULL END + + ( 71 + + 1 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT - CASE ( CASE - - 70 WHEN ( - 29 ) THEN - CAST ( NULL AS INTEGER ) * + 65 + + 94 WHEN - COUNT ( ALL + 23 ) THEN + MAX ( + 86 ) END ) WHEN - 87 THEN + 19 * 7 + + + CASE 17 WHEN 98 + - - 71 - 36 + + + 43 + + + ( + + MAX ( - - 77 ) ) / + 97 * CASE 78 WHEN 6 THEN NULL WHEN - 79 / + - 34 + + - 64 - - 82 THEN - 89 * + - CAST ( + 49 AS INTEGER ) - + 74 - - 92 * + - 23 / + + COUNT ( * ) * - ( 68 ) * + 0 * 20 + - 98 * 61 ELSE + CASE + 1 WHEN 51 * NULLIF ( 42, - 57 * CAST ( + NULLIF ( ( 12 ), 20 + - 39 ) AS INTEGER ) ) THEN NULL WHEN 27 THEN 45 * - 65 ELSE - 26 + + 73 END END THEN CASE - CAST ( NULL AS INTEGER ) WHEN - MIN ( + CAST ( NULL AS INTEGER ) ) * - 47 + + 91 THEN - 79 END WHEN - 4 THEN COUNT ( * ) ELSE NULL END + + ( 71 + + 1 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL 24 - - MIN( ALL - 3 )
----
21

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 24 - - MIN ( ALL - 3 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT CASE - NULLIF ( 51, 84 * - - ( + + 61 ) * + - 23 - 50 + 7 + + + COUNT( * ) * - 82 - 15 ) WHEN - 10 - - 40 THEN NULL WHEN + 98 * - - 34 * + 72 THEN - + 38 / - 35 - 47 END * + SUM( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT CASE - NULLIF ( 51, 84 * - - ( + + 61 ) * + - 23 - 50 + 7 + + + COUNT ( * ) * - 82 - 15 ) WHEN - 10 - - 40 THEN NULL WHEN + 98 * - - 34 * + 72 THEN - + 38 / - 35 - 47 END * + SUM ( - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT DISTINCT 36 * - NULLIF ( + ( - 1 ), - 31 + - COUNT( * ) ) AS col0, + 19 AS col0
----
36
19

skipif mysql # not compatible
query II rowsort label-6560
SELECT DISTINCT 36 * - NULLIF ( + ( - 1 ), - 31 + - COUNT ( * ) ) AS col0, + 19 AS col0
----
36
19

query I rowsort
SELECT + 6 - 62
----
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6563
SELECT ALL CASE - - ( + - 98 ) WHEN + + 73 THEN NULL ELSE 48 * NULLIF ( - MAX( - - 87 ), - MAX( ALL + 96 ) ) * - 34 * ( - 59 ) * - 82 + CAST( 18 AS SIGNED ) * + - 35 END DIV 29 AS col0
----
23686826

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL CASE - - ( + - 98 ) WHEN + + 73 THEN NULL ELSE 48 * NULLIF ( - MAX ( - - 87 ), - MAX ( ALL + 96 ) ) * - 34 * ( - 59 ) * - 82 + CAST ( 18 AS INTEGER ) * + - 35 END / 29 AS col0
----
23686826

query II rowsort
SELECT ALL + 62 AS col2, 95 col0
----
62
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT CASE + - 50 WHEN + 24 / - 56 * 76 THEN - COUNT( * ) WHEN - AVG ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + + 68 + + 36 END
----
104

skipif mysql # not compatible
query I rowsort label-6565
SELECT CASE + - 50 WHEN + 24 / - 56 * 76 THEN - COUNT ( * ) WHEN - AVG ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + + 68 + + 36 END
----
104

query I rowsort
SELECT + NULLIF ( - 32, + 35 )
----
-32

query I rowsort
SELECT - 35 * + 70
----
-2450

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6569
SELECT - 52 DIV ( - - 28 ) * - 94 AS col1, - 24 - COALESCE ( 92, - 4 * - COALESCE ( 80, - MIN( ALL - 1 ) ) ) + - 36 AS col1
----
94
-152

skipif mysql # not compatible
query II rowsort label-6569
SELECT - 52 / ( - - 28 ) * - 94 AS col1, - 24 - COALESCE ( 92, - 4 * - COALESCE ( 80, - MIN ( ALL - 1 ) ) ) + - 36 AS col1
----
94
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + 58 * + 32 + COUNT( * ) AS col2
----
1857

skipif mysql # not compatible
query I rowsort label-6570
SELECT + 58 * + 32 + COUNT ( * ) AS col2
----
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - 28 - + - COUNT( * ) * - 44 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 28 - + - COUNT ( * ) * - 44 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + 75 + 61 * + 56 * + NULLIF ( - ( + ( + 29 ) ), AVG ( - 50 ) ) + 32 + - + COUNT( * ) + + + NULLIF ( + 24, + + 49 + + 78 + - + 92 * ( + 36 ) / COUNT( * ) + - COUNT( * ) * - 2 - + 81 )
----
-98934

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 75 + 61 * + 56 * + NULLIF ( - ( + ( + 29 ) ), AVG ( - 50 ) ) + 32 + - + COUNT ( * ) + + + NULLIF ( + 24, + + 49 + + 78 + - + 92 * ( + 36 ) / COUNT ( * ) + - COUNT ( * ) * - 2 - + 81 )
----
-98934

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL - 49 * + + 80 - - + 41 + + ( 36 ) + 21 + - 93 * + 71 + + 87 * - COUNT( * )
----
-10512

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL - 49 * + + 80 - - + 41 + + ( 36 ) + 21 + - 93 * + 71 + + 87 * - COUNT ( * )
----
-10512

query I rowsort
SELECT COALESCE ( - 43, - 18 * + 34 )
----
-43

query II rowsort
SELECT ALL + - 22 AS col1, 13 * + 88 AS col0
----
-22
1144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT - + COUNT( ALL + - 27 ) * - 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6577
SELECT - + COUNT ( ALL + - 27 ) * - 21 AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT + + 86 + 67 - 65 DIV 84 * + 25 * + 14 - - 97 AS col0
----
250

skipif mysql # not compatible
query I rowsort label-6578
SELECT + + 86 + 67 - 65 / 84 * + 25 * + 14 - - 97 AS col0
----
250

query I rowsort
SELECT - 11 * 46 - + - 95
----
-411

query I rowsort
SELECT DISTINCT + 0 + - 47 + - 72
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6581
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 23 + 27 / + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 23 + 27 / + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + - 31 + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + - 31 + - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT COALESCE ( COUNT( * ), + + CASE + 35 WHEN - CASE - 33 WHEN 15 THEN ( + + 25 ) WHEN - COUNT( * ) THEN NULL END * - + 71 THEN - - 35 * + 26 WHEN MAX( ALL - 47 ) * - 73 THEN + 0 * COUNT( * ) END + + - 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT COALESCE ( COUNT ( * ), + + CASE + 35 WHEN - CASE - 33 WHEN 15 THEN ( + + 25 ) WHEN - COUNT ( * ) THEN NULL END * - + 71 THEN - - 35 * + 26 WHEN MAX ( ALL - 47 ) * - 73 THEN + 0 * COUNT ( * ) END + + - 49 ) AS col0
----
1

query II rowsort
SELECT ALL - 99, + 80 AS col2
----
-99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - 78 + + CASE + SUM( - + 79 ) WHEN + COUNT( * ) THEN NULL ELSE 15 END + + + SUM( - 34 ) * 50 AS col1
----
-1763

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 78 + + CASE + SUM ( - + 79 ) WHEN + COUNT ( * ) THEN NULL ELSE 15 END + + + SUM ( - 34 ) * 50 AS col1
----
-1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT DISTINCT + + 81 + + CAST( - 76 AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT + + 81 + + CAST ( - 76 AS INTEGER ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT + 2 col0, MAX( + + 33 ) AS col2
----
2
33

skipif mysql # not compatible
query II rowsort label-6587
SELECT + 2 col0, MAX ( + + 33 ) AS col2
----
2
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - COUNT( * ) * MAX( DISTINCT - + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6588
SELECT - COUNT ( * ) * MAX ( DISTINCT - + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT + - 72 > + COUNT( * ) THEN + + 44 END col2
----
-44

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT + - 72 > + COUNT ( * ) THEN + + 44 END col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - + 85 + - CASE - - 62 WHEN 59 THEN NULL ELSE 46 END * + 50 * 8 + + 97 - 33 + - + 26 * - MAX( DISTINCT + ( + 89 ) ) + + ( 30 ) + 68 * + 58 * + 51 + - MAX( ALL - + 16 ) * + 93
----
186555

skipif mysql # not compatible
query I rowsort label-6590
SELECT - + 85 + - CASE - - 62 WHEN 59 THEN NULL ELSE 46 END * + 50 * 8 + + 97 - 33 + - + 26 * - MAX ( DISTINCT + ( + 89 ) ) + + ( 30 ) + 68 * + 58 * + 51 + - MAX ( ALL - + 16 ) * + 93
----
186555

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

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( 55 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - COUNT( * ) + 24 + - 68 + - - NULLIF ( - - 14, - 24 )
----
-31

skipif mysql # not compatible
query I rowsort label-6592
SELECT - COUNT ( * ) + 24 + - 68 + - - NULLIF ( - - 14, - 24 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT + ( - 28 ) - - - COUNT( * ) + - 87 DIV 87 DIV - + 85 * - 39
----
-29

skipif mysql # not compatible
query I rowsort label-6593
SELECT + ( - 28 ) - - - COUNT ( * ) + - 87 / 87 / - + 85 * - 39
----
-29

query I rowsort
SELECT + 1 * 84 AS col2
----
84

query I rowsort
SELECT + 19 + + + 60 AS col2
----
79

query I rowsort
SELECT ALL 24 - - 70
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT - SUM( DISTINCT 24 ), + 78 AS col0
----
-24
78

skipif mysql # not compatible
query II rowsort label-6597
SELECT - SUM ( DISTINCT 24 ), + 78 AS col0
----
-24
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT ALL CASE - 43 WHEN + - 25 / - 84 + 80 THEN + 33 - - CAST( NULL AS SIGNED ) WHEN + - ( - 11 ) * + + 97 + - 78 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL CASE - 43 WHEN + - 25 / - 84 + 80 THEN + 33 - - CAST ( NULL AS INTEGER ) WHEN + - ( - 11 ) * + + 97 + - 78 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 83 + 38 AS col1
----
121

query I rowsort
SELECT + 11 * 93 * + 45 AS col2
----
46035

onlyif mysql # aggregate syntax: 
query II rowsort label-6602
SELECT ALL NULLIF ( + 64, 2 * - SUM( DISTINCT - 47 ) ) * + COUNT( * ) * - 1, + COUNT( * ) AS col0
----
-64
1

skipif mysql # not compatible
query II rowsort label-6602
SELECT ALL NULLIF ( + 64, 2 * - SUM ( DISTINCT - 47 ) ) * + COUNT ( * ) * - 1, + COUNT ( * ) AS col0
----
-64
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6603
SELECT - 98 DIV - NULLIF ( + NULLIF ( - 27, - ( CASE 92 WHEN 52 - - + 67 THEN NULL WHEN MAX( + 7 ) THEN NULL ELSE - + 74 + 64 END ) ), 92 * 58 + + 66 * 50 - + ( - + 28 ) ) + 76 + + + 84 - 48
----
109

skipif mysql # not compatible
query I rowsort label-6603
SELECT - 98 / - NULLIF ( + NULLIF ( - 27, - ( CASE 92 WHEN 52 - - + 67 THEN NULL WHEN MAX ( + 7 ) THEN NULL ELSE - + 74 + 64 END ) ), 92 * 58 + + 66 * 50 - + ( - + 28 ) ) + 76 + + + 84 - 48
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT CAST( - MIN( 5 ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6604
SELECT CAST ( - MIN ( 5 ) AS INTEGER ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT CAST( - + 33 AS SIGNED ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-6605
SELECT CAST ( - + 33 AS INTEGER ) col1
----
-33

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

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT 4 / + - COUNT ( * ) * COUNT ( * ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6607
SELECT DISTINCT + 40 * 57 col1, + CAST( NULL AS SIGNED ) col1
----
2280
NULL

skipif mysql # not compatible
query II rowsort label-6607
SELECT DISTINCT + 40 * 57 col1, + CAST ( NULL AS INTEGER ) col1
----
2280
NULL

query I rowsort
SELECT + 50 * - NULLIF ( + - 60, + 41 ) AS col1
----
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT + - COUNT( - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6609
SELECT + - COUNT ( - 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ( COUNT( DISTINCT - 33 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT ( COUNT ( DISTINCT - 33 ) ) AS col2
----
1

query I rowsort
SELECT + - 57 * + 21 AS col0
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + ( - MIN( ALL - 75 ) ) * + 28 * + 69 * - - 35 * - 81 AS col1
----
-410791500

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + ( - MIN ( ALL - 75 ) ) * + 28 * + 69 * - - 35 * - 81 AS col1
----
-410791500

query I rowsort
SELECT + - 75 + - 2 + - 56 * - + 22 col1
----
1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6614
SELECT DISTINCT - COUNT( - 28 ) * + 54 * - ( - ( ( + 19 ) ) ) - + COUNT( + 93 ) + + 44, 6 DIV 97 AS col2
----
-983
0

skipif mysql # not compatible
query II rowsort label-6614
SELECT DISTINCT - COUNT ( - 28 ) * + 54 * - ( - ( ( + 19 ) ) ) - + COUNT ( + 93 ) + + 44, 6 / 97 AS col2
----
-983
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT ALL - 11 * - - COUNT( * ) col2, ( + + 87 )
----
-11
87

skipif mysql # not compatible
query II rowsort label-6615
SELECT ALL - 11 * - - COUNT ( * ) col2, ( + + 87 )
----
-11
87

query I rowsort
SELECT ALL + 8 * - 77 - 52 AS col2
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + - 56 * + COUNT( + - 78 )
----
-56

skipif mysql # not compatible
query I rowsort label-6617
SELECT + - 56 * + COUNT ( + - 78 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6618
SELECT DISTINCT + ( 91 ) AS col1, + 65 + NULLIF ( - 5, + + CAST( NULL AS DECIMAL ) ) AS col2
----
91
60

skipif mysql # not compatible
query II rowsort label-6618
SELECT DISTINCT + ( 91 ) AS col1, + 65 + NULLIF ( - 5, + + CAST ( NULL AS REAL ) ) AS col2
----
91
60

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

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - COUNT ( * ) * - 76 / - 35 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6620
SELECT 72 * + + COALESCE ( 9, + - 57 + - + CAST( NULL AS SIGNED ) + 23 * + - ( 85 ) + COUNT( * ) DIV - 5, - + COALESCE ( 59, 14 ) * - + CAST( - 99 AS SIGNED ) + + 57 - - 35 ) AS col2
----
648

skipif mysql # not compatible
query I rowsort label-6620
SELECT 72 * + + COALESCE ( 9, + - 57 + - + CAST ( NULL AS INTEGER ) + 23 * + - ( 85 ) + COUNT ( * ) / - 5, - + COALESCE ( 59, 14 ) * - + CAST ( - 99 AS INTEGER ) + + 57 - - 35 ) AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - 95 * - 59 * + ( - COUNT( * ) ) AS col0
----
-5605

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - 95 * - 59 * + ( - COUNT ( * ) ) AS col0
----
-5605

query I rowsort
SELECT DISTINCT 12 * + 84 AS col2
----
1008

query II rowsort
SELECT DISTINCT 24 AS col0, 49 * + + 68 * ( + COALESCE ( 57, 65 ) ) AS col0
----
24
189924

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT 92 + NULLIF ( - 76, + - 89 * COUNT( * ) / 84 + 96 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-6624
SELECT 92 + NULLIF ( - 76, + - 89 * COUNT ( * ) / 84 + 96 ) col0
----
16

query I rowsort
SELECT ALL - 4 * + + NULLIF ( + 54, 90 ) AS col0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT 98 * - CAST( + 1 AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6626
SELECT 98 * - CAST ( + 1 AS INTEGER ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT 69 - COALESCE ( + CAST( + 77 AS SIGNED ), + - 90, + 12 ) * - - 97 * 47 AS col1
----
-350974

skipif mysql # not compatible
query I rowsort label-6627
SELECT 69 - COALESCE ( + CAST ( + 77 AS INTEGER ), + - 90, + 12 ) * - - 97 * 47 AS col1
----
-350974

query II rowsort
SELECT 38 AS col2, - 46 * 39 * + 61 * + 92 AS col1
----
38
-10067928

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT 17 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT 17 / 64 AS col1
----
0

query I rowsort
SELECT 88 + 66
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT ALL - 60 DIV - 4
----
15

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - 60 / - 4
----
15

query I rowsort
SELECT ALL + 32 + + 77 + - - 77 + + 57 * + + ( - 37 ) AS col1
----
-1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT ALL - NULLIF ( - 49, - 2 * ( + 13 ) DIV - - COUNT( * ) * 8 ) DIV - 21 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - NULLIF ( - 49, - 2 * ( + 13 ) / - - COUNT ( * ) * 8 ) / - 21 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT 7 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT 7 / - 38 AS col2
----
0

query I rowsort
SELECT ALL 81 * + - 50 AS col0
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT COALESCE ( - + 40, + NULLIF ( + NULLIF ( 31, + MAX( DISTINCT + 6 ) ), 22 + - AVG ( - 9 ) + + + 36 DIV - 5 + - 22 * 44 ) DIV - 20 + + 91 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6636
SELECT COALESCE ( - + 40, + NULLIF ( + NULLIF ( 31, + MAX ( DISTINCT + 6 ) ), 22 + - AVG ( - 9 ) + + + 36 / - 5 + - 22 * 44 ) / - 20 + + 91 ) AS col2
----
-40

query I rowsort
SELECT 93 * + 15
----
1395

query I rowsort
SELECT ALL - 67 + + - 19
----
-86

query I rowsort
SELECT ( 27 ) * - + 88 + + + 90 AS col0
----
-2286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT 70 - + - 22 * + CASE 7 WHEN - ( - + 65 ) THEN COUNT( * ) / - + MIN( + 6 ) - - CASE - - 14 WHEN + AVG ( + 43 ) * + CAST( NULL AS SIGNED ) THEN + + 1 + NULLIF ( + 78, - COUNT( * ) + + - COALESCE ( AVG ( ALL - - NULLIF ( - 30, + 35 ) ), 3 + - + COUNT( * ) ) - - COUNT( * ) ) WHEN + + CAST( + 15 AS SIGNED ) / COUNT( * ) * - 27 / + 7 THEN - ( - 56 ) * + + 96 END + + + 16 WHEN - 91 + - 16 THEN + - 58 - + + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT 70 - + - 22 * + CASE 7 WHEN - ( - + 65 ) THEN COUNT ( * ) / - + MIN ( + 6 ) - - CASE - - 14 WHEN + AVG ( + 43 ) * + CAST ( NULL AS INTEGER ) THEN + + 1 + NULLIF ( + 78, - COUNT ( * ) + + - COALESCE ( AVG ( ALL - - NULLIF ( - 30, + 35 ) ), 3 + - + COUNT ( * ) ) - - COUNT ( * ) ) WHEN + + CAST ( + 15 AS INTEGER ) / COUNT ( * ) * - 27 / + 7 THEN - ( - 56 ) * + + 96 END + + + 16 WHEN - 91 + - 16 THEN + - 58 - + + 72 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 68 - + + 78
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT ALL + MIN( DISTINCT NULLIF ( - 27, 67 ) ) DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL + MIN ( DISTINCT NULLIF ( - 27, 67 ) ) / 22
----
-1

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

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - CAST ( NULL AS INTEGER ) * 63 AS col2
----
NULL

query I rowsort
SELECT ALL + 90 * + 31
----
2790

query I rowsort
SELECT 18 * + 70 AS col0
----
1260

query I rowsort
SELECT - 26 + - 83
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6647
SELECT ALL 14 * - CAST( 87 AS SIGNED ), - 5 * + 33 * - SUM( - - 86 ) AS col0
----
-1218
14190

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL 14 * - CAST ( 87 AS INTEGER ), - 5 * + 33 * - SUM ( - - 86 ) AS col0
----
-1218
14190

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT 98 DIV - 39 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6648
SELECT 98 / - 39 AS col1
----
-2

query I rowsort
SELECT ALL 72 * 99 AS col1
----
7128

query I rowsort
SELECT 88 + + - CASE - ( + 56 ) WHEN - - 85 THEN NULL WHEN - COALESCE ( 90, + + 1 / - 93 + - 5 - + - 72 * + 55, 64 ) THEN - + 2 + - 52 ELSE NULL END * + + 25 AS col1
----
NULL

query I rowsort
SELECT 98 + - 4
----
94

query I rowsort
SELECT 72 * ( + 92 )
----
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6653
SELECT 7 * COALESCE ( - + COUNT( * ), + ( - - 62 ) * + + 36, + CASE + 11 WHEN - 2 * + 75 THEN NULL ELSE - 93 * + ( + + 96 ) * - + COUNT( * ) + COUNT( * ) + - 30 END + - + 50 - - COUNT( * ) - - CASE + CAST( NULL AS SIGNED ) WHEN + 5 + + 9 THEN 79 * + 99 ELSE + 72 * CASE - ( - + 11 ) WHEN ( + 98 ) THEN 91 DIV - COUNT( * ) * - 21 + 97 ELSE NULL END - + 61 * - + 12 + - CAST( NULL AS SIGNED ) END + - 55 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6653
SELECT 7 * COALESCE ( - + COUNT ( * ), + ( - - 62 ) * + + 36, + CASE + 11 WHEN - 2 * + 75 THEN NULL ELSE - 93 * + ( + + 96 ) * - + COUNT ( * ) + COUNT ( * ) + - 30 END + - + 50 - - COUNT ( * ) - - CASE + CAST ( NULL AS INTEGER ) WHEN + 5 + + 9 THEN 79 * + 99 ELSE + 72 * CASE - ( - + 11 ) WHEN ( + 98 ) THEN 91 / - COUNT ( * ) * - 21 + 97 ELSE NULL END - + 61 * - + 12 + - CAST ( NULL AS INTEGER ) END + - 55 ) AS col2
----
-7

query II rowsort
SELECT ALL 41 + + 87 AS col1, 12 + + + 58 - - 55 AS col1
----
128
125

query I rowsort
SELECT 78 + - 49 AS col0
----
29

query I rowsort
SELECT 23 - - 64
----
87

query I rowsort
SELECT ALL - ( + 72 ) * - 96 AS col1
----
6912

query I rowsort
SELECT ALL 5 + + 94
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT DISTINCT MIN( + - 61 ) + + 82 - + - 80 * - 10
----
-779

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT MIN ( + - 61 ) + + 82 - + - 80 * - 10
----
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT - 55 + - + CAST( + - 54 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - 55 + - + CAST ( + - 54 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL 58 * + - 88 * 29 AS col2
----
-148016

query I rowsort
SELECT DISTINCT + 83 + - - 69 * - 46 AS col0
----
-3091

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT ALL COUNT( ALL + 62 ) col0, + 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL COUNT ( ALL + 62 ) col0, + 88 AS col2
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL - COUNT( * ) + + - 14 + + COUNT( - 13 )
----
-14

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - COUNT ( * ) + + - 14 + + COUNT ( - 13 )
----
-14

query II rowsort
SELECT ALL + 38 + 5, ( - ( + 98 ) ) col1
----
43
-98

query I rowsort
SELECT - 42 * + 30 AS col1
----
-1260

query I rowsort
SELECT 95 * - - 40 * - - 96 * - 75 + + 36 + 49 AS col2
----
-27359915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT - 87 DIV 33 + 58 + - COUNT( ALL - 47 ) * 81
----
-25

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 87 / 33 + 58 + - COUNT ( ALL - 47 ) * 81
----
-25

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

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

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + + 16 / - COUNT ( * )
----
-16

query II rowsort
SELECT + 8 * 71 - + 39 * - 60 col1, 30 - CASE - - 61 WHEN - 37 THEN NULL WHEN + 37 * - - 90 THEN 37 + 19 + - - 85 ELSE NULL END - 89 AS col0
----
2908
NULL

query I rowsort
SELECT DISTINCT + + 66 * + + 77 AS col2
----
5082

query I rowsort
SELECT ALL + 36 * - - 31 - 25 + 57 * 78
----
5537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT CAST( NULL AS SIGNED ) * + 69 * NULLIF ( + MIN( + - ( + 7 ) ), - 39 * - 4 * - 24 * - 24 ) / COUNT( ALL + 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT CAST ( NULL AS INTEGER ) * + 69 * NULLIF ( + MIN ( + - ( + 7 ) ), - 39 * - 4 * - 24 * - 24 ) / COUNT ( ALL + 63 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT ALL - - SUM( DISTINCT - 58 ) AS col0, + COUNT( * ) AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0
----
-58
1

query I rowsort
SELECT ALL - 7 * + 28 * + - 68 + - 0 - + 25
----
13303

query I rowsort
SELECT 97 * + - 81 * - 90 AS col1
----
707130

query I rowsort
SELECT - 58 * + - 53 + - 36 AS col0
----
3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT - 16 DIV + 16 + - - COUNT( * ) * 71 - + + 13 - - 19 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 16 / + 16 + - - COUNT ( * ) * 71 - + + 13 - - 19 AS col2
----
76

query I rowsort
SELECT - 15 - - 3 + - - 34 + + 1
----
23

query I rowsort
SELECT - - 23 * + 19
----
437

query I rowsort
SELECT DISTINCT + + 70 * 8 * + - 28 AS col0
----
-15680

query I rowsort
SELECT + 25 * - 85 + + 66
----
-2059

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT + 42 - + 16 DIV + - 73 + + 41 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6685
SELECT + 42 - + 16 / + - 73 + + 41 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT ALL 24 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL 24 / - 49
----
0

query II rowsort
SELECT - 68 AS col0, 25
----
-68
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT + 36 DIV 2 col2
----
18

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 36 / 2 col2
----
18

query I rowsort
SELECT 77 * 21 + + + 51 - + 49 * 83 * + 29
----
-116275

query I rowsort
SELECT - NULLIF ( + 9, 89 / 22 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL 18 + + NULLIF ( + 24, - - MAX( + 73 ) )
----
42

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL 18 + + NULLIF ( + 24, - - MAX ( + 73 ) )
----
42

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

query II rowsort
SELECT ALL CASE + - 46 WHEN 18 THEN NULL WHEN + ( ( - 88 ) ) * 47 / - 5 + + + 43 - - 6 + - 16 THEN + ( + 1 ) END * - 5 + - - 69, - 47 AS col0
----
NULL
-47

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

skipif mysql # not compatible
query I rowsort label-6694
SELECT + CAST ( NULL AS INTEGER ) / 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL NULLIF ( + COUNT( * ), + + COUNT( * ) ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT COUNT ( * ) * - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6697
SELECT ALL CASE + - 73 WHEN - - 41 THEN CAST( + + 14 AS SIGNED ) + COUNT( * ) WHEN + MIN( ALL - 55 ) THEN NULL END * - 25 + + - CAST( - COUNT( * ) AS SIGNED ) + 30 / + + COUNT( * ) * 69 * 86 / - 67 / 19 - COUNT( * ) AS col1, + 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6697
SELECT ALL CASE + - 73 WHEN - - 41 THEN CAST ( + + 14 AS INTEGER ) + COUNT ( * ) WHEN + MIN ( ALL - 55 ) THEN NULL END * - 25 + + - CAST ( - COUNT ( * ) AS INTEGER ) + 30 / + + COUNT ( * ) * 69 * 86 / - 67 / 19 - COUNT ( * ) AS col1, + 0 AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 17 + - 49 * - 2 AS col0
----
115

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

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

query I rowsort
SELECT + 46 * 53
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL SUM( - - 50 ) + MIN( - NULLIF ( 94, 87 * - + 79 + - 2 + 10 * + 11 / - 50 + 36 ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL SUM ( - - 50 ) + MIN ( - NULLIF ( 94, 87 * - + 79 + - 2 + 10 * + 11 / - 50 + 36 ) ) AS col2
----
-44

query I rowsort
SELECT + 58 - 16 AS col1
----
42

query I rowsort
SELECT + 34 - - 80 * + 36 col2
----
2914

query II rowsort
SELECT - 55 col1, ( - + 82 ) col1
----
-55
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL COUNT( + + 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL COUNT ( + + 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + 10 + + 40 + - + NULLIF ( 54, - - COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6706
SELECT + 10 + + 40 + - + NULLIF ( 54, - - COUNT ( * ) ) AS col2
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT MIN( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6708
SELECT MIN ( + - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL - + 52 - 40 AS col0
----
-92

query I rowsort
SELECT ALL + 84 * + - 96
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - COUNT( * ) - - 79 + - COUNT( * ) * - - MIN( DISTINCT 41 )
----
37

skipif mysql # not compatible
query I rowsort label-6711
SELECT - COUNT ( * ) - - 79 + - COUNT ( * ) * - - MIN ( DISTINCT 41 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT + + COUNT( * ) * + 51
----
51

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + + COUNT ( * ) * + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 63 * + COUNT( * ) * + - COUNT( * ) * + 68 + - 38 + - - 52 AS col0
----
-4270

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 63 * + COUNT ( * ) * + - COUNT ( * ) * + 68 + - 38 + - - 52 AS col0
----
-4270

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT + - 10 DIV - 16 + - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6714
SELECT + - 10 / - 16 + - 45 AS col1
----
-45

query I rowsort
SELECT ALL + - 72 * + 47 * - 13 * + 99 AS col1
----
4355208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6716
SELECT + + COALESCE ( 17, 9 * + - 20 * + 91, - + 76 + - + MAX( + 79 ) + + 73 ) DIV - - 29 * + 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT + + COALESCE ( 17, 9 * + - 20 * + 91, - + 76 + - + MAX ( + 79 ) + + 73 ) / - - 29 * + 44 col0
----
0

query I rowsort
SELECT - + 12 * - - ( + + 71 )
----
-852

query I rowsort
SELECT - COALESCE ( ( + - 13 ), 92 + 16 )
----
13

query I rowsort
SELECT + + ( - 54 ) * - + 54 + + 50 AS col1
----
2966

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

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

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + MIN ( DISTINCT - 97 ) AS col1
----
-97

query I rowsort
SELECT - 22 * + 48 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL - - 97 * + 20 - + COALESCE ( + ( COUNT( * ) ), - + COUNT( * ) ) * - + 31
----
1971

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - - 97 * + 20 - + COALESCE ( + ( COUNT ( * ) ), - + COUNT ( * ) ) * - + 31
----
1971

query II rowsort
SELECT + 0 AS col2, - 76 AS col0
----
0
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT - 88 * - 54 + + 23 + - 43 DIV 41
----
4774

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 88 * - 54 + + 23 + - 43 / 41
----
4774

query I rowsort
SELECT NULLIF ( - - ( CASE + - 74 WHEN - 18 THEN NULL WHEN + 92 THEN 83 END ), - + 48 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT CASE + - 33 WHEN - - 51 THEN CASE - 91 WHEN MAX( ALL + 19 ) THEN - COUNT( DISTINCT - + 80 ) WHEN - 78 * - 53 THEN NULL ELSE - - 60 - 61 * + CAST( + 49 AS SIGNED ) END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT CASE + - 33 WHEN - - 51 THEN CASE - 91 WHEN MAX ( ALL + 19 ) THEN - COUNT ( DISTINCT - + 80 ) WHEN - 78 * - 53 THEN NULL ELSE - - 60 - 61 * + CAST ( + 49 AS INTEGER ) END END col1
----
NULL

query I rowsort
SELECT - ( 31 ) + + 57
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT + 30 * ( + + NULLIF ( - ( + ( - + 82 ) ), - ( 45 ) * 2 + + - 86 - + ( + 79 ) + 92 + + MAX( + - 2 ) * + + 33 + + 24 ) ) DIV - COALESCE ( + 34, - ( + 57 ) - - 5 + + - ( + - 88 ) DIV + 24 * + 6 + - COALESCE ( 48, 1 ) + + + NULLIF ( + 9, SUM( + - 61 ) + - - 37 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6730
SELECT + 30 * ( + + NULLIF ( - ( + ( - + 82 ) ), - ( 45 ) * 2 + + - 86 - + ( + 79 ) + 92 + + MAX ( + - 2 ) * + + 33 + + 24 ) ) / - COALESCE ( + 34, - ( + 57 ) - - 5 + + - ( + - 88 ) / + 24 * + 6 + - COALESCE ( 48, 1 ) + + + NULLIF ( + 9, SUM ( + - 61 ) + - - 37 ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6731
SELECT + 89 + + CAST( NULL AS SIGNED ) * - + SUM( DISTINCT - - 62 ), + 46 + - 69 + - 59 + + + COUNT( * ) + 1 - + + 33 col1
----
NULL
-113

skipif mysql # not compatible
query II rowsort label-6731
SELECT + 89 + + CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT - - 62 ), + 46 + - 69 + - 59 + + + COUNT ( * ) + 1 - + + 33 col1
----
NULL
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - 79 * + 88 * - - CASE - COUNT( * ) WHEN - + 18 THEN + ( - - 14 ) * + 69 + - - 29 / - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END / 95 + - - COUNT( * ) + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 79 * + 88 * - - CASE - COUNT ( * ) WHEN - + 18 THEN + ( - - 14 ) * + 69 + - - 29 / - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END / 95 + - - COUNT ( * ) + - 47
----
NULL

query II rowsort
SELECT ALL + 72 AS col2, - 90 col1
----
72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL + MAX( + - 12 ) * 39 AS col1
----
-468

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL + MAX ( + - 12 ) * 39 AS col1
----
-468

query II rowsort
SELECT DISTINCT 83 AS col2, + 65 + - 88 + 10 * + 3
----
83
7

query I rowsort
SELECT + 70 + - - 37 col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + COUNT( * ) + - 29 * + + 51 AS col0
----
-1478

skipif mysql # not compatible
query I rowsort label-6737
SELECT + COUNT ( * ) + - 29 * + + 51 AS col0
----
-1478

query I rowsort
SELECT - 58 + - + 34 AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT DISTINCT ( - + 27 ) DIV - - 6 col2
----
-4

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT ( - + 27 ) / - - 6 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - 34 + + 37 * - + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 34 + + 37 * - + COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT + 40 - 22
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6742
SELECT DISTINCT 48 AS col0, 64 + + - CASE + - 31 WHEN - + COALESCE ( + MAX( + + 72 ), + - ( + - 15 ) * + MIN( ALL + 6 ) + - ( - - COUNT( * ) ) * - + 58 + 40 + 33 + 65 + 4 * - - 57 / + - 17 * 89 + CAST( 28 AS DECIMAL ) * - ( - 65 ) / - + 86 ) THEN + - 80 END * - - MIN( - 74 ) / + 19 + - COALESCE ( + 14, SUM( 94 ) ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-6742
SELECT DISTINCT 48 AS col0, 64 + + - CASE + - 31 WHEN - + COALESCE ( + MAX ( + + 72 ), + - ( + - 15 ) * + MIN ( ALL + 6 ) + - ( - - COUNT ( * ) ) * - + 58 + 40 + 33 + 65 + 4 * - - 57 / + - 17 * 89 + CAST ( 28 AS REAL ) * - ( - 65 ) / - + 86 ) THEN + - 80 END * - - MIN ( - 74 ) / + 19 + - COALESCE ( + 14, SUM ( 94 ) ) AS col0
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT ALL 5 * ( - + 26 ) DIV 61
----
-2

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL 5 * ( - + 26 ) / 61
----
-2

query I rowsort
SELECT + 16 + + 65
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6745
SELECT 86 AS col2, 1 * CAST( NULL AS DECIMAL ) AS col1
----
86
NULL

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

query I rowsort
SELECT ALL 98 - 22
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT + 76 * - NULLIF ( COUNT( * ), - + 30 - 75 ) * - ( - + 1 ) * 77 - + + COUNT( * ), - 36 AS col1
----
-5853
-36

skipif mysql # not compatible
query II rowsort label-6747
SELECT + 76 * - NULLIF ( COUNT ( * ), - + 30 - 75 ) * - ( - + 1 ) * 77 - + + COUNT ( * ), - 36 AS col1
----
-5853
-36

query I rowsort
SELECT + 94 * 28 * 86 * ( + 7 ) * + 24 AS col0
----
38027136

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL + COUNT( * ) * MIN( ALL - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + COUNT ( * ) * MIN ( ALL - 49 ) AS col2
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6751
SELECT DISTINCT + 22 AS col0, CAST( - 4 AS SIGNED ) AS col1
----
22
-4

skipif mysql # not compatible
query II rowsort label-6751
SELECT DISTINCT + 22 AS col0, CAST ( - 4 AS INTEGER ) AS col1
----
22
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - MAX( - 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6752
SELECT - MAX ( - 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT - MIN( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - MIN ( 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL + + 45 * + ( ( + 54 ) ) + MAX( DISTINCT - + 4 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + + 45 * + ( ( + 54 ) ) + MAX ( DISTINCT - + 4 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL 80 + - COUNT( * ) + + 60
----
139

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL 80 + - COUNT ( * ) + + 60
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL + + COUNT( DISTINCT 7 ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + + COUNT ( DISTINCT 7 ) + 65
----
66

query I rowsort
SELECT 96 * 44 + - + 95 col2
----
4129

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6759
SELECT 91 AS col1, - 17 + CAST( NULL AS SIGNED ) + - 1 + + - 90 * - 46 * + - 84
----
91
NULL

skipif mysql # not compatible
query II rowsort label-6759
SELECT 91 AS col1, - 17 + CAST ( NULL AS INTEGER ) + - 1 + + - 90 * - 46 * + - 84
----
91
NULL

query I rowsort
SELECT ALL + 60 + + - 16 + 14 * 50
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT DISTINCT + CASE WHEN NOT ( NULL IS NOT NULL ) THEN - COALESCE ( + 27, - 66, 70, 56 ) ELSE - ( + COUNT( * ) ) / + 9 + + + 21 + - 12 END + - 17 + CAST( NULL AS SIGNED ) * + + 12 + + - 8 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + CASE WHEN NOT ( NULL IS NOT NULL ) THEN - COALESCE ( + 27, - 66, 70, 56 ) ELSE - ( + COUNT ( * ) ) / + 9 + + + 21 + - 12 END + - 17 + CAST ( NULL AS INTEGER ) * + + 12 + + - 8 * - COUNT ( * ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT - CASE SUM( + 19 ) WHEN + 8 DIV - - 54 THEN CASE + COUNT( * ) WHEN - 7 THEN 62 DIV + 17 + + 61 - + - CASE + + COUNT( * ) WHEN - 56 - - 37 THEN NULL WHEN + 80 THEN 68 ELSE + 1 * 36 + 5 - + 88 END + - 61 * - - 75 - - 44 + 71 END * 46 WHEN ( - - 82 ) * + 76 DIV + - 34 THEN 77 + + + CASE - ( COALESCE ( - 10, + 26 DIV - SUM( ALL - 16 ) + + NULLIF ( - - 88, 24 ) ) ) WHEN - 65 THEN NULL WHEN + + 87 * - 65 THEN NULL ELSE + 44 END WHEN - 95 + 64 * 18 THEN NULL ELSE - 70 END AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - CASE SUM ( + 19 ) WHEN + 8 / - - 54 THEN CASE + COUNT ( * ) WHEN - 7 THEN 62 / + 17 + + 61 - + - CASE + + COUNT ( * ) WHEN - 56 - - 37 THEN NULL WHEN + 80 THEN 68 ELSE + 1 * 36 + 5 - + 88 END + - 61 * - - 75 - - 44 + 71 END * 46 WHEN ( - - 82 ) * + 76 / + - 34 THEN 77 + + + CASE - ( COALESCE ( - 10, + 26 / - SUM ( ALL - 16 ) + + NULLIF ( - - 88, 24 ) ) ) WHEN - 65 THEN NULL WHEN + + 87 * - 65 THEN NULL ELSE + 44 END WHEN - 95 + 64 * 18 THEN NULL ELSE - 70 END AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT COUNT( * ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT COUNT ( * ) + + + 96
----
97

query I rowsort
SELECT DISTINCT - 96 * - 26 AS col1
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT 26 - CASE - 40 WHEN + - COALESCE ( + 57, 24 * 28 * + COUNT( * ), + + 58 * + - 45 ) + + 37 THEN 20 / - 70 + 35 WHEN 95 THEN NULL END + - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT 26 - CASE - 40 WHEN + - COALESCE ( + 57, 24 * 28 * + COUNT ( * ), + + 58 * + - 45 ) + + 37 THEN 20 / - 70 + 35 WHEN 95 THEN NULL END + - - 0 AS col0
----
NULL

query I rowsort
SELECT ALL + 42 * + 11 * + 11 AS col0
----
5082

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT 52 * + - SUM( ALL - + 45 ) + + + 63 + + + 1, COUNT( * ) col0
----
2404
1

skipif mysql # not compatible
query II rowsort label-6768
SELECT 52 * + - SUM ( ALL - + 45 ) + + + 63 + + + 1, COUNT ( * ) col0
----
2404
1

query I rowsort
SELECT DISTINCT + ( - 96 ) * - 28 + - 87
----
2601

query I rowsort
SELECT DISTINCT - 70 - + + 36 + 57
----
-49

query I rowsort
SELECT 38 * - 48
----
-1824

query I rowsort
SELECT DISTINCT - 25 * 23 * + 24 AS col2
----
-13800

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT - 27 DIV + - 92 * 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT - 27 / + - 92 * 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - ( CASE - + 73 WHEN 32 + AVG ( - 89 ) * - 45 * - - MIN( + 48 ) THEN NULL ELSE + + 72 END )
----
-72

skipif mysql # not compatible
query I rowsort label-6775
SELECT - ( CASE - + 73 WHEN 32 + AVG ( - 89 ) * - 45 * - - MIN ( + 48 ) THEN NULL ELSE + + 72 END )
----
-72

query II rowsort
SELECT 3 - + 45 AS col0, + 68
----
-42
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT + 45 DIV 39 * 93
----
93

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 45 / 39 * 93
----
93

query I rowsort
SELECT 62 * 53 * + + 31
----
101866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL - 7 DIV COUNT( ALL + 9 )
----
-7

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - 7 / COUNT ( ALL + 9 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT - CAST( 82 AS SIGNED ) + + 4 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6780
SELECT - CAST ( 82 AS INTEGER ) + + 4 AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6781
SELECT DISTINCT - 63 DIV 64 + NULLIF ( + + 96, + CASE + - CAST( + 45 AS SIGNED ) WHEN + 89 * COUNT( * ) * - 60 + - 61 THEN NULLIF ( + COALESCE ( - COALESCE ( - 82, 19 ), - + 42 * - 82 ), - + 98 ) WHEN + ( + + 86 ) * - 60 + 43 THEN NULL WHEN - 36 - 49 - - - COUNT( * ) + SUM( ALL CASE + 89 WHEN ( + 23 ) THEN + 78 END ) * + - 78 * + 4 THEN NULL ELSE NULL END * - COUNT( * ) + - 80 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - 63 / 64 + NULLIF ( + + 96, + CASE + - CAST ( + 45 AS INTEGER ) WHEN + 89 * COUNT ( * ) * - 60 + - 61 THEN NULLIF ( + COALESCE ( - COALESCE ( - 82, 19 ), - + 42 * - 82 ), - + 98 ) WHEN + ( + + 86 ) * - 60 + 43 THEN NULL WHEN - 36 - 49 - - - COUNT ( * ) + SUM ( ALL CASE + 89 WHEN ( + 23 ) THEN + 78 END ) * + - 78 * + 4 THEN NULL ELSE NULL END * - COUNT ( * ) + - 80 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT 41 + + COUNT( * ) * - 62
----
-21

skipif mysql # not compatible
query I rowsort label-6782
SELECT 41 + + COUNT ( * ) * - 62
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT ALL + 41 * CASE ( - 57 ) WHEN + - 4 + 25 THEN + ( - 98 ) + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + 41 * CASE ( - 57 ) WHEN + - 4 + 25 THEN + ( - 98 ) + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - ( 24 ) * + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6784
SELECT - ( 24 ) * + COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT ALL + 91 + + 45 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6786
SELECT + 21 * - + 2 + 28, SUM( + - NULLIF ( CAST( 93 AS SIGNED ), 38 ) ) AS col2
----
-14
-93

skipif mysql # not compatible
query II rowsort label-6786
SELECT + 21 * - + 2 + 28, SUM ( + - NULLIF ( CAST ( 93 AS INTEGER ), 38 ) ) AS col2
----
-14
-93

query I rowsort
SELECT DISTINCT + 22 * + - 67 AS col1
----
-1474

query I rowsort
SELECT 98 + + 22 + + ( + - 68 ) * - 74 AS col0
----
5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT ALL - - COALESCE ( - COUNT( * ), 38, + 48 DIV + 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - - COALESCE ( - COUNT ( * ), 38, + 48 / + 89 ) AS col0
----
-1

query I rowsort
SELECT ALL 14 + - 50 - 36
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT CAST( NULL AS SIGNED ) / + 59 * - 30 * - - 51 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT CAST ( NULL AS INTEGER ) / + 59 * - 30 * - - 51 + 37
----
NULL

query II rowsort
SELECT ALL - 33, 5 AS col1
----
-33
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6793
SELECT DISTINCT 30 * ( 76 ) AS col1, CAST( NULL AS SIGNED ) * + - 79 * + 62 * + - COUNT( * ) AS col1
----
2280
NULL

skipif mysql # not compatible
query II rowsort label-6793
SELECT DISTINCT 30 * ( 76 ) AS col1, CAST ( NULL AS INTEGER ) * + - 79 * + 62 * + - COUNT ( * ) AS col1
----
2280
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT COUNT( * ) - - + 69 + NULLIF ( - + COUNT( * ), COUNT( * ) + - + 19 * COUNT( * ) * + + 6 DIV + 13 ) - + 1 DIV - + 82
----
69

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT COUNT ( * ) - - + 69 + NULLIF ( - + COUNT ( * ), COUNT ( * ) + - + 19 * COUNT ( * ) * + + 6 / + 13 ) - + 1 / - + 82
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL - ( - 15 ) * 57 * - CASE - - 6 WHEN - MIN( 69 ) THEN COUNT( * ) ELSE NULL END * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - ( - 15 ) * 57 * - CASE - - 6 WHEN - MIN ( 69 ) THEN COUNT ( * ) ELSE NULL END * + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - 74 * COUNT( * ) + + - 15 * - SUM( DISTINCT - 67 ) * - 48 AS col1
----
48166

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 74 * COUNT ( * ) + + - 15 * - SUM ( DISTINCT - 67 ) * - 48 AS col1
----
48166

query II rowsort
SELECT ALL - 62, + 79 * + - 19 AS col0
----
-62
-1501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6799
SELECT DISTINCT 94 * CASE - + CAST( + 14 AS SIGNED ) WHEN - + 53 THEN 96 * - 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT 94 * CASE - + CAST ( + 14 AS INTEGER ) WHEN - + 53 THEN 96 * - 85 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6800
SELECT 7 * - 82 DIV 1 AS col2, ( - ( - - 85 ) ) + + + 82 * - 89 * + + 56 AS col1, + CAST( NULL AS SIGNED ) col0
----
-574
-408773
NULL

skipif mysql # not compatible
query III rowsort label-6800
SELECT 7 * - 82 / 1 AS col2, ( - ( - - 85 ) ) + + + 82 * - 89 * + + 56 AS col1, + CAST ( NULL AS INTEGER ) col0
----
-574
-408773
NULL

query I rowsort
SELECT ALL 29 * 12
----
348

query I rowsort
SELECT 13 + 15 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT CAST( NULL AS SIGNED ) + + 17 * + 7 * - - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT CAST ( NULL AS INTEGER ) + + 17 * + 7 * - - 35 AS col2
----
NULL

query II rowsort
SELECT ALL - 97 AS col0, 81
----
-97
81

query I rowsort
SELECT 47 * - 43 + - 31 AS col2
----
-2052

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT 51 DIV - 5
----
-10

skipif mysql # not compatible
query I rowsort label-6807
SELECT 51 / - 5
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL + 48 * - + 41 * COUNT( * ) AS col0
----
-1968

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + 48 * - + 41 * COUNT ( * ) AS col0
----
-1968

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6809
SELECT ALL 88 AS col2, 24 + - - CAST( NULL AS SIGNED ) col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL 88 AS col2, 24 + - - CAST ( NULL AS INTEGER ) col1
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT + COUNT( * ) * 49 * + - 85 AS col1
----
-4165

skipif mysql # not compatible
query I rowsort label-6810
SELECT + COUNT ( * ) * 49 * + - 85 AS col1
----
-4165

query I rowsort
SELECT 84 + - - 52
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6812
SELECT - 25 + 33 + + - 92 + ( - CAST( NULL AS SIGNED ) ) + - - 41 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT - 25 + 33 + + - 92 + ( - CAST ( NULL AS INTEGER ) ) + - - 41 * 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT 4 AS col1, - MIN( ALL + 52 )
----
4
-52

skipif mysql # not compatible
query II rowsort label-6813
SELECT 4 AS col1, - MIN ( ALL + 52 )
----
4
-52

query I rowsort
SELECT ALL + + 65 + 26 * 67 AS col1
----
1807

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + ( MAX( - 57 ) ) + - 1 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6815
SELECT + ( MAX ( - 57 ) ) + - 1 AS col0
----
-58

query I rowsort
SELECT - 52 * + + 97 AS col2
----
-5044

query II rowsort
SELECT - - 50 + 17 * - - 32 col1, 21 AS col1
----
594
21

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

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - COUNT ( DISTINCT - + 98 ) AS col2
----
-1

query I rowsort
SELECT - + COALESCE ( + NULLIF ( - - 45, - 34 ), + 57, - 14 * + 30 * + + 59 * - 6 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL + + 73 + - 56 + + 41 * 16 DIV 68 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + + 73 + - 56 + + 41 * 16 / 68 AS col0
----
26

query I rowsort
SELECT DISTINCT + 53 + + 37
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT - + CAST( + 38 AS SIGNED ) + - 52
----
-90

skipif mysql # not compatible
query I rowsort label-6822
SELECT - + CAST ( + 38 AS INTEGER ) + - 52
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT ALL - COUNT( * ) + - ( + 41 ) DIV COUNT( ALL - + 95 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - COUNT ( * ) + - ( + 41 ) / COUNT ( ALL - + 95 ) col0
----
-42

query I rowsort
SELECT - 2 + - 90
----
-92

query I rowsort
SELECT DISTINCT COALESCE ( + 65, - 59 )
----
65

query I rowsort
SELECT - ( 56 ) * + 94 + - 30 + + 80 + - 28 * - + 49 * - 40 + + - 78 AS col1
----
-60172

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL + ( + 67 ) + 35 AS col1, - COUNT( * )
----
102
-1

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL + ( + 67 ) + 35 AS col1, - COUNT ( * )
----
102
-1

query I rowsort
SELECT + + 48 + - 20 AS col0
----
28

query I rowsort
SELECT ALL - 68 * + ( - 83 ) + + - 61 AS col1
----
5583

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT + 57 DIV + + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 57 / + + 48 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL ( - COALESCE ( 31, 16, + + 68 ) ) * + ( 6 ) * 40 + + 90 + + - MAX( + 67 ) * + - 95 + + - 30 + - 30 + 31 col2
----
-1014

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL ( - COALESCE ( 31, 16, + + 68 ) ) * + ( 6 ) * 40 + + 90 + + - MAX ( + 67 ) * + - 95 + + - 30 + - 30 + 31 col2
----
-1014

onlyif mysql # DIV for integer division: 
query II rowsort label-6832
SELECT DISTINCT COALESCE ( 36, - - 14 * 78 + - 52 - - 85 * + 34 DIV + 47 ) * - + 86, - 25 AS col1
----
-3096
-25

skipif mysql # not compatible
query II rowsort label-6832
SELECT DISTINCT COALESCE ( 36, - - 14 * 78 + - 52 - - 85 * + 34 / + 47 ) * - + 86, - 25 AS col1
----
-3096
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT + 54 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-6833
SELECT + 54 / + 48
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT - COUNT( * ) * - 14 + + + 39
----
53

skipif mysql # not compatible
query I rowsort label-6835
SELECT - COUNT ( * ) * - 14 + + + 39
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT + 30 * - CAST( - + 82 AS SIGNED ) AS col0
----
2460

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 30 * - CAST ( - + 82 AS INTEGER ) AS col0
----
2460

query II rowsort
SELECT NULLIF ( + ( + 68 ), 29 ) AS col2, 10 - - 75
----
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL 53 * NULLIF ( + COUNT( * ), 47 )
----
53

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL 53 * NULLIF ( + COUNT ( * ), 47 )
----
53

query I rowsort
SELECT CASE 49 WHEN + 70 + - - ( - - 21 ) THEN + 75 END
----
NULL

query I rowsort
SELECT + 64 * + 5
----
320

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + COUNT( * ) * + 85 * + 67 * + - 72 AS col0
----
-410040

skipif mysql # not compatible
query I rowsort label-6843
SELECT + COUNT ( * ) * + 85 * + 67 * + - 72 AS col0
----
-410040

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL SUM( ALL + 98 ) * 72 + + 40 * + 45 + + + 57 + 52 + - - 78
----
9043

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL SUM ( ALL + 98 ) * 72 + + 40 * + 45 + + + 57 + 52 + - - 78
----
9043

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT MIN( - ( + 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-6845
SELECT MIN ( - ( + 95 ) )
----
-95

query I rowsort
SELECT + NULLIF ( - 19, + + 75 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - COALESCE ( - COUNT( * ), + 97, + + 59 + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6847
SELECT - COALESCE ( - COUNT ( * ), + 97, + + 59 + 79 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6848
SELECT - MAX ( DISTINCT 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + + 85 * - 80 + - COALESCE ( - SUM( - 99 ), - + 25 )
----
-6899

skipif mysql # not compatible
query I rowsort label-6849
SELECT + + 85 * - 80 + - COALESCE ( - SUM ( - 99 ), - + 25 )
----
-6899

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + - COUNT( * ) * 5 + - 31 + COUNT( * ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-6850
SELECT + - COUNT ( * ) * 5 + - 31 + COUNT ( * ) col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT + 46 + + COUNT( * ) + + - COUNT( * ) * - + 11 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + 46 + + COUNT ( * ) + + - COUNT ( * ) * - + 11 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL + 24 + - - 11 + - - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + 24 + - - 11 + - - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT - 72 * + 54
----
-3888

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - SUM( + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6855
SELECT - SUM ( + 24 ) AS col2
----
-24

query I rowsort
SELECT ALL - ( - 79 ) * + 88 * 43 + - - 78 * - 28 AS col1
----
296752

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT - - 83 * - - COUNT( * ) * CASE WHEN ( NOT 22 <= ( 22 ) ) THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - - 83 * - - COUNT ( * ) * CASE WHEN ( NOT 22 <= ( 22 ) ) THEN + 89 END
----
NULL

query I rowsort
SELECT - + ( + 23 ) + + - 59 AS col2
----
-82

query I rowsort
SELECT DISTINCT - 70 - + 2 AS col2
----
-72

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT - 29 DIV 84 * - + 48 DIV 79 + - + 51 - + ( 25 ) + - 49
----
-125

skipif mysql # not compatible
query I rowsort label-6861
SELECT - 29 / 84 * - + 48 / 79 + - + 51 - + ( 25 ) + - 49
----
-125

query I rowsort
SELECT - ( + + 59 ) * 55
----
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - 48 * - NULLIF ( 38, 27 * + - 79 - - MIN( - 34 ) - 40 ) AS col2
----
1824

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 48 * - NULLIF ( 38, 27 * + - 79 - - MIN ( - 34 ) - 40 ) AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT + NULLIF ( 41, + - 52 * 52 * COUNT( * ) * + + 7 * - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-6864
SELECT + NULLIF ( 41, + - 52 * 52 * COUNT ( * ) * + + 7 * - COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6865
SELECT + COUNT( * ) / MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2, 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6865
SELECT + COUNT ( * ) / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col2
----
NULL
24

query I rowsort
SELECT - 12 * + 76
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT ALL + COUNT( ALL 90 ) DIV + 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + COUNT ( ALL 90 ) / + 59 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6868
SELECT - MAX( - 2 ) DIV 11 * + 59 * + 98 AS col1, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6868
SELECT - MAX ( - 2 ) / 11 * + 59 * + 98 AS col1, CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL + MIN( + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + MIN ( + 22 ) AS col2
----
22

query I rowsort
SELECT DISTINCT + 66 * 56
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6871
SELECT + 27 * + + ( - COALESCE ( - COUNT( + 31 ), 56 ) ) + - 22 + 64 + - - CAST( + ( - - 11 ) AS SIGNED ) DIV - 24 * - - 2, 36 AS col1
----
69
36

skipif mysql # not compatible
query II rowsort label-6871
SELECT + 27 * + + ( - COALESCE ( - COUNT ( + 31 ), 56 ) ) + - 22 + 64 + - - CAST ( + ( - - 11 ) AS INTEGER ) / - 24 * - - 2, 36 AS col1
----
69
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6873
SELECT 47 + + COUNT ( * )
----
48

query I rowsort
SELECT ALL - 49 + 82 AS col0
----
33

query I rowsort
SELECT DISTINCT 27 + 86
----
113

query I rowsort
SELECT ALL 86 + 28 col2
----
114

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

query I rowsort
SELECT ( + 17 ) + + 60 * 66 AS col1
----
3977

query I rowsort
SELECT 1 + + 98
----
99

query I rowsort
SELECT ALL 26 + + 61 * 31
----
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT MAX( 57 ) + 55
----
112

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT MAX ( 57 ) + 55
----
112

query I rowsort
SELECT 17 + ( - 56 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT DISTINCT 31 * NULLIF ( + 42, - MIN( ALL - 61 ) / - NULLIF ( - MIN( + 36 ), CAST( 54 AS SIGNED ) * - 28 ) )
----
1302

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT 31 * NULLIF ( + 42, - MIN ( ALL - 61 ) / - NULLIF ( - MIN ( + 36 ), CAST ( 54 AS INTEGER ) * - 28 ) )
----
1302

query I rowsort
SELECT ALL 90 - 32
----
58

query I rowsort
SELECT DISTINCT 25 - ( - 82 + + 33 ) * 74
----
3651

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COALESCE ( - 5, - 4 + + 30 * 72, - COUNT( * ) ) + 59 * COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-6886
SELECT COALESCE ( - 5, - 4 + + 30 * 72, - COUNT ( * ) ) + 59 * COUNT ( * ) col2
----
54

query I rowsort
SELECT 91 * 76
----
6916

query I rowsort
SELECT 26 + + 97
----
123

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

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

query I rowsort
SELECT 33 * 21 AS col0
----
693

query I rowsort
SELECT ALL + ( + 88 ) * - 19
----
-1672

query I rowsort
SELECT DISTINCT + 79 * - 34
----
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT ( - NULLIF ( ( + 52 ), NULLIF ( COUNT( ALL CASE 36 WHEN + ( 0 ) * + COALESCE ( 90 * - 53, + 68 * 70 ) THEN 23 END ), 31 * 34 ) ) ) * 18 AS col0
----
-936

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT ( - NULLIF ( ( + 52 ), NULLIF ( COUNT ( ALL CASE 36 WHEN + ( 0 ) * + COALESCE ( 90 * - 53, + 68 * 70 ) THEN 23 END ), 31 * 34 ) ) ) * 18 AS col0
----
-936

query I rowsort
SELECT DISTINCT - 34 + + 71 AS col2
----
37

query I rowsort
SELECT 98 * 60 + 40 AS col0
----
5920

query I rowsort
SELECT ALL + 62 + 71 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 51 - ( + MAX( DISTINCT + 62 ) ) * + 47
----
-2863

skipif mysql # not compatible
query I rowsort label-6897
SELECT 51 - ( + MAX ( DISTINCT + 62 ) ) * + 47
----
-2863

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT ALL 62 + - 63 DIV 5 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL 62 + - 63 / 5 AS col2
----
50

query I rowsort
SELECT - 87 * 46 - 49 * - 30 AS col1
----
-2532

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

query I rowsort
SELECT ALL - + 54 + + 45
----
-9

query I rowsort
SELECT 72 * 41 col0
----
2952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - SUM( - 43 ) * - 5 AS col2
----
-215

skipif mysql # not compatible
query I rowsort label-6904
SELECT - SUM ( - 43 ) * - 5 AS col2
----
-215

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT COUNT( * ) - 69 * + 51 AS col1
----
-3518

skipif mysql # not compatible
query I rowsort label-6906
SELECT COUNT ( * ) - 69 * + 51 AS col1
----
-3518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT - + CAST( - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-6907
SELECT - + CAST ( - 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT 10 * + 19 AS col2
----
190

query I rowsort
SELECT 90 + COALESCE ( 67 + ( 88 + + ( 88 ) * 8 ), 53 )
----
949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT ALL CASE NULLIF ( - 91, MIN( ALL + 70 ) ) WHEN + 20 THEN + CAST( NULL AS SIGNED ) WHEN NULLIF ( - COUNT( * ), + COUNT( * ) * + 53 ) THEN 42 WHEN SUM( ALL 17 ) / - 49 + - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL CASE NULLIF ( - 91, MIN ( ALL + 70 ) ) WHEN + 20 THEN + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - COUNT ( * ), + COUNT ( * ) * + 53 ) THEN 42 WHEN SUM ( ALL 17 ) / - 49 + - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + COUNT( * ) * - COALESCE ( ( + 60 ) * 32, + 98 )
----
-1920

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COUNT ( * ) * - COALESCE ( ( + 60 ) * 32, + 98 )
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT CAST( + 62 AS SIGNED ) * + 9
----
558

skipif mysql # not compatible
query I rowsort label-6912
SELECT CAST ( + 62 AS INTEGER ) * + 9
----
558

query I rowsort
SELECT 7 + - 44
----
-37

query I rowsort
SELECT DISTINCT 30 * - + 4
----
-120

query I rowsort
SELECT 26 + 34
----
60

query I rowsort
SELECT ALL 77 * - 1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT NULLIF ( 90, 38 ) + 55 * - SUM( DISTINCT 2 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6917
SELECT NULLIF ( 90, 38 ) + 55 * - SUM ( DISTINCT 2 ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT DISTINCT 18 DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT 18 / 40 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT 58 DIV + MIN( ALL - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-6919
SELECT 58 / + MIN ( ALL - 97 )
----
0

query I rowsort
SELECT 70 + - - 43 * - 86
----
-3628

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL + 85 * + - COUNT( * ) + - 34 * NULLIF ( - 43 + 31 * - 94, CAST( - 81 AS SIGNED ) * COUNT( * ) ) AS col0
----
100453

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + 85 * + - COUNT ( * ) + - 34 * NULLIF ( - 43 + 31 * - 94, CAST ( - 81 AS INTEGER ) * COUNT ( * ) ) AS col0
----
100453

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

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

query I rowsort
SELECT ALL 56 * 21 + ( + 62 )
----
1238

query I rowsort
SELECT NULLIF ( 4, 18 / - 24 + - 64 * - CASE + 67 * 42 WHEN - 15 THEN - CASE + 36 WHEN 69 + 25 THEN 81 ELSE NULL END END )
----
4

query I rowsort
SELECT ALL 57 * + 68 AS col2
----
3876

query I rowsort
SELECT + - 80 * 75 + 41
----
-5959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT ALL - COUNT( * ) * + CASE + 96 WHEN NULLIF ( + 58, AVG ( - 25 ) ) + 14 THEN + 97 WHEN CAST( 50 AS SIGNED ) / 24 THEN NULL WHEN - NULLIF ( + 12, - ( ( 36 ) ) ) - + 77 THEN - 66 END / 84 + 97 - 87 / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - COUNT ( * ) * + CASE + 96 WHEN NULLIF ( + 58, AVG ( - 25 ) ) + 14 THEN + 97 WHEN CAST ( 50 AS INTEGER ) / 24 THEN NULL WHEN - NULLIF ( + 12, - ( ( 36 ) ) ) - + 77 THEN - 66 END / 84 + 97 - 87 / + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT COUNT( * ) * - 94 - 60 + + 31 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-6929
SELECT COUNT ( * ) * - 94 - 60 + + 31 AS col2
----
-123

query I rowsort
SELECT - COALESCE ( + 75, 24, 37 ) + 37
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT - - 96 + + COALESCE ( COUNT( * ), - 82 * - 26 + NULLIF ( + ( 57 ), 80 + CAST( NULL AS SIGNED ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-6931
SELECT - - 96 + + COALESCE ( COUNT ( * ), - 82 * - 26 + NULLIF ( + ( 57 ), 80 + CAST ( NULL AS INTEGER ) ) )
----
97

query I rowsort
SELECT ALL - 85 * + 20 + ( 62 ) * - 0 AS col1
----
-1700

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6934
SELECT - - 46 DIV + + 51 + + COUNT( * ) * - NULLIF ( 13, + 58 + 1 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6934
SELECT - - 46 / + + 51 + + COUNT ( * ) * - NULLIF ( 13, + 58 + 1 ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6935
SELECT ALL - 41 DIV - + CAST( 76 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - 41 / - + CAST ( 76 AS INTEGER )
----
0

query I rowsort
SELECT - 55 + + 69 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - + CASE + - COUNT( * ) WHEN + 14 THEN + 65 + + 19 ELSE NULL END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT - + CASE + - COUNT ( * ) WHEN + 14 THEN + 65 + + 19 ELSE NULL END * 75
----
NULL

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

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

query I rowsort
SELECT ALL - 91 * + COALESCE ( - 29, + 48 )
----
2639

query I rowsort
SELECT + 82 + + 50 * + 13 AS col1
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT MAX( DISTINCT - COALESCE ( 39, - 73, - 61 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT MAX ( DISTINCT - COALESCE ( 39, - 73, - 61 ) )
----
-39

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

query I rowsort
SELECT DISTINCT COALESCE ( - ( - 68 ), + 15, 96 )
----
68

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

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT 77 + + + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT ALL 23 + - + ( + - 80 ) + 28 AS col0
----
131

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

query I rowsort
SELECT + 81 * - - 81
----
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT 58, - CASE 52 WHEN - 43 * - 74 THEN NULL WHEN + COALESCE ( - MIN( ALL - ( 0 ) ), - 49 ) * 6 THEN 73 ELSE 60 END col1
----
58
-60

skipif mysql # not compatible
query II rowsort label-6948
SELECT 58, - CASE 52 WHEN - 43 * - 74 THEN NULL WHEN + COALESCE ( - MIN ( ALL - ( 0 ) ), - 49 ) * 6 THEN 73 ELSE 60 END col1
----
58
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6949
SELECT - CASE + CASE 36 WHEN 61 + + CAST( NULL AS SIGNED ) THEN 43 - 64 ELSE 30 END WHEN + 2 + + 9 THEN COUNT( * ) * NULLIF ( - 28, - 51 ) WHEN 63 / 78 - AVG ( DISTINCT + 16 ) THEN - 37 WHEN - ( - ( - 39 ) ) THEN - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT - CASE + CASE 36 WHEN 61 + + CAST ( NULL AS INTEGER ) THEN 43 - 64 ELSE 30 END WHEN + 2 + + 9 THEN COUNT ( * ) * NULLIF ( - 28, - 51 ) WHEN 63 / 78 - AVG ( DISTINCT + 16 ) THEN - 37 WHEN - ( - ( - 39 ) ) THEN - 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT - 44 * COUNT( * ) * 66
----
-2904

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - 44 * COUNT ( * ) * 66
----
-2904

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT ALL + 2 AS col2, + 81 + - - ( COUNT( * ) ) AS col2
----
2
82

skipif mysql # not compatible
query II rowsort label-6951
SELECT ALL + 2 AS col2, + 81 + - - ( COUNT ( * ) ) AS col2
----
2
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + SUM( ALL + 30 ) * - 79 AS col2
----
-2370

skipif mysql # not compatible
query I rowsort label-6952
SELECT + SUM ( ALL + 30 ) * - 79 AS col2
----
-2370

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL 63 DIV - - 2
----
31

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL 63 / - - 2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT DISTINCT 46 DIV + COUNT( * ) - - - 98 + + COUNT( * ) * - 57 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT 46 / + COUNT ( * ) - - - 98 + + COUNT ( * ) * - 57 AS col1
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6955
SELECT + 83 DIV - + 29 * COUNT( * ) + - 11
----
-13

skipif mysql # not compatible
query I rowsort label-6955
SELECT + 83 / - + 29 * COUNT ( * ) + - 11
----
-13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT + + CASE - 36 WHEN - 11 THEN NULL ELSE ( + 71 ) * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT + + CASE - 36 WHEN - 11 THEN NULL ELSE ( + 71 ) * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 * + NULLIF ( + 84, 71 - 75 * 96 ) * 54 AS col2
----
108864

query I rowsort
SELECT + 94 + + + 70 AS col0
----
164

query II rowsort
SELECT + - 14 AS col0, 20 AS col1
----
-14
20

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

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

query I rowsort
SELECT ALL - 56 * 81 * + - 67 * 87 AS col2
----
26440344

query I rowsort
SELECT + - 50 * - 63 AS col2
----
3150

query I rowsort
SELECT DISTINCT + 11 * - CASE + + 89 WHEN 78 * 21 THEN + ( + 37 ) * - 32 ELSE + CASE - AVG ( ALL + 29 ) WHEN - 19 THEN + 60 END + + 46 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6965
SELECT - 43 - - 65 + + 93 DIV + COUNT( ALL 55 + + 8 * 37 ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 43 - - 65 + + 93 / + COUNT ( ALL 55 + + 8 * 37 ) AS col2
----
115

query I rowsort
SELECT + 83 * - - 74 * + 4
----
24568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT + + CASE + - 82 WHEN - COALESCE ( + ( CAST( CAST( - 2 AS SIGNED ) AS SIGNED ) ), + 26 - ( + 72 ) ) THEN - COUNT( * ) * 85 END - MAX( ALL + 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT + + CASE + - 82 WHEN - COALESCE ( + ( CAST ( CAST ( - 2 AS INTEGER ) AS INTEGER ) ), + 26 - ( + 72 ) ) THEN - COUNT ( * ) * 85 END - MAX ( ALL + 10 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 31 col1
----
31

query I rowsort
SELECT + - 98 - + - 93
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT - + NULLIF ( - + COUNT( * ), - COALESCE ( - 14, - 96, 56 ) + 62 ) DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT - + NULLIF ( - + COUNT ( * ), - COALESCE ( - 14, - 96, 56 ) + 62 ) / 95 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6971
SELECT ALL - 9 AS col0, + NULLIF ( - 47, 9 + + 25 * COUNT( - ( - 0 ) ) ) + CAST( + 41 AS SIGNED ) AS col2
----
-9
-6

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL - 9 AS col0, + NULLIF ( - 47, 9 + + 25 * COUNT ( - ( - 0 ) ) ) + CAST ( + 41 AS INTEGER ) AS col2
----
-9
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6972
SELECT ALL + - 50 * + ( 29 ) + + 91 DIV CAST( ( 87 ) AS SIGNED )
----
-1449

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + - 50 * + ( 29 ) + + 91 / CAST ( ( 87 ) AS INTEGER )
----
-1449

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT - 48 DIV - ( 20 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6973
SELECT - 48 / - ( 20 ) AS col1
----
2

query I rowsort
SELECT ALL + 90 * - - 30 + - 84 AS col1
----
2616

query I rowsort
SELECT DISTINCT + 20 * 93 * - + 59
----
-109740

query I rowsort
SELECT - 12 + + 97
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6977
SELECT DISTINCT + 21 * + + CASE + 64 WHEN + COALESCE ( COUNT( * ), 60 * + COALESCE ( - 73, 43 * CAST( NULL AS SIGNED ) - COUNT( * ) ) ) * - 65 THEN COUNT( * ) * COUNT( + 84 ) WHEN - COALESCE ( + 93, - 53 * - 83, - COUNT( * ) ) THEN CAST( NULL AS DECIMAL ) * SUM( ALL - 25 * 99 ) - - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + 21 * + + CASE + 64 WHEN + COALESCE ( COUNT ( * ), 60 * + COALESCE ( - 73, 43 * CAST ( NULL AS INTEGER ) - COUNT ( * ) ) ) * - 65 THEN COUNT ( * ) * COUNT ( + 84 ) WHEN - COALESCE ( + 93, - 53 * - 83, - COUNT ( * ) ) THEN CAST ( NULL AS REAL ) * SUM ( ALL - 25 * 99 ) - - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT 51 + COUNT( * ) * + - 22 * + + 5 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6978
SELECT 51 + COUNT ( * ) * + - 22 * + + 5 AS col2
----
-59

query I rowsort
SELECT CASE 52 WHEN + - 23 THEN NULL WHEN + 46 THEN NULL WHEN 40 THEN + 68 ELSE 97 * 57 END - 69 * 98 AS col2
----
-1233

query II rowsort
SELECT ALL 70 - 17 AS col1, + 41
----
53
41

query I rowsort
SELECT DISTINCT - 49 - + ( - 92 ) * - CASE 17 WHEN - 64 THEN + 44 / 13 WHEN - 31 THEN NULL END * 15 AS col0
----
NULL

query I rowsort
SELECT ALL 22 * 5 col0
----
110

query I rowsort
SELECT 86 + + ( - 38 ) AS col2
----
48

query I rowsort
SELECT 95 + + 43 + - - 28 AS col2
----
166

query I rowsort
SELECT DISTINCT + 13 * 67 * + - NULLIF ( + 39, + 81 )
----
-33969

query I rowsort
SELECT 6 + + 84 + + 45 + + 29
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT NULLIF ( + + 21, 38 ) * + + COALESCE ( - MIN( ALL + 70 ), 64 + - 79 ) col0
----
-1470

skipif mysql # not compatible
query I rowsort label-6987
SELECT NULLIF ( + + 21, 38 ) * + + COALESCE ( - MIN ( ALL + 70 ), 64 + - 79 ) col0
----
-1470

query I rowsort
SELECT + - ( - NULLIF ( + 9, 4 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT + NULLIF ( + - 27, + 20 ) * 46 + + COUNT( * )
----
-1241

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + NULLIF ( + - 27, + 20 ) * 46 + + COUNT ( * )
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - - COALESCE ( - 47, + MIN( DISTINCT - 90 ), + 59 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - - COALESCE ( - 47, + MIN ( DISTINCT - 90 ), + 59 ) col0
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT SUM( ALL - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6992
SELECT SUM ( ALL - 42 ) AS col0
----
-42

query I rowsort
SELECT ALL - - CASE - - COALESCE ( 82, 51 ) WHEN CASE 82 WHEN COALESCE ( - 47, 37 ) * 59 THEN 86 * - 42 + 37 END THEN NULL ELSE 24 END
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT + 37 * - 16 * + MAX( ALL CAST( + 31 AS SIGNED ) ) + 35 AS col2
----
-18317

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 37 * - 16 * + MAX ( ALL CAST ( + 31 AS INTEGER ) ) + 35 AS col2
----
-18317

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL + 33 + 11 - - + MIN( ALL + 64 ) * + 42
----
2732

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + 33 + 11 - - + MIN ( ALL + 64 ) * + 42
----
2732

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ( + COUNT( DISTINCT 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6996
SELECT ( + COUNT ( DISTINCT 32 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + + COUNT( - 0 ) * COUNT( * ) + + + 65 - ( - 76 )
----
142

skipif mysql # not compatible
query I rowsort label-6997
SELECT + + COUNT ( - 0 ) * COUNT ( * ) + + + 65 - ( - 76 )
----
142

query I rowsort
SELECT DISTINCT 43 + + 27
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT ALL 86 + - 1 * - 61 DIV + + 92 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 86 + - 1 * - 61 / + + 92 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT + 39 + MAX( ALL + - 61 ) + + - 72 * 5 AS col2
----
-382

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + 39 + MAX ( ALL + - 61 ) + + - 72 * 5 AS col2
----
-382

query I rowsort
SELECT ALL + 34 + - 19 AS col2
----
15

query I rowsort
SELECT ALL COALESCE ( + 79, + 70 + - + 13 + + ( 31 ) + 22 * + 67 ) + ( + 94 )
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT 70 + + - 16 DIV - ( - 48 ) * - + 40 + + 7
----
77

skipif mysql # not compatible
query I rowsort label-7004
SELECT 70 + + - 16 / - ( - 48 ) * - + 40 + + 7
----
77

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

query I rowsort
SELECT 77 * - ( - - 55 ) AS col1
----
-4235

onlyif mysql # DIV for integer division: 
query II rowsort label-7007
SELECT 21, + 3 DIV - - 37 AS col2
----
21
0

skipif mysql # not compatible
query II rowsort label-7007
SELECT 21, + 3 / - - 37 AS col2
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT + SUM( DISTINCT + + 82 ) * - 33 + + COUNT( * ) - + 60
----
-2765

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + SUM ( DISTINCT + + 82 ) * - 33 + + COUNT ( * ) - + 60
----
-2765

query I rowsort
SELECT DISTINCT 99 - 58 AS col2
----
41

query I rowsort
SELECT ALL + 72 * 72 AS col1
----
5184

query I rowsort
SELECT ALL + 99 - ( - - 51 ) * - 65 + + 97 + + 14
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT CAST( + COUNT( * ) AS SIGNED ) * - - 66 * 33 * 10 AS col0
----
21780

skipif mysql # not compatible
query I rowsort label-7012
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - - 66 * 33 * 10 AS col0
----
21780

query I rowsort
SELECT ALL - 27 * ( + 25 )
----
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT 11 DIV - - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT 11 / - - 49 AS col2
----
0

query I rowsort
SELECT 82 * + 64 AS col2
----
5248

query I rowsort
SELECT DISTINCT - + 78 * - 11
----
858

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT - - 24 * ( ( + - 98 ) ) - 14 DIV 94 + - COUNT( * )
----
-2353

skipif mysql # not compatible
query I rowsort label-7019
SELECT - - 24 * ( ( + - 98 ) ) - 14 / 94 + - COUNT ( * )
----
-2353

query II rowsort
SELECT DISTINCT - - 86 col2, ( - 54 ) - + 36 - ( 11 ) * 91 AS col1
----
86
-1091

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7021
SELECT 61 AS col2, CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT 61 AS col2, CAST ( NULL AS INTEGER )
----
61
NULL

query I rowsort
SELECT 54 * 41 col1
----
2214

query I rowsort
SELECT 41 * + 42
----
1722

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7024
SELECT + CAST( - CAST( 51 AS SIGNED ) AS SIGNED ) DIV + 66 + - + 91 * + 93 + 44 DIV - 34 AS col0
----
-8464

skipif mysql # not compatible
query I rowsort label-7024
SELECT + CAST ( - CAST ( 51 AS INTEGER ) AS INTEGER ) / + 66 + - + 91 * + 93 + 44 / - 34 AS col0
----
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT 3 + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7025
SELECT 3 + + COUNT ( * )
----
4

query I rowsort
SELECT ALL 31 * 37 col2
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT DISTINCT + COUNT( ALL + ( COALESCE ( + 54, + - 76, - 99 ) ) ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT + COUNT ( ALL + ( COALESCE ( + 54, + - 76, - 99 ) ) ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT - 28 * + CASE CASE + 29 WHEN 66 * ( + 50 / 87 ) THEN - CASE CASE 88 WHEN - COUNT( ALL + 97 ) THEN 83 * - 99 - + 77 WHEN MIN( + 60 ) THEN NULL ELSE - 71 / 54 END WHEN 5 THEN + NULLIF ( - 43, - 89 ) + + 43 WHEN CAST( NULL AS SIGNED ) THEN 88 ELSE - 37 END * + 83 END WHEN 30 THEN NULL WHEN 21 + + 91 / + 9 THEN MAX( 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT - 28 * + CASE CASE + 29 WHEN 66 * ( + 50 / 87 ) THEN - CASE CASE 88 WHEN - COUNT ( ALL + 97 ) THEN 83 * - 99 - + 77 WHEN MIN ( + 60 ) THEN NULL ELSE - 71 / 54 END WHEN 5 THEN + NULLIF ( - 43, - 89 ) + + 43 WHEN CAST ( NULL AS INTEGER ) THEN 88 ELSE - 37 END * + 83 END WHEN 30 THEN NULL WHEN 21 + + 91 / + 9 THEN MAX ( 16 ) END
----
NULL

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

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

query II rowsort
SELECT ALL - 90, 2 AS col1
----
-90
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT + SUM( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7031
SELECT + SUM ( + 94 )
----
94

query I rowsort
SELECT - 30 - + 63 - + 61 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7033
SELECT - 89 * + CAST( + 17 AS SIGNED ) DIV + - COUNT( * )
----
1513

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 89 * + CAST ( + 17 AS INTEGER ) / + - COUNT ( * )
----
1513

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT ALL 0 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL 0 / + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + 6 - - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 6 - - - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT ALL 68, 11 + + - COUNT( ALL 88 ) AS col2
----
68
10

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL 68, 11 + + - COUNT ( ALL 88 ) AS col2
----
68
10

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

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

query II rowsort
SELECT 68, + 38 AS col2
----
68
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7039
SELECT ALL 64 DIV CAST( + ( + 20 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 64 / CAST ( + ( + 20 ) AS INTEGER )
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT ALL COUNT( * ) * 83 * - 52 * - - 52 AS col2, COUNT( * ) AS col0
----
-224432
1

skipif mysql # not compatible
query II rowsort label-7041
SELECT ALL COUNT ( * ) * 83 * - 52 * - - 52 AS col2, COUNT ( * ) AS col0
----
-224432
1

query I rowsort
SELECT + ( - 76 ) - 4
----
-80

query I rowsort
SELECT ALL 58 * 27 AS col2
----
1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT + 28 - ( CASE 45 WHEN CAST( - 95 AS SIGNED ) * 59 THEN 65 * - 65 ELSE + SUM( 37 ) + + 12 END ) + 22
----
1

skipif mysql # not compatible
query I rowsort label-7044
SELECT + 28 - ( CASE 45 WHEN CAST ( - 95 AS INTEGER ) * 59 THEN 65 * - 65 ELSE + SUM ( 37 ) + + 12 END ) + 22
----
1

query I rowsort
SELECT DISTINCT 93 * 62 AS col1
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + ( - 45 ) + + - MIN( ALL - 83 )
----
38

skipif mysql # not compatible
query I rowsort label-7046
SELECT + ( - 45 ) + + - MIN ( ALL - 83 )
----
38

query I rowsort
SELECT - 22 * + 24 AS col2
----
-528

query II rowsort
SELECT DISTINCT 2, + 29 AS col2
----
2
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL - MAX( + NULLIF ( - ( - - 97 ), + 19 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - MAX ( + NULLIF ( - ( - - 97 ), + 19 ) ) AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT ALL + 57 DIV - 14 - 83 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + 57 / - 14 - 83 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT + MAX( - 44 ) + - - MIN( 58 )
----
14

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT + MAX ( - 44 ) + - - MIN ( 58 )
----
14

query I rowsort
SELECT - CASE + 11 WHEN ( 6 ) THEN NULL WHEN - 67 THEN - 99 + + 68 ELSE 86 END
----
-86

query II rowsort
SELECT - 11, + 7 col2
----
-11
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7054
SELECT - 23 AS col2, CASE 73 WHEN + - COALESCE ( 17, - 44 + + 30 * 86 ) * CAST( NULL AS SIGNED ) + 56 THEN + 76 * + 53 WHEN 9 THEN NULL WHEN - 37 / 84 + 15 THEN 94 / - 24 - AVG ( DISTINCT 65 ) * + 69 ELSE NULL END * - ( ( 50 ) + + 4 / 55 )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-7054
SELECT - 23 AS col2, CASE 73 WHEN + - COALESCE ( 17, - 44 + + 30 * 86 ) * CAST ( NULL AS INTEGER ) + 56 THEN + 76 * + 53 WHEN 9 THEN NULL WHEN - 37 / 84 + 15 THEN 94 / - 24 - AVG ( DISTINCT 65 ) * + 69 ELSE NULL END * - ( ( 50 ) + + 4 / 55 )
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT + 66 + ( SUM( ALL 54 ) ) + - + 59 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + 66 + ( SUM ( ALL 54 ) ) + - + 59 AS col2
----
61

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

skipif mysql # not compatible
query I rowsort label-7056
SELECT - - COUNT ( * ) * - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL + CASE 61 WHEN - 76 THEN NULL WHEN - ( + COUNT( * ) ) THEN - - 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + CASE 61 WHEN - 76 THEN NULL WHEN - ( + COUNT ( * ) ) THEN - - 96 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL + - 30 * + 54 + 81 * - CAST( 15 AS SIGNED ) col0
----
-2835

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + - 30 * + 54 + 81 * - CAST ( 15 AS INTEGER ) col0
----
-2835

query II rowsort
SELECT DISTINCT + 76 AS col2, + 26
----
76
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL 13 * - 63 + NULLIF ( CAST( + 76 AS SIGNED ), MAX( ALL 29 ) ) * 74 AS col0
----
4805

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL 13 * - 63 + NULLIF ( CAST ( + 76 AS INTEGER ), MAX ( ALL 29 ) ) * 74 AS col0
----
4805

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL - CASE + MIN( ALL + 15 ) WHEN + 71 THEN NULL WHEN 8 THEN + 91 / - ( + 67 ) END * - 92 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - CASE + MIN ( ALL + 15 ) WHEN + 71 THEN NULL WHEN 8 THEN + 91 / - ( + 67 ) END * - 92 + + 29
----
NULL

query I rowsort
SELECT - 21 + 32
----
11

query I rowsort
SELECT - - 11 * - + 58 AS col1
----
-638

query I rowsort
SELECT COALESCE ( + + COALESCE ( - 7, + 56 * + 13 ), - + 43 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + SUM( ALL + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7066
SELECT + SUM ( ALL + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - 6 + - + COUNT( - - 34 )
----
-7

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 6 + - + COUNT ( - - 34 )
----
-7

query I rowsort
SELECT + 62 * - - NULLIF ( + + 18, + 16 ) - + 96
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT DISTINCT + NULLIF ( - - 10, - AVG ( DISTINCT - 4 ) + + + COUNT( - CAST( NULL AS SIGNED ) ) + 45 / 30 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + NULLIF ( - - 10, - AVG ( DISTINCT - 4 ) + + + COUNT ( - CAST ( NULL AS INTEGER ) ) + 45 / 30 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7070
SELECT - 83 + - 41 * 86 col1, - CAST( 29 AS SIGNED ) - - + 94 AS col2
----
-3609
65

skipif mysql # not compatible
query II rowsort label-7070
SELECT - 83 + - 41 * 86 col1, - CAST ( 29 AS INTEGER ) - - + 94 AS col2
----
-3609
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT COUNT( * ) * 93 + - + 26 + 88 DIV + 93
----
67

skipif mysql # not compatible
query I rowsort label-7071
SELECT COUNT ( * ) * 93 + - + 26 + 88 / + 93
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL - 99 * MAX( 1 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - 99 * MAX ( 1 ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - 99 * MAX( - NULLIF ( - 80, ( + - 58 ) ) )
----
-7920

skipif mysql # not compatible
query I rowsort label-7073
SELECT - 99 * MAX ( - NULLIF ( - 80, ( + - 58 ) ) )
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + COUNT( * ) + 34 + + 80
----
115

skipif mysql # not compatible
query I rowsort label-7074
SELECT + COUNT ( * ) + 34 + + 80
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT + 22 DIV + 3 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 22 / + 3 AS col0
----
7

query I rowsort
SELECT + 81 + - + 94 + + + 21
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT 46 DIV - + 61 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT 46 / - + 61 * - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT + 57 DIV - - 83 * + 35 * - NULLIF ( COALESCE ( - - 32, ( 80 ) ), NULLIF ( + 33, 90 DIV 91 - 46 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7078
SELECT + 57 / - - 83 * + 35 * - NULLIF ( COALESCE ( - - 32, ( 80 ) ), NULLIF ( + 33, 90 / 91 - 46 ) ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7079
SELECT DISTINCT + 27 + ( - 77 ) * - CAST( NULL AS DECIMAL ) - + - 90 * ( - 3 ) * 59 - - 82 * + CASE ( - 7 ) WHEN NULLIF ( 92, + 16 ) - + 78 THEN NULL WHEN + 97 THEN NULL ELSE 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + 27 + ( - 77 ) * - CAST ( NULL AS REAL ) - + - 90 * ( - 3 ) * 59 - - 82 * + CASE ( - 7 ) WHEN NULLIF ( 92, + 16 ) - + 78 THEN NULL WHEN + 97 THEN NULL ELSE 11 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7080
SELECT ALL - 72 DIV + 35, 68 + 58 * ( + 53 ) + - 20 col1
----
-2
3122

skipif mysql # not compatible
query II rowsort label-7080
SELECT ALL - 72 / + 35, 68 + 58 * ( + 53 ) + - 20 col1
----
-2
3122

query I rowsort
SELECT ALL + 9 + 83
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT - 55 DIV NULLIF ( - - CAST( - + 12 AS SIGNED ), - ( + 11 ) )
----
4

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - 55 / NULLIF ( - - CAST ( - + 12 AS INTEGER ), - ( + 11 ) )
----
4

query II rowsort
SELECT ALL + 97 + - 83 * + + 84 col0, - 33 AS col1
----
-6875
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT ALL - 28 + + CASE 60 WHEN 15 * - MAX( DISTINCT - 92 ) THEN NULL WHEN 56 THEN - 75 * - COUNT( * ) ELSE COALESCE ( + 20, 61 + - 9, COALESCE ( + COALESCE ( 41, COUNT( * ) * - 25 ), 95, 30 ) + - SUM( - 53 ) * - ( 95 * 94 ), 90 ) + 41 END DIV - 10
----
-34

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - 28 + + CASE 60 WHEN 15 * - MAX ( DISTINCT - 92 ) THEN NULL WHEN 56 THEN - 75 * - COUNT ( * ) ELSE COALESCE ( + 20, 61 + - 9, COALESCE ( + COALESCE ( 41, COUNT ( * ) * - 25 ), 95, 30 ) + - SUM ( - 53 ) * - ( 95 * 94 ), 90 ) + 41 END / - 10
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - - 22 * - + ( - - COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7085
SELECT - - 22 * - + ( - - COUNT ( * ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT DISTINCT + CASE + ( - + NULLIF ( - + 47, - 36 ) ) WHEN + 64 THEN NULL WHEN + ( - 31 ) THEN - 7 DIV - 38 ELSE COUNT( * ) END + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + CASE + ( - + NULLIF ( - + 47, - 36 ) ) WHEN + 64 THEN NULL WHEN + ( - 31 ) THEN - 7 / - 38 ELSE COUNT ( * ) END + - 15
----
-14

query II rowsort
SELECT ALL 64 + 98, ( - - 25 ) AS col2
----
162
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7088
SELECT + ( + 60 ) - CAST( + 71 AS SIGNED ) * - - 86, + 9 AS col0
----
-6046
9

skipif mysql # not compatible
query II rowsort label-7088
SELECT + ( + 60 ) - CAST ( + 71 AS INTEGER ) * - - 86, + 9 AS col0
----
-6046
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT - + NULLIF ( CAST( - + 43 AS SIGNED ), CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-7089
SELECT - + NULLIF ( CAST ( - + 43 AS INTEGER ), CAST ( NULL AS INTEGER ) )
----
43

query I rowsort
SELECT DISTINCT - 34 + + - 93
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT + - NULLIF ( + 12, + - 29 / - - COUNT( * ) + - - 52 + - 50 / - 99 * 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + - NULLIF ( + 12, + - 29 / - - COUNT ( * ) + - - 52 + - 50 / - 99 * 13 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT ALL 10 / 57 + + CASE 78 WHEN - 0 * COUNT( * ) / - 58 THEN - COUNT( * ) WHEN 94 / - 97 THEN NULL END - 88 - 84 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL 10 / 57 + + CASE 78 WHEN - 0 * COUNT ( * ) / - 58 THEN - COUNT ( * ) WHEN 94 / - 97 THEN NULL END - 88 - 84 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT DISTINCT + 52 DIV COUNT( * ) + - 18 + + NULLIF ( + + 99, - + 63 + 66 + + 72 ) * - 35 AS col2
----
-3431

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + 52 / COUNT ( * ) + - 18 + + NULLIF ( + + 99, - + 63 + 66 + + 72 ) * - 35 AS col2
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT + SUM( + - 69 ) - + + 75 AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + SUM ( + - 69 ) - + + 75 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - 49 * - MAX( + - 49 ) + 96 + + ( - + ( - ( - NULLIF ( - MIN( - 36 ), + 49 * ( - 12 ) ) ) ) ) * 38 * 90 AS col2
----
-125425

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 49 * - MAX ( + - 49 ) + 96 + + ( - + ( - ( - NULLIF ( - MIN ( - 36 ), + 49 * ( - 12 ) ) ) ) ) * 38 * 90 AS col2
----
-125425

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT ALL + + COALESCE ( 77, COUNT( * ) + COUNT( * ) ) - - + 70, + ( 33 ) AS col1
----
147
33

skipif mysql # not compatible
query II rowsort label-7097
SELECT ALL + + COALESCE ( 77, COUNT ( * ) + COUNT ( * ) ) - - + 70, + ( 33 ) AS col1
----
147
33

query I rowsort
SELECT DISTINCT - - 56 * + 88
----
4928

query I rowsort
SELECT 88 + 28 * 14 AS col2
----
480

query I rowsort
SELECT 32 * 95 AS col0
----
3040

query II rowsort
SELECT ALL 47 * - 66 * - 96 AS col2, 75 AS col2
----
297792
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7102
SELECT 7, 67 DIV + 63 AS col2
----
7
1

skipif mysql # not compatible
query II rowsort label-7102
SELECT 7, 67 / + 63 AS col2
----
7
1

query I rowsort
SELECT DISTINCT 82 * + 35
----
2870

query I rowsort
SELECT 80 * 27
----
2160

query II rowsort
SELECT 36 AS col2, 42 * - 2 AS col1
----
36
-84

query I rowsort
SELECT 66 - - 24
----
90

query I rowsort
SELECT 69 * - + 79 * - 17 * + 48
----
4448016

query I rowsort
SELECT DISTINCT - 68 * 52 AS col2
----
-3536

query I rowsort
SELECT ALL + 41 + + - 4 col2
----
37

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

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - 86 / - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 95 * 25 * + - ( - - 53 )
----
-125875

query I rowsort
SELECT ALL 57 + - 86 col2
----
-29

query I rowsort
SELECT DISTINCT - 68 * 95
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL + 14 + - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + 14 + - + COUNT ( * )
----
13

query I rowsort
SELECT NULLIF ( - 63, + - 91 ) - 91 + + - NULLIF ( + 28, 97 ) AS col0
----
-182

query I rowsort
SELECT ALL - 50 * - 81 AS col0
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT 85 + 92 + - SUM( + 66 ) col0
----
111

skipif mysql # not compatible
query I rowsort label-7117
SELECT 85 + 92 + - SUM ( + 66 ) col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - 65 - - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 65 - - COUNT ( * )
----
-64

query I rowsort
SELECT ALL + 41 + + 89
----
130

query II rowsort
SELECT + 40 AS col1, + 29 + 57
----
40
86

query I rowsort
SELECT NULLIF ( - + 97, + + 64 + - ( + 80 ) ) + + 85 AS col2
----
-12

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

skipif mysql # not compatible
query II rowsort label-7122
SELECT COUNT ( * ), - 41 AS col0
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + 31 + + + CASE - ( + MAX( - 78 ) ) WHEN + + 62 THEN - 2 ELSE NULL END + - 71 * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT + 31 + + + CASE - ( + MAX ( - 78 ) ) WHEN + + 62 THEN - 2 ELSE NULL END + - 71 * - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7124
SELECT ALL - MAX( DISTINCT + - 97 ) DIV + 87 AS col2, 59 DIV + 55
----
1
1

skipif mysql # not compatible
query II rowsort label-7124
SELECT ALL - MAX ( DISTINCT + - 97 ) / + 87 AS col2, 59 / + 55
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT ( - 65 ) + - CASE 63 WHEN - COUNT( DISTINCT - 66 ) * - COUNT( * ) + + 41 + + 59 * - 31 THEN 93 / - 11 + + 97 ELSE NULL END - - CAST( + 30 AS SIGNED ) * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ( - 65 ) + - CASE 63 WHEN - COUNT ( DISTINCT - 66 ) * - COUNT ( * ) + + 41 + + 59 * - 31 THEN 93 / - 11 + + 97 ELSE NULL END - - CAST ( + 30 AS INTEGER ) * 0 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT DISTINCT + 47 DIV + + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + 47 / + + 38 AS col1
----
1

query I rowsort
SELECT ALL 98 - + - 85 col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT - 81 + 49 - + - MIN( ALL - 52 ) * + 20 AS col1
----
-1072

skipif mysql # not compatible
query I rowsort label-7128
SELECT - 81 + 49 - + - MIN ( ALL - 52 ) * + 20 AS col1
----
-1072

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT - COALESCE ( - 97, COUNT( * ) ) AS col2, + 68
----
97
68

skipif mysql # not compatible
query II rowsort label-7129
SELECT - COALESCE ( - 97, COUNT ( * ) ) AS col2, + 68
----
97
68

query I rowsort
SELECT DISTINCT + 22 * ( - 91 ) * - + COALESCE ( + - 19, + + 38 * + - 73 * - + 22, + 1 ) + 53 AS col1
----
-37985

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL MAX( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL MAX ( DISTINCT 8 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT - 8 + + - SUM( ALL + 69 ) DIV - - 72
----
-8

skipif mysql # not compatible
query I rowsort label-7132
SELECT - 8 + + - SUM ( ALL + 69 ) / - - 72
----
-8

query I rowsort
SELECT - 56 + 34
----
-22

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT + + CASE + COALESCE ( 88, - + COUNT( * ) ) WHEN + 10 * + + 12 * + 70 * 27 + + CASE + MIN( + 55 ) WHEN CAST( + 14 AS SIGNED ) THEN 84 WHEN + SUM( 93 ) * 85 + 30 / + COUNT( * ) THEN NULL END - + 19 * - 8 THEN + 79 + 27 WHEN 11 THEN - 64 WHEN + 27 + - ( + NULLIF ( - 51, + 28 ) ) * 78 THEN NULL ELSE NULL END * 49 + - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT + + CASE + COALESCE ( 88, - + COUNT ( * ) ) WHEN + 10 * + + 12 * + 70 * 27 + + CASE + MIN ( + 55 ) WHEN CAST ( + 14 AS INTEGER ) THEN 84 WHEN + SUM ( 93 ) * 85 + 30 / + COUNT ( * ) THEN NULL END - + 19 * - 8 THEN + 79 + 27 WHEN 11 THEN - 64 WHEN + 27 + - ( + NULLIF ( - 51, + 28 ) ) * 78 THEN NULL ELSE NULL END * 49 + - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT ALL - 29 * - 45 * 2 * - COUNT( * ), - 72 + + - 0 AS col1
----
-2610
-72

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL - 29 * - 45 * 2 * - COUNT ( * ), - 72 + + - 0 AS col1
----
-2610
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT MIN( + - ( + - ( - + 96 ) ) ) * 52 + + NULLIF ( - + 64, 80 ) AS col2
----
-5056

skipif mysql # not compatible
query I rowsort label-7137
SELECT MIN ( + - ( + - ( - + 96 ) ) ) * 52 + + NULLIF ( - + 64, 80 ) AS col2
----
-5056

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT MAX( + ( + 7 ) ) * + 69 * - - 31 * + 72
----
1078056

skipif mysql # not compatible
query I rowsort label-7138
SELECT MAX ( + ( + 7 ) ) * + 69 * - - 31 * + 72
----
1078056

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ( - + ( + AVG ( + - 41 ) ) ) + + - COUNT( * ) - 43 - - CASE - 24 WHEN - 32 * - 2 THEN 84 + COUNT( * ) END + 47 * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT ( - + ( + AVG ( + - 41 ) ) ) + + - COUNT ( * ) - 43 - - CASE - 24 WHEN - 32 * - 2 THEN 84 + COUNT ( * ) END + 47 * 43 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT ALL 35 DIV + - 48 * + 57
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL 35 / + - 48 * + 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT 72 * + - 18 * - 67 * + 83 + ( - 25 ) DIV - - SUM( DISTINCT + 84 ) * + - 1
----
7207056

skipif mysql # not compatible
query I rowsort label-7141
SELECT 72 * + - 18 * - 67 * + 83 + ( - 25 ) / - - SUM ( DISTINCT + 84 ) * + - 1
----
7207056

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ( + 58 ) + + + 32 / - - CAST( NULL AS SIGNED ) + 24 * + 59 + + 22 / + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ( + 58 ) + + + 32 / - - CAST ( NULL AS INTEGER ) + 24 * + 59 + + 22 / + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT 85 + - COUNT( * ) + + 68 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-7144
SELECT 85 + - COUNT ( * ) + + 68 AS col2
----
152

query I rowsort
SELECT ALL 75 + - + 93 col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT 93 * COUNT( * ) * - 44 AS col1
----
-4092

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT 93 * COUNT ( * ) * - 44 AS col1
----
-4092

query I rowsort
SELECT ALL + 9 + + - 1 * 79
----
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT 30 + + 13 DIV + + 94 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7149
SELECT 30 + + 13 / + + 94 AS col2
----
30

query I rowsort
SELECT - - COALESCE ( 97, + 12, 61 ) col0
----
97

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

skipif mysql # not compatible
query I rowsort label-7151
SELECT 75 + ( COUNT ( * ) ) AS col1
----
76

query I rowsort
SELECT ALL + 34 - 46 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT DISTINCT CAST( - ( + NULLIF ( - 93, ( 88 ) ) ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT CAST ( - ( + NULLIF ( - 93, ( 88 ) ) ) AS INTEGER )
----
93

query I rowsort
SELECT ALL - 54 - 4 - - + 3 + 87 AS col1
----
32

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7156
SELECT - + 63 * - 77 AS col2, + 26 / - CAST( NULL AS DECIMAL )
----
4851
NULL

skipif mysql # not compatible
query II rowsort label-7156
SELECT - + 63 * - 77 AS col2, + 26 / - CAST ( NULL AS REAL )
----
4851
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + COUNT( - 51 ) + ( + - 70 )
----
-69

skipif mysql # not compatible
query I rowsort label-7157
SELECT + COUNT ( - 51 ) + ( + - 70 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT - + 13 DIV + ( - + 50 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT - + 13 / + ( - + 50 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT + 69 / + ( - CAST( NULL AS SIGNED ) ) * - + 78 / 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT + 69 / + ( - CAST ( NULL AS INTEGER ) ) * - + 78 / 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7160
SELECT - ( CAST( NULL AS SIGNED ) ) - - COUNT( * ) / + MIN( + CAST( NULL AS SIGNED ) ) + - 41 + 13 AS col0, 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-7160
SELECT - ( CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) / + MIN ( + CAST ( NULL AS INTEGER ) ) + - 41 + 13 AS col0, 30 AS col2
----
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT - 68 DIV + 2 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7161
SELECT - 68 / + 2 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7162
SELECT ALL + 41 DIV 96 * - 16 + - + 83 + - 56 + - 83 DIV + - MAX( - 89 ) * + 99 DIV + 26 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + 41 / 96 * - 16 + - + 83 + - 56 + - 83 / + - MAX ( - 89 ) * + 99 / + 26 AS col0
----
-139

query I rowsort
SELECT ALL 11 * + 34 + + + 54
----
428

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + + MIN( + 61 ) * - COUNT( * ) - 60 + + 44
----
-77

skipif mysql # not compatible
query I rowsort label-7164
SELECT + + MIN ( + 61 ) * - COUNT ( * ) - 60 + + 44
----
-77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7166
SELECT DISTINCT + COALESCE ( - 57, + + 85 ) AS col1, CAST( 82 AS SIGNED ) + 45 AS col0
----
-57
127

skipif mysql # not compatible
query II rowsort label-7166
SELECT DISTINCT + COALESCE ( - 57, + + 85 ) AS col1, CAST ( 82 AS INTEGER ) + 45 AS col0
----
-57
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), - + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), - + 93 )
----
NULL

query I rowsort
SELECT ALL 94 * + + 85
----
7990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT COALESCE ( 32, - CAST( NULL AS SIGNED ) + 74 )
----
32

skipif mysql # not compatible
query I rowsort label-7169
SELECT COALESCE ( 32, - CAST ( NULL AS INTEGER ) + 74 )
----
32

query I rowsort
SELECT + ( 25 ) * 38 * + 2
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL 18 * + + 4 * COUNT( * ) + NULLIF ( 31, - - 19 ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL 18 * + + 4 * COUNT ( * ) + NULLIF ( 31, - - 19 ) AS col1
----
103

query I rowsort
SELECT ALL + 86 * - 16
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL + 51 * - 18 + - SUM( ALL - 44 ) AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + 51 * - 18 + - SUM ( ALL - 44 ) AS col0
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT CASE + NULLIF ( + - 90, + + CASE + 70 WHEN + + 99 + + 88 THEN NULL WHEN - MAX( ALL + - 80 ) * 67 + - ( + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN 60 / 53 END * 88 ) WHEN 64 THEN NULL WHEN 97 * + COALESCE ( - 99 * 85, + 46 + + 66 ) THEN NULL WHEN SUM( ALL ( + 0 ) ) * - 34 THEN - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT CASE + NULLIF ( + - 90, + + CASE + 70 WHEN + + 99 + + 88 THEN NULL WHEN - MAX ( ALL + - 80 ) * 67 + - ( + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN 60 / 53 END * 88 ) WHEN 64 THEN NULL WHEN 97 * + COALESCE ( - 99 * 85, + 46 + + 66 ) THEN NULL WHEN SUM ( ALL ( + 0 ) ) * - 34 THEN - 47 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT + CASE + 70 WHEN 19 / - CAST( NULL AS SIGNED ) * + 75 - + 77 THEN NULL ELSE - 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-7175
SELECT + CASE + 70 WHEN 19 / - CAST ( NULL AS INTEGER ) * + 75 - + 77 THEN NULL ELSE - 75 END
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT COUNT( DISTINCT + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-7177
SELECT COUNT ( DISTINCT + 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT + 4 - + - MIN( + - 67 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 4 - + - MIN ( + - 67 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT ( - 6 ) * + 48 * + COUNT( * ) col0
----
-288

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT ( - 6 ) * + 48 * + COUNT ( * ) col0
----
-288

query I rowsort
SELECT 14 * + 52 + 38 AS col0
----
766

query I rowsort
SELECT - 83 * + + ( - 66 ) + - 9
----
5469

query I rowsort
SELECT + - 52 * - 49 AS col2
----
2548

query I rowsort
SELECT DISTINCT - 47 * + + 59 * - + 23
----
63779

query I rowsort
SELECT + + 78 * - 30
----
-2340

query I rowsort
SELECT ALL CASE - 41 WHEN + 24 * + + 47 + + 64 * 54 THEN + 91 - + ( + + 31 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + ( - 96 ) + - 52 AS col1
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT - + 28 - - - 88 DIV + 23
----
-31

skipif mysql # not compatible
query I rowsort label-7187
SELECT - + 28 - - - 88 / + 23
----
-31

query I rowsort
SELECT + 2 * + 69 + - + ( - 22 )
----
160

query I rowsort
SELECT - 72 * - 49 col1
----
3528

query II rowsort
SELECT DISTINCT 15 AS col1, 45 AS col2
----
15
45

query I rowsort
SELECT + 16 + - 70 + - - 94 * 96
----
8970

query I rowsort
SELECT - 90 * - 58 AS col2
----
5220

query I rowsort
SELECT ALL + 12 * 78
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL + - 86 + 86 * 70 + 26 + + SUM( DISTINCT - 21 ) + - 0
----
5939

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + - 86 + 86 * 70 + 26 + + SUM ( DISTINCT - 21 ) + - 0
----
5939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT DISTINCT + + MIN( + 4 ) * - 60 * - ( - + 32 ) DIV - + COUNT( * )
----
7680

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT + + MIN ( + 4 ) * - 60 * - ( - + 32 ) / - + COUNT ( * )
----
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT - 89 + + 11 DIV - + COUNT( 77 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-7196
SELECT - 89 + + 11 / - + COUNT ( 77 ) AS col0
----
-100

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

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

query I rowsort
SELECT DISTINCT ( + ( - 42 ) ) AS col1
----
-42

query I rowsort
SELECT ALL - 44 + + + 9 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7200
SELECT ALL CAST( NULL AS SIGNED ) DIV + 16 * 0 * NULLIF ( - 21, + ( - 89 ) ) + - + 54 - + - 4 AS col2, 44 DIV - + 14 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7200
SELECT ALL CAST ( NULL AS INTEGER ) / + 16 * 0 * NULLIF ( - 21, + ( - 89 ) ) + - + 54 - + - 4 AS col2, 44 / - + 14 AS col0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - 53 * - + COUNT( ALL + 92 ) * - - 95 * + - COUNT( * )
----
-5035

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 53 * - + COUNT ( ALL + 92 ) * - - 95 * + - COUNT ( * )
----
-5035

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ( - COUNT( * ) ) * - 11 + 56
----
67

skipif mysql # not compatible
query I rowsort label-7202
SELECT ( - COUNT ( * ) ) * - 11 + 56
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT DISTINCT + 7 DIV COUNT( * ) * + - 1 + + ( - 12 ) + - + 15
----
-34

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + 7 / COUNT ( * ) * + - 1 + + ( - 12 ) + - + 15
----
-34

query II rowsort
SELECT ALL + 60, 93 AS col2
----
60
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT DISTINCT 51 DIV - - MAX( ALL 59 ) + + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT 51 / - - MAX ( ALL 59 ) + + + 47 AS col0
----
47

query I rowsort
SELECT - 23 * + 64
----
-1472

query I rowsort
SELECT ALL 34 * - 99 AS col0
----
-3366

query I rowsort
SELECT + 40 + - 48 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7209
SELECT ALL + CAST( - - 2 AS SIGNED ), - 5 AS col1
----
2
-5

skipif mysql # not compatible
query II rowsort label-7209
SELECT ALL + CAST ( - - 2 AS INTEGER ), - 5 AS col1
----
2
-5

query II rowsort
SELECT + 81 AS col0, - 20
----
81
-20

query I rowsort
SELECT + 16 + + 1 AS col1
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT 46 * - 57 + + 39 + - - NULLIF ( 53, - 22 * + NULLIF ( MIN( - 23 ), + - 75 - + 96 ) * - 11 - 75 * 0 ) * - 79 * CAST( 93 AS SIGNED )
----
-391974

skipif mysql # not compatible
query I rowsort label-7213
SELECT 46 * - 57 + + 39 + - - NULLIF ( 53, - 22 * + NULLIF ( MIN ( - 23 ), + - 75 - + 96 ) * - 11 - 75 * 0 ) * - 79 * CAST ( 93 AS INTEGER )
----
-391974

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - 80 + + 75 * 72 + + NULLIF ( 46, + + 79 * - 1 ) + + COALESCE ( - + COUNT( * ), - 75, 51 ) * 81 col0
----
5285

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 80 + + 75 * 72 + + NULLIF ( 46, + + 79 * - 1 ) + + COALESCE ( - + COUNT ( * ), - 75, 51 ) * 81 col0
----
5285

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + SUM( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7215
SELECT + SUM ( 40 )
----
40

query II rowsort
SELECT ALL + 4 AS col1, - 36 AS col0
----
4
-36

query II rowsort
SELECT DISTINCT + + 85 AS col0, - 89
----
85
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7218
SELECT DISTINCT COUNT( - + CAST( NULL AS SIGNED ) ) DIV 10 - - 78
----
78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - COUNT( * ) + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT - COUNT ( * ) + 2 AS col1
----
1

query I rowsort
SELECT 84 + - 82
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT 71 DIV - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7222
SELECT 71 / - 36 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - + NULLIF ( ( - - COUNT( * ) ), 62 + NULLIF ( - 79, + + ( + 20 ) ) + - + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-7223
SELECT - + NULLIF ( ( - - COUNT ( * ) ), 62 + NULLIF ( - 79, + + ( + 20 ) ) + - + 76 )
----
-1

query I rowsort
SELECT - 74 * 7 AS col2
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT ALL + 91 DIV - + 54
----
-1

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + 91 / - + 54
----
-1

query I rowsort
SELECT ALL + 85 * 63 AS col1
----
5355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT + 41 / ( 12 ) - + COUNT( * ) * - AVG ( 63 ) * - 75 * - + 79 + + 12 + CAST( - + SUM( ALL 0 ) AS SIGNED ) - + ( + CASE 97 WHEN + 45 THEN - 98 WHEN - 26 THEN + 77 * COUNT( * ) END ) * - 25 + 78 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT + 41 / ( 12 ) - + COUNT ( * ) * - AVG ( 63 ) * - 75 * - + 79 + + 12 + CAST ( - + SUM ( ALL 0 ) AS INTEGER ) - + ( + CASE 97 WHEN + 45 THEN - 98 WHEN - 26 THEN + 77 * COUNT ( * ) END ) * - 25 + 78 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 41 + 19 AS col1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7229
SELECT DISTINCT 15 * - - ( + ( - ( + + 73 ) ) ) / + 30 + CAST( NULL AS DECIMAL ) - - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT 15 * - - ( + ( - ( + + 73 ) ) ) / + 30 + CAST ( NULL AS REAL ) - - + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL - ( NULLIF ( - COALESCE ( 12, - 80, 96 * + + MAX( DISTINCT 8 ) ), + 72 ) ) + 73
----
85

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL - ( NULLIF ( - COALESCE ( 12, - 80, 96 * + + MAX ( DISTINCT 8 ) ), + 72 ) ) + 73
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7231
SELECT - 34, 75 * - 54 * CAST( NULL AS DECIMAL ) AS col1
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-7231
SELECT - 34, 75 * - 54 * CAST ( NULL AS REAL ) AS col1
----
-34
NULL

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

skipif mysql # not compatible
query II rowsort label-7232
SELECT - + 35, CAST ( - - ( - - COUNT ( * ) ) AS INTEGER ) AS col2
----
-35
1

query II rowsort
SELECT - 17, + 26 - 14 + + 36 AS col2
----
-17
48

query I rowsort
SELECT ALL - 58 + + + 53
----
-5

query I rowsort
SELECT 70 - + 81 col0
----
-11

query II rowsort
SELECT 76 * - + 31 AS col1, - 85 * + - 85 AS col0
----
-2356
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT CASE + 30 WHEN - ( 85 ) THEN + 17 - + 5 WHEN - COUNT( * ) THEN ( + + 62 ) END - 89 - + 38 - + + ( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT CASE + 30 WHEN - ( 85 ) THEN + 17 - + 5 WHEN - COUNT ( * ) THEN ( + + 62 ) END - 89 - + 38 - + + ( + 20 )
----
NULL

query I rowsort
SELECT ALL 76 + - 45 AS col1
----
31

query I rowsort
SELECT ALL - 22 * + + 96
----
-2112

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

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - COUNT ( * ) + 98
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7241
SELECT DISTINCT 70 * COUNT( * ), NULLIF ( - 56, - CAST( NULL AS SIGNED ) ) AS col1
----
70
-56

skipif mysql # not compatible
query II rowsort label-7241
SELECT DISTINCT 70 * COUNT ( * ), NULLIF ( - 56, - CAST ( NULL AS INTEGER ) ) AS col1
----
70
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT DISTINCT - CASE + 81 WHEN 57 THEN - 13 + + COALESCE ( + - 59, + ( + + ( + 81 ) ), - CAST( - COUNT( * ) AS SIGNED ) + - 48 ) + + COUNT( * ) * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - CASE + 81 WHEN 57 THEN - 13 + + COALESCE ( + - 59, + ( + + ( + 81 ) ), - CAST ( - COUNT ( * ) AS INTEGER ) + - 48 ) + + COUNT ( * ) * + 95 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT 24 - - + 50 DIV - - COALESCE ( - + COALESCE ( 75, + 21 + - 14 + - COUNT( * ) + - 72 ), - + ( - 41 ), - - MIN( - 78 ) )
----
24

skipif mysql # not compatible
query I rowsort label-7243
SELECT 24 - - + 50 / - - COALESCE ( - + COALESCE ( 75, + 21 + - 14 + - COUNT ( * ) + - 72 ), - + ( - 41 ), - - MIN ( - 78 ) )
----
24

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

query I rowsort
SELECT 4 * + 41 AS col0
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT 40 * - 30 AS col2, COUNT( * ) * + + 66 * + 47 * + 2 + + + 73
----
-1200
6277

skipif mysql # not compatible
query II rowsort label-7246
SELECT 40 * - 30 AS col2, COUNT ( * ) * + + 66 * + 47 * + 2 + + + 73
----
-1200
6277

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7248
SELECT ALL - CAST( COALESCE ( - CASE + CAST( - 31 AS DECIMAL ) WHEN + - 60 * - - 39 DIV - 51 * + 90 + + MAX( + 32 ) + + 74 * 67 THEN COUNT( * ) WHEN + 29 THEN NULL ELSE NULL END, 4 * 79 + - 39 DIV + MAX( DISTINCT 52 ) ) AS SIGNED )
----
-316

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - CAST ( COALESCE ( - CASE + CAST ( - 31 AS REAL ) WHEN + - 60 * - - 39 / - 51 * + 90 + + MAX ( + 32 ) + + 74 * 67 THEN COUNT ( * ) WHEN + 29 THEN NULL ELSE NULL END, 4 * 79 + - 39 / + MAX ( DISTINCT 52 ) ) AS INTEGER )
----
-316

query I rowsort
SELECT 29 * + 11 AS col1
----
319

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT ALL - 88 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - 88 / 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 9 + - COUNT( * ) * + - 85 + + - 35 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7251
SELECT 9 + - COUNT ( * ) * + - 85 + + - 35 AS col0
----
59

query I rowsort
SELECT - 75 * + 67 * 71 col0
----
-356775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL - 6 * COALESCE ( 30, 61 ) * CAST( - + 70 AS SIGNED ) * + 62
----
781200

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - 6 * COALESCE ( 30, 61 ) * CAST ( - + 70 AS INTEGER ) * + 62
----
781200

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + MIN( ALL 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7254
SELECT + MIN ( ALL 88 ) AS col0
----
88

query I rowsort
SELECT DISTINCT - ( 26 ) * - 33
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7256
SELECT DISTINCT CAST( + 75 AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) + + CASE - COUNT( * ) WHEN - + 42 + + COUNT( * ) THEN + - 49 * - + 41 + + 11 * + + ( - - 63 ) * 2 END AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-7256
SELECT DISTINCT CAST ( + 75 AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) + + CASE - COUNT ( * ) WHEN - + 42 + + COUNT ( * ) THEN + - 49 * - + 41 + + 11 * + + ( - - 63 ) * 2 END AS col0
----
75
NULL

query I rowsort
SELECT ALL 64 + - 46 + 6 AS col1
----
24

query I rowsort
SELECT - 47 - - + 9
----
-38

query I rowsort
SELECT - 91 + - 5 AS col1
----
-96

query I rowsort
SELECT 47 + 41
----
88

query I rowsort
SELECT DISTINCT + 88 + - 43 AS col2
----
45

query I rowsort
SELECT + 14 + 41
----
55

query I rowsort
SELECT 79 + + 57
----
136

query I rowsort
SELECT ALL 65 * - 46
----
-2990

query II rowsort
SELECT ALL 35 + - ( - - 27 ) AS col2, - 9 + 78 * 84 + - 13
----
8
6530

query II rowsort
SELECT DISTINCT 60 AS col1, - ( 84 )
----
60
-84

query I rowsort
SELECT ALL - 27 - + NULLIF ( + + ( + 36 ), - 29 / 74 ) - - 38
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL 29 * - CASE - 69 WHEN + 3 THEN + 62 - - + 23 + - - ( 58 ) - + - 81 WHEN - COUNT( * ) * 7 * - - 71 + - 14 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL 29 * - CASE - 69 WHEN + 3 THEN + 62 - - + 23 + - - ( 58 ) - + - 81 WHEN - COUNT ( * ) * 7 * - - 71 + - 14 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT ( + 11 ) + - 86 AS col0, 13 AS col2
----
-75
13

query II rowsort
SELECT 99 AS col0, 0 + + CASE 76 WHEN 56 THEN - 64 * + 27 + 31 WHEN 72 THEN NULL END
----
99
NULL

query II rowsort
SELECT DISTINCT 70 AS col2, - 68 + 74 + + - 29 AS col1
----
70
-23

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

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

query II rowsort
SELECT - 24, 78 col2
----
-24
78

query II rowsort
SELECT 80 AS col0, 47 + - - CASE 18 WHEN 92 THEN - 67 END * 76
----
80
NULL

query II rowsort
SELECT 15 AS col2, 43
----
15
43

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

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

query I rowsort
SELECT DISTINCT + 26 * + 87 - + 38 + - 44
----
2180

query II rowsort
SELECT ALL - 55 AS col1, - 65 AS col0
----
-55
-65

query II rowsort
SELECT ALL - 59, 61 + + NULLIF ( 51, - - ( 79 ) ) col2
----
-59
112

query I rowsort
SELECT ALL - 65 * + 49 AS col0
----
-3185

query I rowsort
SELECT - 10 * 79 * + + 23 * + 19
----
-345230

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL COUNT( * ) * - - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL COUNT ( * ) * - - 9 AS col2
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7284
SELECT DISTINCT + MAX( 23 ) * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + MAX ( 23 ) * - - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT - 59 * + 74 + + - 67
----
-4433

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + + 46 DIV + - 2 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7287
SELECT + + 46 / + - 2 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + - COUNT( * ) * NULLIF ( 56, + + COUNT( * ) ) * COUNT( * ) * + - COUNT( * ) * ( + 70 ) * + 39 + - 29 + + - 69 + - - ( + - 38 ) + + NULLIF ( 25, + COALESCE ( - 20, + 6 + + COUNT( * ) / - 81 ) + 63 ) + - 36 * + 47 AS col0
----
151077

skipif mysql # not compatible
query I rowsort label-7288
SELECT + - COUNT ( * ) * NULLIF ( 56, + + COUNT ( * ) ) * COUNT ( * ) * + - COUNT ( * ) * ( + 70 ) * + 39 + - 29 + + - 69 + - - ( + - 38 ) + + NULLIF ( 25, + COALESCE ( - 20, + 6 + + COUNT ( * ) / - 81 ) + 63 ) + - 36 * + 47 AS col0
----
151077

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL SUM( DISTINCT + 81 ) * - 41 + 20
----
-3301

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL SUM ( DISTINCT + 81 ) * - 41 + 20
----
-3301

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT DISTINCT - 75 * CAST( NULL AS SIGNED ) / - 2 * + - SUM( + CAST( NULL AS SIGNED ) ) * + 94 * + 65 + 36 + - 95 * + ( - COALESCE ( + 4, + 87 ) ) - 28 * - 24 + MIN( - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - 75 * CAST ( NULL AS INTEGER ) / - 2 * + - SUM ( + CAST ( NULL AS INTEGER ) ) * + 94 * + 65 + 36 + - 95 * + ( - COALESCE ( + 4, + 87 ) ) - 28 * - 24 + MIN ( - 75 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT ALL + 85 DIV 37 + - - 48 - 14 + - 18
----
18

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + 85 / 37 + - - 48 - 14 + - 18
----
18

query I rowsort
SELECT - ( - 56 ) * + 50 + 19 AS col1
----
2819

query I rowsort
SELECT - 84 * 32 + - + 95
----
-2783

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + - CASE NULLIF ( - - 34, 42 * COUNT( * ) + - + 74 ) WHEN + 79 THEN + 98 * 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT + - CASE NULLIF ( - - 34, 42 * COUNT ( * ) + - + 74 ) WHEN + 79 THEN + 98 * 6 END AS col0
----
NULL

query I rowsort
SELECT - + 39 + - + 54
----
-93

query I rowsort
SELECT ALL - 33 + 10
----
-23

query I rowsort
SELECT + NULLIF ( + 33, + - 94 / + 18 + - - 45 ) AS col2
----
33

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

skipif mysql # not compatible
query I rowsort label-7299
SELECT - - MIN ( ALL - 13 )
----
-13

query I rowsort
SELECT ALL + - 13 + - 49 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT DISTINCT - - 50 + 81 DIV 35 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - - 50 + 81 / 35 AS col2
----
52

query II rowsort
SELECT ALL + 36, 48 col1
----
36
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT DISTINCT - + CASE MAX( ALL CAST( NULL AS SIGNED ) ) WHEN - 49 THEN + 71 ELSE NULL END * - 59 + 84 - + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT - + CASE MAX ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 49 THEN + 71 ELSE NULL END * - 59 + 84 - + 66 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT 83 - - - CASE 70 WHEN - COUNT( ALL 31 ) / 84 + 86 * 91 / - 79 + 90 THEN + + 4 * + CASE 93 WHEN - 17 THEN - COUNT( * ) END ELSE 48 END col1
----
35

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT 83 - - - CASE 70 WHEN - COUNT ( ALL 31 ) / 84 + 86 * 91 / - 79 + 90 THEN + + 4 * + CASE 93 WHEN - 17 THEN - COUNT ( * ) END ELSE 48 END col1
----
35

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

skipif mysql # not compatible
query I rowsort label-7305
SELECT - COUNT ( 73 )
----
-1

query I rowsort
SELECT + 23 * + 0
----
0

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

query I rowsort
SELECT - 94 + - - 58 + 22
----
-14

query I rowsort
SELECT + 17 + 57 - 79 AS col0
----
-5

query I rowsort
SELECT + 93 * + 62 * 86 AS col2
----
495876

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT - 64 - COUNT( * ), - COUNT( * ) - - 67 AS col1
----
-65
66

skipif mysql # not compatible
query II rowsort label-7311
SELECT - 64 - COUNT ( * ), - COUNT ( * ) - - 67 AS col1
----
-65
66

query II rowsort
SELECT - ( + 14 ), ( - NULLIF ( 96, + 86 ) ) AS col2
----
-14
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL ( + + COUNT( ALL - + 60 ) ) * + CASE ( 13 ) WHEN + + 63 + - 80 THEN NULL WHEN + 78 * 54 - - ( 13 ) - - - 29 - - COUNT( * ) * + COUNT( * ) THEN NULL ELSE 38 END * 36
----
1368

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL ( + + COUNT ( ALL - + 60 ) ) * + CASE ( 13 ) WHEN + + 63 + - 80 THEN NULL WHEN + 78 * 54 - - ( 13 ) - - - 29 - - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE 38 END * 36
----
1368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + MIN( 21 ) * + 92 AS col0
----
1932

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + MIN ( 21 ) * + 92 AS col0
----
1932

query I rowsort
SELECT ALL ( 13 ) * + + 84 AS col1
----
1092

query I rowsort
SELECT - 21 * 35 AS col2
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7319
SELECT + COUNT ( * ) * + 62 AS col0
----
62

query I rowsort
SELECT + 86 - + - 62 + + 74 * - 9 AS col2
----
-518

query I rowsort
SELECT + 98 * + 98
----
9604

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT DISTINCT + 71 DIV 35 + 99 * 44
----
4358

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + 71 / 35 + 99 * 44
----
4358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7324
SELECT DISTINCT + COALESCE ( + + 38, + 35 * - - 1, + CASE + + CAST( - CAST( 67 AS DECIMAL ) AS SIGNED ) WHEN + 34 * - + NULLIF ( + 22, + - 18 ) THEN - 6 * - - 32 + 80 WHEN - 78 THEN NULL WHEN - ( - 21 ) - + 80 THEN 39 + - ( 5 ) END, 29 * COUNT( * ) + - 36 * CASE 53 WHEN 83 * ( + CASE SUM( DISTINCT + 17 ) WHEN 30 THEN NULL ELSE + ( 55 ) END ) THEN NULL WHEN NULLIF ( 3, + 56 - 51 ) + NULLIF ( + 50, 37 ) THEN - 67 * - ( 17 * + 51 ) + + COUNT( * ) END ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT + COALESCE ( + + 38, + 35 * - - 1, + CASE + + CAST ( - CAST ( 67 AS REAL ) AS INTEGER ) WHEN + 34 * - + NULLIF ( + 22, + - 18 ) THEN - 6 * - - 32 + 80 WHEN - 78 THEN NULL WHEN - ( - 21 ) - + 80 THEN 39 + - ( 5 ) END, 29 * COUNT ( * ) + - 36 * CASE 53 WHEN 83 * ( + CASE SUM ( DISTINCT + 17 ) WHEN 30 THEN NULL ELSE + ( 55 ) END ) THEN NULL WHEN NULLIF ( 3, + 56 - 51 ) + NULLIF ( + 50, 37 ) THEN - 67 * - ( 17 * + 51 ) + + COUNT ( * ) END ) AS col0
----
38

query I rowsort
SELECT + 66 * - 19 col0
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7326
SELECT ALL + COUNT( ALL - - ( 60 ) ) DIV + - 74 + + NULLIF ( - 14, 41 * - 20 - + + 21 * - - ( + ( - 22 ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + COUNT ( ALL - - ( 60 ) ) / + - 74 + + NULLIF ( - 14, 41 * - 20 - + + 21 * - - ( + ( - 22 ) ) ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL 40 * 8 + - 79 + NULLIF ( + CAST( - 53 AS SIGNED ), - + CAST( + - 22 AS SIGNED ) * - COUNT( * ) ) - + + 16 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL 40 * 8 + - 79 + NULLIF ( + CAST ( - 53 AS INTEGER ), - + CAST ( + - 22 AS INTEGER ) * - COUNT ( * ) ) - + + 16 AS col1
----
172

query I rowsort
SELECT ALL 52 * 55 * 49 + + 79 + + 73
----
140292

query I rowsort
SELECT - + 18 * 95 + 1 AS col1
----
-1709

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT + + 27 * + NULLIF ( COUNT( * ), - - 64 ) * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + + 27 * + NULLIF ( COUNT ( * ), - - 64 ) * + COUNT ( * ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT - + 68 DIV - - 60 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7331
SELECT - + 68 / - - 60 col0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + 48 * - 74 - - MIN( ALL 31 )
----
-3521

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + 48 * - 74 - - MIN ( ALL 31 )
----
-3521

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL - 90 * 48 - 69 + + 35 - - - 85 + 72 + 50 * - - 54 * + 43 + COUNT( * )
----
111734

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - 90 * 48 - 69 + + 35 - - - 85 + 72 + 50 * - - 54 * + 43 + COUNT ( * )
----
111734

query II rowsort
SELECT DISTINCT + ( + 45 ) AS col1, 36 + + 22
----
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL + 63 * + COUNT( * ) * - - 18 AS col1
----
1134

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + 63 * + COUNT ( * ) * - - 18 AS col1
----
1134

query I rowsort
SELECT - 24 - 98 AS col0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL - 91 DIV - - 59
----
-1

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - 91 / - - 59
----
-1

query I rowsort
SELECT + 35 * - - 58 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT - 0 + 7 + - 11 * + + 18 * + - COUNT( * ) + 47
----
252

skipif mysql # not compatible
query I rowsort label-7341
SELECT - 0 + 7 + - 11 * + + 18 * + - COUNT ( * ) + 47
----
252

query I rowsort
SELECT - 70 * - 18
----
1260

query I rowsort
SELECT 0 * - 69 + 0
----
0

query I rowsort
SELECT - 52 + - COALESCE ( 81, + + NULLIF ( + - 44, - 7 ), + 94 + 8 + - + COALESCE ( - 58, - 16 ) * + - 1 ) AS col0
----
-133

query I rowsort
SELECT - 64 + - 17
----
-81

query I rowsort
SELECT ALL + ( + 45 ) * 37 AS col1
----
1665

query I rowsort
SELECT - 40 + - 69 col0
----
-109

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

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

query I rowsort
SELECT - 16 + - 22 AS col0
----
-38

query I rowsort
SELECT ALL + 1 * + 15
----
15

query I rowsort
SELECT ALL + 92 * - 5
----
-460

query I rowsort
SELECT 10 + + 38 + 46 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT 20 * - - CASE COALESCE ( - 50, COUNT( DISTINCT 81 ) ) WHEN - - 9 + - 69 + + - 3 + + 31 + - 17 * - 74 THEN NULL WHEN 16 THEN 33 * + 46 + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT 20 * - - CASE COALESCE ( - 50, COUNT ( DISTINCT 81 ) ) WHEN - - 9 + - 69 + + - 3 + + 31 + - 17 * - 74 THEN NULL WHEN 16 THEN 33 * + 46 + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT 35 + - + 86 - 96 * 32 DIV 55 * - 39 * + - 18
----
-38661

skipif mysql # not compatible
query I rowsort label-7354
SELECT 35 + - + 86 - 96 * 32 / 55 * - 39 * + - 18
----
-38661

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL - + 96 + + + SUM( 45 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - + 96 + + + SUM ( 45 ) AS col1
----
-51

query I rowsort
SELECT + + 81 * 22 + - ( 85 ) + + ( + 87 )
----
1784

query I rowsort
SELECT ALL - 27 + + 42
----
15

query I rowsort
SELECT ALL - + 21 * - 60 AS col2
----
1260

onlyif mysql # DIV for integer division: 
query II rowsort label-7360
SELECT NULLIF ( + 67, - - 71 ) DIV 36 + + 25 AS col0, 56
----
26
56

skipif mysql # not compatible
query II rowsort label-7360
SELECT NULLIF ( + 67, - - 71 ) / 36 + + 25 AS col0, 56
----
26
56

query I rowsort
SELECT ALL 83 + - ( + + 34 ) + - 50
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT + 53 DIV - 65 + - 98 col0
----
-98

skipif mysql # not compatible
query I rowsort label-7362
SELECT + 53 / - 65 + - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 17 * - COUNT( * ) + + 31 col0
----
48

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 17 * - COUNT ( * ) + + 31 col0
----
48

query I rowsort
SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND 0 THEN NULL ELSE - - 6 END
----
6

query I rowsort
SELECT ALL + 51 - + - COALESCE ( + 23, 50 * + 68 * + 73 * - + ( + 86 ) ) AS col1
----
74

query I rowsort
SELECT - 3 * 2 AS col0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7368
SELECT DISTINCT + - 83 * + 50 + - 64 AS col2, + 43 * + 98 + + + ( + - CAST( + 20 AS SIGNED ) ) AS col2
----
-4214
4194

skipif mysql # not compatible
query II rowsort label-7368
SELECT DISTINCT + - 83 * + 50 + - 64 AS col2, + 43 * + 98 + + + ( + - CAST ( + 20 AS INTEGER ) ) AS col2
----
-4214
4194

query I rowsort
SELECT ALL + 7 * + + 64
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7370
SELECT + + 58 AS col0, - CAST( AVG ( DISTINCT + CAST( + + 92 AS SIGNED ) ) AS SIGNED ) * - COUNT( * ) DIV - + 93 + 99 + + COUNT( * ) DIV 83 * - ( 15 ) * 77 AS col0
----
58
99

skipif mysql # not compatible
query II rowsort label-7370
SELECT + + 58 AS col0, - CAST ( AVG ( DISTINCT + CAST ( + + 92 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) / - + 93 + 99 + + COUNT ( * ) / 83 * - ( 15 ) * 77 AS col0
----
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 14 + SUM( 58 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7371
SELECT 14 + SUM ( 58 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL COALESCE ( MIN( + 85 ), + COALESCE ( - 66, 65 ) ) - - + 48 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL COALESCE ( MIN ( + 85 ), + COALESCE ( - 66, 65 ) ) - - + 48 AS col0
----
133

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7373
SELECT CAST( + 70 AS DECIMAL ) * - 21 / - CAST( NULL AS SIGNED ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( + 70 AS REAL ) * - 21 / - CAST ( NULL AS INTEGER ) + - 76
----
NULL

query II rowsort
SELECT ALL 53 AS col1, + 39
----
53
39

query II rowsort
SELECT - 54 col1, ( - 47 ) AS col2
----
-54
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7376
SELECT 15 AS col1, - SUM( DISTINCT CAST( CASE 66 WHEN + 37 THEN + 46 END AS SIGNED ) )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7376
SELECT 15 AS col1, - SUM ( DISTINCT CAST ( CASE 66 WHEN + 37 THEN + 46 END AS INTEGER ) )
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT 33 * - + COUNT( * ) * - + 6 * + 13 * - COUNT( * )
----
-2574

skipif mysql # not compatible
query I rowsort label-7377
SELECT 33 * - + COUNT ( * ) * - + 6 * + 13 * - COUNT ( * )
----
-2574

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

skipif mysql # not compatible
query I rowsort label-7378
SELECT 40 / + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL 62 AS col1, ( + 57 ) * + - SUM( DISTINCT - 34 ) * 36 - 8 + + 2
----
62
69762

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL 62 AS col1, ( + 57 ) * + - SUM ( DISTINCT - 34 ) * 36 - 8 + + 2
----
62
69762

query II rowsort
SELECT 96 AS col2, - 23 + - 14 + 99 * + ( 90 )
----
96
8873

query I rowsort
SELECT 23 * ( - 85 ) AS col0
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT ALL - 33 DIV + 44 * - - 32 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - 33 / + 44 * - - 32 * - 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT ALL 21 AS col0, - 74 + + COUNT( ALL - 86 ) AS col2
----
21
-73

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL 21 AS col0, - 74 + + COUNT ( ALL - 86 ) AS col2
----
21
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL CASE - - 38 WHEN + + 61 THEN - 71 + - CASE + 9 WHEN - 9 THEN - - CASE COUNT( * ) WHEN 74 THEN + 71 WHEN - 95 THEN - 55 + + ( - 69 ) END + - - 82 + COALESCE ( - 2, CAST( 86 AS SIGNED ) ) * 37 WHEN COUNT( * ) * 15 THEN NULL END + + MIN( DISTINCT + 74 ) WHEN - 71 THEN NULL ELSE NULL END + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL CASE - - 38 WHEN + + 61 THEN - 71 + - CASE + 9 WHEN - 9 THEN - - CASE COUNT ( * ) WHEN 74 THEN + 71 WHEN - 95 THEN - 55 + + ( - 69 ) END + - - 82 + COALESCE ( - 2, CAST ( 86 AS INTEGER ) ) * 37 WHEN COUNT ( * ) * 15 THEN NULL END + + MIN ( DISTINCT + 74 ) WHEN - 71 THEN NULL ELSE NULL END + 26
----
NULL

query I rowsort
SELECT DISTINCT - 15 * - - 29
----
-435

query I rowsort
SELECT ( + 1 ) * + + 7 * + - 63
----
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7387
SELECT 13 + + 6, - SUM( ALL - CAST( COALESCE ( - - 82, CAST( NULL AS DECIMAL ) ) AS SIGNED ) ) AS col2
----
19
82

skipif mysql # not compatible
query II rowsort label-7387
SELECT 13 + + 6, - SUM ( ALL - CAST ( COALESCE ( - - 82, CAST ( NULL AS REAL ) ) AS INTEGER ) ) AS col2
----
19
82

query I rowsort
SELECT 49 * + 36 * + 65 AS col2
----
114660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT ALL - CAST( NULL AS SIGNED ) / - 42 * - + MAX( ALL - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - CAST ( NULL AS INTEGER ) / - 42 * - + MAX ( ALL - 97 )
----
NULL

query II rowsort
SELECT 55 + - + 33, 74 AS col1
----
22
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + 96 + ( 15 ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + 96 + ( 15 ) * + 17
----
NULL

query II rowsort
SELECT 39 col2, - 19 * - 40
----
39
760

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT 39 - - 25 + 20 * - COUNT( * ) * - 79
----
1644

skipif mysql # not compatible
query I rowsort label-7393
SELECT 39 - - 25 + 20 * - COUNT ( * ) * - 79
----
1644

onlyif mysql # aggregate syntax: 
query II rowsort label-7394
SELECT ALL 42, 62 * ( - NULLIF ( 37, - + 75 ) ) + + COUNT( * ) AS col0
----
42
-2293

skipif mysql # not compatible
query II rowsort label-7394
SELECT ALL 42, 62 * ( - NULLIF ( 37, - + 75 ) ) + + COUNT ( * ) AS col0
----
42
-2293

query II rowsort
SELECT ALL 41, ( + - NULLIF ( 60, - + 68 * - + 29 ) ) AS col0
----
41
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT - + 19 + 23 + 90 + ( + MIN( ALL + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - + 19 + 23 + 90 + ( + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT - + 44 AS col0, + 10 AS col1
----
-44
10

query I rowsort
SELECT - 85 * 98 AS col1
----
-8330

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT + 52 AS col2, COALESCE ( - NULLIF ( + SUM( ALL 4 ), - 95 ), 27 )
----
52
-4

skipif mysql # not compatible
query II rowsort label-7399
SELECT + 52 AS col2, COALESCE ( - NULLIF ( + SUM ( ALL 4 ), - 95 ), 27 )
----
52
-4

query I rowsort
SELECT - 42 * - 29
----
1218

query II rowsort
SELECT DISTINCT - - 43, 7 AS col1
----
43
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT 78 DIV + - 4 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7402
SELECT 78 / + - 4 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT DISTINCT - MIN( ALL + + 98 ) * 74 + + + CAST( - 12 AS SIGNED ) AS col0
----
-7264

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - MIN ( ALL + + 98 ) * 74 + + + CAST ( - 12 AS INTEGER ) AS col0
----
-7264

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT 39 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT 39 / 83
----
0

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

skipif mysql # not compatible
query I rowsort label-7405
SELECT 26 + + CAST ( NULL AS INTEGER ) + 33 + ( - + 54 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT ( + MAX( - 70 ) ) DIV + 90 - 11
----
-11

skipif mysql # not compatible
query I rowsort label-7406
SELECT ( + MAX ( - 70 ) ) / + 90 - 11
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7407
SELECT - 58 + + 66, CAST( NULL AS SIGNED ) * 87 AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-7407
SELECT - 58 + + 66, CAST ( NULL AS INTEGER ) * 87 AS col1
----
8
NULL

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

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

query I rowsort
SELECT - 83 * - + 37 + - 95 * + 19 AS col1
----
1266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT 37 * - + ( - CAST( NULL AS SIGNED ) ) + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT 37 * - + ( - CAST ( NULL AS INTEGER ) ) + + 22 AS col0
----
NULL

query I rowsort
SELECT + 58 * - 88 col2
----
-5104

query I rowsort
SELECT DISTINCT 87 * 69
----
6003

query I rowsort
SELECT + 93 + + CASE AVG ( DISTINCT - 92 ) WHEN + 78 THEN NULL WHEN + - 38 THEN + 41 END
----
NULL

query I rowsort
SELECT + 22 * 4
----
88

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

skipif mysql # not compatible
query I rowsort label-7415
SELECT - MAX ( DISTINCT 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT MIN( ALL 99 ) * - - CAST( + - ( - COUNT( * ) ) AS SIGNED ) * - 86 + + 91 + + 67 AS col1
----
-8356

skipif mysql # not compatible
query I rowsort label-7416
SELECT MIN ( ALL 99 ) * - - CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) * - 86 + + 91 + + 67 AS col1
----
-8356

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT ALL 86 * - MAX( ALL + - 59 ) AS col2, ( + SUM( - 3 ) ) AS col0
----
5074
-3

skipif mysql # not compatible
query II rowsort label-7417
SELECT ALL 86 * - MAX ( ALL + - 59 ) AS col2, ( + SUM ( - 3 ) ) AS col0
----
5074
-3

query I rowsort
SELECT ALL 45 + 38 + + + 51 + + 35 * 72
----
2654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7419
SELECT DISTINCT - 11 + 65 DIV COUNT( + 50 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT - 11 + 65 / COUNT ( + 50 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7420
SELECT - COALESCE ( COUNT( * ), - 18 + + + 47, - + 64 * - + 26 - + 63 DIV - + 91, - MAX( DISTINCT - 66 ) DIV + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-7420
SELECT - COALESCE ( COUNT ( * ), - 18 + + + 47, - + 64 * - + 26 - + 63 / - + 91, - MAX ( DISTINCT - 66 ) / + 90 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL + 39 + + COUNT( DISTINCT 85 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + 39 + + COUNT ( DISTINCT 85 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT 20 + + 71 + - 40 + + 85 * - NULLIF ( + 78, MAX( ( 32 ) ) ) AS col0
----
-6579

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT 20 + + 71 + - 40 + + 85 * - NULLIF ( + 78, MAX ( ( 32 ) ) ) AS col0
----
-6579

query II rowsort
SELECT DISTINCT - 0 - 86, 0 AS col0
----
-86
0

query I rowsort
SELECT + + 36 + + - 65
----
-29

query I rowsort
SELECT DISTINCT + + 29 - 38 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7426
SELECT DISTINCT + 8 DIV 87 AS col0, COUNT( * ) * + COUNT( * ) * + COUNT( * ) DIV + 85 + + 96 AS col0
----
0
96

skipif mysql # not compatible
query II rowsort label-7426
SELECT DISTINCT + 8 / 87 AS col0, COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) / + 85 + + 96 AS col0
----
0
96

query I rowsort
SELECT - 35 + - 18
----
-53

query I rowsort
SELECT - - 11 * - 91
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT MIN( ALL + 32 ) * + MIN( - 72 ) + 89 + - + AVG ( DISTINCT + - 13 ) + + + NULLIF ( + COUNT( * ), COUNT( * ) ) * - + 32 * 75 * + ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT MIN ( ALL + 32 ) * + MIN ( - 72 ) + 89 + - + AVG ( DISTINCT + - 13 ) + + + NULLIF ( + COUNT ( * ), COUNT ( * ) ) * - + 32 * 75 * + ( 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT + + 5 * - CASE 3 WHEN - 40 THEN + ( 26 ) * - - COUNT( * ) * + 9 * + + SUM( + 91 ) - 59 * + 96 - - COUNT( * ) * - + 17 + - 4 ELSE + 12 END + 90 - + 56
----
-26

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + + 5 * - CASE 3 WHEN - 40 THEN + ( 26 ) * - - COUNT ( * ) * + 9 * + + SUM ( + 91 ) - 59 * + 96 - - COUNT ( * ) * - + 17 + - 4 ELSE + 12 END + 90 - + 56
----
-26

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

query I rowsort
SELECT - 76 * + 62
----
-4712

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT - - SUM( DISTINCT - 41 ) + + - 21 DIV SUM( ALL + - 49 ) DIV - 8
----
-41

skipif mysql # not compatible
query I rowsort label-7434
SELECT - - SUM ( DISTINCT - 41 ) + + - 21 / SUM ( ALL + - 49 ) / - 8
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7435
SELECT ALL + SUM( + 47 ) AS col2, + COUNT( + 51 )
----
47
1

skipif mysql # not compatible
query II rowsort label-7435
SELECT ALL + SUM ( + 47 ) AS col2, + COUNT ( + 51 )
----
47
1

query I rowsort
SELECT - ( - 84 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7437
SELECT - 95 * + CASE + 61 WHEN + - 24 THEN - COUNT( * ) WHEN + 9 + COUNT( - 48 ) THEN - 80 * ( MAX( ALL - + 54 ) ) END + + CAST( NULL AS DECIMAL ) + + + 97 + 97 + + CAST( + + 85 AS SIGNED ) * + COUNT( * ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT - 95 * + CASE + 61 WHEN + - 24 THEN - COUNT ( * ) WHEN + 9 + COUNT ( - 48 ) THEN - 80 * ( MAX ( ALL - + 54 ) ) END + + CAST ( NULL AS REAL ) + + + 97 + 97 + + CAST ( + + 85 AS INTEGER ) * + COUNT ( * ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT COALESCE ( + 0, - - COUNT( * ), - + 44 - - MIN( + 74 ) * ( 5 ) * 70 + - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT COALESCE ( + 0, - - COUNT ( * ), - + 44 - - MIN ( + 74 ) * ( 5 ) * 70 + - 78 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - 41 * CASE WHEN NOT NULL NOT IN ( - COUNT( * ), - 41 / - 41, - 27 ) THEN + 88 / 92 * + NULLIF ( 44, + 5 * + + 63 ) END * 65 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT - 41 * CASE WHEN NOT NULL NOT IN ( - COUNT ( * ), - 41 / - 41, - 27 ) THEN + 88 / 92 * + NULLIF ( 44, + 5 * + + 63 ) END * 65 * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT + COUNT( * ) * + 57 * - 96 + - - 49 + + 99 * - 46 - + + 75
----
-10052

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + COUNT ( * ) * + 57 * - 96 + - - 49 + + 99 * - 46 - + + 75
----
-10052

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT + 94 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-7442
SELECT + 94 / - 71
----
-1

query I rowsort
SELECT ALL 54 * 46 * - 60 * - 85 + - 48 AS col2
----
12668352

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT CASE - COUNT( * ) WHEN - 87 THEN CAST( 14 AS SIGNED ) * - NULLIF ( - + 52, + ( 74 ) ) ELSE CAST( NULL AS SIGNED ) * + + CAST( + - 29 AS SIGNED ) + + 23 / + 56 + 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT CASE - COUNT ( * ) WHEN - 87 THEN CAST ( 14 AS INTEGER ) * - NULLIF ( - + 52, + ( 74 ) ) ELSE CAST ( NULL AS INTEGER ) * + + CAST ( + - 29 AS INTEGER ) + + 23 / + 56 + 80 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT ALL + ( - 10 ) * - 65 + 49 + + 24 DIV - - 79 * 69 AS col1
----
699

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + ( - 10 ) * - 65 + 49 + + 24 / - - 79 * 69 AS col1
----
699

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT - 29 * 16 DIV + - 12 + 18 col2
----
56

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - 29 * 16 / + - 12 + 18 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT SUM( DISTINCT + - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7448
SELECT SUM ( DISTINCT + - 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT ALL 75, - 76 * COUNT( * ) col1
----
75
-76

skipif mysql # not compatible
query II rowsort label-7449
SELECT ALL 75, - 76 * COUNT ( * ) col1
----
75
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL 97 * + 43 + + + 69 * - NULLIF ( - 52, - - MIN( + - 45 ) - + 20 )
----
7759

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL 97 * + 43 + + + 69 * - NULLIF ( - 52, - - MIN ( + - 45 ) - + 20 )
----
7759

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT MAX( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7451
SELECT MAX ( - 87 ) AS col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT CAST ( + + 98 AS INTEGER ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT COUNT( ALL 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7453
SELECT COUNT ( ALL 20 )
----
1

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

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT MAX ( DISTINCT - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL 33 * + + CASE - NULLIF ( COUNT( * ), + 74 * 91 ) WHEN - + 94 * - + 63 - + + 98 * + + 22 THEN - 99 + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 33 * + + CASE - NULLIF ( COUNT ( * ), + 74 * 91 ) WHEN - + 94 * - + 63 - + + 98 * + + 22 THEN - 99 + 95 END AS col0
----
NULL

query I rowsort
SELECT + - 1 * - 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL + 96 * - 35 * - 34 + - + NULLIF ( + COUNT( * ), - - 97 - COUNT( * ) ) * - CAST( - COUNT( * ) AS SIGNED ) col0
----
114239

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 96 * - 35 * - 34 + - + NULLIF ( + COUNT ( * ), - - 97 - COUNT ( * ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
114239

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7458
SELECT ALL 36 * - + CAST( NULL AS DECIMAL ) * + 22 + + 41 * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL 36 * - + CAST ( NULL AS REAL ) * + 22 + + 41 * 10 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL CAST( - + 44 AS SIGNED ) AS col0
----
-44

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

query I rowsort
SELECT + 24 + + + ( ( - 30 ) ) AS col0
----
-6

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

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

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

skipif mysql # not compatible
query II rowsort label-7462
SELECT - COUNT ( * ) AS col0, 64 col0
----
-1
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT + + 74 DIV + 61 + - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7463
SELECT + + 74 / + 61 + - 96 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT ALL + 63 DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + 63 / + 88 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - - SUM( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-7465
SELECT - - SUM ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - NULLIF ( - - 95, - 36 + MIN( + 94 ) + - + COALESCE ( + 44, - COALESCE ( - 9, - - 87 ) ) - + COUNT( * ) * - ( + SUM( - + 4 ) ) + + 29 * 96 * + + 14 )
----
-95

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - NULLIF ( - - 95, - 36 + MIN ( + 94 ) + - + COALESCE ( + 44, - COALESCE ( - 9, - - 87 ) ) - + COUNT ( * ) * - ( + SUM ( - + 4 ) ) + + 29 * 96 * + + 14 )
----
-95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7468
SELECT + - 14 DIV + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7468
SELECT + - 14 / + COUNT ( * )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT - 96 * + 22 + + 85 + 25 DIV - 69 + - 94
----
-2121

skipif mysql # not compatible
query I rowsort label-7469
SELECT - 96 * + 22 + + 85 + 25 / - 69 + - 94
----
-2121

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT ALL + - 10 DIV + 57 + + 2 * - 62
----
-124

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + - 10 / + 57 + + 2 * - 62
----
-124

query I rowsort
SELECT + 36 - + 92 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7472
SELECT - CAST( NULL AS SIGNED ) * - COALESCE ( + COUNT( * ), 7 * 6, - - 0, - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT - CAST ( NULL AS INTEGER ) * - COALESCE ( + COUNT ( * ), 7 * 6, - - 0, - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 26 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT ALL + - 11 DIV - + 15 + + 16 + + 68 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + - 11 / - + 15 + + 16 + + 68 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7474
SELECT DISTINCT - 44 DIV - 93 + + - ( 29 ) * NULLIF ( - + 61, - 56 * MIN( 87 ) * + 49 + - 56 * + + 19 + - 0 + - 0 + - COUNT( * ) - + 18 * - + CAST( NULL AS SIGNED ) * + 45 ) * + COUNT( * ) col2
----
1769

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - 44 / - 93 + + - ( 29 ) * NULLIF ( - + 61, - 56 * MIN ( 87 ) * + 49 + - 56 * + + 19 + - 0 + - 0 + - COUNT ( * ) - + 18 * - + CAST ( NULL AS INTEGER ) * + 45 ) * + COUNT ( * ) col2
----
1769

query I rowsort
SELECT ALL + COALESCE ( + + 85, + 35 ) + COALESCE ( - 51, 89 )
----
34

query I rowsort
SELECT ALL - 46 * - 16
----
736

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT - NULLIF ( - - 70, + 82 * ( 55 ) ) + - SUM( 68 ) * + 62 AS col1
----
-4286

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT - NULLIF ( - - 70, + 82 * ( 55 ) ) + - SUM ( 68 ) * + 62 AS col1
----
-4286

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL - SUM( + 68 ) AS col1, + 96 * - 14 + - 88
----
-68
-1432

skipif mysql # not compatible
query II rowsort label-7479
SELECT ALL - SUM ( + 68 ) AS col1, + 96 * - 14 + - 88
----
-68
-1432

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ( - + COUNT( DISTINCT 59 ) ) + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-7480
SELECT ( - + COUNT ( DISTINCT 59 ) ) + - 84
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT 23 + + CAST( - 26 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-7481
SELECT 23 + + CAST ( - 26 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT 29 + + CASE - COUNT( * ) WHEN + MAX( ALL + 30 ) THEN + - 64 * + 78 ELSE + - 70 END
----
-41

skipif mysql # not compatible
query I rowsort label-7482
SELECT 29 + + CASE - COUNT ( * ) WHEN + MAX ( ALL + 30 ) THEN + - 64 * + 78 ELSE + - 70 END
----
-41

query I rowsort
SELECT ALL + 11 + - 55
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - COUNT( * ) * + + 16 + - 76 - - 90 * MAX( ALL 2 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-7484
SELECT - COUNT ( * ) * + + 16 + - 76 - - 90 * MAX ( ALL 2 ) col0
----
88

query I rowsort
SELECT DISTINCT + 85 * + - 57 AS col2
----
-4845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7486
SELECT CASE - + 81 WHEN + CAST( - 31 AS DECIMAL ) THEN ( - 88 ) - - COUNT( * ) WHEN - - 92 THEN + 36 * + 67 WHEN + ( - 85 ) + + + 78 - - - COUNT( * ) * COUNT( * ) * - 13 * - 20 * - ( - 11 ) * + 23 + + 84 * + 20 THEN - CAST( NULL AS SIGNED ) - 41 ELSE - MIN( DISTINCT + 20 ) + + 52 END + + 69 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-7486
SELECT CASE - + 81 WHEN + CAST ( - 31 AS REAL ) THEN ( - 88 ) - - COUNT ( * ) WHEN - - 92 THEN + 36 * + 67 WHEN + ( - 85 ) + + + 78 - - - COUNT ( * ) * COUNT ( * ) * - 13 * - 20 * - ( - 11 ) * + 23 + + 84 * + 20 THEN - CAST ( NULL AS INTEGER ) - 41 ELSE - MIN ( DISTINCT + 20 ) + + 52 END + + 69 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT 54 * - 29 DIV - - COUNT( * ) col2
----
-1566

skipif mysql # not compatible
query I rowsort label-7487
SELECT 54 * - 29 / - - COUNT ( * ) col2
----
-1566

query I rowsort
SELECT - 95 * 66
----
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - - SUM( 18 )
----
18

skipif mysql # not compatible
query I rowsort label-7489
SELECT - - SUM ( 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT ALL - COUNT( DISTINCT + 90 ) DIV 42 * - 58
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - COUNT ( DISTINCT + 90 ) / 42 * - 58
----
0

query I rowsort
SELECT 53 * - 89 * - 51 * + 12 - 45
----
2886759

query II rowsort
SELECT - ( 21 ), 60 + 99 AS col1
----
-21
159

query I rowsort
SELECT ALL 50 + - ( + 93 ) AS col1
----
-43

query I rowsort
SELECT + 20 + + 27 col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT - 94 DIV - 26 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 94 / - 26 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL COALESCE ( - - COUNT( * ), + - 44 * - - NULLIF ( COUNT( * ), - COUNT( * ) / - 94 * 16 ) + + 90, - COUNT( * ) * - + 69 + + 92, + COUNT( * ) * + 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL COALESCE ( - - COUNT ( * ), + - 44 * - - NULLIF ( COUNT ( * ), - COUNT ( * ) / - 94 * 16 ) + + 90, - COUNT ( * ) * - + 69 + + 92, + COUNT ( * ) * + 32 ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL + - 7 + + AVG ( + 60 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + - 7 + + AVG ( + 60 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT - 15 * + - 60 + - 86 + - ( - + COUNT( * ) ), ( + 93 ) AS col2
----
815
93

skipif mysql # not compatible
query II rowsort label-7499
SELECT - 15 * + - 60 + - 86 + - ( - + COUNT ( * ) ), ( + 93 ) AS col2
----
815
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT 6 DIV 31 + SUM( DISTINCT 4 ) + + + 9 + - 17 * + 80 * + - 88 * ( - 51 ) * 41 + + + 47
----
-250250820

skipif mysql # not compatible
query I rowsort label-7500
SELECT 6 / 31 + SUM ( DISTINCT 4 ) + + + 9 + - 17 * + 80 * + - 88 * ( - 51 ) * 41 + + + 47
----
-250250820

query I rowsort
SELECT 43 * + - 41 * 70
----
-123410

query I rowsort
SELECT 20 * + 73 AS col0
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), SUM( ALL - 28 ) * 26 + - 70 - - 61 + 20 * COUNT( * ) + + MIN( ALL - ( + + 53 ) ) ) * - 31 * - - 21 + + 45 + + + 47 + 85 + SUM( - 16 ) * - - ( + 30 ) + - NULLIF ( + 65, CASE + 22 WHEN 41 THEN NULL WHEN - 20 + 91 THEN 38 + + 18 * 35 END + - 71 ) * - 60 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), SUM ( ALL - 28 ) * 26 + - 70 - - 61 + 20 * COUNT ( * ) + + MIN ( ALL - ( + + 53 ) ) ) * - 31 * - - 21 + + 45 + + + 47 + 85 + SUM ( - 16 ) * - - ( + 30 ) + - NULLIF ( + 65, CASE + 22 WHEN 41 THEN NULL WHEN - 20 + 91 THEN 38 + + 18 * 35 END + - 71 ) * - 60 * 3
----
NULL

query II rowsort
SELECT + 12 AS col1, + 61 * 61
----
12
3721

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT 39 DIV - - ( - ( - - 60 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT 39 / - - ( - ( - - 60 ) )
----
0

query I rowsort
SELECT ALL - 70 * - + 50
----
3500

query I rowsort
SELECT DISTINCT 75 * - + 48 AS col0
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL ( 15 ) - - MIN( DISTINCT + - 56 ) * - 21 * - + ( - + COUNT( - + 98 ) ) * - 4 + + CAST( - 37 AS SIGNED ) + + 58
----
-4668

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL ( 15 ) - - MIN ( DISTINCT + - 56 ) * - 21 * - + ( - + COUNT ( - + 98 ) ) * - 4 + + CAST ( - 37 AS INTEGER ) + + 58
----
-4668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7509
SELECT 13 col1, + ( + 71 ) DIV - 2 + + 34 + SUM( ALL + + 9 ) + - + 36 * 99
----
13
-3556

skipif mysql # not compatible
query II rowsort label-7509
SELECT 13 col1, + ( + 71 ) / - 2 + + 34 + SUM ( ALL + + 9 ) + - + 36 * 99
----
13
-3556

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 74 * - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7510
SELECT 74 * - COUNT ( * ) AS col2
----
-74

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 25, + 15 )
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + 56 * 57 * ( - COALESCE ( - + 94, - + 17 * - 62, + COUNT( DISTINCT 95 ) ) ) - 36 AS col2
----
300012

skipif mysql # not compatible
query I rowsort label-7514
SELECT + 56 * 57 * ( - COALESCE ( - + 94, - + 17 * - 62, + COUNT ( DISTINCT 95 ) ) ) - 36 AS col2
----
300012

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT SUM( 71 ) * + 3 + - 3
----
210

skipif mysql # not compatible
query I rowsort label-7515
SELECT SUM ( 71 ) * + 3 + - 3
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT + COUNT( DISTINCT - 88 ) - - + 55 + - + 69 * 90 AS col2
----
-6154

skipif mysql # not compatible
query I rowsort label-7516
SELECT + COUNT ( DISTINCT - 88 ) - - + 55 + - + 69 * 90 AS col2
----
-6154

query II rowsort
SELECT + 10 AS col1, 85 * + + 1 AS col1
----
10
85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT 21 * 73 DIV ( + + ( + 95 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7519
SELECT 21 * 73 / ( + + ( + 95 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - 42 - - + MIN( + ( - 82 ) ) * - COUNT( * ) col0
----
40

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 42 - - + MIN ( + ( - 82 ) ) * - COUNT ( * ) col0
----
40

query I rowsort
SELECT DISTINCT - 36 + - 64
----
-100

query II rowsort
SELECT - - 47 col1, NULLIF ( ( - 76 ), - 11 )
----
47
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT ALL - - 92 + - NULLIF ( + 6, - 85 ) + - 12 DIV - - 57 + + + COALESCE ( - + COUNT( * ), - 68 * - 0 + - ( - + 28 ), 53 )
----
85

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - - 92 + - NULLIF ( + 6, - 85 ) + - 12 / - - 57 + + + COALESCE ( - + COUNT ( * ), - 68 * - 0 + - ( - + 28 ), 53 )
----
85

query II rowsort
SELECT 68 AS col2, - 89 AS col2
----
68
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - - 22 + + + NULLIF ( - + 48, - - COUNT( * ) ) + + - MAX( - 69 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7525
SELECT - - 22 + + + NULLIF ( - + 48, - - COUNT ( * ) ) + + - MAX ( - 69 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - + 6 * + + 92 + - 86 - + COUNT( 93 ) * + 47
----
-685

skipif mysql # not compatible
query I rowsort label-7526
SELECT - + 6 * + + 92 + - 86 - + COUNT ( 93 ) * + 47
----
-685

query I rowsort
SELECT ALL + - 63 + + 1
----
-62

query I rowsort
SELECT ALL - - 0 + 23 * 6 * - - 78 col0
----
10764

query I rowsort
SELECT ALL 84 + - 80 col2
----
4

query I rowsort
SELECT + 67 * - 48 + 38
----
-3178

query II rowsort
SELECT + 1, 43 AS col1
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT 74 * - - ( + + COALESCE ( 64, - + 9 ) ) * - + ( 19 ) - - 18 - SUM( 15 ) AS col2
----
-89981

skipif mysql # not compatible
query I rowsort label-7532
SELECT 74 * - - ( + + COALESCE ( 64, - + 9 ) ) * - + ( 19 ) - - 18 - SUM ( 15 ) AS col2
----
-89981

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT CASE - 20 WHEN - - COUNT( * ) + 42 * ( + COUNT( * ) ) * + 61 + - 47 THEN - + NULLIF ( - CAST( - + 81 AS SIGNED ), - 4 ) WHEN + ( - 3 ) THEN NULL ELSE 78 END
----
78

skipif mysql # not compatible
query I rowsort label-7534
SELECT CASE - 20 WHEN - - COUNT ( * ) + 42 * ( + COUNT ( * ) ) * + 61 + - 47 THEN - + NULLIF ( - CAST ( - + 81 AS INTEGER ), - 4 ) WHEN + ( - 3 ) THEN NULL ELSE 78 END
----
78

query I rowsort
SELECT ALL 34 * ( + 88 )
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7536
SELECT CASE + + CAST( NULL AS SIGNED ) WHEN + 38 THEN - - 33 + - COUNT( * ) ELSE - 61 DIV - - 13 END AS col0, 29
----
-4
29

skipif mysql # not compatible
query II rowsort label-7536
SELECT CASE + + CAST ( NULL AS INTEGER ) WHEN + 38 THEN - - 33 + - COUNT ( * ) ELSE - 61 / - - 13 END AS col0, 29
----
-4
29

query I rowsort
SELECT + 81 * 74 * 12
----
71928

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT CAST( NULL AS SIGNED ) * + + 13 - + - NULLIF ( - COUNT( * ), - 86 - - - 44 * 91 * - + 22 ) * + 75 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( NULL AS INTEGER ) * + + 13 - + - NULLIF ( - COUNT ( * ), - 86 - - - 44 * 91 * - + 22 ) * + 75 * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + COUNT( + 66 ) + + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7540
SELECT + COUNT ( + 66 ) + + 23 AS col0
----
24

onlyif mysql # aggregate syntax: 
query III rowsort label-7541
SELECT ALL + 19 AS col0, - 43 * ( + 80 ) + 99 * + COUNT( ALL - 58 ) AS col2, - - 10 AS col2
----
19
-3341
10

skipif mysql # not compatible
query III rowsort label-7541
SELECT ALL + 19 AS col0, - 43 * ( + 80 ) + 99 * + COUNT ( ALL - 58 ) AS col2, - - 10 AS col2
----
19
-3341
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT + CASE WHEN NOT + 12 IS NOT NULL THEN + 13 END * AVG ( ALL 59 ) AS col0, 85 * + NULLIF ( + MIN( DISTINCT - 93 ), - - SUM( ALL - 20 ) ) AS col0
----
NULL
-7905

skipif mysql # not compatible
query II rowsort label-7542
SELECT + CASE WHEN NOT + 12 IS NOT NULL THEN + 13 END * AVG ( ALL 59 ) AS col0, 85 * + NULLIF ( + MIN ( DISTINCT - 93 ), - - SUM ( ALL - 20 ) ) AS col0
----
NULL
-7905

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT - COUNT( DISTINCT + 60 ) * - COUNT( * ) * 73, 88 + - 67 AS col0
----
73
21

skipif mysql # not compatible
query II rowsort label-7543
SELECT - COUNT ( DISTINCT + 60 ) * - COUNT ( * ) * 73, 88 + - 67 AS col0
----
73
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7544
SELECT - SUM( DISTINCT 89 ) / + CAST( NULL AS SIGNED ) + - 80, - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-7544
SELECT - SUM ( DISTINCT 89 ) / + CAST ( NULL AS INTEGER ) + - 80, - 34 AS col0
----
NULL
-34

query I rowsort
SELECT ALL 74 * + 46 AS col0
----
3404

query I rowsort
SELECT ALL + 76 * 50
----
3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT + CAST( + 21 AS SIGNED ) * + + 74
----
1554

skipif mysql # not compatible
query I rowsort label-7547
SELECT + CAST ( + 21 AS INTEGER ) * + + 74
----
1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT + + CASE 9 WHEN - 81 THEN - - 36 WHEN - 8 THEN + 25 ELSE + ( - SUM( ALL - ( CAST( NULL AS SIGNED ) ) ) ) END + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT + + CASE 9 WHEN - 81 THEN - - 36 WHEN - 8 THEN + 25 ELSE + ( - SUM ( ALL - ( CAST ( NULL AS INTEGER ) ) ) ) END + + 22 AS col2
----
NULL

query I rowsort
SELECT ALL 60 * 65 * - + 61 AS col0
----
-237900

query II rowsort
SELECT DISTINCT + + 64 AS col2, 25 * - 5 AS col2
----
64
-125

query I rowsort
SELECT DISTINCT + ( + + 84 ) col2
----
84

query I rowsort
SELECT + + 51 * - 62 AS col1
----
-3162

query I rowsort
SELECT - 26 + ( 1 )
----
-25

query II rowsort
SELECT - + 69 AS col2, + 65 AS col2
----
-69
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - 49 * + SUM( - 99 ) + COUNT( * )
----
4852

skipif mysql # not compatible
query I rowsort label-7555
SELECT - 49 * + SUM ( - 99 ) + COUNT ( * )
----
4852

query I rowsort
SELECT ALL - + 40 + - 9 + 90 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT DISTINCT + 63 + + ( COUNT( * ) ) * NULLIF ( 26, + 61 + - CASE + + 16 WHEN + ( - NULLIF ( + 73, + - CAST( NULL AS SIGNED ) * - 7 + - 19 ) ) / + 16 + 13 THEN - 13 WHEN - COALESCE ( + COUNT( + - 86 ), + CASE - ( 54 ) WHEN + COALESCE ( - 88, + 21, SUM( ALL + 63 ), 3 ) THEN 51 * - 58 END * + 96 + 8 ) THEN NULL END ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + 63 + + ( COUNT ( * ) ) * NULLIF ( 26, + 61 + - CASE + + 16 WHEN + ( - NULLIF ( + 73, + - CAST ( NULL AS INTEGER ) * - 7 + - 19 ) ) / + 16 + 13 THEN - 13 WHEN - COALESCE ( + COUNT ( + - 86 ), + CASE - ( 54 ) WHEN + COALESCE ( - 88, + 21, SUM ( ALL + 63 ), 3 ) THEN 51 * - 58 END * + 96 + 8 ) THEN NULL END ) AS col0
----
89

query I rowsort
SELECT DISTINCT + 82 + - 53 col2
----
29

query I rowsort
SELECT DISTINCT - 24 + 33 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - + MAX( - - 82 ) + - 15 * - + ( - 82 ) AS col1
----
-1312

skipif mysql # not compatible
query I rowsort label-7560
SELECT - + MAX ( - - 82 ) + - 15 * - + ( - 82 ) AS col1
----
-1312

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

query I rowsort
SELECT ALL + 89 - - 21
----
110

query I rowsort
SELECT - 76 + - 2
----
-78

query I rowsort
SELECT DISTINCT + 97 * - + 5 AS col1
----
-485

query I rowsort
SELECT ALL - NULLIF ( - 86, - 63 ) - 84 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT - 29 + - COUNT( * ) col2, 36
----
-30
36

skipif mysql # not compatible
query II rowsort label-7566
SELECT - 29 + - COUNT ( * ) col2, 36
----
-30
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7567
SELECT 43 DIV + NULLIF ( + 72, - - 93 + + 45 * - 68 * - COUNT( * ) DIV - - CAST( NULL AS SIGNED ) ) * 74 + - 9 * - 93 + - 45 * - 62 + - 40 - CAST( + - 79 AS SIGNED ) - + - 13 * - COUNT( * ) - - 73 * + 50 * - 53 + 71 DIV 49 col0
----
-189796

skipif mysql # not compatible
query I rowsort label-7567
SELECT 43 / + NULLIF ( + 72, - - 93 + + 45 * - 68 * - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) ) * 74 + - 9 * - 93 + - 45 * - 62 + - 40 - CAST ( + - 79 AS INTEGER ) - + - 13 * - COUNT ( * ) - - 73 * + 50 * - 53 + 71 / 49 col0
----
-189796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7568
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0, 78 + COUNT( * ) AS col1
----
-1
79

skipif mysql # not compatible
query II rowsort label-7568
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 78 + COUNT ( * ) AS col1
----
-1
79

query II rowsort
SELECT ALL + ( - 92 ), - 59 * 40 AS col2
----
-92
-2360

query I rowsort
SELECT - 69 * + - 10 AS col2
----
690

onlyif mysql # DIV for integer division: 
query II rowsort label-7571
SELECT + 75 + - + 88, 1 * + 69 + - 21 DIV - - 97 + 81 AS col2
----
-13
150

skipif mysql # not compatible
query II rowsort label-7571
SELECT + 75 + - + 88, 1 * + 69 + - 21 / - - 97 + 81 AS col2
----
-13
150

query III rowsort
SELECT ALL 81 * + - 70 AS col0, + 4 - - + ( 8 ) AS col2, - 79
----
-5670
12
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT + 86 * - 91 * - CAST( NULL AS SIGNED ) + 64 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + 86 * - 91 * - CAST ( NULL AS INTEGER ) + 64 + COUNT ( * ) AS col1
----
NULL

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT ALL 11 DIV 26 + - ( + 98 ) + - + 33 * + + 82 - 59
----
-2863

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL 11 / 26 + - ( + 98 ) + - + 33 * + + 82 - 59
----
-2863

query II rowsort
SELECT DISTINCT 73 * - COALESCE ( - + 50, + 79 ) + + 12 AS col0, + 69 AS col2
----
3662
69

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

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

query I rowsort
SELECT ALL + 72 * + - COALESCE ( + 14, - 94, - 84 ) + + + 71 * 17
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT + - COUNT( * ) DIV + NULLIF ( ( 26 ), 84 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT + - COUNT ( * ) / + NULLIF ( ( 26 ), 84 ) AS col1
----
0

query I rowsort
SELECT + - 41 * - 56
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + - 33 * - + 20 + + 3 + 78 * + + SUM( DISTINCT - + 78 )
----
-5421

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + - 33 * - + 20 + + 3 + 78 * + + SUM ( DISTINCT - + 78 )
----
-5421

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT DISTINCT + + SUM( - 87 ), - ( - ( + 91 ) ) col0
----
-87
91

skipif mysql # not compatible
query II rowsort label-7584
SELECT DISTINCT + + SUM ( - 87 ), - ( - ( + 91 ) ) col0
----
-87
91

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

skipif mysql # not compatible
query II rowsort label-7585
SELECT + CAST ( + COUNT ( * ) AS INTEGER ), + ( 77 ) AS col2
----
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - NULLIF ( NULLIF ( 86, + 22 * 33 ), - - 46 ) * 51 - + COUNT( * ) - + + 34 * COUNT( * ) - + 47 AS col1
----
-4468

skipif mysql # not compatible
query I rowsort label-7586
SELECT - NULLIF ( NULLIF ( 86, + 22 * 33 ), - - 46 ) * 51 - + COUNT ( * ) - + + 34 * COUNT ( * ) - + 47 AS col1
----
-4468

query I rowsort
SELECT ALL 21 + - + 81
----
-60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT + SUM( + 4 ) + + 75
----
79

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT + SUM ( + 4 ) + + 75
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT ALL + + 25 - + - COUNT( * ) - + - 14 * - COALESCE ( + 7, - 24, + 66 ) + + 66 + + - 7 + + 27 AS col2, - 54 AS col0
----
14
-54

skipif mysql # not compatible
query II rowsort label-7591
SELECT ALL + + 25 - + - COUNT ( * ) - + - 14 * - COALESCE ( + 7, - 24, + 66 ) + + 66 + + - 7 + + 27 AS col2, - 54 AS col0
----
14
-54

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

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT 1 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 76 + COUNT( * ) + + 95
----
172

skipif mysql # not compatible
query I rowsort label-7593
SELECT 76 + COUNT ( * ) + + 95
----
172

query II rowsort
SELECT ALL 46 AS col1, 0 AS col2
----
46
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL + 57 * MIN( DISTINCT - CAST( ( - 12 ) AS SIGNED ) ) AS col2
----
684

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + 57 * MIN ( DISTINCT - CAST ( ( - 12 ) AS INTEGER ) ) AS col2
----
684

query II rowsort
SELECT ALL 55 AS col2, NULLIF ( 11, + + 86 )
----
55
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7597
SELECT - 9 AS col1, - CASE + MAX( ALL - 57 ) WHEN 87 * + + 29 + + 1 * - + 95 + + CAST( - 59 AS SIGNED ) THEN - - 39 DIV + 7 ELSE + 82 END AS col2
----
-9
-82

skipif mysql # not compatible
query II rowsort label-7597
SELECT - 9 AS col1, - CASE + MAX ( ALL - 57 ) WHEN 87 * + + 29 + + 1 * - + 95 + + CAST ( - 59 AS INTEGER ) THEN - - 39 / + 7 ELSE + 82 END AS col2
----
-9
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7598
SELECT 29 AS col2, + 32 + COUNT( * ) * ( 61 ) AS col1
----
29
93

skipif mysql # not compatible
query II rowsort label-7598
SELECT 29 AS col2, + 32 + COUNT ( * ) * ( 61 ) AS col1
----
29
93

query I rowsort
SELECT 48 * - - 62
----
2976

query I rowsort
SELECT 83 * + 30 * + 66 AS col2
----
164340

query I rowsort
SELECT 54 - 65 col1
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-7602
SELECT 43, 22 DIV ( + 53 ) AS col1
----
43
0

skipif mysql # not compatible
query II rowsort label-7602
SELECT 43, 22 / ( + 53 ) AS col1
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT COUNT( * ) * 68 - - MIN( - - 60 ) + ( 8 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-7603
SELECT COUNT ( * ) * 68 - - MIN ( - - 60 ) + ( 8 ) AS col1
----
136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7604
SELECT ALL + 21 + NULLIF ( - 47, 6 * 37 * 5 + 27 + + 46 ) - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL + 21 + NULLIF ( - 47, 6 * 37 * 5 + 27 + + 46 ) - + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7605
SELECT + COUNT( * ) DIV + 57 * 23 * - MAX( - 59 ) + + 26, - COALESCE ( + COUNT( * ), - ( - 48 ) - - 96 ) AS col1
----
26
-1

skipif mysql # not compatible
query II rowsort label-7605
SELECT + COUNT ( * ) / + 57 * 23 * - MAX ( - 59 ) + + 26, - COALESCE ( + COUNT ( * ), - ( - 48 ) - - 96 ) AS col1
----
26
-1

query I rowsort
SELECT ALL + 49 + - ( 78 ) AS col1
----
-29

query I rowsort
SELECT ALL - 94 * - 86
----
8084

query I rowsort
SELECT ALL - 49 + + 19 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7609
SELECT COUNT( DISTINCT + + 62 ) DIV + - 76 AS col0, + 42
----
0
42

skipif mysql # not compatible
query II rowsort label-7609
SELECT COUNT ( DISTINCT + + 62 ) / + - 76 AS col0, + 42
----
0
42

query I rowsort
SELECT ALL + 22 + + 11 * + 22 * + 65 AS col1
----
15752

query II rowsort
SELECT + 1 AS col1, 73
----
1
73

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

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

query II rowsort
SELECT - 22 * + 25 + - 74 col2, 45
----
-624
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT COUNT( * ) * + - 78 + - COALESCE ( + + 46, 18, - COUNT( - 20 ) ) + - 26 * - 41 AS col0
----
942

skipif mysql # not compatible
query I rowsort label-7614
SELECT COUNT ( * ) * + - 78 + - COALESCE ( + + 46, 18, - COUNT ( - 20 ) ) + - 26 * - 41 AS col0
----
942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT + 97 * - 58 * COALESCE ( - - COUNT( * ), - - 49 * + 62 * + 11 * + 82 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT + 97 * - 58 * COALESCE ( - - COUNT ( * ), - - 49 * + 62 * + 11 * + 82 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + + 56 * + NULLIF ( - 81, + 72 - + + 26 + 3 - + + MAX( 45 ) * - 71 * - 5 + + + 52 )
----
-4536

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + + 56 * + NULLIF ( - 81, + 72 - + + 26 + 3 - + + MAX ( 45 ) * - 71 * - 5 + + + 52 )
----
-4536

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

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

query I rowsort
SELECT - + ( + ( 54 ) ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 94 * SUM( DISTINCT 69 ) + + 40
----
6526

skipif mysql # not compatible
query I rowsort label-7619
SELECT 94 * SUM ( DISTINCT 69 ) + + 40
----
6526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT COUNT( * ) + + - NULLIF ( 52, + NULLIF ( - CASE + 81 WHEN + 37 * + + CASE + - CAST( NULL AS SIGNED ) WHEN 74 THEN + CASE - AVG ( - 2 ) WHEN - 30 * + - 85 THEN - 93 WHEN + + 8 / - SUM( ALL - - 47 ) + 3 + 6 * - 47 THEN - - 49 - COUNT( * ) END + 66 END THEN - 23 + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) + + 20 END, 64 / 11 ) + 36 ) + - ( 17 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7620
SELECT COUNT ( * ) + + - NULLIF ( 52, + NULLIF ( - CASE + 81 WHEN + 37 * + + CASE + - CAST ( NULL AS INTEGER ) WHEN 74 THEN + CASE - AVG ( - 2 ) WHEN - 30 * + - 85 THEN - 93 WHEN + + 8 / - SUM ( ALL - - 47 ) + 3 + 6 * - 47 THEN - - 49 - COUNT ( * ) END + 66 END THEN - 23 + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) + + 20 END, 64 / 11 ) + 36 ) + - ( 17 ) AS col0
----
-68

query I rowsort
SELECT DISTINCT + 81 * + + 41 AS col0
----
3321

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT CAST( - + 17 AS SIGNED ) DIV + + CAST( - 46 AS SIGNED ) * + 61 * - - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT CAST ( - + 17 AS INTEGER ) / + + CAST ( - 46 AS INTEGER ) * + 61 * - - 18 AS col1
----
0

query I rowsort
SELECT DISTINCT 5 * - - 65
----
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT 83 + 46 + + 4 * 9 * CAST( COUNT( * ) AS SIGNED )
----
165

skipif mysql # not compatible
query I rowsort label-7624
SELECT 83 + 46 + + 4 * 9 * CAST ( COUNT ( * ) AS INTEGER )
----
165

query I rowsort
SELECT 93 * + - 25 * - 64 AS col2
----
148800

query I rowsort
SELECT ALL 57 + 36
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT ( + - ( - + 8 ) ) * MAX( DISTINCT ( 9 ) )
----
72

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT ( + - ( - + 8 ) ) * MAX ( DISTINCT ( 9 ) )
----
72

query I rowsort
SELECT 73 + - 51 AS col1
----
22

query I rowsort
SELECT DISTINCT 63 + 72 AS col0
----
135

query I rowsort
SELECT DISTINCT - 6 * + + 97 + 97
----
-485

query I rowsort
SELECT DISTINCT 65 * 47 + + 74
----
3129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7632
SELECT COALESCE ( + - 95, + - 20 * + - 58 + + 93 + - CAST( 73 AS SIGNED ) * + COUNT( * ) + + 9 + + MAX( DISTINCT + + 16 ) DIV 63 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7632
SELECT COALESCE ( + - 95, + - 20 * + - 58 + + 93 + - CAST ( 73 AS INTEGER ) * + COUNT ( * ) + + 9 + + MAX ( DISTINCT + + 16 ) / 63 ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7633
SELECT CAST( + 43 AS SIGNED ) DIV + 61 * + 61 * - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT CAST ( + 43 AS INTEGER ) / + 61 * + 61 * - 78 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 8 + + + SUM( DISTINCT 89 ) * + 25 col0
----
2233

skipif mysql # not compatible
query I rowsort label-7634
SELECT 8 + + + SUM ( DISTINCT 89 ) * + 25 col0
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT + COALESCE ( NULLIF ( 3, COALESCE ( + 78, + - 75 ) ), + + 15 * - NULLIF ( - 84, - 38 * - + CASE - ( + - CASE MIN( + 10 ) WHEN 50 THEN NULL ELSE 18 END ) WHEN - 32 + + + 11 THEN COUNT( * ) * + 16 + + 79 ELSE NULL END ) * - 89 - - + 59 + + 14 * 44 + 12, MAX( ALL - 5 ) * - MIN( - 80 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7635
SELECT + COALESCE ( NULLIF ( 3, COALESCE ( + 78, + - 75 ) ), + + 15 * - NULLIF ( - 84, - 38 * - + CASE - ( + - CASE MIN ( + 10 ) WHEN 50 THEN NULL ELSE 18 END ) WHEN - 32 + + + 11 THEN COUNT ( * ) * + 16 + + 79 ELSE NULL END ) * - 89 - - + 59 + + 14 * 44 + 12, MAX ( ALL - 5 ) * - MIN ( - 80 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT - - COUNT( * ) * 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7636
SELECT - - COUNT ( * ) * 62 AS col2
----
62

query I rowsort
SELECT DISTINCT - + 67 * + 44 - - 11
----
-2937

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - MIN( - + 56 ) * - 18 * + 56 AS col1
----
-56448

skipif mysql # not compatible
query I rowsort label-7639
SELECT - MIN ( - + 56 ) * - 18 * + 56 AS col1
----
-56448

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT + + COALESCE ( - - 5, + 49 DIV + 17 * 51 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7640
SELECT + + COALESCE ( - - 5, + 49 / + 17 * 51 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + ( + MIN( - CASE - 1 WHEN 28 + + - 39 THEN + 24 WHEN + 70 THEN NULL ELSE NULL END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + ( + MIN ( - CASE - 1 WHEN 28 + + - 39 THEN + 24 WHEN + 70 THEN NULL ELSE NULL END ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT - - 95 * - 18 - 41 AS col1
----
-1751

query II rowsort
SELECT - 39 + + 31, ( + 98 ) AS col1
----
-8
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7644
SELECT ( - 87 ), + COUNT( * ) DIV 21 col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-7644
SELECT ( - 87 ), + COUNT ( * ) / 21 col0
----
-87
0

query I rowsort
SELECT - - 12 * 66
----
792

query I rowsort
SELECT + - 7 * 84 AS col2
----
-588

query I rowsort
SELECT ALL + 1 * 39 - - 66
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT + COUNT( - 91 ) * - CASE WHEN NOT ( NULL ) <> NULL THEN NULL WHEN NOT - 35 IS NULL THEN NULL WHEN NULL >= - COUNT( * ) * - 84 THEN + 79 * 4 ELSE NULL END * - + 93 + - 6 / + - 93 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT + COUNT ( - 91 ) * - CASE WHEN NOT ( NULL ) <> NULL THEN NULL WHEN NOT - 35 IS NULL THEN NULL WHEN NULL >= - COUNT ( * ) * - 84 THEN + 79 * 4 ELSE NULL END * - + 93 + - 6 / + - 93 - + 74
----
NULL

query I rowsort
SELECT ALL - 52 * + 44
----
-2288

query I rowsort
SELECT - 98 * + ( + 92 ) * + + 60
----
-540960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * - 82 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + MAX( + 37 ) - 99 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7653
SELECT + MAX ( + 37 ) - 99 AS col1
----
-62

query I rowsort
SELECT DISTINCT 23 + - 25
----
-2

query I rowsort
SELECT + 34 - - + 71 AS col0
----
105

query I rowsort
SELECT ALL 58 + + + 15 AS col1
----
73

query I rowsort
SELECT + 64 * + + 56
----
3584

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

query I rowsort
SELECT + 98 + 42 * - 59 * - 97 AS col0
----
240464

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT + 16 DIV - + 27
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 16 / - + 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7661
SELECT ALL 22 + 86 - - COUNT( * ) * - 16 + - 24 + + 55 DIV - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL 22 + 86 - - COUNT ( * ) * - 16 + - 24 + + 55 / - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL NULLIF ( + COUNT( * ), COALESCE ( - 0, - - 41 * 27 - - + 2 - - 63 * + 6 * + 14 ) ) + - 62 + + 80 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL NULLIF ( + COUNT ( * ), COALESCE ( - 0, - - 41 * 27 - - + 2 - - 63 * + 6 * + 14 ) ) + - 62 + + 80 AS col1
----
19

query I rowsort
SELECT - 63 * - 73 AS col0
----
4599

query I rowsort
SELECT + 68 * 44
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT - CAST( MAX( DISTINCT - COALESCE ( 11, + 12, - 79 ) ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7665
SELECT - CAST ( MAX ( DISTINCT - COALESCE ( 11, + 12, - 79 ) ) AS INTEGER )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7666
SELECT CAST( NULL AS SIGNED ), - 57 + 43 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-7666
SELECT CAST ( NULL AS INTEGER ), - 57 + 43 AS col0
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - 85 * + + NULLIF ( 90, - ( 84 ) + - + SUM( + 78 ) - - + COUNT( * ) ) - + - 24
----
-7626

skipif mysql # not compatible
query I rowsort label-7667
SELECT - 85 * + + NULLIF ( 90, - ( 84 ) + - + SUM ( + 78 ) - - + COUNT ( * ) ) - + - 24
----
-7626

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

query I rowsort
SELECT ALL + 79 * + 91 AS col1
----
7189

query I rowsort
SELECT + 57 + + 87 - 39
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-7671
SELECT 41 AS col2, - 72 + + 53 DIV - 4 AS col0
----
41
-85

skipif mysql # not compatible
query II rowsort label-7671
SELECT 41 AS col2, - 72 + + 53 / - 4 AS col0
----
41
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT 7 * 77 + - 53 - SUM( + 11 ) * + + 90
----
-504

skipif mysql # not compatible
query I rowsort label-7672
SELECT 7 * 77 + - 53 - SUM ( + 11 ) * + + 90
----
-504

query I rowsort
SELECT - 79 - + + 51 + 71 AS col1
----
-59

query I rowsort
SELECT - + 65 * - + 85 - + 40 + + - 60
----
5425

query I rowsort
SELECT DISTINCT - 63 * 64 + - + 30 AS col0
----
-4062

query I rowsort
SELECT + 37 + 29
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT 52 DIV + 37 + - 80 - 97 * + 55 * + 10 + - + COUNT( * )
----
-53430

skipif mysql # not compatible
query I rowsort label-7677
SELECT 52 / + 37 + - 80 - 97 * + 55 * + 10 + - + COUNT ( * )
----
-53430

query I rowsort
SELECT - + 36 * + - 89
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - COUNT( * ) * + CASE 40 WHEN COUNT( * ) - 1 THEN NULL WHEN 22 THEN NULL WHEN ( - + 84 ) THEN + 26 * + + ( 35 ) WHEN - 26 + - - 73 THEN 33 * - 49 / - 80 * + 47 * - COUNT( * ) + + ( + COALESCE ( 32, + ( COALESCE ( - ( 43 ), COUNT( * ) ) ) ) ) / 14 ELSE NULL END * + 81 + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT - COUNT ( * ) * + CASE 40 WHEN COUNT ( * ) - 1 THEN NULL WHEN 22 THEN NULL WHEN ( - + 84 ) THEN + 26 * + + ( 35 ) WHEN - 26 + - - 73 THEN 33 * - 49 / - 80 * + 47 * - COUNT ( * ) + + ( + COALESCE ( 32, + ( COALESCE ( - ( 43 ), COUNT ( * ) ) ) ) ) / 14 ELSE NULL END * + 81 + 60 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT - 82 DIV - 17 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7681
SELECT - 82 / - 17 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT + NULLIF ( NULLIF ( 36, - + 37 / - MAX( DISTINCT - 28 ) * 2 ), NULLIF ( + 4, - 38 ) + - + NULLIF ( 77, - 57 ) ) * SUM( + CAST( - 33 AS SIGNED ) )
----
-1188

skipif mysql # not compatible
query I rowsort label-7682
SELECT + NULLIF ( NULLIF ( 36, - + 37 / - MAX ( DISTINCT - 28 ) * 2 ), NULLIF ( + 4, - 38 ) + - + NULLIF ( 77, - 57 ) ) * SUM ( + CAST ( - 33 AS INTEGER ) )
----
-1188

query I rowsort
SELECT DISTINCT 33 * - 28 + 13 AS col2
----
-911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT DISTINCT NULLIF ( - 82, - + ( - 45 ) ) * 10 + - 50 + + - 62 + 67 * + CAST( - - 48 AS SIGNED ) + 83
----
2367

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT NULLIF ( - 82, - + ( - 45 ) ) * 10 + - 50 + + - 62 + 67 * + CAST ( - - 48 AS INTEGER ) + 83
----
2367

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

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

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

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

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

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

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

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

query II rowsort
SELECT 45, - 3 AS col2
----
45
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL 4 + - + CAST( NULL AS SIGNED ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL 4 + - + CAST ( NULL AS INTEGER ) * + 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT + 10 + CAST( NULL AS SIGNED ) * + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 10 + CAST ( NULL AS INTEGER ) * + + 14
----
NULL

query I rowsort
SELECT DISTINCT - 17 * + - 92
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + 86 + COUNT( * ) / - CASE + 64 WHEN + - 85 THEN + - COUNT( * ) + 36 WHEN - 57 THEN 52 + + COUNT( * ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 86 + COUNT ( * ) / - CASE + 64 WHEN + - 85 THEN + - COUNT ( * ) + 36 WHEN - 57 THEN 52 + + COUNT ( * ) * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 45 * + 23 AS col2
----
1035

query I rowsort
SELECT 89 + - - 92 * + 93 AS col2
----
8645

query II rowsort
SELECT 40 AS col0, 69 + - 66 * 90
----
40
-5871

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT MIN( ALL + 1 ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-7697
SELECT MIN ( ALL + 1 ) + 31
----
32

query I rowsort
SELECT 2 * 76
----
152

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT ALL - 67 * - - 95 * - + 7 * - MAX( ALL + 40 ) * - + 90 + - 51, - 90 * - 83 col1
----
160397949
7470

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL - 67 * - - 95 * - + 7 * - MAX ( ALL + 40 ) * - + 90 + - 51, - 90 * - 83 col1
----
160397949
7470

query I rowsort
SELECT COALESCE ( + 51, - - 0 + 57 ) + + 26 AS col1
----
77

query II rowsort
SELECT ALL - 10 col1, - 39 AS col0
----
-10
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT MAX( + ( + ( + 73 ) ) ) * + 52 * - 28 AS col2, 20 * - + 52 + - 64
----
-106288
-1104

skipif mysql # not compatible
query II rowsort label-7703
SELECT MAX ( + ( + ( + 73 ) ) ) * + 52 * - 28 AS col2, 20 * - + 52 + - 64
----
-106288
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT NULLIF ( SUM( DISTINCT 61 ), 94 * - + 82 ) * - 99 * - + 12 * 1 - + 66 * - 54 AS col2
----
76032

skipif mysql # not compatible
query I rowsort label-7704
SELECT NULLIF ( SUM ( DISTINCT 61 ), 94 * - + 82 ) * - 99 * - + 12 * 1 - + 66 * - 54 AS col2
----
76032

query II rowsort
SELECT 18 AS col2, 62 + - - 52 AS col2
----
18
114

query I rowsort
SELECT DISTINCT - 74 + 35 - - + 79 AS col2
----
40

query I rowsort
SELECT 91 * - ( + NULLIF ( - 3, - 84 ) )
----
273

query I rowsort
SELECT + 24 - + - 36 * 75
----
2724

query II rowsort
SELECT ALL - + 63, 39 AS col0
----
-63
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT ALL + 66 + 31 DIV - MAX( ALL + 29 ) + + CASE - 90 WHEN + COUNT( * ) + 81 THEN NULL ELSE + - 52 END AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + 66 + 31 / - MAX ( ALL + 29 ) + + CASE - 90 WHEN + COUNT ( * ) + 81 THEN NULL ELSE + - 52 END AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT 46 + + + 70 + 97 - - 66 + 56 * - + CASE - SUM( ALL 88 ) WHEN + COUNT( * ) * + 55 + 13 + ( + 68 ) + - - ( 3 ) * - 48 * - 0 * + + 72 - + 0 THEN + 1 + 10 * - COUNT( * ) ELSE NULL END + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT 46 + + + 70 + 97 - - 66 + 56 * - + CASE - SUM ( ALL 88 ) WHEN + COUNT ( * ) * + 55 + 13 + ( + 68 ) + - - ( 3 ) * - 48 * - 0 * + + 72 - + 0 THEN + 1 + 10 * - COUNT ( * ) ELSE NULL END + - 18
----
NULL

query II rowsort
SELECT ALL 5 + + 39, - 77 * CASE - + 68 WHEN - COALESCE ( + 47, - 12 * 29 ) THEN + 10 * + 11 + - 69 + + - 67 WHEN + 4 + - + 3 * + 47 THEN 88 END * 83 + + ( - 18 ) AS col1
----
44
NULL

query I rowsort
SELECT 93 * - - ( 27 )
----
2511

query I rowsort
SELECT 67 + - 48
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7715
SELECT DISTINCT + 77 DIV - - 96 AS col2, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7715
SELECT DISTINCT + 77 / - - 96 AS col2, CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 12 - + + 97 AS col0
----
-85

query I rowsort
SELECT 92 * - 70
----
-6440

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT ALL - NULLIF ( + + 2, + 22 ) * + - 72 DIV 18 + - 43
----
-35

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL - NULLIF ( + + 2, + 22 ) * + - 72 / 18 + - 43
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + CASE 87 WHEN ( MAX( DISTINCT 4 ) ) - MAX( DISTINCT 61 ) THEN - 25 END + CASE - CASE WHEN ( NULL ) <= + + 17 THEN + MAX( 15 ) ELSE NULL END WHEN - + 65 THEN - 49 ELSE + - 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT + CASE 87 WHEN ( MAX ( DISTINCT 4 ) ) - MAX ( DISTINCT 61 ) THEN - 25 END + CASE - CASE WHEN ( NULL ) <= + + 17 THEN + MAX ( 15 ) ELSE NULL END WHEN - + 65 THEN - 49 ELSE + - 17 END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - - 47 * - - 86
----
4042

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT - 14 - + 41 - - COUNT( * ) AS col0, + 65
----
-54
65

skipif mysql # not compatible
query II rowsort label-7722
SELECT - 14 - + 41 - - COUNT ( * ) AS col0, + 65
----
-54
65

query I rowsort
SELECT - 89 * ( 73 ) AS col2
----
-6497

query I rowsort
SELECT DISTINCT + + 45 * + 74 + 87
----
3417

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT - 51 DIV + 40 + + + ( 63 )
----
62

skipif mysql # not compatible
query I rowsort label-7725
SELECT - 51 / + 40 + + + ( 63 )
----
62

query I rowsort
SELECT ALL - + 43 + 53 * - - 71 * - 17
----
-64014

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - ( COALESCE ( + COUNT( * ), - ( - - 35 ) * 30 * + + 52 * ( - + 75 ) * COUNT( * ) * + 56 + 44 + + 15 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7727
SELECT - ( COALESCE ( + COUNT ( * ), - ( - - 35 ) * 30 * + + 52 * ( - + 75 ) * COUNT ( * ) * + 56 + 44 + + 15 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT MIN( 26 ) * + 97 - 18 * + ( + COUNT( * ) ) AS col0
----
2504

skipif mysql # not compatible
query I rowsort label-7728
SELECT MIN ( 26 ) * + 97 - 18 * + ( + COUNT ( * ) ) AS col0
----
2504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT + + 27 * - 28 - CAST( NULL AS SIGNED ) + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT + + 27 * - 28 - CAST ( NULL AS INTEGER ) + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT + + MAX( ALL 83 ) col2, - 49 * + COALESCE ( 44, COUNT( DISTINCT - + 75 ) + 76 * + + 56, 56 )
----
83
-2156

skipif mysql # not compatible
query II rowsort label-7730
SELECT + + MAX ( ALL 83 ) col2, - 49 * + COALESCE ( 44, COUNT ( DISTINCT - + 75 ) + 76 * + + 56, 56 )
----
83
-2156

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

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

query II rowsort
SELECT ALL 74 + + - 86 AS col1, 62
----
-12
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7733
SELECT ALL - CAST( NULLIF ( + + 24, + 62 + + ( + - 38 ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - CAST ( NULLIF ( + + 24, + 62 + + ( + - 38 ) ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT DISTINCT - 53 + - 18 DIV + 49
----
-53

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - 53 + - 18 / + 49
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT ALL - COUNT( * ), + 64 + - - 25 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL - COUNT ( * ), + 64 + - - 25 AS col2
----
-1
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT 46 + COUNT( * ) DIV - 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT 46 + COUNT ( * ) / - 45 AS col2
----
46

query I rowsort
SELECT ALL 5 + + 41 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + COUNT( + 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7738
SELECT + COUNT ( + 65 ) AS col0
----
1

query I rowsort
SELECT ALL 87 - - 94
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7740
SELECT 84, ( - - COUNT( * ) ) DIV - - 77 AS col2
----
84
0

skipif mysql # not compatible
query II rowsort label-7740
SELECT 84, ( - - COUNT ( * ) ) / - - 77 AS col2
----
84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT SUM( DISTINCT - 96 ) * + ( + - COUNT( * ) ) col2
----
96

skipif mysql # not compatible
query I rowsort label-7741
SELECT SUM ( DISTINCT - 96 ) * + ( + - COUNT ( * ) ) col2
----
96

query II rowsort
SELECT - 16, ( - 25 ) col0
----
-16
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL COUNT( * ) - + SUM( ALL 90 ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL COUNT ( * ) - + SUM ( ALL 90 ) col1
----
-89

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

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

query I rowsort
SELECT - 39 * 82 AS col2
----
-3198

query I rowsort
SELECT + 27 + + - 54 - - 25 * - + COALESCE ( ( - 99 ), 18 + - 99 ) * 85 AS col1
----
210348

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - CASE - + 17 WHEN - - 89 * + MAX( - ( - + 30 ) ) + + ( - - 82 ) * 72 THEN + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT - CASE - + 17 WHEN - - 89 * + MAX ( - ( - + 30 ) ) + + ( - - 82 ) * 72 THEN + 90 END
----
NULL

query II rowsort
SELECT 78, 14 * + + 14 * + 41 AS col2
----
78
8036

query I rowsort
SELECT - 97 + 35
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT MAX( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7750
SELECT MAX ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + 76 * - CASE - + 14 WHEN - 12 THEN NULL WHEN - - 10 THEN + 88 END * 59 + - 71 + - COUNT( * ) + - + 95 + + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT + 76 * - CASE - + 14 WHEN - 12 THEN NULL WHEN - - 10 THEN + 88 END * 59 + - 71 + - COUNT ( * ) + - + 95 + + + 6 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7752
SELECT - COUNT ( * ) + ( CAST ( - 35 AS INTEGER ) )
----
-36

query I rowsort
SELECT + 90 * - 35
----
-3150

query I rowsort
SELECT - 59 + - 39
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT + CASE + NULLIF ( + 96, COUNT( * ) ) WHEN + + 66 THEN - - 3 WHEN + 40 * + 28 * - - 99 * + - 23 + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + CASE + NULLIF ( + 96, COUNT ( * ) ) WHEN + + 66 THEN - - 3 WHEN + 40 * + 28 * - - 99 * + - 23 + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7756
SELECT DISTINCT CASE - 98 WHEN SUM( ALL + 92 ) * + CAST( + CAST( - 25 AS SIGNED ) AS SIGNED ) THEN COUNT( * ) WHEN - 36 THEN NULL END + + 45 * - 79 AS col0, - 93 * + 42 col0
----
NULL
-3906

skipif mysql # not compatible
query II rowsort label-7756
SELECT DISTINCT CASE - 98 WHEN SUM ( ALL + 92 ) * + CAST ( + CAST ( - 25 AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) WHEN - 36 THEN NULL END + + 45 * - 79 AS col0, - 93 * + 42 col0
----
NULL
-3906

query I rowsort
SELECT ALL + 85 + - 10
----
75

query I rowsort
SELECT - - 79 * 55 col1
----
4345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT DISTINCT + + 78 + + - CAST( - 75 AS SIGNED )
----
153

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + + 78 + + - CAST ( - 75 AS INTEGER )
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7760
SELECT + 23 AS col2, 30 * COUNT( * ) DIV 97 AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-7760
SELECT + 23 AS col2, 30 * COUNT ( * ) / 97 AS col1
----
23
0

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

query II rowsort
SELECT ALL - 16 * + - 36 + + + 15 AS col2, 11 AS col0
----
591
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7764
SELECT ALL SUM( DISTINCT + 33 ) DIV - - 52 * + - COUNT( * ) AS col0, 51 * - + 72 * + + COUNT( * ), - 7 - COUNT( * ) * - 92 AS col0
----
0
-3672
85

skipif mysql # not compatible
query III rowsort label-7764
SELECT ALL SUM ( DISTINCT + 33 ) / - - 52 * + - COUNT ( * ) AS col0, 51 * - + 72 * + + COUNT ( * ), - 7 - COUNT ( * ) * - 92 AS col0
----
0
-3672
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL 90 * 58 * + 41 * - COUNT( * ) - + 12 AS col2
----
-214032

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL 90 * 58 * + 41 * - COUNT ( * ) - + 12 AS col2
----
-214032

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT + 94 DIV 14
----
6

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT + 94 / 14
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL + 69 * COUNT( DISTINCT 76 ) - - - 42 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + 69 * COUNT ( DISTINCT 76 ) - - - 42 / + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - 76 * + 99
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT - 64 + COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7771
SELECT - 64 + COUNT ( * ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-7772
SELECT + 70 DIV 35 AS col0, + 5 * NULLIF ( 45, 26 ) AS col2
----
2
225

skipif mysql # not compatible
query II rowsort label-7772
SELECT + 70 / 35 AS col0, + 5 * NULLIF ( 45, 26 ) AS col2
----
2
225

query I rowsort
SELECT - 81 * 13 AS col1
----
-1053

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

skipif mysql # not compatible
query I rowsort label-7774
SELECT + COUNT ( * ) * - 2 + 33 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT + COUNT( DISTINCT 79 ) col0, + 2
----
1
2

skipif mysql # not compatible
query II rowsort label-7775
SELECT + COUNT ( DISTINCT 79 ) col0, + 2
----
1
2

query I rowsort
SELECT + 63 + - 5 AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT + ( 30 ) AS col0, + MIN( - 34 ) * - 25 col0
----
30
850

skipif mysql # not compatible
query II rowsort label-7777
SELECT + ( 30 ) AS col0, + MIN ( - 34 ) * - 25 col0
----
30
850

query I rowsort
SELECT + 10 - 75
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + 86 - - + COUNT( * ) * + MAX( + 65 ) * + - 3 col0
----
-109

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 86 - - + COUNT ( * ) * + MAX ( + 65 ) * + - 3 col0
----
-109

query I rowsort
SELECT + 80 * 86
----
6880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT - CAST( - 1 AS SIGNED ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-7781
SELECT - CAST ( - 1 AS INTEGER ) * - 74
----
-74

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7784
SELECT MAX ( - + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + COUNT( * ) - 6
----
-5

skipif mysql # not compatible
query I rowsort label-7785
SELECT + COUNT ( * ) - 6
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7786
SELECT ALL COUNT( * ) * + COUNT( * ) + 74 + COUNT( * ) * - 74 * + CASE + COALESCE ( - 86, + COUNT( * ), + CASE - - CAST( NULL AS SIGNED ) WHEN 12 - - COUNT( * ) + + ( - NULLIF ( - 1, + 75 ) ) + - 56 * + COUNT( * ) DIV - 57 THEN + COALESCE ( - + 62, CASE WHEN + 76 IS NULL THEN - + 86 + - SUM( DISTINCT + 98 ) * - + COALESCE ( 2, + 29 ) * + 27 END, COALESCE ( - 87, - COUNT( * ) * + MAX( 33 * + 59 ), + 72 ) ) WHEN 79 * CASE COUNT( * ) WHEN ( - 86 ) THEN + 64 - + 36 WHEN + 3 THEN 70 ELSE NULL END + CASE + 69 WHEN 23 DIV + 29 + + 79 * + 88 THEN + 42 WHEN - 93 THEN NULL END THEN NULL END, COUNT( * ) DIV 71 + - MAX( ALL 44 ) ) WHEN - 97 THEN NULL ELSE MIN( ALL 4 ) DIV + NULLIF ( + 4, CASE + 86 WHEN + COUNT( * ) THEN - 87 - 30 * - NULLIF ( MAX( 19 ) * - 99, + 99 ) WHEN + CASE - 51 WHEN ( 95 ) THEN ( + 0 ) + - 89 WHEN + 12 THEN ( 90 ) END THEN 44 ELSE NULL END ) END * 96 * 36
----
-255669

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 74 + COUNT ( * ) * - 74 * + CASE + COALESCE ( - 86, + COUNT ( * ), + CASE - - CAST ( NULL AS INTEGER ) WHEN 12 - - COUNT ( * ) + + ( - NULLIF ( - 1, + 75 ) ) + - 56 * + COUNT ( * ) / - 57 THEN + COALESCE ( - + 62, CASE WHEN + 76 IS NULL THEN - + 86 + - SUM ( DISTINCT + 98 ) * - + COALESCE ( 2, + 29 ) * + 27 END, COALESCE ( - 87, - COUNT ( * ) * + MAX ( 33 * + 59 ), + 72 ) ) WHEN 79 * CASE COUNT ( * ) WHEN ( - 86 ) THEN + 64 - + 36 WHEN + 3 THEN 70 ELSE NULL END + CASE + 69 WHEN 23 / + 29 + + 79 * + 88 THEN + 42 WHEN - 93 THEN NULL END THEN NULL END, COUNT ( * ) / 71 + - MAX ( ALL 44 ) ) WHEN - 97 THEN NULL ELSE MIN ( ALL 4 ) / + NULLIF ( + 4, CASE + 86 WHEN + COUNT ( * ) THEN - 87 - 30 * - NULLIF ( MAX ( 19 ) * - 99, + 99 ) WHEN + CASE - 51 WHEN ( 95 ) THEN ( + 0 ) + - 89 WHEN + 12 THEN ( 90 ) END THEN 44 ELSE NULL END ) END * 96 * 36
----
-255669

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7787
SELECT + + SUM( + CAST( NULL AS DECIMAL ) ) * + - MIN( ALL - + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT + + SUM ( + CAST ( NULL AS REAL ) ) * + - MIN ( ALL - + 91 )
----
NULL

query I rowsort
SELECT DISTINCT 22 * 96 AS col0
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7789
SELECT ALL + COALESCE ( - + SUM( - - CAST( NULL AS SIGNED ) ), + - COUNT( * ) + + 28 + - 73 * + - 14 ) * COALESCE ( ( - 14 ), - 80 ) + - 18 * COUNT( * ) DIV + 82 AS col2
----
-14686

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + COALESCE ( - + SUM ( - - CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) + + 28 + - 73 * + - 14 ) * COALESCE ( ( - 14 ), - 80 ) + - 18 * COUNT ( * ) / + 82 AS col2
----
-14686

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + NULLIF ( 34, + ( MAX( ALL - + 31 ) ) ) * + 42 * ( - + COUNT( * ) ) AS col2
----
-1428

skipif mysql # not compatible
query I rowsort label-7790
SELECT + NULLIF ( 34, + ( MAX ( ALL - + 31 ) ) ) * + 42 * ( - + COUNT ( * ) ) AS col2
----
-1428

query I rowsort
SELECT ALL - 97 + - - 47 * - - 32
----
1407

query I rowsort
SELECT + 33 - - 48 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT - + 67 * - + 54 * CAST( - 69 AS SIGNED ) AS col2
----
-249642

skipif mysql # not compatible
query I rowsort label-7793
SELECT - + 67 * - + 54 * CAST ( - 69 AS INTEGER ) AS col2
----
-249642

query I rowsort
SELECT ALL + + 75 + + ( - 86 ) * - 28 * 86 AS col1
----
207163

query I rowsort
SELECT + 79 * + 66 + 89 AS col1
----
5303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7796
SELECT ALL + CAST( + + 19 AS SIGNED ) AS col0, + 21
----
19
21

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL + CAST ( + + 19 AS INTEGER ) AS col0, + 21
----
19
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7797
SELECT ALL 83 / 75 - + 67 - - 66 + - CAST( NULL AS SIGNED ) + CASE - 55 WHEN 59 THEN + 57 WHEN + ( + 68 ) * + CAST( + + 1 AS SIGNED ) + + COALESCE ( 20, + - 33 ) * + 58 THEN NULL WHEN + + 84 + CAST( NULL AS DECIMAL ) + MAX( 56 ) * COALESCE ( + 85, + 8 ) + - MAX( + - 94 ) * + 53 THEN - 38 * - CAST( NULL AS SIGNED ) + - 84 * 28 END + COUNT( * ) * - NULLIF ( 94, 22 + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL 83 / 75 - + 67 - - 66 + - CAST ( NULL AS INTEGER ) + CASE - 55 WHEN 59 THEN + 57 WHEN + ( + 68 ) * + CAST ( + + 1 AS INTEGER ) + + COALESCE ( 20, + - 33 ) * + 58 THEN NULL WHEN + + 84 + CAST ( NULL AS REAL ) + MAX ( 56 ) * COALESCE ( + 85, + 8 ) + - MAX ( + - 94 ) * + 53 THEN - 38 * - CAST ( NULL AS INTEGER ) + - 84 * 28 END + COUNT ( * ) * - NULLIF ( 94, 22 + COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7798
SELECT - 4 DIV + NULLIF ( - COUNT( * ), - 3 ) + - + 20
----
-16

skipif mysql # not compatible
query I rowsort label-7798
SELECT - 4 / + NULLIF ( - COUNT ( * ), - 3 ) + - + 20
----
-16

query I rowsort
SELECT - 53 + + 13
----
-40

query I rowsort
SELECT ALL + 8 * 94
----
752

query I rowsort
SELECT 8 * - + 6 + - 44 AS col0
----
-92

query I rowsort
SELECT ALL - 72 - - 92 * 99 AS col0
----
9036

query I rowsort
SELECT 83 * - + 72 AS col1
----
-5976

query I rowsort
SELECT 18 * + 25 * + 68
----
30600

query I rowsort
SELECT 21 + + + 58
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT 9 * + - NULLIF ( - SUM( DISTINCT 73 ), 78 * - SUM( ALL - + 89 ) / - ( - + 93 ) - + - 41 * - 0 ) + - 30
----
627

skipif mysql # not compatible
query I rowsort label-7806
SELECT 9 * + - NULLIF ( - SUM ( DISTINCT 73 ), 78 * - SUM ( ALL - + 89 ) / - ( - + 93 ) - + - 41 * - 0 ) + - 30
----
627

query I rowsort
SELECT ALL - CASE + 15 WHEN 34 + - + ( - + 31 ) THEN - 56 + 18 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 98 + - + 20 AS col0
----
78

query I rowsort
SELECT DISTINCT - 28 * - - 60 * + - 47 AS col0
----
78960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7810
SELECT 60 AS col0, - COUNT( * ) DIV 29 AS col0
----
60
0

skipif mysql # not compatible
query II rowsort label-7810
SELECT 60 AS col0, - COUNT ( * ) / 29 AS col0
----
60
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT CAST( + + 50 AS SIGNED ) + - SUM( DISTINCT + 34 )
----
16

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT CAST ( + + 50 AS INTEGER ) + - SUM ( DISTINCT + 34 )
----
16

query I rowsort
SELECT ALL 11 + 72 + + 89 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT 74 + - COUNT( * ) + - + ( - COALESCE ( 96, - - COUNT( * ) ) )
----
169

skipif mysql # not compatible
query I rowsort label-7814
SELECT 74 + - COUNT ( * ) + - + ( - COALESCE ( 96, - - COUNT ( * ) ) )
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT DISTINCT CAST( CASE - 36 WHEN + COUNT( * ) THEN NULL WHEN + 69 THEN NULL ELSE - 47 END AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT CAST ( CASE - 36 WHEN + COUNT ( * ) THEN NULL WHEN + 69 THEN NULL ELSE - 47 END AS INTEGER )
----
-47

query II rowsort
SELECT ALL - 57 + 90 * - 75 + - ( + 4 ), 3 AS col0
----
-6811
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT 82 + 34 DIV - + ( + MAX( ALL + - CAST( - ( + + 82 ) AS SIGNED ) ) ) - - 87
----
169

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT 82 + 34 / - + ( + MAX ( ALL + - CAST ( - ( + + 82 ) AS INTEGER ) ) ) - - 87
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7818
SELECT ( AVG ( DISTINCT + 20 ) ) + + + 96 + 45 + + CASE CAST( NULL AS SIGNED ) WHEN - 35 / - - 26 * - 3 THEN NULL WHEN 20 + + - 63 * + 50 THEN NULL WHEN 14 + 4 + + - ( 32 ) / - - 15 + - 31 * + - 49 * - + COUNT( * ) + - 68 / 90 * 48 THEN COUNT( * ) + COUNT( * ) END AS col1, 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7818
SELECT ( AVG ( DISTINCT + 20 ) ) + + + 96 + 45 + + CASE CAST ( NULL AS INTEGER ) WHEN - 35 / - - 26 * - 3 THEN NULL WHEN 20 + + - 63 * + 50 THEN NULL WHEN 14 + 4 + + - ( 32 ) / - - 15 + - 31 * + - 49 * - + COUNT ( * ) + - 68 / 90 * 48 THEN COUNT ( * ) + COUNT ( * ) END AS col1, 9
----
NULL
9

query I rowsort
SELECT DISTINCT + 66 + 50 AS col2
----
116

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

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

query II rowsort
SELECT DISTINCT + 66 AS col2, - ( CASE + + ( - ( + AVG ( DISTINCT 96 ) ) ) WHEN - 98 THEN NULL WHEN 70 - + 94 THEN - + 50 + 65 - + 30 END )
----
66
NULL

query I rowsort
SELECT DISTINCT + 83 - - 43 * - - 78
----
3437

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

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL - 24 ) col1
----
24

query I rowsort
SELECT ALL - 50 - - 73 AS col1
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-7825
SELECT DISTINCT 53 AS col0, + COALESCE ( 59, + 81 ) + + - 87 + + - 35 DIV + 28
----
53
-29

skipif mysql # not compatible
query II rowsort label-7825
SELECT DISTINCT 53 AS col0, + COALESCE ( 59, + 81 ) + + - 87 + + - 35 / + 28
----
53
-29

query I rowsort
SELECT ALL + 81 * + + 34
----
2754

query I rowsort
SELECT DISTINCT 12 - + 61 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT 0 AS col1, + 10 + + + MAX( ALL 84 ) * - - 0
----
0
10

skipif mysql # not compatible
query II rowsort label-7828
SELECT 0 AS col1, + 10 + + + MAX ( ALL 84 ) * - - 0
----
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT ALL - 41, - 68 * + COUNT( * ) AS col1
----
-41
-68

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL - 41, - 68 * + COUNT ( * ) AS col1
----
-41
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT MIN( - - 39 ) DIV + + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT MIN ( - - 39 ) / + + 57 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7831
SELECT 18 / + COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT DISTINCT 70 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT 70 / - 85
----
0

query II rowsort
SELECT DISTINCT - 70 AS col0, - 74
----
-70
-74

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

query I rowsort
SELECT DISTINCT 34 + - 17
----
17

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

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

query I rowsort
SELECT 18 * + 30 AS col1
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT ALL 10 + - NULLIF ( - COALESCE ( - MAX( + - 38 ), - 31, - + COUNT( * ) + + 52 ), - 47 + 68 ) + 1 * 36 DIV - - 40 + + - 12
----
36

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 10 + - NULLIF ( - COALESCE ( - MAX ( + - 38 ), - 31, - + COUNT ( * ) + + 52 ), - 47 + 68 ) + 1 * 36 / - - 40 + + - 12
----
36

query II rowsort
SELECT 1 + + - 74, + 5 AS col2
----
-73
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - COALESCE ( - 92, - - COUNT( * ) ) * + + ( + 85 ) AS col1
----
7820

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - COALESCE ( - 92, - - COUNT ( * ) ) * + + ( + 85 ) AS col1
----
7820

query II rowsort
SELECT 32 AS col0, + 40 AS col2
----
32
40

query II rowsort
SELECT DISTINCT - 85 AS col2, - 42
----
-85
-42

query I rowsort
SELECT ALL + CASE - - 39 WHEN - - 93 THEN + 80 WHEN + + 16 * 11 + + + ( - 78 ) THEN NULL END + + - 98 col2
----
NULL

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

query I rowsort
SELECT 33 * - 80
----
-2640

query I rowsort
SELECT 36 - 33 + - - 88
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7847
SELECT ALL + 61 + COUNT( * ) + - 62 + + - CAST( NULL AS SIGNED ) + NULLIF ( + COUNT( * ), + - 3 ) * - CAST( NULL AS DECIMAL ) * + 58 * - 55 * + COUNT( * ) * + 48 * + COUNT( ALL + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + 61 + COUNT ( * ) + - 62 + + - CAST ( NULL AS INTEGER ) + NULLIF ( + COUNT ( * ), + - 3 ) * - CAST ( NULL AS REAL ) * + 58 * - 55 * + COUNT ( * ) * + 48 * + COUNT ( ALL + 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT ALL - 97 * + 77 * + 24 * + 3 * + 78 + + COUNT( * ) DIV - + 20
----
-41945904

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - 97 * + 77 * + 24 * + 3 * + 78 + + COUNT ( * ) / - + 20
----
-41945904

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - - MIN( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-7849
SELECT - - MIN ( 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT ALL + + COUNT( * ) * 46 - - COUNT( * ) - - COUNT( * ) DIV 83 - + ( 79 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + + COUNT ( * ) * 46 - - COUNT ( * ) - - COUNT ( * ) / 83 - + ( 79 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + 33 - + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7851
SELECT + 33 - + COUNT ( * ) AS col0
----
32

query II rowsort
SELECT - 30 AS col0, 85
----
-30
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - - 8 * - MAX( + + 48 ) AS col0
----
-384

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - - 8 * - MAX ( + + 48 ) AS col0
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - ( + - 20 ) - + - SUM( DISTINCT + 32 ) + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7854
SELECT - ( + - 20 ) - + - SUM ( DISTINCT + 32 ) + + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT - COALESCE ( 18, + 58 ) col1
----
-18

query I rowsort
SELECT ALL - - ( - + 44 ) * - + 8
----
352

query I rowsort
SELECT + NULLIF ( + 71, 34 * 80 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT CAST( 20 AS SIGNED ) + - SUM( + 77 )
----
-57

skipif mysql # not compatible
query I rowsort label-7858
SELECT CAST ( 20 AS INTEGER ) + - SUM ( + 77 )
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-7859
SELECT ALL 27 AS col1, + 71 DIV 98 AS col0
----
27
0

skipif mysql # not compatible
query II rowsort label-7859
SELECT ALL 27 AS col1, + 71 / 98 AS col0
----
27
0

query I rowsort
SELECT - 88 + 53
----
-35

query I rowsort
SELECT ALL 29 * - 65
----
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + COUNT( * ) + + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7862
SELECT + COUNT ( * ) + + 65 AS col0
----
66

query I rowsort
SELECT DISTINCT 75 * - + 71 AS col2
----
-5325

query I rowsort
SELECT DISTINCT 2 * 66 + - + 84 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL MAX( 73 ) * + COUNT( * ) + 79 col2
----
152

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL MAX ( 73 ) * + COUNT ( * ) + 79 col2
----
152

query I rowsort
SELECT + 63 + - - 14
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - 7 * - + 39 * + ( - + COUNT( - + 64 ) ) * - + 66 + - 73 + + 83
----
18028

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 7 * - + 39 * + ( - + COUNT ( - + 64 ) ) * - + 66 + - 73 + + 83
----
18028

query II rowsort
SELECT + 27 * + 86, + 66 AS col1
----
2322
66

query I rowsort
SELECT CASE - 47 WHEN - - 41 THEN + 85 ELSE 39 END AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7870
SELECT DISTINCT + 51 * 32 + - - 46 DIV - MAX( DISTINCT + 71 ) + + 47
----
1679

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + 51 * 32 + - - 46 / - MAX ( DISTINCT + 71 ) + + 47
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT MIN( - 33 ) * 79 + + ( - 41 ) * + - 36 * + - COUNT( * ) + + 85 * 6 AS col1
----
-3573

skipif mysql # not compatible
query I rowsort label-7871
SELECT MIN ( - 33 ) * 79 + + ( - 41 ) * + - 36 * + - COUNT ( * ) + + 85 * 6 AS col1
----
-3573

query I rowsort
SELECT ALL - 10 * + 68
----
-680

query I rowsort
SELECT DISTINCT - 68 * 70 AS col2
----
-4760

query II rowsort
SELECT + + 51 * + - 96 AS col2, + 15 * + - 18 * 68 * + ( + 59 )
----
-4896
-1083240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - COUNT( + - 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - COUNT ( + - 41 ) AS col2
----
-1

query I rowsort
SELECT + 56 * + NULLIF ( + 92, 53 + + + 87 ) * + + 47 - + 54 + + 31 * + 45
----
243485

query I rowsort
SELECT ALL NULLIF ( + + 64, + - CASE + - 13 WHEN NULLIF ( + + 46, + - 19 / + 5 - - + 1 - + 43 ) THEN - 94 END ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT DISTINCT - 63 - COUNT( * ) * + 96 * 28 * 98 - - 50 * + 75 * 3 - + COUNT( * ) * 48 AS col2, - 56
----
-252285
-56

skipif mysql # not compatible
query II rowsort label-7879
SELECT DISTINCT - 63 - COUNT ( * ) * + 96 * 28 * 98 - - 50 * + 75 * 3 - + COUNT ( * ) * 48 AS col2, - 56
----
-252285
-56

query I rowsort
SELECT DISTINCT 44 * 99 AS col1
----
4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7881
SELECT - - COALESCE ( - ( - 57 ), + CAST( 49 AS DECIMAL ) ) + CAST( NULL AS SIGNED ) + - NULLIF ( - - COUNT( - 31 ), - - 4 * - - 27 * ( + + 25 ) + + MIN( - 12 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT - - COALESCE ( - ( - 57 ), + CAST ( 49 AS REAL ) ) + CAST ( NULL AS INTEGER ) + - NULLIF ( - - COUNT ( - 31 ), - - 4 * - - 27 * ( + + 25 ) + + MIN ( - 12 ) ) col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT DISTINCT + + ( + 68 ) DIV - 54 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT + + ( + 68 ) / - 54 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7884
SELECT ALL + CAST( + + 87 AS SIGNED ) DIV - 7 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + CAST ( + + 87 AS INTEGER ) / - 7 AS col2
----
-12

query II rowsort
SELECT DISTINCT + - 51 * 9 AS col1, 72
----
-459
72

query I rowsort
SELECT - - 8 col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT + 31 + + CAST( + 56 AS SIGNED ) + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT + 31 + + CAST ( + 56 AS INTEGER ) + COUNT ( * ) AS col0
----
88

query I rowsort
SELECT DISTINCT - 59 * - - 14 * + 56 col0
----
-46256

query I rowsort
SELECT - 63 * + 22
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL - 90 DIV - - 47 + - 35
----
-36

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - 90 / - - 47 + - 35
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT CAST( 82 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7891
SELECT CAST ( 82 AS INTEGER ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7892
SELECT CAST( NULL AS SIGNED ) AS col1, - COALESCE ( - 63, + CAST( NULL AS SIGNED ) ) * + 93 + COUNT( * ) * + 66 * + 19 + - 28
----
NULL
7085

skipif mysql # not compatible
query II rowsort label-7892
SELECT CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( - 63, + CAST ( NULL AS INTEGER ) ) * + 93 + COUNT ( * ) * + 66 * + 19 + - 28
----
NULL
7085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT ALL - 74 DIV - COUNT( ALL - + 88 ) + - - 2 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - 74 / - COUNT ( ALL - + 88 ) + - - 2 AS col1
----
76

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) + - CASE + + 33 WHEN + ( + - 42 ) THEN + 12 + + 17 * 22 * - - 53 ELSE - COUNT( * ) * - 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - CASE + + 33 WHEN + ( + - 42 ) THEN + 12 + + 17 * 22 * - - 53 ELSE - COUNT ( * ) * - 43 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT 15 DIV - + 86 - - - 54 col0
----
-54

skipif mysql # not compatible
query I rowsort label-7896
SELECT 15 / - + 86 - - - 54 col0
----
-54

query II rowsort
SELECT ALL + 62, 87 col2
----
62
87

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

query I rowsort
SELECT ALL 9 * - 10 AS col2
----
-90

query II rowsort
SELECT DISTINCT + 10 AS col0, + 72 AS col2
----
10
72

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

query I rowsort
SELECT - 61 + 29
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT MIN( 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7903
SELECT MIN ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT CASE - CASE COUNT( * ) WHEN - 90 THEN - + 62 + 1 WHEN - 62 THEN 97 END WHEN - MAX( ALL + 41 ) / - - 36 + + + 22 THEN 77 * + - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT CASE - CASE COUNT ( * ) WHEN - 90 THEN - + 62 + 1 WHEN - 62 THEN 97 END WHEN - MAX ( ALL + 41 ) / - - 36 + + + 22 THEN 77 * + - 28 END
----
NULL

query II rowsort
SELECT DISTINCT + 38 AS col1, ( 1 ) AS col0
----
38
1

query I rowsort
SELECT ALL + 9 * 3 * - CASE - + 61 WHEN 83 THEN - 39 WHEN + + 18 * 74 + + 50 + - 22 + + 91 THEN NULL WHEN - 36 THEN - 54 + + 33 + 84 * + - 62 * - 11 * 87 END + 63 - 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT + - COUNT( * ) * + ( 94 ) AS col0, 28
----
-94
28

skipif mysql # not compatible
query II rowsort label-7907
SELECT + - COUNT ( * ) * + ( 94 ) AS col0, 28
----
-94
28

query I rowsort
SELECT - + 9 * 36 - 54
----
-378

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

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

query II rowsort
SELECT + 26 AS col0, + 56
----
26
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT + - ( + 44 ) + + COALESCE ( ( - + 42 ), 33, 6 * + - 25, - 44, + 57 DIV + 68 ) - 57 col1
----
-143

skipif mysql # not compatible
query I rowsort label-7911
SELECT + - ( + 44 ) + + COALESCE ( ( - + 42 ), 33, 6 * + - 25, - 44, + 57 / + 68 ) - 57 col1
----
-143

query I rowsort
SELECT + 90 * + 54 + - 91 AS col2
----
4769

query II rowsort
SELECT - + 13, - 47 * + + 79 col2
----
-13
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - SUM( DISTINCT 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - SUM ( DISTINCT 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT 78 * 20 + COUNT( + + 44 ) * + 95 AS col1
----
1655

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT 78 * 20 + COUNT ( + + 44 ) * + 95 AS col1
----
1655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT COUNT( * ) * - - COUNT( + - CAST( NULL AS SIGNED ) ) * - COALESCE ( + + 9, - - COUNT( * ), - 48 * + + CAST( - 33 AS SIGNED ) + + - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT COUNT ( * ) * - - COUNT ( + - CAST ( NULL AS INTEGER ) ) * - COALESCE ( + + 9, - - COUNT ( * ), - 48 * + + CAST ( - 33 AS INTEGER ) + + - 18 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT ALL + - 49 + NULLIF ( + 58, + 28 * - NULLIF ( + 89, + 9 - - 11 + 37 * + SUM( ALL - 1 ) ) )
----
9

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL + - 49 + NULLIF ( + 58, + 28 * - NULLIF ( + 89, + 9 - - 11 + 37 * + SUM ( ALL - 1 ) ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL CASE + AVG ( ( 89 ) ) WHEN + - 21 * - ( - - 6 ) THEN + COUNT( * ) * + COUNT( * ) * - - 54 * COUNT( * ) + - COUNT( * ) + - MIN( DISTINCT + 34 ) - + 73 * - 8 WHEN - 27 THEN - 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL CASE + AVG ( ( 89 ) ) WHEN + - 21 * - ( - - 6 ) THEN + COUNT ( * ) * + COUNT ( * ) * - - 54 * COUNT ( * ) + - COUNT ( * ) + - MIN ( DISTINCT + 34 ) - + 73 * - 8 WHEN - 27 THEN - 37 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 23 - + 3
----
20

query I rowsort
SELECT ALL + - 74 + + 4
----
-70

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

skipif mysql # not compatible
query I rowsort label-7921
SELECT - ( - - 97 ) * COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0, 54 AS col2
----
0
54

skipif mysql # not compatible
query II rowsort label-7922
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0, 54 AS col2
----
0
54

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

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT + COUNT ( * ) + - 98
----
-97

query I rowsort
SELECT 27 - - 19 + - 76 * - - 61 AS col1
----
-4590

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT DISTINCT + COALESCE ( - 15, + 7 * + + 85 * + + 94 ) DIV - 97 * ( + - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + COALESCE ( - 15, + 7 * + + 85 * + + 94 ) / - 97 * ( + - 82 )
----
0

query I rowsort
SELECT 37 - 83 * + + 35 AS col1
----
-2868

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - COUNT( + 32 ) + + + 77 - - 50 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - COUNT ( + 32 ) + + + 77 - - 50 AS col0
----
126

query I rowsort
SELECT 17 * - 80
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT 27 + + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7929
SELECT 27 + + COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - MIN( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - MIN ( + 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT 46 + + 67 + + 40 * - + 9 + + CAST( NULL AS SIGNED ) + + 76 / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT 46 + + 67 + + 40 * - + 9 + + CAST ( NULL AS INTEGER ) + + 76 / - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + ( - + ( + - SUM( 97 ) ) ) - - 67 - 86 * - - COUNT( * ) * - + 67
----
5926

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + ( - + ( + - SUM ( 97 ) ) ) - - 67 - 86 * - - COUNT ( * ) * - + 67
----
5926

query II rowsort
SELECT ALL - ( - 29 ) AS col1, 85
----
29
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + 61 * COUNT( * ) + 49 + + 25 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 61 * COUNT ( * ) + 49 + + 25 AS col2
----
135

query I rowsort
SELECT 42 * - 31
----
-1302

query I rowsort
SELECT + - ( 89 ) col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - CAST( 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7937
SELECT - CAST ( 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT - SUM( + - 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - SUM ( + - 49 ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT ALL ( 33 ) * - 49 + - 20 + + 56 DIV 86 AS col1
----
-1637

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL ( 33 ) * - 49 + - 20 + + 56 / 86 AS col1
----
-1637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7940
SELECT COUNT( * ) * 44 + + - 52 - - - 28 + + 65 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7940
SELECT COUNT ( * ) * 44 + + - 52 - - - 28 + + 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
29
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - 51 ) * + 92 + 98
----
4790

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ( - 80 ) + - 50 * - 46 + + COALESCE ( 86, ( - + 93 ) * - + 38, + - COUNT( * ) ) AS col2
----
2306

skipif mysql # not compatible
query I rowsort label-7945
SELECT ( - 80 ) + - 50 * - 46 + + COALESCE ( 86, ( - + 93 ) * - + 38, + - COUNT ( * ) ) AS col2
----
2306

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT DISTINCT - - CASE + + 9 WHEN + - 20 + COUNT( * ) + + + ( - 77 ) THEN - ( - COUNT( - 94 ) ) WHEN + - 56 THEN - 46 * + 51 WHEN 72 THEN 39 END, 69 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-7946
SELECT DISTINCT - - CASE + + 9 WHEN + - 20 + COUNT ( * ) + + + ( - 77 ) THEN - ( - COUNT ( - 94 ) ) WHEN + - 56 THEN - 46 * + 51 WHEN 72 THEN 39 END, 69 AS col1
----
NULL
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT + 41 DIV 27 * 97
----
97

skipif mysql # not compatible
query I rowsort label-7947
SELECT + 41 / 27 * 97
----
97

query II rowsort
SELECT 58 * 86 AS col0, 3 / CASE 35 WHEN - - 70 THEN - 18 WHEN + 19 + 17 THEN NULL END AS col0
----
4988
NULL

query I rowsort
SELECT ALL NULLIF ( - - 2, + + 23 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT DISTINCT 89 DIV 72 - + - 1
----
2

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT 89 / 72 - + - 1
----
2

query I rowsort
SELECT DISTINCT - - 67 + 28 AS col0
----
95

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7953
SELECT ALL 7 + - 60 AS col2, + 42 DIV - - 78 AS col1
----
-53
0

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL 7 + - 60 AS col2, + 42 / - - 78 AS col1
----
-53
0

query I rowsort
SELECT DISTINCT - 23 + - + 3 + + 88
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL 70 + - 3 * + COUNT( * ) + + 30
----
97

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL 70 + - 3 * + COUNT ( * ) + + 30
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( * ) + + 78
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ( + COUNT( * ) ) * - 58 + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7958
SELECT ( + COUNT ( * ) ) * - 58 + + COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL ( - + 50 ) + - COUNT( - - 67 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL ( - + 50 ) + - COUNT ( - - 67 ) AS col2
----
-51

query I rowsort
SELECT 46 + + - NULLIF ( 34, - 72 ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT ALL COUNT( * ) - + COALESCE ( - 29, 60 * + 20 * + COALESCE ( 70, 18, - 57 * 2 * - + 67 DIV - 49 ) + - - 47 )
----
30

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL COUNT ( * ) - + COALESCE ( - 29, 60 * + 20 * + COALESCE ( 70, 18, - 57 * 2 * - + 67 / - 49 ) + - - 47 )
----
30

query II rowsort
SELECT DISTINCT 8 AS col1, - ( - + 23 ) * 27
----
8
621

query I rowsort
SELECT DISTINCT 45 * ( + 77 ) * - 99 AS col1
----
-343035

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT - 69 - + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - 69 - + COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT 52 * - MAX( DISTINCT 52 ) AS col0
----
-2704

skipif mysql # not compatible
query I rowsort label-7965
SELECT 52 * - MAX ( DISTINCT 52 ) AS col0
----
-2704

query I rowsort
SELECT ( + 79 ) - 53
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT ALL - 61 DIV + 93 * + 14
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - 61 / + 93 * + 14
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + 9, - + NULLIF ( - + 60, ( 63 ) ) * 22 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT ALL - 52 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - 52 / - 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7970
SELECT 52 * COALESCE ( + 14, COUNT( * ) DIV COUNT( * ) ) AS col0, + ( - 52 ) AS col2
----
728
-52

skipif mysql # not compatible
query II rowsort label-7970
SELECT 52 * COALESCE ( + 14, COUNT ( * ) / COUNT ( * ) ) AS col0, + ( - 52 ) AS col2
----
728
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7972
SELECT ALL - - MAX( DISTINCT + CAST( - 57 AS SIGNED ) ) AS col2, + 63
----
-57
63

skipif mysql # not compatible
query II rowsort label-7972
SELECT ALL - - MAX ( DISTINCT + CAST ( - 57 AS INTEGER ) ) AS col2, + 63
----
-57
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT - + 20 * CASE - 27 WHEN + + 71 THEN NULL WHEN - 84 / - 59 * - 30 - CAST( 58 AS SIGNED ) THEN NULL ELSE 31 END + - - 90 AS col1
----
-530

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - + 20 * CASE - 27 WHEN + + 71 THEN NULL WHEN - 84 / - 59 * - 30 - CAST ( 58 AS INTEGER ) THEN NULL ELSE 31 END + - - 90 AS col1
----
-530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7974
SELECT DISTINCT - 85 * - MAX( DISTINCT + - 43 ) * - CAST( NULL AS SIGNED ) * 43, 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7974
SELECT DISTINCT - 85 * - MAX ( DISTINCT + - 43 ) * - CAST ( NULL AS INTEGER ) * 43, 44 AS col0
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL - NULLIF ( 85, + + MIN( - 31 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - NULLIF ( 85, + + MIN ( - 31 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7976
SELECT ALL - 57 * 47 * 52 * 31 + COUNT( + ( - 70 ) ) * - - 45 DIV + 35
----
-4318547

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - 57 * 47 * 52 * 31 + COUNT ( + ( - 70 ) ) * - - 45 / + 35
----
-4318547

query I rowsort
SELECT - + 63 + - 86 AS col2
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT + + CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7978
SELECT + + CAST ( 43 AS INTEGER ) AS col2
----
43

query I rowsort
SELECT - 12 * + 58
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT + - 93 * + 93 + + 82 * - ( + CAST( NULL AS SIGNED ) ) + + 93 / - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + - 93 * + 93 + + 82 * - ( + CAST ( NULL AS INTEGER ) ) + + 93 / - 7 AS col2
----
NULL

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

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

query I rowsort
SELECT + 95 + - 75 * - - 29 AS col1
----
-2080

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

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

query I rowsort
SELECT ALL + - 8 col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7985
SELECT ALL - 85 + + ( + - 88 ) - - CASE NULLIF ( - - 82, + NULLIF ( 34, + - ( - CAST( NULL AS SIGNED ) ) * - 97 - - 6 + + 39 ) ) WHEN NULLIF ( - 47, + 60 ) THEN - + CASE + - 78 WHEN - - 14 + 40 - + 93 * 96 + + 6 THEN NULL WHEN + COUNT( + 81 ) THEN NULL WHEN 53 THEN - - 4 + - 39 + + 2 * 77 * + - 84 DIV - 35 END WHEN 69 * + ( - CAST( NULL AS DECIMAL ) ) + 40 THEN NULL ELSE - 74 END * + 95 AS col2
----
-7203

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - 85 + + ( + - 88 ) - - CASE NULLIF ( - - 82, + NULLIF ( 34, + - ( - CAST ( NULL AS INTEGER ) ) * - 97 - - 6 + + 39 ) ) WHEN NULLIF ( - 47, + 60 ) THEN - + CASE + - 78 WHEN - - 14 + 40 - + 93 * 96 + + 6 THEN NULL WHEN + COUNT ( + 81 ) THEN NULL WHEN 53 THEN - - 4 + - 39 + + 2 * 77 * + - 84 / - 35 END WHEN 69 * + ( - CAST ( NULL AS REAL ) ) + 40 THEN NULL ELSE - 74 END * + 95 AS col2
----
-7203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL + - CASE + + 28 WHEN 18 * NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULLIF ( MAX( + - 63 ), - 11 - - - 94 / - 84 ) END
----
63

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + - CASE + + 28 WHEN 18 * NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULLIF ( MAX ( + - 63 ), - 11 - - - 94 / - 84 ) END
----
63

query I rowsort
SELECT DISTINCT 96 + - 19 + + 44 + + 2 * + ( - 44 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - 66 + - COALESCE ( + 39, - + COUNT( * ) )
----
-105

skipif mysql # not compatible
query I rowsort label-7988
SELECT - 66 + - COALESCE ( + 39, - + COUNT ( * ) )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL - CASE - 83 WHEN ( - 74 ) * 69 + - SUM( DISTINCT - 19 ) THEN NULL WHEN ( + + 18 ) / 19 * 91 THEN NULL ELSE 52 * - + 36 END AS col1
----
1872

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - CASE - 83 WHEN ( - 74 ) * 69 + - SUM ( DISTINCT - 19 ) THEN NULL WHEN ( + + 18 ) / 19 * 91 THEN NULL ELSE 52 * - + 36 END AS col1
----
1872

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

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

query I rowsort
SELECT + 41 * - 61 AS col2
----
-2501

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7992
SELECT + 58 DIV + 64 AS col2, - MIN( DISTINCT - + 62 ) DIV + - COUNT( + 47 )
----
0
-62

skipif mysql # not compatible
query II rowsort label-7992
SELECT + 58 / + 64 AS col2, - MIN ( DISTINCT - + 62 ) / + - COUNT ( + 47 )
----
0
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL COUNT( - + 94 ) - + 40 + + 62 * - 94 * - 18 + + + CAST( - 54 AS SIGNED )
----
104811

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL COUNT ( - + 94 ) - + 40 + + 62 * - 94 * - 18 + + + CAST ( - 54 AS INTEGER )
----
104811

query I rowsort
SELECT - 46 - + - 82 * + 60 * - 28 AS col2
----
-137806

query II rowsort
SELECT + 5 * 59, + 34 * + 68 AS col1
----
295
2312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL COALESCE ( - CAST( - - 83 AS SIGNED ), 3 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL COALESCE ( - CAST ( - - 83 AS INTEGER ), 3 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7997
SELECT + 22 - CAST( 45 AS SIGNED ) + + NULLIF ( - 66, - 88 + - COUNT( - 0 ) * 18 * 89 ) DIV - 78 * - 76 DIV + 3
----
-23

skipif mysql # not compatible
query I rowsort label-7997
SELECT + 22 - CAST ( 45 AS INTEGER ) + + NULLIF ( - 66, - 88 + - COUNT ( - 0 ) * 18 * 89 ) / - 78 * - 76 / + 3
----
-23

query I rowsort
SELECT ALL 4 - - 48
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL CASE 17 WHEN + 3 THEN NULL WHEN 9 * - - 47 + - 55 THEN NULL WHEN - - 45 THEN NULL ELSE + - MIN( + 60 ) DIV - + 8 + + + NULLIF ( - 50, + 85 * - - 2 DIV COUNT( - 76 ) ) END DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL CASE 17 WHEN + 3 THEN NULL WHEN 9 * - - 47 + - 55 THEN NULL WHEN - - 45 THEN NULL ELSE + - MIN ( + 60 ) / - + 8 + + + NULLIF ( - 50, + 85 * - - 2 / COUNT ( - 76 ) ) END / - 45
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT DISTINCT 9 AS col0, 99 * + 62 * COUNT( * ) + - - COUNT( * )
----
9
6139

skipif mysql # not compatible
query II rowsort label-8000
SELECT DISTINCT 9 AS col0, 99 * + 62 * COUNT ( * ) + - - COUNT ( * )
----
9
6139

query I rowsort
SELECT ALL 86 * 7
----
602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8002
SELECT - COALESCE ( 21, + 20 * + 73 * - - 16 + - COUNT( * ) + - 51 + 79 DIV - - 15 * - 54 + - 94 )
----
-21

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COALESCE ( 21, + 20 * + 73 * - - 16 + - COUNT ( * ) + - 51 + 79 / - - 15 * - 54 + - 94 )
----
-21

query I rowsort
SELECT + 62 + + 66 * 58 AS col1
----
3890

query I rowsort
SELECT + 68 - - - 4 AS col0
----
64

query I rowsort
SELECT + 39 + - NULLIF ( 24, 51 ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT MAX( ALL - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT MAX ( ALL - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL MAX( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL MAX ( 95 )
----
95

query II rowsort
SELECT ALL 83 AS col1, - 69 AS col0
----
83
-69

query II rowsort
SELECT + 94 AS col1, + 91 col0
----
94
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT + 96 DIV - + 29
----
-3

skipif mysql # not compatible
query I rowsort label-8010
SELECT + 96 / - + 29
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8012
SELECT DISTINCT + 48 * + MAX( DISTINCT 93 ) * 68 * - - COUNT( * ) + - - 47 + - 52, 7 * COUNT( 60 ) DIV + 50 AS col2
----
303547
0

skipif mysql # not compatible
query II rowsort label-8012
SELECT DISTINCT + 48 * + MAX ( DISTINCT 93 ) * 68 * - - COUNT ( * ) + - - 47 + - 52, 7 * COUNT ( 60 ) / + 50 AS col2
----
303547
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - 84 + + 64 + - 76 * + - COUNT( * ) col2
----
56

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 84 + + 64 + - 76 * + - COUNT ( * ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + + 42 * + MAX( 86 ) + + 99 AS col2
----
3711

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + + 42 * + MAX ( 86 ) + + 99 AS col2
----
3711

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL + + 6, - MAX( + 23 ) AS col0
----
6
-23

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL + + 6, - MAX ( + 23 ) AS col0
----
6
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT - + COUNT( * ) + - - 97 + 63 + 13 DIV - ( - - 45 ) * + + 65 - + + 57 * + - 93
----
5460

skipif mysql # not compatible
query I rowsort label-8016
SELECT - + COUNT ( * ) + - - 97 + 63 + 13 / - ( - - 45 ) * + + 65 - + + 57 * + - 93
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT - + CASE - + 79 WHEN 45 THEN 53 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT - + CASE - + 79 WHEN 45 THEN 53 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / - + 30 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8018
SELECT ALL + 70 * + MAX( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + 70 * + MAX ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT ALL + + ( + 70 ) AS col2, - COUNT( ALL - + 21 ) + - 16 AS col1
----
70
-17

skipif mysql # not compatible
query II rowsort label-8019
SELECT ALL + + ( + 70 ) AS col2, - COUNT ( ALL - + 21 ) + - 16 AS col1
----
70
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT + - 21 AS col2, + COALESCE ( + 83, - COUNT( DISTINCT - 18 ) )
----
-21
83

skipif mysql # not compatible
query II rowsort label-8020
SELECT + - 21 AS col2, + COALESCE ( + 83, - COUNT ( DISTINCT - 18 ) )
----
-21
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8021
SELECT ALL + + 3 AS col0, NULLIF ( - 65, + - ( - 91 ) * - 36 ) DIV + + 95 * + + MAX( + + 49 )
----
3
0

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL + + 3 AS col0, NULLIF ( - 65, + - ( - 91 ) * - 36 ) / + + 95 * + + MAX ( + + 49 )
----
3
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + COUNT( * ) + - + 16 * 9
----
-143

skipif mysql # not compatible
query I rowsort label-8023
SELECT + COUNT ( * ) + - + 16 * 9
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT + - 16 * + 4 * - CASE MAX( DISTINCT - 34 ) WHEN - SUM( ALL - 14 ) * + COUNT( * ) * CAST( + + 86 AS SIGNED ) THEN 98 END - + COUNT( DISTINCT + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - 16 * + 4 * - CASE MAX ( DISTINCT - 34 ) WHEN - SUM ( ALL - 14 ) * + COUNT ( * ) * CAST ( + + 86 AS INTEGER ) THEN 98 END - + COUNT ( DISTINCT + + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - 67 * + 69 + - + 25 * 83 * - ( - SUM( 46 ) ) * - - 99 + - 14 col0
----
-9454187

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 67 * + 69 + - + 25 * 83 * - ( - SUM ( 46 ) ) * - - 99 + - 14 col0
----
-9454187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT + + 58 * 64 - - - 38 * 97 - + CAST( - 65 AS SIGNED ) * - 97 AS col0
----
-6279

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + + 58 * 64 - - - 38 * 97 - + CAST ( - 65 AS INTEGER ) * - 97 AS col0
----
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL CAST( + COALESCE ( - 92, CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL CAST ( + COALESCE ( - 92, CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT DISTINCT - CASE 76 WHEN + - 90 * - ( 22 ) + + COUNT( * ) THEN NULL ELSE + + 28 * + 69 * 42 * + 66 END * CASE SUM( ALL + 23 ) WHEN - 31 / - - COUNT( * ) + - 86 THEN + 11 WHEN 61 THEN - + NULLIF ( - CASE 42 WHEN - 81 / 47 + COUNT( DISTINCT - CASE + + CAST( NULL AS SIGNED ) WHEN 43 + 89 THEN - + 22 END ) THEN 90 + - 41 ELSE NULL END, + + ( - - 54 ) ) WHEN + 89 THEN + ( - CAST( 60 AS SIGNED ) ) * 13 END - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - CASE 76 WHEN + - 90 * - ( 22 ) + + COUNT ( * ) THEN NULL ELSE + + 28 * + 69 * 42 * + 66 END * CASE SUM ( ALL + 23 ) WHEN - 31 / - - COUNT ( * ) + - 86 THEN + 11 WHEN 61 THEN - + NULLIF ( - CASE 42 WHEN - 81 / 47 + COUNT ( DISTINCT - CASE + + CAST ( NULL AS INTEGER ) WHEN 43 + 89 THEN - + 22 END ) THEN 90 + - 41 ELSE NULL END, + + ( - - 54 ) ) WHEN + 89 THEN + ( - CAST ( 60 AS INTEGER ) ) * 13 END - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT 12 * 20 - - COALESCE ( + COUNT( ALL + - 71 ), + CASE WHEN NULL IN ( 18, + 55 + - 33 + 52, + 88 ) THEN - COUNT( * ) - - - 45 * + 71 + 11 END )
----
241

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT 12 * 20 - - COALESCE ( + COUNT ( ALL + - 71 ), + CASE WHEN NULL IN ( 18, + 55 + - 33 + 52, + 88 ) THEN - COUNT ( * ) - - - 45 * + 71 + 11 END )
----
241

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT + 78 DIV 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + 78 / 59 AS col1
----
1

query I rowsort
SELECT ALL ( + COALESCE ( - + 57, + - 99 ) ) AS col0
----
-57

query I rowsort
SELECT - 45 * 64
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT + COUNT( ALL + 18 ) * COALESCE ( + COUNT( ALL 19 ), - + NULLIF ( 97, - 59 / + 87 ) + - ( 52 ) ) * 18 * + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 79 * ( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT + COUNT ( ALL + 18 ) * COALESCE ( + COUNT ( ALL 19 ), - + NULLIF ( 97, - 59 / + 87 ) + - ( 52 ) ) * 18 * + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 79 * ( + 83 )
----
NULL

query I rowsort
SELECT + 45 + - 9
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT - COUNT( * ) * - 39 AS col1, + 97 AS col0
----
39
97

skipif mysql # not compatible
query II rowsort label-8035
SELECT - COUNT ( * ) * - 39 AS col1, + 97 AS col0
----
39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + COALESCE ( - CASE 73 WHEN + 77 * - 39 THEN + + COUNT( * ) + + 75 WHEN + 39 * + - 80 + - + 24 * - COALESCE ( 36, + 84 ) - 63 * + 81 THEN NULL END, - + 42, 55, + + 14 ) + + + MAX( ALL 20 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8036
SELECT + COALESCE ( - CASE 73 WHEN + 77 * - 39 THEN + + COUNT ( * ) + + 75 WHEN + 39 * + - 80 + - + 24 * - COALESCE ( 36, + 84 ) - 63 * + 81 THEN NULL END, - + 42, 55, + + 14 ) + + + MAX ( ALL 20 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT - MIN( + 99 ) AS col1, COALESCE ( 63, - COUNT( * ) ) * - ( 6 ) * 25 + 17 AS col0
----
-99
-9433

skipif mysql # not compatible
query II rowsort label-8037
SELECT - MIN ( + 99 ) AS col1, COALESCE ( 63, - COUNT ( * ) ) * - ( 6 ) * 25 + 17 AS col0
----
-99
-9433

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT - 91 * 46 DIV 49 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 91 * 46 / 49 AS col0
----
-85

query I rowsort
SELECT ALL 3 + - 52 * - 48 + + 36
----
2535

onlyif mysql # DIV for integer division: 
query II rowsort label-8040
SELECT DISTINCT 62 DIV 46 AS col1, 76
----
1
76

skipif mysql # not compatible
query II rowsort label-8040
SELECT DISTINCT 62 / 46 AS col1, 76
----
1
76

query I rowsort
SELECT + ( 88 ) * ( 23 )
----
2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT ALL COUNT( 72 ) * 61 DIV MAX( 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL COUNT ( 72 ) * 61 / MAX ( 63 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL 55 + - ( + - MIN( 99 ) ) col0
----
154

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 55 + - ( + - MIN ( 99 ) ) col0
----
154

query I rowsort
SELECT + - 7 * ( - - 22 )
----
-154

query I rowsort
SELECT ALL 88 + + 25 AS col1
----
113

query II rowsort
SELECT ALL 1 + + 7 AS col2, - 84
----
8
-84

query I rowsort
SELECT ALL + 35 * ( - 36 ) + 79 AS col0
----
-1181

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + MIN( DISTINCT - 83 ) + - 97 + 13 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + MIN ( DISTINCT - 83 ) + - 97 + 13 AS col1
----
-167

query I rowsort
SELECT + 21 - + + ( - + 21 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT DISTINCT - + MAX( ALL - 78 ) col2, 35 AS col0
----
78
35

skipif mysql # not compatible
query II rowsort label-8050
SELECT DISTINCT - + MAX ( ALL - 78 ) col2, 35 AS col0
----
78
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8051
SELECT 36 * - - CASE + 61 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 51 END col0, 40 DIV - + 80
----
-1836
0

skipif mysql # not compatible
query II rowsort label-8051
SELECT 36 * - - CASE + 61 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 51 END col0, 40 / - + 80
----
-1836
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - 19 * + 53 + 92 + - - MAX( ALL + 17 ) * - 90 col1
----
-2445

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 19 * + 53 + 92 + - - MAX ( ALL + 17 ) * - 90 col1
----
-2445

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT 28 - + ( + SUM( ALL 44 ) ) * - - 39 - - - COUNT( * ) AS col0
----
-1689

skipif mysql # not compatible
query I rowsort label-8053
SELECT 28 - + ( + SUM ( ALL 44 ) ) * - - 39 - - - COUNT ( * ) AS col0
----
-1689

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT 15 * + COUNT( * ) AS col1, - 26 AS col1
----
15
-26

skipif mysql # not compatible
query II rowsort label-8054
SELECT 15 * + COUNT ( * ) AS col1, - 26 AS col1
----
15
-26

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8056
SELECT ALL - 92, - 4 DIV + + 8 + ( 14 ) col2
----
-92
14

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL - 92, - 4 / + + 8 + ( 14 ) col2
----
-92
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT 37 * + - CAST( + - 76 AS SIGNED ) AS col2
----
2812

skipif mysql # not compatible
query I rowsort label-8058
SELECT 37 * + - CAST ( + - 76 AS INTEGER ) AS col2
----
2812

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

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 55
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8061
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - 28 AS col1, - 20 AS col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 28 AS col1, - 20 AS col0
----
NULL
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT 20 DIV - 91 * + - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT 20 / - 91 * + - 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT 92 * + + 59 + + 62 + 26 * COUNT( * ) + - 7 AS col2, 13 * + 77 AS col2
----
5509
1001

skipif mysql # not compatible
query II rowsort label-8063
SELECT 92 * + + 59 + + 62 + 26 * COUNT ( * ) + - 7 AS col2, 13 * + 77 AS col2
----
5509
1001

query I rowsort
SELECT NULLIF ( + 92, + ( - 55 ) * - + 98 + - 54 + + 6 ) * 77
----
7084

query I rowsort
SELECT DISTINCT + 47 + + - 64 AS col1
----
-17

query I rowsort
SELECT ALL - 93 + + - 16 + - 48 * 34
----
-1741

query I rowsort
SELECT 52 - 20
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL + 30 + + 94 * - 42 * - 50 * - - 42 * + - ( + 49 ) * + ( 0 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + 30 + + 94 * - 42 * - 50 * - - 42 * + - ( + 49 ) * + ( 0 ) + + COUNT ( * )
----
31

query I rowsort
SELECT 61 - 18 + - 82
----
-39

query I rowsort
SELECT DISTINCT + 21 * 58 AS col2
----
1218

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT 80 * + NULLIF ( + MIN( DISTINCT 55 ), - 55 + + 52 + + + 60 ) AS col0
----
4400

skipif mysql # not compatible
query I rowsort label-8072
SELECT 80 * + NULLIF ( + MIN ( DISTINCT 55 ), - 55 + + 52 + + + 60 ) AS col0
----
4400

query I rowsort
SELECT ALL + 30 + 24 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 12 + - ( + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-8074
SELECT 12 + - ( + COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT + COUNT( * ) - + - 46
----
47

skipif mysql # not compatible
query I rowsort label-8075
SELECT + COUNT ( * ) - + - 46
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL + - CAST( NULL AS SIGNED ) * 7 * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + - CAST ( NULL AS INTEGER ) * 7 * + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - COALESCE ( - + COUNT( ALL + 60 ), + 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8077
SELECT - COALESCE ( - + COUNT ( ALL + 60 ), + 52 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8078
SELECT - 79, MAX( - CAST( 47 AS SIGNED ) ) + - 4 - + 41 AS col1
----
-79
-92

skipif mysql # not compatible
query II rowsort label-8078
SELECT - 79, MAX ( - CAST ( 47 AS INTEGER ) ) + - 4 - + 41 AS col1
----
-79
-92

query I rowsort
SELECT ALL - 14 + - - 12
----
-2

query I rowsort
SELECT 81 + - + 20 + 78 + - 85 AS col1
----
54

query I rowsort
SELECT DISTINCT - COALESCE ( - ( - 57 ), - - 22 ) AS col1
----
-57

query I rowsort
SELECT 73 + 63
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT 61 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-8083
SELECT 61 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + 41 * - 51 + + COUNT( * )
----
-2090

skipif mysql # not compatible
query I rowsort label-8084
SELECT + 41 * - 51 + + COUNT ( * )
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 85 * - + MIN( + + 48 ) AS col1
----
4080

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 85 * - + MIN ( + + 48 ) AS col1
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT 50 * + 82 * MAX( - 74 ) AS col0
----
-303400

skipif mysql # not compatible
query I rowsort label-8086
SELECT 50 * + 82 * MAX ( - 74 ) AS col0
----
-303400

query II rowsort
SELECT ALL - + 24 col1, 22
----
-24
22

query I rowsort
SELECT - CASE - 64 WHEN + 69 + + ( - + 5 ) + 30 / 29 THEN NULL WHEN - 58 THEN + + 80 END * 84 - + + 57 + + + 32 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT + ( ( + CAST( NULL AS SIGNED ) ) ) * + 49 + + 68 + + ( - 14 ) * 29 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT + ( ( + CAST ( NULL AS INTEGER ) ) ) * + 49 + + 68 + + ( - 14 ) * 29 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT COUNT( ALL - + 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8090
SELECT COUNT ( ALL - + 91 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - - 34 ) * 39 / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - - 34 ) * 39 / + 48 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8092
SELECT COUNT ( * ) * 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT ( 33 ) * 46 * + CASE - ( + 7 ) WHEN + 81 / - ( 87 ) + 2 + MAX( ALL 77 ) THEN NULL ELSE - + COALESCE ( + + 86, 25 ) END
----
-130548

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT ( 33 ) * 46 * + CASE - ( + 7 ) WHEN + 81 / - ( 87 ) + 2 + MAX ( ALL 77 ) THEN NULL ELSE - + COALESCE ( + + 86, 25 ) END
----
-130548

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

skipif mysql # not compatible
query I rowsort label-8094
SELECT CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 27 + - + 39 * + 79 + 86
----
-2968

query I rowsort
SELECT 36 * 6 col0
----
216

query I rowsort
SELECT DISTINCT 69 + + 21 + + 61 AS col0
----
151

onlyif mysql # aggregate syntax: 
query III rowsort label-8098
SELECT + 29 * - SUM( 52 ) + COUNT( * ) + - 41 AS col2, ( + 3 ), - 31 AS col0
----
-1548
3
-31

skipif mysql # not compatible
query III rowsort label-8098
SELECT + 29 * - SUM ( 52 ) + COUNT ( * ) + - 41 AS col2, ( + 3 ), - 31 AS col0
----
-1548
3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL 98 + CASE - ( - CASE 35 WHEN 24 / + + 24 * - - 5 THEN - 37 * - CASE 75 WHEN 38 THEN - - 74 WHEN + - 47 + + COUNT( * ) THEN NULL END * 56 END ) WHEN - ( + NULLIF ( 2, NULLIF ( - + COUNT( * ), + - 81 + + + 29 ) ) ) + - - NULLIF ( - 99, - 9 * + + 43 ) + - 17 THEN 85 * + + 3 + - + COUNT( * ) * 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL 98 + CASE - ( - CASE 35 WHEN 24 / + + 24 * - - 5 THEN - 37 * - CASE 75 WHEN 38 THEN - - 74 WHEN + - 47 + + COUNT ( * ) THEN NULL END * 56 END ) WHEN - ( + NULLIF ( 2, NULLIF ( - + COUNT ( * ), + - 81 + + + 29 ) ) ) + - - NULLIF ( - 99, - 9 * + + 43 ) + - 17 THEN 85 * + + 3 + - + COUNT ( * ) * 72 END
----
NULL

query I rowsort
SELECT 61 + 2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT ALL + COUNT( * ) + - CASE COALESCE ( + COUNT( * ), + 2 + CAST( NULL AS SIGNED ) / COUNT( * ) / - 72, ( 15 ) + COALESCE ( - ( + 91 ), CAST( NULL AS SIGNED ), - 94 * + 23 ) ) WHEN 75 + + 87 THEN + 91 WHEN 86 - - + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL + COUNT ( * ) + - CASE COALESCE ( + COUNT ( * ), + 2 + CAST ( NULL AS INTEGER ) / COUNT ( * ) / - 72, ( 15 ) + COALESCE ( - ( + 91 ), CAST ( NULL AS INTEGER ), - 94 * + 23 ) ) WHEN 75 + + 87 THEN + 91 WHEN 86 - - + COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ( 74 ) + - 36 col1
----
38

query I rowsort
SELECT ALL 91 + - 74 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT - 62 DIV 88 * 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT - 62 / 88 * 24 AS col2
----
0

query I rowsort
SELECT + 73 * + 44
----
3212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT - CAST( - - 45 AS SIGNED ) + 14 + + + CASE - - 55 WHEN - COUNT( * ) / + + ( ( - 41 ) ) THEN + 76 - + + 63 END * + 69 * - MIN( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT - CAST ( - - 45 AS INTEGER ) + 14 + + + CASE - - 55 WHEN - COUNT ( * ) / + + ( ( - 41 ) ) THEN + 76 - + + 63 END * + 69 * - MIN ( + 32 )
----
NULL

query I rowsort
SELECT - COALESCE ( - 81, - 80, + 27 ) col1
----
81

query I rowsort
SELECT - + 99 + 30 AS col1
----
-69

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

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

query II rowsort
SELECT - 36 + + 13 AS col0, + 35 AS col1
----
-23
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8111
SELECT - 76 * COALESCE ( - 10, COUNT( * ) + 7 ) / + + COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT - 76 * COALESCE ( - 10, COUNT ( * ) + 7 ) / + + COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL + 69 * - 96 AS col0
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - + 47 * 3 * + - SUM( ALL - ( + 76 ) )
----
-10716

skipif mysql # not compatible
query I rowsort label-8114
SELECT - + 47 * 3 * + - SUM ( ALL - ( + 76 ) )
----
-10716

query I rowsort
SELECT + - 77 - - 49 * 71 AS col1
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL - + 56 * - COUNT( * ) * - 19
----
-1064

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - + 56 * - COUNT ( * ) * - 19
----
-1064

query I rowsort
SELECT - 78 * - + 18 + + 39 * - 85
----
-1911

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

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

query I rowsort
SELECT - 19 - ( + 11 ) * + 96 AS col2
----
-1075

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT + 76 DIV + + 16
----
4

skipif mysql # not compatible
query I rowsort label-8120
SELECT + 76 / + + 16
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL + CAST( - 73 AS SIGNED ) AS col2
----
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT NULLIF ( COUNT( * ), 62 * - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8122
SELECT NULLIF ( COUNT ( * ), 62 * - 56 ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( - - 72, + 26 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + 22 * - + SUM( ( - 12 ) ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-8124
SELECT + 22 * - + SUM ( ( - 12 ) ) AS col2
----
264

query I rowsort
SELECT ALL 43 * 92 + - - ( - 26 ) * + 96
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL ( COUNT( * ) ) * - + 70 - + CAST( NULL AS SIGNED ) + 51 + - 59 - 65 + 69 * - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL ( COUNT ( * ) ) * - + 70 - + CAST ( NULL AS INTEGER ) + 51 + - 59 - 65 + 69 * - - 47
----
NULL

query I rowsort
SELECT DISTINCT 45 * - 73 * - 45
----
147825

query I rowsort
SELECT + 68 + 3 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT + 86 * + + CAST( + 15 AS SIGNED ) * - + 70
----
-90300

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 86 * + + CAST ( + 15 AS INTEGER ) * - + 70
----
-90300

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - MAX( ALL - - 0 ) + + COALESCE ( + 46, - - 16 )
----
46

skipif mysql # not compatible
query I rowsort label-8130
SELECT - MAX ( ALL - - 0 ) + + COALESCE ( + 46, - - 16 )
----
46

query I rowsort
SELECT - 32 * + 24
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT + 56 * - CASE + - 46 WHEN 86 THEN COUNT( * ) * - 34 END / + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT + 56 * - CASE + - 46 WHEN 86 THEN COUNT ( * ) * - 34 END / + 2 AS col2
----
NULL

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

query I rowsort
SELECT ALL 90 - 26
----
64

query I rowsort
SELECT + + NULLIF ( + - 52, + 97 ) - - 12 - + 47
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT - ( COALESCE ( COUNT( * ), COUNT( * ), - + 18 - + + 63 ) ) * - 3 + - 14 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - ( COALESCE ( COUNT ( * ), COUNT ( * ), - + 18 - + + 63 ) ) * - 3 + - 14 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT DISTINCT 39 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT 39 / 69 AS col2
----
0

query I rowsort
SELECT ALL - - 33 * - + NULLIF ( + 35, 27 ) * + + 94 AS col1
----
-108570

query I rowsort
SELECT ALL - 87 * + 45 AS col0
----
-3915

query I rowsort
SELECT + 96 * - + 25 + + 13 + - 28 * ( 90 )
----
-4907

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8141
SELECT + + COUNT ( * ) + COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - COUNT( * ) * - ( 74 ) * + - 1 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8142
SELECT - COUNT ( * ) * - ( 74 ) * + - 1 AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8143
SELECT ALL CAST( - ( - 39 ) AS SIGNED ) * + + 0 DIV + 5 - - 31 col2
----
31

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL CAST ( - ( - 39 ) AS INTEGER ) * + + 0 / + 5 - - 31 col2
----
31

query I rowsort
SELECT + 53 + 36
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT - 23 - + 58 + + 77 * 98 + + 73 AS col0, + 23 + SUM( DISTINCT - + 89 ) AS col0
----
7538
-66

skipif mysql # not compatible
query II rowsort label-8145
SELECT - 23 - + 58 + + 77 * 98 + + 73 AS col0, + 23 + SUM ( DISTINCT - + 89 ) AS col0
----
7538
-66

query I rowsort
SELECT + ( + 37 ) + - - 3 + + + ( + 55 ) + 39 + - 50 * - + 6 + - 63 - - 54 + 71 * + + 93 * + 4 col1
----
26837

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT ALL 87 AS col0, + ( - 11 ) * MIN( + + 88 ) * - + 14 + + 49 + + - 32 * 97
----
87
10497

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL 87 AS col0, + ( - 11 ) * MIN ( + + 88 ) * - + 14 + + 49 + + - 32 * 97
----
87
10497

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - - COUNT( * ) * 42 + + 36
----
78

skipif mysql # not compatible
query I rowsort label-8148
SELECT - - COUNT ( * ) * 42 + + 36
----
78

query I rowsort
SELECT - + 91 + - 71
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - 80 * + 85 + + COUNT( * ) * - 7
----
-6807

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - 80 * + 85 + + COUNT ( * ) * - 7
----
-6807

query I rowsort
SELECT - - 74 * + 51 AS col2
----
3774

query I rowsort
SELECT ALL + COALESCE ( + 71, + 42 ) AS col1
----
71

query I rowsort
SELECT DISTINCT + + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL - NULLIF ( - COUNT( * ), MIN( ALL + 47 ) ) * - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - NULLIF ( - COUNT ( * ), MIN ( ALL + 47 ) ) * - 47 AS col2
----
-47

query I rowsort
SELECT + 15 * + 19 + + 30
----
315

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8156
SELECT CAST( NULL AS DECIMAL ), 21 AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8156
SELECT CAST ( NULL AS REAL ), 21 AS col2
----
NULL
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8157
SELECT DISTINCT MAX( ALL - + 32 ) DIV 38 + - ( - - 64 ) + 54 * - 70 * 85
----
-321364

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT MAX ( ALL - + 32 ) / 38 + - ( - - 64 ) + 54 * - 70 * 85
----
-321364

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - 6 * - SUM( DISTINCT 7 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - 6 * - SUM ( DISTINCT 7 ) AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT - COUNT( * ) DIV 53 * + 43 * + SUM( - ( - - 69 ) ) * + COUNT( - ( - 89 ) ) DIV + ( + ( 40 ) ) DIV - COUNT( * ) + - - 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8159
SELECT - COUNT ( * ) / 53 * + 43 * + SUM ( - ( - - 69 ) ) * + COUNT ( - ( - 89 ) ) / + ( + ( 40 ) ) / - COUNT ( * ) + - - 88 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT ALL 80 DIV + + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL 80 / + + 53 AS col2
----
1

query II rowsort
SELECT ALL - 43 + - 95 AS col0, 69 AS col1
----
-138
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT 51 + + 39 DIV - + 8
----
47

skipif mysql # not compatible
query I rowsort label-8162
SELECT 51 + + 39 / - + 8
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT MAX( + + 63 ) * + 46 AS col1
----
2898

skipif mysql # not compatible
query I rowsort label-8163
SELECT MAX ( + + 63 ) * + 46 AS col1
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - 17 - - COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - 17 - - COUNT ( * ) col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8165
SELECT + 20 AS col1, + 0 * + CASE + 46 WHEN COUNT( DISTINCT + - 56 ) * - 74 - - + 60 + - 79 + + SUM( ALL 95 ) * AVG ( + 4 ) THEN + 9 END + 33 + + + COUNT( * )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-8165
SELECT + 20 AS col1, + 0 * + CASE + 46 WHEN COUNT ( DISTINCT + - 56 ) * - 74 - - + 60 + - 79 + + SUM ( ALL 95 ) * AVG ( + 4 ) THEN + 9 END + 33 + + + COUNT ( * )
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8166
SELECT 6 + + NULLIF ( - + CAST( NULL AS SIGNED ), MAX( ALL - - 1 ) * 68 ) AS col1, + 82 AS col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-8166
SELECT 6 + + NULLIF ( - + CAST ( NULL AS INTEGER ), MAX ( ALL - - 1 ) * 68 ) AS col1, + 82 AS col1
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL 38 - + - 8 * COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL 38 - + - 8 * COUNT ( * ) AS col0
----
46

query II rowsort
SELECT ALL - 45 AS col0, - 31
----
-45
-31

query I rowsort
SELECT + 82 * ( - 10 ) * - 74 + + 80 AS col2
----
60760

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

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

query I rowsort
SELECT + 71 + - 19 col0
----
52

query I rowsort
SELECT ALL 11 - - - ( + 59 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT 10 * - + 56 - 91 * + MAX( - + 28 ) AS col0
----
1988

skipif mysql # not compatible
query I rowsort label-8173
SELECT 10 * - + 56 - 91 * + MAX ( - + 28 ) AS col0
----
1988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + 21 + ( + ( + - SUM( 79 ) ) ) + + + CASE + - 98 WHEN MAX( DISTINCT + - 88 ) THEN + + MIN( ALL - - 6 ) / - COUNT( * ) WHEN - 0 THEN - 61 END / + 88 / - + 9 + + SUM( DISTINCT + 9 ) + - COUNT( * ) * - + 9 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT + 21 + ( + ( + - SUM ( 79 ) ) ) + + + CASE + - 98 WHEN MAX ( DISTINCT + - 88 ) THEN + + MIN ( ALL - - 6 ) / - COUNT ( * ) WHEN - 0 THEN - 61 END / + 88 / - + 9 + + SUM ( DISTINCT + 9 ) + - COUNT ( * ) * - + 9 * 89
----
NULL

query II rowsort
SELECT ALL 43, - ( - + 46 ) col0
----
43
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8177
SELECT - 55 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-8177
SELECT - 55 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-55
NULL

query I rowsort
SELECT ALL - 25 + 72
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8179
SELECT ( + CASE 17 WHEN - - 89 * CAST( NULL AS DECIMAL ) / + 50 * + NULLIF ( + ( 32 ), - 63 ) THEN + COUNT( * ) ELSE NULL END ), NULLIF ( - + CAST( NULL AS SIGNED ), MIN( + ( + 82 ) ) + + COALESCE ( - 21, 82 + - + COUNT( * ), 40 ) ) + - 41 + - + 1 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8179
SELECT ( + CASE 17 WHEN - - 89 * CAST ( NULL AS REAL ) / + 50 * + NULLIF ( + ( 32 ), - 63 ) THEN + COUNT ( * ) ELSE NULL END ), NULLIF ( - + CAST ( NULL AS INTEGER ), MIN ( + ( + 82 ) ) + + COALESCE ( - 21, 82 + - + COUNT ( * ), 40 ) ) + - 41 + - + 1 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 51 + 55 AS col0
----
106

query I rowsort
SELECT DISTINCT - ( + 95 ) * - 68 AS col1
----
6460

query II rowsort
SELECT DISTINCT 80 + - 80, - 0 * + 8 + 34 AS col2
----
0
34

query I rowsort
SELECT ALL 98 + + - 82
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT 75 * MIN( DISTINCT - 10 ) DIV + 57
----
-13

skipif mysql # not compatible
query I rowsort label-8184
SELECT 75 * MIN ( DISTINCT - 10 ) / + 57
----
-13

query I rowsort
SELECT ALL 11 + + 8 * + 40
----
331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + 48 + + CASE + + COUNT( * ) WHEN - - 9 + 89 THEN - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 48 + + CASE + + COUNT ( * ) WHEN - - 9 + 89 THEN - 28 END
----
NULL

query I rowsort
SELECT DISTINCT - 84 * + - 88 * - 84 AS col0
----
-620928

query I rowsort
SELECT ALL + 75 * 34 * 44
----
112200

query II rowsort
SELECT 55 + 81, 15 AS col0
----
136
15

query I rowsort
SELECT DISTINCT + 85 * - 69
----
-5865

query I rowsort
SELECT 0 * - 29 * - 69
----
0

query I rowsort
SELECT ALL + 67 * - 50
----
-3350

query I rowsort
SELECT DISTINCT + 58 * 44 * + - 64 AS col1
----
-163328

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT 90 * - ( + - NULLIF ( - ( - 53 ), 24 / + + ( - COUNT( * ) ) ) ) AS col0
----
4770

skipif mysql # not compatible
query I rowsort label-8196
SELECT 90 * - ( + - NULLIF ( - ( - 53 ), 24 / + + ( - COUNT ( * ) ) ) ) AS col0
----
4770

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

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

query I rowsort
SELECT - 69 * + - ( + - 25 )
----
-1725

query II rowsort
SELECT 94 * - 27 AS col1, + 47 * 46
----
-2538
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT 90 * + 18 + + MIN( ALL - + 49 ) * - 16
----
2404

skipif mysql # not compatible
query I rowsort label-8200
SELECT 90 * + 18 + + MIN ( ALL - + 49 ) * - 16
----
2404

query I rowsort
SELECT ALL + - 49 * - - 70
----
-3430

query I rowsort
SELECT ALL - 46 * - + 69 + - 84
----
3090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT 73 * CAST( + 94 AS SIGNED ) * + 70 + + - 17 + + 52 AS col0
----
480375

skipif mysql # not compatible
query I rowsort label-8203
SELECT 73 * CAST ( + 94 AS INTEGER ) * + 70 + + - 17 + + 52 AS col0
----
480375

query I rowsort
SELECT 4 - - + 9
----
13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT 50 + 92 * + CAST( 80 AS SIGNED ) - + COUNT( * ) + + + ( - COUNT( * ) ) * 33 + - COALESCE ( 13, + - 23 * - 66 - - CAST( + + 19 AS SIGNED ) * - COUNT( + + 98 ) )
----
7363

skipif mysql # not compatible
query I rowsort label-8206
SELECT 50 + 92 * + CAST ( 80 AS INTEGER ) - + COUNT ( * ) + + + ( - COUNT ( * ) ) * 33 + - COALESCE ( 13, + - 23 * - 66 - - CAST ( + + 19 AS INTEGER ) * - COUNT ( + + 98 ) )
----
7363

query I rowsort
SELECT - + COALESCE ( - 27, + 5, 28 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL - ( 71 ) + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - ( 71 ) + + COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT 30 + - 67 * + - ( - ( + 45 ) ) - + + 45 + - 21 AS col0
----
-3051

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + ( - 66 ) + + - 28 - + COUNT( * ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-8210
SELECT + ( - 66 ) + + - 28 - + COUNT ( * ) col2
----
-95

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

skipif mysql # not compatible
query I rowsort label-8211
SELECT ( + CAST ( NULL AS INTEGER ) ) - - AVG ( - - 75 ) + + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 + + - 93 AS col2
----
-71

query I rowsort
SELECT ALL + 28 + - + 23 + NULLIF ( - 51, 9 ) + + + 24 + - + 80 - - - 27 - 71 * - 53
----
3634

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT DISTINCT - MIN( - 78 ) + - 42, 32 AS col2
----
36
32

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT - MIN ( - 78 ) + - 42, 32 AS col2
----
36
32

query I rowsort
SELECT ALL 5 * - + 49
----
-245

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

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL 63 + - + COUNT ( * ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT ALL + COALESCE ( + 13, + 96 + - CASE - 9 WHEN - ( + - 40 ) THEN - - 94 DIV - 5 + - 65 END )
----
13

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + COALESCE ( + 13, + 96 + - CASE - 9 WHEN - ( + - 40 ) THEN - - 94 / - 5 + - 65 END )
----
13

query I rowsort
SELECT + 33 * + 60
----
1980

query I rowsort
SELECT + 27 * COALESCE ( + + 18, 26 )
----
486

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT NULLIF ( 44, + 17 * + COUNT( * ) * + 98 + 7 ), - 51 AS col1
----
44
-51

skipif mysql # not compatible
query II rowsort label-8221
SELECT NULLIF ( 44, + 17 * + COUNT ( * ) * + 98 + 7 ), - 51 AS col1
----
44
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + NULLIF ( + 42, + - 65 ) * + MAX( - 92 ) col1
----
-3864

skipif mysql # not compatible
query I rowsort label-8222
SELECT + NULLIF ( + 42, + - 65 ) * + MAX ( - 92 ) col1
----
-3864

query II rowsort
SELECT ALL + 61 AS col2, + 81
----
61
81

query I rowsort
SELECT - 49 * + + 22 + + - 23 AS col1
----
-1101

query I rowsort
SELECT DISTINCT + ( + 72 ) * - 94 + + 83 + 5 + + + 87 col1
----
-6593

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - + COUNT( * ) * - 70 + - 81 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8227
SELECT - + COUNT ( * ) * - 70 + - 81 AS col1
----
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT - + CAST( NULL AS SIGNED ) + + 77 * + + 0 / + 63 + + 79 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT - + CAST ( NULL AS INTEGER ) + + 77 * + + 0 / + 63 + + 79 * 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8230
SELECT - 89 + + NULLIF ( 95, + 10 ) - 83 - + 16 DIV + ( CAST( - MIN( - - 17 ) AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 89 + + NULLIF ( 95, + 10 ) - 83 - + 16 / + ( CAST ( - MIN ( - - 17 ) AS INTEGER ) )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - + 70 DIV 2 col0
----
-35

skipif mysql # not compatible
query I rowsort label-8231
SELECT - + 70 / 2 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL - + 52 * + 20 + 9 * + COUNT( * ) AS col0
----
-1031

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - + 52 * + 20 + 9 * + COUNT ( * ) AS col0
----
-1031

query I rowsort
SELECT - 42 * - 56 AS col0
----
2352

query I rowsort
SELECT DISTINCT 12 * 51 AS col0
----
612

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

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

query II rowsort
SELECT DISTINCT - + 72 + + 39 * - 34 col2, 0
----
-1398
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8237
SELECT DISTINCT + COUNT( - + 61 ) + 34 - - + CAST( NULL AS SIGNED ) * + COUNT( + + 17 ) + - + 31 - COUNT( * ) AS col1, + CASE ( - - 89 ) WHEN - - 17 THEN + 67 * - + 48 WHEN 92 THEN - 48 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8237
SELECT DISTINCT + COUNT ( - + 61 ) + 34 - - + CAST ( NULL AS INTEGER ) * + COUNT ( + + 17 ) + - + 31 - COUNT ( * ) AS col1, + CASE ( - - 89 ) WHEN - - 17 THEN + 67 * - + 48 WHEN 92 THEN - 48 END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - 92 + + 71 + + 95
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-8239
SELECT 41 AS col1, 59 DIV + 81 * 46
----
41
0

skipif mysql # not compatible
query II rowsort label-8239
SELECT 41 AS col1, 59 / + 81 * 46
----
41
0

query I rowsort
SELECT ALL + + 42 + 44 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT - - 43 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-8241
SELECT - - 43 / 23
----
1

query I rowsort
SELECT - + 37 + 30 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT ALL - - 30 DIV - + 21
----
-1

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - - 30 / - + 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL - ( + SUM( DISTINCT 18 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - ( + SUM ( DISTINCT 18 ) ) AS col1
----
-18

query I rowsort
SELECT + 19 + + 13 AS col2
----
32

query I rowsort
SELECT ALL 64 * - + 34 AS col0
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT - CASE + 48 WHEN + 19 THEN NULL ELSE + + SUM( NULLIF ( + 18, + NULLIF ( + - 25, 86 ) ) ) END * - COALESCE ( - - NULLIF ( COALESCE ( - - 28, + 58 ), + 93 * + 32 * + COALESCE ( 70, - ( + 36 ) ) + - 24 + - 56 + - SUM( ALL + 24 ) + - 58 / - 50 * + + 5 + + SUM( 29 ) ), + CAST( NULL AS SIGNED ) ) AS col2
----
504

skipif mysql # not compatible
query I rowsort label-8247
SELECT - CASE + 48 WHEN + 19 THEN NULL ELSE + + SUM ( NULLIF ( + 18, + NULLIF ( + - 25, 86 ) ) ) END * - COALESCE ( - - NULLIF ( COALESCE ( - - 28, + 58 ), + 93 * + 32 * + COALESCE ( 70, - ( + 36 ) ) + - 24 + - 56 + - SUM ( ALL + 24 ) + - 58 / - 50 * + + 5 + + SUM ( 29 ) ), + CAST ( NULL AS INTEGER ) ) AS col2
----
504

query I rowsort
SELECT DISTINCT ( + ( + - 30 ) ) AS col1
----
-30

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

skipif mysql # not compatible
query I rowsort label-8249
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 84 * - + NULLIF ( + + 76, - - 0 ) * - 86
----
549024

onlyif mysql # aggregate syntax: 
query II rowsort label-8251
SELECT - NULLIF ( + 85, 82 * + MAX( - + ( - + 30 ) ) ) - 97, + 41 * + 91 AS col2
----
-182
3731

skipif mysql # not compatible
query II rowsort label-8251
SELECT - NULLIF ( + 85, 82 * + MAX ( - + ( - + 30 ) ) ) - 97, + 41 * + 91 AS col2
----
-182
3731

query II rowsort
SELECT + 33 + 0, + 24 AS col2
----
33
24

query I rowsort
SELECT - 4 * + COALESCE ( - 49, + 72 )
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT ALL 15 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL 15 / + 83
----
0

query I rowsort
SELECT ALL + COALESCE ( + + 43, + 41, + - ( + 79 ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8256
SELECT + CASE WHEN 42 IS NOT NULL THEN - 9 * - CASE + 24 WHEN - + 77 * + 98 THEN - CAST( NULL AS SIGNED ) * + 16 END ELSE NULL END, COUNT( * ) * - - 46 col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8256
SELECT + CASE WHEN 42 IS NOT NULL THEN - 9 * - CASE + 24 WHEN - + 77 * + 98 THEN - CAST ( NULL AS INTEGER ) * + 16 END ELSE NULL END, COUNT ( * ) * - - 46 col1
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT ALL 68 * - CAST( NULL AS SIGNED ) * + MIN( ALL + 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 68 * - CAST ( NULL AS INTEGER ) * + MIN ( ALL + 49 ) AS col2
----
NULL

query I rowsort
SELECT + 73 * + - 16
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + COUNT( + ( - - 33 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8259
SELECT + COUNT ( + ( - - 33 ) ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - 20 + + - 4 + 71 * + NULLIF ( + 2, + - COUNT( DISTINCT 34 ) )
----
118

skipif mysql # not compatible
query I rowsort label-8261
SELECT - 20 + + - 4 + 71 * + NULLIF ( + 2, + - COUNT ( DISTINCT 34 ) )
----
118

query I rowsort
SELECT + 37 * - - 57 * + - ( + 63 ) AS col1
----
-132867

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + ( + 43 ) * + COUNT( * ) * 7 * 55
----
16555

skipif mysql # not compatible
query I rowsort label-8263
SELECT + ( + 43 ) * + COUNT ( * ) * 7 * 55
----
16555

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + 78 - - 13 + 84 * + COUNT( * ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-8264
SELECT + 78 - - 13 + 84 * + COUNT ( * ) AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + MIN( - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + MIN ( - 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT + - 9 * 92 + ( 50 ) + - 53
----
-831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT + - COUNT( * ) * + - 41 DIV - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - COUNT ( * ) * + - 41 / - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + + CASE + 55 WHEN + 38 THEN + 16 + + COUNT( * ) WHEN - SUM( + 46 ) + - + 68 * - 77 THEN + 25 - + 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + + CASE + 55 WHEN + 38 THEN + 16 + + COUNT ( * ) WHEN - SUM ( + 46 ) + - + 68 * - 77 THEN + 25 - + 31 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT ALL + 25 * + - 36 + + 25 + 83 + + 60 DIV 18 DIV - 37
----
-792

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + 25 * + - 36 + + 25 + 83 + + 60 / 18 / - 37
----
-792

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT - CAST( - 28 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8271
SELECT - CAST ( - 28 AS INTEGER ) AS col2
----
28

query I rowsort
SELECT + 20 + - + 42
----
-22

query I rowsort
SELECT + 34 + - 63
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT - 3 DIV - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 3 / - - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT + 53 * - - SUM( + - 84 ) - - 19 AS col1
----
-4433

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + 53 * - - SUM ( + - 84 ) - - 19 AS col1
----
-4433

query I rowsort
SELECT DISTINCT - ( + 58 ) * 8 AS col2
----
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8277
SELECT + - 6 + - 37 + + 73 + - CAST( - + 48 AS DECIMAL ) * + CAST( NULL AS SIGNED ) / + COUNT( * ) + + COUNT( * ) * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT + - 6 + - 37 + + 73 + - CAST ( - + 48 AS REAL ) * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + COUNT ( * ) * 88 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 94, 56 ) * + 67
----
6298

query I rowsort
SELECT ALL COALESCE ( 81, + 57 ) col1
----
81

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

skipif mysql # not compatible
query I rowsort label-8280
SELECT 74 + - - COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ( - 11 ) + - - 10 AS col1
----
-1

query III rowsort
SELECT 84 + + - ( - + 48 ) - - 53 + + 29 AS col0, + 14 AS col2, + 56
----
214
14
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT 90 DIV 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT 90 / 73 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8284
SELECT ALL - 44 DIV + NULLIF ( + - 28, + 70 ) * COUNT( * ) + 39 AS col1, - 16 * - 77 * + NULLIF ( 17, 81 ) * + 60
----
40
1256640

skipif mysql # not compatible
query II rowsort label-8284
SELECT ALL - 44 / + NULLIF ( + - 28, + 70 ) * COUNT ( * ) + 39 AS col1, - 16 * - 77 * + NULLIF ( 17, 81 ) * + 60
----
40
1256640

query I rowsort
SELECT 64 + 20 AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT - COUNT( * ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT - COUNT ( * ) / + 26
----
0

query I rowsort
SELECT 74 * + 56 * + 71
----
294224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8288
SELECT 9 + - + 38 * - 9 + + - 76 * CAST( NULL AS DECIMAL ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT 9 + - + 38 * - 9 + + - 76 * CAST ( NULL AS REAL ) * + 98
----
NULL

query I rowsort
SELECT 90 + + 31 AS col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT 99 + - 67 - - + COUNT( * ) + SUM( + + 99 ) + COUNT( * ) + 72 * - 32 + + + CAST( NULL AS SIGNED ) / - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT 99 + - 67 - - + COUNT ( * ) + SUM ( + + 99 ) + COUNT ( * ) + 72 * - 32 + + + CAST ( NULL AS INTEGER ) / - + 7
----
NULL

query I rowsort
SELECT 9 + + 2 AS col0
----
11

query I rowsort
SELECT 15 * + - 40 AS col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT - COUNT( * ) * + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT - COUNT ( * ) * + 12 AS col1
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + 40 * + COUNT( * ) + + 93 + - 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8295
SELECT + 40 * + COUNT ( * ) + + 93 + - 67 AS col0
----
66

query II rowsort
SELECT 99 * + ( 1 ) AS col1, - 93 * - 12 AS col1
----
99
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT 54 * - 62 + CAST( + 93 AS SIGNED ) * - 19 AS col1
----
-5115

skipif mysql # not compatible
query I rowsort label-8297
SELECT 54 * - 62 + CAST ( + 93 AS INTEGER ) * - 19 AS col1
----
-5115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL 26 + - - ( + CASE + 64 WHEN - COUNT( * ) THEN - 61 / - + CAST( - AVG ( ALL 10 ) AS SIGNED ) - - 59 WHEN - 10 THEN NULL WHEN + ( + 12 ) THEN - + 14 * - + 16 + 36 + - 58 / + 37 * - 1 * + 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL 26 + - - ( + CASE + 64 WHEN - COUNT ( * ) THEN - 61 / - + CAST ( - AVG ( ALL 10 ) AS INTEGER ) - - 59 WHEN - 10 THEN NULL WHEN + ( + 12 ) THEN - + 14 * - + 16 + 36 + - 58 / + 37 * - 1 * + 26 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL - COUNT( - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - COUNT ( - 79 ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT 64 + 79 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - 59 * - MIN( ALL - - 34 ) - - 85 + 90 + + 33
----
2214

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 59 * - MIN ( ALL - - 34 ) - - 85 + 90 + + 33
----
2214

query I rowsort
SELECT ALL - + 88 + + 92 + 31
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8304
SELECT 35 DIV + CAST( - MIN( ( - 10 ) ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT 35 / + CAST ( - MIN ( ( - 10 ) ) AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8305
SELECT DISTINCT - 65 * COUNT( * ) + - COALESCE ( + 73, + COUNT( * ) + - + 83 + + 22 * + 32 * + - CAST( 22 AS SIGNED ) ) * - 39 * 63 + + 63 AS col1, - COUNT( * ) * + 69 col1
----
179359
-69

skipif mysql # not compatible
query II rowsort label-8305
SELECT DISTINCT - 65 * COUNT ( * ) + - COALESCE ( + 73, + COUNT ( * ) + - + 83 + + 22 * + 32 * + - CAST ( 22 AS INTEGER ) ) * - 39 * 63 + + 63 AS col1, - COUNT ( * ) * + 69 col1
----
179359
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT COUNT( * ) + - 33 DIV + 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8306
SELECT COUNT ( * ) + - 33 / + 85 AS col2
----
1

query I rowsort
SELECT + 88 + 30 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT + 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + 4 * + COUNT ( * )
----
4

query II rowsort
SELECT DISTINCT 31 AS col1, + ( + - 55 )
----
31
-55

query I rowsort
SELECT ALL CASE WHEN NOT 28 IS NOT NULL THEN 91 * + - 37 + - 53 * + 53 + - 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT 74 * + ( + CAST( NULL AS SIGNED ) ) * 2 - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT 74 * + ( + CAST ( NULL AS INTEGER ) ) * 2 - 25
----
NULL

query I rowsort
SELECT 28 * + 16
----
448

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8314
SELECT 94 * + - 50 DIV COUNT( * ) * + - COUNT( * ) AS col1
----
4700

skipif mysql # not compatible
query I rowsort label-8314
SELECT 94 * + - 50 / COUNT ( * ) * + - COUNT ( * ) AS col1
----
4700

query I rowsort
SELECT ALL 5 * - 31
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT MAX( + 36 ) * + - 8 AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-8316
SELECT MAX ( + 36 ) * + - 8 AS col0
----
-288

query II rowsort
SELECT - 92 AS col2, - 74 - + + 74 col0
----
-92
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT SUM( DISTINCT - 2 ) * + 22
----
-44

skipif mysql # not compatible
query I rowsort label-8318
SELECT SUM ( DISTINCT - 2 ) * + 22
----
-44

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

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

query II rowsort
SELECT ALL 39 + - + 66, + 95 * - ( + - 23 ) AS col2
----
-27
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - COUNT( - - ( - + 65 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8321
SELECT - COUNT ( - - ( - + 65 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT 89 + MAX( + 72 )
----
161

skipif mysql # not compatible
query I rowsort label-8322
SELECT 89 + MAX ( + 72 )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT + ( - - 48 ) + - 19 + NULLIF ( + SUM( ALL - - 58 ), + - 99 ) * + - 79 * - - 67 + MAX( ALL - 27 ) + + - 80 * - 84
----
-300272

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT + ( - - 48 ) + - 19 + NULLIF ( + SUM ( ALL - - 58 ), + - 99 ) * + - 79 * - - 67 + MAX ( ALL - 27 ) + + - 80 * - 84
----
-300272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8324
SELECT ( + - CASE + - 76 WHEN + 64 THEN NULL WHEN - + 18 + CASE - COUNT( * ) WHEN + ( + + MAX( 81 ) ) * + CASE 20 WHEN + - 0 * - 28 + + 96 / - + 52 / 5 * + 35 * SUM( ALL + 27 ) * + COUNT( * ) THEN - 64 ELSE 15 + + + 22 END + - ( 1 ) THEN NULL WHEN + + CAST( NULL AS DECIMAL ) / + + NULLIF ( + + ( + ( COUNT( * ) ) ), 63 ) / 77 * - + ( + CAST( - + 32 AS SIGNED ) ) + - + COUNT( * ) + - 94 / NULLIF ( - 45, - COUNT( * ) * - - 13 + - + SUM( ALL - 14 ) ) THEN 54 + + 0 + 94 * - 32 END + 19 * 91 THEN 63 * 60 ELSE NULL END ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ( + - CASE + - 76 WHEN + 64 THEN NULL WHEN - + 18 + CASE - COUNT ( * ) WHEN + ( + + MAX ( 81 ) ) * + CASE 20 WHEN + - 0 * - 28 + + 96 / - + 52 / 5 * + 35 * SUM ( ALL + 27 ) * + COUNT ( * ) THEN - 64 ELSE 15 + + + 22 END + - ( 1 ) THEN NULL WHEN + + CAST ( NULL AS REAL ) / + + NULLIF ( + + ( + ( COUNT ( * ) ) ), 63 ) / 77 * - + ( + CAST ( - + 32 AS INTEGER ) ) + - + COUNT ( * ) + - 94 / NULLIF ( - 45, - COUNT ( * ) * - - 13 + - + SUM ( ALL - 14 ) ) THEN 54 + + 0 + 94 * - 32 END + 19 * 91 THEN 63 * 60 ELSE NULL END ) + 70
----
NULL

query I rowsort
SELECT 34 * 82 AS col2
----
2788

query II rowsort
SELECT 41 + - 43 AS col0, - 75
----
-2
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL + 40 * + 72 + - CAST( 37 AS SIGNED )
----
2843

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + 40 * + 72 + - CAST ( 37 AS INTEGER )
----
2843

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT + 24, + 26 + + + COUNT( * ) * + 11 AS col1
----
24
37

skipif mysql # not compatible
query II rowsort label-8329
SELECT + 24, + 26 + + + COUNT ( * ) * + 11 AS col1
----
24
37

query III rowsort
SELECT ALL - 50 AS col1, COALESCE ( 67, 90 ) AS col2, + 15 AS col2
----
-50
67
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8331
SELECT DISTINCT - 53 AS col1, - 52 / - 90 + - CAST( NULL AS SIGNED )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-8331
SELECT DISTINCT - 53 AS col1, - 52 / - 90 + - CAST ( NULL AS INTEGER )
----
-53
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT DISTINCT + + 0 * 24 * + CAST( NULL AS SIGNED ) + - + COUNT( ALL + - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + + 0 * 24 * + CAST ( NULL AS INTEGER ) + - + COUNT ( ALL + - 11 )
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( + 16, + 21 ) * - 28 AS col1
----
-448

query II rowsort
SELECT DISTINCT - 69 * - 9 AS col1, 20 AS col1
----
621
20

query I rowsort
SELECT - 80 + - 96
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT DISTINCT - 71 AS col0, - MIN( DISTINCT + 74 )
----
-71
-74

skipif mysql # not compatible
query II rowsort label-8336
SELECT DISTINCT - 71 AS col0, - MIN ( DISTINCT + 74 )
----
-71
-74

query II rowsort
SELECT ALL - + 85 AS col2, + 74
----
-85
74

query I rowsort
SELECT + CASE + 97 WHEN 17 * 78 THEN NULL ELSE + 89 END
----
89

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

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

query II rowsort
SELECT + + 19, 57 * + - 26 AS col2
----
19
-1482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL 82 * + CAST( COALESCE ( + - SUM( 67 ), - + 39 ) AS SIGNED ) * 43
----
-236242

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 82 * + CAST ( COALESCE ( + - SUM ( 67 ), - + 39 ) AS INTEGER ) * 43
----
-236242

query I rowsort
SELECT + 52 * 1
----
52

query I rowsort
SELECT - + NULLIF ( 73, + - AVG ( - 18 ) - + + 48 ) + - - 48
----
-25

query II rowsort
SELECT + 82 AS col2, - 9 AS col1
----
82
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 29 * 89 * 8 + + NULLIF ( - COUNT( * ), 28 ) * - CASE - 91 WHEN - 25 THEN + - 61 + + 60 WHEN ( 7 ) * + 43 + - - 17 * MIN( - + 50 ) THEN - - 86 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT 29 * 89 * 8 + + NULLIF ( - COUNT ( * ), 28 ) * - CASE - 91 WHEN - 25 THEN + - 61 + + 60 WHEN ( 7 ) * + 43 + - - 17 * MIN ( - + 50 ) THEN - - 86 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - COALESCE ( - + 72, + 28 * 43 + + + 9 + + + 20, 16 - - COUNT( * ) ) + - - 74 - - + 69 * + 48
----
3458

skipif mysql # not compatible
query I rowsort label-8347
SELECT - COALESCE ( - + 72, + 28 * 43 + + + 9 + + + 20, 16 - - COUNT ( * ) ) + - - 74 - - + 69 * + 48
----
3458

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

skipif mysql # not compatible
query I rowsort label-8348
SELECT - ( - COUNT ( * ) ) / - 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - 87 + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-8349
SELECT - 87 + COUNT ( * )
----
-86

query I rowsort
SELECT ALL - 80 * 51 AS col0
----
-4080

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT ALL + 26 + + + 30 DIV 58
----
26

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + 26 + + + 30 / 58
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT + CAST( + - 88 AS SIGNED ) + 14 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8352
SELECT + CAST ( + - 88 AS INTEGER ) + 14 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT + 33 + + CASE - COUNT( * ) WHEN - - 76 THEN + + 88 WHEN + 87 THEN - 96 END + - 42 * COUNT( * ) + + + 14, 38 + + 3 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8353
SELECT + 33 + + CASE - COUNT ( * ) WHEN - - 76 THEN + + 88 WHEN + 87 THEN - 96 END + - 42 * COUNT ( * ) + + + 14, 38 + + 3 AS col1
----
NULL
41

query I rowsort
SELECT + COALESCE ( + + 10, - 96 ) * 72 AS col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - COUNT( 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8355
SELECT - COUNT ( 64 ) AS col0
----
-1

query I rowsort
SELECT - NULLIF ( + 24, - - COALESCE ( - 60, 5 ) ) col2
----
-24

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

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

query I rowsort
SELECT ALL 55 + 49 * + 20 AS col1
----
1035

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8360
SELECT ALL COUNT( 79 ) AS col2, - ( + + 41 ) - - MAX( + + 92 ) + + 46 col0
----
1
97

skipif mysql # not compatible
query II rowsort label-8360
SELECT ALL COUNT ( 79 ) AS col2, - ( + + 41 ) - - MAX ( + + 92 ) + + 46 col0
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - COUNT( - 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8361
SELECT - COUNT ( - 95 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COALESCE ( 13, + 6 ) * - + COUNT( * ) + 90 + + 84
----
161

skipif mysql # not compatible
query I rowsort label-8362
SELECT COALESCE ( 13, + 6 ) * - + COUNT ( * ) + 90 + + 84
----
161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8363
SELECT + - CASE + - 56 WHEN + + 30 THEN + 32 ELSE + - CAST( + 99 AS SIGNED ) END DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-8363
SELECT + - CASE + - 56 WHEN + + 30 THEN + 32 ELSE + - CAST ( + 99 AS INTEGER ) END / + 82
----
1

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

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

query I rowsort
SELECT - 13 * 25 AS col1
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + 24 * 75 * 45 + - CASE - - COUNT( * ) WHEN - ( ( - 2 ) ) THEN + 37 * - 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + 24 * 75 * 45 + - CASE - - COUNT ( * ) WHEN - ( ( - 2 ) ) THEN + 37 * - 14 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8367
SELECT + - 97 * - COUNT( * ) + - 44 AS col2, - CAST( + - 73 AS SIGNED )
----
53
73

skipif mysql # not compatible
query II rowsort label-8367
SELECT + - 97 * - COUNT ( * ) + - 44 AS col2, - CAST ( + - 73 AS INTEGER )
----
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - 12 * + SUM( 72 ) * 93 + 61 AS col1
----
-80291

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 12 * + SUM ( 72 ) * 93 + 61 AS col1
----
-80291

query I rowsort
SELECT ALL + - 16 * 5 + - ( + + 94 )
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) * + 33 * - 58 * + - AVG ( 3 ) * - + 20 * - CAST( + 99 AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + 33 * - 58 * + - AVG ( 3 ) * - + 20 * - CAST ( + 99 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 72 + 60 AS col2, - 84 * 39
----
-12
-3276

query I rowsort
SELECT - + 8 * - 74 + 20
----
612

query I rowsort
SELECT NULLIF ( + 0, + + 95 - + 38 )
----
0

query I rowsort
SELECT DISTINCT 86 * + 58 * - 18 + 32 AS col1
----
-89752

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + MAX( ALL 59 ) * + ( - 3 ) + - 57 + 97 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + MAX ( ALL 59 ) * + ( - 3 ) + - 57 + 97 AS col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL 60 * 18 + + COUNT( * ) + COUNT( * )
----
1082

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL 60 * 18 + + COUNT ( * ) + COUNT ( * )
----
1082

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - COUNT( * ) - - 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8377
SELECT - COUNT ( * ) - - 70 AS col2
----
69

query I rowsort
SELECT - NULLIF ( + + 72, - - 27 * 43 + 60 + + AVG ( + 19 ) + + 2 * 70 )
----
-72

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8382
SELECT DISTINCT 13 AS col1, + CAST( NULL AS SIGNED ) * COUNT( * ) * - 82
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT DISTINCT 13 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 82
----
13
NULL

query I rowsort
SELECT DISTINCT - 78 - - + 39
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT ALL 38 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 38 / + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - 31 + - COUNT( * ) + 68 * - 80 * - 96 * + 92
----
48046048

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 31 + - COUNT ( * ) + 68 * - 80 * - 96 * + 92
----
48046048

query I rowsort
SELECT - + 5 + + 8 AS col2
----
3

query I rowsort
SELECT + - 30 + + 67 + 75 * 81 AS col2
----
6112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8388
SELECT + 31 * 71 DIV + COUNT( * ) + + - 29 AS col2
----
2172

skipif mysql # not compatible
query I rowsort label-8388
SELECT + 31 * 71 / + COUNT ( * ) + + - 29 AS col2
----
2172

query I rowsort
SELECT + 71 * + 60 AS col0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL SUM( + - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL SUM ( + - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT - 86 * 52 * + COUNT( * ) * + - 6 + + COUNT( * )
----
26833

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT - 86 * 52 * + COUNT ( * ) * + - 6 + + COUNT ( * )
----
26833

query I rowsort
SELECT DISTINCT 58 * - ( + 57 ) * - + 37
----
122322

query I rowsort
SELECT + 7 * 56 AS col2
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT 85 * COUNT( * ) * + 18 AS col2
----
1530

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT 85 * COUNT ( * ) * + 18 AS col2
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - + COUNT( * ) * - COUNT( * ) * + - 25 * - 51 + 36 - - 48 * 31
----
2799

skipif mysql # not compatible
query I rowsort label-8395
SELECT - + COUNT ( * ) * - COUNT ( * ) * + - 25 * - 51 + 36 - - 48 * 31
----
2799

query II rowsort
SELECT 76 AS col0, 25 col2
----
76
25

query I rowsort
SELECT - 73 * + 81
----
-5913

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

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

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

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

query II rowsort
SELECT ALL - - 26, 4 + + NULLIF ( - 98, + 5 ) * + 36 col1
----
26
-3524

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT ALL - 43 DIV 40 * + - COALESCE ( + 94, - 71 DIV 22 * 3 * + 77 * 16 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - 43 / 40 * + - COALESCE ( + 94, - 71 / 22 * 3 * + 77 * 16 ) AS col0
----
94

query I rowsort
SELECT ALL 70 + + 10 col0
----
80

query I rowsort
SELECT DISTINCT - - 51 * + 50 AS col2
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT 9 * + 61 AS col2, COUNT( * ) + + + 87 * - 17
----
549
-1478

skipif mysql # not compatible
query II rowsort label-8404
SELECT 9 * + 61 AS col2, COUNT ( * ) + + + 87 * - 17
----
549
-1478

query II rowsort
SELECT ALL - 63 + - 32 AS col2, 20 col2
----
-95
20

query I rowsort
SELECT 25 - 26 - + 52 + + ( + - 36 ) AS col0
----
-89

query I rowsort
SELECT 99 + - + CASE - 95 WHEN - + 97 THEN + 46 ELSE NULL END * + + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8408
SELECT COUNT( * ) * - 31 AS col0, 40 + - SUM( - 23 ) - - - CAST( + 13 AS SIGNED ) * MIN( - 59 ) * + ( + ( + 62 ) ) + + - 57 + - 95 + - 54
----
-31
47411

skipif mysql # not compatible
query II rowsort label-8408
SELECT COUNT ( * ) * - 31 AS col0, 40 + - SUM ( - 23 ) - - - CAST ( + 13 AS INTEGER ) * MIN ( - 59 ) * + ( + ( + 62 ) ) + + - 57 + - 95 + - 54
----
-31
47411

query I rowsort
SELECT DISTINCT 38 - + 81 AS col1
----
-43

query I rowsort
SELECT 34 + - - 37 AS col2
----
71

query I rowsort
SELECT 43 + + 48 - - 84 AS col2
----
175

query I rowsort
SELECT 50 * - 81
----
-4050

query II rowsort
SELECT - 16 + + + 6, 86 AS col0
----
-10
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), CASE + - CAST( NULL AS SIGNED ) WHEN - 61 THEN - + 29 - + - MIN( ALL - 39 ) WHEN ( 67 ) * 33 * - 93 THEN - + 94 ELSE NULL END * 63 ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), CASE + - CAST ( NULL AS INTEGER ) WHEN - 61 THEN - + 29 - + - MIN ( ALL - 39 ) WHEN ( 67 ) * 33 * - 93 THEN - + 94 ELSE NULL END * 63 ) * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT - + 87 * + MIN( + - 54 ) * - 12 + 86 AS col2
----
-56290

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - + 87 * + MIN ( + - 54 ) * - 12 + 86 AS col2
----
-56290

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT + 46 * - SUM( DISTINCT - + 66 ) AS col0
----
3036

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + 46 * - SUM ( DISTINCT - + 66 ) AS col0
----
3036

query I rowsort
SELECT - 91 * - 10
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL MAX( + + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL MAX ( + + 92 ) AS col1
----
92

query I rowsort
SELECT - 5 * + 93 AS col0
----
-465

query I rowsort
SELECT ALL - 96 + - 67
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + 28 * - - COUNT( * ) + - 10
----
18

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 28 * - - COUNT ( * ) + - 10
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT COUNT( * ) * - 94 * - 76 * - 79 + + 95 * + COALESCE ( - COUNT( 33 ), 94 * + + COALESCE ( 23, 8, CASE + COUNT( * ) WHEN + 18 + + + 74 THEN + 24 * 20 * - 95 - + 64 - - ( + 88 ) * - + 34 END ) DIV - 15 + + MIN( + 84 ) * + + 82 + - NULLIF ( + 53, + + 59 + + 42 + - + ( - 1 ) ) + 22 DIV + 19 * COUNT( * ) * 69 )
----
-564471

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( * ) * - 94 * - 76 * - 79 + + 95 * + COALESCE ( - COUNT ( 33 ), 94 * + + COALESCE ( 23, 8, CASE + COUNT ( * ) WHEN + 18 + + + 74 THEN + 24 * 20 * - 95 - + 64 - - ( + 88 ) * - + 34 END ) / - 15 + + MIN ( + 84 ) * + + 82 + - NULLIF ( + 53, + + 59 + + 42 + - + ( - 1 ) ) + 22 / + 19 * COUNT ( * ) * 69 )
----
-564471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT ( + - 16 ) + - COUNT( 13 ) + - CAST( + + 35 AS SIGNED ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT ( + - 16 ) + - COUNT ( 13 ) + - CAST ( + + 35 AS INTEGER ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT - COUNT( * ) + 71 * MAX( ALL 42 ) * 80
----
238559

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - COUNT ( * ) + 71 * MAX ( ALL 42 ) * 80
----
238559

query I rowsort
SELECT ALL + 81 + + 67 + - 88
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - 53 * + + COUNT( * ) + + 69
----
16

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 53 * + + COUNT ( * ) + + 69
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL 40 + - + ( + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 40 + - + ( + COUNT ( * ) )
----
39

query I rowsort
SELECT 80 * 65 * - 70
----
-364000

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

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - MAX ( 35 )
----
-35

query I rowsort
SELECT 34 + - 92 + 63 - ( 22 ) * + + 82 AS col2
----
-1799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL - CASE + 94 WHEN - - 74 * - 67 + - - 75 THEN 80 WHEN + 27 * - 38 * + - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - CASE + 94 WHEN - - 74 * - 67 + - - 75 THEN 80 WHEN + 27 * - 38 * + - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT COUNT ( * ) / - 10
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT 39 - + - CAST( 41 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT 39 - + - CAST ( 41 AS INTEGER ) AS col2
----
80

query II rowsort
SELECT ALL - 50 AS col2, - 94 * - + 99
----
-50
9306

query I rowsort
SELECT ALL + COALESCE ( - + 87, + 28 + 46 * + + 36 ) * + 43 col0
----
-3741

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

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

query I rowsort
SELECT ALL - 60 * - 90
----
5400

query I rowsort
SELECT NULLIF ( - + 22, - 10 + + 51 ) * - 92 AS col1
----
2024

query II rowsort
SELECT - 65 AS col1, - 39 + + 82
----
-65
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - CASE - + 70 WHEN COUNT( * ) THEN NULL WHEN - + 10 THEN NULL WHEN - + 73 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT - CASE - + 70 WHEN COUNT ( * ) THEN NULL WHEN - + 10 THEN NULL WHEN - + 73 THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 13
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL CASE 97 WHEN COUNT( * ) + - 67 THEN 50 * MIN( ALL + 30 / 77 ) WHEN MAX( DISTINCT - 78 ) + + 67 * ( + 63 + 23 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL CASE 97 WHEN COUNT ( * ) + - 67 THEN 50 * MIN ( ALL + 30 / 77 ) WHEN MAX ( DISTINCT - 78 ) + + 67 * ( + 63 + 23 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - CASE COUNT( * ) WHEN COUNT( * ) THEN + 38 ELSE NULL END - 10 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8443
SELECT - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + 38 ELSE NULL END - 10 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT - COUNT( * ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT - COUNT ( * ) / - 89
----
0

query I rowsort
SELECT ALL - 25 + ( - 1 ) * + 31 AS col0
----
-56

query I rowsort
SELECT ALL + 70 + + 35 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - SUM( + 64 ) + - 15
----
-79

skipif mysql # not compatible
query I rowsort label-8447
SELECT - SUM ( + 64 ) + - 15
----
-79

query I rowsort
SELECT ALL + 98 * + ( + ( 82 ) )
----
8036

query I rowsort
SELECT + 18 + 65 AS col1
----
83

query I rowsort
SELECT + 77 - 6 * + 95
----
-493

query I rowsort
SELECT DISTINCT + 80 * 4
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT ALL - 26 + - CAST( 65 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL - 26 + - CAST ( 65 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8453
SELECT - 41 + - COUNT( * ) DIV 66 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8453
SELECT - 41 + - COUNT ( * ) / 66 AS col1
----
-41

query I rowsort
SELECT ALL - 35 * 66
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - 99 * - 51 + COUNT( * )
----
5050

skipif mysql # not compatible
query I rowsort label-8455
SELECT - 99 * - 51 + COUNT ( * )
----
5050

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - NULLIF ( 41, 79 + 69 ) * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8456
SELECT - NULLIF ( 41, 79 + 69 ) * - COUNT ( * ) AS col1
----
41

query I rowsort
SELECT ALL + ( + 41 ) col2
----
41

query I rowsort
SELECT + 61 * 44 - - 46 AS col2
----
2730

query I rowsort
SELECT + 28 * 11
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT CASE 83 WHEN - MIN( + 46 ) * - 60 + - 42 * + 99 THEN + 59 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT CASE 83 WHEN - MIN ( + 46 ) * - 60 + - 42 * + 99 THEN + 59 ELSE NULL END col0
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT - COALESCE ( + COUNT( * ), + 71 * ( - NULLIF ( + 94, - 99 ) ) + + 55 * CAST( NULL AS SIGNED ) ) * - 20 - + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8464
SELECT - COALESCE ( + COUNT ( * ), + 71 * ( - NULLIF ( + 94, - 99 ) ) + + 55 * CAST ( NULL AS INTEGER ) ) * - 20 - + COUNT ( * ) AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT CASE 75 WHEN - CAST( NULL AS SIGNED ) THEN + 93 WHEN + 8 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT CASE 75 WHEN - CAST ( NULL AS INTEGER ) THEN + 93 WHEN + 8 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - 56 + + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 56 + + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT 64 * - 67 + 96 AS col0
----
-4192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT + SUM( + ( ( ( 50 ) ) ) ) * + CAST( + 40 * - 51 - 49 AS SIGNED ) AS col2
----
-104450

skipif mysql # not compatible
query I rowsort label-8468
SELECT + SUM ( + ( ( ( 50 ) ) ) ) * + CAST ( + 40 * - 51 - 49 AS INTEGER ) AS col2
----
-104450

query I rowsort
SELECT - 66 * + 54 + 72
----
-3492

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

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

query I rowsort
SELECT + 85 + 18 AS col0
----
103

query I rowsort
SELECT + 2 * 39
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + SUM( DISTINCT 54 ) + - 53
----
1

skipif mysql # not compatible
query I rowsort label-8473
SELECT + SUM ( DISTINCT 54 ) + - 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT ALL 73 DIV 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL 73 / 42 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT + SUM( - 55 ) + 95 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8475
SELECT + SUM ( - 55 ) + 95 AS col1
----
40

query I rowsort
SELECT ALL - 62 + 8 * + 48 AS col2
----
322

query I rowsort
SELECT + 51 + 78 * - 1 col0
----
-27

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

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

query I rowsort
SELECT DISTINCT + 29 + + 22 AS col0
----
51

query I rowsort
SELECT - 78 + 68
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT - CASE - 37 WHEN - 76 * + 23 + + COUNT( * ) * + 24 THEN NULL WHEN COUNT( * ) THEN 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT - CASE - 37 WHEN - 76 * + 23 + + COUNT ( * ) * + 24 THEN NULL WHEN COUNT ( * ) THEN 65 END AS col1
----
NULL

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

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

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

query I rowsort
SELECT + + 41 * - ( 33 * + 61 )
----
-82533

query I rowsort
SELECT - + 36 + 69 * 98
----
6726

query I rowsort
SELECT DISTINCT + 14 + 22
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - COUNT( DISTINCT 61 ) + 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - COUNT ( DISTINCT 61 ) + 52 AS col0
----
51

query I rowsort
SELECT - + 33 + + 76 * ( 59 * 11 ) AS col2
----
49291

query I rowsort
SELECT - 80 * + 81 AS col1
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - - CASE 50 WHEN 68 THEN SUM( ALL + 82 ) * 3 WHEN - 21 * 7 THEN NULL ELSE NULL END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT - - CASE 50 WHEN 68 THEN SUM ( ALL + 82 ) * 3 WHEN - 21 * 7 THEN NULL ELSE NULL END + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + 53 + - 77 * - MAX( 5 ) AS col0
----
438

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + 53 + - 77 * - MAX ( 5 ) AS col0
----
438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT - CASE ( NULLIF ( + COALESCE ( 18, - 37 / 45 + MIN( DISTINCT - 47 + + 71 ) * 91, + ( + COALESCE ( - 66, 34, + 93 * + CAST( 78 AS SIGNED ) + 34, ( + 65 ) + + 11 ) ) * - 7 ), 91 + - 28 / - 57 ) ) WHEN + 28 - 58 THEN NULL ELSE ( - 46 ) END
----
46

skipif mysql # not compatible
query I rowsort label-8493
SELECT - CASE ( NULLIF ( + COALESCE ( 18, - 37 / 45 + MIN ( DISTINCT - 47 + + 71 ) * 91, + ( + COALESCE ( - 66, 34, + 93 * + CAST ( 78 AS INTEGER ) + 34, ( + 65 ) + + 11 ) ) * - 7 ), 91 + - 28 / - 57 ) ) WHEN + 28 - 58 THEN NULL ELSE ( - 46 ) END
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + - SUM( NULLIF ( - 62, 91 / 26 ) ) + - 32 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - SUM ( NULLIF ( - 62, 91 / 26 ) ) + - 32 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + - 14 * COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8495
SELECT + - 14 * COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT - - 9 * - 20
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT + MIN( + + 83 ) * - COALESCE ( + 35 - 87, 46 * - 92, 87 + - COUNT( * ) ) AS col1
----
4316

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + MIN ( + + 83 ) * - COALESCE ( + 35 - 87, 46 * - 92, 87 + - COUNT ( * ) ) AS col1
----
4316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8498
SELECT ALL CASE + 0 WHEN 56 THEN NULL ELSE - CAST( - COALESCE ( - 57, 22 * 11 + + ( 18 ) * CASE + 51 WHEN + ( - 86 ) THEN CASE 61 WHEN 8 + - 66 THEN - 12 * AVG ( - 18 * - 19 ) ELSE - 10 END * - 1 WHEN 45 THEN 75 ELSE 20 * + CASE 54 WHEN + COUNT( * ) * 18 THEN 49 + 90 * - COALESCE ( - 11 * + ( - AVG ( - 73 ) ), + AVG ( 47 ) * 92 ) END END, CAST( NULL AS SIGNED ) ) AS SIGNED ) + SUM( DISTINCT ( 11 ) ) END DIV 7 - 60 * 70 AS col2
----
-4206

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL CASE + 0 WHEN 56 THEN NULL ELSE - CAST ( - COALESCE ( - 57, 22 * 11 + + ( 18 ) * CASE + 51 WHEN + ( - 86 ) THEN CASE 61 WHEN 8 + - 66 THEN - 12 * AVG ( - 18 * - 19 ) ELSE - 10 END * - 1 WHEN 45 THEN 75 ELSE 20 * + CASE 54 WHEN + COUNT ( * ) * 18 THEN 49 + 90 * - COALESCE ( - 11 * + ( - AVG ( - 73 ) ), + AVG ( 47 ) * 92 ) END END, CAST ( NULL AS INTEGER ) ) AS INTEGER ) + SUM ( DISTINCT ( 11 ) ) END / 7 - 60 * 70 AS col2
----
-4206

query I rowsort
SELECT - 92 + - 73 * + 41
----
-3085

query I rowsort
SELECT DISTINCT + 50 * - 61
----
-3050

query I rowsort
SELECT - 19 * - 44 - + 90 col0
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - ( COUNT( * ) ) * 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - ( COUNT ( * ) ) * 40 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8503
SELECT - 15 * + CASE 5 WHEN + 61 + + 34 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN MIN( 40 ) WHEN - 58 THEN NULL ELSE + COUNT( * ) * ( 94 ) + 23 * - 72 END * COUNT( ALL - 4 - - 59 ) AS col0
----
23430

skipif mysql # not compatible
query I rowsort label-8503
SELECT - 15 * + CASE 5 WHEN + 61 + + 34 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN MIN ( 40 ) WHEN - 58 THEN NULL ELSE + COUNT ( * ) * ( 94 ) + 23 * - 72 END * COUNT ( ALL - 4 - - 59 ) AS col0
----
23430

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + SUM( + 26 ) * - 97 + 66 AS col0
----
-2456

skipif mysql # not compatible
query I rowsort label-8504
SELECT + SUM ( + 26 ) * - 97 + 66 AS col0
----
-2456

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + SUM( ALL + + 76 ) * MAX( 39 ) AS col2
----
2964

skipif mysql # not compatible
query I rowsort label-8505
SELECT + SUM ( ALL + + 76 ) * MAX ( 39 ) AS col2
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT - CASE + - 29 WHEN - NULLIF ( 96, - 36 ) THEN COUNT( * ) + 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT - CASE + - 29 WHEN - NULLIF ( 96, - 36 ) THEN COUNT ( * ) + 36 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 73 + - 58
----
15

query I rowsort
SELECT DISTINCT 32 * 75
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + COUNT( * ) + 65 - 30
----
36

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + COUNT ( * ) + 65 - 30
----
36

query I rowsort
SELECT ALL 79 + + 7 col0
----
86

query I rowsort
SELECT ALL - + 30 + - + 72 + 6 AS col0
----
-96

query I rowsort
SELECT DISTINCT 23 * + 5 - + ( - 92 - + 98 ) AS col2
----
305

query I rowsort
SELECT ( 75 ) * 81 AS col2
----
6075

query I rowsort
SELECT + 1 - - + 62 AS col0
----
63

query I rowsort
SELECT ( 28 ) - 54 * - 17
----
946

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT 72 DIV 10 * + 83 + 8
----
589

skipif mysql # not compatible
query I rowsort label-8517
SELECT 72 / 10 * + 83 + 8
----
589

query I rowsort
SELECT ALL 81 + - + 26 + + 68 * 31
----
2163

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

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

query I rowsort
SELECT DISTINCT - 57 - 88 col1
----
-145

query I rowsort
SELECT ( CASE - CASE + 54 WHEN + 98 * 42 + + 4 THEN - 16 WHEN - 66 THEN - 91 END WHEN 16 THEN NULL WHEN 59 + 0 / 5 THEN NULL ELSE - 21 END ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT + MAX( - 82 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT + MAX ( - 82 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL - COUNT( * ) - - - 38 + - 37
----
-76

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - COUNT ( * ) - - - 38 + - 37
----
-76

query I rowsort
SELECT 20 + - 29
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT 64 * 34 DIV 76 + + 73 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-8525
SELECT 64 * 34 / 76 + + 73 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT + - COUNT( * ) * 74 col2
----
-74

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + - COUNT ( * ) * 74 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL - CASE - 48 WHEN SUM( + 25 ) THEN NULL ELSE - 24 - - 90 END col0
----
-66

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - CASE - 48 WHEN SUM ( + 25 ) THEN NULL ELSE - 24 - - 90 END col0
----
-66

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

skipif mysql # not compatible
query I rowsort label-8529
SELECT CAST ( NULL AS INTEGER ) * - 26 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - SUM ( DISTINCT 93 )
----
-93

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

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

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

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

query I rowsort
SELECT 44 * + 87 * + 65 AS col2
----
248820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT + COUNT( * ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + COUNT ( * ) / 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT + 50 AS col1, + 40 * + 7 + COUNT( ALL 96 ) AS col2
----
50
281

skipif mysql # not compatible
query II rowsort label-8535
SELECT + 50 AS col1, + 40 * + 7 + COUNT ( ALL 96 ) AS col2
----
50
281

query I rowsort
SELECT 34 * + ( 44 ) * ( - 10 )
----
-14960

query I rowsort
SELECT 69 * - + 7 * 15 AS col0
----
-7245

query I rowsort
SELECT ALL - 1 * - 96 * 69
----
6624

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL CASE + + NULLIF ( + MIN( DISTINCT NULLIF ( - 92, 68 ) ), ( 8 ) * SUM( 51 * 32 - + 53 * NULLIF ( - 16 + 18, 37 * + 54 ) ) ) WHEN 31 - NULLIF ( + 57, 88 + NULLIF ( CAST( NULL AS SIGNED ), + 36 ) ) THEN NULL ELSE - 14 + 65 END + - 7 * - 4 col1
----
79

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL CASE + + NULLIF ( + MIN ( DISTINCT NULLIF ( - 92, 68 ) ), ( 8 ) * SUM ( 51 * 32 - + 53 * NULLIF ( - 16 + 18, 37 * + 54 ) ) ) WHEN 31 - NULLIF ( + 57, 88 + NULLIF ( CAST ( NULL AS INTEGER ), + 36 ) ) THEN NULL ELSE - 14 + 65 END + - 7 * - 4 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT - COALESCE ( + + 70, + + COUNT( * ) * + 44 )
----
-70

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - COALESCE ( + + 70, + + COUNT ( * ) * + 44 )
----
-70

query I rowsort
SELECT DISTINCT + 56 + + 75
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL - ( 96 ) + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - ( 96 ) + - COUNT ( * )
----
-97

query I rowsort
SELECT ALL + 38 + - ( - 9 ) AS col1
----
47

query I rowsort
SELECT 39 + - 23 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT - COALESCE ( + 35, + - 84, 88 * CASE - COUNT( * ) WHEN + CASE - MIN( 18 ) WHEN 0 THEN + 86 END THEN + 17 ELSE NULL END, - 45 * 0 + 19 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - COALESCE ( + 35, + - 84, 88 * CASE - COUNT ( * ) WHEN + CASE - MIN ( 18 ) WHEN 0 THEN + 86 END THEN + 17 ELSE NULL END, - 45 * 0 + 19 ) AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL - - 78 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - - 78 / + 50
----
1

query I rowsort
SELECT - 99 + - ( + 18 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8549
SELECT + MAX ( + 1 ) AS col0
----
1

query I rowsort
SELECT 41 + 45 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT ALL - - COALESCE ( + 31, - 89 ) + 83 DIV + COUNT( * ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - - COALESCE ( + 31, - 89 ) + 83 / + COUNT ( * ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT ALL + 15 col2, COUNT( * ) + ( - 44 )
----
15
-43

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL + 15 col2, COUNT ( * ) + ( - 44 )
----
15
-43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT + 86 - + 96 DIV - 16 + 46
----
138

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + 86 - + 96 / - 16 + 46
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL - ( + - SUM( + 16 ) ) * 24 AS col1
----
384

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - ( + - SUM ( + 16 ) ) * 24 AS col1
----
384

query I rowsort
SELECT ALL - + 23 - + + 35 * + 59
----
-2088

query I rowsort
SELECT 40 * - 88 * 54
----
-190080

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ALL - COUNT( * ) * + 27 * COUNT( * ) * 22 col1
----
-594

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - COUNT ( * ) * + 27 * COUNT ( * ) * 22 col1
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + CASE WHEN NOT ( 53 ) IS NULL THEN - 41 END + + 40, 30 * 22 ) + COALESCE ( + 47, 81 + + ( 71 ), COALESCE ( 58, - 24 ) + 67, - 35 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8559
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + CASE WHEN NOT ( 53 ) IS NULL THEN - 41 END + + 40, 30 * 22 ) + COALESCE ( + 47, 81 + + ( 71 ), COALESCE ( 58, - 24 ) + 67, - 35 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT + 81 AS col1, COUNT( * ) * - + 31
----
81
-31

skipif mysql # not compatible
query II rowsort label-8560
SELECT + 81 AS col1, COUNT ( * ) * - + 31
----
81
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT 20 * - CAST( - 98 AS SIGNED )
----
1960

skipif mysql # not compatible
query I rowsort label-8561
SELECT 20 * - CAST ( - 98 AS INTEGER )
----
1960

query I rowsort
SELECT - COALESCE ( + 90, + 96 * 74 ) AS col1
----
-90

query I rowsort
SELECT ALL 81 - + + 47 AS col0
----
34

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

skipif mysql # not compatible
query I rowsort label-8564
SELECT SUM ( DISTINCT - 6 )
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-8565
SELECT ALL 63 DIV 36, + 35 AS col2
----
1
35

skipif mysql # not compatible
query II rowsort label-8565
SELECT ALL 63 / 36, + 35 AS col2
----
1
35

query I rowsort
SELECT 25 + 99 * + 23 AS col2
----
2302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT 37 * + CASE - 6 WHEN - 63 + 26 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 99 END AS col1
----
3663

skipif mysql # not compatible
query I rowsort label-8567
SELECT 37 * + CASE - 6 WHEN - 63 + 26 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 99 END AS col1
----
3663

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT ALL 10 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL 10 / + 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT COUNT ( * ) / 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL COUNT( * ) + + 92 + - 20 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( * ) + + 92 + - 20 AS col2
----
73

query I rowsort
SELECT 15 + 39
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8572
SELECT - 10 DIV - COALESCE ( + 53, + ( + COUNT( * ) ), - 85 ) * 53 - - COUNT( * ) DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 10 / - COALESCE ( + 53, + ( + COUNT ( * ) ), - 85 ) * 53 - - COUNT ( * ) / + 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT CASE COUNT( * ) WHEN - 56 THEN NULL ELSE + - 67 + - ( MAX( 68 ) ) END
----
-135

skipif mysql # not compatible
query I rowsort label-8573
SELECT CASE COUNT ( * ) WHEN - 56 THEN NULL ELSE + - 67 + - ( MAX ( 68 ) ) END
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL CAST( NULL AS SIGNED ) * + 52 * - 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL CAST ( NULL AS INTEGER ) * + 52 * - 48 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT - 48 * - 57 + - - CASE WHEN 26 < ( - 24 ) THEN - AVG ( - CAST( NULL AS SIGNED ) ) WHEN NOT ( - COUNT( - CASE NULLIF ( - 87, 2 * - 98 ) WHEN + 94 + + 77 THEN 73 ELSE 6 + 18 * + 33 END ) + + 57 ) <= 4 THEN NULL ELSE CAST( NULL AS SIGNED ) - 87 END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT - 48 * - 57 + - - CASE WHEN 26 < ( - 24 ) THEN - AVG ( - CAST ( NULL AS INTEGER ) ) WHEN NOT ( - COUNT ( - CASE NULLIF ( - 87, 2 * - 98 ) WHEN + 94 + + 77 THEN 73 ELSE 6 + 18 * + 33 END ) + + 57 ) <= 4 THEN NULL ELSE CAST ( NULL AS INTEGER ) - 87 END * 37
----
NULL

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

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

query I rowsort
SELECT ALL 91 * + + 9 + + 81 col1
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT 43 * + CASE + CASE - COUNT( * ) WHEN NULLIF ( 4, 53 * 58 ) * - 2 + - 20 THEN NULL WHEN - NULLIF ( - 79, + 62 ) THEN 49 END WHEN + 4 THEN NULLIF ( 21, + 16 - 53 ) * - 67 - 62 * - 29 WHEN - 98 * - 38 + 1 THEN NULL ELSE NULL END + - 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT 43 * + CASE + CASE - COUNT ( * ) WHEN NULLIF ( 4, 53 * 58 ) * - 2 + - 20 THEN NULL WHEN - NULLIF ( - 79, + 62 ) THEN 49 END WHEN + 4 THEN NULLIF ( 21, + 16 - 53 ) * - 67 - 62 * - 29 WHEN - 98 * - 38 + 1 THEN NULL ELSE NULL END + - 91 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + 53 * - 23 * + 33 * - MIN( 83 ) * + 66 + 17 AS col2
----
220363523

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 53 * - 23 * + 33 * - MIN ( 83 ) * + 66 + 17 AS col2
----
220363523

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT ALL - 80 DIV - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 80 / - 54 AS col2
----
1

query I rowsort
SELECT - + 98 + - 73 + + 76 * 82
----
6061

query I rowsort
SELECT ALL - 32 * - 58 - - 20
----
1876

query I rowsort
SELECT DISTINCT - - 0 * + - 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8584
SELECT ALL + CAST( NULL AS DECIMAL ) / + COALESCE ( + - 88, + 25 ) * ( + COUNT( * ) - 77 ) - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + CAST ( NULL AS REAL ) / + COALESCE ( + - 88, + 25 ) * ( + COUNT ( * ) - 77 ) - + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 68 - 44 * 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 68 - 44 * 70 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + + 71 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 8 * + 77 + - - 91 AS col1
----
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8588
SELECT - 99 - + COUNT( * ) AS col2, - COALESCE ( - + MIN( DISTINCT 1 ), + COUNT( * ), 42 - COUNT( * ) DIV 58 )
----
-100
1

skipif mysql # not compatible
query II rowsort label-8588
SELECT - 99 - + COUNT ( * ) AS col2, - COALESCE ( - + MIN ( DISTINCT 1 ), + COUNT ( * ), 42 - COUNT ( * ) / 58 )
----
-100
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - + SUM( DISTINCT ( - - 19 ) ) * + + 11
----
-209

skipif mysql # not compatible
query I rowsort label-8589
SELECT - + SUM ( DISTINCT ( - - 19 ) ) * + + 11
----
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT ALL + 33 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + 33 / - 82
----
0

query II rowsort
SELECT - 13 - - 19 AS col1, 30
----
6
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT MIN( - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8592
SELECT MIN ( - 92 ) AS col0
----
-92

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

skipif mysql # not compatible
query I rowsort label-8593
SELECT - ( + MAX ( - 60 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT MAX( ALL - - ( + 53 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT MAX ( ALL - - ( + 53 ) ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8595
SELECT - - 36 * - COALESCE ( + CASE 72 WHEN COUNT( * ) THEN NULL WHEN - 16 THEN CAST( NULL AS SIGNED ) + 14 END, ( - 66 ) DIV ( COUNT( * ) ) ) + + 36 * - 2 AS col0
----
2304

skipif mysql # not compatible
query I rowsort label-8595
SELECT - - 36 * - COALESCE ( + CASE 72 WHEN COUNT ( * ) THEN NULL WHEN - 16 THEN CAST ( NULL AS INTEGER ) + 14 END, ( - 66 ) / ( COUNT ( * ) ) ) + + 36 * - 2 AS col0
----
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT ALL - CAST( - + 56 AS SIGNED ) * - - CAST( + 32 AS SIGNED ) AS col1
----
1792

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - CAST ( - + 56 AS INTEGER ) * - - CAST ( + 32 AS INTEGER ) AS col1
----
1792

query I rowsort
SELECT - 63 - - 69 + 39 AS col0
----
45

query I rowsort
SELECT ALL - 81 * 7 + + 35
----
-532

query I rowsort
SELECT - 46 * - ( - 18 ) * - - 96
----
-79488

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + COUNT( * ) - + + 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8600
SELECT + COUNT ( * ) - + + 47 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - COALESCE ( 43, 78, + + ( - COUNT( * ) ) + 94 ) * COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - COALESCE ( 43, 78, + + ( - COUNT ( * ) ) + 94 ) * COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT ALL + 73 + - NULLIF ( + 27, 95 * - COUNT( * ) * COUNT( + 12 * + 70 ) - 46 ) + - 18 DIV 85
----
46

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + 73 + - NULLIF ( + 27, 95 * - COUNT ( * ) * COUNT ( + 12 * + 70 ) - 46 ) + - 18 / 85
----
46

query I rowsort
SELECT - 92 + 23 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT - COALESCE ( - + 2, - 90 DIV 17 + - 75 * COUNT( * ) + 4 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8604
SELECT - COALESCE ( - + 2, - 90 / 17 + - 75 * COUNT ( * ) + 4 ) AS col2
----
2

query I rowsort
SELECT - 10 * + - 13 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + 15 + + COUNT( DISTINCT + 82 )
----
16

skipif mysql # not compatible
query I rowsort label-8606
SELECT + 15 + + COUNT ( DISTINCT + 82 )
----
16

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

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT COUNT ( * ) + 73 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + COALESCE ( + - COUNT( * ), - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-8608
SELECT + COALESCE ( + - COUNT ( * ), - 21 )
----
-1

query II rowsort
SELECT DISTINCT + 1 AS col0, ( + + 87 ) AS col2
----
1
87

query I rowsort
SELECT - 62 * ( 76 ) - + 21
----
-4733

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT 75 DIV + ( + 42 ) + ( + + 10 ) DIV - 34 col2
----
1

skipif mysql # not compatible
query I rowsort label-8611
SELECT 75 / + ( + 42 ) + ( + + 10 ) / - 34 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8612
SELECT + ( 57 ) * + 76 AS col1, 54 * 22 * CASE + 39 WHEN - COUNT( * ) / COUNT( * ) - + MIN( ALL 48 ) THEN NULL ELSE COALESCE ( CAST( COUNT( * ) AS SIGNED ), - 20 * 22, + 2 ) + 20 END + + COALESCE ( 42, 90 ) * - CAST( NULL AS DECIMAL ) AS col2
----
4332
NULL

skipif mysql # not compatible
query II rowsort label-8612
SELECT + ( 57 ) * + 76 AS col1, 54 * 22 * CASE + 39 WHEN - COUNT ( * ) / COUNT ( * ) - + MIN ( ALL 48 ) THEN NULL ELSE COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), - 20 * 22, + 2 ) + 20 END + + COALESCE ( 42, 90 ) * - CAST ( NULL AS REAL ) AS col2
----
4332
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT + ( 40 ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT + ( 40 ) / + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + 72 + + + 16 + + 28 * 70 + - 37 * + MIN( DISTINCT + 70 )
----
-542

skipif mysql # not compatible
query I rowsort label-8614
SELECT + 72 + + + 16 + + 28 * 70 + - 37 * + MIN ( DISTINCT + 70 )
----
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + 90 * COUNT( * ) * - ( COALESCE ( - - 72, + 83 * + 88 ) ) AS col1
----
-6480

skipif mysql # not compatible
query I rowsort label-8615
SELECT + 90 * COUNT ( * ) * - ( COALESCE ( - - 72, + 83 * + 88 ) ) AS col1
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + CASE WHEN ( + SUM( DISTINCT - 98 ) ) IS NOT NULL THEN NULLIF ( COALESCE ( + 90, + 87 + - COUNT( * ) * - 43, + 34 ), - SUM( 61 ) / + 74 ) * - 60 END
----
-5400

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + CASE WHEN ( + SUM ( DISTINCT - 98 ) ) IS NOT NULL THEN NULLIF ( COALESCE ( + 90, + 87 + - COUNT ( * ) * - 43, + 34 ), - SUM ( 61 ) / + 74 ) * - 60 END
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT + ( - ( + COALESCE ( 5, 57 ) ) ) * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + ( - ( + COALESCE ( 5, 57 ) ) ) * COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT 92 * ( - + 66 ) + 42 + + COUNT( * ) * COUNT( * ) * - 21
----
-6051

skipif mysql # not compatible
query I rowsort label-8618
SELECT 92 * ( - + 66 ) + 42 + + COUNT ( * ) * COUNT ( * ) * - 21
----
-6051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT ALL CAST( NULL AS SIGNED ) * + 39 * 69 - NULLIF ( 19, - 50 / + CAST( - 67 * 12 AS SIGNED ) - 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL CAST ( NULL AS INTEGER ) * + 39 * 69 - NULLIF ( 19, - 50 / + CAST ( - 67 * 12 AS INTEGER ) - 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + + 6 + - MAX( 25 )
----
-19

skipif mysql # not compatible
query I rowsort label-8620
SELECT + + 6 + - MAX ( 25 )
----
-19

query I rowsort
SELECT + 75 * + 16 + - - 89
----
1289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8622
SELECT ( - + 64 ) * - + 29 DIV - + COUNT( * ) - 85 + - 46 col1
----
-1987

skipif mysql # not compatible
query I rowsort label-8622
SELECT ( - + 64 ) * - + 29 / - + COUNT ( * ) - 85 + - 46 col1
----
-1987

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT - + 25 DIV 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8623
SELECT - + 25 / 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + + 56 + NULLIF ( + COUNT( * ), + COUNT( * ) / + 8 ) * - 13 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8624
SELECT + + 56 + NULLIF ( + COUNT ( * ), + COUNT ( * ) / + 8 ) * - 13 AS col2
----
43

query I rowsort
SELECT + - 81 + - 2 * - + 18 * - NULLIF ( 31, + ( + 78 ) ) + 81 * 60
----
3663

query I rowsort
SELECT ALL - COALESCE ( - 94, - 11, 90 * - 25 + 31 * 53 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT CASE - MAX( + 22 ) WHEN + 77 THEN - 1 WHEN 46 + 12 THEN - 9 + 68 ELSE CASE + MAX( DISTINCT - ( - 44 ) ) WHEN + 3 + 58 THEN NULL WHEN + 35 + + 74 THEN NULL ELSE ( CAST( + 8 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) END * - COUNT( * ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT CASE - MAX ( + 22 ) WHEN + 77 THEN - 1 WHEN 46 + 12 THEN - 9 + 68 ELSE CASE + MAX ( DISTINCT - ( - 44 ) ) WHEN + 3 + 58 THEN NULL WHEN + 35 + + 74 THEN NULL ELSE ( CAST ( + 8 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) END * - COUNT ( * ) + COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT ALL - - 15 * + 15 + + 21 + + + 49 + + - 74 + + 8 * 5 + 95
----
356

query I rowsort
SELECT - - 76 * CASE + 4 WHEN + 31 THEN - - 98 WHEN 17 THEN NULL ELSE NULL END + + 23 + + 51 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL COUNT( * ) * CASE 60 WHEN - COUNT( * ) THEN - - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL COUNT ( * ) * CASE 60 WHEN - COUNT ( * ) THEN - - 64 END
----
NULL

query I rowsort
SELECT ALL - 41 + - 69 * 13
----
-938

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

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

query I rowsort
SELECT 24 + + 3 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT 63 + + 15 + - - SUM( + 54 ) * 90 * - 70 * + 56
----
-19051122

skipif mysql # not compatible
query I rowsort label-8635
SELECT 63 + + 15 + - - SUM ( + 54 ) * 90 * - 70 * + 56
----
-19051122

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT ALL 92 + + 16, ( + - COUNT( * ) ) * - CASE + 31 WHEN 32 * + ( 10 ) THEN 43 ELSE NULL END AS col1
----
108
NULL

skipif mysql # not compatible
query II rowsort label-8636
SELECT ALL 92 + + 16, ( + - COUNT ( * ) ) * - CASE + 31 WHEN 32 * + ( 10 ) THEN 43 ELSE NULL END AS col1
----
108
NULL

query I rowsort
SELECT ALL + 42 + + + CASE - 92 WHEN + ( + - 20 ) / + 45 THEN 60 - + 43 ELSE + 96 + + 54 END + 1 AS col0
----
193

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT ALL 45 AS col1, + 80 - SUM( 90 ) * 81 col0
----
45
-7210

skipif mysql # not compatible
query II rowsort label-8639
SELECT ALL 45 AS col1, + 80 - SUM ( 90 ) * 81 col0
----
45
-7210

query I rowsort
SELECT 59 + - 97 + + 68 - - + 20 AS col2
----
50

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

skipif mysql # not compatible
query II rowsort label-8641
SELECT - 98 AS col0, ( - CAST ( NULL AS INTEGER ) )
----
-98
NULL

query I rowsort
SELECT DISTINCT + 97 * + 41 * 11 AS col1
----
43747

query I rowsort
SELECT 43 * 25
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT 49 + - - COALESCE ( + + MAX( - 9 ), 27 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8644
SELECT 49 + - - COALESCE ( + + MAX ( - 9 ), 27 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8645
SELECT SUM( DISTINCT + - 57 ) DIV - 79 - + 3, 84 + + 61 + - CAST( NULL AS SIGNED ) AS col2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8645
SELECT SUM ( DISTINCT + - 57 ) / - 79 - + 3, 84 + + 61 + - CAST ( NULL AS INTEGER ) AS col2
----
-3
NULL

query II rowsort
SELECT 94 + + 95 AS col2, 81 col0
----
189
81

query I rowsort
SELECT DISTINCT - 7 - + + 24 + - 34
----
-65

query II rowsort
SELECT DISTINCT - 36, + 47 AS col2
----
-36
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8649
SELECT 23 + + - CAST( + COALESCE ( + 64, - 91, 62 ) AS SIGNED ) DIV NULLIF ( - 67, - 37 * 67 + 90 * NULLIF ( - 15, COALESCE ( AVG ( + 6 ), 63 ) * - 12 ) )
----
23

skipif mysql # not compatible
query I rowsort label-8649
SELECT 23 + + - CAST ( + COALESCE ( + 64, - 91, 62 ) AS INTEGER ) / NULLIF ( - 67, - 37 * 67 + 90 * NULLIF ( - 15, COALESCE ( AVG ( + 6 ), 63 ) * - 12 ) )
----
23

query I rowsort
SELECT - 92 * 53
----
-4876

query I rowsort
SELECT + - 52 * + + ( + + 48 ) + - + 31 + + - 38 * + 99
----
-6289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT + SUM( + NULLIF ( + + CAST( - 77 AS SIGNED ), - 29 ) ) DIV + - 21
----
3

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + SUM ( + NULLIF ( + + CAST ( - 77 AS INTEGER ), - 29 ) ) / + - 21
----
3

query I rowsort
SELECT 46 * + 60 AS col2
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT + COALESCE ( 27, + 74, + ( - 78 ) ) * CAST( 16 AS SIGNED )
----
432

skipif mysql # not compatible
query I rowsort label-8654
SELECT + COALESCE ( 27, + 74, + ( - 78 ) ) * CAST ( 16 AS INTEGER )
----
432

query I rowsort
SELECT ALL + 66 * - 66 + + 12 AS col0
----
-4344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8656
SELECT - CAST( - - 49 AS SIGNED ) AS col0, + 9
----
-49
9

skipif mysql # not compatible
query II rowsort label-8656
SELECT - CAST ( - - 49 AS INTEGER ) AS col0, + 9
----
-49
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8657
SELECT ALL 7 * 44 col1, - 64 DIV + 33 AS col1
----
308
-1

skipif mysql # not compatible
query II rowsort label-8657
SELECT ALL 7 * 44 col1, - 64 / + 33 AS col1
----
308
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT ALL ( + + 58 ) * + CAST( - - 33 AS SIGNED ) * - 98
----
-187572

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL ( + + 58 ) * + CAST ( - - 33 AS INTEGER ) * - 98
----
-187572

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

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

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

query I rowsort
SELECT DISTINCT - 58 * - + 14
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - NULLIF ( - 19, - 69 ) * 16 + - SUM( DISTINCT - 23 ) + - 51
----
276

skipif mysql # not compatible
query I rowsort label-8662
SELECT - NULLIF ( - 19, - 69 ) * 16 + - SUM ( DISTINCT - 23 ) + - 51
----
276

query I rowsort
SELECT COALESCE ( 10, 94, + 34 + - - 49, - 88 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL + NULLIF ( + NULLIF ( - - 39, + 87 ), + - NULLIF ( - 33, + SUM( ALL - 99 ) + - ( + 75 + - 56 * 11 ) ) * 55 ) * 86
----
3354

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + NULLIF ( + NULLIF ( - - 39, + 87 ), + - NULLIF ( - 33, + SUM ( ALL - 99 ) + - ( + 75 + - 56 * 11 ) ) * 55 ) * 86
----
3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT 66 + - - CAST( NULL AS SIGNED ) / 25 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 66 + - - CAST ( NULL AS INTEGER ) / 25 - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - CASE - 14 WHEN MIN( + 43 ) THEN - 87 WHEN - 5 + 76 THEN NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT - CASE - 14 WHEN MIN ( + 43 ) THEN - 87 WHEN - 5 + 76 THEN NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT + 45 * - NULLIF ( + COUNT( * ), - 13 ) AS col2, 35
----
-45
35

skipif mysql # not compatible
query II rowsort label-8667
SELECT + 45 * - NULLIF ( + COUNT ( * ), - 13 ) AS col2, 35
----
-45
35

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

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

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

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

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

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

query I rowsort
SELECT ALL - 89 + - 89
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT COALESCE ( 12, - + COALESCE ( 45, + 86 DIV + 17 - + 82, 31 ) ) - + 60 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8672
SELECT COALESCE ( 12, - + COALESCE ( 45, + 86 / + 17 - + 82, 31 ) ) - + 60 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT - + 87 AS col1, COUNT( * ) * - 70 AS col1
----
-87
-70

skipif mysql # not compatible
query II rowsort label-8673
SELECT - + 87 AS col1, COUNT ( * ) * - 70 AS col1
----
-87
-70

query I rowsort
SELECT ( - + 37 ) + 73 + - ( 26 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT 37 + ( + + 58 ) * + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8675
SELECT 37 + ( + + 58 ) * + COUNT ( * )
----
95

query I rowsort
SELECT ALL 51 + + + 81
----
132

query I rowsort
SELECT ALL + 56 + + 17
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT 62 - + - MAX( ALL - 14 ) + - 44 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8679
SELECT 62 - + - MAX ( ALL - 14 ) + - 44 AS col1
----
4

query I rowsort
SELECT DISTINCT 80 * - + 60
----
-4800

query I rowsort
SELECT ALL 38 * 36 AS col2
----
1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT CAST( NULL AS SIGNED ) * + 49 * - 0 * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT CAST ( NULL AS INTEGER ) * + 49 * - 0 * 60 AS col0
----
NULL

query I rowsort
SELECT 78 * + 48
----
3744

query I rowsort
SELECT 62 + - 98 * + 56 AS col2
----
-5426

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT 97 - - MIN( + 62 ) * + 82 * - 13 + 5
----
-65990

skipif mysql # not compatible
query I rowsort label-8685
SELECT 97 - - MIN ( + 62 ) * + 82 * - 13 + 5
----
-65990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT ALL - 21 DIV - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL - 21 / - COUNT ( * )
----
21

query I rowsort
SELECT 68 * + NULLIF ( 34, + 5 ) AS col0
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL MIN( ALL + - ( - - 43 ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL MIN ( ALL + - ( - - 43 ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT NULLIF ( + NULLIF ( + MIN( - 19 ), - + ( - COUNT( * ) ) + - + 63 ), 18 - NULLIF ( 95 - 28 * - 23, + CASE 16 WHEN - 10 + + SUM( DISTINCT - 63 + 55 * 76 ) THEN NULL WHEN + 0 THEN NULL ELSE + 57 + NULLIF ( 52, ( 51 ) * 90 ) END * CASE 97 + - 75 * 41 WHEN 45 THEN NULL WHEN 4 * 3 THEN 42 END ) ) * + 5
----
-95

skipif mysql # not compatible
query I rowsort label-8689
SELECT NULLIF ( + NULLIF ( + MIN ( - 19 ), - + ( - COUNT ( * ) ) + - + 63 ), 18 - NULLIF ( 95 - 28 * - 23, + CASE 16 WHEN - 10 + + SUM ( DISTINCT - 63 + 55 * 76 ) THEN NULL WHEN + 0 THEN NULL ELSE + 57 + NULLIF ( 52, ( 51 ) * 90 ) END * CASE 97 + - 75 * 41 WHEN 45 THEN NULL WHEN 4 * 3 THEN 42 END ) ) * + 5
----
-95

query I rowsort
SELECT + ( + + 0 ) * - + 16 * + + ( + 4 ) * 79
----
0

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

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

query I rowsort
SELECT - 66 + + ( + 49 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT ALL + 40 * - + SUM( ALL + - 17 ) + - CAST( + 49 AS SIGNED ) + + COUNT( * ) * + - 45 AS col2
----
586

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + 40 * - + SUM ( ALL + - 17 ) + - CAST ( + 49 AS INTEGER ) + + COUNT ( * ) * + - 45 AS col2
----
586

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT - 93 DIV - 90 + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 93 / - 90 + - 64
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - - MIN( 10 ) * 8 + + 23 + + 53 + + 40 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-8696
SELECT - - MIN ( 10 ) * 8 + + 23 + + 53 + + 40 AS col0
----
196

query I rowsort
SELECT ALL - COALESCE ( - 6, - - 70 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT DISTINCT - + 47 + + + CAST( + - 79 AS SIGNED ) col2
----
-126

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - + 47 + + + CAST ( + - 79 AS INTEGER ) col2
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT + 51 + CASE 37 WHEN - - 84 * - 97 * + 95 * + + 45 THEN - COUNT( * ) ELSE 57 - - 75 DIV + 76 END - 74 col2
----
34

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + 51 + CASE 37 WHEN - - 84 * - 97 * + 95 * + + 45 THEN - COUNT ( * ) ELSE 57 - - 75 / + 76 END - 74 col2
----
34

query I rowsort
SELECT - 1 * - COALESCE ( 89, + - 36 ) * + 6 + + 64
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL 26 * SUM( - - 71 ) * - COUNT( * ) - + 52 * - 1 - 41
----
-1835

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL 26 * SUM ( - - 71 ) * - COUNT ( * ) - + 52 * - 1 - 41
----
-1835

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - MAX( - NULLIF ( 21, - 16 ) ) + 55
----
76

skipif mysql # not compatible
query I rowsort label-8702
SELECT - MAX ( - NULLIF ( 21, - 16 ) ) + 55
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - 5 * - COUNT( * ) - 0
----
5

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 5 * - COUNT ( * ) - 0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT DISTINCT 40 * - MAX( ALL 27 ) AS col2, - NULLIF ( + - 60, COALESCE ( - + MAX( DISTINCT - - 73 ), 75 * + ( - 89 * - 70 ) ) - 98 ) + + 27 AS col0
----
-1080
87

skipif mysql # not compatible
query II rowsort label-8704
SELECT DISTINCT 40 * - MAX ( ALL 27 ) AS col2, - NULLIF ( + - 60, COALESCE ( - + MAX ( DISTINCT - - 73 ), 75 * + ( - 89 * - 70 ) ) - 98 ) + + 27 AS col0
----
-1080
87

query I rowsort
SELECT DISTINCT 98 + - 16 * + 26 + - 90 AS col0
----
-408

query I rowsort
SELECT ALL 57 + - 3 * + - ( - 52 ) AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT ALL + COALESCE ( + - 21, + - 1 DIV + - 14 DIV 18 ) * 38 + - SUM( 7 )
----
-805

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + COALESCE ( + - 21, + - 1 / + - 14 / 18 ) * 38 + - SUM ( 7 )
----
-805

query I rowsort
SELECT ALL 33 - - 63 + - 46 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8709
SELECT + 39 + - 87 DIV + ( - 94 ) + + 60 - - 84 AS col0, - 37 + - COUNT( 61 ) * 23 AS col0
----
183
-60

skipif mysql # not compatible
query II rowsort label-8709
SELECT + 39 + - 87 / + ( - 94 ) + + 60 - - 84 AS col0, - 37 + - COUNT ( 61 ) * 23 AS col0
----
183
-60

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

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

query II rowsort
SELECT + 81 * 25 + 84 AS col0, 41 AS col2
----
2109
41

query I rowsort
SELECT ALL 97 - + 32 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8713
SELECT DISTINCT 92, COUNT( * ) * + 20 * 46 AS col1
----
92
920

skipif mysql # not compatible
query II rowsort label-8713
SELECT DISTINCT 92, COUNT ( * ) * + 20 * 46 AS col1
----
92
920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8714
SELECT ALL 98, - ( + 19 ) * ( 50 ) DIV 47 + MIN( + 38 ) - 38 * 4 + + COUNT( * ) * 11 AS col2
----
98
-123

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL 98, - ( + 19 ) * ( 50 ) / 47 + MIN ( + 38 ) - 38 * 4 + + COUNT ( * ) * 11 AS col2
----
98
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + ( COUNT( + 22 ) ) + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8715
SELECT + ( COUNT ( + 22 ) ) + - 10 AS col2
----
-9

query II rowsort
SELECT 75 col1, 44
----
75
44

query II rowsort
SELECT ALL 56, + 98 + + 33 AS col2
----
56
131

query I rowsort
SELECT ALL 44 - + + CASE - 75 WHEN + - ( - 12 ) THEN NULL ELSE - 27 * - - 70 * - + 63 * 9 END + - 73 * + 43
----
-1074725

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + 49 * + - 19 * COUNT( * ), 15 AS col2
----
-931
15

skipif mysql # not compatible
query II rowsort label-8719
SELECT + 49 * + - 19 * COUNT ( * ), 15 AS col2
----
-931
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT ALL 55 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 55 / + 92
----
0

query I rowsort
SELECT + 67 + 2 + + + 1 col1
----
70

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

query I rowsort
SELECT DISTINCT 90 * 76 AS col1
----
6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT + 13 DIV - MIN( DISTINCT - - 18 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT + 13 / - MIN ( DISTINCT - - 18 ) AS col0
----
0

query I rowsort
SELECT ALL 25 * - 99 * 53 AS col2
----
-131175

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

skipif mysql # not compatible
query I rowsort label-8726
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - - 13 + - 48
----
-35

query I rowsort
SELECT ALL + - CASE - + 22 WHEN 92 THEN - 31 END
----
NULL

query I rowsort
SELECT + + 44 * 3 col2
----
132

query I rowsort
SELECT - + 38 + - 55 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8731
SELECT ALL + 86 * - 18 + - NULLIF ( - + 17, + - NULLIF ( + + 12, + COUNT( * ) ) + + - CAST( + 90 AS SIGNED ) * - 19 ) DIV COUNT( * )
----
-1531

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + 86 * - 18 + - NULLIF ( - + 17, + - NULLIF ( + + 12, + COUNT ( * ) ) + + - CAST ( + 90 AS INTEGER ) * - 19 ) / COUNT ( * )
----
-1531

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + + COALESCE ( + + 72, + - 38 * - 27 + - SUM( + + 93 ) - - 52 - 66 )
----
72

skipif mysql # not compatible
query I rowsort label-8732
SELECT + + COALESCE ( + + 72, + - 38 * - 27 + - SUM ( + + 93 ) - - 52 - 66 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - COALESCE ( + 6, 41 ) * - 76 + - - 85 + CASE 13 WHEN + - ( MIN( DISTINCT - 16 ) ) THEN NULL ELSE COUNT( * ) END
----
542

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - COALESCE ( + 6, 41 ) * - 76 + - - 85 + CASE 13 WHEN + - ( MIN ( DISTINCT - 16 ) ) THEN NULL ELSE COUNT ( * ) END
----
542

query I rowsort
SELECT DISTINCT - 43 * - 46 * + 98 + - - 12 * - - 91 col2
----
194936

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT + COALESCE ( + 50, - ( + 43 ) * 36, + + 44 - 58 - 9 + - 53 * 80 * COUNT( * ) * 11 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8735
SELECT + COALESCE ( + 50, - ( + 43 ) * 36, + + 44 - 58 - 9 + - 53 * 80 * COUNT ( * ) * 11 ) AS col0
----
50

query II rowsort
SELECT ALL + 14 AS col0, + 60
----
14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT + + 28 * + 79 * + - 62 + + + COUNT( * )
----
-137143

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + + 28 * + 79 * + - 62 + + + COUNT ( * )
----
-137143

query I rowsort
SELECT ALL - + 62 * + 98 + + 44 * + 13 + + - 87
----
-5591

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

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

query II rowsort
SELECT 4 AS col1, + 54 AS col0
----
4
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - - SUM( ALL + - 43 ) * - COUNT( * ) + + + ( + 39 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - - SUM ( ALL + - 43 ) * - COUNT ( * ) + + + ( + 39 ) col2
----
82

query I rowsort
SELECT - + 36 + 83 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT DISTINCT - 99 * + + 6 + 5 DIV 83 - 84 AS col2
----
-678

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - 99 * + + 6 + 5 / 83 - 84 AS col2
----
-678

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT DISTINCT - NULLIF ( 11, + + 89 ) * + 66 * + CAST( NULL AS SIGNED ) * + + 99 AS col1, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8744
SELECT DISTINCT - NULLIF ( 11, + + 89 ) * + 66 * + CAST ( NULL AS INTEGER ) * + + 99 AS col1, + 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - CASE - 27 WHEN - NULLIF ( COUNT( * ), + + 96 ) THEN 98 + - 54 END * - 6 - + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - CASE - 27 WHEN - NULLIF ( COUNT ( * ), + + 96 ) THEN 98 + - 54 END * - 6 - + 81 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT ALL - MIN( - 81 ) * - + 98 AS col0, COALESCE ( + 45, + ( ( - COUNT( DISTINCT - 54 ) ) ) * + COUNT( * ) + MAX( ALL 91 ) )
----
-7938
45

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL - MIN ( - 81 ) * - + 98 AS col0, COALESCE ( + 45, + ( ( - COUNT ( DISTINCT - 54 ) ) ) * + COUNT ( * ) + MAX ( ALL 91 ) )
----
-7938
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL + CASE - + ( 32 ) WHEN + - CAST( - + 88 AS SIGNED ) THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + CASE - + ( 32 ) WHEN + - CAST ( - + 88 AS INTEGER ) THEN 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT COALESCE ( - 5, + - 81 * - 38 DIV - 16 + - 74, - + 27 * + - 29 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8748
SELECT COALESCE ( - 5, + - 81 * - 38 / - 16 + - 74, - + 27 * + - 29 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT DISTINCT + ( - 49 ), - 19 + - ( - - CAST( NULL AS SIGNED ) ) * - 15 AS col0
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-8749
SELECT DISTINCT + ( - 49 ), - 19 + - ( - - CAST ( NULL AS INTEGER ) ) * - 15 AS col0
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - 27 * - ( - - ( + 35 ) ) * - COUNT( * ) + - 17 + 15 - - 60 AS col0
----
-887

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 27 * - ( - - ( + 35 ) ) * - COUNT ( * ) + - 17 + 15 - - 60 AS col0
----
-887

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT - 33 * - - COALESCE ( + + 84, - 80 ), COUNT( * ) + + + COUNT( * ) AS col1
----
-2772
2

skipif mysql # not compatible
query II rowsort label-8751
SELECT - 33 * - - COALESCE ( + + 84, - 80 ), COUNT ( * ) + + + COUNT ( * ) AS col1
----
-2772
2

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

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( * ) - - - 11 + + 84 AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT + MIN( ALL + 95 ) DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8753
SELECT + MIN ( ALL + 95 ) / - 68 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT - ( - 33 ) + - CAST( + 38 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8754
SELECT - ( - 33 ) + - CAST ( + 38 AS INTEGER ) AS col1
----
-5

query I rowsort
SELECT ALL ( + + 86 ) col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT - 39 DIV 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - 39 / 65 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT + MIN( DISTINCT - 22 ) DIV 17 * + 81 * 47 + - + 89 * + 38 * - 92 * 61 AS col1
----
18975977

skipif mysql # not compatible
query I rowsort label-8757
SELECT + MIN ( DISTINCT - 22 ) / 17 * + 81 * 47 + - + 89 * + 38 * - 92 * 61 AS col1
----
18975977

query I rowsort
SELECT + 26 - + 47 AS col2
----
-21

query I rowsort
SELECT DISTINCT 49 * 32 AS col0
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - SUM( 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-8760
SELECT - SUM ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL 2 + - ( - MAX( + 72 ) )
----
74

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 2 + - ( - MAX ( + 72 ) )
----
74

query I rowsort
SELECT + 7 * + + 13 AS col1
----
91

query I rowsort
SELECT + ( - - NULLIF ( - - 80, + 38 ) ) + + 93 + + 11 * 81 AS col2
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL COUNT( ALL 59 ) + - 32 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL COUNT ( ALL 59 ) + - 32 AS col0
----
-31

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

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT - 59 + - COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT - 9 * + 50 + + ( 51 ) AS col2
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT COUNT( * ) * + ( + - CASE - NULLIF ( - ( - 11 ), + NULLIF ( - + 9, - 51 * - 41 ) * - MAX( 11 ) ) WHEN - 43 THEN NULL WHEN + COUNT( * ) * + 76 THEN - 10 ELSE NULL END ) + + 68 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT COUNT ( * ) * + ( + - CASE - NULLIF ( - ( - 11 ), + NULLIF ( - + 9, - 51 * - 41 ) * - MAX ( 11 ) ) WHEN - 43 THEN NULL WHEN + COUNT ( * ) * + 76 THEN - 10 ELSE NULL END ) + + 68 * 26
----
NULL

query I rowsort
SELECT ALL + 91 - + 12 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL - + 17 - - + ( - COUNT ( * ) ) AS col1
----
-18

query I rowsort
SELECT NULLIF ( + ( + - 70 ), - + 81 + 68 + - 95 / 24 * + 32 ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT 42 * - 56 DIV - COUNT( * ) AS col2
----
2352

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT 42 * - 56 / - COUNT ( * ) AS col2
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL + 10 - + 76 AS col0, COUNT( * ) + - 78
----
-66
-77

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL + 10 - + 76 AS col0, COUNT ( * ) + - 78
----
-66
-77

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

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

query I rowsort
SELECT 30 * 40 + 82 AS col1
----
1282

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL - NULLIF ( + + 96, - COALESCE ( - 49, - 65 * - COUNT( * ) + 40 / + 5 / - - 23 * 61, + 15 ) + - 58 )
----
-96

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - NULLIF ( + + 96, - COALESCE ( - 49, - 65 * - COUNT ( * ) + 40 / + 5 / - - 23 * 61, + 15 ) + - 58 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT 62 + 85 + + COUNT( * ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-8776
SELECT 62 + 85 + + COUNT ( * ) AS col1
----
148

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT 72 + COUNT( * ) DIV + 42 col0
----
72

skipif mysql # not compatible
query I rowsort label-8778
SELECT 72 + COUNT ( * ) / + 42 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT 24 * - 51 + - 65 + - 95 - + 72 * + + 46 * COUNT( * ) * - - 98 AS col1
----
-325960

skipif mysql # not compatible
query I rowsort label-8779
SELECT 24 * - 51 + - 65 + - 95 - + 72 * + + 46 * COUNT ( * ) * - - 98 AS col1
----
-325960

query I rowsort
SELECT 78 * 51
----
3978

query I rowsort
SELECT ALL - 52 * + - 39 AS col0
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT COUNT( + 73 ) + + ( + 38 )
----
39

skipif mysql # not compatible
query I rowsort label-8782
SELECT COUNT ( + 73 ) + + ( + 38 )
----
39

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

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

query I rowsort
SELECT ALL - 25 * + 82
----
-2050

query I rowsort
SELECT 68 * + 96 AS col2
----
6528

query I rowsort
SELECT ALL - 34 * 49 * - + 69 * - + 26 AS col0
----
-2988804

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

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

query I rowsort
SELECT 94 * 88 * + - 99 * + 22
----
-18016416

query I rowsort
SELECT 6 + + 53 AS col2
----
59

query II rowsort
SELECT - 61 col1, + 92 + + CASE WHEN ( 53 ) IS NULL THEN 13 - 85 ELSE NULL END col0
----
-61
NULL

query I rowsort
SELECT ALL + 90 + - - 50 + 4 + - 6 - 46 / + - NULLIF ( + 24, + 30 ) + 53 * 51 * CASE - 96 WHEN 93 THEN ( + AVG ( - ( + 43 ) ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT 84 + 30
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT 93 + - 49 DIV + 32 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8793
SELECT 93 + - 49 / + 32 AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL 62 * - 27 + + + COUNT( * ) AS col1, COUNT( * ) * + - 29 + + 48
----
-1673
19

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL 62 * - 27 + + + COUNT ( * ) AS col1, COUNT ( * ) * + - 29 + + 48
----
-1673
19

query I rowsort
SELECT ALL + 21 + + ( + - 72 )
----
-51

query II rowsort
SELECT 21 AS col1, 79
----
21
79

query I rowsort
SELECT + 55 + + 50 AS col0
----
105

query I rowsort
SELECT DISTINCT - 30 + 35
----
5

query I rowsort
SELECT + 68 + + 28 * + - 97 - - 4 AS col0
----
-2644

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT 85 + + 63 DIV NULLIF ( - 82, + MIN( ALL + 39 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8801
SELECT 85 + + 63 / NULLIF ( - 82, + MIN ( ALL + 39 ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - - MAX( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8802
SELECT - - MAX ( - 57 ) AS col1
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT - COALESCE ( + 7, + 73 * - MIN( ALL - 33 ) * - 90 * + 21 * 58, 86 ) + + 76 + + 51 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8804
SELECT - COALESCE ( + 7, + 73 * - MIN ( ALL - 33 ) * - 90 * + 21 * 58, 86 ) + + 76 + + 51 AS col0
----
120

query I rowsort
SELECT 77 * + 19
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL 87 - + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL 87 - + COUNT ( * )
----
86

query I rowsort
SELECT 56 * + 87
----
4872

query I rowsort
SELECT ALL 14 * - 53
----
-742

query I rowsort
SELECT ALL + 54 - + + 12 AS col2
----
42

query I rowsort
SELECT + NULLIF ( + 7, 50 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ( - COUNT( - 98 ) ) * + 0 + - + ( CASE + COUNT( * ) WHEN 49 * - + NULLIF ( + 39, - ( - 65 ) ) - 2 THEN NULL WHEN 86 THEN + AVG ( DISTINCT 29 ) * - 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ( - COUNT ( - 98 ) ) * + 0 + - + ( CASE + COUNT ( * ) WHEN 49 * - + NULLIF ( + 39, - ( - 65 ) ) - 2 THEN NULL WHEN 86 THEN + AVG ( DISTINCT 29 ) * - 26 END )
----
NULL

query II rowsort
SELECT 61 AS col2, 4
----
61
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8813
SELECT CAST( MIN( DISTINCT + + 55 ) AS SIGNED ) DIV + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8813
SELECT CAST ( MIN ( DISTINCT + + 55 ) AS INTEGER ) / + COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT 16 * 2 * - 65 AS col2
----
-2080

query I rowsort
SELECT ( + - 49 ) * 20 AS col0
----
-980

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL 15 + + MAX( - - 85 ) - - - 30
----
70

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 15 + + MAX ( - - 85 ) - - - 30
----
70

query I rowsort
SELECT ALL + 66 + 18 + - 52
----
32

query I rowsort
SELECT 77 + - 56 + - + 93 AS col2
----
-72

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

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 96 + - 74 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL COUNT( * ) AS col0, COALESCE ( + 57, - - SUM( ALL - 23 ), 65 ) + + 66
----
1
123

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL COUNT ( * ) AS col0, COALESCE ( + 57, - - SUM ( ALL - 23 ), 65 ) + + 66
----
1
123

query II rowsort
SELECT - 16, 64 AS col2
----
-16
64

query I rowsort
SELECT 22 + - 73 AS col0
----
-51

query I rowsort
SELECT ALL + 26 + - + 74 * - + 43
----
3208

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT COALESCE ( - - SUM( 55 ), - COUNT( * ) + COUNT( * ) * - 87 ) * - 51 * + 59 AS col0
----
-165495

skipif mysql # not compatible
query I rowsort label-8826
SELECT COALESCE ( - - SUM ( 55 ), - COUNT ( * ) + COUNT ( * ) * - 87 ) * - 51 * + 59 AS col0
----
-165495

onlyif mysql # DIV for integer division: 
query II rowsort label-8827
SELECT ALL 74 AS col1, - 36 DIV + 15 AS col1
----
74
-2

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL 74 AS col1, - 36 / + 15 AS col1
----
74
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - COUNT( * ) - 18
----
-19

skipif mysql # not compatible
query I rowsort label-8828
SELECT - COUNT ( * ) - 18
----
-19

query I rowsort
SELECT CASE + 20 WHEN + - 15 THEN NULL WHEN - 7 THEN - - NULLIF ( 43, - 98 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 18, 61 * - 58 - + ( 22 ) )
----
-18

query I rowsort
SELECT + 88 * + NULLIF ( + + 86, + + ( + 66 ) + + 16 )
----
7568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ( - - ( + CASE + + 25 WHEN - 42 THEN ( - ( MIN( ALL - 62 ) ) ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ( - - ( + CASE + + 25 WHEN - 42 THEN ( - ( MIN ( ALL - 62 ) ) ) END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8834
SELECT ALL 25, 73 DIV 89 * - 27 * - 89 AS col0
----
25
0

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL 25, 73 / 89 * - 27 * - 89 AS col0
----
25
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT DISTINCT - - 96 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - - 96 / + 81
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT - 59 DIV 45
----
-1

skipif mysql # not compatible
query I rowsort label-8836
SELECT - 59 / 45
----
-1

query I rowsort
SELECT - COALESCE ( - 30, + 18 ) AS col1
----
30

query II rowsort
SELECT ALL 31 AS col1, + 91
----
31
91

query I rowsort
SELECT ALL + 25 * - 49
----
-1225

query I rowsort
SELECT - - 79 * + 57 + - 50 col0
----
4453

query I rowsort
SELECT - - 7 * - - 69 + - 58 + + + 89 + - 11 + - 81 * - + 67 + + 28 AS col2
----
5958

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT + + 4, + ( 64 ) * - MAX( DISTINCT + 29 ) col2
----
4
-1856

skipif mysql # not compatible
query II rowsort label-8842
SELECT + + 4, + ( 64 ) * - MAX ( DISTINCT + 29 ) col2
----
4
-1856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8843
SELECT + COUNT( * ), + 4 - 87 + + 30 DIV + - 23 AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-8843
SELECT + COUNT ( * ), + 4 - 87 + + 30 / + - 23 AS col0
----
1
-84

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

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

query I rowsort
SELECT 28 * - + 42 + 88
----
-1088

query II rowsort
SELECT - 54 AS col1, - 2
----
-54
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( + 24 ) + + 49 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( + 24 ) + + 49 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + NULLIF ( + 98, - 52 + - 55 - + 49 / + - 66 - - - NULLIF ( + 61, + COUNT( * ) ) * - + COUNT( * ) * - 55 / - - COUNT( * ) ) * - 17 - + 87 AS col2
----
-1753

skipif mysql # not compatible
query I rowsort label-8848
SELECT + NULLIF ( + 98, - 52 + - 55 - + 49 / + - 66 - - - NULLIF ( + 61, + COUNT ( * ) ) * - + COUNT ( * ) * - 55 / - - COUNT ( * ) ) * - 17 - + 87 AS col2
----
-1753

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT CASE - CASE - 17 WHEN 13 * - 79 THEN - - 75 END WHEN + 81 + + ( 54 ) + + + 35 THEN - + 83 * + + 20 WHEN AVG ( ( - 50 ) ) THEN 2 * + 33 - MAX( - 50 + 85 * 53 ) WHEN + SUM( DISTINCT - 61 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT CASE - CASE - 17 WHEN 13 * - 79 THEN - - 75 END WHEN + 81 + + ( 54 ) + + + 35 THEN - + 83 * + + 20 WHEN AVG ( ( - 50 ) ) THEN 2 * + 33 - MAX ( - 50 + 85 * 53 ) WHEN + SUM ( DISTINCT - 61 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT ALL 52 * 52 DIV + - 4 + 13 - + 36
----
-699

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL 52 * 52 / + - 4 + 13 - + 36
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT COUNT( - - 39 ) * + NULLIF ( 8, + ( 10 ) * 29 - + 51 ) + - + NULLIF ( - COUNT( * ), + 21 ) * ( 15 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT COUNT ( - - 39 ) * + NULLIF ( 8, + ( 10 ) * 29 - + 51 ) + - + NULLIF ( - COUNT ( * ), + 21 ) * ( 15 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL - 66 * CASE + 49 WHEN - 34 / - 27 THEN + CAST( 45 AS SIGNED ) WHEN + - 3 + + CASE + 69 WHEN - - COUNT( * ) THEN 54 + - COUNT( * ) / 22 WHEN 88 * COUNT( * ) THEN ( - 52 ) WHEN - 47 THEN + CAST( NULL AS SIGNED ) / 19 END THEN 12 ELSE COUNT( DISTINCT 50 ) + 71 END * - 92 + 36 AS col0
----
437220

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL - 66 * CASE + 49 WHEN - 34 / - 27 THEN + CAST ( 45 AS INTEGER ) WHEN + - 3 + + CASE + 69 WHEN - - COUNT ( * ) THEN 54 + - COUNT ( * ) / 22 WHEN 88 * COUNT ( * ) THEN ( - 52 ) WHEN - 47 THEN + CAST ( NULL AS INTEGER ) / 19 END THEN 12 ELSE COUNT ( DISTINCT 50 ) + 71 END * - 92 + 36 AS col0
----
437220

query I rowsort
SELECT 98 * + - 56 + + - ( + - 22 )
----
-5466

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT DISTINCT 91 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT 91 / 67
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT DISTINCT 39 * + - COUNT( * ) * + 5 / - ( + CAST( NULL AS SIGNED ) ) + - ( - AVG ( + 40 ) ) * + ( - ( NULLIF ( - 34, 14 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT 39 * + - COUNT ( * ) * + 5 / - ( + CAST ( NULL AS INTEGER ) ) + - ( - AVG ( + 40 ) ) * + ( - ( NULLIF ( - 34, 14 ) ) )
----
NULL

query I rowsort
SELECT ALL + 40 * 14 + - + 29
----
531

query I rowsort
SELECT 99 * 15 * + - 58 + - 51 AS col2
----
-86181

query I rowsort
SELECT + COALESCE ( + - 27, + 91 - 79 * + 62, + 87 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT ALL - COUNT( * ) DIV - 48 * - 53 * - - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - COUNT ( * ) / - 48 * - 53 * - - 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + 72 + MAX( DISTINCT - 68 )
----
4

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + 72 + MAX ( DISTINCT - 68 )
----
4

query I rowsort
SELECT + 13 * 96
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ( SUM( - 89 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8862
SELECT ( SUM ( - 89 ) ) AS col2
----
-89

query I rowsort
SELECT + 94 - - ( - 19 ) + - ( + 49 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - CASE NULLIF ( 1, CASE - - 98 WHEN + 72 * - 36 * 77 + + 62 * 66 / - 10 THEN COUNT( * ) - + 46 WHEN + ( NULLIF ( 91, ( 80 ) ) ) THEN NULL ELSE NULL END ) WHEN 52 * 34 THEN + 85 + 56 * - 14 ELSE COUNT( * ) END * 29
----
-29

skipif mysql # not compatible
query I rowsort label-8864
SELECT - CASE NULLIF ( 1, CASE - - 98 WHEN + 72 * - 36 * 77 + + 62 * 66 / - 10 THEN COUNT ( * ) - + 46 WHEN + ( NULLIF ( 91, ( 80 ) ) ) THEN NULL ELSE NULL END ) WHEN 52 * 34 THEN + 85 + 56 * - 14 ELSE COUNT ( * ) END * 29
----
-29

query I rowsort
SELECT DISTINCT + 47 - + CASE + 43 WHEN + 27 THEN 96 ELSE NULL END + - ( + + 57 ) * - 40 * - - ( - 86 ) * 13 AS col1
----
NULL

query I rowsort
SELECT ALL + - 35 * - 36 + - + 90
----
1170

query I rowsort
SELECT - 53 + - 56 + - 84 AS col2
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + 97 * ( + MAX( ALL - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 97 * ( + MAX ( ALL - 0 ) )
----
0

query I rowsort
SELECT - 66 + - - 99 + + + 47 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT - 93 / + + CASE + 59 WHEN + - 28 THEN - 65 + + COUNT( * ) WHEN 21 THEN 53 * + COUNT( DISTINCT + 56 ) END * - AVG ( DISTINCT - 99 ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - 93 / + + CASE + 59 WHEN + - 28 THEN - 65 + + COUNT ( * ) WHEN 21 THEN 53 * + COUNT ( DISTINCT + 56 ) END * - AVG ( DISTINCT - 99 ) * + 82
----
NULL

query I rowsort
SELECT - + 77 + + 32
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT DISTINCT - - NULLIF ( + + 70, + + 93 + + COUNT( * ) ) DIV 72 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - - NULLIF ( + + 70, + + 93 + + COUNT ( * ) ) / 72 + + 44
----
44

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

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

query I rowsort
SELECT ALL - 75 * - - 4 AS col1
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT - 33 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 33 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL SUM( - 24 ) / COUNT( * ) * + - CASE + + COUNT( * ) WHEN NULLIF ( - - 77, - 69 * - 1 ) THEN NULL WHEN + + 83 THEN - + 58 - - + 74 ELSE NULL END + - + 12 * ( 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL SUM ( - 24 ) / COUNT ( * ) * + - CASE + + COUNT ( * ) WHEN NULLIF ( - - 77, - 69 * - 1 ) THEN NULL WHEN + + 83 THEN - + 58 - - + 74 ELSE NULL END + - + 12 * ( 14 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT ALL - 22 DIV - - COUNT( * ) + - 85
----
-107

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - 22 / - - COUNT ( * ) + - 85
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT DISTINCT + COUNT( * ) DIV - - 20 + + 40
----
40

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + COUNT ( * ) / - - 20 + + 40
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT DISTINCT 61 DIV + ( + 2 ) + - 62
----
-32

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT 61 / + ( + 2 ) + - 62
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT + NULLIF ( 70, + COALESCE ( + 19, COUNT( * ) + + - COUNT( * ) + + + 30 * 94 ) )
----
70

skipif mysql # not compatible
query I rowsort label-8880
SELECT + NULLIF ( 70, + COALESCE ( + 19, COUNT ( * ) + + - COUNT ( * ) + + + 30 * 94 ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT DISTINCT + COUNT( * ), - 75 + - ( - - 93 ) + - + MIN( - 63 ) * + 85 AS col0
----
1
5187

skipif mysql # not compatible
query II rowsort label-8881
SELECT DISTINCT + COUNT ( * ), - 75 + - ( - - 93 ) + - + MIN ( - 63 ) * + 85 AS col0
----
1
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + CASE - - 95 WHEN - ( - COALESCE ( + COALESCE ( AVG ( + 15 ), + - 28 + + 0 - 49 + + MAX( ALL - 21 ) * - 15 ), + 92 / CAST( - 65 * 90 AS SIGNED ), - 53 + + CAST( NULL AS SIGNED ) * 45 ) ) THEN 87 / 26 WHEN - 36 * - ( 31 ) + 38 * - 9 THEN 70 * COUNT( * ) + - 69 ELSE - CAST( 29 AS SIGNED ) END
----
-29

skipif mysql # not compatible
query I rowsort label-8882
SELECT + CASE - - 95 WHEN - ( - COALESCE ( + COALESCE ( AVG ( + 15 ), + - 28 + + 0 - 49 + + MAX ( ALL - 21 ) * - 15 ), + 92 / CAST ( - 65 * 90 AS INTEGER ), - 53 + + CAST ( NULL AS INTEGER ) * 45 ) ) THEN 87 / 26 WHEN - 36 * - ( 31 ) + 38 * - 9 THEN 70 * COUNT ( * ) + - 69 ELSE - CAST ( 29 AS INTEGER ) END
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT - 12 DIV - 88 + + NULLIF ( + COUNT( * ), - COUNT( * ) + - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - 12 / - 88 + + NULLIF ( + COUNT ( * ), - COUNT ( * ) + - 30 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL 72 * - COUNT( ALL - 58 ) + + + COALESCE ( - + COUNT( * ), + 85 * COUNT( * ) + - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL 72 * - COUNT ( ALL - 58 ) + + + COALESCE ( - + COUNT ( * ), + 85 * COUNT ( * ) + - 73 )
----
-73

query I rowsort
SELECT + NULLIF ( - 19, + + 63 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT 73 * - 8
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - 30 * 55 * - COUNT( * ) - ( 94 ) + + + ( 76 ) col0
----
1632

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - 30 * 55 * - COUNT ( * ) - ( 94 ) + + + ( 76 ) col0
----
1632

query I rowsort
SELECT + 37 - - 79 - + 51 - 51 - + 65 AS col1
----
-51

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

query I rowsort
SELECT ALL 8 * + 13 AS col0
----
104

query I rowsort
SELECT + 13 * + 81
----
1053

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT ALL - 68 DIV 77 * 89 col1, ( + 23 ) + 55 DIV + - 39
----
0
22

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL - 68 / 77 * 89 col1, ( + 23 ) + 55 / + - 39
----
0
22

query I rowsort
SELECT - 25 * + 16 col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT 37 * + + COUNT( * ) * 42
----
1554

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT 37 * + + COUNT ( * ) * 42
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL 9 * + ( 17 ) + 67 + - NULLIF ( + 64, - 34 + - SUM( 66 ) + + 15 / 71 * 57 )
----
156

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL 9 * + ( 17 ) + 67 + - NULLIF ( + 64, - 34 + - SUM ( 66 ) + + 15 / 71 * 57 )
----
156

query I rowsort
SELECT 93 + + 94
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( * ) + 89 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( * ) + 89 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT CASE + ( COUNT( * ) ) WHEN - COALESCE ( 53, + 80, - ( - - 44 ) ) / SUM( 19 ) THEN 29 * - + 11 ELSE + + 17 END - MIN( DISTINCT + 91 )
----
-74

skipif mysql # not compatible
query I rowsort label-8899
SELECT CASE + ( COUNT ( * ) ) WHEN - COALESCE ( 53, + 80, - ( - - 44 ) ) / SUM ( 19 ) THEN 29 * - + 11 ELSE + + 17 END - MIN ( DISTINCT + 91 )
----
-74

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

query II rowsort
SELECT ALL + 13 AS col1, + 77 + + 14
----
13
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL 54 DIV - 87 * 92 + + 13 * - 11
----
-143

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 54 / - 87 * 92 + + 13 * - 11
----
-143

query I rowsort
SELECT 8 + - 59 - - ( 30 ) * 70 * + 17 * 68 AS col1
----
2427549

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL CASE + COUNT( * ) WHEN - 38 THEN - 42 * - NULLIF ( 30, + 62 / 78 / - 25 - 38 + - 71 ) * + 24 * COUNT( * ) * + 17 - 8 WHEN 91 * 96 THEN - 34 + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL CASE + COUNT ( * ) WHEN - 38 THEN - 42 * - NULLIF ( 30, + 62 / 78 / - 25 - 38 + - 71 ) * + 24 * COUNT ( * ) * + 17 - 8 WHEN 91 * 96 THEN - 34 + 49 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8906
SELECT ALL - 92 + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * + 80 * 58 + + COALESCE ( - + 95, + - 95 ) AS col2, + 13 + - + MIN( DISTINCT - 77 ) AS col1
----
-187
90

skipif mysql # not compatible
query II rowsort label-8906
SELECT ALL - 92 + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 80 * 58 + + COALESCE ( - + 95, + - 95 ) AS col2, + 13 + - + MIN ( DISTINCT - 77 ) AS col1
----
-187
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT + COUNT( * ) - - ( - CAST( NULL AS SIGNED ) ) + - + NULLIF ( - MAX( + + 12 ), + + 77 - + 51 + + 92 * + NULLIF ( + 99, + - 96 / 39 - - 56 - - 32 ) - 9 / 55 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT + COUNT ( * ) - - ( - CAST ( NULL AS INTEGER ) ) + - + NULLIF ( - MAX ( + + 12 ), + + 77 - + 51 + + 92 * + NULLIF ( + 99, + - 96 / 39 - - 56 - - 32 ) - 9 / 55 ) / COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT 77 AS col1, + 66
----
77
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8909
SELECT - 33 AS col0, 85 / + + CAST( NULL AS SIGNED ) col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-8909
SELECT - 33 AS col0, 85 / + + CAST ( NULL AS INTEGER ) col1
----
-33
NULL

query I rowsort
SELECT ALL - 42 * + 61 AS col0
----
-2562

query I rowsort
SELECT DISTINCT + 73 + 90
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - ( 88 ) + + - 14 * - + MAX( DISTINCT - - 6 ) + + COALESCE ( + NULLIF ( + COUNT( * ), COUNT( COALESCE ( ( - - 67 ), - 64 + + 85, + 99 ) ) * + CASE - COUNT( * ) WHEN COUNT( * ) THEN 59 + 90 ELSE NULL END + + 79 ), 91 * 73 ) + COALESCE ( - MAX( DISTINCT 59 ), - 10 - 16, + 92 - 54 * - COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - ( 88 ) + + - 14 * - + MAX ( DISTINCT - - 6 ) + + COALESCE ( + NULLIF ( + COUNT ( * ), COUNT ( COALESCE ( ( - - 67 ), - 64 + + 85, + 99 ) ) * + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 59 + 90 ELSE NULL END + + 79 ), 91 * 73 ) + COALESCE ( - MAX ( DISTINCT 59 ), - 10 - 16, + 92 - 54 * - COUNT ( * ) )
----
-62

query I rowsort
SELECT ALL + 34 + + 40
----
74

query I rowsort
SELECT ALL 16 * - 64 AS col2
----
-1024

query I rowsort
SELECT 87 - + 76 - - ( 96 ) AS col0
----
107

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

query I rowsort
SELECT + 69 * - - 72 + + + 27
----
4995

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - SUM( + 69 ) + + 44
----
-25

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - SUM ( + 69 ) + + 44
----
-25

query I rowsort
SELECT 13 * + 59
----
767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT 87 + - 21 * NULLIF ( - COALESCE ( - CASE - 61 WHEN + NULLIF ( MAX( - 89 ), + - 35 + - 6 ) THEN + 95 + 1 ELSE NULL END, - 86 - + 65 DIV - ( 11 * ( 98 * COUNT( * ) ) ) ), + 3 ) AS col0
----
-1719

skipif mysql # not compatible
query I rowsort label-8920
SELECT 87 + - 21 * NULLIF ( - COALESCE ( - CASE - 61 WHEN + NULLIF ( MAX ( - 89 ), + - 35 + - 6 ) THEN + 95 + 1 ELSE NULL END, - 86 - + 65 / - ( 11 * ( 98 * COUNT ( * ) ) ) ), + 3 ) AS col0
----
-1719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT - 94 * + - 82 - - - CAST( NULL AS SIGNED ) + + 47 + + 56 * + 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 94 * + - 82 - - - CAST ( NULL AS INTEGER ) + + 47 + + 56 * + 99 col2
----
NULL

query I rowsort
SELECT ALL - 44 * - ( - 50 )
----
-2200

query II rowsort
SELECT ALL 50 - + 73 AS col1, 37
----
-23
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT COUNT( * ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT COUNT ( * ) - + 24
----
-23

query I rowsort
SELECT ALL - 72 - - + 12
----
-60

query I rowsort
SELECT 36 * 27 * - 24 + - 48 * - - 53 AS col2
----
-25872

query I rowsort
SELECT ALL + 45 * + 46 AS col2
----
2070

query I rowsort
SELECT 93 * 94 * + - 87 AS col2
----
-760554

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT DISTINCT + 27 * + COUNT( * ) col0, + 76
----
27
76

skipif mysql # not compatible
query II rowsort label-8929
SELECT DISTINCT + 27 * + COUNT ( * ) col0, + 76
----
27
76

query I rowsort
SELECT DISTINCT - 55 - 28 - - + 44
----
-39

query I rowsort
SELECT 53 * + 95 + - 3 + + 60
----
5092

query I rowsort
SELECT 38 * - 98 AS col0
----
-3724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL - CAST( - - 84 AS SIGNED ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - CAST ( - - 84 AS INTEGER ) col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8934
SELECT + COALESCE ( 8, + + 40, + CAST( 82 AS SIGNED ) + + 76 ) + + - 14 + + - 6 * 33 + + 23 - - 94 DIV + 94
----
-180

skipif mysql # not compatible
query I rowsort label-8934
SELECT + COALESCE ( 8, + + 40, + CAST ( 82 AS INTEGER ) + + 76 ) + + - 14 + + - 6 * 33 + + 23 - - 94 / + 94
----
-180

query I rowsort
SELECT ALL + 95 + + - ( 97 )
----
-2

query I rowsort
SELECT ALL - + 76 * + 67 - 62 AS col1
----
-5154

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ( - + 83 ) DIV 97 * - 20 + - 64 + - 7 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8938
SELECT ( - + 83 ) / 97 * - 20 + - 64 + - 7 AS col1
----
-71

query I rowsort
SELECT - 88 + + 47
----
-41

query I rowsort
SELECT 56 - + 73 * - - 11
----
-747

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8941
SELECT ALL - NULLIF ( - ( - 86 ), + 3 ), COUNT( * ) DIV 37 DIV - - 67 col0
----
-86
0

skipif mysql # not compatible
query II rowsort label-8941
SELECT ALL - NULLIF ( - ( - 86 ), + 3 ), COUNT ( * ) / 37 / - - 67 col0
----
-86
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT + - COUNT( * ) * + + 14 + - 55 col0
----
-69

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + - COUNT ( * ) * + + 14 + - 55 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + 37 + - 85 * + - COUNT( DISTINCT - 23 ) + + COUNT( * ) + - - 82 * + 11 + COALESCE ( - 37, + + 23 + 30 + 56 + 78, + 77 * - 67 )
----
988

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 37 + - 85 * + - COUNT ( DISTINCT - 23 ) + + COUNT ( * ) + - - 82 * + 11 + COALESCE ( - 37, + + 23 + 30 + 56 + 78, + 77 * - 67 )
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT COUNT( * ) + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT COUNT ( * ) + 65 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT 91 - + - 60 * SUM( DISTINCT + + 3 )
----
271

skipif mysql # not compatible
query I rowsort label-8947
SELECT 91 - + - 60 * SUM ( DISTINCT + + 3 )
----
271

query I rowsort
SELECT 97 + + 20
----
117

query I rowsort
SELECT ALL 10 + - 17 AS col1
----
-7

query I rowsort
SELECT DISTINCT 45 + + 4 * - + 9
----
9

query I rowsort
SELECT ALL 62 * + 23 * 28
----
39928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT 22 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT 22 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 97 * + 61
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + 91 * + 84 * - - CASE 24 WHEN + 83 + - 71 * 46 * + NULLIF ( + 54, + + 90 * - + 17 + - 35 ) + - 61 - + + COUNT( * ) / - 73 - + 94 * + 14 / 42 THEN COALESCE ( + COUNT( * ), 90 ) * COUNT( * ) END - COUNT( * ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + 91 * + 84 * - - CASE 24 WHEN + 83 + - 71 * 46 * + NULLIF ( + 54, + + 90 * - + 17 + - 35 ) + - 61 - + + COUNT ( * ) / - 73 - + 94 * + 14 / 42 THEN COALESCE ( + COUNT ( * ), 90 ) * COUNT ( * ) END - COUNT ( * ) * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT CASE - 21 WHEN - + COUNT( * ) THEN - 91 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT CASE - 21 WHEN - + COUNT ( * ) THEN - 91 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT + 58 * - + COUNT( - 37 ) - - 81 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + 58 * - + COUNT ( - 37 ) - - 81 AS col0
----
23

query I rowsort
SELECT DISTINCT 61 * - 32 * + + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT - 95 DIV + COUNT( ALL - + 25 ) DIV - COUNT( 63 ) - - - 63
----
32

skipif mysql # not compatible
query I rowsort label-8959
SELECT - 95 / + COUNT ( ALL - + 25 ) / - COUNT ( 63 ) - - - 63
----
32

query I rowsort
SELECT - 8 * - - 72
----
-576

query I rowsort
SELECT + 78 - - 88 AS col2
----
166

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

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + COUNT ( * ) / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + CASE - MIN( DISTINCT 28 ) WHEN + COUNT( * ) THEN NULL ELSE 79 END
----
79

skipif mysql # not compatible
query I rowsort label-8963
SELECT + CASE - MIN ( DISTINCT 28 ) WHEN + COUNT ( * ) THEN NULL ELSE 79 END
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT - 69 DIV + 6
----
-11

skipif mysql # not compatible
query I rowsort label-8964
SELECT - 69 / + 6
----
-11

query I rowsort
SELECT DISTINCT + 60 * + 2 AS col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT DISTINCT + COUNT( * ) DIV + + 30 * - - 28 + COUNT( + NULLIF ( - - 97, + + 34 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + COUNT ( * ) / + + 30 * - - 28 + COUNT ( + NULLIF ( - - 97, + + 34 ) ) AS col2
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - - 72 * - MIN( DISTINCT + 33 )
----
-2376

skipif mysql # not compatible
query I rowsort label-8970
SELECT - - 72 * - MIN ( DISTINCT + 33 )
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL + MAX( + 63 ) + + 52 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + MAX ( + 63 ) + + 52 AS col1
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - 85 * - - ( 31 ) + - 38 - + - COUNT( * ) * + + 33 + - + NULLIF ( - 32, COUNT( * ) ) - + - ( + 38 ) AS col2
----
-2570

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 85 * - - ( 31 ) + - 38 - + - COUNT ( * ) * + + 33 + - + NULLIF ( - 32, COUNT ( * ) ) - + - ( + 38 ) AS col2
----
-2570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT - 90 + CAST( NULL AS SIGNED ) + MIN( - 49 ) + - + 78 - + - 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT - 90 + CAST ( NULL AS INTEGER ) + MIN ( - 49 ) + - + 78 - + - 85 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT + 67, + COUNT( * ) * + ( + ( + 32 ) ) AS col0
----
67
32

skipif mysql # not compatible
query II rowsort label-8975
SELECT + 67, + COUNT ( * ) * + ( + ( + 32 ) ) AS col0
----
67
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT - + COUNT( * ) + - - 74 + 29
----
102

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - + COUNT ( * ) + - - 74 + 29
----
102

query I rowsort
SELECT DISTINCT - 23 + - 25
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - 16 + + 63 + + + 79 + + COUNT( + 0 ) * 73 * - + 22 * - COUNT( DISTINCT 89 ) col0
----
1732

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - 16 + + 63 + + + 79 + + COUNT ( + 0 ) * 73 * - + 22 * - COUNT ( DISTINCT 89 ) col0
----
1732

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT - 19 col2, - COUNT( * ) * - 48
----
-19
48

skipif mysql # not compatible
query II rowsort label-8979
SELECT - 19 col2, - COUNT ( * ) * - 48
----
-19
48

query I rowsort
SELECT - ( 66 ) * - + 78
----
5148

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT 40 col0, MAX( ALL 2 ) + - - 25
----
40
27

skipif mysql # not compatible
query II rowsort label-8982
SELECT 40 col0, MAX ( ALL 2 ) + - - 25
----
40
27

query II rowsort
SELECT 48, - 26 AS col2
----
48
-26

query II rowsort
SELECT ALL 33 AS col2, 59 * 78 AS col1
----
33
4602

query II rowsort
SELECT + 62 - - - 6 AS col0, 37 * 84
----
56
3108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8986
SELECT DISTINCT - 99 * + COALESCE ( 68, CAST( NULL AS SIGNED ) ) AS col0, 6 DIV - - 57
----
-6732
0

skipif mysql # not compatible
query II rowsort label-8986
SELECT DISTINCT - 99 * + COALESCE ( 68, CAST ( NULL AS INTEGER ) ) AS col0, 6 / - - 57
----
-6732
0

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

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

query I rowsort
SELECT + 14 - - + 98 + 31 * - 50 + - 69 AS col0
----
-1507

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT 72 * - COUNT( * ) + + 37
----
-35

skipif mysql # not compatible
query I rowsort label-8989
SELECT 72 * - COUNT ( * ) + + 37
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT - 28 DIV + + 26 + + 10 DIV + - 33 * COUNT( * ) - - 24 + - 57 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 28 / + + 26 + + 10 / + - 33 * COUNT ( * ) - - 24 + - 57 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT + 55 + NULLIF ( - CASE - - 11 WHEN - - COUNT( * ) * - - 89 * 71 THEN 51 * + COUNT( * ) DIV 33 WHEN - + 81 THEN NULL WHEN - - 44 THEN + 28 ELSE - 76 - - COUNT( * ) * + + NULLIF ( 92, + ( 38 ) DIV + 89 ) END, + 24 )
----
39

skipif mysql # not compatible
query I rowsort label-8991
SELECT + 55 + NULLIF ( - CASE - - 11 WHEN - - COUNT ( * ) * - - 89 * 71 THEN 51 * + COUNT ( * ) / 33 WHEN - + 81 THEN NULL WHEN - - 44 THEN + 28 ELSE - 76 - - COUNT ( * ) * + + NULLIF ( 92, + ( 38 ) / + 89 ) END, + 24 )
----
39

query I rowsort
SELECT ALL - ( - 11 ) * + - 75 * - + 63 + + ( 10 )
----
51985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8993
SELECT ALL + 55, - COALESCE ( - 86, + NULLIF ( + 1, 13 ) * + MIN( ALL CAST( - 56 AS SIGNED ) ) * - 75 + - 74 ) AS col2
----
55
86

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL + 55, - COALESCE ( - 86, + NULLIF ( + 1, 13 ) * + MIN ( ALL CAST ( - 56 AS INTEGER ) ) * - 75 + - 74 ) AS col2
----
55
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8994
SELECT + CAST( 35 AS SIGNED ) DIV - CASE AVG ( - 36 ) WHEN - 96 DIV + 61 * 39 + - COALESCE ( - MAX( + - 68 ), + - 40 * MAX( + 77 ) * + + 78, - 58 * + 47 ) THEN NULL WHEN - 78 * + 16 THEN 49 ELSE 29 + 46 END + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8994
SELECT + CAST ( 35 AS INTEGER ) / - CASE AVG ( - 36 ) WHEN - 96 / + 61 * 39 + - COALESCE ( - MAX ( + - 68 ), + - 40 * MAX ( + 77 ) * + + 78, - 58 * + 47 ) THEN NULL WHEN - 78 * + 16 THEN 49 ELSE 29 + 46 END + 77 AS col2
----
77

query I rowsort
SELECT ALL 64 * + 95 * - + 38 AS col0
----
-231040

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT + 3 DIV + ( - ( 9 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 3 / + ( - ( 9 ) )
----
0

query I rowsort
SELECT - + 1 + + NULLIF ( + 51, 10 + 19 + + 96 / + + 98 + - 98 ) AS col0
----
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT ALL - 29 * 42 * 29 - - 20 + + 64 DIV + ( + - 75 ) + + + COALESCE ( - + 22, - - 24 - - 33 ) * + + 36 + - 90 AS col2
----
-36184

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - 29 * 42 * 29 - - 20 + + 64 / + ( + - 75 ) + + + COALESCE ( - + 22, - - 24 - - 33 ) * + + 36 + - 90 AS col2
----
-36184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9000
SELECT + SUM( + 24 ) DIV - 86 * - + 28 AS col1, + COUNT( * ) DIV + - 42 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-9000
SELECT + SUM ( + 24 ) / - 86 * - + 28 AS col1, + COUNT ( * ) / + - 42 AS col1
----
0
0

query I rowsort
SELECT ALL - 65 * 80 + - 63 + + 8 + + 35
----
-5220

query I rowsort
SELECT - + 49 * 5
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT DISTINCT - 21 * - CAST( - - 76 AS SIGNED )
----
1596

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - 21 * - CAST ( - - 76 AS INTEGER )
----
1596

query I rowsort
SELECT ALL + 63 * + 46 + + 66 col2
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT CASE - 51 WHEN - 16 THEN - 85 WHEN COUNT( * ) * - ( COUNT( * ) ) + 32 THEN NULL WHEN - 42 / + 57 THEN NULL ELSE ( + + COUNT( * ) ) END * + 19 * 75 * + CASE - NULLIF ( + 24, + 57 ) WHEN ( - 59 ) THEN 11 WHEN - 78 * 9 THEN 22 ELSE 70 * COUNT( * ) END - - 58
----
99808

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT CASE - 51 WHEN - 16 THEN - 85 WHEN COUNT ( * ) * - ( COUNT ( * ) ) + 32 THEN NULL WHEN - 42 / + 57 THEN NULL ELSE ( + + COUNT ( * ) ) END * + 19 * 75 * + CASE - NULLIF ( + 24, + 57 ) WHEN ( - 59 ) THEN 11 WHEN - 78 * 9 THEN 22 ELSE 70 * COUNT ( * ) END - - 58
----
99808

query II rowsort
SELECT - 8, 92 AS col2
----
-8
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - - 25 * NULLIF ( + 73, 76 ) - - - 56 + + 78 * - SUM( + 1 ) AS col0
----
1691

skipif mysql # not compatible
query I rowsort label-9007
SELECT - - 25 * NULLIF ( + 73, 76 ) - - - 56 + + 78 * - SUM ( + 1 ) AS col0
----
1691

query II rowsort
SELECT - - 42 AS col2, 36 * + + 96 + 70 + + 87 col2
----
42
3613

query I rowsort
SELECT - + ( 15 ) + - 12
----
-27

query I rowsort
SELECT - 51 - + 44 + + + 21
----
-74

query II rowsort
SELECT ALL ( 1 ), - 37 AS col1
----
1
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT - 69 + - 17 * - MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT - 69 + - 17 * - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( + 19 ), + 94, 30 + - + 70 + + 81 - - 19 ) - - + 62 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT - 97 * + CAST( + + 82 AS SIGNED ) * 0 + - 62 + 75 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9014
SELECT - 97 * + CAST ( + + 82 AS INTEGER ) * 0 + - 62 + 75 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9015
SELECT ALL CAST( NULL AS SIGNED ) * - 88 AS col0, + 58 col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL CAST ( NULL AS INTEGER ) * - 88 AS col0, + 58 col0
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT COUNT( * ) + 95 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( * ) + 95 AS col2
----
96

query I rowsort
SELECT 32 + 98 AS col0
----
130

query I rowsort
SELECT 6 * + 23
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ( - SUM( + 93 ) ) + + 29
----
-64

skipif mysql # not compatible
query I rowsort label-9019
SELECT ( - SUM ( + 93 ) ) + + 29
----
-64

query II rowsort
SELECT DISTINCT - 23 * + 18 AS col1, + 77
----
-414
77

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

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - SUM ( ALL CAST ( + 36 AS INTEGER ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT COUNT( * ) * + MIN( DISTINCT - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-9022
SELECT COUNT ( * ) * + MIN ( DISTINCT - 53 ) col0
----
-53

query II rowsort
SELECT DISTINCT - ( - 23 ) + - 1 AS col2, 16 AS col1
----
22
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL 9 + - NULLIF ( + 11, ( - 90 ) / COUNT( * ) * - - 5 ) + 56 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL 9 + - NULLIF ( + 11, ( - 90 ) / COUNT ( * ) * - - 5 ) + 56 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT 83 * - + 45 + + MIN( DISTINCT + 99 )
----
-3636

skipif mysql # not compatible
query I rowsort label-9025
SELECT 83 * - + 45 + + MIN ( DISTINCT + 99 )
----
-3636

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - - NULLIF ( - - 77, + COUNT( * ) ) + - 24 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - - NULLIF ( - - 77, + COUNT ( * ) ) + - 24 AS col2
----
53

query I rowsort
SELECT - 92 * 49 + ( - 77 ) + - 81 AS col1
----
-4666

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - 31 - 70 + 76 + - SUM( DISTINCT 62 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-9028
SELECT - 31 - 70 + 76 + - SUM ( DISTINCT 62 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT - COALESCE ( + ( 64 ), COUNT( * ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - COALESCE ( + ( 64 ), COUNT ( * ) ) AS col0
----
-64

query I rowsort
SELECT ALL 75 + + 33 * - 39 + 98
----
-1114

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT CASE + 58 WHEN - COUNT( * ) THEN + - 47 * 88 / + 2 END - 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT CASE + 58 WHEN - COUNT ( * ) THEN + - 47 * 88 / + 2 END - 64 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT + MAX( + 76 ) * - 45 + + + 71 * - - ( COUNT( * ) ) * 26 + CAST( - + ( + - 13 ) AS SIGNED ) + - - 12 * - 2 * + - ( - + 7 ) - + - 28 - + ( 80 ) + - 28 AS col2
----
-1809

skipif mysql # not compatible
query I rowsort label-9032
SELECT + MAX ( + 76 ) * - 45 + + + 71 * - - ( COUNT ( * ) ) * 26 + CAST ( - + ( + - 13 ) AS INTEGER ) + - - 12 * - 2 * + - ( - + 7 ) - + - 28 - + ( 80 ) + - 28 AS col2
----
-1809

query II rowsort
SELECT DISTINCT - 25 * - 38 + - 66 AS col2, 28
----
884
28

query I rowsort
SELECT ALL + 14 * + + 10 * - ( - + 16 )
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT + MAX( + ( + + 0 ) ) - 97 * + COUNT( * ) + - 42 * + 29 * 22 + - COALESCE ( - COUNT( * ), + - 44 + - 48 )
----
-26892

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + MAX ( + ( + + 0 ) ) - 97 * + COUNT ( * ) + - 42 * + 29 * 22 + - COALESCE ( - COUNT ( * ), + - 44 + - 48 )
----
-26892

query I rowsort
SELECT - 8 - 97 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + COUNT( DISTINCT + 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9037
SELECT + COUNT ( DISTINCT + 98 ) AS col1
----
1

query I rowsort
SELECT + 88 + + 91 + - 9 col0
----
170

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

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

query I rowsort
SELECT 97 * + 63 AS col1
----
6111

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT ALL + 53 - - NULLIF ( - 25, + - 37 ) DIV + + 90 + + + 79 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + 53 - - NULLIF ( - 25, + - 37 ) / + + 90 + + + 79 AS col1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT DISTINCT 86 DIV COUNT( * ) * + + 46 col0
----
3956

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT 86 / COUNT ( * ) * + + 46 col0
----
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT 16 DIV + 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT 16 / + 65 col0
----
0

query I rowsort
SELECT ALL - 81 * - 37 AS col1
----
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT 25 + - + COUNT( * ) DIV - - NULLIF ( - - 72, + 56 + + 45 ) - - 92
----
117

skipif mysql # not compatible
query I rowsort label-9045
SELECT 25 + - + COUNT ( * ) / - - NULLIF ( - - 72, + 56 + + 45 ) - - 92
----
117

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT 41 DIV - - 81
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT 41 / - - 81
----
0

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

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

query II rowsort
SELECT ALL 49 AS col2, 92
----
49
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL COUNT( * ) + + 40 - ( - 92 ) + + 17 + + 61
----
211

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL COUNT ( * ) + + 40 - ( - 92 ) + + 17 + + 61
----
211

query I rowsort
SELECT 37 - - 59
----
96

query I rowsort
SELECT DISTINCT + 37 + 38 + + 12 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - 82 + + - NULLIF ( + 2, - COUNT( * ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - 82 + + - NULLIF ( + 2, - COUNT ( * ) ) AS col0
----
-84

query I rowsort
SELECT 47 - 29
----
18

query II rowsort
SELECT ( + 73 ) + + 13, 14 col0
----
86
14

query I rowsort
SELECT 56 + 33
----
89

query II rowsort
SELECT 2 AS col0, + 58 AS col2
----
2
58

query II rowsort
SELECT 48 * ( - 66 ) + + 19 + + - 57 + 78 AS col0, 39 * - + 88 * + 57 col2
----
-3128
-195624

query II rowsort
SELECT + 12, - 18 col0
----
12
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9060
SELECT ALL + 43 * - 53 + - COUNT( * ) + + AVG ( DISTINCT 93 ) * MAX( - + 99 ) * CAST( + + 67 AS DECIMAL ) + + - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - CAST( - + CAST( 45 AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL + 43 * - 53 + - COUNT ( * ) + + AVG ( DISTINCT 93 ) * MAX ( - + 99 ) * CAST ( + + 67 AS REAL ) + + - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - CAST ( - + CAST ( 45 AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + + 28 * - - 76 - 67 + + - NULLIF ( - 36, - + COALESCE ( + - 60, - 37 * + 26 ) ) AS col0
----
2097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT 8 * + COALESCE ( 50, - 33 DIV + 26, - 60 - CASE ( - 59 ) WHEN + COUNT( * ) + + + 13 + - 19 THEN NULL WHEN MIN( DISTINCT + 45 ) THEN + COUNT( * ) END ) AS col0
----
400

skipif mysql # not compatible
query I rowsort label-9062
SELECT 8 * + COALESCE ( 50, - 33 / + 26, - 60 - CASE ( - 59 ) WHEN + COUNT ( * ) + + + 13 + - 19 THEN NULL WHEN MIN ( DISTINCT + 45 ) THEN + COUNT ( * ) END ) AS col0
----
400

query I rowsort
SELECT DISTINCT - 77 * - 75
----
5775

query I rowsort
SELECT DISTINCT - + 5 AS col0
----
-5

query I rowsort
SELECT ALL 9 - - 33
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT 32 * - 7 + - + 86 AS col2, SUM( + - 9 ) * - - 32 + - 57 AS col0
----
-310
-345

skipif mysql # not compatible
query II rowsort label-9066
SELECT 32 * - 7 + - + 86 AS col2, SUM ( + - 9 ) * - - 32 + - 57 AS col0
----
-310
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT COUNT( * ) + - 81 - - 75 + 6 * + 47 + - ( + 83 )
----
194

skipif mysql # not compatible
query I rowsort label-9067
SELECT COUNT ( * ) + - 81 - - 75 + 6 * + 47 + - ( + 83 )
----
194

query II rowsort
SELECT DISTINCT - 5 col2, 61
----
-5
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + COUNT( * ) + + 64 + COALESCE ( MIN( DISTINCT + 68 ), + 31, + 9 + - 37, + 87 ) - - 8 * + 67 * 73 AS col2
----
39261

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) + + 64 + COALESCE ( MIN ( DISTINCT + 68 ), + 31, + 9 + - 37, + 87 ) - - 8 * + 67 * 73 AS col2
----
39261

onlyif mysql # DIV for integer division: 
query II rowsort label-9070
SELECT + COALESCE ( + 89, - + 39 ) DIV - 33 + 87 * - + 51 + - + 98 * + 53 AS col1, 10
----
-9633
10

skipif mysql # not compatible
query II rowsort label-9070
SELECT + COALESCE ( + 89, - + 39 ) / - 33 + 87 * - + 51 + - + 98 * + 53 AS col1, 10
----
-9633
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL - + CAST( - + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - + CAST ( - + 33 AS INTEGER )
----
33

query I rowsort
SELECT DISTINCT 94 - + + 88 + - 59 * 9
----
-525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 6 * - MIN( ALL + 24 ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-9075
SELECT 6 * - MIN ( ALL + 24 ) AS col1
----
-144

query I rowsort
SELECT ALL 33 * 65 AS col0
----
2145

query I rowsort
SELECT DISTINCT 45 * 43
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + 15 + + MIN( DISTINCT + + 67 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 15 + + MIN ( DISTINCT + + 67 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT COUNT( DISTINCT - 27 ) * - + 57 + + + 13 + + + 74 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9079
SELECT COUNT ( DISTINCT - 27 ) * - + 57 + + + 13 + + + 74 AS col0
----
30

query I rowsort
SELECT + 79 + - - 92 - + 74
----
97

query I rowsort
SELECT + 38 - - + 19 * 61
----
1197

query I rowsort
SELECT ALL + 51 + 59 col1
----
110

query I rowsort
SELECT + 25 + - 59
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - 2 + ( + ( + + 68 ) ) + 22 + 31 * 62 * + COUNT( * ) AS col1
----
2010

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 2 + ( + ( + + 68 ) ) + 22 + 31 * 62 * + COUNT ( * ) AS col1
----
2010

query I rowsort
SELECT - NULLIF ( + - 13, 22 ) col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9086
SELECT + 89 * + SUM( DISTINCT + ( + - 52 ) ), COUNT( * ) * + 90 AS col0
----
-4628
90

skipif mysql # not compatible
query II rowsort label-9086
SELECT + 89 * + SUM ( DISTINCT + ( + - 52 ) ), COUNT ( * ) * + 90 AS col0
----
-4628
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - CASE - + 51 WHEN - + 1 - - + 24 - 80 + 7 * + 11 THEN + COALESCE ( 78, + COUNT( * ) / 58 / + + 95 - + 67 * + 23 ) * - + COUNT( * ) - - + 99 WHEN 28 THEN ( - - 39 ) - + 43 END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - CASE - + 51 WHEN - + 1 - - + 24 - 80 + 7 * + 11 THEN + COALESCE ( 78, + COUNT ( * ) / 58 / + + 95 - + 67 * + 23 ) * - + COUNT ( * ) - - + 99 WHEN 28 THEN ( - - 39 ) - + 43 END * 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9088
SELECT DISTINCT + ( - + 80 ) * + 34 + + ( COUNT( * ) ) + - ( + - 89 ) - - NULLIF ( + - 70, + 68 ) col0, - 92 - + + 23 * + 54 DIV CAST( - + COUNT( * ) AS SIGNED ) + + - 4
----
-2700
1146

skipif mysql # not compatible
query II rowsort label-9088
SELECT DISTINCT + ( - + 80 ) * + 34 + + ( COUNT ( * ) ) + - ( + - 89 ) - - NULLIF ( + - 70, + 68 ) col0, - 92 - + + 23 * + 54 / CAST ( - + COUNT ( * ) AS INTEGER ) + + - 4
----
-2700
1146

query I rowsort
SELECT - + CASE - 24 WHEN 83 THEN NULL ELSE + 94 * 31 * - - 89 + - 71 * + + 29 + 46 END
----
-257333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL 10 * + COUNT( * ) + + 15 + + CAST( NULL AS SIGNED ) / - - COALESCE ( - 60, COUNT( * ) + + 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL 10 * + COUNT ( * ) + + 15 + + CAST ( NULL AS INTEGER ) / - - COALESCE ( - 60, COUNT ( * ) + + 8 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9091
SELECT DISTINCT - COUNT( * ) * - 94 * - - CAST( NULL AS DECIMAL ) - + + COUNT( * ) + ( - COUNT( - - 41 ) ) + + - 19 * + 69 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - COUNT ( * ) * - 94 * - - CAST ( NULL AS REAL ) - + + COUNT ( * ) + ( - COUNT ( - - 41 ) ) + + - 19 * + 69 * + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + + 76 * - + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9092
SELECT + + 76 * - + COUNT ( * ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - SUM( DISTINCT + 51 ) * + + NULLIF ( 22, + 74 )
----
-1122

skipif mysql # not compatible
query I rowsort label-9093
SELECT - SUM ( DISTINCT + 51 ) * + + NULLIF ( 22, + 74 )
----
-1122

query I rowsort
SELECT - - 37 * - 54 * - 14
----
27972

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

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

query I rowsort
SELECT ALL + + 98 * - - ( 20 ) + + ( - 4 )
----
1956

query I rowsort
SELECT - 52 * 90
----
-4680

query I rowsort
SELECT DISTINCT + - 48 * 30 AS col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL + - COUNT( * ) * MAX( + 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + - COUNT ( * ) * MAX ( + 29 ) AS col2
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT NULLIF ( - NULLIF ( + + COUNT( * ), + 30 ), + CAST( - 0 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9101
SELECT NULLIF ( - NULLIF ( + + COUNT ( * ), + 30 ), + CAST ( - 0 AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT + 92 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-9102
SELECT + 92 / - 34
----
-2

query I rowsort
SELECT ALL + 44 * + - 23 * + + 58 + + - 82 AS col2
----
-58778

query I rowsort
SELECT ALL + 61 * + 37 + - 78 col2
----
2179

query I rowsort
SELECT NULLIF ( + 98, ( - 20 ) )
----
98

query I rowsort
SELECT + NULLIF ( 59, + 73 * - - 49 + + 13 + - - 56 * 37 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9107
SELECT + 29, + 12 + + + NULLIF ( - + NULLIF ( COUNT( * ), + 16 + - 68 * + + CAST( NULL AS DECIMAL ) ), 94 ) + + 65 AS col1
----
29
76

skipif mysql # not compatible
query II rowsort label-9107
SELECT + 29, + 12 + + + NULLIF ( - + NULLIF ( COUNT ( * ), + 16 + - 68 * + + CAST ( NULL AS REAL ) ), 94 ) + + 65 AS col1
----
29
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9108
SELECT - 38 + + MIN( + - CAST( - 64 AS SIGNED ) ) + + 21
----
47

skipif mysql # not compatible
query I rowsort label-9108
SELECT - 38 + + MIN ( + - CAST ( - 64 AS INTEGER ) ) + + 21
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT COUNT( ALL 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9109
SELECT COUNT ( ALL 23 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT - 56 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 56 / 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL + CASE + 37 WHEN 18 * + COUNT( * ) THEN 34 WHEN + 10 THEN NULL END * 90 * 40 + 81 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + CASE + 37 WHEN 18 * + COUNT ( * ) THEN 34 WHEN + 10 THEN NULL END * 90 * 40 + 81 + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT MIN( DISTINCT 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-9112
SELECT MIN ( DISTINCT 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - 96 + + - 89 * + COUNT( * ) + - - 71
----
-114

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 96 + + - 89 * + COUNT ( * ) + - - 71
----
-114

query I rowsort
SELECT + 2 * - 90
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT 79, COUNT( ALL - 20 ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-9115
SELECT 79, COUNT ( ALL - 20 ) AS col1
----
79
1

query I rowsort
SELECT ALL 84 + 25 AS col0
----
109

query I rowsort
SELECT - 90 + - 68 AS col2
----
-158

query I rowsort
SELECT + 48 * 50 * - ( + 33 ) * - 69
----
5464800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT - CAST( + + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-9119
SELECT - CAST ( + + 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + + MIN( DISTINCT 57 ) - 71
----
-14

skipif mysql # not compatible
query I rowsort label-9120
SELECT + + MIN ( DISTINCT 57 ) - 71
----
-14

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

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT NULLIF ( COUNT ( * ), - + ( + 11 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL + 27 DIV + + 1 col1
----
27

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + 27 / + + 1 col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9123
SELECT + + COUNT( * ) * - - CASE - AVG ( + 38 ) WHEN - 92 * + 76 + + 8 + - CAST( NULL AS DECIMAL ) * - CASE + 88 WHEN 6 * - - 24 THEN - COALESCE ( + + CAST( NULL AS DECIMAL ), + 45 * + - CASE 24 WHEN 30 THEN + - 2 END + - ( 28 ) ) WHEN + 23 THEN 0 ELSE 75 END THEN NULL WHEN 1 + 35 THEN + 75 * 8 + - 69 END * + 21 - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT + + COUNT ( * ) * - - CASE - AVG ( + 38 ) WHEN - 92 * + 76 + + 8 + - CAST ( NULL AS REAL ) * - CASE + 88 WHEN 6 * - - 24 THEN - COALESCE ( + + CAST ( NULL AS REAL ), + 45 * + - CASE 24 WHEN 30 THEN + - 2 END + - ( 28 ) ) WHEN + 23 THEN 0 ELSE 75 END THEN NULL WHEN 1 + 35 THEN + 75 * 8 + - 69 END * + 21 - 66 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9124
SELECT + 0 DIV 28 * + 82, 43 * 87 AS col2
----
0
3741

skipif mysql # not compatible
query II rowsort label-9124
SELECT + 0 / 28 * + 82, 43 * 87 AS col2
----
0
3741

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT 41 * + + 36 * - + CASE 68 WHEN 97 * + + ( - 12 ) THEN NULL WHEN - MAX( + 31 ) THEN NULL WHEN 71 THEN - 9 * - 9 END + COUNT( * ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT 41 * + + 36 * - + CASE 68 WHEN 97 * + + ( - 12 ) THEN NULL WHEN - MAX ( + 31 ) THEN NULL WHEN 71 THEN - 9 * - 9 END + COUNT ( * ) + + 8
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 48, - + 3 )
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9127
SELECT - 62 * + 24 + + 24 + - - 2 DIV + 3 + + 76 AS col2, 73 * + 92 AS col0
----
-1388
6716

skipif mysql # not compatible
query II rowsort label-9127
SELECT - 62 * + 24 + + 24 + - - 2 / + 3 + + 76 AS col2, 73 * + 92 AS col0
----
-1388
6716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT - CAST( COUNT( ALL + - 57 ) AS SIGNED ) * - 5 - + - COUNT( * ) + - 90 * + - 36
----
3246

skipif mysql # not compatible
query I rowsort label-9128
SELECT - CAST ( COUNT ( ALL + - 57 ) AS INTEGER ) * - 5 - + - COUNT ( * ) + - 90 * + - 36
----
3246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT + - COUNT( * ) DIV + 65 * COUNT( * ) + + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9129
SELECT + - COUNT ( * ) / + 65 * COUNT ( * ) + + 45 AS col1
----
45

query I rowsort
SELECT DISTINCT + 33 * 68
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL + 75 * + + CASE + + 72 WHEN 31 THEN + COUNT( * ) * ( 91 ) + 88 + - 69 ELSE 51 END + NULLIF ( 64, + ( + - COUNT( * ) ) )
----
3889

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + 75 * + + CASE + + 72 WHEN 31 THEN + COUNT ( * ) * ( 91 ) + 88 + - 69 ELSE 51 END + NULLIF ( 64, + ( + - COUNT ( * ) ) )
----
3889

query I rowsort
SELECT DISTINCT 29 * - 84 * - 29 * + 95 AS col2
----
6711180

query I rowsort
SELECT ALL + + 95 + + 60
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT - 87 * - 69 / - CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 85 ) / + + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 87 * - 69 / - CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 85 ) / + + 26 AS col2
----
NULL

query I rowsort
SELECT - 16 * 76
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9136
SELECT DISTINCT + - CASE - - COUNT( * ) WHEN + - CAST( + - 87 AS SIGNED ) THEN NULL ELSE + - 2 END + - 48 - - + ( + CASE 40 WHEN - - CASE 11 WHEN 45 THEN NULL WHEN 55 DIV - ( 82 ) + 27 + 93 DIV COUNT( * ) THEN - COUNT( 93 ) END - - 15 THEN + 50 DIV 9 + - CAST( NULL AS SIGNED ) * - 99 ELSE 95 END ) * + 76
----
7174

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT + - CASE - - COUNT ( * ) WHEN + - CAST ( + - 87 AS INTEGER ) THEN NULL ELSE + - 2 END + - 48 - - + ( + CASE 40 WHEN - - CASE 11 WHEN 45 THEN NULL WHEN 55 / - ( 82 ) + 27 + 93 / COUNT ( * ) THEN - COUNT ( 93 ) END - - 15 THEN + 50 / 9 + - CAST ( NULL AS INTEGER ) * - 99 ELSE 95 END ) * + 76
----
7174

query I rowsort
SELECT 35 + 14
----
49

query II rowsort
SELECT + 24, 64 AS col2
----
24
64

query II rowsort
SELECT ALL - 86 AS col0, + 76 AS col2
----
-86
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL 62 + + COUNT( * ) + - + 42 * - 53 * - 75 + 71 + COUNT( * ) * + - COUNT( * ) * + 22 * + 35 AS col1
----
-167586

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 62 + + COUNT ( * ) + - + 42 * - 53 * - 75 + 71 + COUNT ( * ) * + - COUNT ( * ) * + 22 * + 35 AS col1
----
-167586

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL COALESCE ( MAX( DISTINCT - + 92 ), + COUNT( * ) ) + 40 * - 29
----
-1252

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL COALESCE ( MAX ( DISTINCT - + 92 ), + COUNT ( * ) ) + 40 * - 29
----
-1252

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9142
SELECT 18 AS col0, CAST( NULL AS DECIMAL ) - 46 AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9142
SELECT 18 AS col0, CAST ( NULL AS REAL ) - 46 AS col0
----
18
NULL

query I rowsort
SELECT ALL + 50 + + 16
----
66

query I rowsort
SELECT ALL - 96 + + ( - - COALESCE ( 13, + 32 * - 10 + 41 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT 47 + + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9145
SELECT 47 + + COUNT ( * ) AS col1
----
48

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

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

query II rowsort
SELECT DISTINCT 43 AS col2, ( ( - - 53 ) )
----
43
53

query I rowsort
SELECT ALL + 51 + 18 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT 37 + + COUNT( * ) * + - 7
----
30

skipif mysql # not compatible
query I rowsort label-9149
SELECT 37 + + COUNT ( * ) * + - 7
----
30

query I rowsort
SELECT 40 * + 66
----
2640

query II rowsort
SELECT - 58 AS col2, NULLIF ( - 14, - - 99 + - + 4 + - 94 - 1 ) col1
----
-58
-14

query I rowsort
SELECT ALL - 33 - 22 * + - 82 AS col0
----
1771

query I rowsort
SELECT ALL + 42 * + 65 col1
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + NULLIF ( - 71, - COUNT( * ) + + 71 + + 66 * + 24 ) * - + 71
----
5041

skipif mysql # not compatible
query I rowsort label-9154
SELECT + NULLIF ( - 71, - COUNT ( * ) + + 71 + + 66 * + 24 ) * - + 71
----
5041

query I rowsort
SELECT - 32 + 81
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT 52 + COALESCE ( + - 21, - MAX( + 99 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9157
SELECT 52 + COALESCE ( + - 21, - MAX ( + 99 ) ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9158
SELECT - 76, - 35 + 35 DIV - + 31 - - MAX( + 53 ) AS col2
----
-76
17

skipif mysql # not compatible
query II rowsort label-9158
SELECT - 76, - 35 + 35 / - + 31 - - MAX ( + 53 ) AS col2
----
-76
17

query I rowsort
SELECT - 59 * - + 42 AS col1
----
2478

query I rowsort
SELECT + COALESCE ( - 22, + 37, + 84 * + - ( + ( - 24 ) ) + + 81 + - 73 * - 1 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - MAX( + 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - MAX ( + 71 ) col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9162
SELECT + ( 93 ) + COUNT( * ) - + + 27 + CAST( + 4 AS SIGNED ) AS col2, 32
----
71
32

skipif mysql # not compatible
query II rowsort label-9162
SELECT + ( 93 ) + COUNT ( * ) - + + 27 + CAST ( + 4 AS INTEGER ) AS col2, 32
----
71
32

query I rowsort
SELECT ALL + 4 * + 90
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT 75 AS col1, COUNT( * ) * 11 AS col1
----
75
11

skipif mysql # not compatible
query II rowsort label-9164
SELECT 75 AS col1, COUNT ( * ) * 11 AS col1
----
75
11

query I rowsort
SELECT ALL 78 + + 77 AS col1
----
155

query I rowsort
SELECT ALL - 54 + + + 79 AS col1
----
25

query I rowsort
SELECT 0 * - + 45 * 84 col1
----
0

query II rowsort
SELECT + 83 AS col0, - 51
----
83
-51

query II rowsort
SELECT + + 46 AS col2, 31 AS col2
----
46
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT - ( - - 95 ) DIV 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9170
SELECT - ( - - 95 ) / 8 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT ALL 74 * + 8 * + NULLIF ( - 12, 80 / 76 + 55 / COUNT( 24 ) * 8 * + ( + + 21 ) - - - 46 * - 78 + - 13 - - AVG ( - 4 ) ) * - 78, 58 * + ( - + SUM( + 4 ) ) AS col0
----
554112
-232

skipif mysql # not compatible
query II rowsort label-9171
SELECT ALL 74 * + 8 * + NULLIF ( - 12, 80 / 76 + 55 / COUNT ( 24 ) * 8 * + ( + + 21 ) - - - 46 * - 78 + - 13 - - AVG ( - 4 ) ) * - 78, 58 * + ( - + SUM ( + 4 ) ) AS col0
----
554112
-232

query I rowsort
SELECT - 61 * - 59 - 51 col1
----
3548

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT ALL 21 + 36 * - + 84 AS col2, + 1 * + MIN( DISTINCT + + 86 ) * - - COUNT( * ) col2
----
-3003
86

skipif mysql # not compatible
query II rowsort label-9174
SELECT ALL 21 + 36 * - + 84 AS col2, + 1 * + MIN ( DISTINCT + + 86 ) * - - COUNT ( * ) col2
----
-3003
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9175
SELECT DISTINCT CASE + - 59 WHEN + 96 * + + NULLIF ( - + COALESCE ( - COUNT( * ), + + 79, 11 - 34 ), CAST( NULL AS DECIMAL ) + 20 * - ( - 45 ) ) THEN + + 11 ELSE NULL END * + 11 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT CASE + - 59 WHEN + 96 * + + NULLIF ( - + COALESCE ( - COUNT ( * ), + + 79, 11 - 34 ), CAST ( NULL AS REAL ) + 20 * - ( - 45 ) ) THEN + + 11 ELSE NULL END * + 11 - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT 50 - + 14 + + - CAST( NULL AS SIGNED ) * - CASE + 99 WHEN + 41 THEN + + COUNT( * ) END * - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT 50 - + 14 + + - CAST ( NULL AS INTEGER ) * - CASE + 99 WHEN + 41 THEN + + COUNT ( * ) END * - 91 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9177
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * - + AVG ( 96 ) * + + 43, - 58 + + 84 - - + 83 AS col0
----
NULL
109

skipif mysql # not compatible
query II rowsort label-9177
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + AVG ( 96 ) * + + 43, - 58 + + 84 - - + 83 AS col0
----
NULL
109

query I rowsort
SELECT DISTINCT - NULLIF ( - - 21, + 60 ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9179
SELECT DISTINCT MAX( DISTINCT 62 ) AS col0, - CAST( NULL AS SIGNED )
----
62
NULL

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

query I rowsort
SELECT DISTINCT - 20 * - 67 AS col2
----
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 75 * + - 1 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL - 29 * 85 * MAX( + 44 )
----
-108460

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - 29 * 85 * MAX ( + 44 )
----
-108460

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + NULLIF ( + 45, 95 + + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-9184
SELECT + NULLIF ( + 45, 95 + + COUNT ( * ) )
----
45

query I rowsort
SELECT 8 + + 58 * - 19
----
-1094

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9186
SELECT - 73 DIV CASE + CAST( NULL AS SIGNED ) WHEN + 20 THEN + 65 ELSE 65 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9186
SELECT - 73 / CASE + CAST ( NULL AS INTEGER ) WHEN + 20 THEN + 65 ELSE 65 END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9187
SELECT CAST( NULL AS SIGNED ) + + 0 + 9 + - ( - 76 ) / - 3 + - 81 AS col1, - 33 AS col2
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-9187
SELECT CAST ( NULL AS INTEGER ) + + 0 + 9 + - ( - 76 ) / - 3 + - 81 AS col1, - 33 AS col2
----
NULL
-33

query I rowsort
SELECT ALL - 28 * - - 39 - - 61 * - 67 AS col0
----
-5179

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT - COUNT( * ) + - 42 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9189
SELECT - COUNT ( * ) + - 42 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - 32 + - NULLIF ( + 10, 68 * - - 96 + + + 20 + - COALESCE ( 29, COUNT( + 23 ) * 52, + ( - COUNT( * ) ) ) ) * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 32 + - NULLIF ( + 10, 68 * - - 96 + + + 20 + - COALESCE ( 29, COUNT ( + 23 ) * 52, + ( - COUNT ( * ) ) ) ) * + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT + 36 * - CASE - - 23 WHEN - 55 - - 5 + - 77 THEN + 79 WHEN - NULLIF ( - 53, COALESCE ( - COUNT( 84 ), - + 35 / - NULLIF ( - + ( - 83 ), + 91 * COUNT( + 94 ) + - COUNT( ALL + - 8 ) ) ) * + + 25 ) - 95 THEN NULL ELSE + 77 END + + 52
----
-2720

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + 36 * - CASE - - 23 WHEN - 55 - - 5 + - 77 THEN + 79 WHEN - NULLIF ( - 53, COALESCE ( - COUNT ( 84 ), - + 35 / - NULLIF ( - + ( - 83 ), + 91 * COUNT ( + 94 ) + - COUNT ( ALL + - 8 ) ) ) * + + 25 ) - 95 THEN NULL ELSE + 77 END + + 52
----
-2720

query I rowsort
SELECT DISTINCT + 25 + + 82 AS col0
----
107

query I rowsort
SELECT ALL - + 11 + + 65 * + 71
----
4604

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + - NULLIF ( + - 11, + 14 * + 76 * + 5 + COUNT( * ) * - 76 ) + - 20 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9194
SELECT + - NULLIF ( + - 11, + 14 * + 76 * + 5 + COUNT ( * ) * - 76 ) + - 20 AS col0
----
-9

query II rowsort
SELECT - + 37 + - 94 col1, ( 66 ) AS col0
----
-131
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL - - 49 * + - 46 * + 8 * 42 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - - 49 * + - 46 * + 8 * 42 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN - 93 + + 68 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 29 THEN + 76 WHEN + + 98 THEN 47 * + COUNT( * ) * - 5 + NULLIF ( - CAST( + - AVG ( - 21 ) AS SIGNED ), + 15 * 67 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN - 93 + + 68 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 29 THEN + 76 WHEN + + 98 THEN 47 * + COUNT ( * ) * - 5 + NULLIF ( - CAST ( + - AVG ( - 21 ) AS INTEGER ), + 15 * 67 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 15 + 38 * - 18
----
-669

query II rowsort
SELECT + 9 * - 69 * + + 28, 70 * - 49 AS col2
----
-17388
-3430

query I rowsort
SELECT ALL 21 * - 54 AS col0
----
-1134

query I rowsort
SELECT COALESCE ( - + 73, 52, 70 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + 62 + - + COUNT( * ) * - 51 - - 73 AS col0
----
186

skipif mysql # not compatible
query I rowsort label-9202
SELECT + 62 + - + COUNT ( * ) * - 51 - - 73 AS col0
----
186

query I rowsort
SELECT ALL + 36 * + - 9 - - 26 AS col0
----
-298

query I rowsort
SELECT + 73 * + 62
----
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + 79 * + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9205
SELECT + 79 * + COUNT ( * ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT + 56 * + 27 + - CAST( + 21 AS SIGNED ) + - 99
----
1392

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 56 * + 27 + - CAST ( + 21 AS INTEGER ) + - 99
----
1392

query I rowsort
SELECT ALL 61 * - ( - - 66 )
----
-4026

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + NULLIF ( + 48, - - COUNT( * ) * - 10 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + NULLIF ( + 48, - - COUNT ( * ) * - 10 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + 19 * - + COUNT( DISTINCT + 56 ) * - 13
----
247

skipif mysql # not compatible
query I rowsort label-9211
SELECT + 19 * - + COUNT ( DISTINCT + 56 ) * - 13
----
247

query II rowsort
SELECT + ( - + ( 0 ) ) col2, + 56 AS col2
----
0
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT ALL + COUNT( * ), ( - - 16 ) * + 10 AS col1
----
1
160

skipif mysql # not compatible
query II rowsort label-9213
SELECT ALL + COUNT ( * ), ( - - 16 ) * + 10 AS col1
----
1
160

query II rowsort
SELECT + NULLIF ( - 64, + + 45 + 7 - - 50 ) + 6 AS col1, 39 col0
----
-58
39

query I rowsort
SELECT + 83 * + + 13
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT CAST( 86 AS SIGNED ) * + COUNT( * ) + ( 93 )
----
179

skipif mysql # not compatible
query I rowsort label-9216
SELECT CAST ( 86 AS INTEGER ) * + COUNT ( * ) + ( 93 )
----
179

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

query II rowsort
SELECT + 5 AS col2, + 34 AS col0
----
5
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT - + SUM( DISTINCT - 21 ) * - 5
----
-105

skipif mysql # not compatible
query I rowsort label-9219
SELECT - + SUM ( DISTINCT - 21 ) * - 5
----
-105

query I rowsort
SELECT ALL - - 64 + - 54 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT + ( + 62 ) * + COUNT( * ) AS col1, - ( - 81 )
----
62
81

skipif mysql # not compatible
query II rowsort label-9221
SELECT + ( + 62 ) * + COUNT ( * ) AS col1, - ( - 81 )
----
62
81

query I rowsort
SELECT ALL 50 + 92 AS col1
----
142

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

query I rowsort
SELECT ALL + - 51 + - 66
----
-117

query II rowsort
SELECT 29 AS col2, - 36
----
29
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL 77 + + COUNT( * ) + - 27 * - + 38 AS col0
----
1104

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 77 + + COUNT ( * ) + - 27 * - + 38 AS col0
----
1104

query I rowsort
SELECT - - 77 * + 12
----
924

query I rowsort
SELECT ALL + + 76 + + - 48 col2
----
28

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

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

query II rowsort
SELECT 85 AS col1, + 22 AS col1
----
85
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT COUNT( * ) AS col1, - 19 * - + 29
----
1
551

skipif mysql # not compatible
query II rowsort label-9231
SELECT COUNT ( * ) AS col1, - 19 * - + 29
----
1
551

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

skipif mysql # not compatible
query II rowsort label-9232
SELECT - - 61 AS col0, COUNT ( * )
----
61
1

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

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + 72 / - - COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9234
SELECT - COUNT( * ) DIV + ( - ( 56 ) ) + + 9
----
9

skipif mysql # not compatible
query I rowsort label-9234
SELECT - COUNT ( * ) / + ( - ( 56 ) ) + + 9
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT ALL 79 + + - 37 + + 26 * COUNT( * ) DIV - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL 79 + + - 37 + + 26 * COUNT ( * ) / - COUNT ( * ) AS col1
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - ( - - 57 ) - - - COUNT( * ) + - COUNT( * ) + ( + 89 ) + 75
----
105

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - ( - - 57 ) - - - COUNT ( * ) + - COUNT ( * ) + ( + 89 ) + 75
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT DISTINCT + 22 * 13 - - 82 DIV 85
----
286

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + 22 * 13 - - 82 / 85
----
286

query I rowsort
SELECT - 86 * 54
----
-4644

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

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 97 * COUNT ( * )
----
-97

query I rowsort
SELECT - 56 + 48 * + 93 AS col0
----
4408

query I rowsort
SELECT DISTINCT - 46 * - + 53 * 90 AS col2
----
219420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9243
SELECT CAST( 52 AS SIGNED ), 51 DIV 11 AS col1
----
52
4

skipif mysql # not compatible
query II rowsort label-9243
SELECT CAST ( 52 AS INTEGER ), 51 / 11 AS col1
----
52
4

query II rowsort
SELECT - 50 - - 31, - 61 AS col2
----
-19
-61

query I rowsort
SELECT + 55 * - 31 * + 34
----
-57970

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9246
SELECT + 15 * 97 + - 75 DIV MAX( 59 ) * + + 68 DIV + NULLIF ( + 71, - + 19 ) AS col0, 72 AS col1
----
1455
72

skipif mysql # not compatible
query II rowsort label-9246
SELECT + 15 * 97 + - 75 / MAX ( 59 ) * + + 68 / + NULLIF ( + 71, - + 19 ) AS col0, 72 AS col1
----
1455
72

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

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32
----
NULL

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

query II rowsort
SELECT ( - 58 ) AS col2, 74 col0
----
-58
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT CASE 40 WHEN + - CAST( NULL AS SIGNED ) THEN - - 79 END * - - 2 + - 0 + + + 74 + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT CASE 40 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 79 END * - - 2 + - 0 + + + 74 + - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL 26 * - - NULLIF ( + 50, + 58 * + + 61 * + COUNT( DISTINCT + NULLIF ( + 83, + 73 ) ) ) + + COUNT( * ) + + 95 AS col0
----
1396

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL 26 * - - NULLIF ( + 50, + 58 * + + 61 * + COUNT ( DISTINCT + NULLIF ( + 83, + 73 ) ) ) + + COUNT ( * ) + + 95 AS col0
----
1396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT + COALESCE ( - + COUNT( * ), + - 22, + MAX( - - COALESCE ( - 96, + - 54 DIV - + 81 - - 45 ) ) + - 43 * - 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9252
SELECT + COALESCE ( - + COUNT ( * ), + - 22, + MAX ( - - COALESCE ( - 96, + - 54 / - + 81 - - 45 ) ) + - 43 * - 58 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + - 82 * + ( - 95 ) * - 50 AS col0
----
-389500

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT ALL - 91 + - 65 + + ( - 28 ) + + - ( - COUNT( * ) ) * - COUNT( * ), 70 AS col2
----
-185
70

skipif mysql # not compatible
query II rowsort label-9254
SELECT ALL - 91 + - 65 + + ( - 28 ) + + - ( - COUNT ( * ) ) * - COUNT ( * ), 70 AS col2
----
-185
70

query II rowsort
SELECT ALL + NULLIF ( + - 60, + 83 ) + + + 36 * 77, 57 AS col2
----
2712
57

query I rowsort
SELECT DISTINCT ( + 33 ) + 77 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + 44 + - + CASE 77 WHEN - CASE 34 WHEN + NULLIF ( COUNT( * ), + 35 ) THEN NULL ELSE - - CASE 9 WHEN - 16 THEN + COUNT( * ) END END THEN - 18 ELSE NULL END + 56 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 44 + - + CASE 77 WHEN - CASE 34 WHEN + NULLIF ( COUNT ( * ), + 35 ) THEN NULL ELSE - - CASE 9 WHEN - 16 THEN + COUNT ( * ) END END THEN - 18 ELSE NULL END + 56 * + - 93
----
NULL

query I rowsort
SELECT 6 * 46 AS col1
----
276

query I rowsort
SELECT ( + 79 ) + 83 AS col0
----
162

query II rowsort
SELECT - 67 + 22, + 59 col2
----
-45
59

query I rowsort
SELECT 86 + 86 * + 46 * 91 * 82 AS col2
----
29519758

query I rowsort
SELECT + 50 - + - 13 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), - + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), - + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL MAX( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL MAX ( ALL 6 )
----
6

query I rowsort
SELECT + 16 * 51 * 71 * - 29
----
-1680144

query I rowsort
SELECT 24 + + 44
----
68

query I rowsort
SELECT DISTINCT 95 - - 46 col0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9268
SELECT 77 AS col0, 89 + + 46 DIV - - COUNT( * ) + + COUNT( * ) AS col0
----
77
136

skipif mysql # not compatible
query II rowsort label-9268
SELECT 77 AS col0, 89 + + 46 / - - COUNT ( * ) + + COUNT ( * ) AS col0
----
77
136

query I rowsort
SELECT 50 + + 98 * - 75 * - 72
----
529250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT ALL CASE + - 10 WHEN 12 * - 31 THEN 85 WHEN - AVG ( + CAST( 99 AS SIGNED ) ) * + 1 THEN - - 10 * + 59 ELSE NULL END - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL CASE + - 10 WHEN 12 * - 31 THEN 85 WHEN - AVG ( + CAST ( 99 AS INTEGER ) ) * + 1 THEN - - 10 * + 59 ELSE NULL END - 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9271
SELECT COALESCE ( 89, + AVG ( ALL - 15 ) / + ( + + CAST( - 20 AS SIGNED ) ) + 15 ) * 18 * CAST( NULL AS SIGNED ) + 9 * - 3 * + + 10 * - - 68 + + + 40 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT COALESCE ( 89, + AVG ( ALL - 15 ) / + ( + + CAST ( - 20 AS INTEGER ) ) + 15 ) * 18 * CAST ( NULL AS INTEGER ) + 9 * - 3 * + + 10 * - - 68 + + + 40 * COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT 60 + - ( + + MAX( DISTINCT + - 68 ) ) AS col1
----
128

skipif mysql # not compatible
query I rowsort label-9272
SELECT 60 + - ( + + MAX ( DISTINCT + - 68 ) ) AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9273
SELECT 25, MIN( ALL - - 58 ) + CAST( + MAX( ALL + + 86 ) AS SIGNED ) - - COUNT( * ) * + ( - - 78 ) AS col1
----
25
222

skipif mysql # not compatible
query II rowsort label-9273
SELECT 25, MIN ( ALL - - 58 ) + CAST ( + MAX ( ALL + + 86 ) AS INTEGER ) - - COUNT ( * ) * + ( - - 78 ) AS col1
----
25
222

query I rowsort
SELECT ALL - NULLIF ( + 90, + 10 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9275
SELECT - COUNT( * ) DIV 69 * 41 + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9275
SELECT - COUNT ( * ) / 69 * 41 + 98 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT 76 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-9276
SELECT 76 / - + 90
----
0

query I rowsort
SELECT 50 + + 88 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
0

query II rowsort
SELECT DISTINCT - 92, 88 AS col0
----
-92
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT 66 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT 66 / 92
----
0

query I rowsort
SELECT DISTINCT + 61 * + 23
----
1403

query I rowsort
SELECT DISTINCT - 16 * + + 97
----
-1552

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT 94 + 98 + - - ( + 57 ) + - 92 AS col2, 64 - - COUNT( * )
----
157
65

skipif mysql # not compatible
query II rowsort label-9283
SELECT 94 + 98 + - - ( + 57 ) + - 92 AS col2, 64 - - COUNT ( * )
----
157
65

query I rowsort
SELECT ALL + 98 + 79 + 70 AS col0
----
247

query I rowsort
SELECT ALL - 43 + 51 col0
----
8

query II rowsort
SELECT + 7 AS col1, + 95 AS col2
----
7
95

query I rowsort
SELECT 84 * - 10 AS col2
----
-840

query I rowsort
SELECT ALL + + 80 + + + 1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL - - 18 + + CASE + CASE + + 40 WHEN + ( + 36 ) * - 0 THEN NULL ELSE COUNT( * ) END WHEN COUNT( * ) THEN NULL WHEN 25 THEN NULL ELSE 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - - 18 + + CASE + CASE + + 40 WHEN + ( + 36 ) * - 0 THEN NULL ELSE COUNT ( * ) END WHEN COUNT ( * ) THEN NULL WHEN 25 THEN NULL ELSE 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT - COUNT ( * ) + + 14
----
13

query II rowsort
SELECT + - 31, - 7 AS col1
----
-31
-7

query I rowsort
SELECT - ( - + 12 ) + + - 97 AS col0
----
-85

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

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

query I rowsort
SELECT 23 * - 12 AS col0
----
-276

query I rowsort
SELECT ALL + 5 * 35 AS col2
----
175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT - - CAST( - 18 AS SIGNED ) * + - 22 + + + COUNT( * )
----
397

skipif mysql # not compatible
query I rowsort label-9297
SELECT - - CAST ( - 18 AS INTEGER ) * + - 22 + + + COUNT ( * )
----
397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT + - MAX( ALL 80 ) / - + CASE CAST( NULL AS SIGNED ) WHEN - + 50 * 65 * - CAST( + 76 AS SIGNED ) + 65 * - 82 * 99 * + 19 THEN NULL WHEN 86 * - 16 + - - 69 + + 2 / 44 + - - COALESCE ( COUNT( DISTINCT + 75 ), SUM( - - CASE - 53 WHEN + 36 THEN 48 WHEN - ( 59 ) * - 80 THEN NULLIF ( 99, - 13 ) END ) * - 91 ) THEN + ( 14 ) WHEN + CAST( NULL AS SIGNED ) * ( NULLIF ( - 78, + 44 * 4 ) ) THEN NULL END * CASE WHEN NOT - ( + 28 ) * + COUNT( * ) IS NOT NULL THEN 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + - MAX ( ALL 80 ) / - + CASE CAST ( NULL AS INTEGER ) WHEN - + 50 * 65 * - CAST ( + 76 AS INTEGER ) + 65 * - 82 * 99 * + 19 THEN NULL WHEN 86 * - 16 + - - 69 + + 2 / 44 + - - COALESCE ( COUNT ( DISTINCT + 75 ), SUM ( - - CASE - 53 WHEN + 36 THEN 48 WHEN - ( 59 ) * - 80 THEN NULLIF ( 99, - 13 ) END ) * - 91 ) THEN + ( 14 ) WHEN + CAST ( NULL AS INTEGER ) * ( NULLIF ( - 78, + 44 * 4 ) ) THEN NULL END * CASE WHEN NOT - ( + 28 ) * + COUNT ( * ) IS NOT NULL THEN 74 END AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 70, + 18 ) * + 0 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT + COUNT( * ) * - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + COUNT ( * ) * - + 81
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT + 42 AS col0, + COUNT( * ) * - 36
----
42
-36

skipif mysql # not compatible
query II rowsort label-9302
SELECT + 42 AS col0, + COUNT ( * ) * - 36
----
42
-36

query II rowsort
SELECT DISTINCT 12 AS col2, - 11
----
12
-11

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

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

query II rowsort
SELECT ALL 18, + 36 AS col2
----
18
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT - 20 AS col2, + COUNT( * ) * + - NULLIF ( 73, + ( - ( - 50 ) ) * 78 + + 48 )
----
-20
-73

skipif mysql # not compatible
query II rowsort label-9306
SELECT - 20 AS col2, + COUNT ( * ) * + - NULLIF ( 73, + ( - ( - 50 ) ) * 78 + + 48 )
----
-20
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - MIN( + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-9307
SELECT - MIN ( + 22 )
----
-22

query II rowsort
SELECT DISTINCT 78 AS col0, + 95
----
78
95

query II rowsort
SELECT ALL 29 AS col2, 12 * + + 27
----
29
324

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT CAST( COUNT( * ) AS SIGNED ) - 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9311
SELECT CAST ( COUNT ( * ) AS INTEGER ) - 99 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL 2 * - SUM( ALL + 90 )
----
-180

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL 2 * - SUM ( ALL + 90 )
----
-180

query I rowsort
SELECT NULLIF ( + 13, - 56 )
----
13

query I rowsort
SELECT DISTINCT 37 * - - ( - - 23 ) AS col1
----
851

query I rowsort
SELECT 94 * - 52
----
-4888

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL 49 * - 23 * 51 + - COUNT( * ) AS col1
----
-57478

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL 49 * - 23 * 51 + - COUNT ( * ) AS col1
----
-57478

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT DISTINCT 1 * - - 37 DIV + - 23 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT 1 * - - 37 / + - 23 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT ALL - 39 DIV + 81 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - 39 / + 81 * - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + + NULLIF ( 13, + - 22 ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT ALL - 0 DIV - 84 + 95 + - - MIN( - 43 ) * 5 * 94 - + - 58 * - 67 AS col0
----
-24001

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 0 / - 84 + 95 + - - MIN ( - 43 ) * 5 * 94 - + - 58 * - 67 AS col0
----
-24001

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - + 70 + + COALESCE ( COUNT( * ), - + 75 - + 19 * ( COALESCE ( - - COUNT( * ), - 3 * 69, COUNT( * ) ) ) ) * 9
----
-61

skipif mysql # not compatible
query I rowsort label-9323
SELECT - + 70 + + COALESCE ( COUNT ( * ), - + 75 - + 19 * ( COALESCE ( - - COUNT ( * ), - 3 * 69, COUNT ( * ) ) ) ) * 9
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + + 65 * - - COUNT( * ) * - + 81 + 39 + + - COUNT( * ) + + 19 * + 76 AS col2
----
-3783

skipif mysql # not compatible
query I rowsort label-9324
SELECT + + 65 * - - COUNT ( * ) * - + 81 + 39 + + - COUNT ( * ) + + 19 * + 76 AS col2
----
-3783

query I rowsort
SELECT ALL + 48 * - + 13 + 53 + 77 AS col0
----
-494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT + + 11 * + - 66 * COUNT( * )
----
-726

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT + + 11 * + - 66 * COUNT ( * )
----
-726

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9328
SELECT DISTINCT COALESCE ( - + 54, + + ( - 85 ) DIV - + 19 * + + CAST( NULL AS SIGNED ) + + 99 )
----
-54

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT COALESCE ( - + 54, + + ( - 85 ) / - + 19 * + + CAST ( NULL AS INTEGER ) + + 99 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT - CAST( NULL AS SIGNED ) + - + CASE 3 WHEN NULLIF ( CAST( - COUNT( * ) AS SIGNED ), + COUNT( * ) ) THEN 52 WHEN - 49 THEN - 16 WHEN - 98 / - 2 THEN NULL ELSE + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT - CAST ( NULL AS INTEGER ) + - + CASE 3 WHEN NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), + COUNT ( * ) ) THEN 52 WHEN - 49 THEN - 16 WHEN - 98 / - 2 THEN NULL ELSE + + 93 END
----
NULL

query I rowsort
SELECT + - 38 * + 75
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - + COALESCE ( COUNT( * ), - + CASE + + 38 WHEN - 64 THEN - 65 WHEN + AVG ( + + 79 ) THEN - - 39 END * - 15 * 80 - + 11 ) + 44 + 98 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-9331
SELECT - + COALESCE ( COUNT ( * ), - + CASE + + 38 WHEN - 64 THEN - 65 WHEN + AVG ( + + 79 ) THEN - - 39 END * - 15 * 80 - + 11 ) + 44 + 98 AS col2
----
141

query I rowsort
SELECT - 51 + - ( - 60 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL - 15 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 15 / - - 91
----
0

query I rowsort
SELECT DISTINCT + ( 22 ) + - 74
----
-52

query I rowsort
SELECT ALL 97 * 15
----
1455

query I rowsort
SELECT ALL + 42 + + + 68 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT ( + + MIN( 60 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT ( + + MIN ( 60 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - SUM( 93 ) * + - 4 AS col1
----
372

skipif mysql # not compatible
query I rowsort label-9338
SELECT - SUM ( 93 ) * + - 4 AS col1
----
372

query I rowsort
SELECT DISTINCT 96 + 35 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL 55 + NULLIF ( + COUNT( * ), ( 27 ) * + - 36 )
----
56

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL 55 + NULLIF ( + COUNT ( * ), ( 27 ) * + - 36 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + 25 + - + 20 + - - ( MAX( DISTINCT 62 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 25 + - + 20 + - - ( MAX ( DISTINCT 62 ) ) AS col2
----
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT + CAST( + NULLIF ( + 60, - 12 + - 22 * + CASE + 4 WHEN + - 11 THEN - MIN( DISTINCT + 72 ) ELSE + 41 END * + 32 * - - 64 + - 75 + + NULLIF ( - 66, 54 + + + 24 - 74 * COUNT( * ) ) + - 83 * + 84 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-9343
SELECT + CAST ( + NULLIF ( + 60, - 12 + - 22 * + CASE + 4 WHEN + - 11 THEN - MIN ( DISTINCT + 72 ) ELSE + 41 END * + 32 * - - 64 + - 75 + + NULLIF ( - 66, 54 + + + 24 - 74 * COUNT ( * ) ) + - 83 * + 84 ) AS INTEGER )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT ALL 8 / - 10 + - - AVG ( ALL 7 ) + 71 * 93 * 12 * + ( - + ( COUNT( * ) ) ) * 94 * 26 + 84 / 72 * 84 * + CAST( NULL AS SIGNED ) * - 50 / - + COUNT( * ) * - + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL 8 / - 10 + - - AVG ( ALL 7 ) + 71 * 93 * 12 * + ( - + ( COUNT ( * ) ) ) * 94 * 26 + 84 / 72 * 84 * + CAST ( NULL AS INTEGER ) * - 50 / - + COUNT ( * ) * - + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL CAST( NULL AS SIGNED ) / MIN( 95 ) + 23 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL CAST ( NULL AS INTEGER ) / MIN ( 95 ) + 23 * 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL + 52 DIV COALESCE ( 24, 34 + 97 + 35, + - 31 * - + AVG ( ALL + 49 ) * 40, + 64 ) - - 3 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + 52 / COALESCE ( 24, 34 + 97 + 35, + - 31 * - + AVG ( ALL + 49 ) * 40, + 64 ) - - 3 AS col2
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + NULLIF ( + 0, + + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + NULLIF ( + 0, + + COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT + + ( 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT + - 49 * + 82 * + COUNT( * ) AS col0
----
-4018

skipif mysql # not compatible
query I rowsort label-9350
SELECT + - 49 * + 82 * + COUNT ( * ) AS col0
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + + COUNT( - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-9351
SELECT + + COUNT ( - 81 )
----
1

query II rowsort
SELECT ALL 50 * + 14 AS col1, 40 + 86 * + + 80
----
700
6920

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - + COUNT( * ) * COUNT( * ) - 93 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - + COUNT ( * ) * COUNT ( * ) - 93 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT + SUM( - 19 ), + COUNT( * ) AS col2
----
-19
1

skipif mysql # not compatible
query II rowsort label-9354
SELECT + SUM ( - 19 ), + COUNT ( * ) AS col2
----
-19
1

query I rowsort
SELECT + 33 + ( + + 34 ) - - 37
----
104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9356
SELECT DISTINCT + 36 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + 36 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL - 46 * + ( + + 18 ) - 39 + 50 + 82 DIV + 59
----
-816

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - 46 * + ( + + 18 ) - 39 + 50 + 82 / + 59
----
-816

onlyif mysql # DIV for integer division: 
query II rowsort label-9358
SELECT - 74 DIV + 62, - 6 AS col1
----
-1
-6

skipif mysql # not compatible
query II rowsort label-9358
SELECT - 74 / + 62, - 6 AS col1
----
-1
-6

query II rowsort
SELECT - 87 * + 45 AS col2, 6 + - 61 AS col2
----
-3915
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + - MAX( + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9360
SELECT + - MAX ( + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT - + 42 + 77 AS col0, SUM( - - 95 ) * + 31 AS col0
----
35
2945

skipif mysql # not compatible
query II rowsort label-9361
SELECT - + 42 + 77 AS col0, SUM ( - - 95 ) * + 31 AS col0
----
35
2945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT + - COUNT( * ) * + 89 * + - CAST( - - 95 AS SIGNED ) + + 59
----
8514

skipif mysql # not compatible
query I rowsort label-9362
SELECT + - COUNT ( * ) * + 89 * + - CAST ( - - 95 AS INTEGER ) + + 59
----
8514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT ALL - 3 * - ( - + 67 ) + - 64 + - - 20 + + 18 * + CAST( NULL AS SIGNED ) + 98 + - 48 * - - MIN( ALL - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - 3 * - ( - + 67 ) + - 64 + - - 20 + + 18 * + CAST ( NULL AS INTEGER ) + 98 + - 48 * - - MIN ( ALL - 14 )
----
NULL

query II rowsort
SELECT - + 92 * - 47, COALESCE ( - 43, - 4, - - 66 ) AS col0
----
4324
-43

query I rowsort
SELECT - 32 + - 97
----
-129

query I rowsort
SELECT DISTINCT - + 33 * - 82 AS col2
----
2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL - 38 * - CAST( NULLIF ( COUNT( * ), 1 - - - MIN( - 93 ) * - 69 + + - 85 ) AS SIGNED ) + - + 38 * - 25 * - - 33
----
31388

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - 38 * - CAST ( NULLIF ( COUNT ( * ), 1 - - - MIN ( - 93 ) * - 69 + + - 85 ) AS INTEGER ) + - + 38 * - 25 * - - 33
----
31388

query I rowsort
SELECT ALL - 74 + - 31 AS col1
----
-105

query I rowsort
SELECT DISTINCT - 1 * - + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL + 47 + + SUM( - 1 ) + - + 56 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL + 47 + + SUM ( - 1 ) + - + 56 AS col1
----
-10

query II rowsort
SELECT 35 col2, - 35
----
35
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT - COUNT( * ) AS col1, - 43 - + + 16
----
-1
-59

skipif mysql # not compatible
query II rowsort label-9372
SELECT - COUNT ( * ) AS col1, - 43 - + + 16
----
-1
-59

query I rowsort
SELECT - 67 * + 8 AS col2
----
-536

query I rowsort
SELECT - 73 * + 76
----
-5548

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9375
SELECT - CASE + 68 WHEN + 62 * + 25 THEN 33 * + - 94 + + + 71 WHEN - + 57 / ( - 99 ) + + ( + COUNT( * ) ) THEN NULL ELSE - - CAST( NULL AS DECIMAL ) * - + 49 * + 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CASE + 68 WHEN + 62 * + 25 THEN 33 * + - 94 + + + 71 WHEN - + 57 / ( - 99 ) + + ( + COUNT ( * ) ) THEN NULL ELSE - - CAST ( NULL AS REAL ) * - + 49 * + 47 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT ALL + 11 + + + 42 + - 90 DIV + 60 * - + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 11 + + + 42 + - 90 / + 60 * - + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - COUNT( * ) - 12 - 50 + - + 75 * + 31
----
-2388

skipif mysql # not compatible
query I rowsort label-9377
SELECT - COUNT ( * ) - 12 - 50 + - + 75 * + 31
----
-2388

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT ALL 49 * + COUNT( ALL + 2 ), COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL 49 * + COUNT ( ALL + 2 ), COUNT ( * ) AS col2
----
49
1

query I rowsort
SELECT ALL + 12 + - 88 * 2 AS col2
----
-164

query II rowsort
SELECT 46, ( + - 77 ) AS col1
----
46
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL + 39 * + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + 39 * + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL - 85 * 97
----
-8245

query I rowsort
SELECT 10 - - - 19
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT + CASE - 34 WHEN + 1 THEN - + 50 WHEN - 99 THEN + 52 + + CASE - - COUNT( * ) WHEN 59 / + + 17 + - - 3 + - - 97 THEN NULL WHEN - + 52 + - 63 * + 85 * 32 THEN 91 END END / + + MAX( DISTINCT 8 ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + CASE - 34 WHEN + 1 THEN - + 50 WHEN - 99 THEN + 52 + + CASE - - COUNT ( * ) WHEN 59 / + + 17 + - - 3 + - - 97 THEN NULL WHEN - + 52 + - 63 * + 85 * 32 THEN 91 END END / + + MAX ( DISTINCT 8 ) + + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT COUNT( * ) DIV - - 72 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT COUNT ( * ) / - - 72 * + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - MAX( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - MAX ( + 98 )
----
-98

query I rowsort
SELECT 29 * - 85 col0
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT - COUNT( ALL - 57 ) * + + 20 * 53 DIV + COALESCE ( - 35, + 34 * - COUNT( * ) + 30 + 71, - 78 * + - 92 ) + - 48 + 57 * - 79 AS col0
----
-4521

skipif mysql # not compatible
query I rowsort label-9389
SELECT - COUNT ( ALL - 57 ) * + + 20 * 53 / + COALESCE ( - 35, + 34 * - COUNT ( * ) + 30 + 71, - 78 * + - 92 ) + - 48 + 57 * - 79 AS col0
----
-4521

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT 54 * 36 DIV - 10 + - 34
----
-228

skipif mysql # not compatible
query I rowsort label-9390
SELECT 54 * 36 / - 10 + - 34
----
-228

query I rowsort
SELECT DISTINCT - - ( - - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT + COUNT( * ) * + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + COUNT ( * ) * + 87 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9393
SELECT + - 98 AS col2, 61 + 92 + - CAST( NULL AS SIGNED )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-9393
SELECT + - 98 AS col2, 61 + 92 + - CAST ( NULL AS INTEGER )
----
-98
NULL

query II rowsort
SELECT ALL - + 28 AS col2, - 44
----
-28
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT SUM( - + 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9395
SELECT SUM ( - + 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + COUNT( * ) * - 34 * + - COUNT( + 84 ) * - 18 * COUNT( * ) + - CASE - + 54 WHEN + 36 THEN - - 57 / 90 + - 91 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT + COUNT ( * ) * - 34 * + - COUNT ( + 84 ) * - 18 * COUNT ( * ) + - CASE - + 54 WHEN + 36 THEN - - 57 / 90 + - 91 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT 75 * + + 12 * - SUM( 28 ) AS col2
----
-25200

skipif mysql # not compatible
query I rowsort label-9397
SELECT 75 * + + 12 * - SUM ( 28 ) AS col2
----
-25200

query I rowsort
SELECT DISTINCT 50 * + - 47 * + + 53 AS col1
----
-124550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9399
SELECT 68 DIV 95 * 32, + 94 DIV + MAX( + + 91 ) + - - 78 AS col2
----
0
79

skipif mysql # not compatible
query II rowsort label-9399
SELECT 68 / 95 * 32, + 94 / + MAX ( + + 91 ) + - - 78 AS col2
----
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - - 62 * COUNT( * ) + - - 83 col2
----
145

skipif mysql # not compatible
query I rowsort label-9400
SELECT - - 62 * COUNT ( * ) + - - 83 col2
----
145

query I rowsort
SELECT DISTINCT - 5 + + 74
----
69

query I rowsort
SELECT ALL + 30 + 15 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT 47 DIV + COUNT( ALL - 89 )
----
47

skipif mysql # not compatible
query I rowsort label-9403
SELECT 47 / + COUNT ( ALL - 89 )
----
47

query I rowsort
SELECT ALL + 42 + - + 15 * - 30
----
492

query I rowsort
SELECT ( + 56 ) - 3
----
53

query I rowsort
SELECT ALL 86 + - - 98 + - + 74 * - 26 AS col0
----
2108

query I rowsort
SELECT DISTINCT 44 + 45 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT 85 DIV + - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9408
SELECT 85 / + - 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9409
SELECT ALL 79 + - MAX( 45 ) - + + 4 AS col1, 62 * - 77 * - CASE - 73 WHEN - - 63 THEN 79 END
----
30
NULL

skipif mysql # not compatible
query II rowsort label-9409
SELECT ALL 79 + - MAX ( 45 ) - + + 4 AS col1, 62 * - 77 * - CASE - 73 WHEN - - 63 THEN 79 END
----
30
NULL

query I rowsort
SELECT ( - + 1 ) * + 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT 65 + MIN( + 22 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9411
SELECT 65 + MIN ( + 22 ) AS col2
----
87

query I rowsort
SELECT DISTINCT - 70 * + 1
----
-70

query I rowsort
SELECT ALL 43 + + 46 + + 4
----
93

query I rowsort
SELECT 85 + - 50 - 53
----
-18

query I rowsort
SELECT ALL 20 - + 5 * - 8
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT ALL + 80 - - COUNT( * ) AS col0, 48
----
81
48

skipif mysql # not compatible
query II rowsort label-9416
SELECT ALL + 80 - - COUNT ( * ) AS col0, 48
----
81
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - SUM( ALL - - 97 ) * + 64
----
-6208

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - SUM ( ALL - - 97 ) * + 64
----
-6208

query I rowsort
SELECT 19 + - 57 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT 94 * + COUNT( * ) * 24 * + - 94 * - 92
----
19509888

skipif mysql # not compatible
query I rowsort label-9419
SELECT 94 * + COUNT ( * ) * 24 * + - 94 * - 92
----
19509888

query I rowsort
SELECT 29 + - 42
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT 0 DIV - 2 DIV COUNT( DISTINCT - 7 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT 0 / - 2 / COUNT ( DISTINCT - 7 ) col1
----
0

query I rowsort
SELECT 41 * - 67
----
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT ALL + 21 / + 71 * + - CASE - - ( 36 ) WHEN 27 THEN NULL WHEN + 60 THEN - 38 + 29 * + + 72 * + ( - 86 ) * + 29 * + COUNT( * ) END AS col0, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9423
SELECT ALL + 21 / + 71 * + - CASE - - ( 36 ) WHEN 27 THEN NULL WHEN + 60 THEN - 38 + 29 * + + 72 * + ( - 86 ) * + 29 * + COUNT ( * ) END AS col0, 48
----
NULL
48

query I rowsort
SELECT ALL + - CASE - - ( - 51 ) WHEN 58 THEN - 6 + 4 + - 43 ELSE NULL END * - 90 * + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL + ( - CAST( + 44 AS SIGNED ) ) * + 77
----
-3388

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + ( - CAST ( + 44 AS INTEGER ) ) * + 77
----
-3388

query II rowsort
SELECT ALL - ( - 90 ), - 63 AS col1
----
90
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + COALESCE ( + COUNT( * ), 99 ) * - + 66
----
-66

skipif mysql # not compatible
query I rowsort label-9427
SELECT + COALESCE ( + COUNT ( * ), 99 ) * - + 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT + 86 * - COALESCE ( 20, COUNT( * ) ) + NULLIF ( - 19, - + MAX( + 98 ) DIV 9 ) + 21 * + COUNT( * ) DIV - 34 * - ( + - 52 )
----
-1739

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 86 * - COALESCE ( 20, COUNT ( * ) ) + NULLIF ( - 19, - + MAX ( + 98 ) / 9 ) + 21 * + COUNT ( * ) / - 34 * - ( + - 52 )
----
-1739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9429
SELECT DISTINCT + + COUNT( ALL - + CAST( NULL AS SIGNED ) ) + - - NULLIF ( - - CAST( NULL AS DECIMAL ), - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + - - NULLIF ( - - CAST ( NULL AS REAL ), - 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - - 91 * NULLIF ( + NULLIF ( ( + 97 ), - 6 + + - 80 ), - 68 * + COUNT( * ) ) * + ( - - COUNT( * ) )
----
8827

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - - 91 * NULLIF ( + NULLIF ( ( + 97 ), - 6 + + - 80 ), - 68 * + COUNT ( * ) ) * + ( - - COUNT ( * ) )
----
8827

query I rowsort
SELECT NULLIF ( - 74, 49 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9432
SELECT 90 * - + 30 DIV + CASE + 10 WHEN - 42 + - 35 + - + 27 THEN NULL WHEN - 59 * - 80 + - - 30 * - 6 THEN + - MIN( DISTINCT 3 ) + + - CAST( NULL AS SIGNED ) - - 73 * + 46 * - + 88 DIV 55 + + 32 + - 48 ELSE + 5 END AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-9432
SELECT 90 * - + 30 / + CASE + 10 WHEN - 42 + - 35 + - + 27 THEN NULL WHEN - 59 * - 80 + - - 30 * - 6 THEN + - MIN ( DISTINCT 3 ) + + - CAST ( NULL AS INTEGER ) - - 73 * + 46 * - + 88 / 55 + + 32 + - 48 ELSE + 5 END AS col1
----
-540

query I rowsort
SELECT DISTINCT + 34 + + - 48 + - 25 + + 67 * 69
----
4584

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT COUNT( - + CASE - 22 WHEN 81 THEN 29 END ) * - 98 + - - 2 + 44 + - + 84 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9434
SELECT COUNT ( - + CASE - 22 WHEN 81 THEN 29 END ) * - 98 + - - 2 + 44 + - + 84 AS col0
----
-38

query I rowsort
SELECT ALL - 84 + + 21
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL - 21 * + 13 + - CAST( - + CAST( + - 37 AS SIGNED ) AS SIGNED ) + - 78
----
-388

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL - 21 * + 13 + - CAST ( - + CAST ( + - 37 AS INTEGER ) AS INTEGER ) + - 78
----
-388

query I rowsort
SELECT DISTINCT 45 + - + 63 AS col1
----
-18

query I rowsort
SELECT 85 + 60 * - + 21 + + - 87 AS col1
----
-1262

query I rowsort
SELECT ALL 80 + 29 + 61
----
170

query I rowsort
SELECT ALL 38 * - - 21 * 59
----
47082

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + COUNT( * ) * + 12 + COUNT( ALL - 76 ) + + 35 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9441
SELECT + COUNT ( * ) * + 12 + COUNT ( ALL - 76 ) + + 35 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT 73 * - 14 * + CASE - + 67 WHEN - 94 + - 74 + + 25 THEN 65 + + + ( - - 43 ) WHEN + 2 * + 7 + - + 44 THEN NULL ELSE NULL END / 88 + 58 / - COUNT( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT 73 * - 14 * + CASE - + 67 WHEN - 94 + - 74 + + 25 THEN 65 + + + ( - - 43 ) WHEN + 2 * + 7 + - + 44 THEN NULL ELSE NULL END / 88 + 58 / - COUNT ( + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - COUNT( - 32 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9443
SELECT - COUNT ( - 32 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL NULLIF ( + ( 0 ), - - 28 + + + 43 + + - ( COALESCE ( - 0, + - 24 ) ) + - 44 * + 54 ) - CAST( + 57 AS SIGNED ) - + 26 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL NULLIF ( + ( 0 ), - - 28 + + + 43 + + - ( COALESCE ( - 0, + - 24 ) ) + - 44 * + 54 ) - CAST ( + 57 AS INTEGER ) - + 26 AS col2
----
-83

query II rowsort
SELECT 85, 83 col2
----
85
83

query II rowsort
SELECT ALL 35, 17 AS col0
----
35
17

query I rowsort
SELECT + 66 * + 86 AS col1
----
5676

query II rowsort
SELECT ALL 47 AS col1, - 74 * - 11 AS col1
----
47
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9449
SELECT + CASE + ( + + COUNT( * ) ) WHEN - - 74 * - ( - COUNT( * ) ) + - CAST( + 37 AS SIGNED ) * 66 THEN + COUNT( * ) + + + 31 WHEN - 41 THEN NULL WHEN + 62 + - 29 + CAST( NULL AS DECIMAL ) / 35 THEN NULL END * + 56 + CASE + + 13 WHEN + 6 THEN NULL ELSE + - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT + CASE + ( + + COUNT ( * ) ) WHEN - - 74 * - ( - COUNT ( * ) ) + - CAST ( + 37 AS INTEGER ) * 66 THEN + COUNT ( * ) + + + 31 WHEN - 41 THEN NULL WHEN + 62 + - 29 + CAST ( NULL AS REAL ) / 35 THEN NULL END * + 56 + CASE + + 13 WHEN + 6 THEN NULL ELSE + - 8 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT + 30 * - 30 * - 62 DIV COUNT( * ) * + 40
----
2232000

skipif mysql # not compatible
query I rowsort label-9450
SELECT + 30 * - 30 * - 62 / COUNT ( * ) * + 40
----
2232000

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - 36 * - ( CASE + + 55 WHEN - 9 + - 28 - + COUNT( * ) * ( 53 ) THEN NULL ELSE - + COUNT( * ) END )
----
-36

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 36 * - ( CASE + + 55 WHEN - 9 + - 28 - + COUNT ( * ) * ( 53 ) THEN NULL ELSE - + COUNT ( * ) END )
----
-36

query I rowsort
SELECT + 48 - + - 53 + + 15 AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL - COALESCE ( + 76, 63 DIV + 18, 55 ) * + 0 * - 7 * 43 + 51
----
51

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - COALESCE ( + 76, 63 / + 18, 55 ) * + 0 * - 7 * 43 + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + MIN( ALL - - 29 ) + - - SUM( + - 35 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9454
SELECT + MIN ( ALL - - 29 ) + - - SUM ( + - 35 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT - CAST( NULL AS SIGNED ) - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT - CAST ( NULL AS INTEGER ) - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT ALL + 18 * + COUNT( * ) + + COUNT( * ) + + - 64 + + COUNT( * ) * - - 10 DIV + 71 + + 39 * - 87 AS col0
----
-3438

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + 18 * + COUNT ( * ) + + COUNT ( * ) + + - 64 + + COUNT ( * ) * - - 10 / + 71 + + 39 * - 87 AS col0
----
-3438

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL COUNT( * ) * - COUNT( * ) + - NULLIF ( + 28, + 79 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - NULLIF ( + 28, + 79 ) AS col2
----
-29

query I rowsort
SELECT ALL + 75 * 60 + ( - 93 ) AS col0
----
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - 68 * 72 + COUNT( * ) AS col2
----
-4895

skipif mysql # not compatible
query I rowsort label-9459
SELECT - 68 * 72 + COUNT ( * ) AS col2
----
-4895

query I rowsort
SELECT 36 * - 53 + 31 - 59
----
-1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL + NULLIF ( + 89, CAST( + ( - - 35 ) AS SIGNED ) ) * + 27 + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + NULLIF ( + 89, CAST ( + ( - - 35 ) AS INTEGER ) ) * + 27 + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 24 * - ( - 5 ) * + - COUNT( * ) * - + 1 * + - COUNT( * ) / 8 + + 39 + + + MIN( - 18 ) * + 49 + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 24 * - ( - 5 ) * + - COUNT ( * ) * - + 1 * + - COUNT ( * ) / 8 + + 39 + + + MIN ( - 18 ) * + 49 + 25 AS col1
----
NULL

query I rowsort
SELECT ALL + - 72 * + 33 AS col1
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - 44 * + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 44 * + - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT COUNT( ALL - 62 ) * - 50 + + 17 - - + 2 + 94 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9465
SELECT COUNT ( ALL - 62 ) * - 50 + + 17 - - + 2 + 94 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - NULLIF ( - COUNT( * ), + - 11 ) + + 4 col2
----
5

skipif mysql # not compatible
query I rowsort label-9466
SELECT - NULLIF ( - COUNT ( * ), + - 11 ) + + 4 col2
----
5

query II rowsort
SELECT DISTINCT + 46 AS col0, - 23 * + - 51
----
46
1173

query I rowsort
SELECT ALL - 75 * NULLIF ( - - 69, - COALESCE ( - 72, 18 ) + + + 47 ) - - 48 - + 47 * - 58
----
-2401

query II rowsort
SELECT ALL ( - 74 ), + 67 AS col1
----
-74
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9470
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, ( - 91 )
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-9470
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, ( - 91 )
----
NULL
-91

query I rowsort
SELECT - NULLIF ( + - 27, + 97 ) col2
----
27

query I rowsort
SELECT - 78 + - 27
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT 17 * + + 90 * - 28 - - + CAST( + 15 AS SIGNED )
----
-42825

skipif mysql # not compatible
query I rowsort label-9473
SELECT 17 * + + 90 * - 28 - - + CAST ( + 15 AS INTEGER )
----
-42825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT ALL CAST( - 26 AS SIGNED ) * 8 * - 80 - - 99 col1
----
16739

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL CAST ( - 26 AS INTEGER ) * 8 * - 80 - - 99 col1
----
16739

query I rowsort
SELECT ALL NULLIF ( + 58, 62 ) * + + 31 * - + 73
----
-131254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT - CAST( + - 87 AS SIGNED ) + - - 89 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-9476
SELECT - CAST ( + - 87 AS INTEGER ) + - - 89 AS col2
----
176

query I rowsort
SELECT + 60 + 38 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9478
SELECT - CAST( + - 74 AS SIGNED ) DIV + 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9478
SELECT - CAST ( + - 74 AS INTEGER ) / + 35 AS col0
----
2

query I rowsort
SELECT DISTINCT ( + + 38 ) * + 56 * + - 21
----
-44688

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9480
SELECT ALL 45 AS col2, 26 + + - 5 * - 85 DIV CAST( - 28 AS SIGNED )
----
45
11

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL 45 AS col2, 26 + + - 5 * - 85 / CAST ( - 28 AS INTEGER )
----
45
11

query I rowsort
SELECT + 48 + 83
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9482
SELECT + COUNT( * ) * 8 * - ( + AVG ( DISTINCT + 8 ) ) / + 90 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT + COUNT ( * ) * 8 * - ( + AVG ( DISTINCT + 8 ) ) / + 90 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + 24 + - - 59 - COUNT( * ) * 19
----
64

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 24 + - - 59 - COUNT ( * ) * 19
----
64

query I rowsort
SELECT ALL - 17 * - ( - 20 )
----
-340

query II rowsort
SELECT ALL 3 AS col0, + 29 + 5 + + - 38 AS col2
----
3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT 48 * + COUNT( DISTINCT 64 )
----
48

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT 48 * + COUNT ( DISTINCT 64 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL COUNT( 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL COUNT ( 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + NULLIF ( - ( + COUNT( * ) ), + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + NULLIF ( - ( + COUNT ( * ) ), + 86 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT MAX( ALL 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT MAX ( ALL 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT - COALESCE ( 0, - + NULLIF ( - 73, - 51 + - 68 + + COUNT( ALL 95 ) * - 67 ) + ( - 54 ) + - 14 ) + - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - COALESCE ( 0, - + NULLIF ( - 73, - 51 + - 68 + + COUNT ( ALL 95 ) * - 67 ) + ( - 54 ) + - 14 ) + - 51 AS col2
----
-51

query I rowsort
SELECT + - 75 + - + 97 AS col1
----
-172

query I rowsort
SELECT ( + - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + + COUNT( * ) + - - 84 col1
----
85

skipif mysql # not compatible
query I rowsort label-9493
SELECT + + COUNT ( * ) + - - 84 col1
----
85

query II rowsort
SELECT 84, + 42 + 47 AS col0
----
84
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9495
SELECT + CAST( NULL AS SIGNED ) AS col1, - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-9495
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 36
----
NULL
-36

query I rowsort
SELECT ALL + 20 + - + 79
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL - 45 + - SUM( ALL + ( + + 81 ) )
----
-126

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - 45 + - SUM ( ALL + ( + + 81 ) )
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9498
SELECT DISTINCT + COUNT( * ) AS col2, 13 DIV COUNT( * )
----
1
13

skipif mysql # not compatible
query II rowsort label-9498
SELECT DISTINCT + COUNT ( * ) AS col2, 13 / COUNT ( * )
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9499
SELECT DISTINCT - - COUNT( * ) DIV 36 * - + 47 + - COALESCE ( - COUNT( * ), + + 36 DIV + COUNT( * ) ) - - + 34 * + CAST( - 8 AS SIGNED )
----
-271

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - - COUNT ( * ) / 36 * - + 47 + - COALESCE ( - COUNT ( * ), + + 36 / + COUNT ( * ) ) - - + 34 * + CAST ( - 8 AS INTEGER )
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL + - COUNT( * ) * - 78 * 43
----
3354

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + - COUNT ( * ) * - 78 * 43
----
3354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT ALL + MIN( - COALESCE ( 97, COALESCE ( - + 52, + + 18 ) ) ) DIV + NULLIF ( 31, + - 58 - - + 11 DIV 30 * + 2 ) + + 88 * - ( + 28 ) AS col1
----
-2467

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + MIN ( - COALESCE ( 97, COALESCE ( - + 52, + + 18 ) ) ) / + NULLIF ( 31, + - 58 - - + 11 / 30 * + 2 ) + + 88 * - ( + 28 ) AS col1
----
-2467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT - 26 * + - COUNT( * ) + - + 12 * - COUNT( + 44 ) * 27 + CAST( NULL AS SIGNED ) / ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - 26 * + - COUNT ( * ) + - + 12 * - COUNT ( + 44 ) * 27 + CAST ( NULL AS INTEGER ) / ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 84 - - 98 AS col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT - - 99 * + CAST( NULL AS SIGNED ) / ( - 39 ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT - - 99 * + CAST ( NULL AS INTEGER ) / ( - 39 ) * 76
----
NULL

query II rowsort
SELECT + 24, 50 AS col0
----
24
50

query I rowsort
SELECT ALL + - ( + - ( - 71 ) )
----
-71

query II rowsort
SELECT ALL - 29 - + + 97, 95 AS col1
----
-126
95

query I rowsort
SELECT 69 * 41
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT 4 * - COUNT( + 93 )
----
-4

skipif mysql # not compatible
query I rowsort label-9509
SELECT 4 * - COUNT ( + 93 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL - NULLIF ( - 75, CAST( MAX( - 52 ) AS SIGNED ) + + ( + 14 ) * - 14 * + 53 * + - CASE + COUNT( 97 ) WHEN + COUNT( * ) THEN + + 93 * - 74 WHEN + + 20 THEN NULL END )
----
75

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - NULLIF ( - 75, CAST ( MAX ( - 52 ) AS INTEGER ) + + ( + 14 ) * - 14 * + 53 * + - CASE + COUNT ( 97 ) WHEN + COUNT ( * ) THEN + + 93 * - 74 WHEN + + 20 THEN NULL END )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT 94 * + - COUNT( * ) AS col0, - 41 AS col2
----
-94
-41

skipif mysql # not compatible
query II rowsort label-9511
SELECT 94 * + - COUNT ( * ) AS col0, - 41 AS col2
----
-94
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT ALL - COUNT( * ) DIV + + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - COUNT ( * ) / + + 77 AS col2
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - 22, 26, - 55 ) col1
----
22

query II rowsort
SELECT DISTINCT - 12 * - 88 AS col1, 17 col1
----
1056
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT COUNT( * ) + 47 + - 20 + 94 + - ( + COALESCE ( + 3, - 71 ) ) + - COUNT( * ) DIV NULLIF ( + 43, - - COUNT( * ) * - 14 )
----
119

skipif mysql # not compatible
query I rowsort label-9515
SELECT COUNT ( * ) + 47 + - 20 + 94 + - ( + COALESCE ( + 3, - 71 ) ) + - COUNT ( * ) / NULLIF ( + 43, - - COUNT ( * ) * - 14 )
----
119

query II rowsort
SELECT ALL - ( - 34 ) AS col1, 3
----
34
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT ALL - 94 * + + 82, COUNT( * ) AS col2
----
-7708
1

skipif mysql # not compatible
query II rowsort label-9517
SELECT ALL - 94 * + + 82, COUNT ( * ) AS col2
----
-7708
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT 84 * + 51 col2, 49 * + - COUNT( * )
----
4284
-49

skipif mysql # not compatible
query II rowsort label-9518
SELECT 84 * + 51 col2, 49 * + - COUNT ( * )
----
4284
-49

query II rowsort
SELECT 21 * + - 83 + - - 3 AS col0, - 95 AS col1
----
-1740
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL + NULLIF ( + 7, - + COUNT( DISTINCT + NULLIF ( + - 96, - 9 ) ) ) * + NULLIF ( COUNT( * ), - 4 ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + NULLIF ( + 7, - + COUNT ( DISTINCT + NULLIF ( + - 96, - 9 ) ) ) * + NULLIF ( COUNT ( * ), - 4 ) / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - 22 + + MAX( ALL - + 95 ) * - 24 * + 52 AS col2
----
118538

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - 22 + + MAX ( ALL - + 95 ) * - 24 * + 52 AS col2
----
118538

query I rowsort
SELECT + ( - 15 ) + + 70
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT 19 * 99 * + CAST( + ( 57 ) AS SIGNED ) AS col1
----
107217

skipif mysql # not compatible
query I rowsort label-9523
SELECT 19 * 99 * + CAST ( + ( 57 ) AS INTEGER ) AS col1
----
107217

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9524
SELECT MAX( - 2 ), + 64 * + + 38 + 14 DIV - COUNT( ALL NULLIF ( 95, - + 63 ) ) col2
----
-2
2418

skipif mysql # not compatible
query II rowsort label-9524
SELECT MAX ( - 2 ), + 64 * + + 38 + 14 / - COUNT ( ALL NULLIF ( 95, - + 63 ) ) col2
----
-2
2418

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9525
SELECT - CASE - + 73 WHEN - - 91 / + 91 THEN + 86 WHEN - + CAST( NULL AS DECIMAL ) + 69 / - 9 THEN - - 71 * - 65 - - 32 - - 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT - CASE - + 73 WHEN - - 91 / + 91 THEN + 86 WHEN - + CAST ( NULL AS REAL ) + 69 / - 9 THEN - - 71 * - 65 - - 32 - - 62 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT + 36 DIV + + COUNT( * ) col1
----
36

skipif mysql # not compatible
query I rowsort label-9526
SELECT + 36 / + + COUNT ( * ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 5 + - 6 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 5 + - 6 * COUNT ( * )
----
-1

query I rowsort
SELECT 98 - - 83 + - + 85
----
96

query I rowsort
SELECT ALL - CASE ( - 70 ) WHEN + 51 THEN 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL MAX( - - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL MAX ( - - 36 ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9531
SELECT - 2 DIV - - 35 col2, + 17 * - 69 + - + 71
----
0
-1244

skipif mysql # not compatible
query II rowsort label-9531
SELECT - 2 / - - 35 col2, + 17 * - 69 + - + 71
----
0
-1244

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT ALL + 8 - - - 49 DIV + 62
----
8

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + 8 - - - 49 / + 62
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + MAX( ( 81 ) ) + - + SUM( ( 11 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9533
SELECT + MAX ( ( 81 ) ) + - + SUM ( ( 11 ) ) AS col2
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9534
SELECT + 38 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT + 38 - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9535
SELECT ALL + 22 DIV + 37 * + - 64, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL + 22 / + 37 * + - 64, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT - 78 * ( + 34 ) AS col0
----
-2652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9537
SELECT + + 9 * + 49 * - 38 / + 51 + + - 66 + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ), 79 * 66 AS col1
----
NULL
5214

skipif mysql # not compatible
query II rowsort label-9537
SELECT + + 9 * + 49 * - 38 / + 51 + + - 66 + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ), 79 * 66 AS col1
----
NULL
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL COUNT( * ) * - + SUM( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL COUNT ( * ) * - + SUM ( 89 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT 37 DIV + 3
----
12

skipif mysql # not compatible
query I rowsort label-9539
SELECT 37 / + 3
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT CAST( 69 AS SIGNED ) * 21 + 15 * - + 6 AS col1
----
1359

skipif mysql # not compatible
query I rowsort label-9540
SELECT CAST ( 69 AS INTEGER ) * 21 + 15 * - + 6 AS col1
----
1359

query I rowsort
SELECT ALL 9 * - 47
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT - SUM( ALL 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - SUM ( ALL 34 )
----
-34

query I rowsort
SELECT ALL 73 * 83 AS col0
----
6059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT 75 + + 76 DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9544
SELECT 75 + + 76 / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT 13 + 92 + 40 * 27
----
1185

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT ALL - COUNT( * ), + CASE 45 WHEN COUNT( * ) THEN + 16 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9546
SELECT ALL - COUNT ( * ), + CASE 45 WHEN COUNT ( * ) THEN + 16 END AS col2
----
-1
NULL

query II rowsort
SELECT + 76 AS col0, - 9 * 33
----
76
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL - SUM( ALL + - 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - SUM ( ALL + - 31 ) col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT 29 * 32 DIV + CASE + - 87 WHEN 85 + - 31 DIV - + ( 74 ) THEN + COUNT( * ) - - 22 + - 18 WHEN + - ( + 19 ) * 34 + + 9 + - COUNT( * ) THEN - - SUM( - 93 ) + - - 48 * + COUNT( + 81 ) * 50 - 95 * 92 * + + 78 - - + 97 ELSE + - 53 END
----
-17

skipif mysql # not compatible
query I rowsort label-9549
SELECT 29 * 32 / + CASE + - 87 WHEN 85 + - 31 / - + ( 74 ) THEN + COUNT ( * ) - - 22 + - 18 WHEN + - ( + 19 ) * 34 + + 9 + - COUNT ( * ) THEN - - SUM ( - 93 ) + - - 48 * + COUNT ( + 81 ) * 50 - 95 * 92 * + + 78 - - + 97 ELSE + - 53 END
----
-17

query I rowsort
SELECT ALL - 90 + + 47
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT 53 * SUM( + 79 ) + - 25 col0
----
4162

skipif mysql # not compatible
query I rowsort label-9551
SELECT 53 * SUM ( + 79 ) + - 25 col0
----
4162

query II rowsort
SELECT DISTINCT - 71 col1, 82 AS col2
----
-71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT 72 + - - SUM( + - ( - 66 ) )
----
138

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT 72 + - - SUM ( + - ( - 66 ) )
----
138

query I rowsort
SELECT DISTINCT - ( 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL - CAST( ( - 43 ) AS SIGNED ) * + 97
----
4171

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - CAST ( ( - 43 ) AS INTEGER ) * + 97
----
4171

query I rowsort
SELECT 19 + - - 93 + + 39
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL 7 + COUNT( * ) * + 41 * + 55
----
2262

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 7 + COUNT ( * ) * + 41 * + 55
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT CASE + 25 WHEN - - 4 - 6 THEN COALESCE ( - - ( COUNT( * ) ), + COUNT( * ) * - 76, + 11 + 58 ) - CASE + 16 WHEN - COUNT( * ) + COUNT( * ) THEN + - COUNT( * ) * - 37 END * - 37 WHEN - ( 43 ) THEN NULL WHEN 64 * + 86 / - + 66 + - 43 THEN NULL WHEN - + 11 THEN NULL END + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT CASE + 25 WHEN - - 4 - 6 THEN COALESCE ( - - ( COUNT ( * ) ), + COUNT ( * ) * - 76, + 11 + 58 ) - CASE + 16 WHEN - COUNT ( * ) + COUNT ( * ) THEN + - COUNT ( * ) * - 37 END * - 37 WHEN - ( 43 ) THEN NULL WHEN 64 * + 86 / - + 66 + - 43 THEN NULL WHEN - + 11 THEN NULL END + 90 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ALL + 91 + + 29 DIV 1
----
120

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + 91 + + 29 / 1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT 35 - 99 * 96 * - + COUNT( * ) AS col1, 35
----
9539
35

skipif mysql # not compatible
query II rowsort label-9560
SELECT 35 - 99 * 96 * - + COUNT ( * ) AS col1, 35
----
9539
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT COALESCE ( + 12, - 33, + ( 11 ) DIV + + 67 ) + + 32
----
44

skipif mysql # not compatible
query I rowsort label-9561
SELECT COALESCE ( + 12, - 33, + ( 11 ) / + + 67 ) + + 32
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - COUNT( * ) * + - 98 * + 42 AS col0
----
4116

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - COUNT ( * ) * + - 98 * + 42 AS col0
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + COALESCE ( MAX( - + CASE + + 45 WHEN + 10 THEN 48 END ), - 79 + + + ( 87 ) ) + + 89
----
97

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + COALESCE ( MAX ( - + CASE + + 45 WHEN + 10 THEN 48 END ), - 79 + + + ( 87 ) ) + + 89
----
97

query I rowsort
SELECT ALL + - ( + - 27 ) + + 6 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT DISTINCT 1 col0, SUM( ALL - - 1 ) + 75
----
1
76

skipif mysql # not compatible
query II rowsort label-9565
SELECT DISTINCT 1 col0, SUM ( ALL - - 1 ) + 75
----
1
76

query I rowsort
SELECT DISTINCT + 50 + + 45 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9567
SELECT + CASE 53 WHEN + COUNT( * ) * 21 + - 70 THEN 33 ELSE 17 END + + 58, 81 / + + CAST( NULL AS SIGNED ) * + - 38 AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9567
SELECT + CASE 53 WHEN + COUNT ( * ) * 21 + - 70 THEN 33 ELSE 17 END + + 58, 81 / + + CAST ( NULL AS INTEGER ) * + - 38 AS col0
----
75
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9568
SELECT - COALESCE ( - 39, + + CASE 88 WHEN + ( + 9 ) THEN - ( + + NULLIF ( 51, + AVG ( + 29 ) * + CAST( NULL AS SIGNED ) + + + 44 ) ) + - 71 + - NULLIF ( + 86, - - 0 ) + + CAST( NULL AS SIGNED ) - 41 DIV + - 79 * + - 37 + - + CAST( 27 AS SIGNED ) ELSE - - ( + + 7 ) + + + 37 * - 37 END + + 42, + 12 * + + 25 + + 83 * - + 7 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9568
SELECT - COALESCE ( - 39, + + CASE 88 WHEN + ( + 9 ) THEN - ( + + NULLIF ( 51, + AVG ( + 29 ) * + CAST ( NULL AS INTEGER ) + + + 44 ) ) + - 71 + - NULLIF ( + 86, - - 0 ) + + CAST ( NULL AS INTEGER ) - 41 / + - 79 * + - 37 + - + CAST ( 27 AS INTEGER ) ELSE - - ( + + 7 ) + + + 37 * - 37 END + + 42, + 12 * + + 25 + + 83 * - + 7 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 23 + CASE - 77 WHEN + + 97 * - 20 / + 96 THEN + 4 * + 18 WHEN 55 + COALESCE ( 29, - COUNT( * ), + 49 ) + 81 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT 23 + CASE - 77 WHEN + + 97 * - 20 / + 96 THEN + 4 * + 18 WHEN 55 + COALESCE ( 29, - COUNT ( * ), + 49 ) + 81 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 82 + + 75 AS col0
----
157

query I rowsort
SELECT + + 65 * 54
----
3510

query I rowsort
SELECT DISTINCT - 43 * - 19 + + 4 AS col0
----
821

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL MIN( + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL MIN ( + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT DISTINCT CAST( 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT CAST ( 29 AS INTEGER ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9575
SELECT + 56 / - 36 * COUNT( * ) + + + 29 * + 0 * - 51 + + - 45 + - 23 - - 8 - COUNT( * ) + + 86 + + - CAST( NULL AS DECIMAL ) * 80 / - + 81 / + 48 * - CASE - - 26 WHEN 95 * - 69 + + 78 + 60 - + 12 THEN - - 21 / CASE - - COUNT( * ) WHEN + 25 THEN NULL ELSE - MAX( - + 36 ) * 28 * - - ( - 21 ) END * - + 4 + CAST( 39 AS SIGNED ) * + 68 + 71 ELSE 10 - ( - 57 - + SUM( 72 + - 86 ) ) END + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 56 / - 36 * COUNT ( * ) + + + 29 * + 0 * - 51 + + - 45 + - 23 - - 8 - COUNT ( * ) + + 86 + + - CAST ( NULL AS REAL ) * 80 / - + 81 / + 48 * - CASE - - 26 WHEN 95 * - 69 + + 78 + 60 - + 12 THEN - - 21 / CASE - - COUNT ( * ) WHEN + 25 THEN NULL ELSE - MAX ( - + 36 ) * 28 * - - ( - 21 ) END * - + 4 + CAST ( 39 AS INTEGER ) * + 68 + 71 ELSE 10 - ( - 57 - + SUM ( 72 + - 86 ) ) END + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT + 12 * + 13 DIV - COUNT( * )
----
-156

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + 12 * + 13 / - COUNT ( * )
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT - CASE 80 WHEN 58 / + 27 * 78 + - - 79 THEN 9 * + 41 END * - 96 / + + CAST( + - 93 AS SIGNED ) / - NULLIF ( + 60, - 37 + - ( 69 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT - CASE 80 WHEN 58 / + 27 * 78 + - - 79 THEN 9 * + 41 END * - 96 / + + CAST ( + - 93 AS INTEGER ) / - NULLIF ( + 60, - 37 + - ( 69 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - 36 * + 63 * - - MAX( DISTINCT 84 ) + CASE - 25 WHEN - 46 THEN - 91 * + 16 + - ( + ( 9 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 36 * + 63 * - - MAX ( DISTINCT 84 ) + CASE - 25 WHEN - 46 THEN - 91 * + 16 + - ( + ( 9 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL + 16 * - - COUNT( * ) + - 7 col0
----
9

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + 16 * - - COUNT ( * ) + - 7 col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9581
SELECT ALL COALESCE ( + 12, + - 72 * - ( - 51 ) ) DIV + 77 * + ( + 76 ) + + 88 AS col0, + 73 DIV - COUNT( * ) AS col2
----
88
-73

skipif mysql # not compatible
query II rowsort label-9581
SELECT ALL COALESCE ( + 12, + - 72 * - ( - 51 ) ) / + 77 * + ( + 76 ) + + 88 AS col0, + 73 / - COUNT ( * ) AS col2
----
88
-73

query I rowsort
SELECT + 49 + - - 72
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT 58 * - COUNT( * ) + - 90 * + ( + + 63 )
----
-5728

skipif mysql # not compatible
query I rowsort label-9583
SELECT 58 * - COUNT ( * ) + - 90 * + ( + + 63 )
----
-5728

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL + COUNT( + - 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL + COUNT ( + - 62 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + CASE 51 WHEN + 64 * + - 85 * - 47 * - + 67 THEN - + COUNT( + 96 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT + CASE 51 WHEN + 64 * + - 85 * - 47 * - + 67 THEN - + COUNT ( + 96 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT MIN( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9586
SELECT MIN ( + 11 )
----
11

query I rowsort
SELECT + 95 + - 2 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT COUNT( * ) * - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT COUNT ( * ) * - + 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT + COALESCE ( 50, - ( + 45 ) * COALESCE ( CASE + + CASE - 12 WHEN 78 + + 33 THEN + 77 WHEN + + COALESCE ( + 15, 39, + 69 + + 47 + + CAST( + 32 AS SIGNED ) * - ( - 37 ) ) THEN - 17 ELSE 35 / 84 END WHEN - 37 THEN + 12 - + 1 END, 90 - - 45, - COUNT( * ) + - 67 ) - - MIN( DISTINCT + 47 ) * - - COALESCE ( - + 88, + 17 ) ) * - 89 + - NULLIF ( 98, + AVG ( 4 ) )
----
-4548

skipif mysql # not compatible
query I rowsort label-9589
SELECT + COALESCE ( 50, - ( + 45 ) * COALESCE ( CASE + + CASE - 12 WHEN 78 + + 33 THEN + 77 WHEN + + COALESCE ( + 15, 39, + 69 + + 47 + + CAST ( + 32 AS INTEGER ) * - ( - 37 ) ) THEN - 17 ELSE 35 / 84 END WHEN - 37 THEN + 12 - + 1 END, 90 - - 45, - COUNT ( * ) + - 67 ) - - MIN ( DISTINCT + 47 ) * - - COALESCE ( - + 88, + 17 ) ) * - 89 + - NULLIF ( 98, + AVG ( 4 ) )
----
-4548

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL + MIN( DISTINCT ( - - 95 ) ) * 23 + + 37
----
2222

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + MIN ( DISTINCT ( - - 95 ) ) * 23 + + 37
----
2222

query I rowsort
SELECT + 59 * + 2
----
118

query I rowsort
SELECT DISTINCT + 49 + - - 21
----
70

query I rowsort
SELECT + 48 * 99 AS col2
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT - CAST( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT - CAST ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + 21 - + COALESCE ( 60, - COUNT( * ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + 21 - + COALESCE ( 60, - COUNT ( * ) ) AS col1
----
-39

query I rowsort
SELECT ALL + 66 * 21 - - - 97 + 13 * - + NULLIF ( - + 95, 36 + 58 ) + - ( + 23 ) * - 6 col0
----
2662

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT - 93 DIV - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 93 / - 65 AS col1
----
1

query I rowsort
SELECT + 37 + + 4 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + MIN( + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9599
SELECT + MIN ( + 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - - NULLIF ( MAX( 12 ), - + ( 47 ) + - 66 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9600
SELECT - - NULLIF ( MAX ( 12 ), - + ( 47 ) + - 66 ) AS col2
----
12

query I rowsort
SELECT + 51 * 61
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - + 25 - + 55 + + 70 - - 70 * - CASE - 33 WHEN ( COUNT( + - 54 ) ) + - 40 THEN 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT - + 25 - + 55 + + 70 - - 70 * - CASE - 33 WHEN ( COUNT ( + - 54 ) ) + - 40 THEN 86 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9603
SELECT DISTINCT - 3 * + 3 DIV - - COALESCE ( + COUNT( + 42 ), 46, - - CAST( - 66 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - 3 * + 3 / - - COALESCE ( + COUNT ( + 42 ), 46, - - CAST ( - 66 AS INTEGER ) )
----
-9

query I rowsort
SELECT DISTINCT - ( - - 95 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT COALESCE ( + 74, + + 23 )
----
74

query I rowsort
SELECT - 44 - - 90 AS col2
----
46

query I rowsort
SELECT + 62 * 99 * - - 2 * + - 21 col2
----
-257796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9608
SELECT DISTINCT + CAST( + 0 AS SIGNED ) DIV ( + - 83 ) * + 14 * - - 12 + + 33 + - 41 DIV + CASE COALESCE ( - 91, - - COUNT( * ) * - 55 * + 13 * - + COUNT( * ) + + 86 * 77 + + 96 + + 21 ) WHEN NULLIF ( + 2, - 42 * 88 * CASE + + 88 WHEN + - 3 THEN + 54 WHEN + 88 * - 65 * - 72 THEN NULL END + - 20 * + COUNT( * ) ) THEN + 69 WHEN + 35 THEN NULL ELSE 73 END AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) / ( + - 83 ) * + 14 * - - 12 + + 33 + - 41 / + CASE COALESCE ( - 91, - - COUNT ( * ) * - 55 * + 13 * - + COUNT ( * ) + + 86 * 77 + + 96 + + 21 ) WHEN NULLIF ( + 2, - 42 * 88 * CASE + + 88 WHEN + - 3 THEN + 54 WHEN + 88 * - 65 * - 72 THEN NULL END + - 20 * + COUNT ( * ) ) THEN + 69 WHEN + 35 THEN NULL ELSE 73 END AS col2
----
33

query I rowsort
SELECT - 8 + - 96
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 26 * MAX( - 7 )
----
182

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 26 * MAX ( - 7 )
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT + COUNT( * ) DIV + + 71 + - - 53 * + 5 * - 45 * + 65 col0
----
-775125

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + COUNT ( * ) / + + 71 + - - 53 * + 5 * - 45 * + 65 col0
----
-775125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT DISTINCT - COUNT( ALL - - 39 ) DIV 41 + + 44 + + COALESCE ( + 54, - 46 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT - COUNT ( ALL - - 39 ) / 41 + + 44 + + COALESCE ( + 54, - 46 ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT + MAX( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + MAX ( - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT ALL + CASE - + 99 WHEN ( + 36 ) THEN NULL ELSE - 87 * - SUM( ALL + 64 ) * + + COUNT( * ) + 58 + COUNT( + 6 ) - + - 71 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + CASE - + 99 WHEN ( + 36 ) THEN NULL ELSE - 87 * - SUM ( ALL + 64 ) * + + COUNT ( * ) + 58 + COUNT ( + 6 ) - + - 71 END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 56 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ( + MIN( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-9616
SELECT ( + MIN ( + 61 ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9617
SELECT + ( - - NULLIF ( 89, + - MIN( - 51 ) + 34 * CAST( + CAST( 13 AS DECIMAL ) AS DECIMAL ) ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9617
SELECT + ( - - NULLIF ( 89, + - MIN ( - 51 ) + 34 * CAST ( + CAST ( 13 AS REAL ) AS REAL ) ) ) AS col1
----
89

query I rowsort
SELECT ALL + ( - 88 ) * 65 * + 15 + ( + 12 ) + - 78 AS col0
----
-85866

query I rowsort
SELECT ( - + 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9620
SELECT ALL + 29 * 10 + - NULLIF ( 49, + - 7 ) - + ( 17 ) + + - COUNT( * ) * + 6 DIV MAX( 74 ) * - COUNT( * ) * 21
----
224

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL + 29 * 10 + - NULLIF ( 49, + - 7 ) - + ( 17 ) + + - COUNT ( * ) * + 6 / MAX ( 74 ) * - COUNT ( * ) * 21
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT + NULLIF ( - 97, + - 66 * + SUM( + - ( + - 46 ) ) + 10 - CAST( NULL AS SIGNED ) + + 11 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9621
SELECT + NULLIF ( - 97, + - 66 * + SUM ( + - ( + - 46 ) ) + 10 - CAST ( NULL AS INTEGER ) + + 11 ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT + CAST( - MAX( DISTINCT 92 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-9622
SELECT + CAST ( - MAX ( DISTINCT 92 ) AS INTEGER )
----
-92

query I rowsort
SELECT + 95 * + - ( 6 ) AS col1
----
-570

query I rowsort
SELECT ALL 6 * + 20 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL - MAX( ALL + 17 ) * - 37 + - + 2 - - - CAST( - 95 AS SIGNED ) * - + COUNT( * ) AS col1
----
532

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - MAX ( ALL + 17 ) * - 37 + - + 2 - - - CAST ( - 95 AS INTEGER ) * - + COUNT ( * ) AS col1
----
532

query I rowsort
SELECT ALL + + 15 col1
----
15

query I rowsort
SELECT DISTINCT - 59 * - 27 * - 34 * + - 24
----
1299888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT + CAST( + 4 AS SIGNED ) * - SUM( ALL 7 )
----
-28

skipif mysql # not compatible
query I rowsort label-9628
SELECT + CAST ( + 4 AS INTEGER ) * - SUM ( ALL 7 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 45 + - + 43 * + COALESCE ( - 5, COUNT( + 88 ) * COUNT( * ) + + 94 + + 31, + 52 - + 59 * COUNT( * ), - ( + CASE + 21 WHEN + 5 + - + 70 THEN + + 1 WHEN - 90 THEN NULL WHEN + 79 THEN 57 END ) ) AS col1
----
260

skipif mysql # not compatible
query I rowsort label-9629
SELECT 45 + - + 43 * + COALESCE ( - 5, COUNT ( + 88 ) * COUNT ( * ) + + 94 + + 31, + 52 - + 59 * COUNT ( * ), - ( + CASE + 21 WHEN + 5 + - + 70 THEN + + 1 WHEN - 90 THEN NULL WHEN + 79 THEN 57 END ) ) AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT 91 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9630
SELECT 91 + + COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9631
SELECT + 83, - CAST( + 41 AS SIGNED ) + - - COUNT( * ) AS col2
----
83
-40

skipif mysql # not compatible
query II rowsort label-9631
SELECT + 83, - CAST ( + 41 AS INTEGER ) + - - COUNT ( * ) AS col2
----
83
-40

query I rowsort
SELECT ALL 68 + 47 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + 7 + - 42 + 99 + SUM( ALL - 16 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9633
SELECT + 7 + - 42 + 99 + SUM ( ALL - 16 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + COUNT( * ) + 13 + - MIN( - 70 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9634
SELECT + COUNT ( * ) + 13 + - MIN ( - 70 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT MIN( + 64 ) * + 18 * + 27 * + - 29 + + + 94 AS col0
----
-901922

skipif mysql # not compatible
query I rowsort label-9635
SELECT MIN ( + 64 ) * + 18 * + 27 * + - 29 + + + 94 AS col0
----
-901922

query I rowsort
SELECT ALL - 67 * + + 94 col0
----
-6298

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT 87, - COUNT( + 3 ) AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-9637
SELECT 87, - COUNT ( + 3 ) AS col2
----
87
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT 20 DIV + COALESCE ( - + 36, + + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT 20 / + COALESCE ( - + 36, + + 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT 23 + - MIN( ALL - - COALESCE ( 49, - + 30 * - 4 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9639
SELECT 23 + - MIN ( ALL - - COALESCE ( 49, - + 30 * - 4 ) ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL + 3 + - 65 * - CAST( - 53 AS SIGNED ) * + + 76 AS col2
----
-261817

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + 3 + - 65 * - CAST ( - 53 AS INTEGER ) * + + 76 AS col2
----
-261817

query II rowsort
SELECT - 61 AS col2, 74 AS col0
----
-61
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL + ( + 30 ) + 52 * - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + ( + 30 ) + 52 * - COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT DISTINCT + 58 + - + 30 - - 8 AS col0
----
36

query II rowsort
SELECT ALL - 93 AS col0, 67
----
-93
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT + MAX( DISTINCT - - 15 ) + + + 34 + + 87 + - - 18 * - + COUNT( * ) * 49 AS col1
----
-746

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT + MAX ( DISTINCT - - 15 ) + + + 34 + + 87 + - - 18 * - + COUNT ( * ) * 49 AS col1
----
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - ( + 20 ) * COUNT( * ) * - + COUNT( * ) + COALESCE ( - 47, COUNT( * ) ) * - 92 + + 75 + - 75 + 82 * - NULLIF ( + 29, 90 * COUNT( * ) ) AS col0
----
1966

skipif mysql # not compatible
query I rowsort label-9646
SELECT - ( + 20 ) * COUNT ( * ) * - + COUNT ( * ) + COALESCE ( - 47, COUNT ( * ) ) * - 92 + + 75 + - 75 + 82 * - NULLIF ( + 29, 90 * COUNT ( * ) ) AS col0
----
1966

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT + ( + COUNT( * ) ) - - + 86 + + + 34 * + + CASE + 78 WHEN - - ( - 87 ) THEN - 91 WHEN - CASE 3 WHEN - 73 THEN 19 WHEN + - SUM( - - 67 ) - + + 64 + ( + 51 ) * - 88 * + - 19 * - - 12 * 82 THEN NULL WHEN + - 42 THEN NULL END THEN NULL WHEN 62 * + - 59 - + 66 THEN 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + ( + COUNT ( * ) ) - - + 86 + + + 34 * + + CASE + 78 WHEN - - ( - 87 ) THEN - 91 WHEN - CASE 3 WHEN - 73 THEN 19 WHEN + - SUM ( - - 67 ) - + + 64 + ( + 51 ) * - 88 * + - 19 * - - 12 * 82 THEN NULL WHEN + - 42 THEN NULL END THEN NULL WHEN 62 * + - 59 - + 66 THEN 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - MAX( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - MAX ( 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT 32 DIV + 52 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9649
SELECT 32 / + 52 + 41 AS col1
----
41

query I rowsort
SELECT ALL + 41 - - - 23 + - 0 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT 28 * COUNT( ALL NULLIF ( - 96, + + 11 ) )
----
28

skipif mysql # not compatible
query I rowsort label-9651
SELECT 28 * COUNT ( ALL NULLIF ( - 96, + + 11 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL + COUNT( * ) * SUM( DISTINCT - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT - 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL - NULLIF ( - COUNT( DISTINCT 29 ), CAST( + 72 AS SIGNED ) + - - NULLIF ( - 13, - 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - NULLIF ( - COUNT ( DISTINCT 29 ), CAST ( + 72 AS INTEGER ) + - - NULLIF ( - 13, - 46 ) )
----
1

query I rowsort
SELECT DISTINCT 24 - + 37 * 34 col2
----
-1234

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL - + COUNT( 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - + COUNT ( 36 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9656
SELECT DISTINCT - 70, 51 + + 34 * CAST( - 11 AS SIGNED ) AS col0
----
-70
-323

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT - 70, 51 + + 34 * CAST ( - 11 AS INTEGER ) AS col0
----
-70
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + COUNT( * ) * + + 19 col0
----
19

skipif mysql # not compatible
query I rowsort label-9657
SELECT + COUNT ( * ) * + + 19 col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT ALL - 47, + COALESCE ( - + COUNT( * ), + CASE - 82 WHEN 49 THEN NULL WHEN + - AVG ( ALL + - 16 ) THEN + 62 ELSE + + 9 + + 41 END ) AS col0
----
-47
-1

skipif mysql # not compatible
query II rowsort label-9658
SELECT ALL - 47, + COALESCE ( - + COUNT ( * ), + CASE - 82 WHEN 49 THEN NULL WHEN + - AVG ( ALL + - 16 ) THEN + 62 ELSE + + 9 + + 41 END ) AS col0
----
-47
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9659
SELECT + ( - 42 ), MAX( + + 18 ) * + COUNT( * ) DIV + NULLIF ( - 31, + 87 + 97 ) AS col1
----
-42
0

skipif mysql # not compatible
query II rowsort label-9659
SELECT + ( - 42 ), MAX ( + + 18 ) * + COUNT ( * ) / + NULLIF ( - 31, + 87 + 97 ) AS col1
----
-42
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT + ( + 59 ) DIV COUNT( * ) * 87
----
5133

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + ( + 59 ) / COUNT ( * ) * 87
----
5133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9661
SELECT ( COALESCE ( ( + 56 ), + - 35 * ( - 40 ) * + AVG ( - - 85 ) - 66, + + CAST( NULL AS SIGNED ) * + 44 DIV + + 24 ) ) DIV 47 - 32 col1
----
-31

skipif mysql # not compatible
query I rowsort label-9661
SELECT ( COALESCE ( ( + 56 ), + - 35 * ( - 40 ) * + AVG ( - - 85 ) - 66, + + CAST ( NULL AS INTEGER ) * + 44 / + + 24 ) ) / 47 - 32 col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL 72 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 72 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9663
SELECT - + SUM( - 50 ) AS col2, + CAST( + 74 AS SIGNED ) AS col0
----
50
74

skipif mysql # not compatible
query II rowsort label-9663
SELECT - + SUM ( - 50 ) AS col2, + CAST ( + 74 AS INTEGER ) AS col0
----
50
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT + CAST( NULL AS SIGNED ) + COALESCE ( 61, - - 79 * + COUNT( 4 ), - - 37 ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT + CAST ( NULL AS INTEGER ) + COALESCE ( 61, - - 79 * + COUNT ( 4 ), - - 37 ) * - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT 39 + - - CAST( NULL AS SIGNED ) - - + 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT 39 + - - CAST ( NULL AS INTEGER ) - - + 61 col0
----
NULL

query I rowsort
SELECT ALL + 62 + - 97 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT COUNT( * ) AS col1, 33 - + COUNT( * ) AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-9667
SELECT COUNT ( * ) AS col1, 33 - + COUNT ( * ) AS col1
----
1
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT CAST( NULL AS SIGNED ) * + - 19 * + - 17 + - + 35 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT CAST ( NULL AS INTEGER ) * + - 19 * + - 17 + - + 35 + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL COUNT( * ) + - - 93 col0
----
94

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL COUNT ( * ) + - - 93 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT NULLIF ( 91, - COUNT( DISTINCT + 47 ) ) - 77 + - ( + - COUNT( + COALESCE ( 30, 6 - + 1 ) ) ) + + 43 * - - 24 + + - 37 AS col0
----
1010

skipif mysql # not compatible
query I rowsort label-9670
SELECT NULLIF ( 91, - COUNT ( DISTINCT + 47 ) ) - 77 + - ( + - COUNT ( + COALESCE ( 30, 6 - + 1 ) ) ) + + 43 * - - 24 + + - 37 AS col0
----
1010

query I rowsort
SELECT ALL 79 + + 54 AS col1
----
133

query I rowsort
SELECT 13 + - ( + 48 ) AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9673
SELECT ALL - CAST( NULL AS SIGNED ) / - AVG ( + + 4 ) AS col2, 59 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9673
SELECT ALL - CAST ( NULL AS INTEGER ) / - AVG ( + + 4 ) AS col2, 59 AS col0
----
NULL
59

query I rowsort
SELECT ( + + 11 ) + - 49 * + 72
----
-3517

query I rowsort
SELECT ALL + ( - 98 ) + - - NULLIF ( + + 50, + NULLIF ( 7, + + 43 ) * - 12 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - MAX( ALL + + 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9676
SELECT - MAX ( ALL + + 36 ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT ALL 43 DIV + 60 * 82
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL 43 / + 60 * 82
----
0

query I rowsort
SELECT 3 + - 0 + - 92
----
-89

query I rowsort
SELECT 38 * + + 96 AS col1
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ( 13 ) + - MAX( DISTINCT + - NULLIF ( - 44, - 10 ) ) * + 81 * 36
----
-128291

skipif mysql # not compatible
query I rowsort label-9680
SELECT ( 13 ) + - MAX ( DISTINCT + - NULLIF ( - 44, - 10 ) ) * + 81 * 36
----
-128291

query I rowsort
SELECT 48 - + 52
----
-4

query I rowsort
SELECT 64 * + 27 * + 58
----
100224

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - COALESCE ( - 64, COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COALESCE ( - 64, COUNT ( * ) ) AS col1
----
64

query I rowsort
SELECT - 23 * 82 + + 36
----
-1850

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL - 73 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - 73 / + + 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT 54 * - 87, - 71 * - MIN( 30 ) AS col1
----
-4698
2130

skipif mysql # not compatible
query II rowsort label-9686
SELECT 54 * - 87, - 71 * - MIN ( 30 ) AS col1
----
-4698
2130

query I rowsort
SELECT 63 * + - 52
----
-3276

query I rowsort
SELECT ALL + - 29 col1
----
-29

query I rowsort
SELECT - NULLIF ( - 91, + + 86 - - 83 ) * - + 27
----
-2457

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT - 73 * - COUNT( * ), - 12 col1
----
73
-12

skipif mysql # not compatible
query II rowsort label-9690
SELECT - 73 * - COUNT ( * ), - 12 col1
----
73
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT 87 * - + COUNT( * ) + + - 4 + 40 + ( 65 ) * - COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-9691
SELECT 87 * - + COUNT ( * ) + + - 4 + 40 + ( 65 ) * - COUNT ( * )
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9692
SELECT + 10 * 78 * - 23 * + NULLIF ( COALESCE ( - 24, - + 80 ), - + ( - + 25 ) ) + - - CAST( NULL AS SIGNED ), - 63 * - 66 + 10 col2
----
NULL
4168

skipif mysql # not compatible
query II rowsort label-9692
SELECT + 10 * 78 * - 23 * + NULLIF ( COALESCE ( - 24, - + 80 ), - + ( - + 25 ) ) + - - CAST ( NULL AS INTEGER ), - 63 * - 66 + 10 col2
----
NULL
4168

query II rowsort
SELECT ALL + + ( + - 55 ) AS col1, 86 AS col0
----
-55
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - - COUNT( * ) + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9694
SELECT - - COUNT ( * ) + 12 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT - + 89 + - 91 DIV - - COALESCE ( + + CAST( NULL AS SIGNED ), + COUNT( * ), - COALESCE ( 39, 25 ) * 0 + + COUNT( 74 ) DIV - COUNT( * ) )
----
-180

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - + 89 + - 91 / - - COALESCE ( + + CAST ( NULL AS INTEGER ), + COUNT ( * ), - COALESCE ( 39, 25 ) * 0 + + COUNT ( 74 ) / - COUNT ( * ) )
----
-180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9696
SELECT ALL + + 26 + + CAST( NULL AS DECIMAL ) - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + + 26 + + CAST ( NULL AS REAL ) - - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT 1 + 50 - + + COUNT( * ) * - 37
----
88

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 1 + 50 - + + COUNT ( * ) * - 37
----
88

query I rowsort
SELECT - - 77 + - 11 AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT 72 * 44 + + ( COALESCE ( - COUNT( - 64 ), + 77 - 21 DIV - 66 * + - 16 * 95 + - COUNT( * ), COUNT( * ) * - 90 ) ) AS col1
----
3167

skipif mysql # not compatible
query I rowsort label-9699
SELECT 72 * 44 + + ( COALESCE ( - COUNT ( - 64 ), + 77 - 21 / - 66 * + - 16 * 95 + - COUNT ( * ), COUNT ( * ) * - 90 ) ) AS col1
----
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL + CASE + NULLIF ( + + 77, - + 10 ) WHEN 25 THEN NULL ELSE - COUNT( * ) END + 38 * - ( 1 ) * + 86 col0
----
-3269

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + CASE + NULLIF ( + + 77, - + 10 ) WHEN 25 THEN NULL ELSE - COUNT ( * ) END + 38 * - ( 1 ) * + 86 col0
----
-3269

query I rowsort
SELECT DISTINCT + 75 + + + 14 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT + ( + 24 ) DIV - MAX( 51 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + ( + 24 ) / - MAX ( 51 ) col0
----
0

query I rowsort
SELECT ALL 86 + - 65
----
21

query I rowsort
SELECT - - 36 + + 4 * - 92 + - 94 AS col2
----
-426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT DISTINCT + COUNT( * ) DIV + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + COUNT ( * ) / + 36 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL CASE + - 22 WHEN + + CASE + COUNT( * ) WHEN - 71 * 68 + ( - CAST( COALESCE ( + - COUNT( * ), + + COUNT( * ) ) AS SIGNED ) ) THEN + 27 WHEN 26 + + 13 THEN - CAST( SUM( DISTINCT + 39 ) AS SIGNED ) ELSE NULL END * + - 28 + 51 + 88 + + 21 THEN - 16 - 55 * + COUNT( DISTINCT 5 ) END * 84 * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL CASE + - 22 WHEN + + CASE + COUNT ( * ) WHEN - 71 * 68 + ( - CAST ( COALESCE ( + - COUNT ( * ), + + COUNT ( * ) ) AS INTEGER ) ) THEN + 27 WHEN 26 + + 13 THEN - CAST ( SUM ( DISTINCT + 39 ) AS INTEGER ) ELSE NULL END * + - 28 + 51 + 88 + + 21 THEN - 16 - 55 * + COUNT ( DISTINCT 5 ) END * 84 * + 87 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT + 31 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + 31 / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT 91 * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT 91 * - COUNT ( * )
----
-91

query II rowsort
SELECT 36 AS col2, + 87 * - 98
----
36
-8526

query I rowsort
SELECT + 31 + - + 99 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9711
SELECT ALL 37 * 72 DIV COUNT( * ) col2, - 58 * - 60 * - + 13 + 44 + 38 + COALESCE ( + 14, MAX( + 0 ), 7 DIV - NULLIF ( COUNT( * ), - 84 - - 18 ) ) + + ( - + 33 ) * - 62 * + - CAST( NULL AS SIGNED )
----
2664
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL 37 * 72 / COUNT ( * ) col2, - 58 * - 60 * - + 13 + 44 + 38 + COALESCE ( + 14, MAX ( + 0 ), 7 / - NULLIF ( COUNT ( * ), - 84 - - 18 ) ) + + ( - + 33 ) * - 62 * + - CAST ( NULL AS INTEGER )
----
2664
NULL

query I rowsort
SELECT - NULLIF ( + - 14, + + 50 )
----
14

query I rowsort
SELECT ALL 1 * - 24 * - 75
----
1800

onlyif mysql # DIV for integer division: 
query II rowsort label-9714
SELECT ALL + 92 AS col2, + 94 DIV + 35 AS col2
----
92
2

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL + 92 AS col2, + 94 / + 35 AS col2
----
92
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + MIN( ALL 92 ) * - ( - + ( - 13 ) ) * + 75
----
-89700

skipif mysql # not compatible
query I rowsort label-9715
SELECT + MIN ( ALL 92 ) * - ( - + ( - 13 ) ) * + 75
----
-89700

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + 77 * - + COUNT( * ) * + COUNT( DISTINCT - 30 )
----
-77

skipif mysql # not compatible
query I rowsort label-9716
SELECT + 77 * - + COUNT ( * ) * + COUNT ( DISTINCT - 30 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + 36 - + 59 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 36 - + 59 + + COUNT ( * )
----
-22

query I rowsort
SELECT + ( + 82 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9719
SELECT CASE - - 45 WHEN 33 THEN NULL WHEN + + 0 THEN NULL WHEN + 4 + + COALESCE ( + CASE + 26 WHEN + 63 THEN - 50 + - 60 / - 41 END, + CAST( NULL AS SIGNED ), - - 70 ) + - + 16 THEN 76 END * - NULLIF ( 52, - + 50 * COUNT( * ) / + + 93 + AVG ( - 28 ) + + + 47 * + 89 + + 82 + 28 * + - 18 / - 96 ) + - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT CASE - - 45 WHEN 33 THEN NULL WHEN + + 0 THEN NULL WHEN + 4 + + COALESCE ( + CASE + 26 WHEN + 63 THEN - 50 + - 60 / - 41 END, + CAST ( NULL AS INTEGER ), - - 70 ) + - + 16 THEN 76 END * - NULLIF ( 52, - + 50 * COUNT ( * ) / + + 93 + AVG ( - 28 ) + + + 47 * + 89 + + 82 + 28 * + - 18 / - 96 ) + - + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL 18 * 54 - - + COUNT( * ) + + 27 * + 22
----
1567

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL 18 * 54 - - + COUNT ( * ) + + 27 * + 22
----
1567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT + 88 DIV + COUNT( * ) + + + 69 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-9721
SELECT + 88 / + COUNT ( * ) + + + 69 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL 66 * - MIN( + 84 ) + + COUNT( * ) AS col2
----
-5543

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL 66 * - MIN ( + 84 ) + + COUNT ( * ) AS col2
----
-5543

query II rowsort
SELECT - 66 AS col1, 14 * - - 22 * + 49 AS col1
----
-66
15092

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + SUM( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9724
SELECT + SUM ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT ALL - COUNT( * ) * - - NULLIF ( - 26, - - COUNT( * ) * 28 + - + 14 * 97 * - 89 ) + - + 44 AS col2, ( - + COALESCE ( + - 48, + + 84 ) )
----
-18
48

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL - COUNT ( * ) * - - NULLIF ( - 26, - - COUNT ( * ) * 28 + - + 14 * 97 * - 89 ) + - + 44 AS col2, ( - + COALESCE ( + - 48, + + 84 ) )
----
-18
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9726
SELECT + 8 DIV COUNT( * ) - + 51 DIV - 1 - + - COUNT( * ) * - 72 DIV + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 8 / COUNT ( * ) - + 51 / - 1 - + - COUNT ( * ) * - 72 / + COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-9727
SELECT ALL - + 39 * 81 DIV + 37 + - 8 + ( 33 ), + 5 AS col0
----
-60
5

skipif mysql # not compatible
query II rowsort label-9727
SELECT ALL - + 39 * 81 / + 37 + - 8 + ( 33 ), + 5 AS col0
----
-60
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL 87 * + 17 * 52 + - COUNT( * ) * - 38 AS col1
----
76946

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL 87 * + 17 * 52 + - COUNT ( * ) * - 38 AS col1
----
76946

query I rowsort
SELECT DISTINCT - 55 * + - 80 + + + 23 AS col1
----
4423

query I rowsort
SELECT NULLIF ( + NULLIF ( + - 40, 63 ), + 84 ) AS col0
----
-40

query I rowsort
SELECT - 73 * 59 + + 88
----
-4219

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - MAX( 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9732
SELECT - MAX ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - COALESCE ( + 11, + MIN( - 55 ) * - + 8, COUNT( * ) * - 33 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9733
SELECT - COALESCE ( + 11, + MIN ( - 55 ) * - + 8, COUNT ( * ) * - 33 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9734
SELECT ALL - + COALESCE ( - 96, 54, - 0 + 81 + + 57, - - 43 ) * - + CASE + - 2 WHEN + NULLIF ( - ( + COALESCE ( - 37, - 72 - + 31, + + COALESCE ( + - CAST( + 54 AS DECIMAL ), - 73 * + 12 + - 74 + + + COUNT( * ) + + - 33 + + 2 ) DIV - COUNT( 79 ) ) ), - - 80 + + - 78 + + 32 + - COUNT( * ) + COALESCE ( - - 30, - 95, + - 5 * + + 50 ) + NULLIF ( - 10, + - 87 ) DIV 95 * COUNT( * ) ) * 70 + - MAX( ALL - ( + ( + 49 ) ) ) THEN CAST( NULL AS SIGNED ) WHEN 22 THEN NULL ELSE 17 DIV 70 + ( - 28 ) END
----
2688

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - + COALESCE ( - 96, 54, - 0 + 81 + + 57, - - 43 ) * - + CASE + - 2 WHEN + NULLIF ( - ( + COALESCE ( - 37, - 72 - + 31, + + COALESCE ( + - CAST ( + 54 AS REAL ), - 73 * + 12 + - 74 + + + COUNT ( * ) + + - 33 + + 2 ) / - COUNT ( 79 ) ) ), - - 80 + + - 78 + + 32 + - COUNT ( * ) + COALESCE ( - - 30, - 95, + - 5 * + + 50 ) + NULLIF ( - 10, + - 87 ) / 95 * COUNT ( * ) ) * 70 + - MAX ( ALL - ( + ( + 49 ) ) ) THEN CAST ( NULL AS INTEGER ) WHEN 22 THEN NULL ELSE 17 / 70 + ( - 28 ) END
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL - + CASE - + ( - 75 ) WHEN - + 48 * - COUNT( * ) * - 27 THEN 15 * ( + 61 ) * + 11 + + COUNT( * ) + - - 92 * NULLIF ( - 31, - 83 ) ELSE - - CASE 7 WHEN + - 49 THEN - - 40 WHEN - 40 THEN NULL WHEN - + 3 THEN - + 10 ELSE 2 END + - SUM( + + 2 ) END * - 42 + 50 * - 29
----
-1450

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - + CASE - + ( - 75 ) WHEN - + 48 * - COUNT ( * ) * - 27 THEN 15 * ( + 61 ) * + 11 + + COUNT ( * ) + - - 92 * NULLIF ( - 31, - 83 ) ELSE - - CASE 7 WHEN + - 49 THEN - - 40 WHEN - 40 THEN NULL WHEN - + 3 THEN - + 10 ELSE 2 END + - SUM ( + + 2 ) END * - 42 + 50 * - 29
----
-1450

query I rowsort
SELECT DISTINCT + 43 * - 94
----
-4042

query II rowsort
SELECT ALL + 33 col0, 88 AS col0
----
33
88

query I rowsort
SELECT - 50 + + 67
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT ALL ( - - COALESCE ( + + 31, + + 71 * - ( + 83 ) + + 28 DIV - 7 ) )
----
31

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL ( - - COALESCE ( + + 31, + + 71 * - ( + 83 ) + + 28 / - 7 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL CAST ( 19 AS INTEGER )
----
19

query II rowsort
SELECT - 26 + + + 2 AS col2, 25 - + 15 AS col0
----
-24
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT CAST( + 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT CAST ( + 7 AS INTEGER )
----
7

query I rowsort
SELECT - 20 * - 95 AS col0
----
1900

query I rowsort
SELECT - ( + + 20 ) AS col0
----
-20

query I rowsort
SELECT DISTINCT ( + + ( - - 45 ) ) col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT DISTINCT + 0 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + 0 / 69 AS col2
----
0

query II rowsort
SELECT + NULLIF ( + - 72, - 40 ) + + 5 AS col0, 75 AS col2
----
-67
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - 36 + - SUM( + - 16 )
----
-20

skipif mysql # not compatible
query I rowsort label-9748
SELECT - 36 + - SUM ( + - 16 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9749
SELECT MIN( - 22 ) * - - NULLIF ( - 59, + 37 * - ( - + CAST( NULL AS DECIMAL ) ) / + + COALESCE ( - 99, 88, + 68 * - COUNT( * ) + CAST( NULL AS SIGNED ) * 63 ) )
----
1298

skipif mysql # not compatible
query I rowsort label-9749
SELECT MIN ( - 22 ) * - - NULLIF ( - 59, + 37 * - ( - + CAST ( NULL AS REAL ) ) / + + COALESCE ( - 99, 88, + 68 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) * 63 ) )
----
1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT CAST( COUNT( * ) AS SIGNED ) - - - 50
----
-49

skipif mysql # not compatible
query I rowsort label-9750
SELECT CAST ( COUNT ( * ) AS INTEGER ) - - - 50
----
-49

query I rowsort
SELECT ALL - 93 + - 19
----
-112

query I rowsort
SELECT 73 * + + 0 * - 17 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL - CASE - - 16 WHEN - 67 THEN NULL WHEN - + 78 THEN NULLIF ( - + CASE COALESCE ( - 65, 68 ) WHEN + + COUNT( DISTINCT 53 ) + - AVG ( 44 ) + - 70 THEN NULL WHEN - 66 THEN - CAST( AVG ( ALL - - 1 ) AS SIGNED ) ELSE NULL END, CASE COUNT( * ) WHEN - - 52 THEN NULL WHEN - 56 * - 45 - + - 74 THEN - 7 END + - - 59 + - 29 * ( 43 ) / 37 * - COUNT( * ) * + + CASE 40 WHEN + 73 THEN + COUNT( * ) END * - 36 * + 55 / - + SUM( ALL + 69 ) + + 18 + 27 ) / 26 WHEN + 16 + - 89 * + 20 THEN NULL END + 66 / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - CASE - - 16 WHEN - 67 THEN NULL WHEN - + 78 THEN NULLIF ( - + CASE COALESCE ( - 65, 68 ) WHEN + + COUNT ( DISTINCT 53 ) + - AVG ( 44 ) + - 70 THEN NULL WHEN - 66 THEN - CAST ( AVG ( ALL - - 1 ) AS INTEGER ) ELSE NULL END, CASE COUNT ( * ) WHEN - - 52 THEN NULL WHEN - 56 * - 45 - + - 74 THEN - 7 END + - - 59 + - 29 * ( 43 ) / 37 * - COUNT ( * ) * + + CASE 40 WHEN + 73 THEN + COUNT ( * ) END * - 36 * + 55 / - + SUM ( ALL + 69 ) + + 18 + 27 ) / 26 WHEN + 16 + - 89 * + 20 THEN NULL END + 66 / 34
----
NULL

query I rowsort
SELECT - COALESCE ( 90, 81 * - + 56 + + 53 ) * + 87
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT + COUNT( * ) * + COUNT( - 55 ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-9755
SELECT + COUNT ( * ) * + COUNT ( - 55 ) + + 79
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - ( COUNT( * ) ) * - NULLIF ( 94, - 81 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - ( COUNT ( * ) ) * - NULLIF ( 94, - 81 ) AS col0
----
94

query I rowsort
SELECT - 24 + + 25 * + 79
----
1951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT DISTINCT + 73 * + CASE 19 WHEN - 23 / - + 25 THEN NULL WHEN 43 * + - ( + 62 ) + + ( - ( CAST( NULL AS SIGNED ) ) ) THEN + 23 + + COUNT( * ) END + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + 73 * + CASE 19 WHEN - 23 / - + 25 THEN NULL WHEN 43 * + - ( + 62 ) + + ( - ( CAST ( NULL AS INTEGER ) ) ) THEN + 23 + + COUNT ( * ) END + - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT - + MAX( + 90 ) * + 55 + + - ( NULLIF ( + ( + - 87 ), 1 * - + CAST( NULL AS SIGNED ) * - AVG ( - - 26 ) ) ) AS col1
----
-4863

skipif mysql # not compatible
query I rowsort label-9759
SELECT - + MAX ( + 90 ) * + 55 + + - ( NULLIF ( + ( + - 87 ), 1 * - + CAST ( NULL AS INTEGER ) * - AVG ( - - 26 ) ) ) AS col1
----
-4863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL - - MIN( + - ( + 26 ) ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - - MIN ( + - ( + 26 ) ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT SUM( 79 ) DIV + 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT SUM ( 79 ) / + 83 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - CASE + 10 WHEN 75 THEN NULL ELSE + + 41 END * - 85 + + + COUNT( * ) + + 56 + + 96 + + 64 * - ( - COUNT( * ) ) * + 70 * - - 7
----
34998

skipif mysql # not compatible
query I rowsort label-9762
SELECT - CASE + 10 WHEN 75 THEN NULL ELSE + + 41 END * - 85 + + + COUNT ( * ) + + 56 + + 96 + + 64 * - ( - COUNT ( * ) ) * + 70 * - - 7
----
34998

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 48 + + 27 - + COUNT( * ) * + + ( SUM( - 78 ) ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-9763
SELECT 48 + + 27 - + COUNT ( * ) * + + ( SUM ( - 78 ) ) AS col2
----
153

query I rowsort
SELECT 58 + - - 75
----
133

query I rowsort
SELECT DISTINCT + 96 * + - 79
----
-7584

query I rowsort
SELECT ALL + 87 * - + 81
----
-7047

query I rowsort
SELECT ALL ( ( + 32 ) ) * + 22 * 17
----
11968

query I rowsort
SELECT 54 * - ( - + 52 )
----
2808

query I rowsort
SELECT DISTINCT + 96 * - 49 col2
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) + - 74
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT 44 DIV - + 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9771
SELECT 44 / - + 26 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 24 + - 27 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT COUNT( ( + - 98 ) ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9773
SELECT COUNT ( ( + - 98 ) ) + - 11 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT DISTINCT 41 * + 43 * - CASE + COUNT( * ) WHEN + 47 THEN + 18 / + 49 WHEN + - 87 THEN NULL WHEN - 49 + - - 58 + 74 * - - 21 + 98 THEN - CAST( - + 85 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT 41 * + 43 * - CASE + COUNT ( * ) WHEN + 47 THEN + 18 / + 49 WHEN + - 87 THEN NULL WHEN - 49 + - - 58 + 74 * - - 21 + 98 THEN - CAST ( - + 85 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL + 39 + + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + 39 + + COUNT ( * ) col1
----
40

query I rowsort
SELECT ALL 50 + - COALESCE ( - - 17, 31 ) + 21 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT + - 67 AS col0, - COUNT( * )
----
-67
-1

skipif mysql # not compatible
query II rowsort label-9777
SELECT + - 67 AS col0, - COUNT ( * )
----
-67
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT DISTINCT + + 70 * ( - COUNT( * ) ) * - MAX( - 7 ) AS col0, 62 AS col1
----
-490
62

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT + + 70 * ( - COUNT ( * ) ) * - MAX ( - 7 ) AS col0, 62 AS col1
----
-490
62

query I rowsort
SELECT ALL - - 7 - 93 * - 38 AS col0
----
3541

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT - 28 DIV 84 + + + 30 + + - 39 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 28 / 84 + + + 30 + + - 39 AS col1
----
-9

query I rowsort
SELECT 90 * + 80 * + - 25
----
-180000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9782
SELECT DISTINCT 70 DIV ( - ( + - CAST( - + 75 AS SIGNED ) ) ) AS col1, 84
----
0
84

skipif mysql # not compatible
query II rowsort label-9782
SELECT DISTINCT 70 / ( - ( + - CAST ( - + 75 AS INTEGER ) ) ) AS col1, 84
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL 79 * + COUNT( * ) + + 86 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL 79 * + COUNT ( * ) + + 86 AS col2
----
165

query I rowsort
SELECT + 49 * + - 3
----
-147

query I rowsort
SELECT DISTINCT 79 * - 80
----
-6320

query I rowsort
SELECT 22 * 73
----
1606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT 32 * + CAST( + - 44 AS SIGNED )
----
-1408

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT 32 * + CAST ( + - 44 AS INTEGER )
----
-1408

query I rowsort
SELECT ALL 78 * + - 59 col0
----
-4602

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT - 37 + - + COUNT( + 89 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - 37 + - + COUNT ( + 89 ) AS col1
----
-38

query II rowsort
SELECT ALL 79 AS col2, 21
----
79
21

query I rowsort
SELECT + 37 + + 90
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT + COUNT( * ) + CAST( - - 76 AS SIGNED ) + COUNT( * ) * 7 * - MIN( DISTINCT - - 52 ) * + + 16 * + COUNT( * ) * + ( - 2 ) AS col2
----
11725

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COUNT ( * ) + CAST ( - - 76 AS INTEGER ) + COUNT ( * ) * 7 * - MIN ( DISTINCT - - 52 ) * + + 16 * + COUNT ( * ) * + ( - 2 ) AS col2
----
11725

query II rowsort
SELECT - 86 AS col2, 98 - + + 44
----
-86
54

query I rowsort
SELECT ALL 24 + + - 3
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - CASE MAX( ALL + 47 ) WHEN 72 * - 23 + + COUNT( * ) - - 90 / - 98 + + - 59 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT - CASE MAX ( ALL + 47 ) WHEN 72 * - 23 + + COUNT ( * ) - - 90 / - 98 + + - 59 THEN - 32 END
----
NULL

query I rowsort
SELECT + 7 + + - 39
----
-32

query I rowsort
SELECT DISTINCT 71 + - + 91
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT 30 + + COUNT( - - 96 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT 30 + + COUNT ( - - 96 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL + COUNT( * ) * - + 34 * 23 * 78
----
-60996

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + COUNT ( * ) * - + 34 * 23 * 78
----
-60996

onlyif mysql # aggregate syntax: 
query III rowsort label-9800
SELECT DISTINCT MIN( DISTINCT 56 ) AS col1, COUNT( * ) * + 87 col1, - COUNT( - - 64 )
----
56
87
-1

skipif mysql # not compatible
query III rowsort label-9800
SELECT DISTINCT MIN ( DISTINCT 56 ) AS col1, COUNT ( * ) * + 87 col1, - COUNT ( - - 64 )
----
56
87
-1

query I rowsort
SELECT DISTINCT + 69 + 5 * + 2
----
79

query I rowsort
SELECT ALL - 10 + + 55 + - + 8 * - 15 AS col0
----
165

query I rowsort
SELECT - - 5 * + 35 * + + 89 AS col2
----
15575

query I rowsort
SELECT + + 35 + 16 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - + 30 + NULLIF ( COUNT( * ), + 88 )
----
-29

skipif mysql # not compatible
query I rowsort label-9805
SELECT - + 30 + NULLIF ( COUNT ( * ), + 88 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT + ( - ( + 27 ) ) - - SUM( ALL + CAST( + 3 AS SIGNED ) ) + + + 74 + + 49
----
99

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + ( - ( + 27 ) ) - - SUM ( ALL + CAST ( + 3 AS INTEGER ) ) + + + 74 + + 49
----
99

query II rowsort
SELECT ALL + 62, - 82 AS col0
----
62
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT ALL - - COUNT( * ) DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - - COUNT ( * ) / - 89 AS col2
----
0

query I rowsort
SELECT - + 78 * + 45 + + - 17 AS col0
----
-3527

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL - 67 * - + ( MIN( ALL 95 ) )
----
6365

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - 67 * - + ( MIN ( ALL 95 ) )
----
6365

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9811
SELECT DISTINCT - 56 / - 73 * + - CASE WHEN NOT ( NULL ) IN ( - 52, 53, - + 96, - 63 + + 94 + 84, - CASE + ( + ( - + 38 ) ) WHEN + - 71 * + 56 THEN ( + 77 ) / + 24 ELSE NULL END, + 35 * 7 * + + CAST( NULL AS DECIMAL ) * 58 - - 12 - 20 + + 41 * 59, - 54 + 35 ) THEN NULL WHEN 7 IS NULL THEN + 79 + + + 68 * + 66 + 11 + - 75 * COUNT( * ) / - - 41 / + 34 END * - 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - 56 / - 73 * + - CASE WHEN NOT ( NULL ) IN ( - 52, 53, - + 96, - 63 + + 94 + 84, - CASE + ( + ( - + 38 ) ) WHEN + - 71 * + 56 THEN ( + 77 ) / + 24 ELSE NULL END, + 35 * 7 * + + CAST ( NULL AS REAL ) * 58 - - 12 - 20 + + 41 * 59, - 54 + 35 ) THEN NULL WHEN 7 IS NULL THEN + 79 + + + 68 * + 66 + 11 + - 75 * COUNT ( * ) / - - 41 / + 34 END * - 44 col0
----
NULL

query I rowsort
SELECT ALL + CASE + 54 WHEN - 23 THEN + - 66 ELSE NULL END * - 93 * ( 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL - 23 * 46 * + ( COUNT( * ) ) * + 97 * COUNT( * ) + 66 + MIN( 63 ) + - 11 + ( + 47 ) - + 89 + + 17 * + - CASE + - 61 WHEN - 73 THEN NULL WHEN NULLIF ( + 44, - 67 - - 71 ) + - 28 THEN 54 ELSE NULL END / 2 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - 23 * 46 * + ( COUNT ( * ) ) * + 97 * COUNT ( * ) + 66 + MIN ( 63 ) + - 11 + ( + 47 ) - + 89 + + 17 * + - CASE + - 61 WHEN - 73 THEN NULL WHEN NULLIF ( + 44, - 67 - - 71 ) + - 28 THEN 54 ELSE NULL END / 2 * + 91
----
NULL

query I rowsort
SELECT - 72 + 52
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + - MAX( 86 ) * + - 86 AS col0
----
7396

skipif mysql # not compatible
query I rowsort label-9815
SELECT + - MAX ( 86 ) * + - 86 AS col0
----
7396

query I rowsort
SELECT ALL + + 0 * 91 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT COUNT( * ) AS col0, - 66 AS col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-9817
SELECT COUNT ( * ) AS col0, - 66 AS col2
----
1
-66

query I rowsort
SELECT - 53 * 49 + + 40 * ( - 25 ) AS col2
----
-3597

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT NULLIF ( - 42, - MIN( DISTINCT - 32 ) - + + 1 + + 73 * + COALESCE ( - 71, + + COALESCE ( + 60, + COALESCE ( 3, 37 + - 11, + 86 + + 98 ), + 78 / 55 ) ) )
----
-42

skipif mysql # not compatible
query I rowsort label-9819
SELECT NULLIF ( - 42, - MIN ( DISTINCT - 32 ) - + + 1 + + 73 * + COALESCE ( - 71, + + COALESCE ( + 60, + COALESCE ( 3, 37 + - 11, + 86 + + 98 ), + 78 / 55 ) ) )
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9820
SELECT ALL CAST( NULL AS DECIMAL ) * + 37 + - 66 AS col2, + 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-9820
SELECT ALL CAST ( NULL AS REAL ) * + 37 + - 66 AS col2, + 7
----
NULL
7

query I rowsort
SELECT - 97 + - 35
----
-132

query I rowsort
SELECT ALL - 14 * - - 35 AS col0
----
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT + COUNT( ALL 95 ) + + COUNT( * ), 90 AS col2
----
2
90

skipif mysql # not compatible
query II rowsort label-9823
SELECT + COUNT ( ALL 95 ) + + COUNT ( * ), 90 AS col2
----
2
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + COALESCE ( - - MAX( - - 66 ), - 33, 0 )
----
66

skipif mysql # not compatible
query I rowsort label-9824
SELECT + COALESCE ( - - MAX ( - - 66 ), - 33, 0 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL 90 * + 93 + - MIN( DISTINCT - + 91 ) AS col1
----
8461

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 90 * + 93 + - MIN ( DISTINCT - + 91 ) AS col1
----
8461

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT - 13 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT - 13 / - 85
----
0

query I rowsort
SELECT + 19 + 66
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL 33 * + 47 + - + 20 DIV - 88 AS col1
----
1551

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 33 * + 47 + - + 20 / - 88 AS col1
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL 77 + COUNT( * ) + - 60 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL 77 + COUNT ( * ) + - 60 AS col1
----
18

query I rowsort
SELECT DISTINCT 24 * + 67
----
1608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT + COUNT( * ) DIV + + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT + COUNT ( * ) / + + 27 AS col0
----
0

query I rowsort
SELECT + 27 + ( ( 40 ) )
----
67

query I rowsort
SELECT + 32 * + - 18 + - 59 AS col1
----
-635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT + 1 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT + 1 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 85 - + 84 * - - 27 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + + SUM( ALL 4 ) * ( + 70 )
----
280

skipif mysql # not compatible
query I rowsort label-9836
SELECT + + SUM ( ALL 4 ) * ( + 70 )
----
280

query I rowsort
SELECT + - 7 + + 79 AS col1
----
72

query I rowsort
SELECT ALL - - 77 * - 7
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL 74 * - MAX( ALL 80 )
----
-5920

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL 74 * - MAX ( ALL 80 )
----
-5920

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT + - ( + + 37 ) DIV - - 44 + - + 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9840
SELECT + - ( + + 37 ) / - - 44 + - + 89 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9841
SELECT DISTINCT + CASE - NULLIF ( + CAST( NULL AS SIGNED ), - 62 * 16 - 43 + - MAX( ALL + 2 ) + + - CAST( - 39 AS SIGNED ) * - + 80 ) WHEN - 72 THEN NULL WHEN COUNT( * ) THEN + 43 ELSE + - 63 END AS col2, 78 + 28 + - + 71 - 81 * 24 AS col0, + - ( + 69 )
----
-63
-1909
-69

skipif mysql # not compatible
query III rowsort label-9841
SELECT DISTINCT + CASE - NULLIF ( + CAST ( NULL AS INTEGER ), - 62 * 16 - 43 + - MAX ( ALL + 2 ) + + - CAST ( - 39 AS INTEGER ) * - + 80 ) WHEN - 72 THEN NULL WHEN COUNT ( * ) THEN + 43 ELSE + - 63 END AS col2, 78 + 28 + - + 71 - 81 * 24 AS col0, + - ( + 69 )
----
-63
-1909
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + 70 * + 27 + + MIN( DISTINCT + 72 )
----
1962

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 70 * + 27 + + MIN ( DISTINCT + 72 )
----
1962

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT SUM( + 75 ) * + 72 - 43 + - 49, 60 AS col0
----
5308
60

skipif mysql # not compatible
query II rowsort label-9843
SELECT SUM ( + 75 ) * + 72 - 43 + - 49, 60 AS col0
----
5308
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT + + NULLIF ( + 29, + 76 + + COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + + NULLIF ( + 29, + 76 + + COUNT ( * ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL CASE - 58 WHEN + + COUNT( DISTINCT + - 6 ) THEN + 70 + + COUNT( * ) / 61 * - 69 + + 14 + - 4 ELSE NULL END / - COALESCE ( 11, 96 / NULLIF ( + COUNT( * ), + 91 ) ) + MIN( 44 ) + + 79 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL CASE - 58 WHEN + + COUNT ( DISTINCT + - 6 ) THEN + 70 + + COUNT ( * ) / 61 * - 69 + + 14 + - 4 ELSE NULL END / - COALESCE ( 11, 96 / NULLIF ( + COUNT ( * ), + 91 ) ) + MIN ( 44 ) + + 79 + 77
----
NULL

query II rowsort
SELECT - 97 * ( - 82 ) AS col2, 40 AS col2
----
7954
40

query II rowsort
SELECT + 7, + 90 AS col1
----
7
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT ALL ( + - 0 ) DIV 65 + - COUNT( * ) + - - 56 + + + COUNT( - - 38 )
----
56

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL ( + - 0 ) / 65 + - COUNT ( * ) + - - 56 + + + COUNT ( - - 38 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + 28 * - MIN( ALL - - ( - - 5 ) ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + 28 * - MIN ( ALL - - ( - - 5 ) ) AS col1
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9850
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT ALL + 67 DIV 43 + + - ( + COUNT( * ) ) * - + 97 + + + 51 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + 67 / 43 + + - ( + COUNT ( * ) ) * - + 97 + + + 51 AS col1
----
149

query I rowsort
SELECT 63 * + 85 * + 67
----
358785

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT 38 * + COALESCE ( + 60, + COUNT( * ) + - - ( - - 81 ) )
----
2280

skipif mysql # not compatible
query I rowsort label-9853
SELECT 38 * + COALESCE ( + 60, + COUNT ( * ) + - - ( - - 81 ) )
----
2280

query II rowsort
SELECT ALL - 8, 97 col0
----
-8
97

query II rowsort
SELECT + 74 AS col1, - 53 AS col1
----
74
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9856
SELECT DISTINCT - 65 * CASE - - 57 WHEN - 45 + + 25 + + 47 THEN - 39 * - 57 * + + ( - - 42 ) + - 42 * - - 13 WHEN + + 0 * + CAST( NULL AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT - 65 * CASE - - 57 WHEN - 45 + + 25 + + 47 THEN - 39 * - 57 * + + ( - - 42 ) + - 42 * - - 13 WHEN + + 0 * + CAST ( NULL AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 36 + + 6 AS col1
----
42

query I rowsort
SELECT DISTINCT - 65 * - - 7 AS col0
----
-455

query I rowsort
SELECT DISTINCT COALESCE ( + 45, + + 27 ) - + + 55 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT ALL 71 - + 9 + + COUNT( * ), 17 AS col0
----
63
17

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL 71 - + 9 + + COUNT ( * ), 17 AS col0
----
63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT 88 * + CAST( + COUNT( * ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-9861
SELECT 88 * + CAST ( + COUNT ( * ) AS INTEGER )
----
88

query I rowsort
SELECT 62 + 15
----
77

onlyif mysql # aggregate syntax: 
query III rowsort label-9863
SELECT 28 AS col1, + 6 + + COUNT( * ) + + 19 AS col2, + - 54 * - 91 + - + 19 AS col1
----
28
26
4895

skipif mysql # not compatible
query III rowsort label-9863
SELECT 28 AS col1, + 6 + + COUNT ( * ) + + 19 AS col2, + - 54 * - 91 + - + 19 AS col1
----
28
26
4895

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9864
SELECT 72 + - 86 - CAST( NULL AS DECIMAL ) + + 43 + + 41 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT 72 + - 86 - CAST ( NULL AS REAL ) + + 43 + + 41 + + 67
----
NULL

query I rowsort
SELECT + 25 * - 93 AS col0
----
-2325

query I rowsort
SELECT + 52 + 48
----
100

query I rowsort
SELECT 42 * - - 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + MIN( + - 71 ) + - + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9868
SELECT + MIN ( + - 71 ) + - + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT + - MAX( ALL - 2 ) * - ( + - 69 ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + - MAX ( ALL - 2 ) * - ( + - 69 ) AS col1
----
138

query I rowsort
SELECT 4 + - 49 * + + 23 + + - 41 AS col2
----
-1164

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT 35 DIV + 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9871
SELECT 35 / + 15 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL CAST( 75 AS SIGNED ) * - 15 * - 76
----
85500

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL CAST ( 75 AS INTEGER ) * - 15 * - 76
----
85500

query I rowsort
SELECT 83 * 24 * 52 * - ( - 91 ) AS col2
----
9426144

query I rowsort
SELECT - 15 + - 92
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + COALESCE ( 51, + 22 * - 97 * + COUNT( * ), - 21 * + - 97 + + - 87 + + - 67 ) * + + 52
----
2652

skipif mysql # not compatible
query I rowsort label-9875
SELECT + COALESCE ( 51, + 22 * - 97 * + COUNT ( * ), - 21 * + - 97 + + - 87 + + - 67 ) * + + 52
----
2652

query I rowsort
SELECT 73 + - + 75
----
-2

query I rowsort
SELECT ALL + 15 + - + 98
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT + 25 DIV 24 - 7 + - 37 - + 59 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-9878
SELECT + 25 / 24 - 7 + - 37 - + 59 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9879
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT - 91 + + 93 - + 88
----
-86

query I rowsort
SELECT + - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL - + SUM( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - + SUM ( ALL - 93 )
----
93

query I rowsort
SELECT DISTINCT + 13 + + 58
----
71

query I rowsort
SELECT ALL 49 + 19 + + 11 * - - 58 AS col1
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT 60 * - + 52 + + + SUM( - 51 ) * 55 * + 26 AS col2
----
-76050

skipif mysql # not compatible
query I rowsort label-9885
SELECT 60 * - + 52 + + + SUM ( - 51 ) * 55 * + 26 AS col2
----
-76050

query I rowsort
SELECT + 7 * 92 + - 92 AS col0
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL CAST( NULL AS SIGNED ) * - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL CAST ( NULL AS INTEGER ) * - 6 AS col1
----
NULL

query I rowsort
SELECT 73 + - 77 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT 82 + - 67 - + 40 + - COUNT( * ) * - 0 * + NULLIF ( - + 77, - 62 ) * + ( - ( + - ( + + 58 ) ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9889
SELECT 82 + - 67 - + 40 + - COUNT ( * ) * - 0 * + NULLIF ( - + 77, - 62 ) * + ( - ( + - ( + + 58 ) ) ) AS col1
----
-25

query I rowsort
SELECT 88 * + + 58 AS col2
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT MAX( ALL - + 31 ) * + 86 + - ( 71 ) / - + ( CASE 67 WHEN - 87 / 99 * - 17 THEN 63 - - 62 END ) + - 7 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT MAX ( ALL - + 31 ) * + 86 + - ( 71 ) / - + ( CASE 67 WHEN - 87 / 99 * - 17 THEN 63 - - 62 END ) + - 7 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 7 - - 6 col2
----
13

query I rowsort
SELECT - 68 * - 17 + - ( 99 )
----
1057

query I rowsort
SELECT ALL + 89 * + + 18 AS col1
----
1602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9895
SELECT 78 * + 83 DIV + COUNT( * ) AS col0
----
6474

skipif mysql # not compatible
query I rowsort label-9895
SELECT 78 * + 83 / + COUNT ( * ) AS col0
----
6474

query II rowsort
SELECT 17 + - - ( + ( - ( - 6 ) ) ) + - 30 * - 35 AS col1, + 82 + + - 29
----
1073
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT - MAX( ALL - 88 ) * + - 82 * + 52 + + 20 * + 39 + + CAST( - + ( - 23 ) AS SIGNED ) + + 87 * - + CAST( NULL AS SIGNED ) * + MAX( DISTINCT - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT - MAX ( ALL - 88 ) * + - 82 * + 52 + + 20 * + 39 + + CAST ( - + ( - 23 ) AS INTEGER ) + + 87 * - + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - 51 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9898
SELECT ALL + ( - - 24 ) AS col1, - ( 68 ) / - 56 * - - 90 * - CAST( NULL AS SIGNED ) + CASE + COUNT( * ) WHEN + 9 * ( + - 54 ) THEN CAST( NULL AS SIGNED ) * - 92 ELSE NULL END + + - 25 * - - 66 + - 19 + 38 + - + 90 + 73 * 82 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-9898
SELECT ALL + ( - - 24 ) AS col1, - ( 68 ) / - 56 * - - 90 * - CAST ( NULL AS INTEGER ) + CASE + COUNT ( * ) WHEN + 9 * ( + - 54 ) THEN CAST ( NULL AS INTEGER ) * - 92 ELSE NULL END + + - 25 * - - 66 + - 19 + 38 + - + 90 + 73 * 82 AS col2
----
24
NULL

query I rowsort
SELECT NULLIF ( - - 19, - 65 )
----
19

query I rowsort
SELECT DISTINCT + - 69 * 5 * - 16 AS col0
----
5520

query I rowsort
SELECT - 16 - - 9 + - 29
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT NULLIF ( + ( - 58 ), ( + + 98 ) * + 35 ) * - 2 AS col1, SUM( ( 42 ) ) * 23
----
116
966

skipif mysql # not compatible
query II rowsort label-9902
SELECT NULLIF ( + ( - 58 ), ( + + 98 ) * + 35 ) * - 2 AS col1, SUM ( ( 42 ) ) * 23
----
116
966

query II rowsort
SELECT 21 * - 21 AS col0, - ( - + ( + 53 ) )
----
-441
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9904
SELECT 1 DIV 14 + + 61 + - CASE WHEN COUNT( * ) IS NOT NULL THEN - - 10 END + - 72 * - 71 + - ( - 92 ) col1
----
5255

skipif mysql # not compatible
query I rowsort label-9904
SELECT 1 / 14 + + 61 + - CASE WHEN COUNT ( * ) IS NOT NULL THEN - - 10 END + - 72 * - 71 + - ( - 92 ) col1
----
5255

query I rowsort
SELECT + 26 * + 81 AS col0
----
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT COUNT( DISTINCT + - 65 ) * - 88 / CAST( NULL AS SIGNED ) + + 63 - - 64 * 51 / + ( + CASE + SUM( ALL - + ( + 14 ) ) WHEN + + 72 THEN - 71 END ) / - 32 - + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( DISTINCT + - 65 ) * - 88 / CAST ( NULL AS INTEGER ) + + 63 - - 64 * 51 / + ( + CASE + SUM ( ALL - + ( + 14 ) ) WHEN + + 72 THEN - 71 END ) / - 32 - + - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9907
SELECT + CASE - - CASE + + CAST( NULL AS SIGNED ) WHEN + CASE - - 37 WHEN + + 69 * - CAST( + 27 AS SIGNED ) * + 2 * + 4 / - 35 * + CASE - 19 WHEN - COUNT( * ) THEN - + 54 * - ( CASE + - 4 WHEN - 27 THEN + 87 * - - 91 + - 48 + - SUM( + - 30 ) + 42 / + + 65 ELSE NULL END ) + - 37 * - COUNT( * ) WHEN + - 20 / - 56 THEN + 24 * - - COUNT( * ) END THEN - 66 WHEN AVG ( ALL 52 ) + 72 THEN - 19 ELSE NULL END THEN NULL ELSE + 43 END WHEN - + NULLIF ( - + 17, 15 ) THEN + 29 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT + CASE - - CASE + + CAST ( NULL AS INTEGER ) WHEN + CASE - - 37 WHEN + + 69 * - CAST ( + 27 AS INTEGER ) * + 2 * + 4 / - 35 * + CASE - 19 WHEN - COUNT ( * ) THEN - + 54 * - ( CASE + - 4 WHEN - 27 THEN + 87 * - - 91 + - 48 + - SUM ( + - 30 ) + 42 / + + 65 ELSE NULL END ) + - 37 * - COUNT ( * ) WHEN + - 20 / - 56 THEN + 24 * - - COUNT ( * ) END THEN - 66 WHEN AVG ( ALL 52 ) + 72 THEN - 19 ELSE NULL END THEN NULL ELSE + 43 END WHEN - + NULLIF ( - + 17, 15 ) THEN + 29 ELSE NULL END col2
----
NULL

query II rowsort
SELECT ALL + 12, + 33 * - 27 + - 64 * + 73 AS col2
----
12
-5563

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT CASE + 23 WHEN - 35 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT CASE + 23 WHEN - 35 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + COUNT( * ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-9910
SELECT + COUNT ( * ) * 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT CASE + - 79 WHEN - 41 / 14 * - 21 THEN - + 25 WHEN + 20 * - 42 + + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT CASE + - 79 WHEN - 41 / 14 * - 21 THEN - + 25 WHEN + 20 * - 42 + + - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT CASE + 7 WHEN 79 * - CASE 67 WHEN - MAX( ALL - 67 ) * + 34 THEN - SUM( + + 23 ) - + ( 10 ) END + + + 73 THEN 37 + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT CASE + 7 WHEN 79 * - CASE 67 WHEN - MAX ( ALL - 67 ) * + 34 THEN - SUM ( + + 23 ) - + ( 10 ) END + + + 73 THEN 37 + 97 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT ALL - 85 * + CASE - + ( + COALESCE ( 44, + + ( + - 94 ) + 47 ) ) WHEN - MIN( - 43 ) THEN NULL WHEN - NULLIF ( - 68, - COUNT( * ) * - COUNT( * ) ) + - CAST( NULL AS SIGNED ) THEN + 87 ELSE NULL END * + 34 + 6 - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - 85 * + CASE - + ( + COALESCE ( 44, + + ( + - 94 ) + 47 ) ) WHEN - MIN ( - 43 ) THEN NULL WHEN - NULLIF ( - 68, - COUNT ( * ) * - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) THEN + 87 ELSE NULL END * + 34 + 6 - - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + SUM( DISTINCT + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9914
SELECT + SUM ( DISTINCT + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL MAX( ALL + 2 ) * - 13
----
-26

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL MAX ( ALL + 2 ) * - 13
----
-26

query I rowsort
SELECT + COALESCE ( 42, 3 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT + COALESCE ( 25, - CAST( NULL AS SIGNED ) + + 4 * - + 64 + + 95, + 94 + - + 42 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9917
SELECT + COALESCE ( 25, - CAST ( NULL AS INTEGER ) + + 4 * - + 64 + + 95, + 94 + - + 42 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT COUNT( ALL 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( ALL 36 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9919
SELECT + COALESCE ( - - 55, 68 * - 59 - - - CASE 92 WHEN + SUM( - - 14 ) + 10 * ( + + 23 ) THEN - NULLIF ( - MIN( DISTINCT + - 48 ), - + 78 ) WHEN - 86 THEN - 87 * + COUNT( * ) * 71 ELSE + 80 END DIV - COALESCE ( + CAST( + + 75 AS SIGNED ), + - 21 ) )
----
55

skipif mysql # not compatible
query I rowsort label-9919
SELECT + COALESCE ( - - 55, 68 * - 59 - - - CASE 92 WHEN + SUM ( - - 14 ) + 10 * ( + + 23 ) THEN - NULLIF ( - MIN ( DISTINCT + - 48 ), - + 78 ) WHEN - 86 THEN - 87 * + COUNT ( * ) * 71 ELSE + 80 END / - COALESCE ( + CAST ( + + 75 AS INTEGER ), + - 21 ) )
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9920
SELECT + CAST( NULL AS DECIMAL ) * + ( 52 ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT + CAST ( NULL AS REAL ) * + ( 52 ) * + 91
----
NULL

query I rowsort
SELECT + CASE 30 WHEN + 34 THEN - + ( + - 5 ) * 99 END - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9922
SELECT ALL - ( + 65 ) DIV - COUNT( * ) AS col1, 24 + - 20
----
65
4

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL - ( + 65 ) / - COUNT ( * ) AS col1, 24 + - 20
----
65
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9923
SELECT - - 95 DIV + 82 + 76 * + - 85 - + - CAST( + - 59 AS SIGNED ) * COUNT( * ) * + - COUNT( * ) + - + 53 AS col1
----
-6453

skipif mysql # not compatible
query I rowsort label-9923
SELECT - - 95 / + 82 + 76 * + - 85 - + - CAST ( + - 59 AS INTEGER ) * COUNT ( * ) * + - COUNT ( * ) + - + 53 AS col1
----
-6453

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT - 89 + + - COUNT( * ) + - 81 + + + 3 * + 42 + - - 37 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT - 89 + + - COUNT ( * ) + - 81 + + + 3 * + 42 + - - 37 AS col1
----
-8

query II rowsort
SELECT - + CASE 24 WHEN 84 THEN - 30 ELSE NULL END / 65 - 93 * - + 9 + + + 74 col1, 6 * - 67 - - - 68 AS col0
----
NULL
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT + - 50 + + 91 + 90 * - CAST( 17 AS SIGNED ) + + CAST( - 68 AS SIGNED )
----
-1557

skipif mysql # not compatible
query I rowsort label-9926
SELECT + - 50 + + 91 + 90 * - CAST ( 17 AS INTEGER ) + + CAST ( - 68 AS INTEGER )
----
-1557

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT ALL - 39 DIV + ( + 47 ) + + + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 39 / + ( + 47 ) + + + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT - - 4 + - - 60 - + 12 * - COUNT( * ) * + 59 * + 46 AS col2
----
32632

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - - 4 + - - 60 - + 12 * - COUNT ( * ) * + 59 * + 46 AS col2
----
32632

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9929
SELECT - - 1 + - 43 + + - 31 DIV + 30 + - 17 AS col2, + CAST( + + COALESCE ( - + 92, 18 + + ( 23 ) ) AS SIGNED )
----
-60
-92

skipif mysql # not compatible
query II rowsort label-9929
SELECT - - 1 + - 43 + + - 31 / + 30 + - 17 AS col2, + CAST ( + + COALESCE ( - + 92, 18 + + ( 23 ) ) AS INTEGER )
----
-60
-92

query I rowsort
SELECT - 97 * + - 20
----
1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL + - 91 + 86 + - 31 * - + 35 / + CASE 44 WHEN 34 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + - CAST( + + COALESCE ( + - 79, + - 31, - - 60 ) AS SIGNED ) THEN + 88 END * - 98 + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + - 91 + 86 + - 31 * - + 35 / + CASE 44 WHEN 34 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + - CAST ( + + COALESCE ( + - 79, + - 31, - - 60 ) AS INTEGER ) THEN + 88 END * - 98 + + 5 AS col2
----
NULL

query I rowsort
SELECT ALL + 4 * - - 83 AS col1
----
332

query I rowsort
SELECT ALL - + 62 + + 41 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ALL + COUNT( + + 65 ) + + 22 + + COUNT( * ) * 1 DIV - - 30 + - 42
----
-19

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + COUNT ( + + 65 ) + + 22 + + COUNT ( * ) * 1 / - - 30 + - 42
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT 12 AS col1, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-9935
SELECT 12 AS col1, COUNT ( * )
----
12
1

query I rowsort
SELECT DISTINCT ( - - 30 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT + 61 DIV 57 DIV 16 - + ( + 55 ) DIV + 70 + - + 31 + - ( 17 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9937
SELECT + 61 / 57 / 16 - + ( + 55 ) / + 70 + - + 31 + - ( 17 ) AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT ALL - 33 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - 33 / 74 AS col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - 38, - + 26 * - 41 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + 37 * - ( MAX( DISTINCT - 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 37 * - ( MAX ( DISTINCT - 0 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT NULLIF ( + 94, - AVG ( - 76 ) ) * COUNT( * ) - - - 86 + + 40 + - 23 - - 47 * + 99 + + + ( - 86 ) * + 22 DIV + + CASE + 62 WHEN - 42 THEN NULL ELSE 11 END col1
----
4506

skipif mysql # not compatible
query I rowsort label-9941
SELECT NULLIF ( + 94, - AVG ( - 76 ) ) * COUNT ( * ) - - - 86 + + 40 + - 23 - - 47 * + 99 + + + ( - 86 ) * + 22 / + + CASE + 62 WHEN - 42 THEN NULL ELSE 11 END col1
----
4506

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9942
SELECT - ( + - 31 ) + + 37 DIV + CAST( + + 95 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-9942
SELECT - ( + - 31 ) + + 37 / + CAST ( + + 95 AS INTEGER )
----
31

query I rowsort
SELECT + 30 - - 23
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT - COUNT( * ) * + MIN( ALL 55 ) * + 30 AS col2
----
-1650

skipif mysql # not compatible
query I rowsort label-9944
SELECT - COUNT ( * ) * + MIN ( ALL 55 ) * + 30 AS col2
----
-1650

query I rowsort
SELECT + 7 + ( + 58 ) + - 3 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT ALL + MIN( + - CASE - 17 WHEN + 73 * 50 * + 76 + 15 + + 28 THEN + 30 + + ( 67 ) END ) * + COALESCE ( + + CAST( NULL AS SIGNED ), + + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + MIN ( + - CASE - 17 WHEN + 73 * 50 * + 76 + 15 + + 28 THEN + 30 + + ( 67 ) END ) * + COALESCE ( + + CAST ( NULL AS INTEGER ), + + 14 ) AS col1
----
NULL

query I rowsort
SELECT + + 65 + 77 AS col1
----
142

query I rowsort
SELECT ALL + 99 * 62 + - ( + + 40 ) AS col1
----
6098

query II rowsort
SELECT + COALESCE ( + + 44, + 60, 72 - + + ( 26 ) ) AS col2, - 50
----
44
-50

query I rowsort
SELECT - + 77 * + 20 - - 93 + + 7 AS col2
----
-1440

query I rowsort
SELECT - + 63 * - - 52 + - + 29 + + + 71
----
-3234

query I rowsort
SELECT + 98 * 84
----
8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9953
SELECT DISTINCT - 41 * + ( + + 21 ) + - 35 + - 90 DIV + ( - COALESCE ( + 45, ( - COUNT( * ) ) * + - 86, COUNT( * ) DIV - 80 ) ) + NULLIF ( + - COUNT( * ), - NULLIF ( - 48, 87 + - 57 + - 38 ) )
----
-895

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - 41 * + ( + + 21 ) + - 35 + - 90 / + ( - COALESCE ( + 45, ( - COUNT ( * ) ) * + - 86, COUNT ( * ) / - 80 ) ) + NULLIF ( + - COUNT ( * ), - NULLIF ( - 48, 87 + - 57 + - 38 ) )
----
-895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT ALL + + COUNT( * ) * - + 11 + + + 68 DIV 84 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + + COUNT ( * ) * - + 11 + + + 68 / 84 AS col1
----
-11

query I rowsort
SELECT + - 39 * COALESCE ( + + 80, + + 77 * + + 99 )
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + + 22 + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9956
SELECT + + 22 + + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT DISTINCT - 12 * - CASE WHEN - COUNT( * ) IS NULL THEN 16 ELSE 35 - - 20 + + 74 + + 34 * CAST( NULL AS SIGNED ) / + 44 END + - 9 + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT - 12 * - CASE WHEN - COUNT ( * ) IS NULL THEN 16 ELSE 35 - - 20 + + 74 + + 34 * CAST ( NULL AS INTEGER ) / + 44 END + - 9 + 89 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT + 61 DIV + - 11 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9958
SELECT + 61 / + - 11 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT + MAX( ( + 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + MAX ( ( + 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT 38 - - 96 + SUM( ALL - 61 ) + + 85 col0
----
158

skipif mysql # not compatible
query I rowsort label-9960
SELECT 38 - - 96 + SUM ( ALL - 61 ) + + 85 col0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT DISTINCT - - 84 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - - 84 / + 48
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT 27 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT 27 / - 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL - 1 * + CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - 1 * + CAST ( + 50 AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9964
SELECT ALL - 37 - 74 + - 30 AS col2, SUM( ALL - + 74 ) * 9 * - + COUNT( * ) AS col1
----
-141
666

skipif mysql # not compatible
query II rowsort label-9964
SELECT ALL - 37 - 74 + - 30 AS col2, SUM ( ALL - + 74 ) * 9 * - + COUNT ( * ) AS col1
----
-141
666

query I rowsort
SELECT DISTINCT 32 * - 53 AS col2
----
-1696

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT - 20 * - MAX( - 65 )
----
-1300

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT - 20 * - MAX ( - 65 )
----
-1300

query I rowsort
SELECT 98 + - - 13 + 76 * 1
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT 1 * - 4 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT 1 * - 4 / + 30
----
0

query I rowsort
SELECT 72 * - 80
----
-5760

query I rowsort
SELECT 30 * - 94 + + + 58 AS col2
----
-2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT COUNT( * ) - 77 / + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT COUNT ( * ) - 77 / + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT - 56 DIV + - ( - NULLIF ( + 81, + 40 ) ) + + ( - 52 ) - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 56 / + - ( - NULLIF ( + 81, + 40 ) ) + + ( - 52 ) - COUNT ( * ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - ( - - COUNT( + 22 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - ( - - COUNT ( + 22 ) )
----
-1

query I rowsort
SELECT DISTINCT 6 * - - 85
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + COUNT( * ) + + - COUNT( * ) + 19 + + + NULLIF ( - 10, + 75 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + 19 + + + NULLIF ( - 10, + 75 ) AS col1
----
9

query I rowsort
SELECT DISTINCT - 76 * - 35
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 17 * - 95 * - 61 * + NULLIF ( - 59, COUNT( * ) )
----
-5812385

skipif mysql # not compatible
query I rowsort label-9977
SELECT 17 * - 95 * - 61 * + NULLIF ( - 59, COUNT ( * ) )
----
-5812385

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL MAX( - 82 ) + - 18 + - CASE + 96 WHEN - COUNT( * ) - + 15 THEN + - 63 ELSE NULL END * - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL MAX ( - 82 ) + - 18 + - CASE + 96 WHEN - COUNT ( * ) - + 15 THEN + - 63 ELSE NULL END * - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT 9 * + - 88 * - + ( ( + 53 ) ) - COUNT( * ) + 52 AS col0
----
42027

skipif mysql # not compatible
query I rowsort label-9979
SELECT 9 * + - 88 * - + ( ( + 53 ) ) - COUNT ( * ) + 52 AS col0
----
42027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9980
SELECT - + 73 * - 28 * - 37 + + COUNT( * ) DIV - 27 * + + 44 * COALESCE ( + + 21, - 96 ) * - - MAX( - NULLIF ( 51, - CAST( NULL AS SIGNED ) ) ) - + + 63
----
-75691

skipif mysql # not compatible
query I rowsort label-9980
SELECT - + 73 * - 28 * - 37 + + COUNT ( * ) / - 27 * + + 44 * COALESCE ( + + 21, - 96 ) * - - MAX ( - NULLIF ( 51, - CAST ( NULL AS INTEGER ) ) ) - + + 63
----
-75691

query I rowsort
SELECT + ( - 3 ) AS col2
----
-3

query I rowsort
SELECT 48 * + 26
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL - COUNT( * ) + + + MAX( DISTINCT - 30 ) + - 5 + + - COUNT( * ) * - ( 2 ) + CAST( - 86 AS SIGNED ) + + 69 * - 36 + + 83
----
-2521

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - COUNT ( * ) + + + MAX ( DISTINCT - 30 ) + - 5 + + - COUNT ( * ) * - ( 2 ) + CAST ( - 86 AS INTEGER ) + + 69 * - 36 + + 83
----
-2521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9984
SELECT DISTINCT 40 DIV - MAX( - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 40 / - MAX ( - 54 )
----
0

query I rowsort
SELECT ALL - - 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL - SUM( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL - SUM ( ALL 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT 6 + + COUNT( * ) + + 65 col1
----
72

skipif mysql # not compatible
query I rowsort label-9987
SELECT 6 + + COUNT ( * ) + + 65 col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9988
SELECT - CASE + 29 WHEN - - 34 * - 88 + + CASE + 33 WHEN + CASE - 93 WHEN - 65 THEN - 45 END * - 34 * COUNT( * ) + + - 76 THEN NULL ELSE + 40 END + + + 2 THEN - ( - CAST( + 36 AS DECIMAL ) ) + + 94 * + COUNT( * ) * 34 WHEN 76 THEN 58 - CAST( NULL AS SIGNED ) - + - COUNT( * ) END * - 24 * + + ( + - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT - CASE + 29 WHEN - - 34 * - 88 + + CASE + 33 WHEN + CASE - 93 WHEN - 65 THEN - 45 END * - 34 * COUNT ( * ) + + - 76 THEN NULL ELSE + 40 END + + + 2 THEN - ( - CAST ( + 36 AS REAL ) ) + + 94 * + COUNT ( * ) * 34 WHEN 76 THEN 58 - CAST ( NULL AS INTEGER ) - + - COUNT ( * ) END * - 24 * + + ( + - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT - - 43 * + - 58 + - 45 + - + 31 AS col2
----
-2570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT COALESCE ( 33, + 17, 24 ) - + + SUM( - - 89 ) * + + 30 * + + CAST( + + 79 AS SIGNED )
----
-210897

skipif mysql # not compatible
query I rowsort label-9990
SELECT COALESCE ( 33, + 17, 24 ) - + + SUM ( - - 89 ) * + + 30 * + + CAST ( + + 79 AS INTEGER )
----
-210897

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9991
SELECT ALL + CASE 64 WHEN - 78 * COALESCE ( - 49, - + 42, - 92 * - 28 ) - + + CAST( + - 71 AS DECIMAL ) THEN + 39 - + - NULLIF ( - + 42, + - 16 ) END - + 64 + - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + CASE 64 WHEN - 78 * COALESCE ( - 49, - + 42, - 92 * - 28 ) - + + CAST ( + - 71 AS REAL ) THEN + 39 - + - NULLIF ( - + 42, + - 16 ) END - + 64 + - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + 35 * - + 14 + - - MIN( DISTINCT - 74 ) col1
----
-564

skipif mysql # not compatible
query I rowsort label-9992
SELECT + 35 * - + 14 + - - MIN ( DISTINCT - 74 ) col1
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - 61 * CASE 3 WHEN + 21 THEN NULL WHEN 45 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - 61 * CASE 3 WHEN + 21 THEN NULL WHEN 45 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9994
SELECT 83, 70 * + ( + 78 ) * 96 DIV + + ( - - COUNT( * ) ) AS col2
----
83
524160

skipif mysql # not compatible
query II rowsort label-9994
SELECT 83, 70 * + ( + 78 ) * 96 / + + ( - - COUNT ( * ) ) AS col2
----
83
524160

query II rowsort
SELECT DISTINCT 4, 69 AS col0
----
4
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT 63 + - COALESCE ( + 58, + + 61 * 79 + + 23 + + 81 + - - COUNT( * ) DIV + 19, + COUNT( * ), - + 38 ) * - COUNT( * ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-9996
SELECT 63 + - COALESCE ( + 58, + + 61 * 79 + + 23 + + 81 + - - COUNT ( * ) / + 19, + COUNT ( * ), - + 38 ) * - COUNT ( * ) AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT CASE 92 WHEN + ( ( + 52 ) ) THEN + 75 ELSE NULL END + - 25 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT CASE 92 WHEN + ( ( + 52 ) ) THEN + 75 ELSE NULL END + - 25 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT 8 * CAST( - - 80 AS SIGNED ) * + - 4
----
-2560

skipif mysql # not compatible
query I rowsort label-9998
SELECT 8 * CAST ( - - 80 AS INTEGER ) * + - 4
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL COUNT( * ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL COUNT ( * ) * + 47
----
47

