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 COALESCE ( - 52, 93 ) AS col2
----
-52

query I rowsort
SELECT CASE 35 WHEN + 15 THEN 99 - - 44 WHEN - 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT SUM( DISTINCT + 95 ) * - 42 AS col2
----
-3990

skipif mysql # not compatible
query I rowsort label-2
SELECT SUM ( DISTINCT + 95 ) * - 42 AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + CASE + 23 WHEN + COUNT( DISTINCT + 62 ) + 45 THEN ( 16 ) * 35 ELSE NULL END * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT + CASE + 23 WHEN + COUNT ( DISTINCT + 62 ) + 45 THEN ( 16 ) * 35 ELSE NULL END * 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT 64 + 36 - 18 * + COUNT( * ) * 3 col1
----
46

skipif mysql # not compatible
query I rowsort label-4
SELECT 64 + 36 - 18 * + COUNT ( * ) * 3 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT 86 * + COUNT( * ) * 12
----
1032

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT 86 * + COUNT ( * ) * 12
----
1032

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

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - NULLIF ( 80, + COUNT ( * ) )
----
-80

query I rowsort
SELECT DISTINCT - ( + - 53 ) col2
----
53

query I rowsort
SELECT DISTINCT 26 * + + 67 AS col2
----
1742

query I rowsort
SELECT DISTINCT 43 * 41
----
1763

query I rowsort
SELECT 83 * + 19 AS col1
----
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT CASE + - 31 WHEN + 68 THEN ( 70 ) WHEN + 54 THEN ( 32 ) * + SUM( + ( ( 56 ) ) ) ELSE - 39 END - + 81
----
-120

skipif mysql # not compatible
query I rowsort label-11
SELECT CASE + - 31 WHEN + 68 THEN ( 70 ) WHEN + 54 THEN ( 32 ) * + SUM ( + ( ( 56 ) ) ) ELSE - 39 END - + 81
----
-120

query I rowsort
SELECT ALL - 76 + 28
----
-48

query I rowsort
SELECT 63 + - + ( 14 )
----
49

query I rowsort
SELECT 8 * 88 AS col2
----
704

query I rowsort
SELECT ALL + 4 + - 57
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL 42 + COUNT( DISTINCT 94 )
----
43

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 42 + COUNT ( DISTINCT 94 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT + COUNT( DISTINCT 87 ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + COUNT ( DISTINCT 87 ) * 50
----
50

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

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL COALESCE ( COUNT ( * ), + 59 )
----
1

query I rowsort
SELECT DISTINCT - 59 + + - 83
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL + 65 * + CASE - AVG ( - ( + 89 ) ) WHEN + COUNT( * ) THEN - 53 + - AVG ( DISTINCT 97 - - 56 ) * 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + 65 * + CASE - AVG ( - ( + 89 ) ) WHEN + COUNT ( * ) THEN - 53 + - AVG ( DISTINCT 97 - - 56 ) * 4 END
----
NULL

query I rowsort
SELECT DISTINCT - - 37 + + 47 col0
----
84

query I rowsort
SELECT - NULLIF ( - 84, 98 ) + 29 AS col2
----
113

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - - 16 + - - CASE COUNT( * ) WHEN + 51 + + MIN( ALL - 89 + 68 ) * 61 THEN - CASE + 74 WHEN - 17 THEN + 0 ELSE NULL END END + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT - - 16 + - - CASE COUNT ( * ) WHEN + 51 + + MIN ( ALL - 89 + 68 ) * 61 THEN - CASE + 74 WHEN - 17 THEN + 0 ELSE NULL END END + + 93
----
NULL

query I rowsort
SELECT - + 10 * + 72
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT - + COUNT( * ) + + - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-27
SELECT - + COUNT ( * ) + + - 45 AS col1
----
-46

query I rowsort
SELECT ALL + + 95 - - 85 * + 61
----
5280

query I rowsort
SELECT DISTINCT + + 78 * 27
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - 15 * - - COUNT( * ) * CASE WHEN NOT CASE 95 WHEN + COUNT( * ) THEN NULL ELSE + 17 END * 81 <= 42 * + 10 + - 7 * 11 THEN NULL ELSE 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT - 15 * - - COUNT ( * ) * CASE WHEN NOT CASE 95 WHEN + COUNT ( * ) THEN NULL ELSE + 17 END * 81 <= 42 * + 10 + - 7 * 11 THEN NULL ELSE 16 END
----
NULL

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

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

query I rowsort
SELECT ALL + - NULLIF ( + 98, 62 - 92 ) - 62 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT 73 * COUNT( * ) + ( 86 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 73 * COUNT ( * ) + ( 86 ) AS col0
----
159

query I rowsort
SELECT - + NULLIF ( - 99, - 27 + + 21 ) * 81 AS col0
----
8019

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT - + 35 DIV - + 59 + + 31
----
31

skipif mysql # not compatible
query I rowsort label-35
SELECT - + 35 / - + 59 + + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + COUNT( - - 5 ) - 71
----
-70

skipif mysql # not compatible
query I rowsort label-36
SELECT + COUNT ( - - 5 ) - 71
----
-70

query I rowsort
SELECT DISTINCT 30 * - - 36
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - 4 + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-38
SELECT - 4 + + COUNT ( * )
----
-3

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT + COUNT( 26 ) DIV - + NULLIF ( 24, - ( 71 ) * 3 + + 13 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-41
SELECT + COUNT ( 26 ) / - + NULLIF ( 24, - ( 71 ) * 3 + + 13 ) * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT DISTINCT + CASE 51 WHEN + 92 * - ( CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) * ( + 1 ) ELSE NULL END * - NULLIF ( + COUNT( * ) + MAX( 48 ), + ( 54 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + CASE 51 WHEN + 92 * - ( CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) * ( + 1 ) ELSE NULL END * - NULLIF ( + COUNT ( * ) + MAX ( 48 ), + ( 54 ) ) AS col2
----
NULL

query I rowsort
SELECT 35 * + 52 + + 39 AS col1
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + CASE - 76 WHEN 95 * ( - 16 ) + + COUNT( * ) THEN - SUM( DISTINCT - 79 ) WHEN + 90 THEN 86 + + 20 WHEN + 87 - COUNT( * ) THEN NULL END / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT + CASE - 76 WHEN 95 * ( - 16 ) + + COUNT ( * ) THEN - SUM ( DISTINCT - 79 ) WHEN + 90 THEN 86 + + 20 WHEN + 87 - COUNT ( * ) THEN NULL END / 55
----
NULL

query I rowsort
SELECT + 58 * 79 * 3 + 70 AS col1
----
13816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-46
SELECT ALL + 9 col2, CASE COUNT( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24
----
9
NULL

skipif mysql # not compatible
query II rowsort label-46
SELECT ALL + 9 col2, CASE COUNT ( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX ( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24
----
9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN( 59 ) ELSE + ( + CAST( NULL AS SIGNED ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN ( 59 ) ELSE + ( + CAST ( NULL AS INTEGER ) ) END col1
----
NULL

query I rowsort
SELECT + 55 + 28 - 32 + 61 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT COUNT( + 53 ) * 37 + ( + 71 - + ( + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) * 27 ) * 8 + 60
----
665

skipif mysql # not compatible
query I rowsort label-49
SELECT COUNT ( + 53 ) * 37 + ( + 71 - + ( + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 27 ) * 8 + 60
----
665

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-50
SELECT CASE - + 73 WHEN + CAST( NULL AS DECIMAL ) THEN 48 + 53 WHEN 82 * 66 THEN 14 WHEN - 47 THEN + 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT CASE - + 73 WHEN + CAST ( NULL AS REAL ) THEN 48 + 53 WHEN 82 * 66 THEN 14 WHEN - 47 THEN + 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL 89 * + 26 * + 21 + MAX( DISTINCT 15 )
----
48609

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL 89 * + 26 * + 21 + MAX ( DISTINCT 15 )
----
48609

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 8 * - 68 + - + 72 * ( + COUNT( * ) ) AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-52
SELECT 8 * - 68 + - + 72 * ( + COUNT ( * ) ) AS col0
----
-616

query I rowsort
SELECT ALL 32 * + + 57 * - 19 + 21 * + 69
----
-33207

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL 26 * 35 DIV - - 27 + 85
----
118

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL 26 * 35 / - - 27 + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT + ( + 43 ) + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-55
SELECT + ( + 43 ) + - COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL + 0 * + COUNT( DISTINCT + ( - 39 ) ) * 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + 0 * + COUNT ( DISTINCT + ( - 39 ) ) * 83 AS col1
----
0

query I rowsort
SELECT ALL + 69 * - ( + 16 ) + - 3 AS col0
----
-1107

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - 66 + + 63 + COUNT( * ) + 51 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-58
SELECT - 66 + + 63 + COUNT ( * ) + 51 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL 75 * NULLIF ( MAX( + 90 ), ( AVG ( ALL ( 91 ) ) ) - - 27 ) + COUNT( * ) * CASE + 79 WHEN - 28 THEN + 76 * 62 + MAX( 55 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL 75 * NULLIF ( MAX ( + 90 ), ( AVG ( ALL ( 91 ) ) ) - - 27 ) + COUNT ( * ) * CASE + 79 WHEN - 28 THEN + 76 * 62 + MAX ( 55 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT COUNT( DISTINCT 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-60
SELECT COUNT ( DISTINCT 12 ) AS col2
----
1

query I rowsort
SELECT ALL 76 * ( + 27 ) + + 10 * 7
----
2122

query I rowsort
SELECT NULLIF ( + + 93, - + 42 + 45 )
----
93

query I rowsort
SELECT + 59 + - 42
----
17

query II rowsort
SELECT - 87 AS col2, 96 AS col2
----
-87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - - CASE - 58 WHEN + + 18 THEN NULL WHEN COUNT( * ) * + CASE WHEN NOT NULL <> NULL THEN 63 * - 22 END THEN - 11 ELSE CASE COUNT( * ) WHEN 96 THEN + 80 ELSE NULL END / - 71 + + CASE + COUNT( * ) + + 23 WHEN + ( + MAX( + 96 ) ) THEN 59 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT - - CASE - 58 WHEN + + 18 THEN NULL WHEN COUNT ( * ) * + CASE WHEN NOT NULL <> NULL THEN 63 * - 22 END THEN - 11 ELSE CASE COUNT ( * ) WHEN 96 THEN + 80 ELSE NULL END / - 71 + + CASE + COUNT ( * ) + + 23 WHEN + ( + MAX ( + 96 ) ) THEN 59 END END AS col2
----
NULL

query I rowsort
SELECT - 47 + 24
----
-23

query II rowsort
SELECT 43, + 60 + + COALESCE ( 28, - 89 ) AS col1
----
43
88

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - COUNT( * ) * ( - 49 ) * - CASE - COUNT( * ) WHEN + 96 THEN 11 WHEN + MAX( ALL + 33 ) THEN NULL END - + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT - COUNT ( * ) * ( - 49 ) * - CASE - COUNT ( * ) WHEN + 96 THEN 11 WHEN + MAX ( ALL + 33 ) THEN NULL END - + 17 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT ALL - 93 * + ( - - SUM( + 37 ) ) col2
----
-3441

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - 93 * + ( - - SUM ( + 37 ) ) col2
----
-3441

query I rowsort
SELECT - - 87 + + 37 col0
----
124

query I rowsort
SELECT - + 13 + + 44 AS col2
----
31

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

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

query I rowsort
SELECT - - 38 * + 11
----
418

query I rowsort
SELECT ALL - 32 * - - 77 * - - 18 col0
----
-44352

query I rowsort
SELECT ALL + + 1 * - 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-76
SELECT - - COUNT( * ) AS col2, - 44 * COALESCE ( CAST( NULL AS SIGNED ), 38 )
----
1
-1672

skipif mysql # not compatible
query II rowsort label-76
SELECT - - COUNT ( * ) AS col2, - 44 * COALESCE ( CAST ( NULL AS INTEGER ), 38 )
----
1
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 58 + - - 37 * - COUNT( ALL - 28 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-77
SELECT - 58 + - - 37 * - COUNT ( ALL - 28 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT + 41 * + + 33 AS col0
----
1353

query I rowsort
SELECT - 2 * - + 77 + 45 + 94 * ( 19 * - 65 ) AS col0
----
-115891

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-80
SELECT ALL CAST( + AVG ( ALL + - 2 ) AS SIGNED ) DIV + 44 + 12
----
12

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL CAST ( + AVG ( ALL + - 2 ) AS INTEGER ) / + 44 + 12
----
12

query I rowsort
SELECT - ( - 39 ) * + 33 * 91
----
117117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT - 16 / - COUNT( * ) - - 43 + - CASE - NULLIF ( 11, 56 ) WHEN 65 THEN MAX( DISTINCT + 97 ) * - 52 END * MAX( DISTINCT ( + CAST( NULL AS SIGNED ) ) + 80 ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT - 16 / - COUNT ( * ) - - 43 + - CASE - NULLIF ( 11, 56 ) WHEN 65 THEN MAX ( DISTINCT + 97 ) * - 52 END * MAX ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) + 80 ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL COALESCE ( + + 40, - + COALESCE ( - + ( - 51 ), - ( - SUM( 21 ) ) ) - + 89 ) DIV + 40 + 53
----
54

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL COALESCE ( + + 40, - + COALESCE ( - + ( - 51 ), - ( - SUM ( 21 ) ) ) - + 89 ) / + 40 + 53
----
54

query II rowsort
SELECT + ( - 82 ) AS col0, 14 + - - 57 AS col2
----
-82
71

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL 16 DIV NULLIF ( 67, - + 95 ) + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 16 / NULLIF ( 67, - + 95 ) + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL 55 * 4 * - COUNT( * ) col1
----
-220

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL 55 * 4 * - COUNT ( * ) col1
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + SUM( CASE + - 94 WHEN + 70 THEN + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT + SUM ( CASE + - 94 WHEN + 70 THEN + 55 END )
----
NULL

query I rowsort
SELECT ALL 31 + 89 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT + 59 + - MAX( DISTINCT 57 )
----
2

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + 59 + - MAX ( DISTINCT 57 )
----
2

query I rowsort
SELECT DISTINCT 43 + + NULLIF ( - - 79, - + 50 ) col1
----
122

query II rowsort
SELECT DISTINCT 54 * + + 15, - 71 - - 59 AS col0
----
810
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-92
SELECT 8 DIV - - 65 AS col0, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-92
SELECT 8 / - - 65 AS col0, 40
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT MIN( ALL - 22 ) + - 86
----
-108

skipif mysql # not compatible
query I rowsort label-93
SELECT MIN ( ALL - 22 ) + - 86
----
-108

query I rowsort
SELECT 89 + - - 98 * 65 + + - 53 - + 45 AS col1
----
6361

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

skipif mysql # not compatible
query I rowsort label-95
SELECT - 17 / - 90 + COUNT ( * )
----
1

query I rowsort
SELECT 20 * + + 9 col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT - SUM( ALL 67 ) AS col1, 50 * 32 AS col2
----
-67
1600

skipif mysql # not compatible
query II rowsort label-97
SELECT - SUM ( ALL 67 ) AS col1, 50 * 32 AS col2
----
-67
1600

query I rowsort
SELECT ALL - 97 * 28
----
-2716

query I rowsort
SELECT DISTINCT 49 - 90 AS col1
----
-41

query II rowsort
SELECT ALL - - 78 * + 23 AS col2, + 30 AS col2
----
1794
30

query I rowsort
SELECT ALL - 53 * + + ( 67 ) + + 15
----
-3536

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT + 11 + 13 DIV + 53
----
11

skipif mysql # not compatible
query I rowsort label-102
SELECT + 11 + 13 / + 53
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL - COUNT( ALL - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - COUNT ( ALL - 48 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT 38 + - 6 + - 83 + - COUNT( ALL 56 ) + 42 * - 62
----
-2656

skipif mysql # not compatible
query I rowsort label-104
SELECT 38 + - 6 + - 83 + - COUNT ( ALL 56 ) + 42 * - 62
----
-2656

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-105
SELECT - 33 * + 76 AS col2, CAST( NULL AS DECIMAL )
----
-2508
NULL

skipif mysql # not compatible
query II rowsort label-105
SELECT - 33 * + 76 AS col2, CAST ( NULL AS REAL )
----
-2508
NULL

query I rowsort
SELECT - + NULLIF ( + 73, - 53 * + 38 )
----
-73

query I rowsort
SELECT DISTINCT - ( - + 15 ) AS col1
----
15

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

skipif mysql # not compatible
query I rowsort label-108
SELECT + COUNT ( * ) / 4 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL - - 61 + + 93 + - 33 DIV - 72 * 44 + 1
----
155

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - - 61 + + 93 + - 33 / - 72 * 44 + 1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT ALL 68 DIV 43 DIV - 16 * + + 13
----
0

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 68 / 43 / - 16 * + + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT 27 + - COUNT( * ) * + 55 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT 27 + - COUNT ( * ) * + 55 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT COUNT( * ) + + 3 * + 28 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) + + 3 * + 28 AS col0
----
85

query I rowsort
SELECT DISTINCT - 99 * - - 33
----
-3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL + 44 + - - CAST( + 28 AS SIGNED ) - - COALESCE ( - + 52, + COUNT( DISTINCT 79 ) )
----
20

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + 44 + - - CAST ( + 28 AS INTEGER ) - - COALESCE ( - + 52, + COUNT ( DISTINCT 79 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + CASE + 83 WHEN - COUNT( * ) - - 38 THEN - + 26 * + 47 WHEN 95 THEN NULL WHEN 80 THEN NULL ELSE - 1 END * COUNT( * ) - 89 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-115
SELECT + CASE + 83 WHEN - COUNT ( * ) - - 38 THEN - + 26 * + 47 WHEN 95 THEN NULL WHEN 80 THEN NULL ELSE - 1 END * COUNT ( * ) - 89 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-116
SELECT + 44 AS col0, 11 DIV 5
----
44
2

skipif mysql # not compatible
query II rowsort label-116
SELECT + 44 AS col0, 11 / 5
----
44
2

query I rowsort
SELECT 63 + - + 37 col2
----
26

query I rowsort
SELECT 99 * - + 93 AS col2
----
-9207

query I rowsort
SELECT 81 * + + 89 + + 37 AS col1
----
7246

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, + + 4 * - 10 * + + 51 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + 45 + NULLIF ( - 41, - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + 45 + NULLIF ( - 41, - COUNT ( * ) ) AS col0
----
4

query I rowsort
SELECT + 5 * 95 + 50 * 65 AS col0
----
3725

query II rowsort
SELECT ALL - 63 col2, + 61 * 92 col0
----
-63
5612

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL - COUNT( * ) - - - 27 + + 91 + - + 21 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - COUNT ( * ) - - - 27 + + 91 + - + 21 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT 8 + + COUNT( * ) * + - 46 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-125
SELECT 8 + + COUNT ( * ) * + - 46 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT DISTINCT - ( - CASE + - CASE - 58 WHEN + 51 + 10 THEN NULL ELSE + 64 + - 43 END WHEN - 58 * - COUNT( * ) + + 53 THEN NULL WHEN 0 THEN - CAST( NULL AS SIGNED ) ELSE NULLIF ( - 54, + 21 ) END )
----
-54

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - ( - CASE + - CASE - 58 WHEN + 51 + 10 THEN NULL ELSE + 64 + - 43 END WHEN - 58 * - COUNT ( * ) + + 53 THEN NULL WHEN 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULLIF ( - 54, + 21 ) END )
----
-54

query I rowsort
SELECT 88 * - 18 AS col0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT - CASE - + 79 WHEN + COUNT( * ) - 6 + + 13 * + COUNT( * ) * COUNT( * ) THEN 15 * - 28 END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - CASE - + 79 WHEN + COUNT ( * ) - 6 + + 13 * + COUNT ( * ) * COUNT ( * ) THEN 15 * - 28 END * 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT ALL - CAST( - + 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - CAST ( - + 22 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT DISTINCT 76 * - 49
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT COALESCE ( - - 73, COUNT( * ) ) * - 83
----
-6059

skipif mysql # not compatible
query I rowsort label-131
SELECT COALESCE ( - - 73, COUNT ( * ) ) * - 83
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT 94 * - 48 + + CASE + 93 WHEN - 4 - + 34 * - COUNT( * ) THEN NULL WHEN + 3 + + 73 THEN CASE - 57 WHEN + MIN( 13 ) + - SUM( DISTINCT - 73 + 82 ) THEN + 0 / + 11 WHEN 84 THEN NULL ELSE + 40 * 56 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT 94 * - 48 + + CASE + 93 WHEN - 4 - + 34 * - COUNT ( * ) THEN NULL WHEN + 3 + + 73 THEN CASE - 57 WHEN + MIN ( 13 ) + - SUM ( DISTINCT - 73 + 82 ) THEN + 0 / + 11 WHEN 84 THEN NULL ELSE + 40 * 56 END ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT + 0 AS col0, 23 AS col0
----
0
23

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL - + COUNT( * ) * 98 + - ( - 53 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL - + COUNT ( * ) * 98 + - ( - 53 ) AS col2
----
-45

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

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

query II rowsort
SELECT ALL 62 AS col1, 92 AS col0
----
62
92

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT - MIN( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-138
SELECT - MIN ( + 34 )
----
-34

query I rowsort
SELECT + 57 + - 33
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-140
SELECT DISTINCT 96 DIV + CAST( + 24 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT 96 / + CAST ( + 24 AS INTEGER ) col0
----
4

query I rowsort
SELECT ALL 24 + 51 AS col0
----
75

query I rowsort
SELECT DISTINCT 63 + + 39 AS col0
----
102

query I rowsort
SELECT - 7 + - - 29
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT - ( + 52 ) * 11 * - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT - ( + 52 ) * 11 * - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT SUM( + + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-145
SELECT SUM ( + + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL 62 + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 62 + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT SUM( - ( 59 ) ) + 4 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-147
SELECT SUM ( - ( 59 ) ) + 4 AS col2
----
-55

query I rowsort
SELECT DISTINCT 80 * - 36 col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL 26 + + MIN( + 94 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 26 + + MIN ( + 94 ) AS col2
----
120

query I rowsort
SELECT DISTINCT 85 + + 94 * + + 81
----
7699

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT CASE COUNT( * ) WHEN + 29 + - 89 / - + 95 THEN 71 * 67 ELSE 78 END AS col2
----
78

skipif mysql # not compatible
query I rowsort label-151
SELECT CASE COUNT ( * ) WHEN + 29 + - 89 / - + 95 THEN 71 * 67 ELSE 78 END AS col2
----
78

query I rowsort
SELECT COALESCE ( - ( + 99 ), 76 * - 88 ) AS col1
----
-99

query I rowsort
SELECT ALL + 41 * + - 25 * - - 23
----
-23575

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT DISTINCT 14 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT 14 / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + 78 - - 85 * - + 22 * + COUNT( * )
----
-1792

skipif mysql # not compatible
query I rowsort label-155
SELECT + 78 - - 85 * - + 22 * + COUNT ( * )
----
-1792

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - 60 DIV + + 31
----
-1

skipif mysql # not compatible
query I rowsort label-156
SELECT - 60 / + + 31
----
-1

query I rowsort
SELECT NULLIF ( - 46, 55 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + COALESCE ( + COUNT( * ), + ( + - COUNT( * ) ) + + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-158
SELECT + COALESCE ( + COUNT ( * ), + ( + - COUNT ( * ) ) + + 72 )
----
1

query I rowsort
SELECT NULLIF ( + 29, + - 57 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT ALL COUNT( * ) * - 11 DIV - 62 * + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL COUNT ( * ) * - 11 / - 62 * + 88 AS col0
----
0

query I rowsort
SELECT DISTINCT 71 * + 37 col2
----
2627

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT - 52 - - ( 59 ) DIV - 21 DIV COUNT( * ) + + MAX( DISTINCT 1 ) * COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-163
SELECT - 52 - - ( 59 ) / - 21 / COUNT ( * ) + + MAX ( DISTINCT 1 ) * COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-164
SELECT ALL - + 69 * - + 95 * 21 DIV - COUNT( * ) col2
----
-137655

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - + 69 * - + 95 * 21 / - COUNT ( * ) col2
----
-137655

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT ALL + + 5, + CASE MIN( DISTINCT - 90 ) WHEN + 23 THEN NULL WHEN - - COUNT( * ) THEN + 43 ELSE NULL END AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL + + 5, + CASE MIN ( DISTINCT - 90 ) WHEN + 23 THEN NULL WHEN - - COUNT ( * ) THEN + 43 ELSE NULL END AS col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT MAX( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-166
SELECT MAX ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + - NULLIF ( + COUNT( * ), + + 80 + - 4 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT + - NULLIF ( + COUNT ( * ), + + 80 + - 4 ) AS col1
----
-1

query I rowsort
SELECT - + ( - 6 ) * - 45 - + + 89 + 76
----
-283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT ALL - + 4 * - 19 + - CASE WHEN NULL NOT BETWEEN ( + 44 ) AND + 69 DIV 40 OR + 53 BETWEEN ( NULL ) AND NULL THEN NULL WHEN NOT + 44 NOT BETWEEN 7 AND + SUM( ALL + 47 ) DIV ( 90 ) - 84 THEN NULL ELSE + 9 * 3 END DIV 3
----
67

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - + 4 * - 19 + - CASE WHEN NULL NOT BETWEEN ( + 44 ) AND + 69 / 40 OR + 53 BETWEEN ( NULL ) AND NULL THEN NULL WHEN NOT + 44 NOT BETWEEN 7 AND + SUM ( ALL + 47 ) / ( 90 ) - 84 THEN NULL ELSE + 9 * 3 END / 3
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT - - 56 + - 78 DIV 80 + + 4 * + - ( + 44 ) col0
----
-120

skipif mysql # not compatible
query I rowsort label-170
SELECT - - 56 + - 78 / 80 + + 4 * + - ( + 44 ) col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL + - MIN( DISTINCT + - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + - MIN ( DISTINCT + - 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT ALL + 70 * + NULLIF ( - - 82, - COUNT( * ) + + - CAST( - + 42 AS SIGNED ) + + 21 / - 8 ) + 0
----
5740

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + 70 * + NULLIF ( - - 82, - COUNT ( * ) + + - CAST ( - + 42 AS INTEGER ) + + 21 / - 8 ) + 0
----
5740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT + SUM( ALL + 97 ) + - - 51
----
148

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + SUM ( ALL + 97 ) + - - 51
----
148

onlyif mysql # DIV for integer division: 
query II rowsort label-175
SELECT DISTINCT + - 52 DIV - 71 + 2 * + 82 AS col2, 63 AS col1
----
164
63

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT + - 52 / - 71 + 2 * + 82 AS col2, 63 AS col1
----
164
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-176
SELECT ALL 12 + 36 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL 12 + 36 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 0, - ( - 40 ) ) * 10 col1
----
0

query I rowsort
SELECT ALL - CASE - 98 WHEN + - 54 THEN NULL WHEN + 17 THEN - 1 - - 27 + + 97 * 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL - COALESCE ( - 27, - + 54, COUNT( * ) * ( + COUNT( * ) ) * + 0 ) + ( + 29 )
----
56

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - COALESCE ( - 27, - + 54, COUNT ( * ) * ( + COUNT ( * ) ) * + 0 ) + ( + 29 )
----
56

query I rowsort
SELECT - - 54 * - 84 AS col1
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - 27 + + COUNT( * ) * 78
----
51

skipif mysql # not compatible
query I rowsort label-181
SELECT - 27 + + COUNT ( * ) * 78
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT + MIN( 81 ) * + + 94
----
7614

skipif mysql # not compatible
query I rowsort label-182
SELECT + MIN ( 81 ) * + + 94
----
7614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL COUNT( * ) DIV - 19 col0
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL COUNT ( * ) / - 19 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL COUNT( * ) - - - ( 41 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL COUNT ( * ) - - - ( 41 ) AS col2
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL 79 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 79 / - 62
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT - COALESCE ( + 34, 90 * - - 24 * + 88, - 22 - - MIN( ALL - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-187
SELECT - COALESCE ( + 34, 90 * - - 24 * + 88, - 22 - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) ) AS col2
----
-34

query II rowsort
SELECT ALL 73 * + 68 AS col0, - 91
----
4964
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT - COALESCE ( + 30, - 91 * - MIN( - 58 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-189
SELECT - COALESCE ( + 30, - 91 * - MIN ( - 58 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT CASE - - 90 WHEN + - 45 THEN COUNT( * ) WHEN + ( - AVG ( 10 ) ) THEN NULL ELSE NULL END / 39 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT CASE - - 90 WHEN + - 45 THEN COUNT ( * ) WHEN + ( - AVG ( 10 ) ) THEN NULL ELSE NULL END / 39 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 46 * 7 - + 42 col0
----
280

query I rowsort
SELECT + 19 * + - 9 * + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL COUNT( * ) * + 75, - 73 * - 46 AS col1
----
75
3358

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL COUNT ( * ) * + 75, - 73 * - 46 AS col1
----
75
3358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-194
SELECT - COUNT( * ) DIV - - 92 - + ( ( 13 ) ) * - 61 + 90 DIV + CAST( 2 * 72 - 7 DIV + 29 AS SIGNED ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-194
SELECT - COUNT ( * ) / - - 92 - + ( ( 13 ) ) * - 61 + 90 / + CAST ( 2 * 72 - 7 / + 29 AS INTEGER ) AS col2
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT SUM( DISTINCT - + 35 ) * - 16
----
560

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT SUM ( DISTINCT - + 35 ) * - 16
----
560

query I rowsort
SELECT - 59 * - 67 + 16 * - 98 * + 4 AS col2
----
-2319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT + 50 DIV - 13 + + NULLIF ( + 10, + 78 * - + 75 + + - 75 + COUNT( * ) DIV + 28 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-197
SELECT + 50 / - 13 + + NULLIF ( + 10, + 78 * - + 75 + + - 75 + COUNT ( * ) / + 28 ) AS col2
----
7

query I rowsort
SELECT + - ( + 74 ) * 36 * - 89 AS col0
----
237096

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ALL + MAX( CASE 26 WHEN - NULLIF ( - 24, - 53 ) THEN - + 54 END ) / - 70 + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + MAX ( CASE 26 WHEN - NULLIF ( - 24, - 53 ) THEN - + 54 END ) / - 70 + - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT + CAST( - 63 AS SIGNED ) * 55 + - 92 + + COUNT( + - 31 ) * - ( COUNT( * ) )
----
-3558

skipif mysql # not compatible
query I rowsort label-200
SELECT + CAST ( - 63 AS INTEGER ) * 55 + - 92 + + COUNT ( + - 31 ) * - ( COUNT ( * ) )
----
-3558

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT + 26 * - - 8 + 24 DIV - 73 * + + 48 + - 99 + - + 3 + 19 DIV 35
----
106

skipif mysql # not compatible
query I rowsort label-201
SELECT + 26 * - - 8 + 24 / - 73 * + + 48 + - 99 + - + 3 + 19 / 35
----
106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT + 62 * - COUNT( DISTINCT 59 ) * + 46 * ( - CAST( - CASE + 49 WHEN 53 + + 62 THEN 76 ELSE NULL END AS SIGNED ) ) + - 55 + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT + 62 * - COUNT ( DISTINCT 59 ) * + 46 * ( - CAST ( - CASE + 49 WHEN 53 + + 62 THEN 76 ELSE NULL END AS INTEGER ) ) + - 55 + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT ( + COUNT( * ) ) * - 40 + 31
----
-9

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT ( + COUNT ( * ) ) * - 40 + 31
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL + COUNT( - 59 ) * + 54 + + 10 + - + CAST( 25 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + COUNT ( - 59 ) * + 54 + + 10 + - + CAST ( 25 AS INTEGER )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-206
SELECT - - COUNT( * ) DIV 63 DIV - COALESCE ( + CASE + + ( - 41 ) WHEN - CAST( - 71 AS SIGNED ) * + 76 + 25 THEN 39 WHEN 4 + 76 THEN NULL ELSE + 81 * COUNT( * ) END, - 67 ) + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-206
SELECT - - COUNT ( * ) / 63 / - COALESCE ( + CASE + + ( - 41 ) WHEN - CAST ( - 71 AS INTEGER ) * + 76 + 25 THEN 39 WHEN 4 + 76 THEN NULL ELSE + 81 * COUNT ( * ) END, - 67 ) + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT - 7 * + COUNT( * ) * - - 37 + - 0 AS col1
----
-259

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - 7 * + COUNT ( * ) * - - 37 + - 0 AS col1
----
-259

query I rowsort
SELECT ALL CASE 65 WHEN - 63 THEN NULL WHEN + ( + 98 ) + - 29 * + 93 + - 29 THEN 85 * COALESCE ( - 95, 34 ) END * 32 + + 85 * 53
----
NULL

query I rowsort
SELECT - 46 * + 70 - + 55
----
-3275

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT - NULLIF ( - 10, - 90 + + 88 ) * - 78 DIV - 74 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-210
SELECT - NULLIF ( - 10, - 90 + + 88 ) * - 78 / - 74 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT MIN( DISTINCT 35 ) + NULLIF ( + COUNT( * ), - + 18 * + - NULLIF ( + + 64, + 22 ) + - 12 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-211
SELECT MIN ( DISTINCT 35 ) + NULLIF ( + COUNT ( * ), - + 18 * + - NULLIF ( + + 64, + 22 ) + - 12 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-212
SELECT NULLIF ( - NULLIF ( - + 5, - CAST( + 77 AS DECIMAL ) ), - 95 + - COALESCE ( + CAST( 45 AS DECIMAL ), - 98 ) + CAST( 27 AS SIGNED ) ) + SUM( + 63 ) * MAX( ALL + 69 ) AS col0
----
4352

skipif mysql # not compatible
query I rowsort label-212
SELECT NULLIF ( - NULLIF ( - + 5, - CAST ( + 77 AS REAL ) ), - 95 + - COALESCE ( + CAST ( 45 AS REAL ), - 98 ) + CAST ( 27 AS INTEGER ) ) + SUM ( + 63 ) * MAX ( ALL + 69 ) AS col0
----
4352

query I rowsort
SELECT 82 * - 76 * + 48
----
-299136

query I rowsort
SELECT ALL + 86 * + - 51 col1
----
-4386

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

skipif mysql # not compatible
query I rowsort label-215
SELECT AVG ( - - 45 ) + + ( - CAST ( NULL AS REAL ) ) + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT ALL 43 col2, + COUNT( * ) - - 83
----
43
84

skipif mysql # not compatible
query II rowsort label-216
SELECT ALL 43 col2, + COUNT ( * ) - - 83
----
43
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT COUNT( * ) DIV + - MIN( ALL + + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( * ) / + - MIN ( ALL + + 70 ) AS col2
----
0

query I rowsort
SELECT 72 * - + 11
----
-792

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-220
SELECT 19, - NULLIF ( 90, CASE 79 WHEN + ( 22 ) + 95 + + AVG ( ALL - 22 ) THEN + SUM( - 97 ) END ) * - CAST( NULL AS SIGNED ) AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-220
SELECT 19, - NULLIF ( 90, CASE 79 WHEN + ( 22 ) + 95 + + AVG ( ALL - 22 ) THEN + SUM ( - 97 ) END ) * - CAST ( NULL AS INTEGER ) AS col2
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT COUNT( * ) + + 82 + - 16 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( * ) + + 82 + - 16 AS col2
----
67

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

skipif mysql # not compatible
query I rowsort label-222
SELECT 27 / 12
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-223
SELECT 33 + - ( 27 ) AS col1, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-223
SELECT 33 + - ( 27 ) AS col1, - COUNT ( * )
----
6
-1

query I rowsort
SELECT DISTINCT 78 * - 61
----
-4758

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

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

query I rowsort
SELECT DISTINCT 13 * - + 88 AS col1
----
-1144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-227
SELECT ALL CAST( - 62 AS SIGNED ) + + 45 DIV - - 90 * 5 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL CAST ( - 62 AS INTEGER ) + + 45 / - - 90 * 5 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-228
SELECT - ( + 93 ) - 0 col1, + MAX( - 33 ) * + 11 * + 63 AS col0
----
-93
-22869

skipif mysql # not compatible
query II rowsort label-228
SELECT - ( + 93 ) - 0 col1, + MAX ( - 33 ) * + 11 * + 63 AS col0
----
-93
-22869

query I rowsort
SELECT + - 10 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT - 62 * - COALESCE ( - 24, + 85, - COALESCE ( - 51, - 71, CAST( 41 AS SIGNED ), 39 ) ) AS col1
----
-1488

skipif mysql # not compatible
query I rowsort label-230
SELECT - 62 * - COALESCE ( - 24, + 85, - COALESCE ( - 51, - 71, CAST ( 41 AS INTEGER ), 39 ) ) AS col1
----
-1488

query I rowsort
SELECT - 1 - - ( + + 55 ) + - - 23 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT + 87 + - 39 + - 43 DIV + 72
----
48

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + 87 + - 39 + - 43 / + 72
----
48

query I rowsort
SELECT - 28 * - 47 AS col1
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - 84 + 63 + + + 69 + + 59 * NULLIF ( COUNT( * ), + - 49 * + ( - 15 ) ) + 41
----
148

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 84 + 63 + + + 69 + + 59 * NULLIF ( COUNT ( * ), + - 49 * + ( - 15 ) ) + 41
----
148

query I rowsort
SELECT + 50 - - CASE - 48 WHEN - 35 - + - CASE - 59 WHEN 60 * 12 THEN - 75 WHEN - 10 + + 58 THEN 85 END THEN NULL ELSE 28 END - 79
----
-1

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

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - + 52 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - + 72 ) + 9 * - 65 col2
----
-657

query I rowsort
SELECT - 3 * - 39 + 28 * + 22 * - ( ( - ( + - 34 ) ) )
----
-20827

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - COUNT( * ) + + + 88 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-239
SELECT - COUNT ( * ) + + + 88 AS col0
----
87

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

skipif mysql # not compatible
query II rowsort label-240
SELECT ALL - COUNT ( * ) AS col1, - 51 AS col0
----
-1
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT 7 + - - 42 + + + 81 - + 73 * 22 DIV - 2 col0
----
933

skipif mysql # not compatible
query I rowsort label-241
SELECT 7 + - - 42 + + + 81 - + 73 * 22 / - 2 col0
----
933

query I rowsort
SELECT - 0 * - ( + - 38 ) + + - 68 - + 78 AS col2
----
-146

query II rowsort
SELECT DISTINCT - - 74 col0, 27 AS col2
----
74
27

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + - COUNT( * ) * - - 39 - + COUNT( * ) * COUNT( * ) + + - 72 + - 33 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-244
SELECT + - COUNT ( * ) * - - 39 - + COUNT ( * ) * COUNT ( * ) + + - 72 + - 33 AS col1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT 97 - + - MIN( + ( - - 19 ) )
----
116

skipif mysql # not compatible
query I rowsort label-245
SELECT 97 - + - MIN ( + ( - - 19 ) )
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT ALL - CAST( + 21 AS SIGNED ) - 78
----
-99

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - CAST ( + 21 AS INTEGER ) - 78
----
-99

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

query I rowsort
SELECT DISTINCT 62 * + + 91
----
5642

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT 2 + - COUNT( * ) AS col1, ( - 78 ) AS col0
----
1
-78

skipif mysql # not compatible
query II rowsort label-250
SELECT 2 + - COUNT ( * ) AS col1, ( - 78 ) AS col0
----
1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT SUM( DISTINCT - - 76 ) - + + 84 + COUNT( * ) * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-251
SELECT SUM ( DISTINCT - - 76 ) - + + 84 + COUNT ( * ) * COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT 36 + - 55 - + - 9 DIV - 78 * 39 + 57 col0
----
38

skipif mysql # not compatible
query I rowsort label-252
SELECT 36 + - 55 - + - 9 / - 78 * 39 + 57 col0
----
38

query I rowsort
SELECT 7 * + 11
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT ALL - 19 * + COUNT( * ), 37 col1
----
-19
37

skipif mysql # not compatible
query II rowsort label-254
SELECT ALL - 19 * + COUNT ( * ), 37 col1
----
-19
37

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT DISTINCT COUNT( - - 69 ) AS col2, + 54
----
1
54

skipif mysql # not compatible
query II rowsort label-257
SELECT DISTINCT COUNT ( - - 69 ) AS col2, + 54
----
1
54

query I rowsort
SELECT ALL - ( - 93 ) + - 32 * - 55 AS col2
----
1853

query I rowsort
SELECT ALL - ( + 29 ) + 18 col1
----
-11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT 38 * + - 4 - + 67 + COUNT( DISTINCT + - 88 ) - + ( 95 ) * + - 33 AS col1
----
2917

skipif mysql # not compatible
query I rowsort label-262
SELECT 38 * + - 4 - + 67 + COUNT ( DISTINCT + - 88 ) - + ( 95 ) * + - 33 AS col1
----
2917

query I rowsort
SELECT + 99 + - - 50 * NULLIF ( + 79, - 28 * + + ( 67 ) * + + 49 - - - ( 24 ) ) AS col0
----
4049

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL 75 * - 9 - + MAX( DISTINCT - 39 ) + - 68 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL 75 * - 9 - + MAX ( DISTINCT - 39 ) + - 68 AS col2
----
-704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL + CAST( - - 0 AS SIGNED ) * + + 44 * - CASE - 92 WHEN 97 THEN - 13 + + 17 WHEN - 30 THEN NULL ELSE NULL END + + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + CAST ( - - 0 AS INTEGER ) * + + 44 * - CASE - 92 WHEN 97 THEN - 13 + + 17 WHEN - 30 THEN NULL ELSE NULL END + + 85 AS col2
----
NULL

query I rowsort
SELECT 4 * - 89 * - 54 + - 51
----
19173

query II rowsort
SELECT DISTINCT - 6 * - ( + - 76 ) + ( + 30 ) col2, 0
----
-426
0

query II rowsort
SELECT ALL 74 * + + 97 AS col1, - 41 * - - 4 + + 82 AS col1
----
7178
-82

query I rowsort
SELECT ALL 79 * 88 AS col1
----
6952

query II rowsort
SELECT 83 * - 61, + 90 AS col2
----
-5063
90

query I rowsort
SELECT 42 + + ( - + 5 )
----
37

query I rowsort
SELECT ALL - 31 * + - 98 + - - 41 AS col2
----
3079

query I rowsort
SELECT + CASE + 27 WHEN - - ( - 87 ) * - + 26 THEN NULL WHEN + 89 THEN NULL ELSE - + 24 END AS col2
----
-24

query I rowsort
SELECT + NULLIF ( - NULLIF ( - - ( - 74 ), 66 ), + + 66 ) * - 86 + - 48 + + 6 * + 73 AS col0
----
-5974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT + CAST( - - 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-275
SELECT + CAST ( - - 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT ( 64 ) * - - 99 * - 29 + NULLIF ( - 69, ( - COALESCE ( - 42, + 65 ) ) + 4 ) - - COUNT( * ) DIV + 37 * + 81
----
-183813

skipif mysql # not compatible
query I rowsort label-276
SELECT ( 64 ) * - - 99 * - 29 + NULLIF ( - 69, ( - COALESCE ( - 42, + 65 ) ) + 4 ) - - COUNT ( * ) / + 37 * + 81
----
-183813

query I rowsort
SELECT + - 76 * - 6 AS col2
----
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-278
SELECT ALL - 70 * + - MIN( DISTINCT + 78 ) + - 24 * - 8 + + ( + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 70 * + - MIN ( DISTINCT + 78 ) + - 24 * - 8 + + ( + CAST ( NULL AS REAL ) ) col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT ALL 86 DIV 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 86 / 62 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT + 44 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-281
SELECT + 44 / + 40
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ALL 50 DIV - 7
----
-7

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL 50 / - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + COUNT( DISTINCT + 16 ) + - 28 * + 21
----
-587

skipif mysql # not compatible
query I rowsort label-283
SELECT + COUNT ( DISTINCT + 16 ) + - 28 * + 21
----
-587

query I rowsort
SELECT + 54 * + 63 * + + 57 - + 36 * 9
----
193590

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - COUNT( * ) + - COUNT( DISTINCT + 73 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-285
SELECT - COUNT ( * ) + - COUNT ( DISTINCT + 73 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT DISTINCT 98 AS col0, SUM( - - ( 22 ) ) AS col2
----
98
22

skipif mysql # not compatible
query II rowsort label-286
SELECT DISTINCT 98 AS col0, SUM ( - - ( 22 ) ) AS col2
----
98
22

query I rowsort
SELECT ALL 14 + + 20 + + 44
----
78

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + 2 + - COUNT( * ) * - - 81
----
-79

skipif mysql # not compatible
query I rowsort label-290
SELECT + 2 + - COUNT ( * ) * - - 81
----
-79

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

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT 7 + + + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL + ( - COALESCE ( 64, + - 80 + - + 60, + COUNT( * ) * + 12 ) ) + MIN( 89 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + ( - COALESCE ( 64, + - 80 + - + 60, + COUNT ( * ) * + 12 ) ) + MIN ( 89 ) AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT SUM ( 87 )
----
87

query I rowsort
SELECT - 53 + 78 + 37 * + + 8 col2
----
321

query I rowsort
SELECT ALL - 87 + + 70 + + 86 + - 76 + + 84
----
77

query II rowsort
SELECT ALL 64 AS col1, - 41 AS col1
----
64
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - SUM( - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-297
SELECT - SUM ( - - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - COUNT( * ) * - + 47 * + + 44 + - 62 AS col0
----
2006

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - COUNT ( * ) * - + 47 * + + 44 + - 62 AS col0
----
2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT - 19 * 30 DIV 77 + + 86 + 62 * CASE - + MIN( ALL - 74 ) WHEN 26 THEN NULL ELSE - + 19 * 46 END
----
-54109

skipif mysql # not compatible
query I rowsort label-299
SELECT - 19 * 30 / 77 + + 86 + 62 * CASE - + MIN ( ALL - 74 ) WHEN 26 THEN NULL ELSE - + 19 * 46 END
----
-54109

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-302
SELECT - + CAST( + 98 AS SIGNED ) - + COUNT( * ) AS col2, 64 * 13 * - - 53 * + + MIN( - - 83 )
----
-99
3659968

skipif mysql # not compatible
query II rowsort label-302
SELECT - + CAST ( + 98 AS INTEGER ) - + COUNT ( * ) AS col2, 64 * 13 * - - 53 * + + MIN ( - - 83 )
----
-99
3659968

query I rowsort
SELECT - + 65 * + 78 AS col2
----
-5070

query II rowsort
SELECT ALL + + 29, 6 AS col2
----
29
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-305
SELECT CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + - + 32 / - - 99 THEN 44 * - 90 - + COUNT( * ) - + - 77 - 12 + - 14 ELSE NULL END * + 92 - - CAST( 95 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + - + 32 / - - 99 THEN 44 * - 90 - + COUNT ( * ) - + - 77 - 12 + - 14 ELSE NULL END * + 92 - - CAST ( 95 AS REAL ) AS col0
----
NULL

query II rowsort
SELECT 1 AS col0, 26 AS col1
----
1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT ALL + 15 * COUNT( * ) - - 28 DIV - 70 DIV + + ( + COUNT( - - 50 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + 15 * COUNT ( * ) - - 28 / - 70 / + + ( + COUNT ( - - 50 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT ALL + - 91 AS col2, + ( - 83 ) - + - COUNT( * )
----
-91
-82

skipif mysql # not compatible
query II rowsort label-308
SELECT ALL + - 91 AS col2, + ( - 83 ) - + - COUNT ( * )
----
-91
-82

query II rowsort
SELECT ALL + - 96, 83 + 90 col0
----
-96
173

query I rowsort
SELECT - - 39 * + ( - 94 ) AS col2
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + 68 * + - 16 * + COALESCE ( - + 74, + 66 + - 85, - MAX( ALL - + 27 ) - 30 + + - 46 ) AS col2
----
80512

skipif mysql # not compatible
query I rowsort label-311
SELECT + 68 * + - 16 * + COALESCE ( - + 74, + 66 + - 85, - MAX ( ALL - + 27 ) - 30 + + - 46 ) AS col2
----
80512

query I rowsort
SELECT - ( + 61 ) + - ( + 53 ) + - 5
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT + CASE + CAST( - 19 AS SIGNED ) WHEN + 75 THEN - + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT + CASE + CAST ( - 19 AS INTEGER ) WHEN + 75 THEN - + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT COALESCE ( + 12, - - 68 + + 49 + - COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-314
SELECT COALESCE ( + 12, - - 68 + + 49 + - COUNT ( * ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT CASE - + COUNT( * ) WHEN + - 83 * - - COUNT( * ) + - COUNT( * ) - - + 91 + + + 65 / 72 / + 83 THEN NULL WHEN MIN( 72 ) THEN + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT CASE - + COUNT ( * ) WHEN + - 83 * - - COUNT ( * ) + - COUNT ( * ) - - + 91 + + + 65 / 72 / + 83 THEN NULL WHEN MIN ( 72 ) THEN + 69 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - 23 * + + 43 + 70 - + + SUM( + - 50 ) AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 23 * + + 43 + 70 - + + SUM ( + - 50 ) AS col1
----
-869

query I rowsort
SELECT - NULLIF ( + 14, + - 3 * + 12 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL + NULLIF ( + + ( 24 ), - 99 ) * - 25 * - 48 + CAST( NULL AS SIGNED ) * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + NULLIF ( + + ( 24 ), - 99 ) * - 25 * - 48 + CAST ( NULL AS INTEGER ) * 56 AS col0
----
NULL

query II rowsort
SELECT + 2 * + - 99 AS col2, + 21 + - ( - 41 ) * - 94 * - + 85 AS col2
----
-198
327611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT DISTINCT - 46 * ( + + CAST( - AVG ( - - 94 ) AS SIGNED ) ) * - + ( 67 ) * 3 + - + ( 34 ) + - 28 + 25 AS col1
----
-869161

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - 46 * ( + + CAST ( - AVG ( - - 94 ) AS INTEGER ) ) * - + ( 67 ) * 3 + - + ( 34 ) + - 28 + 25 AS col1
----
-869161

query II rowsort
SELECT ALL 4 AS col1, 98
----
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + 37 + + ( + 79 ) + - - ( + COALESCE ( + MAX( - - 36 ), 43 + 96 + + 62 ) ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-322
SELECT + 37 + + ( + 79 ) + - - ( + COALESCE ( + MAX ( - - 36 ), 43 + 96 + + 62 ) ) AS col2
----
152

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

skipif mysql # not compatible
query I rowsort label-323
SELECT SUM ( + ( - - 3 ) )
----
3

query I rowsort
SELECT + 66 + + 85 col0
----
151

query I rowsort
SELECT + 42 + 15
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-326
SELECT + NULLIF ( - 16, SUM( + CAST( - 80 AS DECIMAL ) ) ) * 22, - 50 * - CAST( - COUNT( DISTINCT - 76 ) AS SIGNED ) - - 67 AS col1
----
-352
17

skipif mysql # not compatible
query II rowsort label-326
SELECT + NULLIF ( - 16, SUM ( + CAST ( - 80 AS REAL ) ) ) * 22, - 50 * - CAST ( - COUNT ( DISTINCT - 76 ) AS INTEGER ) - - 67 AS col1
----
-352
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-327
SELECT - COALESCE ( + 3, + 0, - 71 DIV - 48 ) DIV - 61 * 72 + - 92 * + 84 - + - 27 - + - CAST( 46 AS SIGNED ) + 62
----
-7593

skipif mysql # not compatible
query I rowsort label-327
SELECT - COALESCE ( + 3, + 0, - 71 / - 48 ) / - 61 * 72 + - 92 * + 84 - + - 27 - + - CAST ( 46 AS INTEGER ) + 62
----
-7593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-328
SELECT - CAST( NULL AS SIGNED ) AS col0, MAX( DISTINCT - 83 ) * + - 64, + 2 AS col1
----
NULL
5312
2

skipif mysql # not compatible
query III rowsort label-328
SELECT - CAST ( NULL AS INTEGER ) AS col0, MAX ( DISTINCT - 83 ) * + - 64, + 2 AS col1
----
NULL
5312
2

query I rowsort
SELECT ALL - NULLIF ( - 33, - 41 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT + + 61 - - + 45 + + CAST( 90 AS SIGNED ) * + 57 AS col1
----
5236

skipif mysql # not compatible
query I rowsort label-330
SELECT + + 61 - - + 45 + + CAST ( 90 AS INTEGER ) * + 57 AS col1
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL - 55 - + - 58 - + - 92 * - COUNT( * ) * 80 + 72 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) + + 76 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 55 - + - 58 - + - 92 * - COUNT ( * ) * 80 + 72 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + 76 * - 38
----
NULL

query I rowsort
SELECT + - 86 + - - COALESCE ( + + 54, + + 79 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + + 75 + + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-333
SELECT + + 75 + + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + + 16 * - COUNT( * ) + 68
----
52

skipif mysql # not compatible
query I rowsort label-334
SELECT + + 16 * - COUNT ( * ) + 68
----
52

query I rowsort
SELECT - + 11 * 41 AS col0
----
-451

query I rowsort
SELECT + 70 + + 35 + + - 34 col2
----
71

query II rowsort
SELECT + 27, ( + + 38 ) AS col1
----
27
38

query I rowsort
SELECT 13 + + 97 + 1 + 38 * 96 - + - 92
----
3851

query I rowsort
SELECT + + 25 * + 91 * + 48 * + 18 - - + 77
----
1965677

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT - COUNT( - 39 ), - 50 AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-340
SELECT - COUNT ( - 39 ), - 50 AS col2
----
-1
-50

query I rowsort
SELECT 5 * 75 * 22 + - 46
----
8204

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL - - SUM( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - - SUM ( - 2 ) AS col0
----
-2

query II rowsort
SELECT DISTINCT - 64 AS col2, - 84
----
-64
-84

query I rowsort
SELECT DISTINCT + 48 * + 27
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT + 44 DIV - + 87 + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-345
SELECT + 44 / - + 87 + + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - + 3 AS col0, + 34 + + - COUNT( * )
----
-3
33

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - + 3 AS col0, + 34 + + - COUNT ( * )
----
-3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT + - 73 * + - ( + COUNT( * ) ) * 26 AS col1
----
1898

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT + - 73 * + - ( + COUNT ( * ) ) * 26 AS col1
----
1898

query I rowsort
SELECT + 46 + - 96 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - 55 * - - 65 / - CASE - ( + 13 ) WHEN 22 * - + ( ( + ( - 51 ) ) ) * - - 77 * 74 + 72 THEN NULL WHEN + 61 * 64 THEN NULL WHEN CASE + 73 WHEN 53 / 87 THEN COUNT( * ) + 45 WHEN - COALESCE ( COALESCE ( + 67, NULLIF ( 72, + COUNT( * ) ) + 27 * - ( - 83 ) ), - MIN( 3 ), 70, - COUNT( * ) + - ( COALESCE ( 92, COUNT( * ) * - 25, 75 ) + 40 ) * 24 ) THEN - 64 - + 21 * - 71 ELSE NULL END THEN 43 * - 5 WHEN - 93 THEN - COUNT( 4 ) + 86 END * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT - 55 * - - 65 / - CASE - ( + 13 ) WHEN 22 * - + ( ( + ( - 51 ) ) ) * - - 77 * 74 + 72 THEN NULL WHEN + 61 * 64 THEN NULL WHEN CASE + 73 WHEN 53 / 87 THEN COUNT ( * ) + 45 WHEN - COALESCE ( COALESCE ( + 67, NULLIF ( 72, + COUNT ( * ) ) + 27 * - ( - 83 ) ), - MIN ( 3 ), 70, - COUNT ( * ) + - ( COALESCE ( 92, COUNT ( * ) * - 25, 75 ) + 40 ) * 24 ) THEN - 64 - + 21 * - 71 ELSE NULL END THEN 43 * - 5 WHEN - 93 THEN - COUNT ( 4 ) + 86 END * + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL - - 61 + - COUNT( DISTINCT + 31 )
----
60

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - - 61 + - COUNT ( DISTINCT + 31 )
----
60

query I rowsort
SELECT - 21 * - 74 + + - 95
----
1459

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-353
SELECT DISTINCT - 23 + + + 60, - 73 + - + COALESCE ( - 22, - 73 / - 24 * - + 78 * COUNT( * ) ) - + + CAST( NULL AS SIGNED ) col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-353
SELECT DISTINCT - 23 + + + 60, - 73 + - + COALESCE ( - 22, - 73 / - 24 * - + 78 * COUNT ( * ) ) - + + CAST ( NULL AS INTEGER ) col2
----
37
NULL

query I rowsort
SELECT DISTINCT - 51 + - 69
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT ALL + CAST( - 56 AS SIGNED ) + 22
----
-34

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + CAST ( - 56 AS INTEGER ) + 22
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT + 78 DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 78 / 15
----
5

query II rowsort
SELECT 7 * 37 AS col2, 76 * - + 77 AS col2
----
259
-5852

query II rowsort
SELECT 13 + 88, 5 col1
----
101
5

query I rowsort
SELECT 23 + 40 + - 14
----
49

query I rowsort
SELECT DISTINCT + 89 * - ( - + 94 ) AS col2
----
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT 58 + + 8 + + MAX( + - 6 ) * 66 * - 98 col0
----
38874

skipif mysql # not compatible
query I rowsort label-361
SELECT 58 + + 8 + + MAX ( + - 6 ) * 66 * - 98 col0
----
38874

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT COUNT( - 50 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT COUNT ( - 50 ) - + COUNT ( * )
----
0

query II rowsort
SELECT ALL + ( 40 ) AS col1, + 44 AS col1
----
40
44

query I rowsort
SELECT - 1 + - + 5 AS col1
----
-6

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

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

query I rowsort
SELECT - 28 * - + 55 AS col1
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-367
SELECT + 37 + NULLIF ( + + 15, + COUNT( DISTINCT - 75 ) ) + + 95 + + + MAX( 97 ) / - 87 + + CAST( NULL AS SIGNED ) * 51 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT + 37 + NULLIF ( + + 15, + COUNT ( DISTINCT - 75 ) ) + + 95 + + + MAX ( 97 ) / - 87 + + CAST ( NULL AS INTEGER ) * 51 + - 16
----
NULL

query I rowsort
SELECT ALL - 43 * - 46 + - 9 - + - 60
----
2029

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT ALL - 94 * MIN( + 50 ) + + 94 + + 69, 9 AS col2
----
-4537
9

skipif mysql # not compatible
query II rowsort label-369
SELECT ALL - 94 * MIN ( + 50 ) + + 94 + + 69, 9 AS col2
----
-4537
9

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + CASE + 39 WHEN - + 82 / + - 5 * + + CASE WHEN + 15 = NULL THEN NULL ELSE + 84 END THEN + 73 * COUNT( * ) + - + 86 WHEN + 75 * + 67 - 68 * + 32 THEN NULL WHEN 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT + CASE + 39 WHEN - + 82 / + - 5 * + + CASE WHEN + 15 = NULL THEN NULL ELSE + 84 END THEN + 73 * COUNT ( * ) + - + 86 WHEN + 75 * + 67 - 68 * + 32 THEN NULL WHEN 75 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 50 * - 64 AS col2, + 66 AS col1
----
3200
66

query I rowsort
SELECT - 44 * - 14 * + 33 * + ( - - ( + + 0 ) ) * + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT MAX( ALL - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-373
SELECT MAX ( ALL - - 28 )
----
28

query I rowsort
SELECT ALL - ( + 79 ) + - NULLIF ( - + 71, + 5 ) + - 40 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT MAX( CAST( 78 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-375
SELECT MAX ( CAST ( 78 AS INTEGER ) )
----
78

query I rowsort
SELECT 27 - + 75
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL + CAST( 16 AS SIGNED ) * - - 47
----
752

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + CAST ( 16 AS INTEGER ) * - - 47
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT ( + MIN( ALL + 96 ) ) + - 82 + 16 + - 31 * + 93 - 22 * + 55 + - 5 AS col1
----
-4068

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT ( + MIN ( ALL + 96 ) ) + - 82 + 16 + - 31 * + 93 - 22 * + 55 + - 5 AS col1
----
-4068

query II rowsort
SELECT + 48, 50 AS col0
----
48
50

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT 52 * 35 DIV 95
----
19

skipif mysql # not compatible
query I rowsort label-380
SELECT 52 * 35 / 95
----
19

query I rowsort
SELECT 26 + + ( + 60 ) AS col1
----
86

query II rowsort
SELECT 6 AS col1, + 56 * - 1 * - 65 AS col0
----
6
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 42 * - SUM( ALL + 98 )
----
-4116

skipif mysql # not compatible
query I rowsort label-383
SELECT 42 * - SUM ( ALL + 98 )
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL - 29 / 49 / + CAST( NULL AS SIGNED ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - 29 / 49 / + CAST ( NULL AS INTEGER ) / - 31
----
NULL

query I rowsort
SELECT ALL + 75 - 86 * + - 4
----
419

query I rowsort
SELECT DISTINCT - 11 * - 28 * + 47 col1
----
14476

query I rowsort
SELECT ALL 59 * + 20 AS col0
----
1180

query I rowsort
SELECT 67 * + 27 * + + 77 * + + 13
----
1810809

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT ALL - 30 DIV 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - 30 / 55 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT - 43 DIV - 50 * + NULLIF ( 51, - + 78 ) + + + 77 - - 59 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-390
SELECT - 43 / - 50 * + NULLIF ( 51, - + 78 ) + + + 77 - - 59 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT - + 83 + + + NULLIF ( + - 96, - + CAST( 43 AS SIGNED ) + + 68 + - 50 + + COUNT( * ) * 43 + - 42 + - AVG ( + - 64 ) * CAST( 3 AS SIGNED ) + + 58 ) * 40 AS col2
----
-3923

skipif mysql # not compatible
query I rowsort label-391
SELECT - + 83 + + + NULLIF ( + - 96, - + CAST ( 43 AS INTEGER ) + + 68 + - 50 + + COUNT ( * ) * 43 + - 42 + - AVG ( + - 64 ) * CAST ( 3 AS INTEGER ) + + 58 ) * 40 AS col2
----
-3923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT + 26 * - 93 - - + CASE + 61 WHEN + CAST( NULL AS SIGNED ) * + - 19 THEN NULL WHEN COUNT( DISTINCT + + 62 ) + + + 29 * - ( 98 ) THEN - - 80 WHEN + 92 THEN + 98 * 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT + 26 * - 93 - - + CASE + 61 WHEN + CAST ( NULL AS INTEGER ) * + - 19 THEN NULL WHEN COUNT ( DISTINCT + + 62 ) + + + 29 * - ( 98 ) THEN - - 80 WHEN + 92 THEN + 98 * 4 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - - 64, + 17 ) * + 90 AS col0
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - - ( + COALESCE ( + 57, 74 ) ) + ( - 56 ) + - - 85 + - + 48 DIV + ( - ( + 29 ) ) + - 73 * + - 35 * 18
----
46077

skipif mysql # not compatible
query I rowsort label-394
SELECT - - ( + COALESCE ( + 57, 74 ) ) + ( - 56 ) + - - 85 + - + 48 / + ( - ( + 29 ) ) + - 73 * + - 35 * 18
----
46077

query I rowsort
SELECT ALL NULLIF ( 29, + 87 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT - MAX( + - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - MAX ( + - 33 ) AS col1
----
33

query I rowsort
SELECT - - ( ( 66 ) )
----
66

query I rowsort
SELECT - 88 - + 1 col1
----
-89

query I rowsort
SELECT ALL - 53 * + 74
----
-3922

query I rowsort
SELECT + 1 + + - 56 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + 15 + + 75 + + 12 - ( - 49 ) - - + COUNT( + 43 ) * 23 * + CASE COUNT( * ) WHEN - - 61 THEN + 16 END * 30 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT + 15 + + 75 + + 12 - ( - 49 ) - - + COUNT ( + 43 ) * 23 * + CASE COUNT ( * ) WHEN - - 61 THEN + 16 END * 30 + 89 AS col0
----
NULL

query I rowsort
SELECT ALL + 62 + - 19 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - - SUM( DISTINCT - 51 ) + - - 9 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-403
SELECT - - SUM ( DISTINCT - 51 ) + - - 9 AS col1
----
-42

query II rowsort
SELECT 70 AS col2, 41 * - ( - + 9 ) * - 30
----
70
-11070

query II rowsort
SELECT ALL + 86, + 97 AS col0
----
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL + 38 * ( CASE - 6 WHEN + 70 THEN - 36 ELSE NULL END ) + 69 * - ( + NULLIF ( + AVG ( 49 ), + COUNT( DISTINCT - 96 ) * + 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL + 38 * ( CASE - 6 WHEN + 70 THEN - 36 ELSE NULL END ) + 69 * - ( + NULLIF ( + AVG ( 49 ), + COUNT ( DISTINCT - 96 ) * + 76 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL 89 * - - MAX( DISTINCT 17 ) + - 34 + - + 2 AS col0
----
1477

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL 89 * - - MAX ( DISTINCT 17 ) + - 34 + - + 2 AS col0
----
1477

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT 5 DIV + 65 + 99
----
99

skipif mysql # not compatible
query I rowsort label-408
SELECT 5 / + 65 + 99
----
99

query I rowsort
SELECT + NULLIF ( 84, 8 )
----
84

query I rowsort
SELECT DISTINCT 85 * + - ( - 40 ) AS col0
----
3400

onlyif mysql # DIV for integer division: 
query III rowsort label-411
SELECT ALL - 81 * ( - + 55 ) - - 55 DIV - 84 col2, + 66 - + + 54, + - 25 * - 16 AS col1
----
4455
12
400

skipif mysql # not compatible
query III rowsort label-411
SELECT ALL - 81 * ( - + 55 ) - - 55 / - 84 col2, + 66 - + + 54, + - 25 * - 16 AS col1
----
4455
12
400

query I rowsort
SELECT 79 * 11 + + - 73 AS col0
----
796

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT + 26 DIV 96 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT + 26 / 96 / 91 AS col1
----
0

query I rowsort
SELECT + 31 * + + 26
----
806

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

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

query II rowsort
SELECT + 2 * 8 col1, + 39
----
16
39

query I rowsort
SELECT 6 * - + 98 + 82 AS col1
----
-506

query I rowsort
SELECT + 72 * - 60
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT + 89 + - - ( CASE + - 28 WHEN + COUNT( * ) / - 46 / - ( - 25 ) + 4 + - - 77 THEN - + 63 ELSE CASE - ( + 77 ) WHEN - ( + 47 ) THEN + 46 END * 47 END ) + 28 * 7 * CAST( + 57 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT + 89 + - - ( CASE + - 28 WHEN + COUNT ( * ) / - 46 / - ( - 25 ) + 4 + - - 77 THEN - + 63 ELSE CASE - ( + 77 ) WHEN - ( + 47 ) THEN + 46 END * 47 END ) + 28 * 7 * CAST ( + 57 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - + 47, - 4 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-421
SELECT + 55 * COUNT( * ) + - CAST( + 8 AS SIGNED ) + 52, 84 AS col1
----
99
84

skipif mysql # not compatible
query II rowsort label-421
SELECT + 55 * COUNT ( * ) + - CAST ( + 8 AS INTEGER ) + 52, 84 AS col1
----
99
84

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL 30 * + 9 * - - 70 * 82 * 84 AS col0, CASE - 98 WHEN - COUNT( * ) THEN NULL WHEN + 46 THEN - 56 ELSE NULL END AS col1
----
130183200
NULL

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL 30 * + 9 * - - 70 * 82 * 84 AS col0, CASE - 98 WHEN - COUNT ( * ) THEN NULL WHEN + 46 THEN - 56 ELSE NULL END AS col1
----
130183200
NULL

query I rowsort
SELECT + 36 * 58
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 53 + 32 DIV 64 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-424
SELECT + 53 + 32 / 64 AS col0
----
53

query I rowsort
SELECT - 6 + - 9 + 61 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT + + COUNT( * ) * 36 AS col2, 51 col1
----
36
51

skipif mysql # not compatible
query II rowsort label-426
SELECT + + COUNT ( * ) * 36 AS col2, 51 col1
----
36
51

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - MIN( + 42 ) + - 62 + + MAX( DISTINCT + - 96 ) AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-427
SELECT - MIN ( + 42 ) + - 62 + + MAX ( DISTINCT + - 96 ) AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT + 24 + + NULLIF ( 37, - 97 / 27 * + COUNT( * ) * + 54 )
----
61

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + 24 + + NULLIF ( 37, - 97 / 27 * + COUNT ( * ) * + 54 )
----
61

query I rowsort
SELECT DISTINCT - 61 * 92 AS col0
----
-5612

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT - - 22 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT - - 22 / - - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - + 5 + - + SUM( ALL ( 86 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-432
SELECT - + 5 + - + SUM ( ALL ( 86 ) ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL - + MIN( ALL + CAST( + 18 AS SIGNED ) ) * + + 55 AS col1
----
-990

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - + MIN ( ALL + CAST ( + 18 AS INTEGER ) ) * + + 55 AS col1
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - + 36 * 64 * + 19 - - 26 + COUNT( * )
----
-43749

skipif mysql # not compatible
query I rowsort label-434
SELECT - + 36 * 64 * + 19 - - 26 + COUNT ( * )
----
-43749

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT - - SUM( DISTINCT 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-435
SELECT - - SUM ( DISTINCT 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT ALL + - 41 + + CASE - - 16 WHEN + + 75 * - + 26 * CAST( + + 70 AS SIGNED ) + + 74 + - 65 * + 93 - + 5 + COUNT( * ) THEN - 91 ELSE 79 * 75 END + + 92 * 73 AS col1
----
12600

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL + - 41 + + CASE - - 16 WHEN + + 75 * - + 26 * CAST ( + + 70 AS INTEGER ) + + 74 + - 65 * + 93 - + 5 + COUNT ( * ) THEN - 91 ELSE 79 * 75 END + + 92 * 73 AS col1
----
12600

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT MAX( ALL + ( + 80 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT MAX ( ALL + ( + 80 ) ) AS col1
----
80

query II rowsort
SELECT DISTINCT - 92 + + 32 * + NULLIF ( - 87, 28 ) + - + 1 AS col0, + 65 + - 79
----
-2877
-14

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

skipif mysql # not compatible
query I rowsort label-439
SELECT - 50 * COUNT ( * )
----
-50

query I rowsort
SELECT + 56 * 18 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - 26 - - SUM( - - 67 ) + 79 + - 60 * + 43 + 79
----
-2381

skipif mysql # not compatible
query I rowsort label-441
SELECT - 26 - - SUM ( - - 67 ) + 79 + - 60 * + 43 + 79
----
-2381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT ALL MIN( ALL 73 ) DIV - 84 - - + 42 * 27 DIV + COALESCE ( + - 72, 60 * + COUNT( + - 35 ), 61 ) * + COUNT( * ) + + 40 col2
----
25

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL MIN ( ALL 73 ) / - 84 - - + 42 * 27 / + COALESCE ( + - 72, 60 * + COUNT ( + - 35 ), 61 ) * + COUNT ( * ) + + 40 col2
----
25

query I rowsort
SELECT 11 * - 10 * 84 + 94 AS col2
----
-9146

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - 20 * CASE ( + COUNT( DISTINCT + 28 ) ) WHEN 73 * + - COUNT( * ) + - - COUNT( * ) / + COUNT( * ) * COUNT( * ) * - 52 THEN - 16 * 90 * 51 + ( 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT - 20 * CASE ( + COUNT ( DISTINCT + 28 ) ) WHEN 73 * + - COUNT ( * ) + - - COUNT ( * ) / + COUNT ( * ) * COUNT ( * ) * - 52 THEN - 16 * 90 * 51 + ( 98 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT ALL ( - 90 ) DIV ( - ( + 50 ) ) - 95 - - COUNT( * ) + 39
----
-54

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL ( - 90 ) / ( - ( + 50 ) ) - 95 - - COUNT ( * ) + 39
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT + SUM( - 78 ) DIV 43 * + + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-446
SELECT + SUM ( - 78 ) / 43 * + + 20 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT DISTINCT CASE - 18 WHEN - 31 * - 58 THEN 41 + 23 WHEN + 95 + + COUNT( * ) + - 85 * + COUNT( * ) * + 95 THEN - - CAST( NULL AS SIGNED ) ELSE 17 * - 30 + 99 * - COUNT( - 9 + + 18 * 94 ) END * - 21 AS col2
----
12789

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT CASE - 18 WHEN - 31 * - 58 THEN 41 + 23 WHEN + 95 + + COUNT ( * ) + - 85 * + COUNT ( * ) * + 95 THEN - - CAST ( NULL AS INTEGER ) ELSE 17 * - 30 + 99 * - COUNT ( - 9 + + 18 * 94 ) END * - 21 AS col2
----
12789

query I rowsort
SELECT + 51 * - 12 + + 26 + + - ( - - COALESCE ( - + 78, + 82 ) ) + 74 * - 96 * 22 AS col0
----
-156796

query I rowsort
SELECT 51 + + ( + + 47 ) AS col2
----
98

query I rowsort
SELECT DISTINCT 83 + + 90 * + + 46
----
4223

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 46 - + 27 DIV - 38 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-451
SELECT 46 - + 27 / - 38 AS col1
----
46

query I rowsort
SELECT ALL + 56 + 4 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + + MIN( DISTINCT 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-453
SELECT + + MIN ( DISTINCT 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - NULLIF ( + 26, + COUNT( * ) * - - 20 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-454
SELECT - NULLIF ( + 26, + COUNT ( * ) * - - 20 ) AS col1
----
-26

query I rowsort
SELECT ALL + - 94 + + NULLIF ( - + 9, - + 86 )
----
-103

query I rowsort
SELECT ALL + 95 + 39 AS col0
----
134

query II rowsort
SELECT 2 * - + 0 * - 23 + - 68 - + - 52, - 54 AS col2
----
-16
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-459
SELECT DISTINCT CASE - COUNT( * ) WHEN - NULLIF ( 11, - 15 DIV - + 52 ) + COUNT( * ) THEN - COUNT( * ) DIV - + 42 WHEN + 43 * - 96 * + + COALESCE ( + 93, - + 60, + 78 ) * - ( 69 ) + + 53 THEN - 49 DIV 43 ELSE 31 + - 86 END * MIN( 30 + - 22 ) AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT CASE - COUNT ( * ) WHEN - NULLIF ( 11, - 15 / - + 52 ) + COUNT ( * ) THEN - COUNT ( * ) / - + 42 WHEN + 43 * - 96 * + + COALESCE ( + 93, - + 60, + 78 ) * - ( 69 ) + + 53 THEN - 49 / 43 ELSE 31 + - 86 END * MIN ( 30 + - 22 ) AS col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-460
SELECT 36 + - COALESCE ( 52, + - 46 DIV - COUNT( * ) * - COUNT( - 80 ) + + 89 - COUNT( * ) * COALESCE ( 98, 0 * - 6 * + 22 + CAST( NULL AS SIGNED ) ) + + MAX( 64 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-460
SELECT 36 + - COALESCE ( 52, + - 46 / - COUNT ( * ) * - COUNT ( - 80 ) + + 89 - COUNT ( * ) * COALESCE ( 98, 0 * - 6 * + 22 + CAST ( NULL AS INTEGER ) ) + + MAX ( 64 ) )
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-461
SELECT ALL 80 * - + CAST( NULL AS DECIMAL ) * - + 54 * + 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL 80 * - + CAST ( NULL AS REAL ) * - + 54 * + 6 col2
----
NULL

query I rowsort
SELECT 82 + - 15 col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT 25 * + COUNT( * ) + + 69 - - COUNT( * ) + + - 70 + - - 89 - 3 * + 65 * 21 * + + 59 + 3 * + + 93 + + ( + NULLIF ( + MIN( ALL - 39 ), - SUM( - 71 ) ) ) + + 47 DIV - COUNT( * ) AS col0
----
-241298

skipif mysql # not compatible
query I rowsort label-463
SELECT 25 * + COUNT ( * ) + + 69 - - COUNT ( * ) + + - 70 + - - 89 - 3 * + 65 * 21 * + + 59 + 3 * + + 93 + + ( + NULLIF ( + MIN ( ALL - 39 ), - SUM ( - 71 ) ) ) + + 47 / - COUNT ( * ) AS col0
----
-241298

query I rowsort
SELECT DISTINCT + 43 * - - 12 AS col1
----
516

query I rowsort
SELECT ALL - 79 + + + 94
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - ( - - COUNT( * ) ) - COUNT( * ) - 25 + + 4 * + + 62 * - 7
----
-1763

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - ( - - COUNT ( * ) ) - COUNT ( * ) - 25 + + 4 * + + 62 * - 7
----
-1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT 36 + + COALESCE ( + COUNT( * ), - COALESCE ( 54, - CAST( - AVG ( ( + 26 ) ) AS SIGNED ) + - 7 ) )
----
37

skipif mysql # not compatible
query I rowsort label-467
SELECT 36 + + COALESCE ( + COUNT ( * ), - COALESCE ( 54, - CAST ( - AVG ( ( + 26 ) ) AS INTEGER ) + - 7 ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-468
SELECT CAST( NULL AS SIGNED ) + + + 71 AS col2, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-468
SELECT CAST ( NULL AS INTEGER ) + + + 71 AS col2, - 43
----
NULL
-43

query I rowsort
SELECT 43 * + 41 AS col2
----
1763

query I rowsort
SELECT 17 + 3 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT 52 * 71 * COUNT( * ) * - ( + 5 ) AS col2
----
-18460

skipif mysql # not compatible
query I rowsort label-471
SELECT 52 * 71 * COUNT ( * ) * - ( + 5 ) AS col2
----
-18460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT - CASE - - 7 WHEN + COUNT( ALL - - 48 ) THEN 87 END * 46 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - CASE - - 7 WHEN + COUNT ( ALL - - 48 ) THEN 87 END * 46 * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL - 43 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL - 43 * COUNT ( * )
----
-43

query I rowsort
SELECT ALL - ( COALESCE ( + 70, + ( - 37 ) * 83 * + 64 ) )
----
-70

query II rowsort
SELECT ALL - 22 col1, 83 * + + 74 col1
----
-22
6142

onlyif mysql # DIV for integer division: 
query II rowsort label-477
SELECT DISTINCT - 93 AS col2, - 93 - - 78 DIV 24 AS col1
----
-93
-90

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT - 93 AS col2, - 93 - - 78 / 24 AS col1
----
-93
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT 32 * - COUNT( * ) AS col0, 70 + - - SUM( - - 15 ) col0
----
-32
85

skipif mysql # not compatible
query II rowsort label-478
SELECT 32 * - COUNT ( * ) AS col0, 70 + - - SUM ( - - 15 ) col0
----
-32
85

query II rowsort
SELECT 67 * + 92, + 82 AS col2
----
6164
82

query I rowsort
SELECT 71 + - 55 + + 18
----
34

query I rowsort
SELECT DISTINCT - COALESCE ( 15, 43 * - - 70 * - + 68 + - + 76 - + 64 * 45 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + 47 * COALESCE ( + 97, - 25, - + SUM( DISTINCT + + 61 ) ) + - 74 AS col1
----
4485

skipif mysql # not compatible
query I rowsort label-482
SELECT + 47 * COALESCE ( + 97, - 25, - + SUM ( DISTINCT + + 61 ) ) + - 74 AS col1
----
4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT - CASE + CAST( - 21 AS SIGNED ) WHEN 36 THEN NULL ELSE + + 59 * - 17 * ( + COUNT( * ) ) END col2
----
1003

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT - CASE + CAST ( - 21 AS INTEGER ) WHEN 36 THEN NULL ELSE + + 59 * - 17 * ( + COUNT ( * ) ) END col2
----
1003

query I rowsort
SELECT ALL - 71 + 70 - - 92
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL COUNT( + + 25 ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL COUNT ( + + 25 ) + + COUNT ( * ) col0
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT DISTINCT - - 87 + COUNT( ALL - CAST( NULL AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT - - 87 + COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
87

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

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

query I rowsort
SELECT - 54 + 59 + - ( 10 ) AS col1
----
-5

query I rowsort
SELECT DISTINCT - 24 + - 16
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT - + COUNT( * ) * + 10 + + 0 + - 46 + - COUNT( - + 76 ) + - - 86 + - 4
----
25

skipif mysql # not compatible
query I rowsort label-492
SELECT - + COUNT ( * ) * + 10 + + 0 + - 46 + - COUNT ( - + 76 ) + - - 86 + - 4
----
25

query II rowsort
SELECT - 19 AS col2, 5 col2
----
-19
5

query I rowsort
SELECT - 21 * + 19
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT DISTINCT 69 + SUM( - + ( - + 23 ) ) + - 73
----
19

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT 69 + SUM ( - + ( - + 23 ) ) + - 73
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT - 83 + + - 95 * - + MAX( ALL 83 ) - + 32 AS col2
----
7770

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - 83 + + - 95 * - + MAX ( ALL 83 ) - + 32 AS col2
----
7770

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

onlyif mysql # DIV for integer division: 
query III rowsort label-498
SELECT ALL - 86, + ( + 93 ) DIV + 86 AS col1, - 73 AS col1
----
-86
1
-73

skipif mysql # not compatible
query III rowsort label-498
SELECT ALL - 86, + ( + 93 ) / + 86 AS col1, - 73 AS col1
----
-86
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT SUM( ALL 39 ) * + 63
----
2457

skipif mysql # not compatible
query I rowsort label-499
SELECT SUM ( ALL 39 ) * + 63
----
2457

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

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

query I rowsort
SELECT ALL ( ( - + 14 ) ) - ( - 71 )
----
57

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

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

query I rowsort
SELECT ALL ( + 64 ) * - 26 AS col2
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 52 + - MIN( NULLIF ( 49, 1 + + - 51 ) )
----
3

skipif mysql # not compatible
query I rowsort label-504
SELECT 52 + - MIN ( NULLIF ( 49, 1 + + - 51 ) )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-505
SELECT CAST( NULL AS DECIMAL ) * - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT CAST ( NULL AS REAL ) * - ( 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL + 84 DIV - 68 col2
----
-1

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + 84 / - 68 col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - 66 DIV + 2 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-508
SELECT - 66 / + 2 AS col2
----
-33

query I rowsort
SELECT + 37 - 43
----
-6

query I rowsort
SELECT ALL + 12 * - 74
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT + 94 * COALESCE ( MAX( - 90 ), + + 12 * 66 ) * - - COUNT( * )
----
-8460

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT + 94 * COALESCE ( MAX ( - 90 ), + + 12 * 66 ) * - - COUNT ( * )
----
-8460

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL COUNT( * ) * ( + 36 ) + - 43
----
-7

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL COUNT ( * ) * ( + 36 ) + - 43
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT - CAST( NULL AS SIGNED ) * + + CASE + 71 WHEN + 80 THEN ( - - 26 ) WHEN + 54 / + 40 - - ( 53 ) * - MIN( - 25 ) THEN NULL WHEN + - 59 THEN - 74 END * + COALESCE ( - + 67, + 2 * - 54, + 99 ) + 0 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT - CAST ( NULL AS INTEGER ) * + + CASE + 71 WHEN + 80 THEN ( - - 26 ) WHEN + 54 / + 40 - - ( 53 ) * - MIN ( - 25 ) THEN NULL WHEN + - 59 THEN - 74 END * + COALESCE ( - + 67, + 2 * - 54, + 99 ) + 0 * 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 1 * + NULLIF ( + 5, COUNT( + + ( + 8 ) ) ) * + 79 - 32 * 65
----
-1685

skipif mysql # not compatible
query I rowsort label-514
SELECT 1 * + NULLIF ( + 5, COUNT ( + + ( + 8 ) ) ) * + 79 - 32 * 65
----
-1685

query I rowsort
SELECT - 9 + + 87 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT DISTINCT - - 26 * - CASE - 34 WHEN - 63 THEN + + 98 * 57 - - SUM( DISTINCT CAST( + 92 AS SIGNED ) ) ELSE 49 END * - MAX( + 91 ) * - - CAST( NULL AS SIGNED ) + ( + + 27 ) / + CAST( NULL AS SIGNED ) * + 97 + 66 / 87 - + 63 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - - 26 * - CASE - 34 WHEN - 63 THEN + + 98 * 57 - - SUM ( DISTINCT CAST ( + 92 AS INTEGER ) ) ELSE 49 END * - MAX ( + 91 ) * - - CAST ( NULL AS INTEGER ) + ( + + 27 ) / + CAST ( NULL AS INTEGER ) * + 97 + 66 / 87 - + 63 * - 82
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-518
SELECT ALL 68 * 1 / - 41 * + CASE + 85 WHEN + ( + 67 ) * - + CAST( NULL AS DECIMAL ) * - 84 THEN NULL ELSE + CASE - NULLIF ( + SUM( DISTINCT + 22 ), + 36 ) WHEN + + 12 THEN - 54 ELSE NULL END END + + 12 + + 11 * - 94 - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 68 * 1 / - 41 * + CASE + 85 WHEN + ( + 67 ) * - + CAST ( NULL AS REAL ) * - 84 THEN NULL ELSE + CASE - NULLIF ( + SUM ( DISTINCT + 22 ), + 36 ) WHEN + + 12 THEN - 54 ELSE NULL END END + + 12 + + 11 * - 94 - 67
----
NULL

query I rowsort
SELECT + + NULLIF ( + 85, + 75 * 91 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) + - - 17 * + + 39 AS col0
----
662

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) + - - 17 * + + 39 AS col0
----
662

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - - 97 + + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-521
SELECT - - 97 + + + COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT - 25 / + 94 * + NULLIF ( + CAST( NULL AS SIGNED ), + ( + + COALESCE ( + 78, - + SUM( + 94 ), - + 29 * + 5 + - - ( ( - 3 ) ) + 31 * + 81 ) ) ) + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT - 25 / + 94 * + NULLIF ( + CAST ( NULL AS INTEGER ), + ( + + COALESCE ( + 78, - + SUM ( + 94 ), - + 29 * + 5 + - - ( ( - 3 ) ) + 31 * + 81 ) ) ) + - 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + MAX( ALL + + 78 ) * - 28 * - ( - - 45 ) AS col0
----
98280

skipif mysql # not compatible
query I rowsort label-523
SELECT + MAX ( ALL + + 78 ) * - 28 * - ( - - 45 ) AS col0
----
98280

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT + + 16 - - - 13 + 59 + 52 DIV - COUNT( ALL + - 57 ) + + ( - - 89 )
----
99

skipif mysql # not compatible
query I rowsort label-525
SELECT + + 16 - - - 13 + 59 + 52 / - COUNT ( ALL + - 57 ) + + ( - - 89 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - - 47 + COUNT( * ) * + ( 84 )
----
131

skipif mysql # not compatible
query I rowsort label-526
SELECT - - 47 + COUNT ( * ) * + ( 84 )
----
131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-527
SELECT + COUNT( ALL CAST( NULL AS DECIMAL ) ) * 52
----
0

skipif mysql # not compatible
query I rowsort label-527
SELECT + COUNT ( ALL CAST ( NULL AS REAL ) ) * 52
----
0

query II rowsort
SELECT ALL 87 AS col1, 24 AS col2
----
87
24

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

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

query I rowsort
SELECT + ( + 19 ) + + ( + 13 ) + 17 * + 84 * - - 6 * ( - 37 )
----
-316984

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

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

query II rowsort
SELECT 90 AS col1, + 92 AS col0
----
90
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT + COUNT( * ) + + ( + - 40 ) + - CASE - + CAST( NULL AS SIGNED ) WHEN + 14 THEN + CASE + 98 WHEN 45 / + - COUNT( * ) THEN NULL ELSE - + 54 END + COALESCE ( + + COUNT( DISTINCT + + 78 ), ( - 66 ) * 99 * + 5 + ( - 54 ) ) ELSE 47 END * 78 col1
----
-3705

skipif mysql # not compatible
query I rowsort label-533
SELECT + COUNT ( * ) + + ( + - 40 ) + - CASE - + CAST ( NULL AS INTEGER ) WHEN + 14 THEN + CASE + 98 WHEN 45 / + - COUNT ( * ) THEN NULL ELSE - + 54 END + COALESCE ( + + COUNT ( DISTINCT + + 78 ), ( - 66 ) * 99 * + 5 + ( - 54 ) ) ELSE 47 END * 78 col1
----
-3705

query I rowsort
SELECT + 13 + 79 + - - 58 + - + NULLIF ( - - 61, + 25 + - NULLIF ( - 91, + + 1 ) ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT + COALESCE ( - 2, - 64, + CAST( + 45 AS SIGNED ) - + 46 ) + + + 98 col1
----
96

skipif mysql # not compatible
query I rowsort label-535
SELECT + COALESCE ( - 2, - 64, + CAST ( + 45 AS INTEGER ) - + 46 ) + + + 98 col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT CAST( - 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-536
SELECT CAST ( - 28 AS INTEGER ) AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL + 97 DIV - - 56 + 50
----
51

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + 97 / - - 56 + 50
----
51

query II rowsort
SELECT ALL + 22 AS col0, 42
----
22
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT - ( CASE - CASE ( - ( - - 65 ) ) WHEN - CASE - 77 WHEN + COUNT( * ) + + + 83 * + - 17 THEN 27 * + 56 * - 57 + + 98 WHEN 75 - + 82 + - - 67 THEN NULL END THEN 27 * + 66 WHEN + 20 THEN NULL END WHEN - COUNT( * ) THEN NULL WHEN 57 - + 18 THEN 67 ELSE 14 DIV - 94 END ) + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-539
SELECT - ( CASE - CASE ( - ( - - 65 ) ) WHEN - CASE - 77 WHEN + COUNT ( * ) + + + 83 * + - 17 THEN 27 * + 56 * - 57 + + 98 WHEN 75 - + 82 + - - 67 THEN NULL END THEN 27 * + 66 WHEN + 20 THEN NULL END WHEN - COUNT ( * ) THEN NULL WHEN 57 - + 18 THEN 67 ELSE 14 / - 94 END ) + 49 AS col2
----
49

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

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

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

query I rowsort
SELECT + - 44 * + 84 * + 48 * - 45 * 24
----
191600640

query I rowsort
SELECT - - 39 * + 40 + - - 85 AS col2
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT + + CASE 26 WHEN + COUNT( * ) * 88 THEN NULL ELSE ( - CASE 72 WHEN + 99 + + ( - 57 ) THEN + 0 END ) * 10 - - 66 * - - 20 - - ( + - 75 ) + - MIN( - 21 ) END * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT + + CASE 26 WHEN + COUNT ( * ) * 88 THEN NULL ELSE ( - CASE 72 WHEN + 99 + + ( - 57 ) THEN + 0 END ) * 10 - - 66 * - - 20 - - ( + - 75 ) + - MIN ( - 21 ) END * - 47
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT - 16 * + + COUNT( DISTINCT + 5 ) * + 70 + 98 + - 59 * - + 19
----
99

skipif mysql # not compatible
query I rowsort label-547
SELECT - 16 * + + COUNT ( DISTINCT + 5 ) * + 70 + 98 + - 59 * - + 19
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT ALL ( + - 49 ) DIV COUNT( * ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL ( + - 49 ) / COUNT ( * ) col1
----
-49

query I rowsort
SELECT - 30 * - 43 * - - NULLIF ( + 74, - 75 * - 54 - 38 * - + 78 * - + 89 * + + 35 ) col2
----
95460

query I rowsort
SELECT - - 87 + CASE WHEN NOT + 37 >= NULL THEN 74 + + CASE + NULLIF ( - 30, 3 ) WHEN - 98 * - + AVG ( 74 ) * + 11 + + 0 * - 76 * - 44 / 44 THEN 45 ELSE NULL END + 72 END / COALESCE ( - 15, 33 ) AS col1
----
NULL

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

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

query II rowsort
SELECT - + 80 * 80 + - + ( - - 67 ) AS col2, ( - 97 ) AS col0
----
-6467
-97

query I rowsort
SELECT + 96 * - 29 AS col1
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL + NULLIF ( 50, + CAST( COUNT( * ) AS SIGNED ) / 45 / - 76 + - 60 )
----
50

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + NULLIF ( 50, + CAST ( COUNT ( * ) AS INTEGER ) / 45 / - 76 + - 60 )
----
50

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

query II rowsort
SELECT DISTINCT - 8 col2, + ( - 52 ) col0
----
-8
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT 93 * CAST( - 1 AS SIGNED ) - + 17
----
-110

skipif mysql # not compatible
query I rowsort label-557
SELECT 93 * CAST ( - 1 AS INTEGER ) - + 17
----
-110

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

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

query II rowsort
SELECT DISTINCT ( + 15 ) AS col0, + 81
----
15
81

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT - 56 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-560
SELECT - 56 / - 50
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT ALL ( 50 ) * + COUNT( * ) + - + 28, 9 AS col0
----
22
9

skipif mysql # not compatible
query II rowsort label-561
SELECT ALL ( 50 ) * + COUNT ( * ) + - + 28, 9 AS col0
----
22
9

query II rowsort
SELECT - 73 * 92 AS col2, 11 * + 86
----
-6716
946

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL - ( 81 ) DIV + 59
----
-1

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - ( 81 ) / + 59
----
-1

query I rowsort
SELECT DISTINCT + 39 + 73
----
112

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-566
SELECT DISTINCT 66 + - 27 AS col0, CAST( 19 AS SIGNED ) - + ( + - 50 )
----
39
69

skipif mysql # not compatible
query II rowsort label-566
SELECT DISTINCT 66 + - 27 AS col0, CAST ( 19 AS INTEGER ) - + ( + - 50 )
----
39
69

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT 61 DIV - 95 * 76
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT 61 / - 95 * 76
----
0

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

query I rowsort
SELECT DISTINCT + 67 + + 63 + + 22
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL MAX( + 54 ) + + 22
----
76

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL MAX ( + 54 ) + + 22
----
76

query I rowsort
SELECT 60 + + 11 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL COUNT( * ) - - - COALESCE ( + + 61, - 94 * + 42, + 24 ) - + 52
----
-112

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL COUNT ( * ) - - - COALESCE ( + + 61, - 94 * + 42, + 24 ) - + 52
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT MAX( DISTINCT - 75 ) + - 57 + 25, 41 + 79 AS col1
----
-107
120

skipif mysql # not compatible
query II rowsort label-573
SELECT MAX ( DISTINCT - 75 ) + - 57 + 25, 41 + 79 AS col1
----
-107
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-574
SELECT - COUNT( * ) * + + NULLIF ( + 32, + 68 ) AS col2, 17 DIV - 32
----
-32
0

skipif mysql # not compatible
query II rowsort label-574
SELECT - COUNT ( * ) * + + NULLIF ( + 32, + 68 ) AS col2, 17 / - 32
----
-32
0

query I rowsort
SELECT DISTINCT - - COALESCE ( - 35, - 58 + 34 ) * - + 95 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT ALL MIN( ALL + 2 ) * - 90 + - 47 + 34 + + 0 DIV ( - COUNT( * ) ) * - 56 * 50 + COALESCE ( - 39, - - 72 * - 38 + + + 96 - - + 77 DIV - + 64 + + - 58 - - 24, 37 ) + + 22
----
-210

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL MIN ( ALL + 2 ) * - 90 + - 47 + 34 + + 0 / ( - COUNT ( * ) ) * - 56 * 50 + COALESCE ( - 39, - - 72 * - 38 + + + 96 - - + 77 / - + 64 + + - 58 - - 24, 37 ) + + 22
----
-210

query I rowsort
SELECT ALL - - 58 col0
----
58

query I rowsort
SELECT 95 - + 14 - + 25
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-579
SELECT DISTINCT - + NULLIF ( - CAST( NULL AS SIGNED ), - 44 + + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT - + NULLIF ( - CAST ( NULL AS INTEGER ), - 44 + + 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-580
SELECT + 80 DIV + COUNT( * ) + + - 93
----
-13

skipif mysql # not compatible
query I rowsort label-580
SELECT + 80 / + COUNT ( * ) + + - 93
----
-13

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

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

query I rowsort
SELECT + 7 + + 78
----
85

query I rowsort
SELECT ALL + 11 * - + COALESCE ( - 91, - 9 )
----
1001

query I rowsort
SELECT - 16 * 8 - + 27
----
-155

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - 50 + + CAST( + 79 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - 50 + + CAST ( + 79 AS INTEGER )
----
29

query I rowsort
SELECT ALL 38 * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT ALL - COALESCE ( + 21, ( - 79 ), + COUNT( * ) * - COUNT( * ) + - 34 ) + - 82 col2, 94
----
-103
94

skipif mysql # not compatible
query II rowsort label-588
SELECT ALL - COALESCE ( + 21, ( - 79 ), + COUNT ( * ) * - COUNT ( * ) + - 34 ) + - 82 col2, 94
----
-103
94

query II rowsort
SELECT 23 AS col2, 10
----
23
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-590
SELECT ALL + 52 + - MIN( + COALESCE ( 49, + ( - CAST( NULL AS SIGNED ) ) ) ) + - 80 DIV 49 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + 52 + - MIN ( + COALESCE ( 49, + ( - CAST ( NULL AS INTEGER ) ) ) ) + - 80 / 49 AS col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT 87 - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-592
SELECT 87 - - COUNT ( * ) AS col0
----
88

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

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

query I rowsort
SELECT 70 + + ( 10 ) + 91
----
171

query II rowsort
SELECT 77 + + + CASE - 88 WHEN + + 43 THEN - 85 END, - 2 col2
----
NULL
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-596
SELECT 86 + - - 96 + + 70 DIV - 76 * - 70, ( + 39 ) AS col2
----
182
39

skipif mysql # not compatible
query II rowsort label-596
SELECT 86 + - - 96 + + 70 / - 76 * - 70, ( + 39 ) AS col2
----
182
39

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT 96 + + + COUNT( DISTINCT + 15 )
----
97

skipif mysql # not compatible
query I rowsort label-597
SELECT 96 + + + COUNT ( DISTINCT + 15 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL + 54 - - - ( + COUNT( * ) ) DIV + 19 * + 64 * 11 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL + 54 - - - ( + COUNT ( * ) ) / + 19 * + 64 * 11 AS col1
----
54

query I rowsort
SELECT 67 * 52
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 2 * + + MAX( DISTINCT + 39 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-600
SELECT 2 * + + MAX ( DISTINCT + 39 ) AS col0
----
78

query I rowsort
SELECT 5 + - + 44 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT + COUNT( * ) * - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + COUNT ( * ) * - + 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-603
SELECT COUNT( * ) + - 36 * - 20 * + - 96 * + - 47 AS col0, + AVG ( - CAST( NULL AS SIGNED ) ) * + + 66 * - 68
----
3248641
NULL

skipif mysql # not compatible
query II rowsort label-603
SELECT COUNT ( * ) + - 36 * - 20 * + - 96 * + - 47 AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) * + + 66 * - 68
----
3248641
NULL

query II rowsort
SELECT - 70 AS col0, + 70 col2
----
-70
70

query I rowsort
SELECT NULLIF ( + 88, + 49 ) + - + 21 AS col1
----
67

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

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

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

query I rowsort
SELECT ALL - + 36 * - + 46 * - 11
----
-18216

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 48 * + NULLIF ( + - 0, 98 - + + 48 + - 6 / - COUNT( DISTINCT - - 29 ) + + 93 + - 78 ) * 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-611
SELECT - 48 * + NULLIF ( + - 0, 98 - + + 48 + - 6 / - COUNT ( DISTINCT - - 29 ) + + 93 + - 78 ) * 6 AS col2
----
0

query I rowsort
SELECT - + 43 * + 46 + + ( + 28 ) * - 87 AS col1
----
-4414

query II rowsort
SELECT + + 32 AS col1, - 89 AS col1
----
32
-89

query I rowsort
SELECT ALL - - NULLIF ( + 2, 50 )
----
2

query I rowsort
SELECT ALL - - 57 * - 93 + + 71
----
-5230

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT CASE + SUM( ALL 64 ) WHEN - 71 + + 71 THEN - + 39 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT CASE + SUM ( ALL 64 ) WHEN - 71 + + 71 THEN - + 39 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL + 14 * 88 * + + 13 + - 20 * - MIN( ALL + + 74 ) + - ( + ( - - 58 ) ) + - 47 - - - COALESCE ( - 29, COUNT( + 39 ) * + ( + + COUNT( * ) ) + 72 + ( - 30 ) ) AS col1
----
17420

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + 14 * 88 * + + 13 + - 20 * - MIN ( ALL + + 74 ) + - ( + ( - - 58 ) ) + - 47 - - - COALESCE ( - 29, COUNT ( + 39 ) * + ( + + COUNT ( * ) ) + 72 + ( - 30 ) ) AS col1
----
17420

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL + SUM( DISTINCT - ( - 84 ) ) + + 18 + + + NULLIF ( - 9, + ( + - 15 ) ) * + + 78 AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + SUM ( DISTINCT - ( - 84 ) ) + + 18 + + + NULLIF ( - 9, + ( + - 15 ) ) * + + 78 AS col2
----
-600

query I rowsort
SELECT CASE + 59 WHEN 27 + + 50 + - 35 THEN - + 62 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT 2 + MAX( + CAST( NULL AS SIGNED ) ) - 82 / CAST( - 61 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT 2 + MAX ( + CAST ( NULL AS INTEGER ) ) - 82 / CAST ( - 61 AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT 97 AS col2, + CAST( - ( + 17 ) AS SIGNED )
----
97
-17

skipif mysql # not compatible
query II rowsort label-622
SELECT 97 AS col2, + CAST ( - ( + 17 ) AS INTEGER )
----
97
-17

query II rowsort
SELECT ALL + 0, - 59 * + 37 AS col2
----
0
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT MAX( - 68 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-624
SELECT MAX ( - 68 ) col2
----
-68

query I rowsort
SELECT 57 * - 45 + + ( + NULLIF ( + 54, 67 * - 41 * + ( - - 62 ) + 63 ) ) AS col0
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT 91 + - 31 + - 91 * - 23 + + 76 * - COUNT( * ) col2
----
2077

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT 91 + - 31 + - 91 * - 23 + + 76 * - COUNT ( * ) col2
----
2077

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

skipif mysql # not compatible
query I rowsort label-627
SELECT + COUNT ( * ) / 19 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT - COALESCE ( + 61, - 80 + + COUNT( * ) ) AS col0, - 46 + - 68
----
-61
-114

skipif mysql # not compatible
query II rowsort label-628
SELECT - COALESCE ( + 61, - 80 + + COUNT ( * ) ) AS col0, - 46 + - 68
----
-61
-114

query II rowsort
SELECT 87 AS col2, 72 * - + 98 * 12 - + ( + ( 61 ) )
----
87
-84733

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT MIN( ALL - - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT MIN ( ALL - - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT DISTINCT 83 * + COUNT( * ) AS col1, - ( + 22 ) AS col1
----
83
-22

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT 83 * + COUNT ( * ) AS col1, - ( + 22 ) AS col1
----
83
-22

query I rowsort
SELECT ALL 42 - + 95
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT - COALESCE ( CAST( + - 22 AS SIGNED ), - + 75 + 95 )
----
22

skipif mysql # not compatible
query I rowsort label-633
SELECT - COALESCE ( CAST ( + - 22 AS INTEGER ), - + 75 + 95 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - 30 * + - CASE COALESCE ( + 63, + COUNT( * ) ) WHEN - - 36 THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT - 30 * + - CASE COALESCE ( + 63, + COUNT ( * ) ) WHEN - - 36 THEN + 64 END
----
NULL

query I rowsort
SELECT - 94 * + 55 * - - 94 * - 87 AS col0
----
42280260

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT - - CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-637
SELECT - - CAST ( 77 AS INTEGER )
----
77

query II rowsort
SELECT ALL + 29 col1, 21
----
29
21

query II rowsort
SELECT DISTINCT + 60 AS col2, + 52 - + 0 + 88 AS col0
----
60
140

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + 35 DIV 97 * - 32 - - - 72 - - 78 * + ( + 26 ) * 29
----
58740

skipif mysql # not compatible
query I rowsort label-640
SELECT + 35 / 97 * - 32 - - - 72 - - 78 * + ( + 26 ) * 29
----
58740

query I rowsort
SELECT + + 46 + + + 88 AS col1
----
134

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-642
SELECT - 84 AS col0, + 53 / + - CAST( NULL AS DECIMAL )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-642
SELECT - 84 AS col0, + 53 / + - CAST ( NULL AS REAL )
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - 23 * - + COUNT( DISTINCT + 5 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-643
SELECT - 23 * - + COUNT ( DISTINCT + 5 ) col0
----
23

query I rowsort
SELECT - 62 + - 66
----
-128

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

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

query I rowsort
SELECT ALL + - 13 * - 82 + + 87
----
1153

query I rowsort
SELECT DISTINCT + + 67 * - 44
----
-2948

query I rowsort
SELECT ALL + + 81 * 50 + + - 41 AS col2
----
4009

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL 33 * COUNT( * ) + + 85 * - + 23
----
-1922

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL 33 * COUNT ( * ) + + 85 * - + 23
----
-1922

query II rowsort
SELECT ALL + 24 AS col0, + 63 + 91 AS col0
----
24
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT + + COUNT( * ) * + 63 * + CAST( + - 44 AS SIGNED ) + + + COUNT( * ) * - 24 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT + + COUNT ( * ) * + 63 * + CAST ( + - 44 AS INTEGER ) + + + COUNT ( * ) * - 24 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT + COUNT( * ) AS col0, + 99 + + 86 AS col2
----
1
185

skipif mysql # not compatible
query II rowsort label-652
SELECT + COUNT ( * ) AS col0, + 99 + + 86 AS col2
----
1
185

query I rowsort
SELECT ALL + 31 * + - 20 + + + 9 * + 35 + 68 AS col0
----
-237

query II rowsort
SELECT + 64 AS col1, - 82 AS col1
----
64
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-655
SELECT NULLIF ( - CAST( - 46 AS SIGNED ), - 11 + COUNT( * ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-655
SELECT NULLIF ( - CAST ( - 46 AS INTEGER ), - 11 + COUNT ( * ) ) AS col1
----
46

query I rowsort
SELECT NULLIF ( 85, + 68 ) AS col1
----
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT ALL 4 * 26 - + - COUNT( DISTINCT + 54 ) - 74 col2, - COUNT( * )
----
31
-1

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL 4 * 26 - + - COUNT ( DISTINCT + 54 ) - 74 col2, - COUNT ( * )
----
31
-1

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

skipif mysql # not compatible
query I rowsort label-659
SELECT + CAST ( NULL AS REAL ) * + 43 AS col2
----
NULL

query I rowsort
SELECT ALL + 62 * 13 AS col1
----
806

query I rowsort
SELECT - 31 + - + 12 + 80
----
37

query I rowsort
SELECT + 7 * - - 67
----
469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT 36 DIV 17 * - ( - COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT 36 / 17 * - ( - COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT + 77 + - COUNT( * ) * 72 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-664
SELECT + 77 + - COUNT ( * ) * 72 AS col1
----
5

query I rowsort
SELECT ALL 89 * - 33 AS col1
----
-2937

query I rowsort
SELECT + 71 + 18 + + 93 AS col0
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT + 29 DIV 98 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-667
SELECT + 29 / 98 * - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-668
SELECT ALL 41 * + 19 * - 94 + ( - + 32 ) * - 37 * COUNT( * ) * + + 57 * - + CASE - + COUNT( * ) WHEN SUM( ALL - - 54 ) / + COALESCE ( 43, 30 / + 37 ) THEN 53 + COUNT( * ) END * ( + + CAST( - 96 AS SIGNED ) ) + CAST( - 2 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 41 * + 19 * - 94 + ( - + 32 ) * - 37 * COUNT ( * ) * + + 57 * - + CASE - + COUNT ( * ) WHEN SUM ( ALL - - 54 ) / + COALESCE ( 43, 30 / + 37 ) THEN 53 + COUNT ( * ) END * ( + + CAST ( - 96 AS INTEGER ) ) + CAST ( - 2 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT DISTINCT - ( 23 ), - 93 * - SUM( ALL 31 ) AS col2
----
-23
2883

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT - ( 23 ), - 93 * - SUM ( ALL 31 ) AS col2
----
-23
2883

query I rowsort
SELECT ALL 50 * - 51 + 81 + - 9
----
-2478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + - 34 DIV - MAX( + - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT + - 34 / - MAX ( + - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + 24 * + CASE + - ( 33 ) WHEN - 75 THEN + 8 * - 44 * + 71 WHEN + 1 * - + 14 + - - COUNT( * ) * 20 + + - CASE + - 69 WHEN + 32 * + 88 THEN + 73 END + - 75 THEN NULL END + + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT + 24 * + CASE + - ( 33 ) WHEN - 75 THEN + 8 * - 44 * + 71 WHEN + 1 * - + 14 + - - COUNT ( * ) * 20 + + - CASE + - 69 WHEN + 32 * + 88 THEN + 73 END + - 75 THEN NULL END + + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - 94 + COUNT( * ) * - ( 27 ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-673
SELECT - 94 + COUNT ( * ) * - ( 27 ) AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT SUM( - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-674
SELECT SUM ( - 39 ) AS col2
----
-39

query I rowsort
SELECT ALL COALESCE ( + + 24, + 36 )
----
24

query I rowsort
SELECT ALL + + 94 + + + 12
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT + + 9 * + 95 AS col0, NULLIF ( - 87, + + CAST( 32 AS SIGNED ) ) AS col1
----
855
-87

skipif mysql # not compatible
query II rowsort label-677
SELECT + + 9 * + 95 AS col0, NULLIF ( - 87, + + CAST ( 32 AS INTEGER ) ) AS col1
----
855
-87

query I rowsort
SELECT - + 4 + 69
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-679
SELECT DISTINCT + 82 + + 35 AS col2, 61 DIV + 82
----
117
0

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT + 82 + + 35 AS col2, 61 / + 82
----
117
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT ALL - + 37 DIV COUNT( * ) + + + 57 col2
----
20

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL - + 37 / COUNT ( * ) + + + 57 col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL - 32 * + - 24 * 11 - - - COALESCE ( - 62, COUNT( * ), + + 58 * - 44 + - 69 * - 63 + + - CASE - 52 WHEN + 98 THEN - - 14 * - 90 ELSE NULL END * 0 - + COUNT( * ) - + 27 ), 26 AS col2
----
8510
26

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL - 32 * + - 24 * 11 - - - COALESCE ( - 62, COUNT ( * ), + + 58 * - 44 + - 69 * - 63 + + - CASE - 52 WHEN + 98 THEN - - 14 * - 90 ELSE NULL END * 0 - + COUNT ( * ) - + 27 ), 26 AS col2
----
8510
26

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - 21 + - 74 * 31 DIV 86 - - 62 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - 21 + - 74 * 31 / 86 - - 62 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT SUM( ALL + 54 ) AS col0, 16
----
54
16

skipif mysql # not compatible
query II rowsort label-683
SELECT SUM ( ALL + 54 ) AS col0, 16
----
54
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT + + NULLIF ( 23, + 90 * 26 + + 20 - - CAST( - SUM( ALL - 43 ) AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-684
SELECT + + NULLIF ( 23, + 90 * 26 + + 20 - - CAST ( - SUM ( ALL - 43 ) AS INTEGER ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT 28 * + MAX( ALL - - 17 ) - + 8 AS col2
----
468

skipif mysql # not compatible
query I rowsort label-685
SELECT 28 * + MAX ( ALL - - 17 ) - + 8 AS col2
----
468

query I rowsort
SELECT ALL - 72 * + - 10 AS col1
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-687
SELECT + CAST( - 9 AS DECIMAL ) * + 87 + + 36 * - + COUNT( + ( 65 ) ) + + - 34 * - COUNT( - 19 ) - - CAST( NULL AS SIGNED ) + + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT + CAST ( - 9 AS REAL ) * + 87 + + 36 * - + COUNT ( + ( 65 ) ) + + - 34 * - COUNT ( - 19 ) - - CAST ( NULL AS INTEGER ) + + + 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT 21 DIV - - 4
----
5

skipif mysql # not compatible
query I rowsort label-688
SELECT 21 / - - 4
----
5

query I rowsort
SELECT ALL 79 * + 81 AS col0
----
6399

query I rowsort
SELECT DISTINCT - 21 - 42 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT 80 DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-692
SELECT 80 / 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-693
SELECT ALL 55 DIV - NULLIF ( - + 98, + 76 ) * - + 76 + 48, - 42 col2
----
48
-42

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL 55 / - NULLIF ( - + 98, + 76 ) * - + 76 + 48, - 42 col2
----
48
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT 86 + - 78 + - 19 + - + ( + 92 ) * - - 61 + - 62 * 21 * + + 34 / + MIN( - CAST( NULL AS SIGNED ) ) + + ( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT 86 + - 78 + - 19 + - + ( + 92 ) * - - 61 + - 62 * 21 * + + 34 / + MIN ( - CAST ( NULL AS INTEGER ) ) + + ( + 57 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT + 25 * + 98 - - COUNT( * ) + + 95 * 96 * + CAST( + - ( + - 99 ) AS SIGNED ) AS col2
----
905331

skipif mysql # not compatible
query I rowsort label-695
SELECT + 25 * + 98 - - COUNT ( * ) + + 95 * 96 * + CAST ( + - ( + - 99 ) AS INTEGER ) AS col2
----
905331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + MAX( - 86 ) * + 99 + - 77 + 1 AS col0
----
-8590

skipif mysql # not compatible
query I rowsort label-697
SELECT + MAX ( - 86 ) * + 99 + - 77 + 1 AS col0
----
-8590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT DISTINCT - CAST( NULL AS SIGNED ), 55 + - 53 col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 55 + - 53 col2
----
NULL
2

query I rowsort
SELECT 79 * - 49 AS col2
----
-3871

query I rowsort
SELECT ( 5 ) * 7
----
35

query I rowsort
SELECT ALL 48 * 73 * - 33
----
-115632

query I rowsort
SELECT 5 * + - 11 * - 43 * 35 AS col1
----
82775

query I rowsort
SELECT ALL - 32 + 12 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL ( + ( + + COUNT( DISTINCT + - 39 ) ) ) + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL ( + ( + + COUNT ( DISTINCT + - 39 ) ) ) + 21 AS col1
----
22

query II rowsort
SELECT - 69 AS col2, NULLIF ( - 1, 33 * 58 )
----
-69
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-706
SELECT - 29, 29 + COUNT( * ) + + 39 + - - CAST( + 46 AS SIGNED ) * + 82 AS col0
----
-29
3841

skipif mysql # not compatible
query II rowsort label-706
SELECT - 29, 29 + COUNT ( * ) + + 39 + - - CAST ( + 46 AS INTEGER ) * + 82 AS col0
----
-29
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + 19 + + - COUNT( - 57 ) + + 95 * 20
----
1918

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 19 + + - COUNT ( - 57 ) + + 95 * 20
----
1918

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT - 80 AS col0, SUM( ALL - ( + - 89 ) ) + - 73 * + 92
----
-80
-6627

skipif mysql # not compatible
query II rowsort label-709
SELECT - 80 AS col0, SUM ( ALL - ( + - 89 ) ) + - 73 * + 92
----
-80
-6627

query II rowsort
SELECT 73 AS col1, 71
----
73
71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT ALL MAX( + 20 ) DIV - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL MAX ( + 20 ) / - 32 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 12 + 13 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL - NULLIF ( - NULLIF ( 67, - 68 ), 20 * + + COUNT( * ) * 15 - + 58 )
----
67

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - NULLIF ( - NULLIF ( 67, - 68 ), 20 * + + COUNT ( * ) * 15 - + 58 )
----
67

query I rowsort
SELECT ALL + - 66 + - 28 + - ( ( - ( + + 41 ) ) ) + + NULLIF ( + + 88, + 84 ) * - 54
----
-4805

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - COALESCE ( - + SUM( DISTINCT + 77 ), - 65 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-717
SELECT - COALESCE ( - + SUM ( DISTINCT + 77 ), - 65 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT - CAST( COUNT( + - 52 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-718
SELECT - CAST ( COUNT ( + - 52 ) AS INTEGER )
----
-1

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

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

query I rowsort
SELECT 43 + - - 57
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - COUNT( * ) * 63 + + 81 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-721
SELECT - COUNT ( * ) * 63 + + 81 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-722
SELECT ALL COUNT( * ) - + 11 * - 72 AS col0, + CAST( - 13 AS SIGNED ) + - 60
----
793
-73

skipif mysql # not compatible
query II rowsort label-722
SELECT ALL COUNT ( * ) - + 11 * - 72 AS col0, + CAST ( - 13 AS INTEGER ) + - 60
----
793
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-723
SELECT ALL - 64 AS col2, COUNT( ALL 76 ) + - + COUNT( * ), 24 AS col2
----
-64
0
24

skipif mysql # not compatible
query III rowsort label-723
SELECT ALL - 64 AS col2, COUNT ( ALL 76 ) + - + COUNT ( * ), 24 AS col2
----
-64
0
24

query I rowsort
SELECT 90 + + 2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT ALL 26 DIV CASE + 9 WHEN + - 64 + + + COALESCE ( 25, - + COUNT( - - 19 ) * + - CASE + 61 WHEN + - 73 + - 53 * 72 THEN + 92 ELSE - COUNT( * ) * - 67 - - - 64 DIV 63 + - ( - - 88 ) + + 43 + - 6 END ) + + + 97 - + 1 + COALESCE ( - 53, + 84 DIV + 17 ) DIV - 60 THEN NULL WHEN COUNT( * ) THEN 93 ELSE - 71 * 56 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL 26 / CASE + 9 WHEN + - 64 + + + COALESCE ( 25, - + COUNT ( - - 19 ) * + - CASE + 61 WHEN + - 73 + - 53 * 72 THEN + 92 ELSE - COUNT ( * ) * - 67 - - - 64 / 63 + - ( - - 88 ) + + 43 + - 6 END ) + + + 97 - + 1 + COALESCE ( - 53, + 84 / + 17 ) / - 60 THEN NULL WHEN COUNT ( * ) THEN 93 ELSE - 71 * 56 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT + 58 * 88 + - CAST( - COUNT( * ) AS SIGNED )
----
5105

skipif mysql # not compatible
query I rowsort label-726
SELECT + 58 * 88 + - CAST ( - COUNT ( * ) AS INTEGER )
----
5105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + 21 * - 57 - + 88 * - - ( + CAST( + 64 AS SIGNED ) )
----
-6829

skipif mysql # not compatible
query I rowsort label-727
SELECT + 21 * - 57 - + 88 * - - ( + CAST ( + 64 AS INTEGER ) )
----
-6829

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT 15 DIV - 63 * + 72 * 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT 15 / - 63 * + 72 * 77 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-730
SELECT ALL - CAST( + 91 AS SIGNED ), COALESCE ( + - 12, - 87 ) * + 94 AS col0
----
-91
-1128

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL - CAST ( + 91 AS INTEGER ), COALESCE ( + - 12, - 87 ) * + 94 AS col0
----
-91
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT 5 DIV - + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT 5 / - + 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL + 0 + 0 - + COUNT( * ) + + 56
----
55

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + 0 + 0 - + COUNT ( * ) + + 56
----
55

query I rowsort
SELECT DISTINCT - 46 + - 15 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL - COUNT( * ) + - + 7 - + CASE ( ( 80 ) ) WHEN - 89 THEN - 27 * + 69 + + 28 + 81 * + MAX( 89 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - COUNT ( * ) + - + 7 - + CASE ( ( 80 ) ) WHEN - 89 THEN - 27 * + 69 + + 28 + 81 * + MAX ( 89 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT ALL + 73 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + 73 / - 94
----
0

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

skipif mysql # not compatible
query I rowsort label-736
SELECT 1 + - 16 + ( ( - COUNT ( * ) ) ) AS col0
----
-16

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT - 15 + + 79 * COUNT( - 11 ) * - 66 - ( - + CAST( - 24 AS SIGNED ) ) + AVG ( ALL + + ( CAST( NULL AS SIGNED ) ) ) + + 79 + + + 65 + 62 / 53 * 98 + + 65 * CAST( NULL AS SIGNED ) * - 16 + - 90 / 27 / + 59 + + NULLIF ( 73, COUNT( * ) + - 73 ) * ( - MAX( + 17 ) + + 45 ) + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT - 15 + + 79 * COUNT ( - 11 ) * - 66 - ( - + CAST ( - 24 AS INTEGER ) ) + AVG ( ALL + + ( CAST ( NULL AS INTEGER ) ) ) + + 79 + + + 65 + 62 / 53 * 98 + + 65 * CAST ( NULL AS INTEGER ) * - 16 + - 90 / 27 / + 59 + + NULLIF ( 73, COUNT ( * ) + - 73 ) * ( - MAX ( + 17 ) + + 45 ) + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL - CASE 60 WHEN + 70 * + 63 THEN - 38 WHEN + 33 THEN + CASE + 82 WHEN - 67 + - + 70 / + 28 + 18 THEN NULL ELSE + 31 - + 3 * + - 7 * COUNT( * ) END WHEN - 5 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - CASE 60 WHEN + 70 * + 63 THEN - 38 WHEN + 33 THEN + CASE + 82 WHEN - 67 + - + 70 / + 28 + 18 THEN NULL ELSE + 31 - + 3 * + - 7 * COUNT ( * ) END WHEN - 5 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - 87 + + + 61
----
-26

query I rowsort
SELECT DISTINCT + 65 * + 3 AS col2
----
195

query I rowsort
SELECT + + 27 + - - 52
----
79

query I rowsort
SELECT ALL - + 10 - + 60
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT + COALESCE ( - + COUNT( * ), + 66, + - NULLIF ( - - 77, 5 - + 81 + + 34 * + + 59 ), - ( + 45 ) * 85 * + 42 * + 79 * 87 ) * - 6 col0
----
6

skipif mysql # not compatible
query I rowsort label-746
SELECT + COALESCE ( - + COUNT ( * ), + 66, + - NULLIF ( - - 77, 5 - + 81 + + 34 * + + 59 ), - ( + 45 ) * 85 * + 42 * + 79 * 87 ) * - 6 col0
----
6

query I rowsort
SELECT DISTINCT + ( 15 ) col2
----
15

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

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

query I rowsort
SELECT DISTINCT - 89 * 83 + 47
----
-7340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-750
SELECT + COALESCE ( 4, 61 ) / - CAST( NULL AS SIGNED ) / 8 * - + 2 + CASE 99 WHEN + 52 THEN COUNT( * ) + - CAST( 6 AS SIGNED ) + - ( ( - 55 ) ) END + + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT + COALESCE ( 4, 61 ) / - CAST ( NULL AS INTEGER ) / 8 * - + 2 + CASE 99 WHEN + 52 THEN COUNT ( * ) + - CAST ( 6 AS INTEGER ) + - ( ( - 55 ) ) END + + 86 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 43 * - 54
----
-2322

query II rowsort
SELECT + 8 * 38 * - - 37 AS col1, + 62
----
11248
62

query I rowsort
SELECT ALL 20 * - 58 AS col0
----
-1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT COALESCE ( - + 65, - COUNT( ALL - 30 ) DIV - + 50, - COUNT( * ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-755
SELECT COALESCE ( - + 65, - COUNT ( ALL - 30 ) / - + 50, - COUNT ( * ) ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT + SUM( - 96 ) - - - 81 * - ( - + 52 ) + + + MIN( + - 33 ) - - 85 * 38 + - 46 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT + SUM ( - 96 ) - - - 81 * - ( - + 52 ) + + + MIN ( + - 33 ) - - 85 * 38 + - 46 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 73 * 12 * - 23 + + - 21 - + - 53 * - 74
----
-24091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL COUNT( * ) * - 84 * - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 58 + - 61 + 85 * 25 * 38 - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL COUNT ( * ) * - 84 * - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 58 + - 61 + 85 * 25 * 38 - - 80 AS col1
----
NULL

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

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

query I rowsort
SELECT - 48 + - 71 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT 78 * + 75 * + + 80 * - COUNT( * ) - + - 63 * + 26
----
-466362

skipif mysql # not compatible
query I rowsort label-761
SELECT 78 * + 75 * + + 80 * - COUNT ( * ) - + - 63 * + 26
----
-466362

query I rowsort
SELECT 69 * + 45 + 17 AS col2
----
3122

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - 19 * - 19 + - ( + + COUNT( * ) ) AS col0
----
360

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - 19 * - 19 + - ( + + COUNT ( * ) ) AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 59 * - 59 * 66 + + COUNT( * )
----
229747

skipif mysql # not compatible
query I rowsort label-764
SELECT - 59 * - 59 * 66 + + COUNT ( * )
----
229747

query I rowsort
SELECT DISTINCT + 60 * - 50 col1
----
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT ALL CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL CAST ( - 67 AS INTEGER )
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-767
SELECT DISTINCT 75, 80 DIV + ( 72 ) + - CAST( 35 AS SIGNED ) + + - NULLIF ( - 37, + 59 ) AS col2
----
75
3

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT 75, 80 / + ( 72 ) + - CAST ( 35 AS INTEGER ) + + - NULLIF ( - 37, + 59 ) AS col2
----
75
3

query I rowsort
SELECT DISTINCT 1 + + 85 AS col2
----
86

query II rowsort
SELECT - 65, 78 AS col1
----
-65
78

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT ALL - 37 AS col2, + 4 + - 14 + COUNT( DISTINCT ( + + ( + 66 ) ) ) + - + 90 + + 6
----
-37
-93

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL - 37 AS col2, + 4 + - 14 + COUNT ( DISTINCT ( + + ( + 66 ) ) ) + - + 90 + + 6
----
-37
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT - COUNT( * ) - CASE + - COUNT( * ) WHEN + 97 THEN NULL ELSE + 99 + + ( - - 23 ) * + 29 * 50 END + - 24 + + 4 DIV + COALESCE ( + 23, 93 + - 66 + 97 * + + COALESCE ( + - 89, 8 ) + + COUNT( * ) - + 58 - + 70 * 12 * - SUM( ALL + + 99 ) * 76 ) + + 58 DIV - 28
----
-33476

skipif mysql # not compatible
query I rowsort label-771
SELECT - COUNT ( * ) - CASE + - COUNT ( * ) WHEN + 97 THEN NULL ELSE + 99 + + ( - - 23 ) * + 29 * 50 END + - 24 + + 4 / + COALESCE ( + 23, 93 + - 66 + 97 * + + COALESCE ( + - 89, 8 ) + + COUNT ( * ) - + 58 - + 70 * 12 * - SUM ( ALL + + 99 ) * 76 ) + + 58 / - 28
----
-33476

query I rowsort
SELECT - + 20 - - + 55 AS col1
----
35

query II rowsort
SELECT DISTINCT + 1, + 5 AS col1
----
1
5

query I rowsort
SELECT - - ( 48 ) col0
----
48

query I rowsort
SELECT ALL - 60 * 46 + - + 46
----
-2806

query I rowsort
SELECT - 79 - + 54 * + + 49
----
-2725

query I rowsort
SELECT ALL + COALESCE ( + - ( + - 99 ), 54 * + 27 + - 39 ) * + 54 * - 47
----
-251262

query I rowsort
SELECT - ( + 41 ) - - + 98
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-779
SELECT - 20 AS col0, 84 - 51 + + 24 DIV - 76
----
-20
33

skipif mysql # not compatible
query II rowsort label-779
SELECT - 20 AS col0, 84 - 51 + + 24 / - 76
----
-20
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-780
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 42 col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-780
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 42 col2
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT ALL CAST( + ( + 64 ) AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL CAST ( + ( + 64 ) AS INTEGER ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + 14 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT + 14 / + 69 AS col1
----
0

query I rowsort
SELECT - 84 + + 13 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL + 50 AS col0, 19 - COUNT( * ) + ( SUM( + 94 ) )
----
50
112

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL + 50 AS col0, 19 - COUNT ( * ) + ( SUM ( + 94 ) )
----
50
112

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

skipif mysql # not compatible
query II rowsort label-785
SELECT CAST ( NULL AS INTEGER ), - 41 AS col0
----
NULL
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-786
SELECT - CAST( + 37 AS SIGNED ) DIV - 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-786
SELECT - CAST ( + 37 AS INTEGER ) / - 10 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT DISTINCT + 2 DIV 80 DIV + + 7 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + 2 / 80 / + + 7 + + 2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-788
SELECT + NULLIF ( + - CAST( NULL AS DECIMAL ), + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT + NULLIF ( + - CAST ( NULL AS REAL ), + 13 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT ALL + 52 DIV - 57 * - - ( - - COUNT( * ) ) + + + NULLIF ( + - 53, + COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 52 / - 57 * - - ( - - COUNT ( * ) ) + + + NULLIF ( + - 53, + COUNT ( * ) )
----
-53

query I rowsort
SELECT - 6 * + 25 + + 59
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT 71 * + ( + COUNT( * ) ) * - 29 * + COUNT( * ) + - - 81
----
-1978

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 71 * + ( + COUNT ( * ) ) * - 29 * + COUNT ( * ) + - - 81
----
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT ALL - 75 DIV - + 8 + - 93 * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - 75 / - + 8 + - 93 * COUNT ( * )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL + 92 DIV - + ( - 7 ) + - 52 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + 92 / - + ( - 7 ) + - 52 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT 1 * - - CASE - 66 WHEN + 14 THEN - ( + CAST( + 33 AS SIGNED ) ) + - 1 WHEN - 23 THEN + - 67 * + MAX( - - 75 ) * 69 END + - 0 / + COALESCE ( + + 86, ( - 75 ), 1 ) / + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT 1 * - - CASE - 66 WHEN + 14 THEN - ( + CAST ( + 33 AS INTEGER ) ) + - 1 WHEN - 23 THEN + - 67 * + MAX ( - - 75 ) * 69 END + - 0 / + COALESCE ( + + 86, ( - 75 ), 1 ) / + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL + 98 * COUNT( * ) + COUNT( 45 ) * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + 98 * COUNT ( * ) + COUNT ( 45 ) * - - COUNT ( * )
----
99

query II rowsort
SELECT ALL + 65 AS col1, - 70 AS col0
----
65
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL 50 - - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 50 - - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-798
SELECT ALL - 82, MAX( ALL + - CAST( NULL AS SIGNED ) ) / 89 AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-798
SELECT ALL - 82, MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / 89 AS col1
----
-82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT - 77 + 23 - 14 * COUNT( * ), 19 + + + 18 AS col1
----
-68
37

skipif mysql # not compatible
query II rowsort label-799
SELECT - 77 + 23 - 14 * COUNT ( * ), 19 + + + 18 AS col1
----
-68
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT - 60 + - - CAST( - NULLIF ( - - COUNT( * ), 68 * 92 + - ( ( - 28 ) ) + + 22 * - COUNT( * ) ) AS SIGNED ) - - - COALESCE ( + 92, + 86, - - COUNT( * ) + + COUNT( * ) ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-800
SELECT - 60 + - - CAST ( - NULLIF ( - - COUNT ( * ), 68 * 92 + - ( ( - 28 ) ) + + 22 * - COUNT ( * ) ) AS INTEGER ) - - - COALESCE ( + 92, + 86, - - COUNT ( * ) + + COUNT ( * ) ) AS col2
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-801
SELECT ALL - 5 DIV COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - 5 / COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT COUNT( * ) + 80 + + + 7
----
88

skipif mysql # not compatible
query I rowsort label-802
SELECT COUNT ( * ) + 80 + + + 7
----
88

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

skipif mysql # not compatible
query I rowsort label-803
SELECT - - SUM ( - + 56 )
----
-56

query I rowsort
SELECT 93 - - ( 62 ) AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + SUM( + 71 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + SUM ( + 71 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT + COUNT( * ) + + 45, - 49 - + COUNT( * ) * COUNT( * ) col2
----
46
-50

skipif mysql # not compatible
query II rowsort label-806
SELECT + COUNT ( * ) + + 45, - 49 - + COUNT ( * ) * COUNT ( * ) col2
----
46
-50

query I rowsort
SELECT - 36 * 7 AS col2
----
-252

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-809
SELECT ALL - 28 AS col0, - MIN( DISTINCT - 81 ) AS col0
----
-28
81

skipif mysql # not compatible
query II rowsort label-809
SELECT ALL - 28 AS col0, - MIN ( DISTINCT - 81 ) AS col0
----
-28
81

query I rowsort
SELECT 72 * 65 * + 78 AS col0
----
365040

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT 18 + - + CAST( NULL AS SIGNED ) + + COALESCE ( + - 98, + 11 ) + - 10 * - 27 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT 18 + - + CAST ( NULL AS INTEGER ) + + COALESCE ( + - 98, + 11 ) + - 10 * - 27 - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 77 + + - 1 AS col2
----
-78

query I rowsort
SELECT + ( - 92 ) * 65
----
-5980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT DISTINCT + - NULLIF ( - 72, CAST( NULL AS SIGNED ) ) + + 25 + COALESCE ( + COUNT( * ), - 83, + - 42 ) + 28
----
126

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + - NULLIF ( - 72, CAST ( NULL AS INTEGER ) ) + + 25 + COALESCE ( + COUNT ( * ), - 83, + - 42 ) + 28
----
126

query I rowsort
SELECT 9 + - 94 + - 97 + - 34 * + 41 * - + 23 * - 77
----
-2468956

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT 8 + - + 66 AS col0, - ( + + COUNT( * ) )
----
-58
-1

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 8 + - + 66 AS col0, - ( + + COUNT ( * ) )
----
-58
-1

query I rowsort
SELECT DISTINCT + 86 + - 9 col1
----
77

query II rowsort
SELECT 99 * + 42 AS col2, 27 * + 96 AS col1
----
4158
2592

query I rowsort
SELECT ALL + 13 + + 14 * 76 + + 81 AS col1
----
1158

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

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL COUNT ( * ) + - 75 AS col1
----
-74

query I rowsort
SELECT 89 * 86
----
7654

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

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

query I rowsort
SELECT - 1 * - - ( 94 ) + + 79 + - 2 * + - 35
----
55

query I rowsort
SELECT 49 * + 96 * 51 * - - 57 * + 73
----
998240544

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT 18 DIV 5 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT 18 / 5 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL 76 - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 76 - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL 35 * 72 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + ( - 44 ) + COUNT( * ) - - 0
----
-43

skipif mysql # not compatible
query I rowsort label-829
SELECT + ( - 44 ) + COUNT ( * ) - - 0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT DISTINCT + CASE - + COUNT( * ) WHEN 54 + ( + 96 ) * + 73 THEN NULL WHEN + 85 - 58 THEN + COALESCE ( SUM( + 47 ), - - 64, + MIN( 78 ) DIV 7 ) WHEN - 6 THEN + 68 ELSE + + 77 END * + 70 AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + CASE - + COUNT ( * ) WHEN 54 + ( + 96 ) * + 73 THEN NULL WHEN + 85 - 58 THEN + COALESCE ( SUM ( + 47 ), - - 64, + MIN ( 78 ) / 7 ) WHEN - 6 THEN + 68 ELSE + + 77 END * + 70 AS col0
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT - ( 77 ) * + 13 + - MIN( ALL + 12 ) AS col0
----
-1013

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT - ( 77 ) * + 13 + - MIN ( ALL + 12 ) AS col0
----
-1013

query I rowsort
SELECT + 75 * + 60 * - 97 AS col2
----
-436500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-833
SELECT DISTINCT - 75 - - COALESCE ( + 45, + 89 + + 89 + + + CASE - ( + 66 ) WHEN - CASE 39 WHEN - 67 THEN + 70 WHEN - + 23 THEN NULL END - + 61 * + CAST( - ( - CAST( COALESCE ( - - AVG ( 89 ), 49 + 74 + - 59 * + ( - + 42 ) DIV - 65 + + 93 + ( + 90 ) ) AS DECIMAL ) ) AS SIGNED ) * + 73 + 59 THEN NULL WHEN + 74 + + 99 * MAX( 59 DIV - NULLIF ( + COALESCE ( - 66, 45 - 9, - 52 ), - 57 ) ) THEN 98 ELSE NULL END DIV - 47 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - 75 - - COALESCE ( + 45, + 89 + + 89 + + + CASE - ( + 66 ) WHEN - CASE 39 WHEN - 67 THEN + 70 WHEN - + 23 THEN NULL END - + 61 * + CAST ( - ( - CAST ( COALESCE ( - - AVG ( 89 ), 49 + 74 + - 59 * + ( - + 42 ) / - 65 + + 93 + ( + 90 ) ) AS REAL ) ) AS INTEGER ) * + 73 + 59 THEN NULL WHEN + 74 + + 99 * MAX ( 59 / - NULLIF ( + COALESCE ( - 66, 45 - 9, - 52 ), - 57 ) ) THEN 98 ELSE NULL END / - 47 ) AS col2
----
-30

query II rowsort
SELECT - 25 * 52, 51 * - 25 AS col1
----
-1300
-1275

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-836
SELECT DISTINCT - CASE + 54 WHEN 54 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - 84 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) THEN + 58 ELSE NULL END AS col2, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-836
SELECT DISTINCT - CASE + 54 WHEN 54 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - 84 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) THEN + 58 ELSE NULL END AS col2, + 26
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + COUNT( * ) * + SUM( ALL - 71 ) + 87
----
16

skipif mysql # not compatible
query I rowsort label-837
SELECT + COUNT ( * ) * + SUM ( ALL - 71 ) + 87
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-838
SELECT 12 - 19 + - + CAST( NULL AS SIGNED ) * - + SUM( DISTINCT - + COALESCE ( - 51, 70 ) ) AS col2, + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-838
SELECT 12 - 19 + - + CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT - + COALESCE ( - 51, 70 ) ) AS col2, + 24 AS col0
----
NULL
24

query I rowsort
SELECT ALL 67 + - - 21 AS col2
----
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT 99 DIV - SUM( ALL + 14 )
----
-7

skipif mysql # not compatible
query I rowsort label-841
SELECT 99 / - SUM ( ALL + 14 )
----
-7

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

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - COUNT ( * ) + + 56 AS col1
----
55

query I rowsort
SELECT ALL 61 * + 40 AS col0
----
2440

query II rowsort
SELECT ALL 38 AS col2, - 65 AS col1
----
38
-65

query I rowsort
SELECT 34 + + - 83
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + ( + - 46 ) - + COUNT( * ) + + CASE + 40 WHEN - 70 THEN NULL WHEN - 69 + - + 75 + 86 * + 38 THEN - - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + ( + - 46 ) - + COUNT ( * ) + + CASE + 40 WHEN - 70 THEN NULL WHEN - 69 + - + 75 + 86 * + 38 THEN - - 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT DISTINCT - COUNT( * ) / CASE - + 79 WHEN - ( - 24 ) THEN CASE WHEN NOT - 7 IS NOT NULL THEN - - 36 END * MIN( ALL 53 ) WHEN 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - COUNT ( * ) / CASE - + 79 WHEN - ( - 24 ) THEN CASE WHEN NOT - 7 IS NOT NULL THEN - - 36 END * MIN ( ALL 53 ) WHEN 41 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 85 ) AS col0
----
-85

query II rowsort
SELECT 83 * + 56 + - 3 AS col1, + ( - + 8 ) + + 55 AS col0
----
4645
47

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - COUNT( - - 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - COUNT ( - - 10 ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( - 20, - 34 + 58 )
----
-20

query I rowsort
SELECT 19 * - 42 + - 29
----
-827

query I rowsort
SELECT ALL + 26 * - + ( - NULLIF ( + + 52, - + 73 ) ) - - ( - 43 ) + + - 47 + - 92 * - 91
----
9634

query I rowsort
SELECT ALL - 38 * + + 77 * + 98 * 22 col0
----
-6308456

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL COUNT( * ) * + + COUNT( * ) - + - ( + + NULLIF ( + 61, - 82 * + + COUNT( * ) + 31 ) )
----
62

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL COUNT ( * ) * + + COUNT ( * ) - + - ( + + NULLIF ( + 61, - 82 * + + COUNT ( * ) + 31 ) )
----
62

query I rowsort
SELECT DISTINCT - 29 * 66 col1
----
-1914

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT 11 * + + ( - 89 ) * - COUNT( * ) - + 17 * ( + 93 ) + 13 + + 93 * 93
----
8060

skipif mysql # not compatible
query I rowsort label-858
SELECT 11 * + + ( - 89 ) * - COUNT ( * ) - + 17 * ( + 93 ) + 13 + + 93 * 93
----
8060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-859
SELECT - 33 AS col2, - 62 DIV - COUNT( * )
----
-33
62

skipif mysql # not compatible
query II rowsort label-859
SELECT - 33 AS col2, - 62 / - COUNT ( * )
----
-33
62

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( 30 ) * - 62 + - + 44
----
1816

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( 30 ) * - 62 + - + 44
----
1816

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT - + COUNT( 55 ) * + - NULLIF ( 86, - 63 * - - 2 ) * + - CASE + COUNT( * ) WHEN - - 14 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + ( - + 92 ) + - 37 + + 50 + + - 56 * 8 * + 59 * - 52 THEN NULL WHEN + 41 - + AVG ( ALL - 61 ) THEN + 27 END + + - 71 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-861
SELECT - + COUNT ( 55 ) * + - NULLIF ( 86, - 63 * - - 2 ) * + - CASE + COUNT ( * ) WHEN - - 14 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + ( - + 92 ) + - 37 + + 50 + + - 56 * 8 * + 59 * - 52 THEN NULL WHEN + 41 - + AVG ( ALL - 61 ) THEN + 27 END + + - 71 AS col1, COUNT ( * )
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-862
SELECT - CAST ( NULL AS REAL ) * + 63 AS col2
----
NULL

query II rowsort
SELECT - 95 + - ( + 89 ) AS col0, + 91 AS col0
----
-184
91

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL + NULLIF ( + + 89, + - 17 ), 89 + COUNT( * ) * - + NULLIF ( - 54, + 37 * COUNT( * ) ) col0
----
89
143

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL + NULLIF ( + + 89, + - 17 ), 89 + COUNT ( * ) * - + NULLIF ( - 54, + 37 * COUNT ( * ) ) col0
----
89
143

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT - 9 * 52 + + 30 DIV - 87 + 29 * 35 * 19
----
18817

skipif mysql # not compatible
query I rowsort label-865
SELECT - 9 * 52 + + 30 / - 87 + 29 * 35 * 19
----
18817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT ALL - COUNT( * ) DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - COUNT ( * ) / - + 68
----
0

query I rowsort
SELECT - - 16 - - + 58 * - 23 AS col0
----
-1318

query I rowsort
SELECT DISTINCT ( + 62 ) * + + 7 + + 91 * - + 52
----
-4298

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( 57, - COUNT( * ) ) * - - 13 + - + COALESCE ( + 64, + - COALESCE ( + 65, MIN( ( + 5 ) ) ) ) + + 21
----
698

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( 57, - COUNT ( * ) ) * - - 13 + - + COALESCE ( + 64, + - COALESCE ( + 65, MIN ( ( + 5 ) ) ) ) + + 21
----
698

query I rowsort
SELECT + - 67 + - 28 * + 64 AS col0
----
-1859

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL + - 84 + 20 DIV - 65 + + 49 + + + 65
----
30

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + - 84 + 20 / - 65 + + 49 + + + 65
----
30

query I rowsort
SELECT ALL - CASE - + 67 WHEN + 86 - + 65 THEN 53 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 98 * + 51
----
-4998

query I rowsort
SELECT + + 92 + + 76
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT - 98 + 90 DIV COUNT( * ) + - - 76
----
68

skipif mysql # not compatible
query I rowsort label-875
SELECT - 98 + 90 / COUNT ( * ) + - - 76
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + - 22 * - + 9 * + ( + 43 ) + - 38 + 51 + + SUM( ( 70 ) ) * - MIN( ALL + 71 ) AS col0
----
3557

skipif mysql # not compatible
query I rowsort label-876
SELECT + - 22 * - + 9 * + ( + 43 ) + - 38 + 51 + + SUM ( ( 70 ) ) * - MIN ( ALL + 71 ) AS col0
----
3557

query I rowsort
SELECT + 81 - + - 53
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-878
SELECT ALL + 83 AS col2, - COUNT( * ) * 5 DIV - 83
----
83
0

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL + 83 AS col2, - COUNT ( * ) * 5 / - 83
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + 25 + + 97 + + + COUNT( * ) - - + 90 - + 52 + + 9 - 72
----
98

skipif mysql # not compatible
query I rowsort label-879
SELECT + 25 + + 97 + + + COUNT ( * ) - - + 90 - + 52 + + 9 - 72
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-880
SELECT ALL + 14 AS col0, CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) + 95 * CAST( NULL AS DECIMAL )
----
14
NULL

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL + 14 AS col0, CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) + 95 * CAST ( NULL AS REAL )
----
14
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 77 AS col0
----
308

query I rowsort
SELECT ALL NULLIF ( 94, 30 ) + + 57
----
151

query I rowsort
SELECT DISTINCT 55 + - 83 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ALL NULLIF ( 96, - + ( - - 15 ) * - 23 * + 6 - 1 ) - MAX( 4 ) AS col2, - 57 AS col0
----
92
-57

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL NULLIF ( 96, - + ( - - 15 ) * - 23 * + 6 - 1 ) - MAX ( 4 ) AS col2, - 57 AS col0
----
92
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT + 84 + - 44 DIV - 27 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-885
SELECT + 84 + - 44 / - 27 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT + 96 * 36 col0, - COUNT( * ) AS col0
----
3456
-1

skipif mysql # not compatible
query II rowsort label-886
SELECT + 96 * 36 col0, - COUNT ( * ) AS col0
----
3456
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT + 1 * - ( + ( + SUM( DISTINCT + 78 ) ) ) DIV NULLIF ( + 15, + 38 ) DIV + + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT + 1 * - ( + ( + SUM ( DISTINCT + 78 ) ) ) / NULLIF ( + 15, + 38 ) / + + 38 AS col2
----
0

query I rowsort
SELECT + 89 + - 41 AS col1
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL - 51 - - MAX( DISTINCT + - 95 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - 51 - - MAX ( DISTINCT + - 95 ) AS col0
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT + COUNT( * ) DIV + 99 DIV 5 * + - 4
----
0

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( * ) / + 99 / 5 * + - 4
----
0

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

skipif mysql # not compatible
query I rowsort label-892
SELECT + 29 * - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + 18 * 83 + - CASE ( + 70 ) WHEN + 3 THEN - COUNT( * ) / 75 + + - 81 + + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT + 18 * 83 + - CASE ( + 70 ) WHEN + 3 THEN - COUNT ( * ) / 75 + + - 81 + + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + 6 * + 53 * ( + - MAX( ALL - + 84 ) ) AS col2
----
26712

skipif mysql # not compatible
query I rowsort label-894
SELECT + 6 * + 53 * ( + - MAX ( ALL - + 84 ) ) AS col2
----
26712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT ALL + - 36 DIV + + COUNT( * ) - - 53
----
17

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + - 36 / + + COUNT ( * ) - - 53
----
17

query I rowsort
SELECT + - 37 * 51 + + 71 col0
----
-1816

query I rowsort
SELECT ALL + 26 * - 77 + - 51 AS col0
----
-2053

query I rowsort
SELECT ALL - 93 * - 95
----
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL ( - - 7 ) * - 39 + + MAX( ALL + + 84 ) + + 17 col2
----
-172

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL ( - - 7 ) * - 39 + + MAX ( ALL + + 84 ) + + 17 col2
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT ALL - MAX( + - 36 ) * - COUNT( * ) + + 13 DIV - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - MAX ( + - 36 ) * - COUNT ( * ) + + 13 / - COUNT ( * ) AS col0
----
-49

query II rowsort
SELECT - 16 + - 71 AS col0, NULLIF ( 72, 19 )
----
-87
72

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT DISTINCT + 47 * COUNT( 67 ) + MIN( ALL 89 ) + - + COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + 47 * COUNT ( 67 ) + MIN ( ALL 89 ) + - + COUNT ( * ) AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT + - CASE + + 5 WHEN + + 14 + 65 * 60 THEN + - 24 ELSE NULL END * + CAST( 75 AS SIGNED ) + - - MIN( ALL + + ( + 1 ) ) + + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + - CASE + + 5 WHEN + + 14 + 65 * 60 THEN + - 24 ELSE NULL END * + CAST ( 75 AS INTEGER ) + - - MIN ( ALL + + ( + 1 ) ) + + 17 AS col1
----
NULL

query I rowsort
SELECT - 43 * 72 + + ( - - 43 )
----
-3053

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT + NULLIF ( 31, - SUM( NULLIF ( + - 22, 80 * 36 / - 81 ) ) - - 36 ) AS col2, 42
----
31
42

skipif mysql # not compatible
query II rowsort label-905
SELECT + NULLIF ( 31, - SUM ( NULLIF ( + - 22, 80 * 36 / - 81 ) ) - - 36 ) AS col2, 42
----
31
42

query I rowsort
SELECT ALL + 72 * + - 2
----
-144

query I rowsort
SELECT ALL + 46 * + 51 + - + 13 + 28 + 92 AS col2
----
2453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT ALL COALESCE ( - ( - 2 ), CAST( NULL AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL COALESCE ( - ( - 2 ), CAST ( NULL AS INTEGER ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL + ( 20 ) * - 55 + + + CAST( + - 99 AS SIGNED ) + - 99 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + ( 20 ) * - 55 + + + CAST ( + - 99 AS INTEGER ) + - 99 AS col1
----
-1298

query I rowsort
SELECT ALL ( - ( + 40 ) ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT ALL + 45 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + 45 / - 51 AS col1
----
0

query I rowsort
SELECT - ( + + 63 ) * + 48 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 55 * - ( + 41 ) + MAX( DISTINCT - 63 )
----
-2318

skipif mysql # not compatible
query I rowsort label-913
SELECT 55 * - ( + 41 ) + MAX ( DISTINCT - 63 )
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - NULLIF ( - COUNT( * ), 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-914
SELECT - NULLIF ( - COUNT ( * ), 6 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT - 96 - + CAST( - - 41 AS SIGNED ) * - COUNT( * ) + - 86 + + - 20
----
-161

skipif mysql # not compatible
query I rowsort label-915
SELECT - 96 - + CAST ( - - 41 AS INTEGER ) * - COUNT ( * ) + - 86 + + - 20
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + COUNT( * ) * - MIN( ALL - + 80 ) * + + 99 + + 54 AS col1
----
7974

skipif mysql # not compatible
query I rowsort label-916
SELECT + COUNT ( * ) * - MIN ( ALL - + 80 ) * + + 99 + + 54 AS col1
----
7974

query I rowsort
SELECT ALL + 10 * - 12 AS col1
----
-120

query I rowsort
SELECT - 72 - - + 65
----
-7

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

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

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

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + 28 * COUNT ( * ) AS col0
----
28

query II rowsort
SELECT DISTINCT 43 AS col1, - 56 AS col1
----
43
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT 33 + + NULLIF ( + - CAST( NULL AS SIGNED ), MAX( - 72 ) + - + COUNT( DISTINCT - - 88 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT 33 + + NULLIF ( + - CAST ( NULL AS INTEGER ), MAX ( - 72 ) + - + COUNT ( DISTINCT - - 88 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 56 * + + 48 col0
----
-2688

query I rowsort
SELECT 49 - 93 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT 23 + 54 DIV + + 44 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-925
SELECT 23 + 54 / + + 44 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-926
SELECT COUNT( ALL 48 ) - + 70 + 90 + - 74 * - + 98 * COUNT( + + 92 ) + - 89 * - COUNT( * ) * - - 25 + - ( - 41 ) * CASE + 45 WHEN 83 + + ( - 57 ) THEN NULL WHEN + 6 THEN - + 16 WHEN ( - 52 ) THEN NULL ELSE - + 95 DIV 21 - - CAST( - COUNT( * ) AS SIGNED ) * - + 0 + - MIN( DISTINCT + 91 ) * - ( - NULLIF ( - 60, - COUNT( * ) ) ) END AS col2
----
233194

skipif mysql # not compatible
query I rowsort label-926
SELECT COUNT ( ALL 48 ) - + 70 + 90 + - 74 * - + 98 * COUNT ( + + 92 ) + - 89 * - COUNT ( * ) * - - 25 + - ( - 41 ) * CASE + 45 WHEN 83 + + ( - 57 ) THEN NULL WHEN + 6 THEN - + 16 WHEN ( - 52 ) THEN NULL ELSE - + 95 / 21 - - CAST ( - COUNT ( * ) AS INTEGER ) * - + 0 + - MIN ( DISTINCT + 91 ) * - ( - NULLIF ( - 60, - COUNT ( * ) ) ) END AS col2
----
233194

query I rowsort
SELECT 30 * 23
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT - NULLIF ( + + 55, + 11 DIV 48 - 55 DIV 3 ) * COUNT( * ) * 31 + + 50 DIV - + 85 * + 70 + - 39 AS col1
----
-1744

skipif mysql # not compatible
query I rowsort label-928
SELECT - NULLIF ( + + 55, + 11 / 48 - 55 / 3 ) * COUNT ( * ) * 31 + + 50 / - + 85 * + 70 + - 39 AS col1
----
-1744

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT - - ( MAX( - 26 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - - ( MAX ( - 26 ) ) AS col0
----
-26

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

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

query I rowsort
SELECT DISTINCT - 38 + - 33
----
-71

query I rowsort
SELECT 93 * + 58 AS col0
----
5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT ALL - - CAST( + 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - - CAST ( + 80 AS INTEGER ) AS col0
----
80

query I rowsort
SELECT ALL - 45 + CASE - - 86 WHEN COALESCE ( - 95, - - 24 ) THEN - 91 + - 73 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-935
SELECT + + 21 * 76 - - + COALESCE ( - 20, + 70, + CAST( NULL AS SIGNED ) ) - - - COALESCE ( + SUM( ALL - + 1 ), + 78 ) + + - 40 * - + 42 + - + 18 - - + ( - - 72 ) - - - 43 + 3 * + ( - 89 ) DIV 28 - - 84 + + 23 col0
----
3366

skipif mysql # not compatible
query I rowsort label-935
SELECT + + 21 * 76 - - + COALESCE ( - 20, + 70, + CAST ( NULL AS INTEGER ) ) - - - COALESCE ( + SUM ( ALL - + 1 ), + 78 ) + + - 40 * - + 42 + - + 18 - - + ( - - 72 ) - - - 43 + 3 * + ( - 89 ) / 28 - - 84 + + 23 col0
----
3366

query III rowsort
SELECT + 42 col1, ( + 39 ), - 73 AS col0
----
42
39
-73

query II rowsort
SELECT ( + 65 ) + + 30 AS col1, + 86 * 27 + + 30
----
95
2352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-938
SELECT DISTINCT - 92 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-938
SELECT DISTINCT - 92 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-939
SELECT ALL - 79 + + SUM( DISTINCT 99 ) AS col0, + ( - 66 ) AS col0
----
20
-66

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL - 79 + + SUM ( DISTINCT 99 ) AS col0, + ( - 66 ) AS col0
----
20
-66

query I rowsort
SELECT ALL - + NULLIF ( 47, 61 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + 45 * - 90 + MAX( ALL 1 ) AS col1
----
-4049

skipif mysql # not compatible
query I rowsort label-941
SELECT + 45 * - 90 + MAX ( ALL 1 ) AS col1
----
-4049

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + ( - - MAX( 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-942
SELECT + ( - - MAX ( 18 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + 33 * - 27 + + 55 + + 52 - MIN( - - 85 )
----
-869

skipif mysql # not compatible
query I rowsort label-943
SELECT + 33 * - 27 + + 55 + + 52 - MIN ( - - 85 )
----
-869

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

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

query I rowsort
SELECT ALL + - 62 * 53
----
-3286

query II rowsort
SELECT + 67 AS col0, + 25 + - + 87
----
67
-62

query I rowsort
SELECT 24 + 15 AS col2
----
39

query I rowsort
SELECT ( + 79 ) * + 47 + + 74 * - 33 AS col1
----
1271

query I rowsort
SELECT DISTINCT + 41 * + + 42
----
1722

query I rowsort
SELECT 43 * + + 23 AS col0
----
989

query I rowsort
SELECT 14 + + 28 * - + 98
----
-2730

query II rowsort
SELECT DISTINCT 40 col2, 99 AS col2
----
40
99

query I rowsort
SELECT DISTINCT + 79 * + - 53 AS col1
----
-4187

query I rowsort
SELECT 23 * + + 8
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT 59 + + MIN( + + 99 ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-955
SELECT 59 + + MIN ( + + 99 ) AS col0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-956
SELECT ALL + 25 + - COUNT( * ) + + 32 * - CAST( NULL AS SIGNED ), 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-956
SELECT ALL + 25 + - COUNT ( * ) + + 32 * - CAST ( NULL AS INTEGER ), 38 AS col1
----
NULL
38

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 57 col1, 63 + - + SUM( ALL + 66 )
----
57
-3

skipif mysql # not compatible
query II rowsort label-957
SELECT 57 col1, 63 + - + SUM ( ALL + 66 )
----
57
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 49 * - NULLIF ( + 40, + COUNT( * ) )
----
-1960

skipif mysql # not compatible
query I rowsort label-958
SELECT 49 * - NULLIF ( + 40, + COUNT ( * ) )
----
-1960

query II rowsort
SELECT ALL 12, + 98 - + 29 AS col0
----
12
69

query I rowsort
SELECT 55 + + 80 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL ( - + 17 ) + + + COUNT( + 52 )
----
-16

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL ( - + 17 ) + + + COUNT ( + 52 )
----
-16

query I rowsort
SELECT ALL - 35 + + 81 * + + 60 * 28 AS col2
----
136045

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT + 60 * + - 73 / + + CASE 30 WHEN COUNT( * ) THEN + 44 END * + 13 + + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT + 60 * + - 73 / + + CASE 30 WHEN COUNT ( * ) THEN + 44 END * + 13 + + 12 col1
----
NULL

query II rowsort
SELECT ALL - - 58 AS col2, + 65
----
58
65

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

skipif mysql # not compatible
query I rowsort label-965
SELECT - SUM ( - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ( + COALESCE ( 14, 15, CASE COUNT( * ) WHEN - + 10 THEN + ( + 9 ) ELSE - CASE 23 WHEN + ( - 33 ) + + ( - COUNT( * ) ) THEN NULL ELSE + + 55 * + + 17 END + - 84 + COUNT( * ) END * ( ( 76 ) ), - - 83 * - 63 ) ) col2
----
14

skipif mysql # not compatible
query I rowsort label-966
SELECT ( + COALESCE ( 14, 15, CASE COUNT ( * ) WHEN - + 10 THEN + ( + 9 ) ELSE - CASE 23 WHEN + ( - 33 ) + + ( - COUNT ( * ) ) THEN NULL ELSE + + 55 * + + 17 END + - 84 + COUNT ( * ) END * ( ( 76 ) ), - - 83 * - 63 ) ) col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT 35 DIV 87 * - 45 * - 36 - 32
----
-32

skipif mysql # not compatible
query I rowsort label-967
SELECT 35 / 87 * - 45 * - 36 - 32
----
-32

query I rowsort
SELECT ALL - - ( - 68 )
----
-68

query II rowsort
SELECT + + 33 AS col1, - 99 * + 10 AS col0
----
33
-990

query II rowsort
SELECT - 32 AS col0, - 75 AS col1
----
-32
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT + COUNT( * ) * - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + COUNT ( * ) * - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + COUNT( - + 32 ) * ( 79 ) + + 98
----
177

skipif mysql # not compatible
query I rowsort label-972
SELECT + COUNT ( - + 32 ) * ( 79 ) + + 98
----
177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-973
SELECT + CAST( - 62 AS SIGNED ) DIV 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-973
SELECT + CAST ( - 62 AS INTEGER ) / 61 AS col1
----
-1

query II rowsort
SELECT DISTINCT - 76, - 24 AS col1
----
-76
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT SUM( + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-975
SELECT SUM ( + 66 ) AS col0
----
66

query I rowsort
SELECT 40 * + 63 * + 70 * + NULLIF ( - 93, + 73 )
----
-16405200

query I rowsort
SELECT 43 * - 58 * 5
----
-12470

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

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT + MAX ( + CAST ( + 31 AS INTEGER ) ) col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT ALL 84 DIV - - ( + - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL 84 / - - ( + - 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + MIN( 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + MIN ( 36 ) col0
----
36

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

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

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

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( * ) * - - 74
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-983
SELECT + 13 + + 54 * - 84 + + - 15 DIV - 28, 97 AS col2
----
-4523
97

skipif mysql # not compatible
query II rowsort label-983
SELECT + 13 + + 54 * - 84 + + - 15 / - 28, 97 AS col2
----
-4523
97

query I rowsort
SELECT + 30 * + + 20 * - 85
----
-51000

query I rowsort
SELECT + 89 + - 14 + + 49 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT DISTINCT - 47 + - NULLIF ( + + COUNT( * ), ( + 84 ) ) AS col1, 10 + + 22
----
-48
32

skipif mysql # not compatible
query II rowsort label-986
SELECT DISTINCT - 47 + - NULLIF ( + + COUNT ( * ), ( + 84 ) ) AS col1, 10 + + 22
----
-48
32

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL + 93 + - 57 DIV 65 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + 93 + - 57 / 65 AS col0
----
93

query I rowsort
SELECT + 83 - + 47 * + 20 AS col2
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - 59 + CASE + 31 WHEN - + COUNT( * ) THEN NULL WHEN - 41 THEN + 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - 59 + CASE + 31 WHEN - + COUNT ( * ) THEN NULL WHEN - 41 THEN + 91 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 35 + - - 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT DISTINCT - 48 + 89 * + 91, COUNT( * ) AS col1
----
8051
1

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT - 48 + 89 * + 91, COUNT ( * ) AS col1
----
8051
1

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - COUNT( DISTINCT + 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-992
SELECT - COUNT ( DISTINCT + 20 ) AS col0
----
-1

query I rowsort
SELECT + 3 + - 93 + + 71 AS col0
----
-19

query II rowsort
SELECT - + 39 * + 97, 97 col2
----
-3783
97

query I rowsort
SELECT + NULLIF ( 0, - 68 + + 48 ) * - 30 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT + MIN( + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-996
SELECT + MIN ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT DISTINCT + COUNT( DISTINCT 15 ) AS col2, - 78 * - - 74
----
1
-5772

skipif mysql # not compatible
query II rowsort label-997
SELECT DISTINCT + COUNT ( DISTINCT 15 ) AS col2, - 78 * - - 74
----
1
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - SUM( DISTINCT - ( 28 ) ) * 97
----
2716

skipif mysql # not compatible
query I rowsort label-998
SELECT - SUM ( DISTINCT - ( 28 ) ) * 97
----
2716

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

skipif mysql # not compatible
query I rowsort label-999
SELECT - + COUNT ( * ) * + + COUNT ( DISTINCT - + 61 ) AS col0
----
-1

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

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

query I rowsort
SELECT ALL 43 * - - 64
----
2752

query I rowsort
SELECT DISTINCT + ( + - CASE - 37 WHEN 97 THEN 5 END ) AS col1
----
NULL

query I rowsort
SELECT - 13 * + - 24
----
312

query I rowsort
SELECT 24 * - + 11 + + ( + 29 ) AS col0
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT NULLIF ( + 84, + 37 * COUNT( * ) + 92 + - + 35 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1005
SELECT NULLIF ( + 84, + 37 * COUNT ( * ) + 92 + - + 35 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL - 90 * - CASE 53 WHEN 6 THEN NULL WHEN COUNT( * ) THEN + 99 + - NULLIF ( + + 59, + + NULLIF ( 18, COUNT( * ) ) ) - 77 * - 36 * + 87 * 33 * - + COUNT( * ) + 79 ELSE + CAST( + + 11 AS SIGNED ) + + + 22 END + 9 + - + 90
----
2889

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - 90 * - CASE 53 WHEN 6 THEN NULL WHEN COUNT ( * ) THEN + 99 + - NULLIF ( + + 59, + + NULLIF ( 18, COUNT ( * ) ) ) - 77 * - 36 * + 87 * 33 * - + COUNT ( * ) + 79 ELSE + CAST ( + + 11 AS INTEGER ) + + + 22 END + 9 + - + 90
----
2889

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT COUNT( ALL 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1007
SELECT COUNT ( ALL 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + COUNT( - + 60 ) + - - CASE ( - 23 ) WHEN 49 THEN NULL WHEN 36 + - COUNT( * ) THEN - - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + COUNT ( - + 60 ) + - - CASE ( - 23 ) WHEN 49 THEN NULL WHEN 36 + - COUNT ( * ) THEN - - 9 END
----
NULL

query II rowsort
SELECT ALL 45, 45
----
45
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL COALESCE ( 89, + 23, - 52 + 98 ) + + + 79 AS col0, + ( - 4 ) + + MAX( ALL + - 54 )
----
168
-58

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL COALESCE ( 89, + 23, - 52 + 98 ) + + + 79 AS col0, + ( - 4 ) + + MAX ( ALL + - 54 )
----
168
-58

query II rowsort
SELECT DISTINCT 5 AS col0, + 17
----
5
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 DIV + SUM( ALL - - 31 ) * - CAST( - COUNT( * ) AS SIGNED ) + - CAST( - NULLIF ( 66, 42 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 / + SUM ( ALL - - 31 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( - NULLIF ( 66, 42 ) AS INTEGER )
----
37

query I rowsort
SELECT ALL - 62 + - 79
----
-141

query II rowsort
SELECT 63 AS col2, 53 AS col1
----
63
53

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT + COALESCE ( 91, + + 62 * - 21 ) + 53 DIV + 17 col1, 21
----
94
21

skipif mysql # not compatible
query II rowsort label-1016
SELECT + COALESCE ( 91, + + 62 * - 21 ) + 53 / + 17 col1, 21
----
94
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - - CASE + - COUNT( * ) WHEN - 11 THEN - 54 END + 85 * + 41 + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT - - CASE + - COUNT ( * ) WHEN - 11 THEN - 54 END + 85 * + 41 + 36 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT ALL 41 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL 41 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 10 * + 10
----
100

query II rowsort
SELECT - - 6 AS col1, 60 AS col2
----
6
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT - COUNT( * ) * - 76 + 23
----
99

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - COUNT ( * ) * - 76 + 23
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT 98 * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT 98 * + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - COALESCE ( + 91, - + 45, - + COUNT( * ) * + + NULLIF ( 21, + - 54 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - COALESCE ( + 91, - + 45, - + COUNT ( * ) * + + NULLIF ( 21, + - 54 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1024
SELECT DISTINCT - 57 col0, 13 DIV + 8 + + - 17 - SUM( + 34 )
----
-57
-50

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT - 57 col0, 13 / + 8 + + - 17 - SUM ( + 34 )
----
-57
-50

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - - 47 - + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT - + NULLIF ( - 60, - COUNT( * ) * + 57 + 74 ) * - 31 + 27 AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-1026
SELECT - + NULLIF ( - 60, - COUNT ( * ) * + 57 + 74 ) * - 31 + 27 AS col0
----
-1833

query I rowsort
SELECT + 13 * 75 * 50
----
48750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT CAST( NULL AS SIGNED ) * - 86 - - 96 + 97 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT CAST ( NULL AS INTEGER ) * - 86 - - 96 + 97 * + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT - COUNT( * ) DIV + - 50 + 5 + 95 - - 5
----
105

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) / + - 50 + 5 + 95 - - 5
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT ALL + - CAST( - 42 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + - CAST ( - 42 AS INTEGER ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT - 40 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 40 / - 96
----
0

query I rowsort
SELECT - 9 + ( + 11 ) + - CASE - - 47 WHEN + 56 THEN + 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT CASE - ( + 61 ) WHEN 80 / - COALESCE ( - - 44, - 13 + - CAST( NULL AS SIGNED ) + - + 62 * - 75 * - + 23, + 17 + - 32 + - COUNT( * ) ) + + 65 + + 7 THEN NULL WHEN 52 THEN - ( + COALESCE ( + 97, - + 96 - + + 21 ) ) * - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT CASE - ( + 61 ) WHEN 80 / - COALESCE ( - - 44, - 13 + - CAST ( NULL AS INTEGER ) + - + 62 * - 75 * - + 23, + 17 + - 32 + - COUNT ( * ) ) + + 65 + + 7 THEN NULL WHEN 52 THEN - ( + COALESCE ( + 97, - + 96 - + + 21 ) ) * - 35 END
----
NULL

query II rowsort
SELECT + - 88 col2, - ( 8 ) col1
----
-88
-8

query II rowsort
SELECT + + 19 AS col0, + 39
----
19
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1036
SELECT DISTINCT + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST( NULL AS SIGNED ) + + - 63 END * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + CASE + 26 WHEN - - 74 THEN NULL WHEN - 96 THEN - + CAST ( NULL AS INTEGER ) + + - 63 END * + 44 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL 37 + 91 DIV + 57
----
38

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 37 + 91 / + 57
----
38

query I rowsort
SELECT ALL + 65 + - 99 * + 51 + + 79 * - - 31 AS col1
----
-2535

query I rowsort
SELECT 59 * - + 11
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL - 92 + + + MAX( - 95 )
----
-187

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - 92 + + + MAX ( - 95 )
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT - 75 + MAX( 85 )
----
10

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT - 75 + MAX ( 85 )
----
10

query I rowsort
SELECT ALL 54 + 31 AS col0
----
85

query I rowsort
SELECT 49 * - + 53 col0
----
-2597

onlyif mysql # aggregate syntax: 
query II rowsort label-1044
SELECT DISTINCT 89 + COALESCE ( + SUM( 90 ), 55 + - 52 + - ( + + ( + - 99 ) ) ) AS col1, - 43 AS col2
----
179
-43

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT 89 + COALESCE ( + SUM ( 90 ), 55 + - 52 + - ( + + ( + - 99 ) ) ) AS col1, - 43 AS col2
----
179
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT ALL COUNT( * ) + - 31 DIV - 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL COUNT ( * ) + - 31 / - 39 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT 66 * - 17 * - - NULLIF ( + + 52, - ( + 86 ) ) + COUNT( * ) + + COUNT( DISTINCT + 9 ) * - 75 DIV + 91 AS col1
----
-58343

skipif mysql # not compatible
query I rowsort label-1047
SELECT 66 * - 17 * - - NULLIF ( + + 52, - ( + 86 ) ) + COUNT ( * ) + + COUNT ( DISTINCT + 9 ) * - 75 / + 91 AS col1
----
-58343

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 58 + - CASE - - 31 WHEN + COUNT( * ) THEN NULL WHEN + 10 * - 57 + - - MAX( DISTINCT 6 ) THEN - CASE NULLIF ( 31, + 43 ) WHEN - 32 THEN SUM( ALL 41 ) + - 73 + MAX( + 69 ) - + 99 + - 8 + 8 / + COUNT( * ) + - 83 + 55 + - 26 + - 98 / + 58 END + + 29 ELSE NULL END - + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT 58 + - CASE - - 31 WHEN + COUNT ( * ) THEN NULL WHEN + 10 * - 57 + - - MAX ( DISTINCT 6 ) THEN - CASE NULLIF ( 31, + 43 ) WHEN - 32 THEN SUM ( ALL 41 ) + - 73 + MAX ( + 69 ) - + 99 + - 8 + 8 / + COUNT ( * ) + - 83 + 55 + - 26 + - 98 / + 58 END + + 29 ELSE NULL END - + - 68 AS col2
----
NULL

query I rowsort
SELECT ALL 88 - 22 AS col0
----
66

query I rowsort
SELECT + 64 * + 12 * + 37
----
28416

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL 52 / + CASE 28 WHEN MIN( 34 ) - + + 0 THEN - 76 * - 65 * + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 52 / + CASE 28 WHEN MIN ( 34 ) - + + 0 THEN - 76 * - 65 * + 45 END
----
NULL

query I rowsort
SELECT + 22 + + 93
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + 31 * NULLIF ( ( 94 ), - 99 * + 95 * + COUNT( * ) + 84 ) - CAST( NULL AS SIGNED ) * - 18 + 4 * + 50 + - - NULLIF ( + 57, + - CAST( NULL AS SIGNED ) ) + + 16 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 31 * NULLIF ( ( 94 ), - 99 * + 95 * + COUNT ( * ) + 84 ) - CAST ( NULL AS INTEGER ) * - 18 + 4 * + 50 + - - NULLIF ( + 57, + - CAST ( NULL AS INTEGER ) ) + + 16 * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT 9 DIV - + MAX( + 88 ) * 77 + + 77
----
77

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT 9 / - + MAX ( + 88 ) * 77 + + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL - CAST( + - CASE - + 30 WHEN 34 - - 70 THEN - ( + ( + COUNT( * ) ) ) END AS SIGNED ) * 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - CAST ( + - CASE - + 30 WHEN 34 - - 70 THEN - ( + ( + COUNT ( * ) ) ) END AS INTEGER ) * 17 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - - 45 * + + 43 * + ( - COUNT( * ) ) AS col1
----
-1935

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - - 45 * + + 43 * + ( - COUNT ( * ) ) AS col1
----
-1935

query I rowsort
SELECT 33 + 90 AS col0
----
123

query II rowsort
SELECT - 11 * + + 47 AS col2, + 40 AS col0
----
-517
40

query I rowsort
SELECT 23 + 90 AS col0
----
113

query I rowsort
SELECT DISTINCT ( + + 54 ) * - 71 col2
----
-3834

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT 0 * + 37 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT 0 * + 37 / 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + NULLIF ( + COUNT( * ), + 98 / + COUNT( * ) ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-1063
SELECT + NULLIF ( + COUNT ( * ), + 98 / + COUNT ( * ) ) * - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT ALL 16 + - ( + - MAX( 57 ) ) DIV + 66 * + 45 * - 29 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 16 + - ( + - MAX ( 57 ) ) / + 66 * + 45 * - 29 AS col1
----
16

query I rowsort
SELECT ALL - 19 + 35 * - 7 * + - 29
----
7086

query I rowsort
SELECT ALL 43 + + - 16 + + 58
----
85

query I rowsort
SELECT 14 + 18
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - 75 * - 70 + MIN( - - 70 ) * - + 83 AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 75 * - 70 + MIN ( - - 70 ) * - + 83 AS col1
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + 52 * 71 * - COUNT( - - 58 ) AS col2
----
-3692

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + 52 * 71 * - COUNT ( - - 58 ) AS col2
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT COUNT( ALL - 8 ) * + 83 + + 62 + 73 + - CASE - - MAX( 63 ) WHEN + COUNT( * ) + - 0 THEN - - 57 * + - 56 WHEN 64 THEN NULL ELSE - 64 END + + 45 * - 60 AS col2
----
-2418

skipif mysql # not compatible
query I rowsort label-1070
SELECT COUNT ( ALL - 8 ) * + 83 + + 62 + 73 + - CASE - - MAX ( 63 ) WHEN + COUNT ( * ) + - 0 THEN - - 57 * + - 56 WHEN 64 THEN NULL ELSE - 64 END + + 45 * - 60 AS col2
----
-2418

query I rowsort
SELECT ( - 86 ) * - - 2 * - 47 - 46 * 42 AS col1
----
6152

query I rowsort
SELECT ALL + 34 * - - 74 AS col2
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT 49 + + COUNT( * ) * + + 88 * + - 92 AS col0
----
-8047

skipif mysql # not compatible
query I rowsort label-1073
SELECT 49 + + COUNT ( * ) * + + 88 * + - 92 AS col0
----
-8047

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL + 34 * 81 * CASE - COUNT( * ) WHEN 40 - + COALESCE ( + 50, + COUNT( * ) * 65 * COUNT( * ) + - - 65 ) - + COUNT( * ) * 55 + - 74 THEN NULL WHEN 27 * + 40 THEN NULL ELSE 55 END AS col2
----
151470

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 34 * 81 * CASE - COUNT ( * ) WHEN 40 - + COALESCE ( + 50, + COUNT ( * ) * 65 * COUNT ( * ) + - - 65 ) - + COUNT ( * ) * 55 + - 74 THEN NULL WHEN 27 * + 40 THEN NULL ELSE 55 END AS col2
----
151470

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 37 * + 82 + - COUNT( * ) * + 78 AS col2
----
2956

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 37 * + 82 + - COUNT ( * ) * + 78 AS col2
----
2956

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT DISTINCT - 16 AS col2, - SUM( ALL 11 ) AS col2
----
-16
-11

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT - 16 AS col2, - SUM ( ALL 11 ) AS col2
----
-16
-11

query I rowsort
SELECT ALL + 62 - + 3 col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT + 8 col2, SUM( DISTINCT 94 ) * 88 AS col1
----
8
8272

skipif mysql # not compatible
query II rowsort label-1078
SELECT + 8 col2, SUM ( DISTINCT 94 ) * 88 AS col1
----
8
8272

query I rowsort
SELECT 74 * + 77 AS col0
----
5698

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT - COUNT( * ) * - + 50 DIV - ( 29 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( * ) * - + 50 / - ( 29 ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1083
SELECT ALL + + COALESCE ( - 17, 23 * + 38 ) / + CAST( NULL AS SIGNED ) AS col0, 3 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL + + COALESCE ( - 17, 23 * + 38 ) / + CAST ( NULL AS INTEGER ) AS col0, 3 AS col1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT DISTINCT - NULLIF ( 85, - CAST( NULL AS SIGNED ) ) * - ( + 1 ) * - 95 * - - 17 * + ( + ( 95 ) ) AS col1
----
-13041125

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - NULLIF ( 85, - CAST ( NULL AS INTEGER ) ) * - ( + 1 ) * - 95 * - - 17 * + ( + ( 95 ) ) AS col1
----
-13041125

query I rowsort
SELECT ALL + + 63 * - 51 + 72
----
-3141

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

query I rowsort
SELECT + 31 + + 58 + - 81 AS col1
----
8

query I rowsort
SELECT DISTINCT 70 + + ( - 31 ) + - 46
----
-7

query I rowsort
SELECT + 44 * + COALESCE ( + + 77, + + 67, + 3 ) * 1
----
3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT DISTINCT CAST( ( + + ( + 76 ) ) AS SIGNED ) + + 40
----
116

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT CAST ( ( + + ( + 76 ) ) AS INTEGER ) + + 40
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL 28 + - 36 + + - 28 + 12 * - - SUM( - 27 ) + - - 92 - - + ( + 96 ) col0
----
-172

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 28 + - 36 + + - 28 + 12 * - - SUM ( - 27 ) + - - 92 - - + ( + 96 ) col0
----
-172

query I rowsort
SELECT DISTINCT 32 + 70 AS col1
----
102

query I rowsort
SELECT + + 93 + + - 44
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 16 + NULLIF ( - + COUNT( * ), - - COUNT( * ) * - ( - 52 ) + + - 4 ) + - 42 * - - 26 + + 45 * 54 + + CAST( NULL AS SIGNED ) * 84 + + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 16 + NULLIF ( - + COUNT ( * ), - - COUNT ( * ) * - ( - 52 ) + + - 4 ) + - 42 * - - 26 + + 45 * 54 + + CAST ( NULL AS INTEGER ) * 84 + + + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT CASE ( - 31 ) WHEN 42 THEN - ( - 62 ) ELSE - 57 DIV - COUNT( * ) END AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1095
SELECT CASE ( - 31 ) WHEN 42 THEN - ( - 62 ) ELSE - 57 / - COUNT ( * ) END AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT ( 70 ) DIV + - 4 + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1096
SELECT ( 70 ) / + - 4 + COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT ALL 78 * + - 26
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1098
SELECT + MAX( - + 77 ) * ( - NULLIF ( + 1, + 23 ) ) AS col1, + 16 * + 90 * - + 65 / + - 7 + - 84 + CAST( NULL AS DECIMAL ) + + 60 * - 28 * + 42
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT + MAX ( - + 77 ) * ( - NULLIF ( + 1, + 23 ) ) AS col1, + 16 * + 90 * - + 65 / + - 7 + - 84 + CAST ( NULL AS REAL ) + + 60 * - 28 * + 42
----
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - 53 )
----
NULL

query I rowsort
SELECT DISTINCT ( + 73 ) * 96 + + 90 * 62 - - + 21 + + 88 AS col2
----
12697

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL 46 * 95 * 2 - + SUM( - 89 )
----
8829

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 46 * 95 * 2 - + SUM ( - 89 )
----
8829

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT CASE - MIN( ALL + 33 ) WHEN 73 + + NULLIF ( - COUNT( * ), - 44 + - - 36 ) THEN - - 88 WHEN - 71 THEN - 15 * 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT CASE - MIN ( ALL + 33 ) WHEN 73 + + NULLIF ( - COUNT ( * ), - 44 + - - 36 ) THEN - - 88 WHEN - 71 THEN - 15 * 72 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT COUNT( * ) * - + 0 - + 33 + CAST( COALESCE ( - 17, + + 90 + - MAX( + 70 ) ) AS SIGNED ) * 78 * + CASE + 29 WHEN + + COUNT( * ) THEN - + COUNT( * ) * - 12 + + 97 * COUNT( * ) ELSE 0 END col0
----
-33

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT COUNT ( * ) * - + 0 - + 33 + CAST ( COALESCE ( - 17, + + 90 + - MAX ( + 70 ) ) AS INTEGER ) * 78 * + CASE + 29 WHEN + + COUNT ( * ) THEN - + COUNT ( * ) * - 12 + + 97 * COUNT ( * ) ELSE 0 END col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT + CASE - AVG ( ALL + 72 ) WHEN 82 * 72 + - + CAST( + 25 AS SIGNED ) THEN + + ( - 17 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT + CASE - AVG ( ALL + 72 ) WHEN 82 * 72 + - + CAST ( + 25 AS INTEGER ) THEN + + ( - 17 ) END col0
----
NULL

query I rowsort
SELECT ALL 83 * + 38 - 15 AS col2
----
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + COALESCE ( + 1, 77 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1106
SELECT + COALESCE ( + 1, 77 ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + MAX( + 98 ) - - + COUNT( * ) + - 23 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1107
SELECT + MAX ( + 98 ) - - + COUNT ( * ) + - 23 AS col2
----
76

query I rowsort
SELECT + 53 * + 42 * + + 11
----
24486

query I rowsort
SELECT - 59 * - 32 AS col0
----
1888

query I rowsort
SELECT ALL - 3 * + 88
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT 11 DIV COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 11 / COUNT ( * )
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT - - 90 DIV - 84 + + 6 + - - 24 * 41 * - + 75
----
-73795

skipif mysql # not compatible
query I rowsort label-1113
SELECT - - 90 / - 84 + + 6 + - - 24 * 41 * - + 75
----
-73795

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + ( 66 ) * NULLIF ( - MIN( DISTINCT + 75 ), - + 15 + - ( + 47 ) * - + 49 + - 73 )
----
-4950

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + ( 66 ) * NULLIF ( - MIN ( DISTINCT + 75 ), - + 15 + - ( + 47 ) * - + 49 + - 73 )
----
-4950

query I rowsort
SELECT DISTINCT - + ( + 58 ) * - - 57 * + 66 * - COALESCE ( + 6, + 35 - + 83 + - + 4, - 97 ) AS col2
----
1309176

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

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

query I rowsort
SELECT - + 71 + - 46
----
-117

query I rowsort
SELECT - - CASE 46 WHEN - + 90 THEN NULL WHEN - 29 THEN NULL ELSE + 39 END AS col0
----
39

query II rowsort
SELECT - - 91 AS col2, ( - - ( 44 ) ) col0
----
91
44

query I rowsort
SELECT ALL + 43 + 89
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL - 85 + + COUNT( * ) * ( - 85 )
----
-170

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - 85 + + COUNT ( * ) * ( - 85 )
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1122
SELECT ALL + 37 AS col2, - 42 DIV SUM( + + NULLIF ( + 37, NULLIF ( - 11, 59 ) * 77 ) ) + - 49 AS col0
----
37
-50

skipif mysql # not compatible
query II rowsort label-1122
SELECT ALL + 37 AS col2, - 42 / SUM ( + + NULLIF ( + 37, NULLIF ( - 11, 59 ) * 77 ) ) + - 49 AS col0
----
37
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - COUNT( * ) + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1123
SELECT - COUNT ( * ) + 71 AS col1
----
70

query I rowsort
SELECT ALL + 94 * 90
----
8460

query I rowsort
SELECT ALL + 83 + - 58 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT + 91 + - - ( + COUNT( * ) ) + + + 81 * 84 * 95 - COUNT( ALL 82 ) * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + 91 + - - ( + COUNT ( * ) ) + + + 81 * 84 * 95 - COUNT ( ALL 82 ) * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 87, 74 * - 81 * + 66 AS col2
----
87
-395604

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT + + ( CASE - - 78 WHEN - - 13 + ( 80 ) THEN NULL WHEN + 37 / - 79 * + - 29 - CASE + - 70 WHEN - + 25 THEN + 73 - - + 91 WHEN + 83 THEN + 72 END THEN NULL WHEN COUNT( DISTINCT + + 8 ) THEN - 41 - - 76 END ) / + - COUNT( * ) AS col2, + ( - - 18 ) AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-1128
SELECT + + ( CASE - - 78 WHEN - - 13 + ( 80 ) THEN NULL WHEN + 37 / - 79 * + - 29 - CASE + - 70 WHEN - + 25 THEN + 73 - - + 91 WHEN + 83 THEN + 72 END THEN NULL WHEN COUNT ( DISTINCT + + 8 ) THEN - 41 - - 76 END ) / + - COUNT ( * ) AS col2, + ( - - 18 ) AS col0
----
NULL
18

query I rowsort
SELECT + + 64 + + 20
----
84

query I rowsort
SELECT DISTINCT - + 94 * + 99
----
-9306

query III rowsort
SELECT - 67 * + 83 AS col1, + 4 AS col0, + - 49 + - ( - 24 )
----
-5561
4
-25

query II rowsort
SELECT - ( + + 66 ) col0, - 49
----
-66
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT CASE COUNT( * ) WHEN - COALESCE ( - ( 75 ), - 35, - + 2 ) THEN + 91 * - 44 WHEN - - COUNT( * ) THEN NULL WHEN 29 * - 73 + - 22 * 61 * 17 THEN NULL ELSE NULL END / + + NULLIF ( NULLIF ( 83, COUNT( * ) ), + 92 + COUNT( * ) ) - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT CASE COUNT ( * ) WHEN - COALESCE ( - ( 75 ), - 35, - + 2 ) THEN + 91 * - 44 WHEN - - COUNT ( * ) THEN NULL WHEN 29 * - 73 + - 22 * 61 * 17 THEN NULL ELSE NULL END / + + NULLIF ( NULLIF ( 83, COUNT ( * ) ), + 92 + COUNT ( * ) ) - + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT + CASE 16 WHEN 42 THEN NULL WHEN + COUNT( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) / 82 + - 55 THEN - + 1 WHEN CAST( NULL AS SIGNED ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT + CASE 16 WHEN 42 THEN NULL WHEN + COUNT ( * ) * COALESCE ( - 50, NULLIF ( + - 54, 16 * 98 ) ) / 82 + - 55 THEN - + 1 WHEN CAST ( NULL AS INTEGER ) THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT DISTINCT 77 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT 77 / - 65
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT + 89 DIV 88 * 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 89 / 88 * 2 AS col1
----
2

query I rowsort
SELECT 71 * + 8 * - 91 * 18 + 73 col0
----
-930311

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

skipif mysql # not compatible
query I rowsort label-1138
SELECT + COUNT ( * ) - - - COUNT ( * ) * 10 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT CAST( - - 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1139
SELECT CAST ( - - 57 AS INTEGER ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT NULLIF ( 54, 94 * + 18 ) DIV + - 66 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-1140
SELECT NULLIF ( 54, 94 * + 18 ) / + - 66 + + - 56
----
-56

query I rowsort
SELECT ALL + COALESCE ( + 34, + - 37 ) AS col2
----
34

query I rowsort
SELECT DISTINCT 70 * + 1 * + 56 col1
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT + + 60 * + ( SUM( 57 ) ) * + COUNT( CAST( - - 38 AS SIGNED ) )
----
3420

skipif mysql # not compatible
query I rowsort label-1143
SELECT + + 60 * + ( SUM ( 57 ) ) * + COUNT ( CAST ( - - 38 AS INTEGER ) )
----
3420

query I rowsort
SELECT - + 69 + + 31 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + - ( - + ( - - COUNT( * ) ) ) * + + 72 + - 84 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1145
SELECT + - ( - + ( - - COUNT ( * ) ) ) * + + 72 + - 84 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - 37 + + + COUNT( * ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 37 + + + COUNT ( * ) col2
----
-36

query I rowsort
SELECT ALL + - 9 + + 78
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT 65 DIV 4 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT 65 / 4 / 56
----
0

query I rowsort
SELECT ALL - + 96 * + 89 col0
----
-8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + - COUNT( * ) * 65 DIV - 58 + + - 63 * + 12 col2
----
-755

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + - COUNT ( * ) * 65 / - 58 + + - 63 * + 12 col2
----
-755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1151
SELECT + 40 * - - 48 + + 53 + + CASE ( - 61 ) WHEN + 8 THEN NULL WHEN + - CAST( + NULLIF ( - - 27, - 70 ) AS SIGNED ) + - ( - 37 ) DIV - 70 + + + COUNT( * ) THEN AVG ( ALL + 47 ) ELSE 50 END DIV 80 + + ( - 28 )
----
1945

skipif mysql # not compatible
query I rowsort label-1151
SELECT + 40 * - - 48 + + 53 + + CASE ( - 61 ) WHEN + 8 THEN NULL WHEN + - CAST ( + NULLIF ( - - 27, - 70 ) AS INTEGER ) + - ( - 37 ) / - 70 + + + COUNT ( * ) THEN AVG ( ALL + 47 ) ELSE 50 END / 80 + + ( - 28 )
----
1945

query I rowsort
SELECT 43 - 65
----
-22

query I rowsort
SELECT 49 + + + 84
----
133

query II rowsort
SELECT 18 AS col1, - 40 AS col2
----
18
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT - 20 * 86 DIV 46 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - 20 * 86 / 46 AS col1
----
-37

query II rowsort
SELECT ALL 23 AS col1, - 8 + + 53 AS col1
----
23
45

query I rowsort
SELECT ALL 25 * 53 * + + 60
----
79500

query I rowsort
SELECT 74 + ( - 69 )
----
5

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - 30 - - - ( CAST ( NULL AS INTEGER ) ) + + ( 61 )
----
NULL

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

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

query I rowsort
SELECT 58 * + 77
----
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL - 3 * + CAST( + + COUNT( 33 ) AS SIGNED ) * 0 * - + 70 * - 0 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 3 * + CAST ( + + COUNT ( 33 ) AS INTEGER ) * 0 * - + 70 * - 0 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT 31 col0, COALESCE ( - COALESCE ( + + 44, - 91 + + + COUNT( * ), - 77 ), - - 64 + + 15 )
----
31
-44

skipif mysql # not compatible
query II rowsort label-1163
SELECT 31 col0, COALESCE ( - COALESCE ( + + 44, - 91 + + + COUNT ( * ), - 77 ), - - 64 + + 15 )
----
31
-44

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL - 12 * + ( + COUNT ( * ) ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + 58 * - 19 AS col0
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( - 57, - CASE + COUNT( * ) WHEN - 43 + 71 THEN - + 93 ELSE NULL END DIV - NULLIF ( + MIN( 4 ), - + 10 ) + + 12 )
----
57

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( - 57, - CASE + COUNT ( * ) WHEN - 43 + 71 THEN - + 93 ELSE NULL END / - NULLIF ( + MIN ( 4 ), - + 10 ) + + 12 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT ALL + 68 DIV 9 * + SUM( DISTINCT + 36 ) col0
----
252

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + 68 / 9 * + SUM ( DISTINCT + 36 ) col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-1168
SELECT ALL - 47 AS col0, + SUM( ALL + + 17 ) AS col2
----
-47
17

skipif mysql # not compatible
query II rowsort label-1168
SELECT ALL - 47 AS col0, + SUM ( ALL + + 17 ) AS col2
----
-47
17

query I rowsort
SELECT - 39 * 64
----
-2496

query II rowsort
SELECT + - 51, - 55 * + + 0 col1
----
-51
0

query I rowsort
SELECT 44 * - 15 + + 74 AS col0
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT COUNT( * ) - - CASE - CAST( NULL AS SIGNED ) WHEN + + 84 / - 4 * + 38 + COUNT( * ) + 68 THEN - 36 ELSE CAST( NULL AS SIGNED ) END - + ( - - 16 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT COUNT ( * ) - - CASE - CAST ( NULL AS INTEGER ) WHEN + + 84 / - 4 * + 38 + COUNT ( * ) + 68 THEN - 36 ELSE CAST ( NULL AS INTEGER ) END - + ( - - 16 ) col1
----
NULL

query I rowsort
SELECT ALL + 27 * + 31
----
837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT DISTINCT - - 27 + + 80 * + MIN( DISTINCT - 22 ) * COUNT( * ) * ( + - CASE + - 88 WHEN 93 * 80 THEN - 58 - - COUNT( * ) + - + 63 DIV + 18 ELSE 15 DIV 18 END ) * 11 + + MIN( DISTINCT - 94 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - - 27 + + 80 * + MIN ( DISTINCT - 22 ) * COUNT ( * ) * ( + - CASE + - 88 WHEN 93 * 80 THEN - 58 - - COUNT ( * ) + - + 63 / + 18 ELSE 15 / 18 END ) * 11 + + MIN ( DISTINCT - 94 ) col0
----
-67

query II rowsort
SELECT + + 8 AS col1, 5
----
8
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT NULLIF ( + COUNT( * ), + 20 ) + - 55 * + 56
----
-3079

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 20 ) + - 55 * + 56
----
-3079

query I rowsort
SELECT 0 - - 82 - ( - - 18 )
----
64

query II rowsort
SELECT ALL 42, - 6 + + - 28 AS col1
----
42
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT - 93 * + + 4 * + COUNT( * ) + - 23 * - CAST( 30 AS SIGNED ), + NULLIF ( + 15, + - 0 + + - CASE + COUNT( * ) WHEN - - ( + - 25 ) THEN + 38 END ) + - + 3 AS col2
----
318
12

skipif mysql # not compatible
query II rowsort label-1180
SELECT - 93 * + + 4 * + COUNT ( * ) + - 23 * - CAST ( 30 AS INTEGER ), + NULLIF ( + 15, + - 0 + + - CASE + COUNT ( * ) WHEN - - ( + - 25 ) THEN + 38 END ) + - + 3 AS col2
----
318
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - COUNT( * ) - 82 col2
----
-83

skipif mysql # not compatible
query I rowsort label-1181
SELECT - COUNT ( * ) - 82 col2
----
-83

query I rowsort
SELECT 33 * - + 54
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL 21 - - - SUM( 38 ) * + + 23
----
-853

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL 21 - - - SUM ( 38 ) * + + 23
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + 4 + 15 * - SUM( - 76 )
----
1144

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 4 + 15 * - SUM ( - 76 )
----
1144

query I rowsort
SELECT DISTINCT 83 / - 8 * + - 55 + - 37 + + 60 * - 16 * - 16 + + 83 * - + 48 * - CASE 36 WHEN + 96 THEN 44 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 34 * + 87 * 75
----
-221850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1187
SELECT 78 * + - COUNT( * ) * COALESCE ( + 99, - 65 DIV - 67 + 97 + 24 * - 26, - 17 DIV 94, 13 )
----
-7722

skipif mysql # not compatible
query I rowsort label-1187
SELECT 78 * + - COUNT ( * ) * COALESCE ( + 99, - 65 / - 67 + 97 + 24 * - 26, - 17 / 94, 13 )
----
-7722

query I rowsort
SELECT 87 + 61 col1
----
148

onlyif mysql # DIV for integer division: 
query II rowsort label-1189
SELECT ( 98 ) DIV 8 * 72, + 49 AS col2
----
864
49

skipif mysql # not compatible
query II rowsort label-1189
SELECT ( 98 ) / 8 * 72, + 49 AS col2
----
864
49

query I rowsort
SELECT 3 * - - 67
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT 74 + - CASE - ( + + 52 ) WHEN - + 96 * + ( - 27 ) THEN NULL ELSE - 54 * - - 95 * + - CAST( NULL AS SIGNED ) END * 35 * + 67 * COUNT( - 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT 74 + - CASE - ( + + 52 ) WHEN - + 96 * + ( - 27 ) THEN NULL ELSE - 54 * - - 95 * + - CAST ( NULL AS INTEGER ) END * 35 * + 67 * COUNT ( - 16 ) AS col2
----
NULL

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

query I rowsort
SELECT 18 + + - 64
----
-46

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

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

query I rowsort
SELECT ALL + - 30 * - - 46 + + 16
----
-1364

query I rowsort
SELECT DISTINCT 75 * + 64 + + - 2 * 98 AS col2
----
4604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT + 45 * - SUM( DISTINCT - 64 ) * + 58 DIV COUNT( * )
----
167040

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + 45 * - SUM ( DISTINCT - 64 ) * + 58 / COUNT ( * )
----
167040

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL - 4 * + CASE + ( + ( COUNT( * ) ) ) WHEN + ( 2 ) / 12 * - + 96 / + + 24 THEN NULL ELSE - 82 END + + 42
----
370

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - 4 * + CASE + ( + ( COUNT ( * ) ) ) WHEN + ( 2 ) / 12 * - + 96 / + + 24 THEN NULL ELSE - 82 END + + 42
----
370

query I rowsort
SELECT - 95 * - 27 * 44 AS col0
----
112860

query I rowsort
SELECT - 39 * - 48 AS col0
----
1872

query I rowsort
SELECT - + 40 * + 37 + + 36 AS col2
----
-1444

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

skipif mysql # not compatible
query I rowsort label-1202
SELECT + + 34 * - COUNT ( * ) / - 38 + + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1203
SELECT + + 76 + - + 25 + - ( CAST( + 55 AS SIGNED ) ) - CAST( NULL AS SIGNED ) / + 55 * 77 * - COUNT( DISTINCT - ( - + 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT + + 76 + - + 25 + - ( CAST ( + 55 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) / + 55 * 77 * - COUNT ( DISTINCT - ( - + 88 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT + - MAX( DISTINCT - + 67 ) * - 72 * + 33 + 46, + 88 * - 30 + - - 34 AS col0
----
-159146
-2606

skipif mysql # not compatible
query II rowsort label-1204
SELECT + - MAX ( DISTINCT - + 67 ) * - 72 * + 33 + 46, + 88 * - 30 + - - 34 AS col0
----
-159146
-2606

query I rowsort
SELECT + 70 * + 85 + 46 * - 32 + + 16 + - ( - 80 )
----
4574

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - COUNT( DISTINCT + - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-1206
SELECT - COUNT ( DISTINCT + - 73 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1207
SELECT - CAST( NULL AS SIGNED ) * - 55 * CASE + - 98 WHEN 38 THEN NULL WHEN + 33 * - 53 + + - 55 THEN CASE + - 86 WHEN - CAST( NULL AS DECIMAL ) + 13 THEN NULL WHEN + 62 THEN - MAX( 6 ) / - 53 + CAST( NULL AS DECIMAL ) END END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT - CAST ( NULL AS INTEGER ) * - 55 * CASE + - 98 WHEN 38 THEN NULL WHEN + 33 * - 53 + + - 55 THEN CASE + - 86 WHEN - CAST ( NULL AS REAL ) + 13 THEN NULL WHEN + 62 THEN - MAX ( 6 ) / - 53 + CAST ( NULL AS REAL ) END END + - COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + ( 97 ) * + + COUNT ( * ) AS col2
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT - 84 - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-1210
SELECT - 84 - COUNT ( * )
----
-85

query I rowsort
SELECT + ( 60 ) + - 51
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT - 60 DIV - 54 * COUNT( * ) * ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1213
SELECT - 60 / - 54 * COUNT ( * ) * ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - COALESCE ( + 51, + 1 DIV + 31 + - 54, - + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1214
SELECT - COALESCE ( + 51, + 1 / + 31 + - 54, - + COUNT ( * ) )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ALL 12 DIV - - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 12 / - - 90 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 40 + + 2 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL COALESCE ( + 46, + 62 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * 63 + 52 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL COALESCE ( + 46, + 62 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 63 + 52 ) AS col1
----
46

query I rowsort
SELECT ALL 6 + + + 16 col1
----
22

query I rowsort
SELECT - 18 + - + 38
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT + 88 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1221
SELECT + 88 / + 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL 0 + + 66 + + + ( + + 21 ) + - 41 + + MAX( - 83 ) * + 28 - COUNT( * ) / + COUNT( * ) / 96 * - CASE - 68 WHEN + - 39 * + - 57 THEN NULL WHEN + ( - + 45 ) THEN + - 68 * 57 / + 21 + - + 47 + + 67 END * + 72 + - SUM( DISTINCT - - 9 ) * + + 79 - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL 0 + + 66 + + + ( + + 21 ) + - 41 + + MAX ( - 83 ) * + 28 - COUNT ( * ) / + COUNT ( * ) / 96 * - CASE - 68 WHEN + - 39 * + - 57 THEN NULL WHEN + ( - + 45 ) THEN + - 68 * 57 / + 21 + - + 47 + + 67 END * + 72 + - SUM ( DISTINCT - - 9 ) * + + 79 - + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT CAST( + - 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1223
SELECT CAST ( + - 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - 93 / - + CAST( NULL AS SIGNED ) + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - 93 / - + CAST ( NULL AS INTEGER ) + - 60 col0
----
NULL

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

query I rowsort
SELECT DISTINCT + + 27 * 23 + - - CASE - 23 WHEN + - 17 THEN - NULLIF ( - ( + 32 ), + 26 - - 66 + + 80 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1227
SELECT - - 78 * + COUNT( * ) + + - NULLIF ( - 2, + 55 * - + 49 + - 91 ) DIV + + 85 DIV - + 13 + + 11 + + 74, 12 AS col1
----
163
12

skipif mysql # not compatible
query II rowsort label-1227
SELECT - - 78 * + COUNT ( * ) + + - NULLIF ( - 2, + 55 * - + 49 + - 91 ) / + + 85 / - + 13 + + 11 + + 74, 12 AS col1
----
163
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT - - COUNT( - 15 ) * + 13 + + 75 + + 92
----
180

skipif mysql # not compatible
query I rowsort label-1228
SELECT - - COUNT ( - 15 ) * + 13 + + 75 + + 92
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT COUNT( - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1229
SELECT COUNT ( - 30 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1231
SELECT + - 71, ( - + 2 ) DIV 11 AS col1
----
-71
0

skipif mysql # not compatible
query II rowsort label-1231
SELECT + - 71, ( - + 2 ) / 11 AS col1
----
-71
0

query I rowsort
SELECT - - NULLIF ( - 37, 29 ) * - 77 + + 19 AS col0
----
2868

query I rowsort
SELECT - 59 - + + 78
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1234
SELECT DISTINCT + - CAST( - - MAX( ALL 57 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + - CAST ( - - MAX ( ALL 57 ) AS INTEGER ) * CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT + SUM( DISTINCT - - 74 ) * MIN( DISTINCT 9 ) AS col0
----
666

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT + SUM ( DISTINCT - - 74 ) * MIN ( DISTINCT 9 ) AS col0
----
666

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1237
SELECT ALL + + 18 * + 23 + 44, 43 + 28 + + - CAST( NULL AS SIGNED ) + 34 * 40 AS col2
----
458
NULL

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL + + 18 * + 23 + 44, 43 + 28 + + - CAST ( NULL AS INTEGER ) + 34 * 40 AS col2
----
458
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - 66 - + 42 * + 80 + - COUNT( * ) * + 54 - - + 15 AS col1
----
-66
-3187

skipif mysql # not compatible
query II rowsort label-1239
SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - 66 - + 42 * + 80 + - COUNT ( * ) * + 54 - - + 15 AS col1
----
-66
-3187

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

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

query I rowsort
SELECT - - 79 - - - NULLIF ( + 13, - 55 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT - 2 DIV - COUNT( * )
----
2

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

query III rowsort
SELECT - 67 col0, - 2 AS col0, 32 * - - 55
----
-67
-2
1760

query I rowsort
SELECT + ( 99 ) * 68
----
6732

query I rowsort
SELECT + 43 * + + 20 AS col1
----
860

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

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

query II rowsort
SELECT - ( 10 ) AS col0, 80 AS col1
----
-10
80

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT DISTINCT - 71 + - + COUNT( * ) * - 33
----
-38

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT - 71 + - + COUNT ( * ) * - 33
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + 7 + SUM( DISTINCT + - 32 )
----
-25

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 7 + SUM ( DISTINCT + - 32 )
----
-25

query I rowsort
SELECT DISTINCT + 99 * + 75
----
7425

query I rowsort
SELECT ALL ( + - 68 ) + - 55 AS col0
----
-123

query I rowsort
SELECT ALL + 81 * - 56
----
-4536

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

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

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT + 18 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-18

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

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

query II rowsort
SELECT - 99, + ( 88 ) AS col1
----
-99
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT 99 - - 72 + + SUM( - 68 )
----
103

skipif mysql # not compatible
query I rowsort label-1260
SELECT 99 - - 72 + + SUM ( - 68 )
----
103

query II rowsort
SELECT DISTINCT 3 AS col1, 19 AS col0
----
3
19

query I rowsort
SELECT ALL + 9 - + + 54
----
-45

query I rowsort
SELECT 18 + - 21 + 54
----
51

query I rowsort
SELECT ALL + NULLIF ( 69, 44 + + 57 ) - 42
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT - 28 DIV + 29 * - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - 28 / + 29 * - 9 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1266
SELECT - + 74 * + CAST( + 56 AS SIGNED ) * + 43 - 28
----
-178220

skipif mysql # not compatible
query I rowsort label-1266
SELECT - + 74 * + CAST ( + 56 AS INTEGER ) * + 43 - 28
----
-178220

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + CASE - + 72 WHEN - - 84 - - ( 28 ) THEN 92 + COUNT( * ) WHEN 80 THEN NULL END * - SUM( DISTINCT NULLIF ( 0, + 52 * + - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT + CASE - + 72 WHEN - - 84 - - ( 28 ) THEN 92 + COUNT ( * ) WHEN 80 THEN NULL END * - SUM ( DISTINCT NULLIF ( 0, + 52 * + - 42 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + COALESCE ( - SUM( - 94 ), + 59 - + ( - + MAX( DISTINCT - 46 ) ) + - 71 * COUNT( * ) ) + + 50 + + - COUNT( - + 73 ) * - - 66
----
78

skipif mysql # not compatible
query I rowsort label-1268
SELECT + COALESCE ( - SUM ( - 94 ), + 59 - + ( - + MAX ( DISTINCT - 46 ) ) + - 71 * COUNT ( * ) ) + + 50 + + - COUNT ( - + 73 ) * - - 66
----
78

query I rowsort
SELECT - 91 + - 63 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT 39 * + NULLIF ( MIN( ALL - 5 ), + - CAST( NULL AS SIGNED ) * + 7 ) + - 19 * COUNT( * ) + MAX( - CAST( NULL AS SIGNED ) ) + + - 0 + + 71 + COUNT( * ) / 61 * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT 39 * + NULLIF ( MIN ( ALL - 5 ), + - CAST ( NULL AS INTEGER ) * + 7 ) + - 19 * COUNT ( * ) + MAX ( - CAST ( NULL AS INTEGER ) ) + + - 0 + + 71 + COUNT ( * ) / 61 * - 15 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + NULLIF ( - MAX( DISTINCT 52 ), AVG ( + - 90 ) ) * - 8
----
416

skipif mysql # not compatible
query I rowsort label-1271
SELECT + NULLIF ( - MAX ( DISTINCT 52 ), AVG ( + - 90 ) ) * - 8
----
416

query I rowsort
SELECT 98 * 2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1273
SELECT COUNT( * ) * - 95 + + SUM( + - CAST( NULL AS SIGNED ) ), 79 * - 63 - COUNT( * ) * + COUNT( * ) AS col0
----
NULL
-4978

skipif mysql # not compatible
query II rowsort label-1273
SELECT COUNT ( * ) * - 95 + + SUM ( + - CAST ( NULL AS INTEGER ) ), 79 * - 63 - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL
-4978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1274
SELECT 29 DIV 85 AS col0, COALESCE ( 22, COUNT( * ) + + 93 + - COALESCE ( + 25, - 83, + ( 36 ) * + ( + 61 ) - - + 39 * 20 ) ) * + - 69 * + COUNT( * ) + - COUNT( * ) + + + COUNT( * ) - - COUNT( * ) * + ( - AVG ( ALL - 5 ) ) * - NULLIF ( - CAST( NULL AS SIGNED ), 79 * - - 35 + - 23 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1274
SELECT 29 / 85 AS col0, COALESCE ( 22, COUNT ( * ) + + 93 + - COALESCE ( + 25, - 83, + ( 36 ) * + ( + 61 ) - - + 39 * 20 ) ) * + - 69 * + COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) - - COUNT ( * ) * + ( - AVG ( ALL - 5 ) ) * - NULLIF ( - CAST ( NULL AS INTEGER ), 79 * - - 35 + - 23 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - 57 + + 89 - ( + ( 23 ) ) * - 29 * + COUNT( * ) * - COUNT( * ) col0
----
-635

skipif mysql # not compatible
query I rowsort label-1275
SELECT - 57 + + 89 - ( + ( 23 ) ) * - 29 * + COUNT ( * ) * - COUNT ( * ) col0
----
-635

query I rowsort
SELECT ALL + 43 * + - 83 AS col0
----
-3569

query I rowsort
SELECT 77 + + 79 + ( + 51 ) * - - 54 AS col1
----
2910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT - 56, 96 - + CASE + COUNT( 96 ) WHEN 89 - - 99 THEN COALESCE ( - 17, + 20, - 16, SUM( DISTINCT + CAST( - 59 AS SIGNED ) ) ) WHEN + 96 THEN - 70 END * + 15 AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-1278
SELECT - 56, 96 - + CASE + COUNT ( 96 ) WHEN 89 - - 99 THEN COALESCE ( - 17, + 20, - 16, SUM ( DISTINCT + CAST ( - 59 AS INTEGER ) ) ) WHEN + 96 THEN - 70 END * + 15 AS col1
----
-56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT DISTINCT - + COUNT( * ) col2, - 22 * - - 34 * 76 + ( - COUNT( DISTINCT - 58 ) )
----
-1
-56849

skipif mysql # not compatible
query II rowsort label-1279
SELECT DISTINCT - + COUNT ( * ) col2, - 22 * - - 34 * 76 + ( - COUNT ( DISTINCT - 58 ) )
----
-1
-56849

query I rowsort
SELECT + COALESCE ( + 53, - 4 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1281
SELECT DISTINCT - 29 AS col0, - CAST( - ( + 7 ) AS SIGNED ) AS col2
----
-29
7

skipif mysql # not compatible
query II rowsort label-1281
SELECT DISTINCT - 29 AS col0, - CAST ( - ( + 7 ) AS INTEGER ) AS col2
----
-29
7

query I rowsort
SELECT + 50 * - 78 col0
----
-3900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 94 / - CASE + ( - 50 ) WHEN + 62 + + COUNT( * ) THEN + + 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT 94 / - CASE + ( - 50 ) WHEN + 62 + + COUNT ( * ) THEN + + 88 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 58 + - - 68 AS col2
----
10

query I rowsort
SELECT 77 * + 70
----
5390

query I rowsort
SELECT ALL 37 * + - 11 * 10
----
-4070

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT COUNT( * ) * + 33 * + 67 + + - ( + + 71 ), - 10 + + - 74 AS col1
----
2140
-84

skipif mysql # not compatible
query II rowsort label-1289
SELECT COUNT ( * ) * + 33 * + 67 + + - ( + + 71 ), - 10 + + - 74 AS col1
----
2140
-84

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

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

query I rowsort
SELECT DISTINCT - 67 * 11 AS col1
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL - SUM( - + 0 ) + + ( - 51 ) - - + SUM( 22 )
----
-29

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - SUM ( - + 0 ) + + ( - 51 ) - - + SUM ( 22 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + 95 + 97 * + - COUNT( * ) * + 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + 95 + 97 * + - COUNT ( * ) * + 1 AS col0
----
-2

query I rowsort
SELECT 77 - + + ( - + 43 ) * + 78 + 14 + 17 AS col0
----
3462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT 22 DIV + - COUNT( + 32 )
----
-22

skipif mysql # not compatible
query I rowsort label-1295
SELECT 22 / + - COUNT ( + 32 )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT ALL - COUNT( * ) DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - COUNT ( * ) / 24
----
0

query I rowsort
SELECT 93 * + 20 AS col1
----
1860

query I rowsort
SELECT 28 + + + 79 * + 54
----
4294

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL + MIN( DISTINCT 72 ) * + 67 AS col2
----
4824

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + MIN ( DISTINCT 72 ) * + 67 AS col2
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT - COUNT( ALL + + 2 ) - - + 88 * - 29 - - - 21 col0
----
-2574

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - COUNT ( ALL + + 2 ) - - + 88 * - 29 - - - 21 col0
----
-2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT COALESCE ( + CAST( 92 AS SIGNED ), - COUNT( * ), 5, + MIN( - COALESCE ( - NULLIF ( - + 27, + 86 ), + 20 ) ) ) - 99 / + + 73 * CASE - + 24 WHEN - 59 / 30 THEN + + 81 * - COUNT( * ) + - - 16 WHEN 18 THEN NULL END * - + 97 / 27 - + 51 + + - CASE CAST( NULL AS SIGNED ) WHEN 58 THEN 87 WHEN - 9 THEN + + 13 ELSE - 54 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT COALESCE ( + CAST ( 92 AS INTEGER ), - COUNT ( * ), 5, + MIN ( - COALESCE ( - NULLIF ( - + 27, + 86 ), + 20 ) ) ) - 99 / + + 73 * CASE - + 24 WHEN - 59 / 30 THEN + + 81 * - COUNT ( * ) + - - 16 WHEN 18 THEN NULL END * - + 97 / 27 - + 51 + + - CASE CAST ( NULL AS INTEGER ) WHEN 58 THEN 87 WHEN - 9 THEN + + 13 ELSE - 54 END col2
----
NULL

query I rowsort
SELECT ALL - 50 * + ( - 26 )
----
1300

query I rowsort
SELECT DISTINCT + - 5 - + - 69 AS col2
----
64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + MIN( DISTINCT 73 ) * - 42
----
-3066

skipif mysql # not compatible
query I rowsort label-1306
SELECT + MIN ( DISTINCT 73 ) * - 42
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - 55 * 66 + - 8 * - 62 + - 74 + COUNT( * )
----
-3207

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 55 * 66 + - 8 * - 62 + - 74 + COUNT ( * )
----
-3207

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT - 4 * + COUNT( * ) AS col1, + 71 col2
----
-4
71

skipif mysql # not compatible
query II rowsort label-1308
SELECT - 4 * + COUNT ( * ) AS col1, + 71 col2
----
-4
71

query I rowsort
SELECT ALL - 71 * 57 - + 27
----
-4074

query I rowsort
SELECT ALL 25 + + 14 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL 37 + NULLIF ( COUNT( * ), + 6 * - 63 + + - SUM( ALL - - 75 ) + - 10 / 44 ) + 61 * - 66 * - COUNT( * ) + 35 + + SUM( + 47 )
----
4146

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 37 + NULLIF ( COUNT ( * ), + 6 * - 63 + + - SUM ( ALL - - 75 ) + - 10 / 44 ) + 61 * - 66 * - COUNT ( * ) + 35 + + SUM ( + 47 )
----
4146

query I rowsort
SELECT DISTINCT 96 * - + 71 AS col2
----
-6816

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT ALL - 58, + ( - - SUM( ALL + + ( - 74 ) ) ) col1
----
-58
-74

skipif mysql # not compatible
query II rowsort label-1313
SELECT ALL - 58, + ( - - SUM ( ALL + + ( - 74 ) ) ) col1
----
-58
-74

query I rowsort
SELECT ALL 89 + - + 24 AS col0
----
65

query I rowsort
SELECT - 77 - + - ( - 35 ) AS col2
----
-112

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

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

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

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

query I rowsort
SELECT - 53 - 77
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - 18 + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 18 + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT 82 * COUNT( * ) * - 89 * + 2
----
-14596

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT 82 * COUNT ( * ) * - 89 * + 2
----
-14596

query II rowsort
SELECT ALL 98 AS col0, 39 + 4
----
98
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CASE + 34 WHEN AVG ( + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 98 THEN NULL ELSE - - 73 * 53 * - 70 END AS col2
----
-270830

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CASE + 34 WHEN AVG ( + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 98 THEN NULL ELSE - - 73 * 53 * - 70 END AS col2
----
-270830

query I rowsort
SELECT - 11 * - - 83 AS col1
----
-913

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL SUM ( CAST ( + CAST ( 13 AS INTEGER ) AS INTEGER ) ) AS col1
----
13

query I rowsort
SELECT + 99 + + 74 + + 71 AS col1
----
244

query I rowsort
SELECT - NULLIF ( + + 13, - + 70 )
----
-13

query I rowsort
SELECT - 50 + + 78 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT - 89 + - 9 DIV - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 89 + - 9 / - COUNT ( * ) AS col0
----
-80

query II rowsort
SELECT - + 35 col1, 40 col0
----
-35
40

query I rowsort
SELECT - - 82 + - + 4 + 16 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1332
SELECT ALL + + 11 DIV COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + + 11 / COUNT ( * ) col0
----
11

query I rowsort
SELECT - + 7 + - + 60 - - 35 AS col0
----
-32

query I rowsort
SELECT ALL - 27 + + 43 * 50 AS col0
----
2123

query I rowsort
SELECT DISTINCT 65 * 83 + - + 87 * COALESCE ( + 95, - NULLIF ( - 50, + 82 ) ) AS col2
----
-2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT 48 * - CASE ( - MIN( 78 ) ) WHEN - - 23 THEN COALESCE ( - + ( + 1 ), + 78 ) + + COUNT( DISTINCT - 18 ) + COUNT( * ) * + 82 + - - CAST( - 78 AS SIGNED ) WHEN - 1 THEN NULL END * 95 + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT 48 * - CASE ( - MIN ( 78 ) ) WHEN - - 23 THEN COALESCE ( - + ( + 1 ), + 78 ) + + COUNT ( DISTINCT - 18 ) + COUNT ( * ) * + 82 + - - CAST ( - 78 AS INTEGER ) WHEN - 1 THEN NULL END * 95 + - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT - NULLIF ( + + 91, 80 ) DIV - 65 + + - 16 + + + 77 * + COUNT( * ) + - - MAX( 51 )
----
113

skipif mysql # not compatible
query I rowsort label-1337
SELECT - NULLIF ( + + 91, 80 ) / - 65 + + - 16 + + + 77 * + COUNT ( * ) + - - MAX ( 51 )
----
113

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

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

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

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

query II rowsort
SELECT + 57 AS col1, 59 col1
----
57
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT ALL + 56 * NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - 48 ) + - - 62 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + 56 * NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - 48 ) + - - 62 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT + - COUNT( * ) + + 29 + - - 13 + 25 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1342
SELECT + - COUNT ( * ) + + 29 + - - 13 + 25 AS col1
----
66

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

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

query I rowsort
SELECT ALL 13 * 51 + + - 52 + NULLIF ( - 19, + 22 ) - - 83 col2
----
675

query I rowsort
SELECT + ( - 41 ) * + + 52 * + 44 col2
----
-93808

query I rowsort
SELECT + COALESCE ( + 28, 18 * + 30 + 4 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1347
SELECT ALL CAST( NULL AS DECIMAL ) * + 53 + - 43 + + + 40 AS col0, + COUNT( * ) + 78
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1347
SELECT ALL CAST ( NULL AS REAL ) * + 53 + - 43 + + + 40 AS col0, + COUNT ( * ) + 78
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1348
SELECT - CASE + COUNT( * ) WHEN - 93 DIV 76 THEN + CAST( NULL AS SIGNED ) ELSE - 3 - ( - 66 ) - 52 END DIV + 75 + - - 42
----
42

skipif mysql # not compatible
query I rowsort label-1348
SELECT - CASE + COUNT ( * ) WHEN - 93 / 76 THEN + CAST ( NULL AS INTEGER ) ELSE - 3 - ( - 66 ) - 52 END / + 75 + - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT CASE 42 WHEN - - COALESCE ( 98, - + 10, + - 95 * - 11 ) THEN + 56 * + + 56 + - 17 WHEN - - 45 * + 80 * - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT CASE 42 WHEN - - COALESCE ( 98, - + 10, + - 95 * - 11 ) THEN + 56 * + + 56 + - 17 WHEN - - 45 * + 80 * - - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + 30 + + 81
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT ALL COUNT( * ) * 56, - 50 * - 57 + + MAX( - 30 ) AS col2
----
56
2820

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL COUNT ( * ) * 56, - 50 * - 57 + + MAX ( - 30 ) AS col2
----
56
2820

query I rowsort
SELECT DISTINCT 6 * + + 38
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT + COUNT( * ) * ( - - 25 ) - + 45 + + + 43
----
23

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT + COUNT ( * ) * ( - - 25 ) - + 45 + + + 43
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COUNT( + + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( + + 28 ) AS col0
----
1

query II rowsort
SELECT DISTINCT COALESCE ( - 85, 14 * - - 11 - 21 + + 66 - 10 ), 95 AS col2
----
-85
95

query I rowsort
SELECT ALL CASE - - 40 WHEN + - 14 - 3 * - 25 THEN NULL ELSE + - ( + 20 ) + 60 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT 96 * COUNT( * ) * - 0 - - + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1357
SELECT 96 * COUNT ( * ) * - 0 - - + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - 5 + - 56 * 36 + - + COUNT( * )
----
-2022

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 5 + - 56 * 36 + - + COUNT ( * )
----
-2022

query I rowsort
SELECT + + COALESCE ( 52, - + 50 + + + 8 + + 92 * + 78 * + 57 ) * + 70 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT + + 78 - - 57 AS col1, COUNT( * )
----
135
1

skipif mysql # not compatible
query II rowsort label-1360
SELECT + + 78 - - 57 AS col1, COUNT ( * )
----
135
1

query I rowsort
SELECT ALL 93 + + + 79 * - 91 + + + 8 * 46 AS col0
----
-6728

query I rowsort
SELECT DISTINCT + 34 + + 13 AS col0
----
47

query I rowsort
SELECT ALL - - ( 35 ) + - 29 * + 52
----
-1473

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT + - COALESCE ( - COUNT( * ), COUNT( * ) * - 67 + 55 * + - 48 ) DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT + - COALESCE ( - COUNT ( * ), COUNT ( * ) * - 67 + 55 * + - 48 ) / + 96 AS col2
----
0

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

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

query I rowsort
SELECT + CASE - ( - - ( - 57 ) ) WHEN 10 + 27 THEN NULL WHEN + + 47 * - + 5 THEN + 84 END col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 93, + - 59 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - COUNT( * ) * - 42 + 21 col1
----
63

skipif mysql # not compatible
query I rowsort label-1369
SELECT - COUNT ( * ) * - 42 + 21 col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT ALL 96 DIV 95 * - SUM( ALL 60 ) + + 29
----
-31

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL 96 / 95 * - SUM ( ALL 60 ) + + 29
----
-31

query II rowsort
SELECT ALL + 49 * - - 95 AS col2, 50 AS col0
----
4655
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1372
SELECT ALL 91 / - + 21 * - 21 * + 66 + + 15 * COUNT( * ) + - 4 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL 91 / - + 21 * - 21 * + 66 + + 15 * COUNT ( * ) + - 4 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT + 59 * 12 / - 40 * - 36 * + CAST( NULL AS SIGNED ) + + + 19 + + 91 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 59 * 12 / - 40 * - 36 * + CAST ( NULL AS INTEGER ) + + + 19 + + 91 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT 3 * + COALESCE ( - 35, - ( - MAX( ALL 89 ) ) + - + 44 )
----
-105

skipif mysql # not compatible
query I rowsort label-1374
SELECT 3 * + COALESCE ( - 35, - ( - MAX ( ALL 89 ) ) + - + 44 )
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT DISTINCT + 36 * - - NULLIF ( - 6, + COUNT( * ) / 87 + COUNT( * ) ) AS col1, - 19 + - 37 - 24 - - COUNT( * ) - - 98 - + 40 * MAX( DISTINCT - 82 ) * NULLIF ( - 85, - - 81 ) + - 27 * - 43 + - - COUNT( * ) + 15 * - 43 + 0
----
-216
-278264

skipif mysql # not compatible
query II rowsort label-1375
SELECT DISTINCT + 36 * - - NULLIF ( - 6, + COUNT ( * ) / 87 + COUNT ( * ) ) AS col1, - 19 + - 37 - 24 - - COUNT ( * ) - - 98 - + 40 * MAX ( DISTINCT - 82 ) * NULLIF ( - 85, - - 81 ) + - 27 * - 43 + - - COUNT ( * ) + 15 * - 43 + 0
----
-216
-278264

query I rowsort
SELECT 86 + 31 * + - ( + - 55 ) AS col2
----
1791

query I rowsort
SELECT 93 * + 88
----
8184

query I rowsort
SELECT COALESCE ( 52, + 26 * 95 * + 10 + + 70 ) * - 56 AS col1
----
-2912

query I rowsort
SELECT 2 - 31
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - 21 * - - MIN( ALL - - 36 ) + ( 28 ) AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 21 * - - MIN ( ALL - - 36 ) + ( 28 ) AS col2
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL ( - 96 ) DIV 24 * - + 79 AS col1
----
316

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL ( - 96 ) / 24 * - + 79 AS col1
----
316

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT DISTINCT - CAST( - - 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - CAST ( - - 5 AS INTEGER ) AS col1
----
-5

query II rowsort
SELECT 65 AS col0, 25
----
65
25

query I rowsort
SELECT ALL ( - - COALESCE ( + - CASE + 24 WHEN 65 THEN NULL ELSE - 67 END, 29 * 10 * + 81 + 55, - + 26 + 10 ) ) * - - 4 * + 1
----
268

query I rowsort
SELECT 1 * - + 97 + - 69 col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT COUNT( * ) - - COUNT( * ) * SUM( - 94 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1387
SELECT COUNT ( * ) - - COUNT ( * ) * SUM ( - 94 ) AS col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-1388
SELECT - 50, + 49 + 54 + + + 85 + + + 23 DIV 64 AS col1
----
-50
188

skipif mysql # not compatible
query II rowsort label-1388
SELECT - 50, + 49 + 54 + + + 85 + + + 23 / 64 AS col1
----
-50
188

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT 62 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-1389
SELECT 62 / + - 54
----
-1

query I rowsort
SELECT ALL 22 + - - 10
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1391
SELECT ALL 38 DIV - + CAST( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 38 / - + CAST ( COALESCE ( + 50, - + 66, - - ( + 94 ) + + - 23 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - COALESCE ( - 47, - 98 * - MAX( + 24 ) + 45 + - - COUNT( * ) + - MAX( + - 92 ) + - ( + NULLIF ( - MAX( - + 16 ), CASE 88 WHEN + - ( + 57 ) + + - 5 * - 55 + 47 * + ( 33 ) + - - ( + ( - - ( - 50 ) ) ) * 32 THEN - COUNT( * ) ELSE - 27 END + - - 45 ) ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1392
SELECT - COALESCE ( - 47, - 98 * - MAX ( + 24 ) + 45 + - - COUNT ( * ) + - MAX ( + - 92 ) + - ( + NULLIF ( - MAX ( - + 16 ), CASE 88 WHEN + - ( + 57 ) + + - 5 * - 55 + 47 * + ( 33 ) + - - ( + ( - - ( - 50 ) ) ) * 32 THEN - COUNT ( * ) ELSE - 27 END + - - 45 ) ) ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT ALL + CAST( + 1 AS SIGNED ) + + 27 * + 75 AS col1
----
2026

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + CAST ( + 1 AS INTEGER ) + + 27 * + 75 AS col1
----
2026

query I rowsort
SELECT ALL 82 + - 34 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT + NULLIF ( + ( 52 ), - - 45 + + 38 + + + 71 * - - 64 * 18 / 10 / 25 / + 7 * - 28 + - MAX( + 89 ) / - + 59 ) AS col2, 42 AS col2
----
52
42

skipif mysql # not compatible
query II rowsort label-1395
SELECT + NULLIF ( + ( 52 ), - - 45 + + 38 + + + 71 * - - 64 * 18 / 10 / 25 / + 7 * - 28 + - MAX ( + 89 ) / - + 59 ) AS col2, 42 AS col2
----
52
42

query I rowsort
SELECT + 74 + + - 89
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT 77 + - 95 * 54 / - COALESCE ( + 60, - COUNT( * ) ) * 77 + - CASE - 41 WHEN - 36 THEN 28 / - 54 ELSE - 80 + + 54 END * - CASE + 52 WHEN + 22 THEN + 90 WHEN 43 * + 13 THEN NULL ELSE NULL END - + COUNT( * ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT 77 + - 95 * 54 / - COALESCE ( + 60, - COUNT ( * ) ) * 77 + - CASE - 41 WHEN - 36 THEN 28 / - 54 ELSE - 80 + + 54 END * - CASE + 52 WHEN + 22 THEN + 90 WHEN 43 * + 13 THEN NULL ELSE NULL END - + COUNT ( * ) + + 65
----
NULL

query I rowsort
SELECT - 57 * - 20 AS col0
----
1140

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1400
SELECT - 10 + + - ( 88 ) AS col2, 56 DIV + - 85 AS col1
----
-98
0

skipif mysql # not compatible
query II rowsort label-1400
SELECT - 10 + + - ( 88 ) AS col2, 56 / + - 85 AS col1
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT 70 * 66 * - ( + SUM( ALL + - 33 ) ) col0
----
152460

skipif mysql # not compatible
query I rowsort label-1401
SELECT 70 * 66 * - ( + SUM ( ALL + - 33 ) ) col0
----
152460

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT ALL 84 DIV + 90 + 90
----
90

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL 84 / + 90 + 90
----
90

query I rowsort
SELECT DISTINCT - COALESCE ( + 5, 50 * + 87 )
----
-5

query II rowsort
SELECT 47 + + 85 + + + 49 col2, 78
----
181
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT + 72 / + + 43 * + + 58 + - 48 * 36 / + - 59 - - 35 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 72 / + + 43 * + + 58 + - 48 * 36 / + - 59 - - 35 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - + 12 ) + + - 86 + ( + 18 ) + - - 41 AS col1
----
-39

query II rowsort
SELECT ALL - 41 col0, + 39 col2
----
-41
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT 12 + + + 77 DIV - 22 + + - 38 DIV 81
----
9

skipif mysql # not compatible
query I rowsort label-1408
SELECT 12 + + + 77 / - 22 + + - 38 / 81
----
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT ALL - MAX( DISTINCT 32 ) DIV - 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - MAX ( DISTINCT 32 ) / - 13 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT 93 DIV + + 5
----
18

skipif mysql # not compatible
query I rowsort label-1411
SELECT 93 / + + 5
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1412
SELECT 28 * - 38 * 95 * CAST( ( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * - AVG ( + + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT 28 * - 38 * 95 * CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) * - AVG ( + + 63 )
----
NULL

query I rowsort
SELECT 12 + + 79
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL 24 DIV + + 9
----
2

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 24 / + + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL - CASE + + 48 WHEN 54 THEN NULL WHEN + + 28 * 34 - + 40 / + COUNT( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - CASE + + 48 WHEN 54 THEN NULL WHEN + + 28 * 34 - + 40 / + COUNT ( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL - CASE - + ( + 93 ) WHEN - ( + 78 ) * - CAST( - - 8 AS SIGNED ) * + + NULLIF ( - COUNT( * ), + 84 ) * - + 1 THEN - 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - CASE - + ( + 93 ) WHEN - ( + 78 ) * - CAST ( - - 8 AS INTEGER ) * + + NULLIF ( - COUNT ( * ), + 84 ) * - + 1 THEN - 25 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT COUNT( - 86 ) * - + 74 * 55 DIV - + 54 + + + SUM( ALL + 88 ) + + 86 AS col0
----
249

skipif mysql # not compatible
query I rowsort label-1417
SELECT COUNT ( - 86 ) * - + 74 * 55 / - + 54 + + + SUM ( ALL + 88 ) + + 86 AS col0
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT ALL - 73 AS col1, MIN( ALL - - 46 ) * 7 - + 67 + 66 + 41 - - 6 DIV + 35 + - + 81
----
-73
281

skipif mysql # not compatible
query II rowsort label-1418
SELECT ALL - 73 AS col1, MIN ( ALL - - 46 ) * 7 - + 67 + 66 + 41 - - 6 / + 35 + - + 81
----
-73
281

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

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

query II rowsort
SELECT 7 AS col2, + 34 col1
----
7
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT 18 * + + COUNT( - 42 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1421
SELECT 18 * + + COUNT ( - 42 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT CASE + 13 WHEN + 31 * - 54 + - CAST( - COUNT( * ) AS SIGNED ) - 23 + 22 * + 21 + 44 / + 30 * - 38 / CASE + COUNT( * ) WHEN - + ( + 48 ) THEN + + 95 / + + 21 ELSE - - MAX( ALL 35 ) END THEN NULL ELSE - 95 END * + 29 AS col0
----
-2755

skipif mysql # not compatible
query I rowsort label-1422
SELECT CASE + 13 WHEN + 31 * - 54 + - CAST ( - COUNT ( * ) AS INTEGER ) - 23 + 22 * + 21 + 44 / + 30 * - 38 / CASE + COUNT ( * ) WHEN - + ( + 48 ) THEN + + 95 / + + 21 ELSE - - MAX ( ALL 35 ) END THEN NULL ELSE - 95 END * + 29 AS col0
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1423
SELECT DISTINCT + CAST( - NULLIF ( COUNT( * ), + 49 * + 79 + - 50 ) AS SIGNED ) + 26 + + 39 - + - MIN( ALL - 15 ) * MIN( + 28 ) col2, - MAX( 83 ) AS col0
----
-356
-83

skipif mysql # not compatible
query II rowsort label-1423
SELECT DISTINCT + CAST ( - NULLIF ( COUNT ( * ), + 49 * + 79 + - 50 ) AS INTEGER ) + 26 + + 39 - + - MIN ( ALL - 15 ) * MIN ( + 28 ) col2, - MAX ( 83 ) AS col0
----
-356
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - MIN( + - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - MIN ( + - 51 ) AS col0
----
51

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

query I rowsort
SELECT ALL - 6 + - 12 col1
----
-18

query I rowsort
SELECT DISTINCT - COALESCE ( - + 9, - 93 ) col2
----
9

query II rowsort
SELECT ALL - 8, 7 AS col0
----
-8
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT DISTINCT - COUNT( ALL + 95 ) + - - 88 + - 76 + + COALESCE ( 91, COUNT( * ) * - CAST( + 33 AS SIGNED ) + + COUNT( * ) - ( + CAST( - - 30 AS SIGNED ) ) )
----
102

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - COUNT ( ALL + 95 ) + - - 88 + - 76 + + COALESCE ( 91, COUNT ( * ) * - CAST ( + 33 AS INTEGER ) + + COUNT ( * ) - ( + CAST ( - - 30 AS INTEGER ) ) )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL + - 4 + + + COUNT( * ) * - 26
----
-30

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + - 4 + + + COUNT ( * ) * - 26
----
-30

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT 36 * + - 84 * - ( COUNT ( * ) ) AS col2
----
3024

query II rowsort
SELECT ALL - CASE + 90 WHEN + 14 THEN 87 + 36 ELSE NULL END + - 27 + - 34 AS col2, + 28 + - 92 * + 73 col0
----
NULL
-6688

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT 54 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT 54 / 88 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 67 ) + 72 AS col2
----
139

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

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

query I rowsort
SELECT ALL + 73 + + + 67
----
140

query I rowsort
SELECT ALL 16 + - ( + - 27 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT - + 50 * - 56 * - + 69 * + - 20 * + + COUNT( * ) + - 81 + + COUNT( * ) * 44 + COUNT( + 94 )
----
3863964

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - + 50 * - 56 * - + 69 * + - 20 * + + COUNT ( * ) + - 81 + + COUNT ( * ) * 44 + COUNT ( + 94 )
----
3863964

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT ( + 91 ) DIV + 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT ( + 91 ) / + 81 AS col2
----
1

query I rowsort
SELECT ALL 61 - + 53 + - 74 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1441
SELECT - + 49 AS col0, 1 * + - 21 * + ( - CAST( + 45 AS SIGNED ) ) * + - 44 * - + 82 - + - 29 + COUNT( * ) AS col1
----
-49
3409590

skipif mysql # not compatible
query II rowsort label-1441
SELECT - + 49 AS col0, 1 * + - 21 * + ( - CAST ( + 45 AS INTEGER ) ) * + - 44 * - + 82 - + - 29 + COUNT ( * ) AS col1
----
-49
3409590

query I rowsort
SELECT + + 94 * + 2
----
188

query II rowsort
SELECT - + 95 AS col2, 12
----
-95
12

query I rowsort
SELECT ALL 27 - - + 60
----
87

query I rowsort
SELECT + 25 * - + ( 15 )
----
-375

query I rowsort
SELECT - 31 * 56 AS col0
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1447
SELECT CASE + COALESCE ( + - 50, - COUNT( * ), + CAST( - + CASE - + COALESCE ( - 30, - 4 * 52 + + MIN( CAST( NULL AS DECIMAL ) ), + 20 * - - AVG ( + 9 ) * - - 20 + - COALESCE ( + - 60, + 29, - + 15 + - + 82 / 28 / + COUNT( + 0 ) + - + CAST( NULL AS SIGNED ) ) + + 4 / 63 * - 69 + + 55 * - 68 + 22 + + COUNT( * ), ( - CAST( - - 0 AS SIGNED ) ) - - + SUM( + - 90 ) / - + NULLIF ( COUNT( * ), + - NULLIF ( CAST( NULL AS SIGNED ), + 88 ) + - 40 ) ) WHEN 42 THEN 33 WHEN + AVG ( DISTINCT + + COALESCE ( 5, + 55 ) ) / 96 + + 74 THEN 10 ELSE NULL END AS DECIMAL ), 89 * - 10 ) WHEN 90 * + 98 THEN - 13 + - NULLIF ( - 11, - 73 * COALESCE ( + 87, + 13 * + 63 ) + - COALESCE ( 51 + + CASE COUNT( * ) WHEN CAST( 48 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 39 ELSE - 23 * + SUM( - 30 ) END, 94 ) * + 1 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT CASE + COALESCE ( + - 50, - COUNT ( * ), + CAST ( - + CASE - + COALESCE ( - 30, - 4 * 52 + + MIN ( CAST ( NULL AS REAL ) ), + 20 * - - AVG ( + 9 ) * - - 20 + - COALESCE ( + - 60, + 29, - + 15 + - + 82 / 28 / + COUNT ( + 0 ) + - + CAST ( NULL AS INTEGER ) ) + + 4 / 63 * - 69 + + 55 * - 68 + 22 + + COUNT ( * ), ( - CAST ( - - 0 AS INTEGER ) ) - - + SUM ( + - 90 ) / - + NULLIF ( COUNT ( * ), + - NULLIF ( CAST ( NULL AS INTEGER ), + 88 ) + - 40 ) ) WHEN 42 THEN 33 WHEN + AVG ( DISTINCT + + COALESCE ( 5, + 55 ) ) / 96 + + 74 THEN 10 ELSE NULL END AS REAL ), 89 * - 10 ) WHEN 90 * + 98 THEN - 13 + - NULLIF ( - 11, - 73 * COALESCE ( + 87, + 13 * + 63 ) + - COALESCE ( 51 + + CASE COUNT ( * ) WHEN CAST ( 48 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 39 ELSE - 23 * + SUM ( - 30 ) END, 94 ) * + 1 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 54 * + 23, + 91 AS col1
----
1242
91

query I rowsort
SELECT DISTINCT 83 * + 60 col2
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + 95 * + MIN( DISTINCT - + ( - - 39 ) ) AS col2
----
-3705

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 95 * + MIN ( DISTINCT - + ( - - 39 ) ) AS col2
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT + NULLIF ( + CAST( 22 AS SIGNED ), - COUNT( * ) * + + SUM( ALL 46 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1451
SELECT + NULLIF ( + CAST ( 22 AS INTEGER ), - COUNT ( * ) * + + SUM ( ALL 46 ) ) AS col2
----
22

query I rowsort
SELECT DISTINCT 18 * - ( + 97 )
----
-1746

query II rowsort
SELECT - 13 * - NULLIF ( + + COALESCE ( - 32, + + 38, - 47 * + 94 ), - 10 ) * - + NULLIF ( + 98, - - 10 * - + 12 * - 3 * + 48 ) + + - 94, 47 AS col1
----
40674
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + 29 * COUNT( * ) + - ( + 77 )
----
-48

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + 29 * COUNT ( * ) + - ( + 77 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT 37 DIV + 85 + - - 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-1455
SELECT 37 / + 85 + - - 82 col0
----
82

query I rowsort
SELECT - 65 * 6
----
-390

query I rowsort
SELECT + NULLIF ( 49, + 68 + 11 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + 35 + - MIN( ALL - + 88 ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1458
SELECT + 35 + - MIN ( ALL - + 88 ) AS col0
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + COUNT( * ) * + - 68 + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - 68 + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL - 35 * - COUNT( * ) + 47
----
82

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL - 35 * - COUNT ( * ) + 47
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT DISTINCT CASE - + 52 WHEN - 90 THEN NULL ELSE - ( COALESCE ( 27, - 54 + - 23 ) ) + - - 77 END DIV - 30 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT CASE - + 52 WHEN - 90 THEN NULL ELSE - ( COALESCE ( 27, - 54 + - 23 ) ) + - - 77 END / - 30 + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL - COALESCE ( - COUNT( ALL + 44 ), + 2, 67 ) * COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - COALESCE ( - COUNT ( ALL + 44 ), + 2, 67 ) * COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - + COALESCE ( - - 20, - 42 ) * - 0 AS col0
----
0

query I rowsort
SELECT - CASE + - 23 WHEN - 49 - - NULLIF ( - 21, + 90 ) + + - 13 THEN + 68 END AS col1
----
NULL

query I rowsort
SELECT ALL ( - 45 ) col2
----
-45

query I rowsort
SELECT DISTINCT - NULLIF ( + - 11, - 94 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL - CAST( - - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - CAST ( - - 53 AS INTEGER )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL 45 * + 83 + + 64 * + COUNT( * ) * + - CAST( NULL AS SIGNED ) + - - 20 * + - MIN( - ( - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL 45 * + 83 + + 64 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - - 20 * + - MIN ( - ( - 65 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - CASE - - ( + 65 ) WHEN - - CASE 3 WHEN - 64 * - 22 THEN + COUNT( ALL 69 ) ELSE NULL END THEN NULL WHEN - COUNT( DISTINCT ( + + 54 ) ) THEN - AVG ( DISTINCT + - 52 ) + + ( - 63 ) * 99 / + ( 11 ) + + ( + 90 ) WHEN ( - + ( 65 ) ) * - 49 THEN NULL WHEN - 48 THEN - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT - CASE - - ( + 65 ) WHEN - - CASE 3 WHEN - 64 * - 22 THEN + COUNT ( ALL 69 ) ELSE NULL END THEN NULL WHEN - COUNT ( DISTINCT ( + + 54 ) ) THEN - AVG ( DISTINCT + - 52 ) + + ( - 63 ) * 99 / + ( 11 ) + + ( + 90 ) WHEN ( - + ( 65 ) ) * - 49 THEN NULL WHEN - 48 THEN - 66 END
----
NULL

query II rowsort
SELECT + 33 * + 30 col1, 89 AS col0
----
990
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - 72 + + MIN( DISTINCT + 66 ) + + 4 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 72 + + MIN ( DISTINCT + 66 ) + + 4 AS col2
----
-2

query I rowsort
SELECT ALL - + 72 * 95 + + 92 AS col2
----
-6748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT - 43 + + + ( + - CAST( + 82 AS SIGNED ) )
----
-125

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 43 + + + ( + - CAST ( + 82 AS INTEGER ) )
----
-125

query I rowsort
SELECT ALL + 95 * + 4 col0
----
380

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT + 19 + MIN( ALL + 55 ) AS col0, ( - + 70 )
----
74
-70

skipif mysql # not compatible
query II rowsort label-1475
SELECT + 19 + MIN ( ALL + 55 ) AS col0, ( - + 70 )
----
74
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT ALL - 32 * COUNT( * ) * 19, 45 * 22 col0
----
-608
990

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL - 32 * COUNT ( * ) * 19, 45 * 22 col0
----
-608
990

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

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

query I rowsort
SELECT DISTINCT - 23 * + 80
----
-1840

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL ( + 29 ) DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL ( + 29 ) / - + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT CAST( + + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-1480
SELECT CAST ( + + 8 AS INTEGER )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT DISTINCT - 1 DIV + 60 + ( - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - 1 / + 60 + ( - 57 ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT ALL + 18 DIV 6 + 10 * + + ( - + 26 ) + - - 95
----
-162

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + 18 / 6 + 10 * + + ( - + 26 ) + - - 95
----
-162

query I rowsort
SELECT + 35 * - 20 AS col0
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + NULLIF ( COUNT( ALL + - 61 ), - + 85 / + + 58 + - 36 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT + NULLIF ( COUNT ( ALL + - 61 ), - + 85 / + + 58 + - 36 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT CAST( + + NULLIF ( - 16, + COUNT( * ) * 91 * 70 ) AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1485
SELECT CAST ( + + NULLIF ( - 16, + COUNT ( * ) * 91 * 70 ) AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT SUM( 5 ) * + 41
----
205

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT SUM ( 5 ) * + 41
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT ALL 83 DIV - 11 + + SUM( DISTINCT - - 49 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL 83 / - 11 + + SUM ( DISTINCT - - 49 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL 89 DIV + ( - - 54 ) + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 89 / + ( - - 54 ) + + 80 AS col1
----
81

query I rowsort
SELECT + 5 * - 30
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT ALL - 91 DIV - + ( - ( - 38 ) ) + 19
----
21

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - 91 / - + ( - ( - 38 ) ) + 19
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT COALESCE ( + 24, + 52, 65 * + 30 ) * + 14 AS col1, 90 * COUNT( * )
----
336
90

skipif mysql # not compatible
query II rowsort label-1491
SELECT DISTINCT COALESCE ( + 24, + 52, 65 * + 30 ) * + 14 AS col1, 90 * COUNT ( * )
----
336
90

query I rowsort
SELECT ALL 64 * 2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + 69 * SUM( DISTINCT 1 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 69 * SUM ( DISTINCT 1 ) AS col0
----
69

query II rowsort
SELECT 45 AS col1, 27 AS col0
----
45
27

query I rowsort
SELECT - + 53 + - - ( ( + 58 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + + MIN( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + + MIN ( 27 ) AS col1
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT ALL + ( - CASE + + 67 WHEN + 15 THEN + + 10 + 22 ELSE + 91 END ) DIV - 40 + + + ( - - 82 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + ( - CASE + + 67 WHEN + 15 THEN + + 10 + 22 ELSE + 91 END ) / - 40 + + + ( - - 82 ) col1
----
84

query I rowsort
SELECT - 3 * - 79
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - + MIN( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-1500
SELECT - + MIN ( 21 )
----
-21

query I rowsort
SELECT 1 - + + 28
----
-27

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

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

query I rowsort
SELECT + 26 + 71 col2
----
97

query II rowsort
SELECT DISTINCT + 19 AS col2, + 60 + 96 * + - 21 * + 65 AS col0
----
19
-130980

query I rowsort
SELECT ALL - 71 * - + ( - 77 )
----
-5467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT + SUM( DISTINCT + 30 ) * + - COUNT( ALL - 80 ) * + 52 - + CAST( 66 AS SIGNED ) AS col2
----
-1626

skipif mysql # not compatible
query I rowsort label-1506
SELECT + SUM ( DISTINCT + 30 ) * + - COUNT ( ALL - 80 ) * + 52 - + CAST ( 66 AS INTEGER ) AS col2
----
-1626

query I rowsort
SELECT ALL + - 78 * - 49 * + 94 AS col2
----
359268

query II rowsort
SELECT 12 * 91 AS col1, - 55 * 40 col0
----
1092
-2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1509
SELECT ALL - 36 + + 84 AS col1, COUNT( * ) * - - NULLIF ( + - 19, 49 ) * - 76 * + CAST( NULL AS SIGNED ) * - + 88 + - ( + 65 ) * - + 53 * NULLIF ( ( + + NULLIF ( + + 30, + 46 ) ), - - 66 ) col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1509
SELECT ALL - 36 + + 84 AS col1, COUNT ( * ) * - - NULLIF ( + - 19, 49 ) * - 76 * + CAST ( NULL AS INTEGER ) * - + 88 + - ( + 65 ) * - + 53 * NULLIF ( ( + + NULLIF ( + + 30, + 46 ) ), - - 66 ) col2
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL ( + + 47 ) * + COUNT( * ) + + 81 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL ( + + 47 ) * + COUNT ( * ) + + 81 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT COUNT( * ) * - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( * ) * - 51 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT ALL + ( 96 ) DIV 55 + - - 8
----
9

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + ( 96 ) / 55 + - - 8
----
9

query I rowsort
SELECT ALL - ( + 21 ) + + 87
----
66

query I rowsort
SELECT ALL + 46 * + 21 AS col1
----
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT - CAST( AVG ( + 21 ) AS SIGNED ) + 92 + 54 + + ( - - 81 )
----
206

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - CAST ( AVG ( + 21 ) AS INTEGER ) + 92 + 54 + + ( - - 81 )
----
206

query I rowsort
SELECT 27 - + 41 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL 24 + - COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL 24 + - COUNT ( * ) col2
----
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1519
SELECT COUNT( * ) DIV + 12 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-1519
SELECT COUNT ( * ) / + 12 * - 93
----
0

query I rowsort
SELECT 72 - + - 74
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT - 72 DIV 28 + + + 59 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1521
SELECT - 72 / 28 + + + 59 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT MIN( DISTINCT - 10 ) * 36 AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-1522
SELECT MIN ( DISTINCT - 10 ) * 36 AS col2
----
-360

onlyif mysql # DIV for integer division: 
query II rowsort label-1523
SELECT 52 * 25 + - 33 DIV - + 4, + 69 AS col2
----
1308
69

skipif mysql # not compatible
query II rowsort label-1523
SELECT 52 * 25 + - 33 / - + 4, + 69 AS col2
----
1308
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT CASE - + 79 WHEN 15 + COUNT( * ) THEN NULL WHEN + 91 * + + 26 THEN 36 * + 38 * - COALESCE ( + - 23, 58 ) + - + 50 END + + - 27 * - 42 * + AVG ( - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT CASE - + 79 WHEN 15 + COUNT ( * ) THEN NULL WHEN + 91 * + + 26 THEN 36 * + 38 * - COALESCE ( + - 23, 58 ) + - + 50 END + + - 27 * - 42 * + AVG ( - + 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT ALL 82 * COUNT( * ) DIV + 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 82 * COUNT ( * ) / + 69 AS col0
----
1

query I rowsort
SELECT - 52 + - 4 + - 74 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - SUM( ALL 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1527
SELECT - SUM ( ALL 46 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT 39 * + - 44 * - + 73
----
125268

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

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

query I rowsort
SELECT + 27 * 53 + - 94 AS col1
----
1337

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT COALESCE ( COUNT( * ), - 92 DIV 0 + - - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-1532
SELECT COALESCE ( COUNT ( * ), - 92 / 0 + - - 43 )
----
1

query II rowsort
SELECT ( + + 77 ) + - ( + + 87 ) AS col1, 73
----
-10
73

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT 39 + + CASE + + 57 WHEN + MAX( - - 12 ) THEN NULL ELSE - ( - COUNT( * ) ) END * - - ( + + 86 ) - 93
----
32

skipif mysql # not compatible
query I rowsort label-1537
SELECT 39 + + CASE + + 57 WHEN + MAX ( - - 12 ) THEN NULL ELSE - ( - COUNT ( * ) ) END * - - ( + + 86 ) - 93
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT COUNT( ALL - + CAST( NULL AS SIGNED ) ) + 97 + + 27 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + 97 + + 27 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT - + 5 + - COALESCE ( + - COUNT( * ), ( 91 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - + 5 + - COALESCE ( + - COUNT ( * ), ( 91 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + MAX( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + MAX ( ALL + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL + NULLIF ( COUNT( * ), + 66 ) + + ( + 91 ) + - - MAX( ALL + 62 )
----
154

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + NULLIF ( COUNT ( * ), + 66 ) + + ( + 91 ) + - - MAX ( ALL + 62 )
----
154

query I rowsort
SELECT 2 + + ( + 87 )
----
89

query I rowsort
SELECT 37 - - 44 * + 42
----
1885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT DISTINCT 95 + - 54 + + COUNT( ALL - 57 ) - - + 51 DIV + + 94 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT 95 + - 54 + + COUNT ( ALL - 57 ) - - + 51 / + + 94 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT 47 * - - COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1545
SELECT 47 * - - COUNT ( * ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT DISTINCT + CAST( NULLIF ( 26, 46 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + CAST ( NULLIF ( 26, 46 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 8
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1547
SELECT ALL - NULLIF ( + - 93, - + 51 ) + + NULLIF ( - - 20, - 95 + - CAST( NULL AS DECIMAL ) - - 98 * + 90 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - NULLIF ( + - 93, - + 51 ) + + NULLIF ( - - 20, - 95 + - CAST ( NULL AS REAL ) - - 98 * + 90 ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT 27 + + - 98 * - 67 + - CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
6592

skipif mysql # not compatible
query I rowsort label-1548
SELECT 27 + + - 98 * - 67 + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
6592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL - 70 + + CASE ( + 70 ) WHEN + 65 + 54 / + - 79 THEN NULL WHEN - + CAST( NULL AS SIGNED ) + - + NULLIF ( 45, 88 ) THEN 65 * + 85 - + 68 WHEN + 57 THEN 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 70 + + CASE ( + 70 ) WHEN + 65 + 54 / + - 79 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + - + NULLIF ( 45, 88 ) THEN 65 * + 85 - + 68 WHEN + 57 THEN 58 ELSE NULL END
----
NULL

query II rowsort
SELECT 56 + + 38 * - - 59 AS col1, + 76 AS col2
----
2298
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT + 40 AS col2, + 28 * + 9 - - MAX( - 94 )
----
40
158

skipif mysql # not compatible
query II rowsort label-1551
SELECT + 40 AS col2, + 28 * + 9 - - MAX ( - 94 )
----
40
158

query I rowsort
SELECT NULLIF ( 76, - 57 ) AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1553
SELECT ALL + 16 DIV + MAX( 23 ), 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-1553
SELECT ALL + 16 / + MAX ( 23 ), 73 AS col0
----
0
73

query I rowsort
SELECT 52 * + NULLIF ( - 87, - 2 ) AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT ALL - NULLIF ( + 20, - + 65 ), - COUNT( * ) col2
----
-20
-1

skipif mysql # not compatible
query II rowsort label-1555
SELECT ALL - NULLIF ( + 20, - + 65 ), - COUNT ( * ) col2
----
-20
-1

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col2
----
-6

query I rowsort
SELECT DISTINCT - 98 * - 29
----
2842

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1560
SELECT - ( + 76 ) * CASE 40 WHEN - 58 - 99 THEN 4 * - 91 ELSE - COUNT( * ) / CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT - ( + 76 ) * CASE 40 WHEN - 58 - 99 THEN 4 * - 91 ELSE - COUNT ( * ) / CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT - 69 * 5 AS col2
----
-345

query I rowsort
SELECT COALESCE ( + 42, 77, 69 * 85 + + 15 ) * - 30 - 95 AS col2
----
-1355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - ( ( - 53 ) ) * - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1564
SELECT - ( ( - 53 ) ) * - COUNT ( * ) AS col1
----
-53

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT MAX ( 12 )
----
12

query I rowsort
SELECT ALL 62 + - 65 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + 44 + COALESCE ( 73, CAST( NULL AS SIGNED ) ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 44 + COALESCE ( 73, CAST ( NULL AS INTEGER ) ) AS col1
----
117

query I rowsort
SELECT DISTINCT ( 76 ) * 4
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT + MAX( DISTINCT + 32 ) + - NULLIF ( + 69, 98 ) * + 64 AS col2
----
-4384

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT + MAX ( DISTINCT + 32 ) + - NULLIF ( + 69, 98 ) * + 64 AS col2
----
-4384

query I rowsort
SELECT + 79 * 54 AS col1
----
4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL CAST( - 42 AS SIGNED ) * - 54
----
2268

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL CAST ( - 42 AS INTEGER ) * - 54
----
2268

query I rowsort
SELECT ALL 8 + + 77 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1573
SELECT - CASE 29 WHEN CAST( - CASE COUNT( * ) WHEN 74 THEN COUNT( * ) * 15 END AS DECIMAL ) THEN + MAX( DISTINCT - 94 ) ELSE 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-1573
SELECT - CASE 29 WHEN CAST ( - CASE COUNT ( * ) WHEN 74 THEN COUNT ( * ) * 15 END AS REAL ) THEN + MAX ( DISTINCT - 94 ) ELSE 57 END
----
-57

query I rowsort
SELECT + 90 + 92 col0
----
182

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) + 25
----
NULL

query I rowsort
SELECT ALL 54 * 20 AS col0
----
1080

query I rowsort
SELECT + 66 + - 94 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT ALL ( COUNT( * ) ) + 92 DIV 45
----
3

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL ( COUNT ( * ) ) + 92 / 45
----
3

query I rowsort
SELECT ALL 7 + - 35 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + 13 * - SUM( - 40 )
----
520

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 13 * - SUM ( - 40 )
----
520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1581
SELECT + 30 DIV + CAST( - 95 * + 15 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT + 30 / + CAST ( - 95 * + 15 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1582
SELECT - CASE - COUNT( ALL + ( 61 ) ) WHEN + CAST( NULL AS DECIMAL ) + + 59 THEN NULLIF ( 39, CASE + 40 WHEN ( + 86 ) - ( + 0 ) THEN - NULLIF ( 4, NULLIF ( COUNT( * ), - 56 ) * 69 ) * - 3 WHEN - 7 + CAST( + 88 AS SIGNED ) / - 97 THEN NULL WHEN 37 THEN NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT - CASE - COUNT ( ALL + ( 61 ) ) WHEN + CAST ( NULL AS REAL ) + + 59 THEN NULLIF ( 39, CASE + 40 WHEN ( + 86 ) - ( + 0 ) THEN - NULLIF ( 4, NULLIF ( COUNT ( * ), - 56 ) * 69 ) * - 3 WHEN - 7 + CAST ( + 88 AS INTEGER ) / - 97 THEN NULL WHEN 37 THEN NULL END ) END
----
NULL

query I rowsort
SELECT ALL ( + 68 ) - + 11 AS col1
----
57

query I rowsort
SELECT ALL - 83 * + 12
----
-996

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

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

query I rowsort
SELECT ALL - 74 - + 32 AS col0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT + 0 DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 0 / 10
----
0

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT COUNT ( * ) / 53 col0
----
0

query I rowsort
SELECT DISTINCT 99 * 30
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL + 11 * + MAX( ALL - 62 ) AS col1
----
-682

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + 11 * + MAX ( ALL - 62 ) AS col1
----
-682

query I rowsort
SELECT + ( 38 ) - + 69
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT + CAST( - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1592
SELECT + CAST ( - 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT ALL + + CAST( 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + + CAST ( 32 AS INTEGER )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT - 43 * - NULLIF ( + 20 DIV 99, + 95 DIV 79 )
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT - 43 * - NULLIF ( + 20 / 99, + 95 / 79 )
----
0

query I rowsort
SELECT + + 2 * 45 + - 48 * 7
----
-246

query I rowsort
SELECT 45 * + 85 + 34 * 44 AS col1
----
5321

query I rowsort
SELECT - 70 - 15 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL - + 38 DIV + 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - + 38 / + 98 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT + + 28 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT + + 28 / 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - COUNT( * ) + + 85 * 53
----
4504

skipif mysql # not compatible
query I rowsort label-1600
SELECT - COUNT ( * ) + + 85 * 53
----
4504

query I rowsort
SELECT DISTINCT + - 58 * 30 + - 40
----
-1780

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - + 46 / + COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT DISTINCT - 15 * MAX( CAST( NULL AS SIGNED ) ) + + SUM( ALL 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT - 15 * MAX ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL 98 ) AS col2
----
NULL

query I rowsort
SELECT - + 1 * + 57 + - 83
----
-140

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

query I rowsort
SELECT - 79 * + 9 + 44
----
-667

query I rowsort
SELECT ALL + 36 * + 92 + - 39 AS col2
----
3273

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT - 7 * 12 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - 7 * 12 + COUNT ( * )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT ALL + ( 56 ) DIV - 14
----
-4

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + ( 56 ) / - 14
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT + 42 * - 13 * NULLIF ( COUNT( * ), 54 + 47 ) + COALESCE ( ( + 48 ), 96, + 3 * + 67, COUNT( * ) ) * + 13
----
78

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + 42 * - 13 * NULLIF ( COUNT ( * ), 54 + 47 ) + COALESCE ( ( + 48 ), 96, + 3 * + 67, COUNT ( * ) ) * + 13
----
78

query I rowsort
SELECT - 30 + + - 97 + 94
----
-33

query I rowsort
SELECT - 89 * + 41 AS col1
----
-3649

query I rowsort
SELECT ALL 1 * COALESCE ( 99, - 20 + - 54 ) AS col0
----
99

query I rowsort
SELECT ALL + ( 44 ) - 80 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - CASE - ( - 73 ) WHEN 84 THEN NULL WHEN COALESCE ( - 62, COUNT( * ) ) THEN NULL ELSE + 45 END
----
-45

skipif mysql # not compatible
query I rowsort label-1615
SELECT - CASE - ( - 73 ) WHEN 84 THEN NULL WHEN COALESCE ( - 62, COUNT ( * ) ) THEN NULL ELSE + 45 END
----
-45

query I rowsort
SELECT - 94 + - + 88
----
-182

query I rowsort
SELECT - 53 * - 84
----
4452

query I rowsort
SELECT + 59 * - + 53 AS col1
----
-3127

query I rowsort
SELECT ALL 65 * + 19 AS col2
----
1235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1620
SELECT - 71 + + - CAST( NULL AS DECIMAL ) + 68 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT - 71 + + - CAST ( NULL AS REAL ) + 68 * - 75
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT + 76 - COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 23 * + CASE WHEN 79 IS NULL THEN - 80 + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 23 * + CASE WHEN 79 IS NULL THEN - 80 + - COUNT ( * ) END AS col0
----
NULL

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

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

query I rowsort
SELECT + 41 + + + 68 - 7 * 57 * 48
----
-19043

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL MIN( + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL MIN ( + 19 ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT ALL 87 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 87 / + 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT COUNT( - 1 ) + - COUNT( ALL ( - 13 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT COUNT ( - 1 ) + - COUNT ( ALL ( - 13 ) )
----
0

query I rowsort
SELECT - 32 + + - 61 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT - 96 DIV 28 DIV - MAX( DISTINCT - 79 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - 96 / 28 / - MAX ( DISTINCT - 79 ) + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL 15 + - + 61 + 70 DIV 90
----
-46

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL 15 + - + 61 + 70 / 90
----
-46

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COUNT ( * ) / - MAX ( ALL + 68 ) + - 1
----
-1

query I rowsort
SELECT ALL 28 * 72 * - 34 col2
----
-68544

query I rowsort
SELECT + 98 * - + 1 AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT SUM( ALL + - 38 ) + + 62 DIV - MIN( + 19 * 31 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1634
SELECT SUM ( ALL + - 38 ) + + 62 / - MIN ( + 19 * 31 ) AS col0
----
-38

query I rowsort
SELECT ALL + 88 + + 2 AS col0
----
90

query I rowsort
SELECT - 32 * - 19 + - 45 AS col0
----
563

query I rowsort
SELECT ALL - 13 + + 8 AS col2
----
-5

query I rowsort
SELECT ALL - NULLIF ( + 83, 79 ) + + 9 AS col1
----
-74

query I rowsort
SELECT DISTINCT - 11 + - 99 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT COALESCE ( + 49, 0 * - 25 + MIN( + 91 ), + 17 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1640
SELECT COALESCE ( + 49, 0 * - 25 + MIN ( + 91 ), + 17 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT - 35 DIV + 37 * 53 - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 35 / + 37 * 53 - 21 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT + 70 * - + 23 * CASE + 83 WHEN + MAX( 27 ) * - 20 + 22 THEN - 56 + COALESCE ( 88, - 63 / - COUNT( * ) ) / - 96 END + - CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 70 * - + 23 * CASE + 83 WHEN + MAX ( 27 ) * - 20 + 22 THEN - 56 + COALESCE ( 88, - 63 / - COUNT ( * ) ) / - 96 END + - CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT - + 69 DIV + COALESCE ( 41, + 66 DIV CAST( - AVG ( ALL + 93 ) AS SIGNED ) + ( 56 ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - + 69 / + COALESCE ( 41, + 66 / CAST ( - AVG ( ALL + 93 ) AS INTEGER ) + ( 56 ) ) + - COUNT ( * )
----
-2

query I rowsort
SELECT + 97 * 58 * + 61
----
343186

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + 12 - + SUM( 30 ) + + 63 * 27 AS col0
----
1683

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + 12 - + SUM ( 30 ) + + 63 * 27 AS col0
----
1683

query I rowsort
SELECT + 37 * 98 AS col2
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT ALL - 55 - 68 + + 12 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL - 55 - 68 + + 12 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 61 ) * + + 76 - + 11
----
-4647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL - NULLIF ( CAST( + CAST( 39 AS SIGNED ) AS SIGNED ), 98 * COUNT( * ) + 29 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - NULLIF ( CAST ( + CAST ( 39 AS INTEGER ) AS INTEGER ), 98 * COUNT ( * ) + 29 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT - ( - - ( - 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - COUNT( * ) * - MIN( ALL - ( + 61 ) ) * NULLIF ( 6 * - 48, NULLIF ( COUNT( 83 ), COALESCE ( 60, - 10 ) - 25 ) ) + + 14 col1
----
17582

skipif mysql # not compatible
query I rowsort label-1651
SELECT - COUNT ( * ) * - MIN ( ALL - ( + 61 ) ) * NULLIF ( 6 * - 48, NULLIF ( COUNT ( 83 ), COALESCE ( 60, - 10 ) - 25 ) ) + + 14 col1
----
17582

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT 66 DIV - + 30
----
-2

skipif mysql # not compatible
query I rowsort label-1652
SELECT 66 / - + 30
----
-2

query I rowsort
SELECT 36 * - - 65
----
2340

query I rowsort
SELECT 75 * 23
----
1725

query II rowsort
SELECT 24 AS col0, + ( + ( - 72 ) )
----
24
-72

query II rowsort
SELECT DISTINCT 89, 85 AS col0
----
89
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT 46 + 37 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 46 + 37 * + COUNT ( * )
----
83

query I rowsort
SELECT 90 * - + 86
----
-7740

query I rowsort
SELECT DISTINCT 3 + 76
----
79

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

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

query I rowsort
SELECT + 52 * 21 * + - 30
----
-32760

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL 22 + - - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT - NULLIF ( + 61, - 78 / + 92 )
----
-61

query I rowsort
SELECT 67 - - 60
----
127

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT MIN ( - - 51 )
----
51

query I rowsort
SELECT ALL 49 + + 64 * + 87 + 62
----
5679

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT - 88 * - 73 * + COUNT( * ) - + 97 AS col2
----
6327

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 88 * - 73 * + COUNT ( * ) - + 97 AS col2
----
6327

query II rowsort
SELECT ALL - - 62 AS col1, + 34 AS col0
----
62
34

query I rowsort
SELECT 59 * 59 AS col2
----
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + 54 * + - 89 * + + ( MIN( 87 ) )
----
-418122

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 54 * + - 89 * + + ( MIN ( 87 ) )
----
-418122

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT ALL + 90 DIV - - 12
----
7

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + 90 / - - 12
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT - 8 DIV - COUNT( * ) + - 7 col1
----
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT - 8 / - COUNT ( * ) + - 7 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT NULLIF ( - - 48, - 87 ) * - 52 - COUNT( * ) * 71 AS col2
----
-2567

skipif mysql # not compatible
query I rowsort label-1673
SELECT NULLIF ( - - 48, - 87 ) * - 52 - COUNT ( * ) * 71 AS col2
----
-2567

query I rowsort
SELECT - 34 + + - 33 - - - ( + 84 )
----
-151

query II rowsort
SELECT 60 AS col1, ( + - 69 ) * + 24 AS col0
----
60
-1656

query I rowsort
SELECT DISTINCT + 38 * - 4 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + COUNT( * ) * + 33 + - 21 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1677
SELECT + COUNT ( * ) * + 33 + - 21 AS col1
----
12

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1680
SELECT + MIN( - 70 ) AS col0, + COUNT( * ) AS col2
----
-70
1

skipif mysql # not compatible
query II rowsort label-1680
SELECT + MIN ( - 70 ) AS col0, + COUNT ( * ) AS col2
----
-70
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT 75 + + 42 - - - CAST( + 60 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1681
SELECT 75 + + 42 - - - CAST ( + 60 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ( - SUM( + 73 ) ) * - COUNT( * ) * 61 + - 41 col2
----
4412

skipif mysql # not compatible
query I rowsort label-1682
SELECT ( - SUM ( + 73 ) ) * - COUNT ( * ) * 61 + - 41 col2
----
4412

query I rowsort
SELECT 81 * - 18
----
-1458

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL + 79 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + 79 / - 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - COALESCE ( + + 7, + COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-1685
SELECT - COALESCE ( + + 7, + COUNT ( * ) )
----
-7

query I rowsort
SELECT ALL + 52 + 47
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT - ( + CASE - 22 WHEN - 54 * 27 THEN NULL ELSE CASE + 28 WHEN + 11 THEN NULL ELSE 73 + - NULLIF ( - ( - CASE + 66 WHEN + 99 + 40 THEN NULL WHEN 87 THEN - 16 ELSE 66 * 36 END ), - 24 + CAST( NULL AS SIGNED ) ) END * 36 END ) + - 29 AS col0
----
82879

skipif mysql # not compatible
query I rowsort label-1687
SELECT - ( + CASE - 22 WHEN - 54 * 27 THEN NULL ELSE CASE + 28 WHEN + 11 THEN NULL ELSE 73 + - NULLIF ( - ( - CASE + 66 WHEN + 99 + 40 THEN NULL WHEN 87 THEN - 16 ELSE 66 * 36 END ), - 24 + CAST ( NULL AS INTEGER ) ) END * 36 END ) + - 29 AS col0
----
82879

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL 23 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 23 / + 24 AS col2
----
0

query I rowsort
SELECT ALL + 53 + - 6
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + ( + COUNT( * ) ) + - NULLIF ( - - 19, 84 * SUM( ALL 3 ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-1690
SELECT + ( + COUNT ( * ) ) + - NULLIF ( - - 19, 84 * SUM ( ALL 3 ) ) col0
----
-18

query I rowsort
SELECT - 63 - + ( ( - 27 ) ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + MAX( - + 30 ) + + 35 col2
----
5

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + MAX ( - + 30 ) + + 35 col2
----
5

query I rowsort
SELECT - 36 + + 9 + 66 AS col2
----
39

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

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

query I rowsort
SELECT - + 91 + - 40 col0
----
-131

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1696
SELECT ALL - - ( - - ( - 71 ) ) + - COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - - ( - - ( - 71 ) ) + - COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - - 16 + - 46 AS col0, + 61
----
-30
61

query I rowsort
SELECT ALL + 5 + + ( - 69 )
----
-64

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

query I rowsort
SELECT ALL + 61 * + - 68 + + 33 * + 78
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - MAX( + 77 ) * - 55
----
4235

skipif mysql # not compatible
query I rowsort label-1701
SELECT - MAX ( + 77 ) * - 55
----
4235

query I rowsort
SELECT + 66 + 37 * - + 9 col1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL - CASE - - 86 WHEN + 83 + - 97 THEN 70 * 22 END * 7 - COUNT( * ) * + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - CASE - - 86 WHEN + 83 + - 97 THEN 70 * 22 END * 7 - COUNT ( * ) * + 28 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 96, + 24 * + 68 + - ( 59 ) * 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1705
SELECT DISTINCT + MIN( ALL + CAST( NULL AS SIGNED ) ), 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1705
SELECT DISTINCT + MIN ( ALL + CAST ( NULL AS INTEGER ) ), 53 AS col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT + + CASE - 87 WHEN + - 96 THEN + 64 / 82 WHEN + 47 * + COUNT( * ) THEN NULL ELSE + 71 - 29 END
----
42

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + + CASE - 87 WHEN + - 96 THEN + 64 / 82 WHEN + 47 * + COUNT ( * ) THEN NULL ELSE + 71 - 29 END
----
42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT + 84 DIV 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 84 / 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - 54 - + - 98 - 19 * + - 2 / CASE - 46 WHEN - 70 THEN - 25 / + CASE CASE 37 WHEN 1 * - MIN( ALL 69 ) + 96 THEN - 40 WHEN 54 THEN NULL ELSE NULL END * 93 WHEN + 41 + 74 THEN NULL WHEN 28 * + 33 - + 29 * - MIN( 30 + - 44 ) THEN - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 54 - + - 98 - 19 * + - 2 / CASE - 46 WHEN - 70 THEN - 25 / + CASE CASE 37 WHEN 1 * - MIN ( ALL 69 ) + 96 THEN - 40 WHEN 54 THEN NULL ELSE NULL END * 93 WHEN + 41 + 74 THEN NULL WHEN 28 * + 33 - + 29 * - MIN ( 30 + - 44 ) THEN - COUNT ( * ) END END
----
NULL

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

query I rowsort
SELECT ALL 42 * - + 67 * + ( 50 )
----
-140700

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT + 48 DIV + 26 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 48 / + 26 AS col1
----
1

query I rowsort
SELECT ALL 18 * - + 42 * - - 91 AS col1
----
-68796

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + CASE + - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN 15 THEN - COUNT( * ) * + 40 + 33 WHEN NULLIF ( 57, 87 / 36 ) + + 13 THEN 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN 15 THEN - COUNT ( * ) * + 40 + 33 WHEN NULLIF ( 57, 87 / 36 ) + + 13 THEN 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL 73 * - COALESCE ( + 21, - 4 * + COUNT( * ) + 25 ) * + 74 + - 38 * COUNT( * ) col0
----
-113480

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 73 * - COALESCE ( + 21, - 4 * + COUNT ( * ) + 25 ) * + 74 + - 38 * COUNT ( * ) col0
----
-113480

query I rowsort
SELECT + ( - 15 ) - + 27
----
-42

query I rowsort
SELECT ALL 82 * + 4 AS col1
----
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT 35 * + 52 + - CAST( 66 AS SIGNED ) col2
----
1754

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT 35 * + 52 + - CAST ( 66 AS INTEGER ) col2
----
1754

query I rowsort
SELECT DISTINCT - 51 * - + 37 + 32 + - 83
----
1836

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

skipif mysql # not compatible
query I rowsort label-1720
SELECT MAX ( DISTINCT 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL 10 * + MIN( ALL - COALESCE ( - - ( - 8 ), - 54 * 51 ) ) * + 70 + 64
----
5664

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL 10 * + MIN ( ALL - COALESCE ( - - ( - 8 ), - 54 * 51 ) ) * + 70 + 64
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - COALESCE ( + 97, 22 * + 46 - - 25 * MIN( ALL - 7 ) + - 17 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1722
SELECT - COALESCE ( + 97, 22 * + 46 - - 25 * MIN ( ALL - 7 ) + - 17 ) AS col0
----
-97

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

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

query I rowsort
SELECT + ( - 56 ) * + 73 + - 73 + 64
----
-4097

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 64 + CASE + 14 WHEN - + 57 THEN 12 / + 80 - MIN( 30 + 57 ) * 85 WHEN + 56 THEN NULL WHEN 26 THEN - 0 * + 19 + 98 * 87 ELSE NULL END + - 8 * 63 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 64 + CASE + 14 WHEN - + 57 THEN 12 / + 80 - MIN ( 30 + 57 ) * 85 WHEN + 56 THEN NULL WHEN 26 THEN - 0 * + 19 + 98 * 87 ELSE NULL END + - 8 * 63 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT MIN( ALL - + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1726
SELECT MIN ( ALL - + 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT CASE + + 20 WHEN + 38 + + 78 + + + 7 + 8 * - COUNT( * ) * ( - 28 * 11 ) THEN 23 WHEN 34 THEN 29 + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT CASE + + 20 WHEN + 38 + + 78 + + + 7 + 8 * - COUNT ( * ) * ( - 28 * 11 ) THEN 23 WHEN 34 THEN 29 + 67 END AS col2
----
NULL

query I rowsort
SELECT ALL - + 4 + 72 * + 49 AS col1
----
3524

query I rowsort
SELECT + + 95 * + - ( - - 95 ) - 16
----
-9041

query I rowsort
SELECT ALL CASE + 56 WHEN + 64 THEN NULL WHEN - 40 THEN NULL ELSE - 19 END AS col0
----
-19

query II rowsort
SELECT - 36 AS col0, ( - 28 )
----
-36
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + 56 * 90 - - COUNT( * ) * 13
----
5053

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + 56 * 90 - - COUNT ( * ) * 13
----
5053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - 9 * - COUNT( - 29 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1734
SELECT - 9 * - COUNT ( - 29 ) AS col2
----
9

query I rowsort
SELECT + 53 - + + 1
----
52

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

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

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

query I rowsort
SELECT + 67 + - 95
----
-28

query I rowsort
SELECT ALL - 74 - + 86 + + - 17 * + + 38
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - - 68 * 50 * - + COUNT( * ) * - 31 AS col1
----
105400

skipif mysql # not compatible
query I rowsort label-1740
SELECT - - 68 * 50 * - + COUNT ( * ) * - 31 AS col1
----
105400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT - + CASE + 12 WHEN + AVG ( + 68 ) + - - NULLIF ( COALESCE ( + COALESCE ( + 70, 36 ), - 98 ), - 1 ) * COUNT( * ) THEN - AVG ( ALL 80 ) + 11 WHEN ( 91 ) * + MAX( 26 + NULLIF ( ( ( 14 ) ), 53 ) * - CAST( NULL AS SIGNED ) ) THEN NULL END * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - + CASE + 12 WHEN + AVG ( + 68 ) + - - NULLIF ( COALESCE ( + COALESCE ( + 70, 36 ), - 98 ), - 1 ) * COUNT ( * ) THEN - AVG ( ALL 80 ) + 11 WHEN ( 91 ) * + MAX ( 26 + NULLIF ( ( ( 14 ) ), 53 ) * - CAST ( NULL AS INTEGER ) ) THEN NULL END * 17 AS col1
----
NULL

query I rowsort
SELECT - 94 * - 10 AS col2
----
940

query I rowsort
SELECT - - 19 - - 6 + 76 AS col0
----
101

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT - 25 * 38 * + CAST( + ( - CAST( - 16 AS SIGNED ) ) AS SIGNED ) * + 57
----
-866400

skipif mysql # not compatible
query I rowsort label-1745
SELECT - 25 * 38 * + CAST ( + ( - CAST ( - 16 AS INTEGER ) ) AS INTEGER ) * + 57
----
-866400

query I rowsort
SELECT - + 94 * - 12 AS col2
----
1128

query I rowsort
SELECT ALL - 89 * + 67 * + - 94
----
560522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1748
SELECT CAST( NULL AS SIGNED ) AS col0, - CAST( - ( MAX( + 25 ) ) AS DECIMAL ) / - CAST( 56 AS SIGNED ) * 93 + - 31 + ( ( - CAST( NULL AS SIGNED ) ) + + ( + 26 + 20 ) * - 99 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1748
SELECT CAST ( NULL AS INTEGER ) AS col0, - CAST ( - ( MAX ( + 25 ) ) AS REAL ) / - CAST ( 56 AS INTEGER ) * 93 + - 31 + ( ( - CAST ( NULL AS INTEGER ) ) + + ( + 26 + 20 ) * - 99 )
----
NULL
NULL

query I rowsort
SELECT - 72 * + - ( - + 31 ) * - 61 AS col1
----
136152

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + 38 * - + 70 - - - COUNT( * ) + + 72 + 21 col2
----
-2568

skipif mysql # not compatible
query I rowsort label-1750
SELECT + 38 * - + 70 - - - COUNT ( * ) + + 72 + 21 col2
----
-2568

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

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

query I rowsort
SELECT 97 * + ( + 19 ) - + 93 col0
----
1750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT ALL 94 DIV - - 88 + - + ( + NULLIF ( - COUNT( * ), + - COUNT( * ) + + 89 * + 73 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 94 / - - 88 + - + ( + NULLIF ( - COUNT ( * ), + - COUNT ( * ) + + 89 * + 73 ) ) AS col0
----
2

query I rowsort
SELECT 65 + - 31 AS col1
----
34

query I rowsort
SELECT ALL - NULLIF ( + 70, 21 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT ALL 71 + 54 - - - ( - 60 ) col0, COUNT( * ) AS col0
----
185
1

skipif mysql # not compatible
query II rowsort label-1756
SELECT ALL 71 + 54 - - - ( - 60 ) col0, COUNT ( * ) AS col0
----
185
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ( + 34 ) * - + MAX( ALL + 1 ) + + 70
----
36

skipif mysql # not compatible
query I rowsort label-1757
SELECT ( + 34 ) * - + MAX ( ALL + 1 ) + + 70
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT ALL 88 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 88 / + 50 AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT ALL - 55 AS col0, + 41 * + SUM( ALL - 47 )
----
-55
-1927

skipif mysql # not compatible
query II rowsort label-1760
SELECT ALL - 55 AS col0, + 41 * + SUM ( ALL - 47 )
----
-55
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 61 + COUNT( ALL + 73 ) * - COALESCE ( 14, + - 32 + + 58 * 80 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1761
SELECT 61 + COUNT ( ALL + 73 ) * - COALESCE ( 14, + - 32 + + 58 * 80 ) AS col1
----
47

query I rowsort
SELECT 65 * 95 AS col0
----
6175

query I rowsort
SELECT 0 * - 77 * 13
----
0

query I rowsort
SELECT 71 + - 90 + - NULLIF ( - 81, + 90 + 41 ) + - 67 * 60 AS col1
----
-3958

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

skipif mysql # not compatible
query I rowsort label-1765
SELECT 6 / + - 12 / + COUNT ( * ) col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1766
SELECT DISTINCT 70 + 97, 47 DIV - 7 AS col2
----
167
-6

skipif mysql # not compatible
query II rowsort label-1766
SELECT DISTINCT 70 + 97, 47 / - 7 AS col2
----
167
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT CASE ( - + 49 ) WHEN - 81 THEN 9 * - 6 * 6 ELSE - 23 + - 93 DIV 88 END * 91 AS col0
----
-2184

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT CASE ( - + 49 ) WHEN - 81 THEN 9 * - 6 * 6 ELSE - 23 + - 93 / 88 END * 91 AS col0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT 54 * - ( - ( + COUNT( * ) ) ) + + 82 * - 47 AS col1
----
-3800

skipif mysql # not compatible
query I rowsort label-1768
SELECT 54 * - ( - ( + COUNT ( * ) ) ) + + 82 * - 47 AS col1
----
-3800

query I rowsort
SELECT DISTINCT - 17 - - 62
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT ALL 0, 54 * 19 * COUNT( * ) AS col0
----
0
1026

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL 0, 54 * 19 * COUNT ( * ) AS col0
----
0
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - 71 + + COUNT( * ) + 4 * - + 95 * 62
----
-23630

skipif mysql # not compatible
query I rowsort label-1771
SELECT - 71 + + COUNT ( * ) + 4 * - + 95 * 62
----
-23630

query I rowsort
SELECT DISTINCT 10 - - 82
----
92

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

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

query II rowsort
SELECT ALL + 9 col1, + 9 AS col2
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1775
SELECT - + 11 AS col0, CASE - + 59 WHEN + 36 THEN - - ( + CAST( NULL AS SIGNED ) ) * 51 ELSE NULL END * + 78
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1775
SELECT - + 11 AS col0, CASE - + 59 WHEN + 36 THEN - - ( + CAST ( NULL AS INTEGER ) ) * 51 ELSE NULL END * + 78
----
-11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT - 37 + - 42 DIV + - CASE - 91 WHEN + 5 THEN NULL ELSE - COUNT( * ) * COUNT( * ) END
----
-79

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 37 + - 42 / + - CASE - 91 WHEN + 5 THEN NULL ELSE - COUNT ( * ) * COUNT ( * ) END
----
-79

query I rowsort
SELECT + 7 - - - CASE + 49 WHEN - - 3 THEN NULL WHEN + - 78 * 20 THEN NULL WHEN + 72 THEN NULL WHEN 66 THEN 75 + - 54 ELSE - ( 22 ) END * 41
----
909

query II rowsort
SELECT DISTINCT - 86 AS col2, + 74 + - 60
----
-86
14

query I rowsort
SELECT + ( - 37 ) + + - 47
----
-84

query II rowsort
SELECT ALL 5, 91 + - + 14 AS col0
----
5
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1781
SELECT + 65 * + CASE - 47 WHEN + 35 THEN 11 WHEN CAST( CASE + 34 WHEN 55 THEN - 99 WHEN 68 / - 68 + 38 / - CASE 54 * 63 WHEN - 53 * COUNT( * ) THEN 91 + - 0 WHEN + AVG ( + 44 ) THEN CAST( 17 AS DECIMAL ) END THEN + 23 ELSE + 26 END AS SIGNED ) THEN - 20 WHEN CAST( 69 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT + 65 * + CASE - 47 WHEN + 35 THEN 11 WHEN CAST ( CASE + 34 WHEN 55 THEN - 99 WHEN 68 / - 68 + 38 / - CASE 54 * 63 WHEN - 53 * COUNT ( * ) THEN 91 + - 0 WHEN + AVG ( + 44 ) THEN CAST ( 17 AS REAL ) END THEN + 23 ELSE + 26 END AS INTEGER ) THEN - 20 WHEN CAST ( 69 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 74 + - 68
----
6

query I rowsort
SELECT DISTINCT 13 * 78 AS col1
----
1014

query I rowsort
SELECT - 87 + + 28 * 60 * + + ( - 66 )
----
-110967

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - - 84 * - 31 * + - COUNT( * ) AS col0
----
2604

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - - 84 * - 31 * + - COUNT ( * ) AS col0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT 6 * + COUNT( * ) * - + 78
----
-468

skipif mysql # not compatible
query I rowsort label-1786
SELECT 6 * + COUNT ( * ) * - + 78
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT SUM( + - 5 ) * + 90 * - 7 - 62 AS col2
----
3088

skipif mysql # not compatible
query I rowsort label-1787
SELECT SUM ( + - 5 ) * + 90 * - 7 - 62 AS col2
----
3088

query I rowsort
SELECT 83 + 81 AS col0
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT NULLIF ( - 45, + 77 * - COUNT( * ) ) DIV 95 - ( - COUNT( * ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT NULLIF ( - 45, + 77 * - COUNT ( * ) ) / 95 - ( - COUNT ( * ) ) * - 0
----
0

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

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

query I rowsort
SELECT ALL + 20 + - 52 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT - COALESCE ( - 91, 23 + - COUNT( * ), - 82 DIV 34 )
----
91

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - COALESCE ( - 91, 23 + - COUNT ( * ), - 82 / 34 )
----
91

query I rowsort
SELECT DISTINCT - 48 + + - ( 50 ) + + ( - - 12 )
----
-86

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

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

query I rowsort
SELECT 81 + + 62 * 9 AS col2
----
639

query I rowsort
SELECT ALL - 66 + - - 14 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - COUNT( * ) + - + CASE - - 34 WHEN - + 88 THEN COUNT( * ) WHEN COUNT( * ) * 9 THEN NULL END - - 65 / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - COUNT ( * ) + - + CASE - - 34 WHEN - + 88 THEN COUNT ( * ) WHEN COUNT ( * ) * 9 THEN NULL END - - 65 / - 45
----
NULL

query II rowsort
SELECT ALL - ( - + 48 ), - 65 AS col0
----
48
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - 96 * + 15 + 9 DIV - 78
----
-1440

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 96 * + 15 + 9 / - 78
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT 58 * 68 * + + CAST( NULL AS SIGNED ) + ( - 79 ) + - 1 * + ( + 9 ) * COUNT( * ) + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT 58 * 68 * + + CAST ( NULL AS INTEGER ) + ( - 79 ) + - 1 * + ( + 9 ) * COUNT ( * ) + 95 AS col1
----
NULL

query I rowsort
SELECT ALL - 22 - + + 81
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT DISTINCT - 49 * - 33 AS col2, + COUNT( - 21 ) AS col1
----
1617
1

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT - 49 * - 33 AS col2, + COUNT ( - 21 ) AS col1
----
1617
1

query I rowsort
SELECT 67 * + ( + - 67 ) * - 68 * - - 58 - + 87 * - 81 * + 24
----
17873744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1804
SELECT DISTINCT COALESCE ( + 51, + 20 + + COUNT( * ), 31 * - CAST( NULL AS SIGNED ) * - 1, + COUNT( * ) + 79 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT COALESCE ( + 51, + 20 + + COUNT ( * ), 31 * - CAST ( NULL AS INTEGER ) * - 1, + COUNT ( * ) + 79 ) / 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL + COUNT( * ) - + 90 + - - 39 * + - 43 AS col2
----
-1766

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + COUNT ( * ) - + 90 + - - 39 * + - 43 AS col2
----
-1766

query I rowsort
SELECT - 13 * 20 AS col2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT 80 * - + 52 * - COALESCE ( 81, - COUNT( * ) * - COUNT( * ) + + - 56 ) + - CAST( 95 + 83 * + ( ( 89 ) + + SUM( ALL - 0 ) * - COUNT( * ) ) AS SIGNED ) AS col1
----
329478

skipif mysql # not compatible
query I rowsort label-1807
SELECT 80 * - + 52 * - COALESCE ( 81, - COUNT ( * ) * - COUNT ( * ) + + - 56 ) + - CAST ( 95 + 83 * + ( ( 89 ) + + SUM ( ALL - 0 ) * - COUNT ( * ) ) AS INTEGER ) AS col1
----
329478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1808
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0, - 6 DIV + 55 * 23 * + NULLIF ( + - 3, + 59 ) * 63
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1808
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, - 6 / + 55 * 23 * + NULLIF ( + - 3, + 59 ) * 63
----
NULL
0

query I rowsort
SELECT + 5 + + - 33 AS col2
----
-28

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

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

query I rowsort
SELECT + 53 * + 33 + + 39 + 1 AS col2
----
1789

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT + 46 DIV 88 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + 46 / 88 / 92
----
0

query I rowsort
SELECT DISTINCT - 55 * 26 * + + ( + - 94 )
----
134420

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT 29 * - COUNT( + + 94 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-1814
SELECT 29 * - COUNT ( + + 94 ) col1
----
-29

query I rowsort
SELECT + 38 - - 21 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT - - CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1816
SELECT - - CAST ( 44 AS INTEGER )
----
44

query II rowsort
SELECT + 51 + + 4 AS col1, - 74 AS col0
----
55
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1818
SELECT DISTINCT 13 + + 59 - 9 * CAST( + 45 AS SIGNED ), + 35 * + - SUM( 2 ) AS col1
----
-333
-70

skipif mysql # not compatible
query II rowsort label-1818
SELECT DISTINCT 13 + + 59 - 9 * CAST ( + 45 AS INTEGER ), + 35 * + - SUM ( 2 ) AS col1
----
-333
-70

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

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

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

query I rowsort
SELECT ALL 13 * + 4 col2
----
52

query I rowsort
SELECT DISTINCT 80 * - 26 * + 74 * - 25 * 40 + - - 37 AS col1
----
153920037

query II rowsort
SELECT ALL + 46 AS col2, 32
----
46
32

query I rowsort
SELECT + COALESCE ( + 61, 38 * 35 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL 55 * 78 * + ( - + 4 ) * + + SUM( - + 78 ) + + 82 - + 18 - - 30 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 55 * 78 * + ( - + 4 ) * + + SUM ( - + 78 ) + + 82 - + 18 - - 30 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 21 ) * 50 AS col1
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT 35 * + - 16 + + + SUM( + 47 ) AS col1
----
-513

skipif mysql # not compatible
query I rowsort label-1827
SELECT 35 * + - 16 + + + SUM ( + 47 ) AS col1
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT NULLIF ( + 75, COUNT( * ) ) AS col0, - 68 * + + 83
----
75
-5644

skipif mysql # not compatible
query II rowsort label-1828
SELECT NULLIF ( + 75, COUNT ( * ) ) AS col0, - 68 * + + 83
----
75
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + COALESCE ( - 30, - CASE + 92 WHEN 46 + - COUNT( * ) * + + COUNT( - 91 ) THEN 38 END )
----
-30

skipif mysql # not compatible
query I rowsort label-1829
SELECT + COALESCE ( - 30, - CASE + 92 WHEN 46 + - COUNT ( * ) * + + COUNT ( - 91 ) THEN 38 END )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT - 92 * CAST( NULL AS SIGNED ) - + - 10 * - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT - 92 * CAST ( NULL AS INTEGER ) - + - 10 * - + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT( * ) + + 65 * 53 + MAX( ( 75 ) ) * + 49 ) * 60 - 10 AS col0
----
-14
1790

skipif mysql # not compatible
query II rowsort label-1831
SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT ( * ) + + 65 * 53 + MAX ( ( 75 ) ) * + 49 ) * 60 - 10 AS col0
----
-14
1790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1832
SELECT DISTINCT + CASE + - 32 WHEN - 29 + + COUNT( * ) THEN NULL WHEN + - 73 + + 96 THEN CASE + - CAST( + 0 AS SIGNED ) WHEN 45 THEN + 26 + + CAST( NULL AS DECIMAL ) WHEN 62 THEN NULL WHEN - COALESCE ( - 30, + 85, 0 ) THEN NULL END WHEN - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + CASE + - 32 WHEN - 29 + + COUNT ( * ) THEN NULL WHEN + - 73 + + 96 THEN CASE + - CAST ( + 0 AS INTEGER ) WHEN 45 THEN + 26 + + CAST ( NULL AS REAL ) WHEN 62 THEN NULL WHEN - COALESCE ( - 30, + 85, 0 ) THEN NULL END WHEN - 65 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 9 * + 85 - CASE 26 WHEN 13 - + 98 * - + 15 THEN NULL ELSE + 88 END AS col2
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT CASE 46 WHEN - 81 / - - COUNT( * ) THEN + - 52 WHEN - 30 * 87 * MAX( ALL 93 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT CASE 46 WHEN - 81 / - - COUNT ( * ) THEN + - 52 WHEN - 30 * 87 * MAX ( ALL 93 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - COUNT( * ) * - - NULLIF ( + - 59, NULLIF ( + - ( + 45 ), - AVG ( + 48 ) ) * - CASE COALESCE ( COALESCE ( - 21, CASE ( + 99 ) WHEN + 58 THEN NULL ELSE 11 END + ( COUNT( * ) ) * - 30 ), + 57 + + 92 ) WHEN - COUNT( * ) THEN 81 WHEN 98 + MIN( ALL 84 ) THEN NULL ELSE + COUNT( * ) + + NULLIF ( 34 + ( + 28 + 63 ) * 27, COUNT( * ) - - ( - 97 ) ) END ) + + 13
----
72

skipif mysql # not compatible
query I rowsort label-1835
SELECT - COUNT ( * ) * - - NULLIF ( + - 59, NULLIF ( + - ( + 45 ), - AVG ( + 48 ) ) * - CASE COALESCE ( COALESCE ( - 21, CASE ( + 99 ) WHEN + 58 THEN NULL ELSE 11 END + ( COUNT ( * ) ) * - 30 ), + 57 + + 92 ) WHEN - COUNT ( * ) THEN 81 WHEN 98 + MIN ( ALL 84 ) THEN NULL ELSE + COUNT ( * ) + + NULLIF ( 34 + ( + 28 + 63 ) * 27, COUNT ( * ) - - ( - 97 ) ) END ) + + 13
----
72

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

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

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

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

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

query I rowsort
SELECT + 69 + - ( 97 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT + COALESCE ( + 57, + 37 * + 18 + - 97 * - 48, - - CASE + 95 WHEN CAST( + 90 AS SIGNED ) * CAST( 36 + + ( 93 ) AS SIGNED ) + - ( - SUM( DISTINCT 35 ) + + 66 ) * + 45 THEN NULL WHEN 56 THEN 45 * COUNT( * ) + - 30 END )
----
57

skipif mysql # not compatible
query I rowsort label-1840
SELECT + COALESCE ( + 57, + 37 * + 18 + - 97 * - 48, - - CASE + 95 WHEN CAST ( + 90 AS INTEGER ) * CAST ( 36 + + ( 93 ) AS INTEGER ) + - ( - SUM ( DISTINCT 35 ) + + 66 ) * + 45 THEN NULL WHEN 56 THEN 45 * COUNT ( * ) + - 30 END )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT - + CAST( ( + + 85 ) AS SIGNED ) * - 37 * + COALESCE ( - 36, - + NULLIF ( - 43, 91 * COALESCE ( 11, + ( 30 ) * 40 + 88, 2, COUNT( * ) * 84 ) ) ) AS col0
----
-113220

skipif mysql # not compatible
query I rowsort label-1841
SELECT - + CAST ( ( + + 85 ) AS INTEGER ) * - 37 * + COALESCE ( - 36, - + NULLIF ( - 43, 91 * COALESCE ( 11, + ( 30 ) * 40 + 88, 2, COUNT ( * ) * 84 ) ) ) AS col0
----
-113220

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

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + - COUNT ( * ) * + 16 AS col2
----
-16

query I rowsort
SELECT - ( + - 11 ) + - NULLIF ( + - 7, 79 * + NULLIF ( - - 3, - AVG ( - 85 ) + - 87 ) ) - + 52
----
-34

query I rowsort
SELECT ALL + - 43 * 29 AS col1
----
-1247

query I rowsort
SELECT - - 6 + + - 80
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT NULLIF ( + 30, SUM( DISTINCT - 4 ) )
----
30

skipif mysql # not compatible
query I rowsort label-1846
SELECT NULLIF ( + 30, SUM ( DISTINCT - 4 ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT - - CAST( - 69 AS SIGNED ) + 29 * 8
----
163

skipif mysql # not compatible
query I rowsort label-1847
SELECT - - CAST ( - 69 AS INTEGER ) + 29 * 8
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1
----
199
NULL

skipif mysql # not compatible
query II rowsort label-1848
SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1
----
199
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT - + 28 AS col0, - 96 DIV 69 AS col2
----
-28
-1

skipif mysql # not compatible
query II rowsort label-1849
SELECT - + 28 AS col0, - 96 / 69 AS col2
----
-28
-1

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

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

query I rowsort
SELECT - 36 + + 39
----
3

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + 1 DIV - MAX( DISTINCT - + 55 ) + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 1 / - MAX ( DISTINCT - + 55 ) + ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + 19 + + 7 AS col0
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + ( MIN( + ( + 87 ) ) ) + - - 69
----
156

skipif mysql # not compatible
query I rowsort label-1857
SELECT + ( MIN ( + ( + 87 ) ) ) + - - 69
----
156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL + 41 DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 41 / + 15 AS col2
----
2

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

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

query I rowsort
SELECT ALL 72 * + 83 AS col0
----
5976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT + AVG ( ALL 24 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + AVG ( ALL 24 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 66 + + 68 AS col0
----
134

query I rowsort
SELECT DISTINCT 18 * + 16 * NULLIF ( - + 11, 89 )
----
-3168

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT ALL - 65 DIV 25 - + + 5 * - 69 AS col1
----
343

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - 65 / 25 - + + 5 * - 69 AS col1
----
343

query I rowsort
SELECT + ( 9 ) * 62
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT DISTINCT - 32 DIV + 14 - - + 86
----
84

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - 32 / + 14 - - + 86
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT 95 DIV + + 79 + + + 74
----
75

skipif mysql # not compatible
query I rowsort label-1869
SELECT 95 / + + 79 + + + 74
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT CAST( - - 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1870
SELECT CAST ( - - 58 AS INTEGER ) AS col2
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT COALESCE ( - 98, - 20 + - - 85 + + + COALESCE ( - 42, + 4 ) * 80 ) DIV + + 8 - - 44 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1872
SELECT COALESCE ( - 98, - 20 + - - 85 + + + COALESCE ( - 42, + 4 ) * 80 ) / + + 8 - - 44 AS col0
----
32

query II rowsort
SELECT ( + 25 ) AS col1, - 10 * 29 AS col0
----
25
-290

query I rowsort
SELECT + COALESCE ( + + 87, - 43 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1875
SELECT + 45 * 45 AS col0, CASE 1 WHEN + MAX( DISTINCT + 13 ) / - ( + 66 ) + + + 51 / 82 + + 78 THEN NULL WHEN 23 + 29 THEN + CAST( 23 AS SIGNED ) - CAST( - 20 + - COUNT( DISTINCT - 35 + + 14 ) AS SIGNED ) WHEN - 64 THEN NULL ELSE NULL END * + 31
----
2025
NULL

skipif mysql # not compatible
query II rowsort label-1875
SELECT + 45 * 45 AS col0, CASE 1 WHEN + MAX ( DISTINCT + 13 ) / - ( + 66 ) + + + 51 / 82 + + 78 THEN NULL WHEN 23 + 29 THEN + CAST ( 23 AS INTEGER ) - CAST ( - 20 + - COUNT ( DISTINCT - 35 + + 14 ) AS INTEGER ) WHEN - 64 THEN NULL ELSE NULL END * + 31
----
2025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - NULLIF ( + 2, + - COUNT( * ) * - + 24 / + 96 * - - 73 ) * - 83 + + MIN( DISTINCT + 55 )
----
221

skipif mysql # not compatible
query I rowsort label-1876
SELECT - NULLIF ( + 2, + - COUNT ( * ) * - + 24 / + 96 * - - 73 ) * - 83 + + MIN ( DISTINCT + 55 )
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - - 9 * CASE + 95 WHEN 11 / - - AVG ( ALL 11 ) - - - 75 THEN NULL WHEN + 45 THEN - ( COUNT( * ) ) * 67 + + 92 END * + 45 - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT - - 9 * CASE + 95 WHEN 11 / - - AVG ( ALL 11 ) - - - 75 THEN NULL WHEN + 45 THEN - ( COUNT ( * ) ) * 67 + + 92 END * + 45 - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL + MAX( ALL - + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + MAX ( ALL - + 98 ) AS col0
----
-98

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT - 90 + + + 17 DIV 78 DIV - 84 + - 22 + - COUNT( * ) + 51 * + + 50 AS col1
----
2437

skipif mysql # not compatible
query I rowsort label-1881
SELECT - 90 + + + 17 / 78 / - 84 + - 22 + - COUNT ( * ) + 51 * + + 50 AS col1
----
2437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT NULLIF ( CAST( + CAST( + 35 AS SIGNED ) AS SIGNED ), - 19 ) * - 18 + 19 AS col2
----
-611

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT NULLIF ( CAST ( + CAST ( + 35 AS INTEGER ) AS INTEGER ), - 19 ) * - 18 + 19 AS col2
----
-611

query I rowsort
SELECT + 56 * 84 col1
----
4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT - - COALESCE ( - COUNT( * ), + + 4 + + 54 + - - 69 + + 97 + + 95 + COUNT( * ), - - 38 DIV + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-1884
SELECT - - COALESCE ( - COUNT ( * ), + + 4 + + 54 + - - 69 + + 97 + + 95 + COUNT ( * ), - - 38 / + 40 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + COUNT( * ) + 16 * - COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + COUNT ( * ) + 16 * - COUNT ( * ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - + ( - - MIN( - 19 ) ) col1
----
19

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + ( - - MIN ( - 19 ) ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL + + COUNT( * ) - - - 47
----
-46

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + + COUNT ( * ) - - - 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT 55 + MAX( DISTINCT - 9 )
----
46

skipif mysql # not compatible
query I rowsort label-1888
SELECT 55 + MAX ( DISTINCT - 9 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT 65 + 21 - + CAST( + COUNT( * ) AS SIGNED ) - 14
----
71

skipif mysql # not compatible
query I rowsort label-1889
SELECT 65 + 21 - + CAST ( + COUNT ( * ) AS INTEGER ) - 14
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT 0 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT 0 / 22
----
0

query II rowsort
SELECT - 65 AS col2, + 96
----
-65
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT 90 DIV + 18 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1893
SELECT 90 / + 18 AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT 23 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1895
SELECT ALL COALESCE ( + CAST( - + 60 AS SIGNED ), - - COUNT( * ) DIV 38 + ( 54 ) * 90 + + + 20 ) * - 28 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL COALESCE ( + CAST ( - + 60 AS INTEGER ), - - COUNT ( * ) / 38 + ( 54 ) * 90 + + + 20 ) * - 28 AS col1
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1896
SELECT 8 DIV - - COUNT( * ) + 88 + + + 95 * CASE + 66 WHEN - + 68 THEN + 76 * - + ( - - ( 43 ) ) + - CAST( NULL AS SIGNED ) ELSE 50 + 5 END * - 6 AS col0
----
-31254

skipif mysql # not compatible
query I rowsort label-1896
SELECT 8 / - - COUNT ( * ) + 88 + + + 95 * CASE + 66 WHEN - + 68 THEN + 76 * - + ( - - ( 43 ) ) + - CAST ( NULL AS INTEGER ) ELSE 50 + 5 END * - 6 AS col0
----
-31254

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT + 18 * + + ( + - 68 ) * COUNT( * ) AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + 18 * + + ( + - 68 ) * COUNT ( * ) AS col2
----
-1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 8 * - 73 ) + ( - + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 8 * - 73 ) + ( - + 41 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL + COUNT( * ) * MIN( ALL 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + COUNT ( * ) * MIN ( ALL 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT COUNT( * ) * 39 * + 23 + + 27
----
924

skipif mysql # not compatible
query I rowsort label-1900
SELECT COUNT ( * ) * 39 * + 23 + + 27
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1901
SELECT COUNT( * ) - CAST( - 27 AS SIGNED ) col2, + 86 col2
----
28
86

skipif mysql # not compatible
query II rowsort label-1901
SELECT COUNT ( * ) - CAST ( - 27 AS INTEGER ) col2, + 86 col2
----
28
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT - 45 * CAST( NULL AS SIGNED ) * ( + 91 ) - + - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT - 45 * CAST ( NULL AS INTEGER ) * ( + 91 ) - + - 28 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1904
SELECT NULLIF ( - + CAST( 59 AS DECIMAL ), + 45 + + + 16 ) * CAST( NULL AS SIGNED ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT NULLIF ( - + CAST ( 59 AS REAL ), + 45 + + + 16 ) * CAST ( NULL AS INTEGER ) * 48 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1905
SELECT CAST ( + + 1 AS INTEGER ) * - CAST ( 9 AS INTEGER )
----
-9

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

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

query I rowsort
SELECT ALL 54 + 6 + + 27
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) - + + COUNT( * ) + COALESCE ( - 14, - COALESCE ( - 63, + 48 * + 26 + ( - 34 ) * + 34, COUNT( * ) ) * + 71 - + 2 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + COALESCE ( - 14, - COALESCE ( - 63, + 48 * + 26 + ( - 34 ) * + 34, COUNT ( * ) ) * + 71 - + 2 ) * 17
----
NULL

query I rowsort
SELECT ALL 12 + + - 62 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT DISTINCT - 67 DIV + 97 + - 75 - - - 36 * + + 98 AS col2
----
-3603

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT - 67 / + 97 + - 75 - - - 36 * + + 98 AS col2
----
-3603

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - 38 * - 24 + - 89 - - ( + 41 ) * COUNT( * ) * - - 87 * + 78 + + - 43 - - COUNT( * ) * - 68 AS col0
----
278938

skipif mysql # not compatible
query I rowsort label-1911
SELECT - 38 * - 24 + - 89 - - ( + 41 ) * COUNT ( * ) * - - 87 * + 78 + + - 43 - - COUNT ( * ) * - 68 AS col0
----
278938

query I rowsort
SELECT ALL 34 * 24 AS col1
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT CASE 61 WHEN - 16 * 93 * - MIN( - 89 ) THEN + + MAX( - 92 ) END + + 88 + + 30 + 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT CASE 61 WHEN - 16 * 93 * - MIN ( - 89 ) THEN + + MAX ( - 92 ) END + + 88 + + 30 + 16 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 74 * 56 + + NULLIF ( - 27, + 25 ) * + 34 * SUM( ALL COALESCE ( - 27, + 34 ) ) AS col1
----
28930

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 74 * 56 + + NULLIF ( - 27, + 25 ) * + 34 * SUM ( ALL COALESCE ( - 27, + 34 ) ) AS col1
----
28930

query II rowsort
SELECT - 24, 88 * - - 42 AS col2
----
-24
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT - 63 * 7 + - - ( + + 90 ) + + 70 + + MIN( ALL + + 5 ) * + + 31 + CAST( NULL AS SIGNED ) * ( 55 ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - 63 * 7 + - - ( + + 90 ) + + 70 + + MIN ( ALL + + 5 ) * + + 31 + CAST ( NULL AS INTEGER ) * ( 55 ) + + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL - COALESCE ( - + CAST( NULL AS SIGNED ), - COUNT( * ) * + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - COALESCE ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 80 ) AS col2
----
80

query I rowsort
SELECT + CASE + 88 WHEN + + 86 THEN + + 59 END AS col1
----
NULL

query I rowsort
SELECT ALL - 74 * + + 60 col1
----
-4440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT MIN( DISTINCT + 86 ) * + CAST( NULL AS SIGNED ) - + ( ( + 45 ) ) / - ( + + 19 ) + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT MIN ( DISTINCT + 86 ) * + CAST ( NULL AS INTEGER ) - + ( ( + 45 ) ) / - ( + + 19 ) + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT SUM( DISTINCT 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT SUM ( DISTINCT 48 ) AS col2
----
48

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL CAST ( NULL AS INTEGER ) - - + 19
----
NULL

query II rowsort
SELECT 83 + + COALESCE ( + + ( + + 9 ), 77 ) AS col1, + 78 + - 55 + + 63 + - 51 AS col1
----
92
35

query I rowsort
SELECT + 70 * 75 + - + 93 + - 93 AS col1
----
5064

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT 81 AS col1, NULLIF ( - 15, 73 - MIN( - 49 ) + - NULLIF ( + 17, - 0 ) - + 80 * - ( ( COUNT( * ) ) ) / 72 ) * + NULLIF ( 46, 31 ) + COUNT( * ) AS col2
----
81
-689

skipif mysql # not compatible
query II rowsort label-1925
SELECT 81 AS col1, NULLIF ( - 15, 73 - MIN ( - 49 ) + - NULLIF ( + 17, - 0 ) - + 80 * - ( ( COUNT ( * ) ) ) / 72 ) * + NULLIF ( 46, 31 ) + COUNT ( * ) AS col2
----
81
-689

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

query I rowsort
SELECT 10 + - + 77
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 81 * + COUNT( * ) col1
----
81

skipif mysql # not compatible
query I rowsort label-1928
SELECT 81 * + COUNT ( * ) col1
----
81

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

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

query I rowsort
SELECT ALL 94 * - 84 * - + 60 AS col0
----
473760

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL + 13 + MIN( DISTINCT - 78 ) - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + 13 + MIN ( DISTINCT - 78 ) - + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT 11 AS col2, COUNT( * ) + 79
----
11
80

skipif mysql # not compatible
query II rowsort label-1934
SELECT 11 AS col2, COUNT ( * ) + 79
----
11
80

query I rowsort
SELECT 9 * - 25
----
-225

query I rowsort
SELECT 44 + + 76 col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT ALL - 41 DIV + - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 41 / + - 96 AS col0
----
0

query I rowsort
SELECT ALL - 7 * + + 80 * + 48 + + 47 AS col0
----
-26833

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + 23 * + + MIN( ALL 25 ) + - NULLIF ( + CASE ( 47 ) WHEN 9 THEN NULL WHEN 77 + 76 THEN + - MAX( 10 ) ELSE NULL END, 29 * 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + 23 * + + MIN ( ALL 25 ) + - NULLIF ( + CASE ( 47 ) WHEN 9 THEN NULL WHEN 77 + 76 THEN + - MAX ( 10 ) ELSE NULL END, 29 * 71 )
----
NULL

query I rowsort
SELECT - 13 * 64 AS col0
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + ( COUNT( * ) ) * 35 * + - 98 + + + COUNT( * ) AS col2
----
-3429

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + ( COUNT ( * ) ) * 35 * + - 98 + + + COUNT ( * ) AS col2
----
-3429

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT - - 30 DIV - 4 + 95 * - 87 AS col0
----
-8272

skipif mysql # not compatible
query I rowsort label-1942
SELECT - - 30 / - 4 + 95 * - 87 AS col0
----
-8272

query II rowsort
SELECT ALL - 59 AS col2, 34 + + 13 col1
----
-59
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1944
SELECT - ( + 70 ) / + 38 - 33 + ( CASE 93 WHEN - 18 THEN NULL WHEN - - COUNT( * ) * 1 - - + 24 + SUM( ALL 67 ) THEN - SUM( ALL 71 ) * - CAST( - COUNT( * ) AS DECIMAL ) ELSE NULL END ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - ( + 70 ) / + 38 - 33 + ( CASE 93 WHEN - 18 THEN NULL WHEN - - COUNT ( * ) * 1 - - + 24 + SUM ( ALL 67 ) THEN - SUM ( ALL 71 ) * - CAST ( - COUNT ( * ) AS REAL ) ELSE NULL END ) * 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT 78 * + COUNT( * ) + + COALESCE ( + 19, 13 ) + + COUNT( * ) * - + 27 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1945
SELECT 78 * + COUNT ( * ) + + COALESCE ( + 19, 13 ) + + COUNT ( * ) * - + 27 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + - ( - 39 ) * - MAX( DISTINCT + 97 ) - 49
----
-3832

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + - ( - 39 ) * - MAX ( DISTINCT + 97 ) - 49
----
-3832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT ALL 68 DIV NULLIF ( 6, COUNT( * ) + ( - COALESCE ( - + 70, - COUNT( * ), + 45 * - 30 ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 68 / NULLIF ( 6, COUNT ( * ) + ( - COALESCE ( - + 70, - COUNT ( * ), + 45 * - 30 ) ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + 43 - + MIN( - - 29 ) * + ( 80 ) AS col0
----
-2277

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 43 - + MIN ( - - 29 ) * + ( 80 ) AS col0
----
-2277

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT ALL - COUNT( * ) - - + 26, 15 - - - 25 - + 7 + + 75 col2
----
25
58

skipif mysql # not compatible
query II rowsort label-1950
SELECT ALL - COUNT ( * ) - - + 26, 15 - - - 25 - + 7 + + 75 col2
----
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1951
SELECT ALL 95 * + - CASE + - CAST( NULL AS SIGNED ) WHEN CASE + + ( COUNT( * ) ) WHEN 34 THEN CAST( - CASE + + 92 WHEN 41 THEN 61 + - 72 ELSE NULL END AS DECIMAL ) WHEN 42 * 16 THEN NULL ELSE 33 + - MIN( 91 ) END THEN NULL WHEN 12 THEN + MIN( DISTINCT - 25 ) * 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 95 * + - CASE + - CAST ( NULL AS INTEGER ) WHEN CASE + + ( COUNT ( * ) ) WHEN 34 THEN CAST ( - CASE + + 92 WHEN 41 THEN 61 + - 72 ELSE NULL END AS REAL ) WHEN 42 * 16 THEN NULL ELSE 33 + - MIN ( 91 ) END THEN NULL WHEN 12 THEN + MIN ( DISTINCT - 25 ) * 41 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 62 * 98 * - + ( + ( - + 83 ) ) * 44 AS col0
----
-22189552

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + CASE + 75 WHEN + 76 * 53 + - COUNT( * ) THEN ( - 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + CASE + 75 WHEN + 76 * 53 + - COUNT ( * ) THEN ( - 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT + + 51 DIV + SUM( 8 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1954
SELECT + + 51 / + SUM ( 8 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - CASE + COUNT( DISTINCT - + 10 ) WHEN + 93 * - ( + 89 ) + + - 64 + - 49 + + ( + + 61 ) * + 61 THEN 68 * 84 WHEN + 34 * 94 THEN 49 WHEN + 66 / 12 THEN 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT - CASE + COUNT ( DISTINCT - + 10 ) WHEN + 93 * - ( + 89 ) + + - 64 + - 49 + + ( + + 61 ) * + 61 THEN 68 * 84 WHEN + 34 * 94 THEN 49 WHEN + 66 / 12 THEN 7 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT + COUNT( * ) * MAX( DISTINCT + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1956
SELECT + COUNT ( * ) * MAX ( DISTINCT + 46 ) AS col1
----
46

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

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

query I rowsort
SELECT DISTINCT 60 * + + 85 AS col0
----
5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1959
SELECT ALL MIN( 46 ) DIV + COUNT( * ) col0
----
46

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL MIN ( 46 ) / + COUNT ( * ) col0
----
46

query I rowsort
SELECT - CASE ( - - NULLIF ( - 63, - + 12 * + - 59 + 86 + + - ( + 9 ) + + 70 / + 44 ) ) WHEN + 13 * 57 THEN 5 * 65 + 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - NULLIF ( + 0, + 39 * + 94 * ( + - 92 ) + 17 * - 40 * MAX( + 93 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT - NULLIF ( + 0, + 39 * + 94 * ( + - 92 ) + 17 * - 40 * MAX ( + 93 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL COUNT( * ) + 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL COUNT ( * ) + 36 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1963
SELECT - 17 * CASE 86 WHEN MAX( + 44 ) THEN + 3 + CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 17 * CASE 86 WHEN MAX ( + 44 ) THEN + 3 + CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 29 + + 69 * 76 + + 52 AS col1
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - NULLIF ( + 42, + - COUNT( * ) * + - 56 + - + 3 * + 97 * ( - + 46 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1965
SELECT - NULLIF ( + 42, + - COUNT ( * ) * + - 56 + - + 3 * + 97 * ( - + 46 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + 81 + - SUM( + 96 ) + - 25 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1966
SELECT + 81 + - SUM ( + 96 ) + - 25 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL 87 + + MAX( - + 51 )
----
36

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 87 + + MAX ( - + 51 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL + ( + ( - 67 ) ) + + CAST( NULLIF ( + + 52, - 75 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + ( + ( - 67 ) ) + + CAST ( NULLIF ( + + 52, - 75 ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT - MIN( 3 ) + + 82 + + 12 * + 35 col0, + 10
----
499
10

skipif mysql # not compatible
query II rowsort label-1969
SELECT - MIN ( 3 ) + + 82 + + 12 * + 35 col0, + 10
----
499
10

query I rowsort
SELECT - 51 + COALESCE ( - 0, - - 43 ) * - 12 * + + 47 + 74
----
23

query I rowsort
SELECT ALL + COALESCE ( 68, - 58, - 76 + 19 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT + - 54 * - MAX( 9 ) - - COUNT( * ) col1
----
487

skipif mysql # not compatible
query I rowsort label-1972
SELECT + - 54 * - MAX ( 9 ) - - COUNT ( * ) col1
----
487

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT + 85 DIV 87 * + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + 85 / 87 * + + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT 88 * COUNT( * ) * - 62 * + 70 * 12 + + 46 AS col2
----
-4582994

skipif mysql # not compatible
query I rowsort label-1975
SELECT 88 * COUNT ( * ) * - 62 * + 70 * 12 + + 46 AS col2
----
-4582994

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - - ( - 99 ) * + COUNT( * ) * + 99 AS col0
----
-9801

skipif mysql # not compatible
query I rowsort label-1976
SELECT - - ( - 99 ) * + COUNT ( * ) * + 99 AS col0
----
-9801

query II rowsort
SELECT + - 22 * 15 AS col0, 12 + + 18 AS col2
----
-330
30

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

query I rowsort
SELECT + 16 * 94 * 34 + 25
----
51161

query I rowsort
SELECT - ( ( - 26 ) ) * - 87
----
-2262

query II rowsort
SELECT ALL + 55, 57 * 4 + + 96 AS col0
----
55
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1982
SELECT NULLIF ( 88, + - 38 * + CAST( NULL AS SIGNED ) ), - 96 + - COUNT( + 43 ) * - + 51 AS col1
----
88
-45

skipif mysql # not compatible
query II rowsort label-1982
SELECT NULLIF ( 88, + - 38 * + CAST ( NULL AS INTEGER ) ), - 96 + - COUNT ( + 43 ) * - + 51 AS col1
----
88
-45

query I rowsort
SELECT ALL - 62 * + 49 + + - 1 + - 30 AS col0
----
-3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT + 59 + + - CAST( - MIN( DISTINCT - 90 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-1984
SELECT + 59 + + - CAST ( - MIN ( DISTINCT - 90 ) AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1985
SELECT SUM( - - NULLIF ( 35, 36 ) ), + CAST( + 78 AS SIGNED ) col0
----
35
78

skipif mysql # not compatible
query II rowsort label-1985
SELECT SUM ( - - NULLIF ( 35, 36 ) ), + CAST ( + 78 AS INTEGER ) col0
----
35
78

query I rowsort
SELECT + 35 + 71
----
106

query II rowsort
SELECT ALL 23 AS col0, - ( - - COALESCE ( 75, - 98 * - + 29, + ( - 69 ) ) )
----
23
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1988
SELECT - NULLIF ( - 87, + - NULLIF ( + - 87, - CAST( NULL AS DECIMAL ) * + 83 * 13 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1988
SELECT - NULLIF ( - 87, + - NULLIF ( + - 87, - CAST ( NULL AS REAL ) * + 83 * 13 ) ) AS col0
----
87

query I rowsort
SELECT + 11 + + - 20
----
-9

query I rowsort
SELECT - NULLIF ( - 60, + + 12 ) AS col0
----
60

query I rowsort
SELECT - CASE + - 27 WHEN + 34 * + NULLIF ( - 54, - 76 * 83 ) THEN + + 8 WHEN + 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL CAST( - + MIN( - - ( - 6 ) ) AS SIGNED ) + + 42
----
48

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL CAST ( - + MIN ( - - ( - 6 ) ) AS INTEGER ) + + 42
----
48

query II rowsort
SELECT + 99 * + 55 * + 98 AS col1, + 79 AS col0
----
533610
79

query I rowsort
SELECT DISTINCT 28 + 52 AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1995
SELECT + MIN( DISTINCT 7 ) DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT + MIN ( DISTINCT 7 ) / 73 AS col0
----
0

query I rowsort
SELECT + CASE 62 WHEN + 30 THEN 84 + - - NULLIF ( - + 79, - 36 ) + + 26 END * + ( 42 ) * - + 22 * - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL COUNT( * ) + - - 23 * + 55 + + 94 AS col1
----
1360

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL COUNT ( * ) + - - 23 * + 55 + + 94 AS col1
----
1360

query I rowsort
SELECT DISTINCT - 80 + + 89 + 26
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT 7 col1, COUNT( * ) col2
----
7
1

skipif mysql # not compatible
query II rowsort label-1999
SELECT 7 col1, COUNT ( * ) col2
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - COUNT( * ) + - 27 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2000
SELECT - COUNT ( * ) + - 27 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2001
SELECT ALL 3 AS col1, 23 + CAST( - 23 AS SIGNED ) * - 24 AS col0
----
3
575

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL 3 AS col1, 23 + CAST ( - 23 AS INTEGER ) * - 24 AS col0
----
3
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2002
SELECT DISTINCT - 91, - 60 * SUM( DISTINCT - 27 ) + - COALESCE ( + 44, - 6, + 49 DIV - COUNT( * ) + - + 26 + - COUNT( * ) + - 31 ) AS col1
----
-91
1576

skipif mysql # not compatible
query II rowsort label-2002
SELECT DISTINCT - 91, - 60 * SUM ( DISTINCT - 27 ) + - COALESCE ( + 44, - 6, + 49 / - COUNT ( * ) + - + 26 + - COUNT ( * ) + - 31 ) AS col1
----
-91
1576

query I rowsort
SELECT - + 35 col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT DISTINCT - + NULLIF ( + 86, + 93 ) AS col1, + COUNT( * )
----
-86
1

skipif mysql # not compatible
query II rowsort label-2004
SELECT DISTINCT - + NULLIF ( + 86, + 93 ) AS col1, + COUNT ( * )
----
-86
1

query I rowsort
SELECT ALL + + 39 * + + 26 AS col1
----
1014

query I rowsort
SELECT ALL - 97 - - 61
----
-36

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

skipif mysql # not compatible
query II rowsort label-2007
SELECT + - 12 col2, - COUNT ( * ) col2
----
-12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + MIN( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2008
SELECT + MIN ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - MIN( ALL 65 ) - + - 57 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2009
SELECT - MIN ( ALL 65 ) - + - 57 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 81 * COUNT( * ) + + 12 * - - ( + 40 ) AS col2
----
561

skipif mysql # not compatible
query I rowsort label-2010
SELECT 81 * COUNT ( * ) + + 12 * - - ( + 40 ) AS col2
----
561

query II rowsort
SELECT 68 * - - 36 + + 42 AS col2, NULLIF ( + + 13, - 62 ) col0
----
2490
13

query I rowsort
SELECT - 55 * - 21 + - + 28 + 86 * + + 19 AS col1
----
2761

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

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

query I rowsort
SELECT DISTINCT - - ( + 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2015
SELECT CAST( NULL AS SIGNED ) AS col1, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2015
SELECT CAST ( NULL AS INTEGER ) AS col1, 54 AS col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT DISTINCT - 89 AS col0, + MAX( - 99 )
----
-89
-99

skipif mysql # not compatible
query II rowsort label-2016
SELECT DISTINCT - 89 AS col0, + MAX ( - 99 )
----
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL - - MAX( + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - - MAX ( + 59 )
----
59

query I rowsort
SELECT 3 - - 94 * 18 AS col0
----
1695

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - COALESCE ( NULLIF ( - 59, - - COUNT( * ) + - + 85 * 55 ), + 47 + + COUNT( * ) * 5 + - 87 - + 78 ) * + 22 AS col0
----
1298

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - COALESCE ( NULLIF ( - 59, - - COUNT ( * ) + - + 85 * 55 ), + 47 + + COUNT ( * ) * 5 + - 87 - + 78 ) * + 22 AS col0
----
1298

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL - COUNT( * ) + 45, - 35 AS col0
----
44
-35

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL - COUNT ( * ) + 45, - 35 AS col0
----
44
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2022
SELECT DISTINCT - 27 + - - 87 AS col0, 48 * + CAST( NULL AS SIGNED ) / + 60 + + 31
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2022
SELECT DISTINCT - 27 + - - 87 AS col0, 48 * + CAST ( NULL AS INTEGER ) / + 60 + + 31
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT + MIN( ALL - 45 ) * + 35
----
-1575

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + MIN ( ALL - 45 ) * + 35
----
-1575

query I rowsort
SELECT 9 * 25 AS col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT - COUNT( * ) + - 75 col1
----
-76

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - COUNT ( * ) + - 75 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT + 73 * + 66 * + 76 * - ( COUNT( * ) )
----
-366168

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + 73 * + 66 * + 76 * - ( COUNT ( * ) )
----
-366168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL 94 + - + 70 * + CAST( - NULLIF ( - + 40, 35 - + COUNT( * ) / - 56 ) AS SIGNED ) AS col0
----
-2706

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 94 + - + 70 * + CAST ( - NULLIF ( - + 40, 35 - + COUNT ( * ) / - 56 ) AS INTEGER ) AS col0
----
-2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT 25 - + + ( 3 ) - + COUNT( * ) * - 61 + - 98 + - 80 * - CAST( NULL AS SIGNED ) * 75 * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT 25 - + + ( 3 ) - + COUNT ( * ) * - 61 + - 98 + - 80 * - CAST ( NULL AS INTEGER ) * 75 * + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT - 0 + - - NULLIF ( 1, - - COALESCE ( - - 58, + COUNT( * ) * 28 / - 39 ) ) + - COUNT( + 21 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - 0 + - - NULLIF ( 1, - - COALESCE ( - - 58, + COUNT ( * ) * 28 / - 39 ) ) + - COUNT ( + 21 ) AS col1
----
0

query I rowsort
SELECT ALL 87 * 41 AS col2
----
3567

query I rowsort
SELECT 15 + 98
----
113

query I rowsort
SELECT 24 + 16 * + 83 col0
----
1352

query II rowsort
SELECT ( - - 30 ) * - ( 11 ), - 89 AS col1
----
-330
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT 34 + 6 AS col1, + 3 - - 18 + + + COUNT( * ) * 9 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 92 + - 32 + 49 * CAST( 30 AS SIGNED ) - - 6 + 98 * - 38 col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2034
SELECT 34 + 6 AS col1, + 3 - - 18 + + + COUNT ( * ) * 9 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 92 + - 32 + 49 * CAST ( 30 AS INTEGER ) - - 6 + 98 * - 38 col2
----
40
NULL

query I rowsort
SELECT - 59 + - 60 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - - NULLIF ( - 49, + COUNT( - CASE + - 69 WHEN + - 79 THEN + 87 + ( - 88 ) END ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2036
SELECT - - NULLIF ( - 49, + COUNT ( - CASE + - 69 WHEN + - 79 THEN + 87 + ( - 88 ) END ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - NULLIF ( 69, + - COUNT( * ) * - COUNT( * ) + ( + + 94 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - NULLIF ( 69, + - COUNT ( * ) * - COUNT ( * ) + ( + + 94 ) ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + ( - CASE - + 39 WHEN 23 * + 95 THEN NULL WHEN 36 + + SUM( ALL + 72 ) * - COUNT( * ) THEN NULL WHEN - - 44 THEN - - 66 * - + 91 + - + 39 ELSE - 86 END ) + - 66 * COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2038
SELECT + ( - CASE - + 39 WHEN 23 * + 95 THEN NULL WHEN 36 + + SUM ( ALL + 72 ) * - COUNT ( * ) THEN NULL WHEN - - 44 THEN - - 66 * - + 91 + - + 39 ELSE - 86 END ) + - 66 * COUNT ( * ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2039
SELECT ALL + - 20 * - CAST( NULL AS SIGNED ) DIV + - 98 - - COUNT( * ) col2, ( - - 62 ) * - + MIN( ALL - - 26 ) DIV - + COUNT( * ) + + + NULLIF ( + 37, - + CAST( - 60 AS DECIMAL ) ) AS col1
----
NULL
1649

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL + - 20 * - CAST ( NULL AS INTEGER ) / + - 98 - - COUNT ( * ) col2, ( - - 62 ) * - + MIN ( ALL - - 26 ) / - + COUNT ( * ) + + + NULLIF ( + 37, - + CAST ( - 60 AS REAL ) ) AS col1
----
NULL
1649

query I rowsort
SELECT 57 * 89 AS col1
----
5073

query I rowsort
SELECT 3 * 64 col0
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT DISTINCT - COUNT( - - 97 ) AS col2, 11 - + 1 + + 21 * - 99 * - - 76 - - 16 * 14 * - 48
----
-1
-168746

skipif mysql # not compatible
query II rowsort label-2042
SELECT DISTINCT - COUNT ( - - 97 ) AS col2, 11 - + 1 + + 21 * - 99 * - - 76 - - 16 * 14 * - 48
----
-1
-168746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT + + 73 DIV + + 86 + + 84 + + 34 + + - ( - 47 ) + + - 17 + COUNT( * ) * + - 22 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-2043
SELECT + + 73 / + + 86 + + 84 + + 34 + + - ( - 47 ) + + - 17 + COUNT ( * ) * + - 22 AS col2
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT COUNT( * ) * + + NULLIF ( + - 33, + + 90 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2045
SELECT COUNT ( * ) * + + NULLIF ( + - 33, + + 90 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + ( + + MIN( DISTINCT - 29 ) ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-2046
SELECT + ( + + MIN ( DISTINCT - 29 ) ) col2
----
-29

query I rowsort
SELECT ALL - 39 * - + 48 * 48 col1
----
89856

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT MAX( 86 ) + - - 19
----
105

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT MAX ( 86 ) + - - 19
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT 90 + + 37 - - NULLIF ( - COUNT( * ), 83 / ( - + 28 ) - 55 * - + 85 / - - 80 + + + 81 ) + + 48 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2049
SELECT 90 + + 37 - - NULLIF ( - COUNT ( * ), 83 / ( - + 28 ) - 55 * - + 85 / - - 80 + + + 81 ) + + 48 AS col0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT CASE + COUNT( * ) WHEN 17 + + 10 + - 90 + + 51 + - 78 + + ( + 58 ) * CASE - 10 WHEN + NULLIF ( - + CAST( 70 AS SIGNED ), + 91 * + 62 + + 96 / - 67 ) THEN NULL WHEN + 94 / CAST( 51 AS SIGNED ) + 66 * 48 THEN - 28 ELSE NULL END - 86 THEN ( 75 ) + - COUNT( * ) WHEN 26 / COUNT( ALL + 52 * + COALESCE ( + 24, - 18 ) ) + 93 THEN NULL END + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT CASE + COUNT ( * ) WHEN 17 + + 10 + - 90 + + 51 + - 78 + + ( + 58 ) * CASE - 10 WHEN + NULLIF ( - + CAST ( 70 AS INTEGER ), + 91 * + 62 + + 96 / - 67 ) THEN NULL WHEN + 94 / CAST ( 51 AS INTEGER ) + 66 * 48 THEN - 28 ELSE NULL END - 86 THEN ( 75 ) + - COUNT ( * ) WHEN 26 / COUNT ( ALL + 52 * + COALESCE ( + 24, - 18 ) ) + 93 THEN NULL END + + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT 38 * + - COALESCE ( 77, 79 * 11 + - - COUNT( - 37 ) * + + 7 + + AVG ( ALL + - 10 ) + + COUNT( * ) + - - ( + 85 ) + 86 + + - 24 * + 80, 26 * - 23 ) DIV + 11 AS col2
----
-266

skipif mysql # not compatible
query I rowsort label-2051
SELECT 38 * + - COALESCE ( 77, 79 * 11 + - - COUNT ( - 37 ) * + + 7 + + AVG ( ALL + - 10 ) + + COUNT ( * ) + - - ( + 85 ) + 86 + + - 24 * + 80, 26 * - 23 ) / + 11 AS col2
----
-266

query I rowsort
SELECT 86 * + - 6 + - - 15 + 93 AS col2
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT 44 DIV - 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2053
SELECT 44 / - 5 AS col1
----
-8

query I rowsort
SELECT ALL - 13 + + + 51
----
38

query I rowsort
SELECT 77 * 30 + + - 39 AS col2
----
2271

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT - 13 * + + 19 * - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 13 * + + 19 * - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 72
----
NULL

query I rowsort
SELECT 28 * + + 35 AS col0
----
980

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

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

query I rowsort
SELECT 34 + - 18 * - + 31 * + 3 - - - ( + - 31 ) * 74 AS col1
----
4002

query I rowsort
SELECT ALL 82 - 98
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT 44 + + CASE - COUNT( * ) WHEN 4 THEN + COUNT( * ) * - 68 + - 75 + - COUNT( * ) / + 7 + CASE - MAX( ALL - - 71 ) WHEN - COUNT( * ) / + - 67 + - 99 + 52 * - 19 THEN NULL WHEN 35 + + COUNT( * ) THEN + 60 + 56 ELSE NULL END * + 74 END + + 63 * 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT 44 + + CASE - COUNT ( * ) WHEN 4 THEN + COUNT ( * ) * - 68 + - 75 + - COUNT ( * ) / + 7 + CASE - MAX ( ALL - - 71 ) WHEN - COUNT ( * ) / + - 67 + - 99 + 52 * - 19 THEN NULL WHEN 35 + + COUNT ( * ) THEN + 60 + 56 ELSE NULL END * + 74 END + + 63 * 76 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT 60 + + + 20 AS col0
----
80

query I rowsort
SELECT ALL + 24 * + 54 AS col2
----
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM( DISTINCT 53 ) ) * + + COUNT( * ) * + 90 * - + 88 ) ) AS col2
----
6
66

skipif mysql # not compatible
query II rowsort label-2067
SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM ( DISTINCT 53 ) ) * + + COUNT ( * ) * + 90 * - + 88 ) ) AS col2
----
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - ( - 48 ) + + + COUNT( DISTINCT - 7 )
----
49

skipif mysql # not compatible
query I rowsort label-2068
SELECT - ( - 48 ) + + + COUNT ( DISTINCT - 7 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + COUNT( DISTINCT + + COALESCE ( + ( 79 ), - 81 + - 28 + 58, - + 62 * - - 67 ) ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-2069
SELECT + COUNT ( DISTINCT + + COALESCE ( + ( 79 ), - 81 + - 28 + 58, - + 62 * - - 67 ) ) + + 40
----
41

query I rowsort
SELECT - + 67 * 78 * - 6 AS col1
----
31356

query I rowsort
SELECT ALL + NULLIF ( - ( - 23 ), + 48 ) AS col0
----
23

query I rowsort
SELECT + NULLIF ( ( - 93 ), + 62 )
----
-93

query I rowsort
SELECT - + 84 * + 73 AS col1
----
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - COALESCE ( - 81, + COALESCE ( 85, - 56 ) * + 37 * + 65 + + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2074
SELECT - COALESCE ( - 81, + COALESCE ( 85, - 56 ) * + 37 * + 65 + + COUNT ( * ) ) AS col2
----
81

query I rowsort
SELECT - + 40 * - 5
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2076
SELECT - + COUNT( * ) DIV - + COALESCE ( + MAX( DISTINCT - 97 ), COUNT( * ), 12 - + 84 + + 55, + ( + + CAST( COUNT( * ) AS SIGNED ) ) ) DIV 28 + + 55 + - - COUNT( * ) - - 35 + 26 col1
----
117

skipif mysql # not compatible
query I rowsort label-2076
SELECT - + COUNT ( * ) / - + COALESCE ( + MAX ( DISTINCT - 97 ), COUNT ( * ), 12 - + 84 + + 55, + ( + + CAST ( COUNT ( * ) AS INTEGER ) ) ) / 28 + + 55 + - - COUNT ( * ) - - 35 + 26 col1
----
117

query I rowsort
SELECT DISTINCT 8 + + 9 + 93 + - + 54 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL + + 12 AS col2, COUNT( * ) * + NULLIF ( - - 78, + SUM( 88 ) * + COUNT( * ) * - 41 )
----
12
78

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + + 12 AS col2, COUNT ( * ) * + NULLIF ( - - 78, + SUM ( 88 ) * + COUNT ( * ) * - 41 )
----
12
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT - ( - NULLIF ( - - CASE + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + 51, + COUNT( * ) * + 42 ) THEN 84 + 68 WHEN + COUNT( * ) + - AVG ( DISTINCT + + 31 ) THEN NULL ELSE NULL END, + 90 * - 53 ) ) / + 72 - NULLIF ( - COALESCE ( + 2, 17 * + 93, 82 + 93 * CASE 37 + 50 WHEN - ( AVG ( - CAST( + 26 AS SIGNED ) ) ) THEN COUNT( ALL 2 ) END, CASE - 79 WHEN COUNT( * ) / - 72 THEN - 39 ELSE 14 * 36 END * 81 + COUNT( * ) ), + 5 + - 20 ) * - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT - ( - NULLIF ( - - CASE + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 51, + COUNT ( * ) * + 42 ) THEN 84 + 68 WHEN + COUNT ( * ) + - AVG ( DISTINCT + + 31 ) THEN NULL ELSE NULL END, + 90 * - 53 ) ) / + 72 - NULLIF ( - COALESCE ( + 2, 17 * + 93, 82 + 93 * CASE 37 + 50 WHEN - ( AVG ( - CAST ( + 26 AS INTEGER ) ) ) THEN COUNT ( ALL 2 ) END, CASE - 79 WHEN COUNT ( * ) / - 72 THEN - 39 ELSE 14 * 36 END * 81 + COUNT ( * ) ), + 5 + - 20 ) * - 24 col0
----
NULL

query I rowsort
SELECT + + 82 * 92 * + - 21 col0
----
-158424

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + 60 * - - 49 + - 3 * - + COUNT( * ) * + COUNT( * ) * 95 * + 53
----
18045

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + 60 * - - 49 + - 3 * - + COUNT ( * ) * + COUNT ( * ) * 95 * + 53
----
18045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT - 62 * ( - + 60 ) DIV ( + COUNT( * ) )
----
3720

skipif mysql # not compatible
query I rowsort label-2082
SELECT - 62 * ( - + 60 ) / ( + COUNT ( * ) )
----
3720

query II rowsort
SELECT DISTINCT + 97 * - 39 * - 60 + - 41, 11 + + 54 + + 34 + - - 62 * - 7 AS col1
----
226939
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + 95 - - 11 + MIN( + 41 ) * + 2 * + + COUNT( * ) / - + 11 * ( - 91 ) * - ( + + MIN( 6 ) ) * + 47 + - + 87 * 99 * + CASE + COUNT( * ) WHEN - 61 THEN 44 * ( - ( 30 ) ) WHEN 96 THEN NULL ELSE NULL END + + 25 * + 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 95 - - 11 + MIN ( + 41 ) * + 2 * + + COUNT ( * ) / - + 11 * ( - 91 ) * - ( + + MIN ( 6 ) ) * + 47 + - + 87 * 99 * + CASE + COUNT ( * ) WHEN - 61 THEN 44 * ( - ( 30 ) ) WHEN 96 THEN NULL ELSE NULL END + + 25 * + 69 col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT - 9 * + 10 + 35 + + 23 + - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 9 * + 10 + 35 + + 23 + - + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL - 64 * 10 + 29 + - ( + - 19 ) AS col1
----
-592

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT ALL 77 * + COUNT( * ) AS col2, - 69 AS col1
----
77
-69

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL 77 * + COUNT ( * ) AS col2, - 69 AS col1
----
77
-69

query II rowsort
SELECT ALL + 54 AS col0, + 30 AS col1
----
54
30

query I rowsort
SELECT DISTINCT - 20 * + - 31 - 4 AS col2
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT + CASE + CAST( + 81 AS SIGNED ) WHEN - 29 THEN NULL ELSE - ( + 52 ) * + 58 * - 96 END col1
----
289536

skipif mysql # not compatible
query I rowsort label-2090
SELECT + CASE + CAST ( + 81 AS INTEGER ) WHEN - 29 THEN NULL ELSE - ( + 52 ) * + 58 * - 96 END col1
----
289536

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

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

query I rowsort
SELECT + CASE - AVG ( - - 67 ) WHEN + NULLIF ( - - 82, 36 ) THEN NULL ELSE 7 END
----
7

query I rowsort
SELECT - 83 * - + 53 - + - 44
----
4443

query I rowsort
SELECT - 5 * + 28
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT DISTINCT - 65 DIV - 15 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - 65 / - 15 AS col1
----
4

query II rowsort
SELECT DISTINCT 94 AS col2, - 27 AS col2
----
94
-27

query I rowsort
SELECT DISTINCT - 68 * - 52 / + 23 + + 33 + - - 46 + + CASE - 38 WHEN - 1 THEN - 89 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT - 57 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - 57 / - 32
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT DISTINCT 38 DIV - 63 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT 38 / - 63 * + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + - 19 + + 79 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2100
SELECT + - 19 + + 79 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT + + 44 + - + 1 * 12 AS col0
----
32

query I rowsort
SELECT + ( - 32 ) * 20 + - ( 91 ) - 67 + + 86
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - - COUNT( ALL 59 ) + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2103
SELECT - - COUNT ( ALL 59 ) + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL 36 * + CASE + + 84 WHEN - 0 THEN NULLIF ( + MAX( 13 ), - 88 ) / + 47 WHEN 49 THEN NULL ELSE NULL END * - 30 * + + COUNT( * ) + - 15 + 69, + 80 + 95 AS col1
----
NULL
175

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL 36 * + CASE + + 84 WHEN - 0 THEN NULLIF ( + MAX ( 13 ), - 88 ) / + 47 WHEN 49 THEN NULL ELSE NULL END * - 30 * + + COUNT ( * ) + - 15 + 69, + 80 + 95 AS col1
----
NULL
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT ALL + 14 + 82 - + 14 DIV - COUNT( * ) + - 3 + - 58
----
49

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + 14 + 82 - + 14 / - COUNT ( * ) + - 3 + - 58
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT - 56 + + MAX( 36 )
----
-20

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - 56 + + MAX ( 36 )
----
-20

query II rowsort
SELECT DISTINCT 19, 48 AS col1
----
19
48

query I rowsort
SELECT - - 53 + + 57 AS col2
----
110

query I rowsort
SELECT - CASE - ( 54 ) WHEN 45 THEN + 81 WHEN - 41 THEN NULL WHEN - + 31 * - + 46 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2110
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) * 84 * COUNT( * ) * + 5 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 84 * COUNT ( * ) * + 5 AS col0
----
NULL
NULL

query I rowsort
SELECT - - 67 * - 78 + 30 * - 47 * + + 62 AS col1
----
-92646

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT + 39 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 39 / 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL + 37 DIV - 27 - - 44 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + 37 / - 27 - - 44 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT - 83 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT CAST( - NULLIF ( - 89, + CASE - - ( + 2 ) WHEN - MIN( + 33 ) THEN ( + COUNT( * ) ) END / + + 9 * + 68 * - 59 * + 37 / + 62 ) AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2115
SELECT CAST ( - NULLIF ( - 89, + CASE - - ( + 2 ) WHEN - MIN ( + 33 ) THEN ( + COUNT ( * ) ) END / + + 9 * + 68 * - 59 * + 37 / + 62 ) AS INTEGER ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - ( - 82 ) * + + MIN( - 30 ) - - + 43 * + 80 AS col2
----
980

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - ( - 82 ) * + + MIN ( - 30 ) - - + 43 * + 80 AS col2
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + MAX( DISTINCT - 45 ) * + 70 * + 17 AS col2
----
-53550

skipif mysql # not compatible
query I rowsort label-2117
SELECT + MAX ( DISTINCT - 45 ) * + 70 * + 17 AS col2
----
-53550

query I rowsort
SELECT - 41 + - - 65 + + 26
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT 51 * + 10 - - COUNT( * ) AS col1
----
511

skipif mysql # not compatible
query I rowsort label-2119
SELECT 51 * + 10 - - COUNT ( * ) AS col1
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT COUNT( * ) + 41 col1, 75
----
42
75

skipif mysql # not compatible
query II rowsort label-2120
SELECT COUNT ( * ) + 41 col1, 75
----
42
75

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

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 28 / - - ( + COUNT ( * ) ) AS col1
----
28

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

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

query I rowsort
SELECT ALL 57 * + 87 AS col2
----
4959

query I rowsort
SELECT ALL 69 * + ( - + 33 ) AS col0
----
-2277

query I rowsort
SELECT DISTINCT 27 * 90
----
2430

query I rowsort
SELECT + 75 * - 51 * - + 4
----
15300

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL - MAX( DISTINCT + 14 ) + 13 + + + 23
----
22

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - MAX ( DISTINCT + 14 ) + 13 + + + 23
----
22

query I rowsort
SELECT DISTINCT + 45 + - 73 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT ALL MIN( DISTINCT + 68 ) AS col1, 7 + - 12 * - - ( - - 63 )
----
68
-749

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL MIN ( DISTINCT + 68 ) AS col1, 7 + - 12 * - - ( - - 63 )
----
68
-749

query I rowsort
SELECT DISTINCT - 76 + 53 + - 0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL 11 + ( - 28 ) + - NULLIF ( - 55, + 86 + - + SUM( + COALESCE ( NULLIF ( + 29, + 97 ), + 95, - 14 ) ) + 11 + 17 / + - 24 * + 98 / 81 - 11 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL 11 + ( - 28 ) + - NULLIF ( - 55, + 86 + - + SUM ( + COALESCE ( NULLIF ( + 29, + 97 ), + 95, - 14 ) ) + 11 + 17 / + - 24 * + 98 / 81 - 11 ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT 29 + - + 50 DIV + 74
----
29

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT 29 + - + 50 / + 74
----
29

query I rowsort
SELECT + 78 * + - 16
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT 60 - + CASE - - 38 WHEN ( + ( + COUNT( * ) ) ) + + 88 * - + 45 THEN NULL ELSE + 95 END AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2134
SELECT 60 - + CASE - - 38 WHEN ( + ( + COUNT ( * ) ) ) + + 88 * - + 45 THEN NULL ELSE + 95 END AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT ALL + + 71 + + + 17 + 20, - CASE - + 97 WHEN - COUNT( * ) THEN NULL WHEN 12 THEN + COUNT( * ) * - 86 + - COUNT( * ) * + 44 + COUNT( * ) ELSE - 98 + 80 END * + + COUNT( * ) + 17 AS col1
----
108
35

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL + + 71 + + + 17 + 20, - CASE - + 97 WHEN - COUNT ( * ) THEN NULL WHEN 12 THEN + COUNT ( * ) * - 86 + - COUNT ( * ) * + 44 + COUNT ( * ) ELSE - 98 + 80 END * + + COUNT ( * ) + 17 AS col1
----
108
35

query I rowsort
SELECT - 44 - - 97 * 87 AS col2
----
8395

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT 50 * + MAX( ALL 73 ) + - 44 AS col0
----
3606

skipif mysql # not compatible
query I rowsort label-2137
SELECT 50 * + MAX ( ALL 73 ) + - 44 AS col0
----
3606

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - 58 * - 25 + - ( NULLIF ( - 59, - 78 + - COUNT( * ) ) ) - + 32 * 46
----
37

skipif mysql # not compatible
query I rowsort label-2138
SELECT - 58 * - 25 + - ( NULLIF ( - 59, - 78 + - COUNT ( * ) ) ) - + 32 * 46
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + 0 * MIN( - + 26 ) + + 27 * - 4
----
-108

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 0 * MIN ( - + 26 ) + + 27 * - 4
----
-108

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

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - MAX ( CAST ( 91 AS INTEGER ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 6 - - COUNT( + - 65 )
----
7

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 6 - - COUNT ( + - 65 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + COUNT( * ) * + 87 * + 58 AS col2
----
5046

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + COUNT ( * ) * + 87 * + 58 AS col2
----
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT - COUNT( * ) DIV - + 9 + - 6 * + 45
----
-270

skipif mysql # not compatible
query I rowsort label-2143
SELECT - COUNT ( * ) / - + 9 + - 6 * + 45
----
-270

query I rowsort
SELECT DISTINCT + 82 - - 31
----
113

query II rowsort
SELECT ALL - 79 AS col1, - CASE ( - 47 ) WHEN ( - 47 ) THEN 70 + 51 END AS col2
----
-79
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 18 * + 80 * + COUNT( * ) * 46 * 60 * - 32
----
-127180800

skipif mysql # not compatible
query I rowsort label-2146
SELECT 18 * + 80 * + COUNT ( * ) * 46 * 60 * - 32
----
-127180800

query I rowsort
SELECT 60 + - 0
----
60

query I rowsort
SELECT 56 * + + 21 * + 16 + 34 col2
----
18850

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT COUNT( + 73 ) - - 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-2149
SELECT COUNT ( + 73 ) - - 36 col0
----
37

query I rowsort
SELECT ALL + 65 * - 10
----
-650

query II rowsort
SELECT 28 AS col0, 12
----
28
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT + 47 * CAST( - 96 AS SIGNED ) col0
----
-4512

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + 47 * CAST ( - 96 AS INTEGER ) col0
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL 81 + - CASE + - 94 WHEN MIN( DISTINCT - - 75 ) THEN + AVG ( - 23 ) END + - 46 / 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL 81 + - CASE + - 94 WHEN MIN ( DISTINCT - - 75 ) THEN + AVG ( - 23 ) END + - 46 / 59 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2154
SELECT + 32 AS col2, CAST( + 59 AS SIGNED ) AS col1
----
32
59

skipif mysql # not compatible
query II rowsort label-2154
SELECT + 32 AS col2, CAST ( + 59 AS INTEGER ) AS col1
----
32
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM( DISTINCT - 53 ) * - COUNT( * ) * SUM( DISTINCT - 49 ) + + MAX( ALL - 91 ) * - + 68 AS col0
----
-95
7640

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM ( DISTINCT - 53 ) * - COUNT ( * ) * SUM ( DISTINCT - 49 ) + + MAX ( ALL - 91 ) * - + 68 AS col0
----
-95
7640

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT SUM( ALL - + 96 ) * - - 77
----
-7392

skipif mysql # not compatible
query I rowsort label-2156
SELECT SUM ( ALL - + 96 ) * - - 77
----
-7392

query II rowsort
SELECT ALL - 40 AS col2, 86 * + - 45 * - 37 + - 44 AS col0
----
-40
143146

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT 49 - + ( COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-2159
SELECT 49 - + ( COUNT ( * ) )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2160
SELECT 57, - CAST( NULL AS SIGNED ) * 22 * + 56 * + 9 * - 10 / + 9 AS col1
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2160
SELECT 57, - CAST ( NULL AS INTEGER ) * 22 * + 56 * + 9 * - 10 / + 9 AS col1
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + - 99 + + CASE 22 WHEN + - 45 * + 76 - + 25 + - 63 * - 48 THEN NULL WHEN 10 THEN NULL ELSE + 79 * COUNT( * ) + + 67 END AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + - 99 + + CASE 22 WHEN + - 45 * + 76 - + 25 + - 63 * - 48 THEN NULL WHEN 10 THEN NULL ELSE + 79 * COUNT ( * ) + + 67 END AS col0
----
47

query I rowsort
SELECT + + 64 * + + 60 - 47
----
3793

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT 27 * - CASE - 1 WHEN + + COALESCE ( + COALESCE ( + - NULLIF ( - 4, 84 + + - COUNT( ALL - + 49 ) * - 77 + ( + + 85 ) / 95 + - 89 ), + 56, 31 ), + 38 ) + 35 THEN NULL ELSE 90 END * 80
----
-194400

skipif mysql # not compatible
query I rowsort label-2163
SELECT 27 * - CASE - 1 WHEN + + COALESCE ( + COALESCE ( + - NULLIF ( - 4, 84 + + - COUNT ( ALL - + 49 ) * - 77 + ( + + 85 ) / 95 + - 89 ), + 56, 31 ), + 38 ) + 35 THEN NULL ELSE 90 END * 80
----
-194400

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - COALESCE ( - 55, - COUNT( * ) + ( - 14 ), 95 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2164
SELECT - COALESCE ( - 55, - COUNT ( * ) + ( - 14 ), 95 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL - 16 + + 63 * + - 53 + CAST( 87 AS SIGNED ) AS col2
----
-3268

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 16 + + 63 * + - 53 + CAST ( 87 AS INTEGER ) AS col2
----
-3268

query II rowsort
SELECT - 52 AS col2, + 55 AS col2
----
-52
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT DISTINCT CAST( - CAST( 46 AS SIGNED ) AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT CAST ( - CAST ( 46 AS INTEGER ) AS INTEGER ) AS col1
----
-46

query I rowsort
SELECT DISTINCT + - 44 + - - 22
----
-22

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

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

query I rowsort
SELECT + 48 - + 46 - - 15 * 36
----
542

query II rowsort
SELECT ALL + 93, - 70 col2
----
93
-70

query I rowsort
SELECT 96 - + 45 + 13 * + 89
----
1208

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - ( ( 47 ) ) * - 77 + + - COUNT( * ) * - - COALESCE ( + NULLIF ( - - 98, COUNT( * ) / - - CASE + 49 WHEN - 20 THEN - ( 32 ) END + + 85 ), NULLIF ( + 80, + 81 ) ) * + 12
----
2443

skipif mysql # not compatible
query I rowsort label-2173
SELECT - ( ( 47 ) ) * - 77 + + - COUNT ( * ) * - - COALESCE ( + NULLIF ( - - 98, COUNT ( * ) / - - CASE + 49 WHEN - 20 THEN - ( 32 ) END + + 85 ), NULLIF ( + 80, + 81 ) ) * + 12
----
2443

query I rowsort
SELECT 75 + + 27 AS col1
----
102

query I rowsort
SELECT - 98 - - CASE 97 WHEN + - 5 * + 62 THEN + 64 END
----
NULL

query I rowsort
SELECT - 42 + + 60 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT CASE 12 WHEN + SUM( DISTINCT - + 29 ) THEN + - 29 * + 95 ELSE + CAST( + 74 AS SIGNED ) END - - 5 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CASE 12 WHEN + SUM ( DISTINCT - + 29 ) THEN + - 29 * + 95 ELSE + CAST ( + 74 AS INTEGER ) END - - 5 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 91
----
NULL

query I rowsort
SELECT ALL ( - ( NULLIF ( + 97, 11 ) ) ) AS col2
----
-97

query I rowsort
SELECT + 51 * - 5 AS col1
----
-255

query I rowsort
SELECT DISTINCT 30 - - 55 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL + 90 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + 90 / 52
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT NULLIF ( COALESCE ( - 97, + 0, - CASE + 69 WHEN - 6 * NULLIF ( + 79, 29 * 75 ) * + 25 + + NULLIF ( - 71, 36 * + + MAX( DISTINCT + + 85 ) * 69 + 26 ) * 63 + 39 THEN NULL ELSE - 47 + + 8 END + - CASE 18 WHEN + 33 + - 77 THEN 66 + 43 * CAST( NULL AS SIGNED ) WHEN - MIN( DISTINCT 59 ) * MIN( ALL 4 ) THEN - 72 * 10 - 42 END * 30 ), - 7 ) + ( 75 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2182
SELECT NULLIF ( COALESCE ( - 97, + 0, - CASE + 69 WHEN - 6 * NULLIF ( + 79, 29 * 75 ) * + 25 + + NULLIF ( - 71, 36 * + + MAX ( DISTINCT + + 85 ) * 69 + 26 ) * 63 + 39 THEN NULL ELSE - 47 + + 8 END + - CASE 18 WHEN + 33 + - 77 THEN 66 + 43 * CAST ( NULL AS INTEGER ) WHEN - MIN ( DISTINCT 59 ) * MIN ( ALL 4 ) THEN - 72 * 10 - 42 END * 30 ), - 7 ) + ( 75 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT - CASE - - 23 WHEN + - CASE - + 1 WHEN + 57 * 17 * COUNT( * ) THEN 94 * ( - 32 ) END + 17 THEN + 16 * + + 74 * + ( + + 55 ) * + + 80 + 75 + - + 81 WHEN CAST( 80 AS SIGNED ) THEN + AVG ( 8 ) + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CASE - - 23 WHEN + - CASE - + 1 WHEN + 57 * 17 * COUNT ( * ) THEN 94 * ( - 32 ) END + 17 THEN + 16 * + + 74 * + ( + + 55 ) * + + 80 + 75 + - + 81 WHEN CAST ( 80 AS INTEGER ) THEN + AVG ( 8 ) + 99 END
----
NULL

query I rowsort
SELECT ALL 18 * - + 40
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT 18 DIV 11 col0
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT 18 / 11 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 54 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT 54 / 54 AS col0
----
1

query I rowsort
SELECT + 41 + + + 44 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL ( - COALESCE ( COUNT( * ), 24 + + 60 + 73 + - 44 * + 41 * + - 62 ) ) * + - 62
----
62

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL ( - COALESCE ( COUNT ( * ), 24 + + 60 + 73 + - 44 * + 41 * + - 62 ) ) * + - 62
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ( + CASE - CAST( NULL AS SIGNED ) WHEN + - 59 THEN NULL ELSE 56 - + 19 END ) * + 93 + - 57 AS col0
----
3384

skipif mysql # not compatible
query I rowsort label-2189
SELECT ( + CASE - CAST ( NULL AS INTEGER ) WHEN + - 59 THEN NULL ELSE 56 - + 19 END ) * + 93 + - 57 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL 99 * + SUM( 77 ) AS col0
----
7623

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 99 * + SUM ( 77 ) AS col0
----
7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2191
SELECT DISTINCT ( + + 37 ) * CAST( + 4 AS SIGNED ), ( - 11 ) * + 79 - - + COUNT( * ) AS col0
----
148
-868

skipif mysql # not compatible
query II rowsort label-2191
SELECT DISTINCT ( + + 37 ) * CAST ( + 4 AS INTEGER ), ( - 11 ) * + 79 - - + COUNT ( * ) AS col0
----
148
-868

query I rowsort
SELECT COALESCE ( + 68, 83, + 1 * - 75 * - 48 * + - 18 ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - CASE - 74 WHEN + 50 THEN COUNT( * ) * - - ( - + 74 ) ELSE + MAX( 0 ) END + + - 98 * - - COALESCE ( + 51, 74 * 35 )
----
-4998

skipif mysql # not compatible
query I rowsort label-2193
SELECT - CASE - 74 WHEN + 50 THEN COUNT ( * ) * - - ( - + 74 ) ELSE + MAX ( 0 ) END + + - 98 * - - COALESCE ( + 51, 74 * 35 )
----
-4998

query I rowsort
SELECT DISTINCT 71 * + + 94 + 49 col1
----
6723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT 77 * ( + ( NULLIF ( - AVG ( DISTINCT - 34 ), - CAST( NULL AS SIGNED ) ) ) ) + + COALESCE ( - 82, + CASE WHEN - COUNT( * ) IS NULL THEN + 16 END ) + 11 + MAX( + + 39 ) + - + 4 * CAST( NULL AS SIGNED ) / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT 77 * ( + ( NULLIF ( - AVG ( DISTINCT - 34 ), - CAST ( NULL AS INTEGER ) ) ) ) + + COALESCE ( - 82, + CASE WHEN - COUNT ( * ) IS NULL THEN + 16 END ) + 11 + MAX ( + + 39 ) + - + 4 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL 45 * + ( + + 79 ) * - 6 + + 76 * - 0 * 54
----
-21330

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT - 58 DIV - 96 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 58 / - 96 + - 35
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT MAX( ALL 3 ) AS col2, + COUNT( DISTINCT - ( - 63 ) ) AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-2198
SELECT MAX ( ALL 3 ) AS col2, + COUNT ( DISTINCT - ( - 63 ) ) AS col0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT COUNT( * ) * - + 49 - ( - CASE - + 64 WHEN - 82 THEN - - 76 WHEN - 59 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT COUNT ( * ) * - + 49 - ( - CASE - + 64 WHEN - 82 THEN - - 76 WHEN - 59 THEN NULL END )
----
NULL

query I rowsort
SELECT - + 51 + - ( 26 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - 29 * + 49 * 87
----
-123627

query I rowsort
SELECT DISTINCT 4 * - 69 + - - 21 + 27 + + 64
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + + CASE COUNT( * ) WHEN - 73 + 38 * - ( + 55 ) * 23 THEN + 63 ELSE - 20 END * + - 77 * + 43 + - COUNT( * ) + - 74
----
66145

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + + CASE COUNT ( * ) WHEN - 73 + 38 * - ( + 55 ) * 23 THEN + 63 ELSE - 20 END * + - 77 * + 43 + - COUNT ( * ) + - 74
----
66145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2204
SELECT ALL - CASE + 38 WHEN + - 19 THEN NULL ELSE - 15 * - + 2 * - 99 END * - COUNT( * ) + + 37 * + COUNT( 34 ) DIV - 38 + - + COALESCE ( - 91, 89 * - + 39 * CAST( + + COUNT( ALL + 41 ) AS SIGNED ), - + 56 + 46 ) AS col0
----
-2879

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - CASE + 38 WHEN + - 19 THEN NULL ELSE - 15 * - + 2 * - 99 END * - COUNT ( * ) + + 37 * + COUNT ( 34 ) / - 38 + - + COALESCE ( - 91, 89 * - + 39 * CAST ( + + COUNT ( ALL + 41 ) AS INTEGER ), - + 56 + 46 ) AS col0
----
-2879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT DISTINCT - + 29 * - 5 + + CASE 7 WHEN - - 69 THEN NULL WHEN - COUNT( * ) THEN + + 75 + + COUNT( * ) * - 96 * + 29 * + 15 ELSE - 41 + + 90 DIV - + MIN( - 85 ) END
----
105

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - + 29 * - 5 + + CASE 7 WHEN - - 69 THEN NULL WHEN - COUNT ( * ) THEN + + 75 + + COUNT ( * ) * - 96 * + 29 * + 15 ELSE - 41 + + 90 / - + MIN ( - 85 ) END
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT - 60 + - + 45 * - - CAST( + 68 AS SIGNED ) * + - ( - - 53 ) + - - 71 + - COUNT( * ) * - 94 * 38 + + 64
----
165827

skipif mysql # not compatible
query I rowsort label-2206
SELECT - 60 + - + 45 * - - CAST ( + 68 AS INTEGER ) * + - ( - - 53 ) + - - 71 + - COUNT ( * ) * - 94 * 38 + + 64
----
165827

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL COALESCE ( - 54, + + COUNT( DISTINCT 27 ) + + 34 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL COALESCE ( - 54, + + COUNT ( DISTINCT 27 ) + + 34 ) AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL - 86 DIV ( - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - 86 / ( - 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + - COUNT( 42 ) + 90 col0
----
89

skipif mysql # not compatible
query I rowsort label-2209
SELECT + - COUNT ( 42 ) + 90 col0
----
89

query I rowsort
SELECT - 35 * + 36 AS col1
----
-1260

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

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

query II rowsort
SELECT DISTINCT - 41 - + 86 AS col1, 78
----
-127
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2213
SELECT + + SUM( + 96 ) + + CASE 72 WHEN CAST( NULL AS DECIMAL ) + + 35 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + SUM ( + 96 ) + + CASE 72 WHEN CAST ( NULL AS REAL ) + + 35 THEN + 19 END
----
NULL

query I rowsort
SELECT - 48 * - + 75 AS col0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + CASE 14 WHEN 0 + - - AVG ( ALL + 17 ) / - 1 + + + 56 + + COUNT( ALL ( 88 ) ) + + + COUNT( ALL 38 ) * - + COUNT( * ) + - 72 * - CASE SUM( DISTINCT + - 61 ) WHEN - ( + 60 ) THEN - 46 END * - COUNT( * ) THEN - 57 END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + CASE 14 WHEN 0 + - - AVG ( ALL + 17 ) / - 1 + + + 56 + + COUNT ( ALL ( 88 ) ) + + + COUNT ( ALL 38 ) * - + COUNT ( * ) + - 72 * - CASE SUM ( DISTINCT + - 61 ) WHEN - ( + 60 ) THEN - 46 END * - COUNT ( * ) THEN - 57 END * + 56
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT - CASE - 21 WHEN ( 95 ) THEN 26 WHEN + - 39 * + + MAX( DISTINCT - CAST( - - 99 AS SIGNED ) ) THEN 79 + - COUNT( * ) WHEN + - 42 * 52 - ( + 6 ) THEN - 79 * 22 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT - CASE - 21 WHEN ( 95 ) THEN 26 WHEN + - 39 * + + MAX ( DISTINCT - CAST ( - - 99 AS INTEGER ) ) THEN 79 + - COUNT ( * ) WHEN + - 42 * 52 - ( + 6 ) THEN - 79 * 22 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 0 - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2219
SELECT - ( + SUM( ALL - COALESCE ( - 99, 95 * - + 56 ) ) ), 71 DIV 1 AS col2
----
-99
71

skipif mysql # not compatible
query II rowsort label-2219
SELECT - ( + SUM ( ALL - COALESCE ( - 99, 95 * - + 56 ) ) ), 71 / 1 AS col2
----
-99
71

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

skipif mysql # not compatible
query I rowsort label-2220
SELECT + 23 + - - ( - ( - + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 6 + + 40 AS col2
----
46

query II rowsort
SELECT DISTINCT 66 AS col1, 70 AS col0
----
66
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT CASE + + 35 WHEN - 33 THEN + 78 + - 20 WHEN - 56 THEN + 55 * + COUNT( ALL - 81 ) + + 66 END * - CAST( NULL AS SIGNED ) / + COUNT( * ) + - + CASE - + 62 WHEN - - 34 THEN NULL WHEN 36 / - 52 THEN + 87 WHEN - 65 THEN NULL ELSE 60 * 52 END + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT CASE + + 35 WHEN - 33 THEN + 78 + - 20 WHEN - 56 THEN + 55 * + COUNT ( ALL - 81 ) + + 66 END * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - + CASE - + 62 WHEN - - 34 THEN NULL WHEN 36 / - 52 THEN + 87 WHEN - 65 THEN NULL ELSE 60 * 52 END + + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2224
SELECT + NULLIF ( 87, SUM( 72 ) + + 81 + - 17 + + - 34 * + 47 ) - + + 26 * - 16 / - CASE - - CAST( NULL AS DECIMAL ) WHEN + 43 THEN - - 43 * - - CAST( NULL AS SIGNED ) + 59 END + 3 + 99 + 39 - + 45 * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT + NULLIF ( 87, SUM ( 72 ) + + 81 + - 17 + + - 34 * + 47 ) - + + 26 * - 16 / - CASE - - CAST ( NULL AS REAL ) WHEN + 43 THEN - - 43 * - - CAST ( NULL AS INTEGER ) + 59 END + 3 + 99 + 39 - + 45 * 97 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2225
SELECT ALL ( - + CASE + 26 WHEN - - CAST( NULL AS SIGNED ) THEN 46 * AVG ( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + 10 * - - COALESCE ( - - 7, - 14 - COALESCE ( - 14, - - 82 * + - 15 * + 53, + - 58 ) ) * - 74 + 8 END ) / 77 + - 29 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL ( - + CASE + 26 WHEN - - CAST ( NULL AS INTEGER ) THEN 46 * AVG ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + 10 * - - COALESCE ( - - 7, - 14 - COALESCE ( - 14, - - 82 * + - 15 * + 53, + - 58 ) ) * - 74 + 8 END ) / 77 + - 29 * - 66
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT CAST( + ( + 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2227
SELECT CAST ( + ( + 45 ) AS INTEGER )
----
45

query I rowsort
SELECT + 52 * + + 27 col1
----
1404

query I rowsort
SELECT + NULLIF ( + 81, - - NULLIF ( - - 58, + 16 ) * + 84 - 88 * 47 / - 82 ) * + + 46 + + + 49 + - 80 * + 30 * - 18
----
46975

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + COUNT( * ) * + 52 + - + 43
----
9

skipif mysql # not compatible
query I rowsort label-2230
SELECT + COUNT ( * ) * + 52 + - + 43
----
9

query I rowsort
SELECT ALL 98 * - 69 AS col2
----
-6762

query I rowsort
SELECT + 3 * - + 29
----
-87

query I rowsort
SELECT DISTINCT - ( - 82 ) * + 10 + - 92 AS col2
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2235
SELECT ALL - 97 * - - 19 + 34 + - 11 + 40 - - + 1 + + 38 * + 94 AS col0, SUM( + 42 )
----
1793
42

skipif mysql # not compatible
query II rowsort label-2235
SELECT ALL - 97 * - - 19 + 34 + - 11 + 40 - - + 1 + + 38 * + 94 AS col0, SUM ( + 42 )
----
1793
42

query I rowsort
SELECT + - 34 - + - 2
----
-32

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

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

query I rowsort
SELECT - 67 * - 84 * - 76 + - + 54
----
-427782

query I rowsort
SELECT DISTINCT - - 2 * 54 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - + 51 * + MIN( DISTINCT - 57 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - + 51 * + MIN ( DISTINCT - 57 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 33 - 57 col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL - + 35 DIV - + NULLIF ( 23, + 68 ) + 68 * 90 * 43
----
263161

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - + 35 / - + NULLIF ( 23, + 68 ) + 68 * 90 * 43
----
263161

query I rowsort
SELECT - 47 - 38 AS col2
----
-85

query I rowsort
SELECT 18 + - 51
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT ALL 95 AS col0, ( + COUNT( * ) ) + 39
----
95
40

skipif mysql # not compatible
query II rowsort label-2245
SELECT ALL 95 AS col0, ( + COUNT ( * ) ) + 39
----
95
40

query I rowsort
SELECT 28 + + - 87 AS col1
----
-59

query I rowsort
SELECT 63 - - 66 AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT 34 DIV NULLIF ( - + ( - 71 ), 41 * - - 9 + - 44 + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT 34 / NULLIF ( - + ( - 71 ), 41 * - - 9 + - 44 + 77 )
----
0

query II rowsort
SELECT 37 + - - 40, 1 col1
----
77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT 73 - 40 + 96 DIV - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-2250
SELECT 73 - 40 + 96 / - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT 6 + - - SUM( ALL 69 ) * - - ( 75 ) AS col0
----
5181

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT 6 + - - SUM ( ALL 69 ) * - - ( 75 ) AS col0
----
5181

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

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

query I rowsort
SELECT 69 * + + 69 AS col0
----
4761

query I rowsort
SELECT ALL + 6 + + 19 - - 22
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT 25 AS col2, COUNT( * ) - 8
----
25
-7

skipif mysql # not compatible
query II rowsort label-2255
SELECT 25 AS col2, COUNT ( * ) - 8
----
25
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2256
SELECT - 72 AS col2, NULLIF ( - COUNT( - 66 ), - CAST( NULL AS SIGNED ) ) * + - 15 * + 74 + - 57 AS col0
----
-72
1053

skipif mysql # not compatible
query II rowsort label-2256
SELECT - 72 AS col2, NULLIF ( - COUNT ( - 66 ), - CAST ( NULL AS INTEGER ) ) * + - 15 * + 74 + - 57 AS col0
----
-72
1053

query I rowsort
SELECT 59 + - 3 AS col2
----
56

query II rowsort
SELECT ALL - 33 AS col2, 60 + + 52 AS col1
----
-33
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT + 25 * - - CASE - + 75 WHEN - 21 THEN NULL WHEN + 15 THEN COUNT( * ) ELSE 71 END DIV ( COUNT( - 72 ) ) + 62 * 63 AS col0
----
5681

skipif mysql # not compatible
query I rowsort label-2259
SELECT + 25 * - - CASE - + 75 WHEN - 21 THEN NULL WHEN + 15 THEN COUNT ( * ) ELSE 71 END / ( COUNT ( - 72 ) ) + 62 * 63 AS col0
----
5681

query II rowsort
SELECT 81 AS col2, - 76 AS col2
----
81
-76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2262
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 85 AS col1
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT CAST( - + 82 AS SIGNED ) DIV 33 - - 42 + - - 39 DIV + + 62 + + - 50 * - - 20 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-2263
SELECT CAST ( - + 82 AS INTEGER ) / 33 - - 42 + - - 39 / + + 62 + + - 50 * - - 20 AS col1
----
-960

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

skipif mysql # not compatible
query II rowsort label-2264
SELECT 62 col0, COUNT ( * ) * - 1 AS col0
----
62
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 71 * - 94 * + - 20 * - - ( COUNT( * ) )
----
133480

skipif mysql # not compatible
query I rowsort label-2265
SELECT 71 * - 94 * + - 20 * - - ( COUNT ( * ) )
----
133480

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL + 79 * - SUM( ALL + - 24 )
----
1896

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + 79 * - SUM ( ALL + - 24 )
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - + SUM( ALL 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - + SUM ( ALL 30 ) AS col1
----
-30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2269
SELECT - 68 + + 15 DIV 27 - 66 + - NULLIF ( - COUNT( * ), + - 1 + - + 3 * 58 + ( - 29 ) + + 80 - - 35 ) + - 32 + - 95 + - COUNT( * ) DIV + 22 * - - 67 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 68 + + 15 / 27 - 66 + - NULLIF ( - COUNT ( * ), + - 1 + - + 3 * 58 + ( - 29 ) + + 80 - - 35 ) + - 32 + - 95 + - COUNT ( * ) / + 22 * - - 67 AS col2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + MAX( ALL + 25 ) * 47 - + 66
----
1109

skipif mysql # not compatible
query I rowsort label-2270
SELECT + MAX ( ALL + 25 ) * 47 - + 66
----
1109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2271
SELECT DISTINCT - 22, - CASE 85 WHEN - + 49 THEN + 80 + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN + + 53 THEN NULL ELSE NULL END col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-2271
SELECT DISTINCT - 22, - CASE 85 WHEN - + 49 THEN + 80 + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN + + 53 THEN NULL ELSE NULL END col0
----
-22
NULL

query I rowsort
SELECT 81 + + COALESCE ( 79, - - 46, + 28 ) AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT MAX( 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2273
SELECT MAX ( 42 ) AS col2
----
42

query I rowsort
SELECT ALL 25 * 9
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT - SUM( DISTINCT - + 82 ) * + 58 * + + 26 - - + 77 DIV + 29 col2
----
123658

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - SUM ( DISTINCT - + 82 ) * + 58 * + + 26 - - + 77 / + 29 col2
----
123658

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL 34 * + COUNT( * ) + + 78 col1
----
112

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 34 * + COUNT ( * ) + + 78 col1
----
112

query I rowsort
SELECT - 3 * + + 33 + + 24 col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2278
SELECT ALL - COUNT( * ) * - + CAST( NULL AS DECIMAL ) * + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS REAL ) * + - 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - 35 )
----
35

query I rowsort
SELECT ALL - + 70 col1
----
-70

query I rowsort
SELECT DISTINCT 9 * + 36
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT CASE + COUNT( * ) WHEN 41 * 93 THEN + 69 END * + 85 AS col2, 38 * - 97 AS col0
----
NULL
-3686

skipif mysql # not compatible
query II rowsort label-2282
SELECT CASE + COUNT ( * ) WHEN 41 * 93 THEN + 69 END * + 85 AS col2, 38 * - 97 AS col0
----
NULL
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - 41 * + + MIN( ALL - 36 ) - ( - 44 ) + + - 73 + + + 27 * + + 12 * 16
----
6631

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 41 * + + MIN ( ALL - 36 ) - ( - 44 ) + + - 73 + + + 27 * + + 12 * 16
----
6631

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2284
SELECT DISTINCT - 1, COUNT( * ) DIV + 51 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT - 1, COUNT ( * ) / + 51 AS col2
----
-1
0

query I rowsort
SELECT ALL + 42 + + 14 * + 72 * - + 84 AS col0
----
-84630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT + 28 * - CAST( NULL AS SIGNED ) * - + 76 + - + 54 + + CAST( - 71 AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + 28 * - CAST ( NULL AS INTEGER ) * - + 76 + - + 54 + + CAST ( - 71 AS INTEGER ) + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL - 46 + + COUNT( * ) + COUNT( * ) + 48 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - 46 + + COUNT ( * ) + COUNT ( * ) + 48 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - 37 + NULLIF ( + 29, - 94 + - - SUM( - + 31 ) + + CASE - COUNT( * ) WHEN 90 * COUNT( * ) * - 79 THEN + COUNT( * ) ELSE + 97 END ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - 37 + NULLIF ( + 29, - 94 + - - SUM ( - + 31 ) + + CASE - COUNT ( * ) WHEN 90 * COUNT ( * ) * - 79 THEN + COUNT ( * ) ELSE + 97 END ) AS col0
----
-8

query I rowsort
SELECT ALL NULLIF ( + 99, - COALESCE ( - 64, - - 26 ) ) + - - 44 AS col1
----
143

query II rowsort
SELECT 53 - - 3 AS col1, 74 + 69 AS col2
----
56
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT 88 * ( - - 1 ) * + CASE + CAST( - + 8 AS SIGNED ) WHEN + + 3 THEN NULL WHEN - + 47 THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT 88 * ( - - 1 ) * + CASE + CAST ( - + 8 AS INTEGER ) WHEN + + 3 THEN NULL WHEN - + 47 THEN + 12 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 48 + - 15 + - 80 col0
----
-143

query II rowsort
SELECT 62 - - 88, 85 AS col1
----
150
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT ALL + MIN( ALL + 31 ) DIV - - 39
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + MIN ( ALL + 31 ) / - - 39
----
0

query I rowsort
SELECT 78 * - + 97 AS col2
----
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT DISTINCT + 85 DIV - 74 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + 85 / - 74 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT - 50 * COUNT( * ) + + + 2 + + 8 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT - 50 * COUNT ( * ) + + + 2 + + 8 AS col1
----
-40

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2299
SELECT DISTINCT + - 10 * + CAST( NULL AS DECIMAL ) * - + 17 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + - 10 * + CAST ( NULL AS REAL ) * - + 17 + - 92 AS col1
----
NULL

query I rowsort
SELECT 96 * + 91 AS col2
----
8736

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

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - 77 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 88 DIV - 10
----
-8

skipif mysql # not compatible
query I rowsort label-2302
SELECT 88 / - 10
----
-8

query I rowsort
SELECT ALL 98 + + + 37
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - 72 DIV - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 72 / - 40 AS col2
----
1

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

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

query I rowsort
SELECT ALL 25 + + 83 + - ( + - 25 ) AS col2
----
133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL SUM( ALL + - ( - 69 ) ) + 84
----
153

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL SUM ( ALL + - ( - 69 ) ) + 84
----
153

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2310
SELECT ALL - 79 + 41 DIV - 83 col2, ( - CASE COUNT( * ) WHEN COUNT( - 19 ) * + CAST( 18 AS SIGNED ) + - + CASE + 25 WHEN 40 * + 5 - + - 43 THEN + NULLIF ( + 79, - 79 ) ELSE + 20 DIV + CASE + 2 WHEN + 36 - 8 - + 13 DIV 53 * - 36 THEN - 54 * CASE - COUNT( * ) WHEN 93 THEN COUNT( * ) ELSE 41 DIV 53 + 6 DIV 67 END WHEN 27 + - 65 DIV 16 THEN CASE 55 WHEN - 30 THEN - 6 * - COUNT( * ) + MAX( ALL 32 ) WHEN - COUNT( * ) THEN NULL ELSE + 18 DIV COUNT( * ) END * + 55 + ( - ( - 51 ) ) ELSE NULL END + + COALESCE ( - 20 + ( ( - 17 ) ) * - CASE 1 WHEN 28 * + 0 THEN 26 + CAST( NULL AS SIGNED ) * 67 ELSE NULL END, - COUNT( * ) ) END * ( - NULLIF ( 65, + NULLIF ( - MAX( DISTINCT + 10 ), - COALESCE ( + 21, - 13, COUNT( * ) ) + 31 ) DIV + 17 ) ) THEN 94 END ) + - 30 col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL - 79 + 41 / - 83 col2, ( - CASE COUNT ( * ) WHEN COUNT ( - 19 ) * + CAST ( 18 AS INTEGER ) + - + CASE + 25 WHEN 40 * + 5 - + - 43 THEN + NULLIF ( + 79, - 79 ) ELSE + 20 / + CASE + 2 WHEN + 36 - 8 - + 13 / 53 * - 36 THEN - 54 * CASE - COUNT ( * ) WHEN 93 THEN COUNT ( * ) ELSE 41 / 53 + 6 / 67 END WHEN 27 + - 65 / 16 THEN CASE 55 WHEN - 30 THEN - 6 * - COUNT ( * ) + MAX ( ALL 32 ) WHEN - COUNT ( * ) THEN NULL ELSE + 18 / COUNT ( * ) END * + 55 + ( - ( - 51 ) ) ELSE NULL END + + COALESCE ( - 20 + ( ( - 17 ) ) * - CASE 1 WHEN 28 * + 0 THEN 26 + CAST ( NULL AS INTEGER ) * 67 ELSE NULL END, - COUNT ( * ) ) END * ( - NULLIF ( 65, + NULLIF ( - MAX ( DISTINCT + 10 ), - COALESCE ( + 21, - 13, COUNT ( * ) ) + 31 ) / + 17 ) ) THEN 94 END ) + - 30 col1
----
-79
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2311
SELECT + 47 - SUM( ALL + CAST( NULL AS DECIMAL ) ) * 39 / - AVG ( DISTINCT - + 9 ) * + 73 / 94 * - 43 * + COUNT( * ) + - 55 / + 45 * - - COALESCE ( - + 76, - 65 + - 92 * - + COUNT( * ) ) - + 78 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 47 - SUM ( ALL + CAST ( NULL AS REAL ) ) * 39 / - AVG ( DISTINCT - + 9 ) * + 73 / 94 * - 43 * + COUNT ( * ) + - 55 / + 45 * - - COALESCE ( - + 76, - 65 + - 92 * - + COUNT ( * ) ) - + 78 + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - COALESCE ( - + COUNT( * ), + - COUNT( * ) * - 65, + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-2312
SELECT - COALESCE ( - + COUNT ( * ), + - COUNT ( * ) * - 65, + 84 )
----
1

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

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

query I rowsort
SELECT + 11 + - ( - 6 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - CASE - 19 WHEN + - 99 + + COUNT( * ) THEN NULL WHEN - 1 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - CASE - 19 WHEN + - 99 + + COUNT ( * ) THEN NULL WHEN - 1 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - COUNT( * ) - + 39
----
-40

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - COUNT ( * ) - + 39
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2317
SELECT 93, AVG ( - 23 ) * - CASE - 70 WHEN - 18 / SUM( DISTINCT 78 ) - 82 THEN NULL WHEN - - COALESCE ( COALESCE ( ( COUNT( * ) ), COUNT( * ) ), 24, + 29 ) * + 20 - 15 THEN SUM( + + 72 ) * 53 + + CAST( - COUNT( * ) AS SIGNED ) END - + 14 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2317
SELECT 93, AVG ( - 23 ) * - CASE - 70 WHEN - 18 / SUM ( DISTINCT 78 ) - 82 THEN NULL WHEN - - COALESCE ( COALESCE ( ( COUNT ( * ) ), COUNT ( * ) ), 24, + 29 ) * + 20 - 15 THEN SUM ( + + 72 ) * 53 + + CAST ( - COUNT ( * ) AS INTEGER ) END - + 14 AS col0
----
93
NULL

query I rowsort
SELECT - ( - 87 ) * + + 14 * - ( - - 77 ) AS col0
----
-93786

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL COALESCE ( ( - 81 ), + + SUM( ALL 78 ) + - 77 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL COALESCE ( ( - 81 ), + + SUM ( ALL 78 ) + - 77 ) AS col1
----
-81

query I rowsort
SELECT ALL + 80 * + 84 * 38 AS col1
----
255360

query I rowsort
SELECT + ( 45 ) * + - 59 AS col2
----
-2655

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

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

query I rowsort
SELECT + + 46 + - 11 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT 71 * - 83 + - - MAX( ALL + 43 )
----
-5850

skipif mysql # not compatible
query I rowsort label-2324
SELECT 71 * - 83 + - - MAX ( ALL + 43 )
----
-5850

query I rowsort
SELECT + ( 1 ) * - 88 + + + 75 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT ALL - + 20 DIV + 6
----
-3

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL - + 20 / + 6
----
-3

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

query I rowsort
SELECT - - 22 * + 44
----
968

query II rowsort
SELECT DISTINCT + - 25 AS col0, 7 * + 61 AS col0
----
-25
427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 27 * + 12 + - NULLIF ( + 52, + COUNT( - - 57 ) * + COALESCE ( - 17, + 67 ) - + CASE 5 WHEN + + COUNT( * ) * - COUNT( * ) + + - 38 THEN NULL ELSE 30 * + - 46 END ) * - - 20 + + 19 DIV COALESCE ( - 67, - 13 * + 95, + + NULLIF ( + 40, COUNT( * ) ) ) AS col1
----
-716

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 27 * + 12 + - NULLIF ( + 52, + COUNT ( - - 57 ) * + COALESCE ( - 17, + 67 ) - + CASE 5 WHEN + + COUNT ( * ) * - COUNT ( * ) + + - 38 THEN NULL ELSE 30 * + - 46 END ) * - - 20 + + 19 / COALESCE ( - 67, - 13 * + 95, + + NULLIF ( + 40, COUNT ( * ) ) ) AS col1
----
-716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT ALL - 25 DIV NULLIF ( + 71, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - 25 / NULLIF ( + 71, + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - 49 * - - 67 + + COUNT( * ) + 37 + + COALESCE ( + - 4, + - 39 * - 49, + 98 * - 23, - 71 * - + 90 + - 26 + + CASE - ( + + 98 ) WHEN + + 54 + + - 53 THEN 12 WHEN - + 61 THEN NULL END - + 1 + - 13 * - 92 * + 87 + + 91 ) + - 2 * + ( + 6 )
----
-3261

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 49 * - - 67 + + COUNT ( * ) + 37 + + COALESCE ( + - 4, + - 39 * - 49, + 98 * - 23, - 71 * - + 90 + - 26 + + CASE - ( + + 98 ) WHEN + + 54 + + - 53 THEN 12 WHEN - + 61 THEN NULL END - + 1 + - 13 * - 92 * + 87 + + 91 ) + - 2 * + ( + 6 )
----
-3261

query I rowsort
SELECT + 61 * - + 21 + - 47
----
-1328

query I rowsort
SELECT - + 95 + - 41
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + - CASE + MIN( DISTINCT - 22 ) WHEN + 28 * - 78 + ( - + 73 ) + - ( + 87 ) + 83 THEN NULL WHEN - 74 THEN 90 + 50 WHEN - - 23 THEN NULL END * NULLIF ( 4, + + 70 ) + - - 15 * 65 + 2 * + 16 * + 99 + + 1 + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + - CASE + MIN ( DISTINCT - 22 ) WHEN + 28 * - 78 + ( - + 73 ) + - ( + 87 ) + 83 THEN NULL WHEN - 74 THEN 90 + 50 WHEN - - 23 THEN NULL END * NULLIF ( 4, + + 70 ) + - - 15 * 65 + 2 * + 16 * + 99 + + 1 + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2337
SELECT ALL 14 * 0 * + COUNT( * ) DIV 9 + - - 69 AS col2, + 95 * + 27 + ( - COUNT( ALL - + 13 ) ) AS col1
----
69
2564

skipif mysql # not compatible
query II rowsort label-2337
SELECT ALL 14 * 0 * + COUNT ( * ) / 9 + - - 69 AS col2, + 95 * + 27 + ( - COUNT ( ALL - + 13 ) ) AS col1
----
69
2564

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + COUNT( * ) + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2338
SELECT + COUNT ( * ) + 53 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL + MAX( ALL - - 81 ) * - - 40 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + MAX ( ALL - - 81 ) * - - 40 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 41 * + 8
----
328

query I rowsort
SELECT ALL 82 * + + NULLIF ( - 56, + ( + 92 ) )
----
-4592

query I rowsort
SELECT DISTINCT 26 * 34 - 33
----
851

query I rowsort
SELECT + 5 * 23 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - 2 DIV 16 DIV - NULLIF ( - 37, - NULLIF ( - - 3, + 62 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 2 / 16 / - NULLIF ( - 37, - NULLIF ( - - 3, + 62 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 5 - + 70
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT 87 DIV ( 35 ) * 65 - - 1
----
131

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT 87 / ( 35 ) * 65 - - 1
----
131

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT + CAST( ( + + 92 ) AS SIGNED ) - - 21 + - 81 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2349
SELECT + CAST ( ( + + 92 ) AS INTEGER ) - - 21 + - 81 AS col2
----
32

query I rowsort
SELECT - 4 * 96 col1
----
-384

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

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

query I rowsort
SELECT + + 42 - COALESCE ( + + 90, - + 59 )
----
-48

query I rowsort
SELECT ALL 17 + + 76 + - 13 + 77
----
157

query I rowsort
SELECT ALL - + 93 + - + 57 * + 99 * 9 col2
----
-50880

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + 73 DIV + 85 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 73 / + 85 + - 36
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT DISTINCT - 37 DIV + 58 * + NULLIF ( - 68, + 9 ) * + - 5 + + 14 - + + 7 + 72, + 30 - + + 56 AS col1
----
79
-26

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT - 37 / + 58 * + NULLIF ( - 68, + 9 ) * + - 5 + + 14 - + + 7 + 72, + 30 - + + 56 AS col1
----
79
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT - CASE + 42 WHEN - + SUM( - 53 ) * ( CASE - 96 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN - 96 THEN - 66 WHEN + ( 76 ) THEN NULL ELSE 2 * + 26 END ) + + 45 - + ( - 15 ) / + 35 * - + COUNT( * ) THEN CAST( + - 34 AS SIGNED ) WHEN + + 69 * + 90 THEN + 64 ELSE NULL END - CASE 25 WHEN - 44 / + 2 + 34 THEN + AVG ( ALL + 47 ) + + SUM( DISTINCT 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT - CASE + 42 WHEN - + SUM ( - 53 ) * ( CASE - 96 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN - 96 THEN - 66 WHEN + ( 76 ) THEN NULL ELSE 2 * + 26 END ) + + 45 - + ( - 15 ) / + 35 * - + COUNT ( * ) THEN CAST ( + - 34 AS INTEGER ) WHEN + + 69 * + 90 THEN + 64 ELSE NULL END - CASE 25 WHEN - 44 / + 2 + 34 THEN + AVG ( ALL + 47 ) + + SUM ( DISTINCT 14 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 58 * - - 26
----
1508

query I rowsort
SELECT DISTINCT 62 + - - 70
----
132

query II rowsort
SELECT 89 * + 42 - + + 59 + + + 3 AS col2, - 27
----
3682
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT SUM( DISTINCT - - 56 ) * MAX( DISTINCT + 44 )
----
2464

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT SUM ( DISTINCT - - 56 ) * MAX ( DISTINCT + 44 )
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + + 13 + + COUNT( * ) + 34 * + 24 * - 41 AS col2
----
-33442

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + + 13 + + COUNT ( * ) + 34 * + 24 * - 41 AS col2
----
-33442

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + CASE 52 WHEN - 59 THEN + MIN( - 50 ) END * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT + CASE 52 WHEN - 59 THEN + MIN ( - 50 ) END * - 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT + 64 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-2364
SELECT + 64 / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT 19 * + COUNT( * ) + - 48
----
-29

skipif mysql # not compatible
query I rowsort label-2365
SELECT 19 * + COUNT ( * ) + - 48
----
-29

query I rowsort
SELECT ALL - + COALESCE ( - 33, - 85 + + - 77 )
----
33

query I rowsort
SELECT ALL ( 39 ) + + + COALESCE ( + + 32, + + 84, + - 46 + + 59 * 91 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2368
SELECT ALL - 80 DIV - 35 AS col1, SUM( ALL + - 44 )
----
2
-44

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - 80 / - 35 AS col1, SUM ( ALL + - 44 )
----
2
-44

query I rowsort
SELECT ALL - 63 + - 2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT 4 DIV 59 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-2370
SELECT 4 / 59 / - 50
----
0

query I rowsort
SELECT + 13 * - - 65 - + - 15 AS col1
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL + CAST( + 9 AS SIGNED ) - 3 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + CAST ( + 9 AS INTEGER ) - 3 AS col2
----
6

query I rowsort
SELECT ALL + 72 * ( + - 97 ) + + - 50 * + 40
----
-8984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2375
SELECT + 97, COALESCE ( - 36, 62, + 95 ) - + CAST( - + 19 AS SIGNED ) AS col2
----
97
-17

skipif mysql # not compatible
query II rowsort label-2375
SELECT + 97, COALESCE ( - 36, 62, + 95 ) - + CAST ( - + 19 AS INTEGER ) AS col2
----
97
-17

query I rowsort
SELECT 88 * 99 AS col1
----
8712

query I rowsort
SELECT + 97 * + - 70 + + 48
----
-6742

query I rowsort
SELECT ALL - NULLIF ( 58, 55 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT 72 + - COUNT( * ) * - 71 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2379
SELECT 72 + - COUNT ( * ) * - 71 AS col1
----
143

query II rowsort
SELECT - 63 AS col0, 29 col0
----
-63
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT ALL 65 AS col1, 50 * - - MAX( DISTINCT - 56 )
----
65
-2800

skipif mysql # not compatible
query II rowsort label-2381
SELECT ALL 65 AS col1, 50 * - - MAX ( DISTINCT - 56 )
----
65
-2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT 88 - - 45 + - COALESCE ( - ( + - 39 ), + + 20 ) - + + 78 * + 6 + - 46 + + + 43 * SUM( DISTINCT - 85 ) / - 0 * 33 * + + CASE + CAST( NULL AS SIGNED ) WHEN + 8 THEN CAST( ( 2 ) AS SIGNED ) / + ( + 48 ) * - + 59 WHEN MAX( - 13 ) THEN NULL END + + COUNT( * ) * 3 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT 88 - - 45 + - COALESCE ( - ( + - 39 ), + + 20 ) - + + 78 * + 6 + - 46 + + + 43 * SUM ( DISTINCT - 85 ) / - 0 * 33 * + + CASE + CAST ( NULL AS INTEGER ) WHEN + 8 THEN CAST ( ( 2 ) AS INTEGER ) / + ( + 48 ) * - + 59 WHEN MAX ( - 13 ) THEN NULL END + + COUNT ( * ) * 3 * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 97 + + - 76 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT ALL 46 DIV - 75 col0
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL 46 / - 75 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT 4 * - - MIN( - 41 ) * 66 * + + ( + MIN( ALL 47 ) ) * + - 67 + - - COUNT( * ) * - CASE - 13 WHEN + 62 / - 11 THEN - - 85 WHEN 18 * 52 + - - 51 * NULLIF ( + ( - SUM( + 20 ) ), - + COUNT( * ) ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT 4 * - - MIN ( - 41 ) * 66 * + + ( + MIN ( ALL 47 ) ) * + - 67 + - - COUNT ( * ) * - CASE - 13 WHEN + 62 / - 11 THEN - - 85 WHEN 18 * 52 + - - 51 * NULLIF ( + ( - SUM ( + 20 ) ), - + COUNT ( * ) ) THEN - 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2386
SELECT COUNT( * ) + - 51 + - 42 col0, + CAST( NULL AS SIGNED ) + + 42
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-2386
SELECT COUNT ( * ) + - 51 + - 42 col0, + CAST ( NULL AS INTEGER ) + + 42
----
-92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT 16 + + 93 + 40 + COUNT( 79 ) DIV 90 * - + ( + - 85 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2387
SELECT 16 + + 93 + 40 + COUNT ( 79 ) / 90 * - + ( + - 85 ) AS col1
----
149

query I rowsort
SELECT 87 + + 36 AS col0
----
123

query I rowsort
SELECT 94 * 55 AS col2
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT SUM( DISTINCT 59 ) + + - 65 + 61 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2390
SELECT SUM ( DISTINCT 59 ) + + - 65 + 61 AS col0
----
55

query I rowsort
SELECT ( 35 ) - - 23 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL + COUNT( * ) + + ( + 36 ) + + 61 + + COUNT( * ) * CAST( NULL AS SIGNED ) / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + COUNT ( * ) + + ( + 36 ) + + 61 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT ALL - + 86 + - + COUNT( * ) + + 72 DIV MAX( + 61 ) + + + 22 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - + 86 + - + COUNT ( * ) + + 72 / MAX ( + 61 ) + + + 22 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT NULLIF ( + 99, - MIN( ALL - 49 ) * - COUNT( DISTINCT 91 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2394
SELECT NULLIF ( + 99, - MIN ( ALL - 49 ) * - COUNT ( DISTINCT 91 ) ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - MIN( + 5 ) + + 41 * MIN( + 9 )
----
364

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - MIN ( + 5 ) + + 41 * MIN ( + 9 )
----
364

query I rowsort
SELECT + 72 + 88 AS col1
----
160

query II rowsort
SELECT ALL 29 AS col2, + 16 - - + 54
----
29
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT COALESCE ( - 31, - AVG ( + 11 ) * - - 91 * + - 48 - + - 32 ) * 27 DIV 5
----
-167

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT COALESCE ( - 31, - AVG ( + 11 ) * - - 91 * + - 48 - + - 32 ) * 27 / 5
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL 51 + + MAX( DISTINCT - 10 ) + - MIN( - 51 )
----
92

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL 51 + + MAX ( DISTINCT - 10 ) + - MIN ( - 51 )
----
92

query I rowsort
SELECT 4 + - 14 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT + COUNT( * ) + - 34 + 46 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT + COUNT ( * ) + - 34 + 46 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT ALL - 53 col2, COUNT( * )
----
-53
1

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL - 53 col2, COUNT ( * )
----
-53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT ( + 14 ) DIV COUNT( * ) + - CAST( 60 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2403
SELECT ( + 14 ) / COUNT ( * ) + - CAST ( 60 AS INTEGER )
----
-46

query II rowsort
SELECT ALL - 40, + 73 AS col1
----
-40
73

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

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

query I rowsort
SELECT ALL - ( + 36 ) AS col0
----
-36

query I rowsort
SELECT DISTINCT - - 73 * 14 - + 53
----
969

query I rowsort
SELECT DISTINCT 76 * + - 39 AS col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + SUM( - COALESCE ( + 94, - 90 ) ) * + 96
----
-9024

skipif mysql # not compatible
query I rowsort label-2409
SELECT + SUM ( - COALESCE ( + 94, - 90 ) ) * + 96
----
-9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT 20 DIV + 5 + - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2410
SELECT 20 / + 5 + - COUNT ( * ) AS col0
----
3

query II rowsort
SELECT DISTINCT 65 - + 69 - ( 5 ) AS col2, + 75
----
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2412
SELECT DISTINCT - 24, CASE - + COUNT( * ) WHEN - ( - COALESCE ( ( - - 95 ), - 73, + CAST( + + 28 AS SIGNED ) ) ) THEN 31 + - COALESCE ( - + 95, + - 23, + + ( 54 ), - CASE + AVG ( - 82 ) WHEN 82 THEN NULL WHEN - 90 THEN CASE - 70 WHEN 35 THEN - + 10 WHEN - - 27 * 65 THEN NULL ELSE NULL END END * - 12 ) + 61 ELSE 10 END DIV + 74 AS col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-2412
SELECT DISTINCT - 24, CASE - + COUNT ( * ) WHEN - ( - COALESCE ( ( - - 95 ), - 73, + CAST ( + + 28 AS INTEGER ) ) ) THEN 31 + - COALESCE ( - + 95, + - 23, + + ( 54 ), - CASE + AVG ( - 82 ) WHEN 82 THEN NULL WHEN - 90 THEN CASE - 70 WHEN 35 THEN - + 10 WHEN - - 27 * 65 THEN NULL ELSE NULL END END * - 12 ) + 61 ELSE 10 END / + 74 AS col2
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT 98 + - + 91 * + + MIN( + 12 ) * + - 86 + 93 + 51 AS col0
----
94154

skipif mysql # not compatible
query I rowsort label-2413
SELECT 98 + - + 91 * + + MIN ( + 12 ) * + - 86 + 93 + 51 AS col0
----
94154

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COALESCE ( + CASE + 71 WHEN - 60 THEN - - 87 * + + 61 * - MAX( - 56 ) + + 41 + - + 56 + 6 + + 88 * - + 41 * + + COUNT( * ) ELSE NULL END, 93 ) * + MAX( 3 ) + + + COUNT( * ) AS col2
----
280

skipif mysql # not compatible
query I rowsort label-2414
SELECT COALESCE ( + CASE + 71 WHEN - 60 THEN - - 87 * + + 61 * - MAX ( - 56 ) + + 41 + - + 56 + 6 + + 88 * - + 41 * + + COUNT ( * ) ELSE NULL END, 93 ) * + MAX ( 3 ) + + + COUNT ( * ) AS col2
----
280

query I rowsort
SELECT 97 + - 96 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT + 39 DIV + 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + 39 / + 16 AS col0
----
2

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

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

query I rowsort
SELECT 13 * - 41
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL + NULLIF ( + 19, - SUM( DISTINCT + + 6 ) ) + - COUNT( * ) * 32 * 6 * + COALESCE ( NULLIF ( - + COUNT( * ), - 74 * - COUNT( * ) / 28 * - NULLIF ( + 89, + CAST( + 48 AS SIGNED ) ) ), + 37 + - - 95, - 48 )
----
211

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + NULLIF ( + 19, - SUM ( DISTINCT + + 6 ) ) + - COUNT ( * ) * 32 * 6 * + COALESCE ( NULLIF ( - + COUNT ( * ), - 74 * - COUNT ( * ) / 28 * - NULLIF ( + 89, + CAST ( + 48 AS INTEGER ) ) ), + 37 + - - 95, - 48 )
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT - SUM( + - 64 ) * - + 21 AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - SUM ( + - 64 ) * - + 21 AS col2
----
-1344

query I rowsort
SELECT 94 + + 17 col0
----
111

query I rowsort
SELECT ALL + 22 + 91
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT( * ) ) * + 85 + MAX( + ( + 28 ) )
----
-178

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT ( * ) ) * + 85 + MAX ( + ( + 28 ) )
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT ALL - 40 + COUNT( * ) AS col0, + 42 col0
----
-39
42

skipif mysql # not compatible
query II rowsort label-2424
SELECT ALL - 40 + COUNT ( * ) AS col0, + 42 col0
----
-39
42

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

query I rowsort
SELECT DISTINCT + - 71 + + 60 * + 14
----
769

onlyif mysql # DIV for integer division: 
query II rowsort label-2427
SELECT 78 AS col1, - 42 * - 39 + + ( 37 ) DIV - + 99 AS col2
----
78
1638

skipif mysql # not compatible
query II rowsort label-2427
SELECT 78 AS col1, - 42 * - 39 + + ( 37 ) / - + 99 AS col2
----
78
1638

query II rowsort
SELECT DISTINCT - 67, 53 + 86 AS col1
----
-67
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - COUNT( * ) + - 67 - - 74
----
6

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COUNT ( * ) + - 67 - - 74
----
6

query II rowsort
SELECT 22 col2, - 94
----
22
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT - ( 38 ) DIV COALESCE ( 48, + AVG ( + ( + 79 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2431
SELECT - ( 38 ) / COALESCE ( 48, + AVG ( + ( + 79 ) ) ) AS col2
----
0

query II rowsort
SELECT - + 32 col2, 3
----
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2433
SELECT + - 77 + + 1, NULLIF ( - CASE + 29 WHEN - 61 THEN - + 10 END, + - CAST( 84 AS SIGNED ) + 40 ) col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2433
SELECT + - 77 + + 1, NULLIF ( - CASE + 29 WHEN - 61 THEN - + 10 END, + - CAST ( 84 AS INTEGER ) + 40 ) col1
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL 76 * + 77 * + COUNT( * ) AS col1
----
5852

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 76 * + 77 * + COUNT ( * ) AS col1
----
5852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT DISTINCT + 86 DIV COALESCE ( 31, - + 39 - - ( - - 5 ) + + - 91 * - - 45 * + - COALESCE ( COUNT( * ), - + 87 DIV 30 + - - COUNT( * ), + - 41 - 23 - + 4 ) ) DIV + 36 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 86 / COALESCE ( 31, - + 39 - - ( - - 5 ) + + - 91 * - - 45 * + - COALESCE ( COUNT ( * ), - + 87 / 30 + - - COUNT ( * ), + - 41 - 23 - + 4 ) ) / + 36 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 68 * 36
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + + SUM( + 10 ) * + - 88 AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + SUM ( + 10 ) * + - 88 AS col0
----
-880

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

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

query I rowsort
SELECT + - 83 - 45 * 75 * - 1 - + 63 AS col2
----
3229

query I rowsort
SELECT ALL ( 98 ) * - 2 AS col0
----
-196

query II rowsort
SELECT - 15 AS col2, - 81 AS col1
----
-15
-81

query I rowsort
SELECT - NULLIF ( 18, 75 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT CASE - 18 WHEN + - CAST( - + MAX( - 83 ) AS SIGNED ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2443
SELECT CASE - 18 WHEN + - CAST ( - + MAX ( - 83 ) AS INTEGER ) THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT MIN( + 91 ) * + - 25
----
-2275

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT MIN ( + 91 ) * + - 25
----
-2275

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

query I rowsort
SELECT CASE + 26 WHEN + 78 + + 59 + + - 84 / + 97 THEN CASE + + 83 WHEN + 39 THEN NULL WHEN - ( + + ( + 25 ) ) THEN + 52 END + + + 76 ELSE NULL END
----
NULL

query II rowsort
SELECT + NULLIF ( 54, 37 ) + 33 + + 22, 29 col2
----
109
29

query I rowsort
SELECT - 5 - + 88
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2449
SELECT ALL + 34 * - CAST( + 47 AS SIGNED ) * - 5 + - 88 * - 22 * - 19 AS col2, - COUNT( * )
----
-28794
-1

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL + 34 * - CAST ( + 47 AS INTEGER ) * - 5 + - 88 * - 22 * - 19 AS col2, - COUNT ( * )
----
-28794
-1

query I rowsort
SELECT + ( 73 ) * - 30 + - 73
----
-2263

query I rowsort
SELECT - 81 * + + 32
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT + 51 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 51 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 17, + 81 * 68 ) * + 70 * + 60 + - 18 + 24 * 71
----
-69714

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - 45 + - COUNT( * ) col2, + 97 col2
----
-46
97

skipif mysql # not compatible
query II rowsort label-2454
SELECT - 45 + - COUNT ( * ) col2, + 97 col2
----
-46
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT ( COUNT( * ) ) + + NULLIF ( - COUNT( * ), - ( + - 47 ) ) * - 80
----
81

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT ( COUNT ( * ) ) + + NULLIF ( - COUNT ( * ), - ( + - 47 ) ) * - 80
----
81

query I rowsort
SELECT ALL + + 19 + - 40 + - 58 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COUNT( * ) + - ( + ( + MIN( DISTINCT + 52 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COUNT ( * ) + - ( + ( + MIN ( DISTINCT + 52 ) ) )
----
-51

query I rowsort
SELECT ALL + - 6 * - - 21
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT + MIN( ALL + 26 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + MIN ( ALL + 26 ) col1
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2461
SELECT ALL - COUNT( * ) - - ( + CASE 38 WHEN + CAST( + - 5 AS DECIMAL ) * + 61 + - 52 * SUM( 92 ) - - NULLIF ( - - 40, 32 * + ( 68 ) - - 57 ) + 46 THEN 4 - + - 16 WHEN - - COUNT( * ) * - - 0 THEN - - 17 * - 23 * + ( - 98 ) * + 48 * - + 54 + 5 END ) - NULLIF ( + 69, 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - COUNT ( * ) - - ( + CASE 38 WHEN + CAST ( + - 5 AS REAL ) * + 61 + - 52 * SUM ( 92 ) - - NULLIF ( - - 40, 32 * + ( 68 ) - - 57 ) + 46 THEN 4 - + - 16 WHEN - - COUNT ( * ) * - - 0 THEN - - 17 * - 23 * + ( - 98 ) * + 48 * - + 54 + 5 END ) - NULLIF ( + 69, 38 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2462
SELECT ALL + - COALESCE ( + - NULLIF ( + COALESCE ( - + 14, - 69 * + - 36 + - 85, - 84 * - - COALESCE ( - 43, + + 8 ) * - + 78 + + MAX( ALL + - 39 ) ), ( NULLIF ( - - 49, - 36 ) ) + - 57 - + 73 ), + MIN( ALL - 40 ) + COUNT( * ) * - 5 + + 41 - - 78 * + 77, + CASE - CAST( NULL AS SIGNED ) WHEN 98 THEN COUNT( DISTINCT ( 39 ) ) DIV - 67 ELSE NULL END * 24 + - 11 ) - + 52
----
-66

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + - COALESCE ( + - NULLIF ( + COALESCE ( - + 14, - 69 * + - 36 + - 85, - 84 * - - COALESCE ( - 43, + + 8 ) * - + 78 + + MAX ( ALL + - 39 ) ), ( NULLIF ( - - 49, - 36 ) ) + - 57 - + 73 ), + MIN ( ALL - 40 ) + COUNT ( * ) * - 5 + + 41 - - 78 * + 77, + CASE - CAST ( NULL AS INTEGER ) WHEN 98 THEN COUNT ( DISTINCT ( 39 ) ) / - 67 ELSE NULL END * 24 + - 11 ) - + 52
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - + MAX( + 26 ) * - + 77 * + COUNT( * )
----
2002

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + MAX ( + 26 ) * - + 77 * + COUNT ( * )
----
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT ALL + - 14 * NULLIF ( 92, + ( - 12 ) ) - - - 88 DIV - - 64
----
-1289

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + - 14 * NULLIF ( 92, + ( - 12 ) ) - - - 88 / - - 64
----
-1289

query I rowsort
SELECT DISTINCT + + 64 * + 75 col1
----
4800

query I rowsort
SELECT - ( + 71 ) + + - 80 + + 68 * + + 61 col2
----
3997

query I rowsort
SELECT - 79 * - 17 AS col2
----
1343

query I rowsort
SELECT ALL NULLIF ( - 4, 52 / 17 ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT - - 85 + ( + 33 ) + COALESCE ( + 62, 80, - 23 DIV - + SUM( - - ( + + 27 ) ) * - CASE + + 99 WHEN - 60 + + - 35 THEN + ( + - 80 ) + - COUNT( * ) END + + 62 ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-2469
SELECT - - 85 + ( + 33 ) + COALESCE ( + 62, 80, - 23 / - + SUM ( - - ( + + 27 ) ) * - CASE + + 99 WHEN - 60 + + - 35 THEN + ( + - 80 ) + - COUNT ( * ) END + + 62 ) AS col0
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-2470
SELECT - + 10 + 53 AS col2, 53 DIV + ( 35 ) AS col0
----
43
1

skipif mysql # not compatible
query II rowsort label-2470
SELECT - + 10 + 53 AS col2, 53 / + ( 35 ) AS col0
----
43
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2471
SELECT + - 4 - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-2471
SELECT + - 4 - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT + - 87 * - 2 + - CASE - + 45 WHEN - 8 + - COALESCE ( 16, - ( 30 ) ) + + CASE + 34 WHEN ( - 14 ) THEN + + 50 END * - - 75 + - NULLIF ( - 14, - - 82 ) THEN 58 * + COALESCE ( 2, + 96 + - 24 - + + MIN( ALL + 39 ) / - COALESCE ( - CAST( AVG ( 84 ) AS SIGNED ), + 92 * 9, - ( 9 ) * 12, 49 / + 4 ) * - 17 * ( COUNT( DISTINCT 22 ) / + ( 11 - + 98 * - 42 ) - - 63 * - SUM( DISTINCT + 86 ) ) ) END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT + - 87 * - 2 + - CASE - + 45 WHEN - 8 + - COALESCE ( 16, - ( 30 ) ) + + CASE + 34 WHEN ( - 14 ) THEN + + 50 END * - - 75 + - NULLIF ( - 14, - - 82 ) THEN 58 * + COALESCE ( 2, + 96 + - 24 - + + MIN ( ALL + 39 ) / - COALESCE ( - CAST ( AVG ( 84 ) AS INTEGER ), + 92 * 9, - ( 9 ) * 12, 49 / + 4 ) * - 17 * ( COUNT ( DISTINCT 22 ) / + ( 11 - + 98 * - 42 ) - - 63 * - SUM ( DISTINCT + 86 ) ) ) END * 50
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2473
SELECT ALL + NULLIF ( + COALESCE ( - + 59, - 24 ), - + CAST( - 7 AS DECIMAL ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + NULLIF ( + COALESCE ( - + 59, - 24 ), - + CAST ( - 7 AS REAL ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT ( 16 ) * + + 68 * - NULLIF ( - - 77, + + 8 ) + COUNT( * ) * 69 + - COUNT( * ) + + COALESCE ( 49, - 20 DIV - ( + 62 ) ) + + 96
----
-83563

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( 16 ) * + + 68 * - NULLIF ( - - 77, + + 8 ) + COUNT ( * ) * 69 + - COUNT ( * ) + + COALESCE ( 49, - 20 / - ( + 62 ) ) + + 96
----
-83563

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2475
SELECT - CAST( NULL AS DECIMAL ) / - 2 * + 34 * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - CAST ( NULL AS REAL ) / - 2 * + 34 * - 33 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT CAST( - + CAST( - CAST( + 37 AS SIGNED ) AS SIGNED ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2476
SELECT CAST ( - + CAST ( - CAST ( + 37 AS INTEGER ) AS INTEGER ) AS INTEGER )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT ALL - 17 DIV 84 + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 17 / 84 + 2 AS col0
----
2

query II rowsort
SELECT ALL + 85 * 85 * 68, - 69 * COALESCE ( - 12, - + 83 + 1 * - 24 ) + - 40 AS col2
----
491300
788

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT - 5 DIV - - 32
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT - 5 / - - 32
----
0

query I rowsort
SELECT 57 * + 62 + - - 82
----
3616

query I rowsort
SELECT - 23 * + ( - 92 ) col2
----
2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT - CAST( NULL AS SIGNED ) / - 55 + 39 + + ( 41 ) + - 94 / + + COALESCE ( - 42, AVG ( - 97 ) ) + - 95 + - 90 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT - CAST ( NULL AS INTEGER ) / - 55 + 39 + + ( 41 ) + - 94 / + + COALESCE ( - 42, AVG ( - 97 ) ) + - 95 + - 90 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - 84 * + + COUNT( * ) + + + COUNT( * ) + - - COALESCE ( 26, 9 * + 51 ) + - 35 - 31
----
-123

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 84 * + + COUNT ( * ) + + + COUNT ( * ) + - - COALESCE ( 26, 9 * + 51 ) + - 35 - 31
----
-123

query I rowsort
SELECT + COALESCE ( + - 4, + + 7, 94 )
----
-4

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

skipif mysql # not compatible
query I rowsort label-2486
SELECT + 81 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT + 67 * - - ( 80 ) DIV + 40
----
134

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 67 * - - ( 80 ) / + 40
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT + 52 * + 96 DIV - 4 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 52 * + 96 / - 4 AS col2
----
-1248

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2490
SELECT ALL + CAST( NULL AS SIGNED ), 30 * + 89 AS col1
----
NULL
2670

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL + CAST ( NULL AS INTEGER ), 30 * + 89 AS col1
----
NULL
2670

query II rowsort
SELECT ALL - 93 AS col1, + 39
----
-93
39

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2493
SELECT ( - 19 ) * COUNT( * ), + 9 AS col1
----
-19
9

skipif mysql # not compatible
query II rowsort label-2493
SELECT ( - 19 ) * COUNT ( * ), + 9 AS col1
----
-19
9

query I rowsort
SELECT NULLIF ( - 43, + + 65 ) * - ( - - 57 )
----
2451

query II rowsort
SELECT + 37, + ( - 26 ) * - 81 + + CASE CASE WHEN NOT NULL NOT BETWEEN 43 AND + 21 THEN + 10 END WHEN 54 * - 56 THEN - - 78 ELSE 40 END AS col0
----
37
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL COUNT( * ) - + 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COUNT ( * ) - + 56 AS col2
----
-55

query II rowsort
SELECT ALL CASE + 3 WHEN + 40 THEN - - 17 WHEN - 6 THEN 35 END AS col0, 66 AS col2
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT 69 * + - 80 + + 3 + - - 59 + - 88 * 52 * COUNT( * ) + - - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT 69 * + - 80 + + 3 + - - 59 + - 88 * 52 * COUNT ( * ) + - - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 46 * - 39 AS col2
----
1794

query I rowsort
SELECT ALL + 77 - + - 64 * + + 95 AS col0
----
6157

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

query II rowsort
SELECT + 50 + + ( + 74 ) AS col2, ( 9 ) + + - 83
----
124
-74

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

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - MAX ( DISTINCT - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT ALL NULLIF ( + 71, - + SUM( DISTINCT - 40 ) ) DIV - + 16
----
-4

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL NULLIF ( + 71, - + SUM ( DISTINCT - 40 ) ) / - + 16
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT COUNT( * ) / - - NULLIF ( - ( CASE + 80 WHEN CAST( + 91 AS SIGNED ) + - + CAST( NULL AS SIGNED ) THEN CAST( + 94 AS SIGNED ) + - 81 WHEN + COUNT( * ) + + 83 THEN NULL ELSE NULL END ), - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT COUNT ( * ) / - - NULLIF ( - ( CASE + 80 WHEN CAST ( + 91 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) THEN CAST ( + 94 AS INTEGER ) + - 81 WHEN + COUNT ( * ) + + 83 THEN NULL ELSE NULL END ), - 8 ) AS col1
----
NULL

query I rowsort
SELECT + 8 * - + 29
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2507
SELECT ALL CAST( NULL AS SIGNED ), 45 * + 28 col0
----
NULL
1260

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL CAST ( NULL AS INTEGER ), 45 * + 28 col0
----
NULL
1260

query I rowsort
SELECT + 21 + ( + + 98 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT + 11 * COUNT( * ) * 58 * 67
----
42746

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + 11 * COUNT ( * ) * 58 * 67
----
42746

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT ALL 89 AS col0, + 15 * COUNT( * ) * + 25
----
89
375

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL 89 AS col0, + 15 * COUNT ( * ) * + 25
----
89
375

query II rowsort
SELECT ALL 12 AS col0, - 19 col2
----
12
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT 6 + 26 DIV + 77 + + - 73 + - COUNT( * ) - 41 * + COUNT( * ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT 6 + 26 / + 77 + + - 73 + - COUNT ( * ) - 41 * + COUNT ( * ) AS col1
----
-109

query I rowsort
SELECT ALL + 25 + ( + + 58 ) * - 2 + + 77
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2514
SELECT ALL + 53 + - COUNT( + 83 ) - - + NULLIF ( - COALESCE ( - 90, - 10, - MAX( ALL + 80 ) - - + 57 * + + 51, + + 72 + 40 * 34 DIV MIN( DISTINCT + 50 ) * - - 23 ), - 99 - + 25 ) DIV - 36 + - 43 - + 4 AS col1, MIN( 47 ) + - ( - + ( COUNT( * ) ) ) + - 27
----
3
21

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL + 53 + - COUNT ( + 83 ) - - + NULLIF ( - COALESCE ( - 90, - 10, - MAX ( ALL + 80 ) - - + 57 * + + 51, + + 72 + 40 * 34 / MIN ( DISTINCT + 50 ) * - - 23 ), - 99 - + 25 ) / - 36 + - 43 - + 4 AS col1, MIN ( 47 ) + - ( - + ( COUNT ( * ) ) ) + - 27
----
3
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL - COALESCE ( - 24, - 30 + + ( - + CAST( + 71 AS SIGNED ) ) + - 99 ) + + 64 col2
----
88

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - COALESCE ( - 24, - 30 + + ( - + CAST ( + 71 AS INTEGER ) ) + - 99 ) + + 64 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT 87 * + 98 * - + ( + NULLIF ( + 33, + COUNT( * ) ) )
----
-281358

skipif mysql # not compatible
query I rowsort label-2516
SELECT 87 * + 98 * - + ( + NULLIF ( + 33, + COUNT ( * ) ) )
----
-281358

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - CASE 17 WHEN + 43 + COUNT( * ) * - 40 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - CASE 17 WHEN + 43 + COUNT ( * ) * - 40 THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - 8 + 84 * 18
----
1504

query II rowsort
SELECT ALL + ( - ( + 85 ) ) + + 24 * + - 91 AS col1, 80
----
-2269
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT 13 - - 73 - COUNT( * ) - - 79 * + + 79 + - - MAX( 69 ) AS col0, 51 * - 23 AS col0
----
6395
-1173

skipif mysql # not compatible
query II rowsort label-2520
SELECT 13 - - 73 - COUNT ( * ) - - 79 * + + 79 + - - MAX ( 69 ) AS col0, 51 * - 23 AS col0
----
6395
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT 81 * + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT 81 * + - COUNT ( * )
----
-81

query I rowsort
SELECT DISTINCT - COALESCE ( - - 64, - + 48 ) + + + 50 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2523
SELECT 32 DIV 9 AS col0, + 53 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) + COUNT( * ) + - 53 + + 95
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2523
SELECT 32 / 9 AS col0, + 53 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 53 + + 95
----
3
NULL

query I rowsort
SELECT 3 * 95 AS col0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT 12 + - + COUNT( DISTINCT + 50 )
----
11

skipif mysql # not compatible
query I rowsort label-2525
SELECT 12 + - + COUNT ( DISTINCT + 50 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT ALL - CAST( - 32 AS SIGNED ), - COUNT( * ) * - + ( 38 ) / + 54 * + CASE - 6 WHEN ( - COUNT( * ) ) / 75 + + 72 / + ( - MAX( ALL 9 ) ) THEN NULL WHEN + - 27 THEN + ( + 38 ) END AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT ALL - CAST ( - 32 AS INTEGER ), - COUNT ( * ) * - + ( 38 ) / + 54 * + CASE - 6 WHEN ( - COUNT ( * ) ) / 75 + + 72 / + ( - MAX ( ALL 9 ) ) THEN NULL WHEN + - 27 THEN + ( + 38 ) END AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT 27 * + + 43 * 34 * 69 + 8 / CASE - ( + 33 ) WHEN + + COUNT( * ) THEN - - 38 * - 26 * - 10 + - 7 - - 10 + + ( - 72 ) + + 99 * - COUNT( * ) ELSE NULL END + - 80 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT 27 * + + 43 * 34 * 69 + 8 / CASE - ( + 33 ) WHEN + + COUNT ( * ) THEN - - 38 * - 26 * - 10 + - 7 - - 10 + + ( - 72 ) + + 99 * - COUNT ( * ) ELSE NULL END + - 80 + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT DISTINCT - + CASE - COALESCE ( 78, - 69 ) WHEN - MIN( - 80 ) / 97 * - 88 * - + 27 * + + 14 THEN NULL ELSE - - 85 + 49 END, 41 AS col1
----
-134
41

skipif mysql # not compatible
query II rowsort label-2528
SELECT DISTINCT - + CASE - COALESCE ( 78, - 69 ) WHEN - MIN ( - 80 ) / 97 * - 88 * - + 27 * + + 14 THEN NULL ELSE - - 85 + 49 END, 41 AS col1
----
-134
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT 86 + + MAX( - - 79 ) + COUNT( * ) + 19 + - NULLIF ( 22, - 64 )
----
163

skipif mysql # not compatible
query I rowsort label-2529
SELECT 86 + + MAX ( - - 79 ) + COUNT ( * ) + 19 + - NULLIF ( 22, - 64 )
----
163

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

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - MIN ( - 18 )
----
18

query I rowsort
SELECT COALESCE ( 50, + 22 )
----
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT CAST( + + 62 AS SIGNED ) * 64 AS col0
----
3968

skipif mysql # not compatible
query I rowsort label-2533
SELECT CAST ( + + 62 AS INTEGER ) * 64 AS col0
----
3968

query II rowsort
SELECT DISTINCT 13 * + 28 - - 35 * 1, + 55 col1
----
399
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT MIN( DISTINCT - 45 ) + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2535
SELECT MIN ( DISTINCT - 45 ) + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT ALL 31 * - ( + - 70 ) * ( - + 90 ) * COUNT( * ) DIV + SUM( DISTINCT 90 ) AS col1
----
-2170

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL 31 * - ( + - 70 ) * ( - + 90 ) * COUNT ( * ) / + SUM ( DISTINCT 90 ) AS col1
----
-2170

query I rowsort
SELECT 35 * 80 AS col1
----
2800

query I rowsort
SELECT ALL - 13 + + + 34 col0
----
21

query I rowsort
SELECT ALL + + 59 + 57 + 6 * 32
----
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT CAST( NULL AS SIGNED ) - - 39 * - 71 - 37 + + 17 + - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT CAST ( NULL AS INTEGER ) - - 39 * - 71 - 37 + + 17 + - - 45
----
NULL

query I rowsort
SELECT DISTINCT - 22 + + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL - CASE 32 WHEN + 23 + 9 THEN 15 END + 95 + - 62 * + 90 - + SUM( - 64 )
----
-5436

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - CASE 32 WHEN + 23 + 9 THEN 15 END + 95 + - 62 * + 90 - + SUM ( - 64 )
----
-5436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT MAX( DISTINCT + + 60 ) DIV COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2543
SELECT MAX ( DISTINCT + + 60 ) / COUNT ( * ) AS col1
----
60

query II rowsort
SELECT 67 AS col0, 46 - 4 AS col2
----
67
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2545
SELECT 7 * + ( CASE - + COUNT( * ) WHEN - - 88 DIV - 61 - - 65 + - MIN( ALL - CAST( + - ( 61 ) AS DECIMAL ) ) THEN NULL ELSE + 14 DIV COUNT( * ) END ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2545
SELECT 7 * + ( CASE - + COUNT ( * ) WHEN - - 88 / - 61 - - 65 + - MIN ( ALL - CAST ( + - ( 61 ) AS REAL ) ) THEN NULL ELSE + 14 / COUNT ( * ) END ) AS col1
----
98

query I rowsort
SELECT ( 44 ) + + - 38 * 94 - - 43 + + - 96 AS col2
----
-3581

query I rowsort
SELECT 23 - + 18 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2548
SELECT ALL + 36 * 50 + - 51 - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0, 97 DIV + - 62
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2548
SELECT ALL + 36 * 50 + - 51 - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0, 97 / + - 62
----
NULL
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT - 46 + + + COALESCE ( - 70, - CAST( NULL AS SIGNED ) ) + + + COALESCE ( + + 15, 84, + 18 ) * - 91 * - SUM( - 2 ) + + 44 AS col0
----
-2802

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 46 + + + COALESCE ( - 70, - CAST ( NULL AS INTEGER ) ) + + + COALESCE ( + + 15, 84, + 18 ) * - 91 * - SUM ( - 2 ) + + 44 AS col0
----
-2802

query I rowsort
SELECT ALL + 59 * + + 97 - - 87 AS col1
----
5810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT + CASE + NULLIF ( + 44, + 13 + + + 50 + ( + + 30 ) ) WHEN - - MAX( - + 58 ) / - + CASE + - NULLIF ( + 27, COALESCE ( + COUNT( * ), + COUNT( * ) * COALESCE ( 31, - CASE + 90 WHEN - SUM( DISTINCT + 45 ) THEN + 33 END * - COUNT( * ) * - - 22 * + - 65 + MIN( DISTINCT - ( - - 26 ) ), + - 0 ) + 39 - - 56 + + 19, - 72 + 36 * 46 ) / - 24 ) WHEN - 47 * - 83 THEN NULL ELSE 59 END / 25 THEN - CAST( NULL AS SIGNED ) - + 40 * 16 WHEN MAX( + 80 ) THEN NULL ELSE 82 END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2552
SELECT + CASE + NULLIF ( + 44, + 13 + + + 50 + ( + + 30 ) ) WHEN - - MAX ( - + 58 ) / - + CASE + - NULLIF ( + 27, COALESCE ( + COUNT ( * ), + COUNT ( * ) * COALESCE ( 31, - CASE + 90 WHEN - SUM ( DISTINCT + 45 ) THEN + 33 END * - COUNT ( * ) * - - 22 * + - 65 + MIN ( DISTINCT - ( - - 26 ) ), + - 0 ) + 39 - - 56 + + 19, - 72 + 36 * 46 ) / - 24 ) WHEN - 47 * - 83 THEN NULL ELSE 59 END / 25 THEN - CAST ( NULL AS INTEGER ) - + 40 * 16 WHEN MAX ( + 80 ) THEN NULL ELSE 82 END AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) * - 5 + + COALESCE ( + 7, 9 - - - 82 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) * - 5 + + COALESCE ( + 7, 9 - - - 82 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT + 10 * - - COUNT( * ) * + 88 AS col1, 54 AS col2
----
880
54

skipif mysql # not compatible
query II rowsort label-2554
SELECT + 10 * - - COUNT ( * ) * + 88 AS col1, 54 AS col2
----
880
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT - 16 * + ( - 24 ) AS col1, COUNT( * ) * + 80 * - 40 AS col1
----
384
-3200

skipif mysql # not compatible
query II rowsort label-2555
SELECT - 16 * + ( - 24 ) AS col1, COUNT ( * ) * + 80 * - 40 AS col1
----
384
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - - COUNT( * ) * - - 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT - - COUNT ( * ) * - - 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2557
SELECT DISTINCT + + 52, - CAST( + + COUNT( * ) AS SIGNED ) + + - 25 * 72 AS col1
----
52
-1801

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + + 52, - CAST ( + + COUNT ( * ) AS INTEGER ) + + - 25 * 72 AS col1
----
52
-1801

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

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + + NULLIF ( - COUNT ( * ), + - 6 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - + COUNT( * ) * + + 30 + ( - ( 76 ) ) + + 55
----
-51

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - + COUNT ( * ) * + + 30 + ( - ( 76 ) ) + + 55
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2561
SELECT - SUM( - - COALESCE ( + 77, 81, NULLIF ( 21, + CAST( 74 AS SIGNED ) * - 0 * + + 93 ) + + + 87 ) ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2561
SELECT - SUM ( - - COALESCE ( + 77, 81, NULLIF ( 21, + CAST ( 74 AS INTEGER ) * - 0 * + + 93 ) + + + 87 ) ) col0
----
-77

query I rowsort
SELECT DISTINCT - 78 * + 89 AS col1
----
-6942

query I rowsort
SELECT ALL - - 45 + 77
----
122

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

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT - COUNT ( * ) + - 19 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + MAX( + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2565
SELECT + MAX ( + 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + + COUNT( * ) + - + 88 - + COUNT( * ) - - + 83
----
-5

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + COUNT ( * ) + - + 88 - + COUNT ( * ) - - + 83
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT ALL - + CAST( - 14 AS SIGNED ) + - 10 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - + CAST ( - 14 AS INTEGER ) + - 10 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL + ( - 71 ) + 20 * MIN( 60 ) * - - 60
----
71929

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + ( - 71 ) + 20 * MIN ( 60 ) * - - 60
----
71929

query I rowsort
SELECT + + 98 - 89
----
9

query I rowsort
SELECT + COALESCE ( + + 7, - 67 ) + 84
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL 18 + - + COUNT( + 91 )
----
17

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 18 + - + COUNT ( + 91 )
----
17

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

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

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

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

query II rowsort
SELECT - ( - - 8 ), 39 AS col1
----
-8
39

query I rowsort
SELECT DISTINCT 53 + 44 AS col0
----
97

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

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

query II rowsort
SELECT 58, + 97 * 8 + - - 0 AS col2
----
58
776

query I rowsort
SELECT DISTINCT 17 - + 56
----
-39

query I rowsort
SELECT + 29 * + 57 * + 53
----
87609

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

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

query I rowsort
SELECT + 34 - 36 + - 21 * - 64 * + 15 AS col1
----
20158

query I rowsort
SELECT - 46 * - 65 - 29 AS col0
----
2961

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT - COUNT ( * ) / + 78 AS col0
----
0

query I rowsort
SELECT DISTINCT ( + 21 ) * + 51 AS col1
----
1071

query I rowsort
SELECT ALL + COALESCE ( + + 93, - 71 ) AS col1
----
93

query I rowsort
SELECT ALL - 73 * + 81
----
-5913

query I rowsort
SELECT + 39 * + 21
----
819

query I rowsort
SELECT + 56 - 13 + 84
----
127

query I rowsort
SELECT + 38 + - 69 * - 57
----
3971

query I rowsort
SELECT - - 12 * + 51
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL CASE + - CAST( NULL AS SIGNED ) WHEN + ( - ( 42 ) ) * - - 55 * - - 44 + 74 + + 30 THEN + 70 * + 34 + - MAX( + 13 ) + - + 59 + - 17 ELSE NULL END * - CAST( - COUNT( * ) AS SIGNED ) + + + 87 + 48 + - + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL CASE + - CAST ( NULL AS INTEGER ) WHEN + ( - ( 42 ) ) * - - 55 * - - 44 + 74 + + 30 THEN + 70 * + 34 + - MAX ( + 13 ) + - + 59 + - 17 ELSE NULL END * - CAST ( - COUNT ( * ) AS INTEGER ) + + + 87 + 48 + - + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2593
SELECT + ( - 80 ) + + 65 + CAST( - COUNT( * ) AS SIGNED ) DIV + - 72 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( - 80 ) + + 65 + CAST ( - COUNT ( * ) AS INTEGER ) / + - 72 AS col1
----
-15

query I rowsort
SELECT - 35 * - + 54 + + 32
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + CASE + + COALESCE ( SUM( ALL - - 93 ), - 69 ) WHEN + - ( - COUNT( * ) ) * + 99 / - 15 + + - 63 * - - 47 * - 11 THEN + 52 ELSE NULL END * + 9 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT + CASE + + COALESCE ( SUM ( ALL - - 93 ), - 69 ) WHEN + - ( - COUNT ( * ) ) * + 99 / - 15 + + - 63 * - - 47 * - 11 THEN + 52 ELSE NULL END * + 9 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 78, + ( 8 ) ) AS col1
----
-78

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

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

query I rowsort
SELECT - - 19 + + - ( + - 53 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT DISTINCT + 34 * + COUNT( * ) * - - COALESCE ( CAST( 1 AS SIGNED ), AVG ( - - CAST( NULL AS SIGNED ) ) + - 9 + - NULLIF ( - 79, - + 20 * - - 6 + - CAST( NULL AS SIGNED ) ) + - 32 ) - + CAST( NULL AS SIGNED ) * 60 / 87 / + 34 + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + 34 * + COUNT ( * ) * - - COALESCE ( CAST ( 1 AS INTEGER ), AVG ( - - CAST ( NULL AS INTEGER ) ) + - 9 + - NULLIF ( - 79, - + 20 * - - 6 + - CAST ( NULL AS INTEGER ) ) + - 32 ) - + CAST ( NULL AS INTEGER ) * 60 / 87 / + 34 + - 64 AS col1
----
NULL

query I rowsort
SELECT ALL - - 52 * 7 * - 32 + + 15
----
-11633

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT - 24 + - 53 + - COUNT( ALL 3 ) * - 15 + - 19
----
-81

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 24 + - 53 + - COUNT ( ALL 3 ) * - 15 + - 19
----
-81

query I rowsort
SELECT - 21 * + 40 + 98 + 9
----
-733

query I rowsort
SELECT - 76 * - 8 col1
----
608

query I rowsort
SELECT ALL + 30 * - 92 + + - 14
----
-2774

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2606
SELECT - CAST( - + 11 AS SIGNED ) DIV - 29 + 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2606
SELECT - CAST ( - + 11 AS INTEGER ) / - 29 + 67 AS col0
----
67

query I rowsort
SELECT + 65 * - 54 * 67
----
-235170

query I rowsort
SELECT DISTINCT - 49 * - 89
----
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT 22 + - 0 * - - ( + CASE + 82 WHEN - 63 THEN NULL WHEN + 60 THEN + - 93 WHEN - COUNT( * ) THEN + - 98 * 83 + CAST( - 39 AS SIGNED ) + ( + SUM( - 49 ) ) / 97 * + + 93 + - 7 * - 3 * + 29 + - + 69 / - MIN( + + 81 ) + + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT 22 + - 0 * - - ( + CASE + 82 WHEN - 63 THEN NULL WHEN + 60 THEN + - 93 WHEN - COUNT ( * ) THEN + - 98 * 83 + CAST ( - 39 AS INTEGER ) + ( + SUM ( - 49 ) ) / 97 * + + 93 + - 7 * - 3 * + 29 + - + 69 / - MIN ( + + 81 ) + + 70 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2610
SELECT 12 + + COUNT( * ) AS col1, - 2 + - CAST( - ( + - 15 ) AS SIGNED )
----
13
-17

skipif mysql # not compatible
query II rowsort label-2610
SELECT 12 + + COUNT ( * ) AS col1, - 2 + - CAST ( - ( + - 15 ) AS INTEGER )
----
13
-17

query I rowsort
SELECT 16 * - - ( + 64 )
----
1024

query I rowsort
SELECT CASE 95 WHEN ( - 12 ) THEN + 93 - - - 48 END * AVG ( DISTINCT + - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT ( + - CASE - + 28 WHEN + - COUNT( * ) THEN + 7 END ) * + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT ( + - CASE - + 28 WHEN + - COUNT ( * ) THEN + 7 END ) * + 1 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 87 * + ( + 79 ), + 8 * - 14 AS col2
----
6873
-112

query I rowsort
SELECT DISTINCT ( - 34 ) * - NULLIF ( + 17, - 4 )
----
578

query I rowsort
SELECT ALL 27 + - 79 AS col1
----
-52

query II rowsort
SELECT 57 + 6 AS col2, - 16
----
63
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT 71 / 98 + + CAST( NULL AS SIGNED ) + + 96 * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT 71 / 98 + + CAST ( NULL AS INTEGER ) + + 96 * - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT 83 * - - 90 * + 58 + COUNT( * ) + - 75 - 64 * + - COUNT( - 45 ) + + + 34 * - 67 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT 83 * - - 90 * + 58 + COUNT ( * ) + - 75 - 64 * + - COUNT ( - 45 ) + + + 34 * - 67 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - 78 + + COUNT( * ) + + 73 + 43 * 88 AS col1
----
3780

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - 78 + + COUNT ( * ) + + 73 + 43 * 88 AS col1
----
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT MIN( ( - + NULLIF ( 31, - 87 ) ) ), 37 AS col2
----
-31
37

skipif mysql # not compatible
query II rowsort label-2621
SELECT MIN ( ( - + NULLIF ( 31, - 87 ) ) ), 37 AS col2
----
-31
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT 92 DIV 36 + - 29 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2622
SELECT 92 / 36 + - 29 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL 98 * - 27 + + COUNT( * ) AS col1
----
-2645

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL 98 * - 27 + + COUNT ( * ) AS col1
----
-2645

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT ALL + COUNT( * ) + - 66 AS col0, - 93
----
-65
-93

skipif mysql # not compatible
query II rowsort label-2624
SELECT ALL + COUNT ( * ) + - 66 AS col0, - 93
----
-65
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + COUNT( ALL 96 ) AS col2, - 93 * + + 78 + - 37
----
1
-7291

skipif mysql # not compatible
query II rowsort label-2625
SELECT + COUNT ( ALL 96 ) AS col2, - 93 * + + 78 + - 37
----
1
-7291

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT ALL - 37 + + 80 * + + 1 - + 66 * 9 * + - 95 * - + 69 DIV 1
----
-3893627

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 37 + + 80 * + + 1 - + 66 * 9 * + - 95 * - + 69 / 1
----
-3893627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2627
SELECT ALL + - 77 + - COUNT( * ) * - + 9 col0, 88 + + CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL + - 77 + - COUNT ( * ) * - + 9 col0, 88 + + CAST ( NULL AS INTEGER )
----
-68
NULL

query I rowsort
SELECT - COALESCE ( - - 11, - 85 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT - COUNT( * ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - COUNT ( * ) + 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT + - MAX( 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2630
SELECT + - MAX ( 63 ) AS col2
----
-63

query I rowsort
SELECT ALL + 1 - - 62 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT COUNT( - 40 ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-2632
SELECT COUNT ( - 40 ) - + 51
----
-50

query I rowsort
SELECT - + COALESCE ( + + 53, - 28 ) AS col2
----
-53

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

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

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

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL COUNT ( * ) - + 64 + - 57 + - COUNT ( * ) AS col2
----
-121

query I rowsort
SELECT 7 * - ( + 94 ) AS col1
----
-658

query I rowsort
SELECT ALL - 8 - + - 22 + - 75 AS col2
----
-61

query II rowsort
SELECT ALL 45 AS col1, 97
----
45
97

query I rowsort
SELECT 22 + - 5 AS col2
----
17

query I rowsort
SELECT 26 - 26
----
0

query I rowsort
SELECT 32 + + 38 + + 76
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - 63 * + - 30 * - + COUNT( * ) * - - 19 AS col2
----
-35910

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - 63 * + - 30 * - + COUNT ( * ) * - - 19 AS col2
----
-35910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL - COALESCE ( - + 85, - + CAST( + 38 AS SIGNED ) ) * 70 AS col0
----
5950

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - COALESCE ( - + 85, - + CAST ( + 38 AS INTEGER ) ) * 70 AS col0
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT 16 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT 16 / - 96 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2645
SELECT 51 / + + 22 * - CAST( NULL AS SIGNED ), CASE 81 WHEN 27 * COALESCE ( - COALESCE ( 41, + 9 * - 37 ), - + 63, 45 ) THEN - 41 WHEN + MIN( DISTINCT + 84 ) * - COALESCE ( 23, + CAST( - 29 AS SIGNED ), - - COUNT( * ) - + + 38 ) - - ( + + COUNT( * ) ) * 20 THEN NULL WHEN 54 * + ( 78 ) - + - 63 THEN NULL WHEN + 1 THEN NULL END * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2645
SELECT 51 / + + 22 * - CAST ( NULL AS INTEGER ), CASE 81 WHEN 27 * COALESCE ( - COALESCE ( 41, + 9 * - 37 ), - + 63, 45 ) THEN - 41 WHEN + MIN ( DISTINCT + 84 ) * - COALESCE ( 23, + CAST ( - 29 AS INTEGER ), - - COUNT ( * ) - + + 38 ) - - ( + + COUNT ( * ) ) * 20 THEN NULL WHEN 54 * + ( 78 ) - + - 63 THEN NULL WHEN + 1 THEN NULL END * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT 22 * - CASE - 85 WHEN 62 + - + COUNT( * ) THEN 88 ELSE + NULLIF ( - 41, 82 + 67 ) END AS col1
----
902

skipif mysql # not compatible
query I rowsort label-2646
SELECT 22 * - CASE - 85 WHEN 62 + - + COUNT ( * ) THEN 88 ELSE + NULLIF ( - 41, 82 + 67 ) END AS col1
----
902

query II rowsort
SELECT 57 + - ( - - 85 ) - COALESCE ( 13, + 37 ) * + 46 * - + 90 * + 51 AS col2, - 86 AS col2
----
2744792
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT ALL 19 AS col2, COUNT( * ) * - 9
----
19
-9

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL 19 AS col2, COUNT ( * ) * - 9
----
19
-9

query I rowsort
SELECT DISTINCT 86 + - - 46 AS col0
----
132

query I rowsort
SELECT ALL 81 * 82 + - 9 + + 71 AS col0
----
6704

query I rowsort
SELECT 37 - - 12
----
49

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

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

query I rowsort
SELECT + 90 * - 39 * - 75 AS col0
----
263250

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 90 * - COUNT( * ) + - - 22 + - - 29
----
-39

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 90 * - COUNT ( * ) + - - 22 + - - 29
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT - 56 DIV - - 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2655
SELECT - 56 / - - 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL 25 * + 10 - - 43 + - 69 + - MIN( 23 )
----
201

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 25 * + 10 - - 43 + - 69 + - MIN ( 23 )
----
201

query I rowsort
SELECT ALL - 97 * - 36
----
3492

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT + ( ( + 27 ) ) * - - COUNT( * ) AS col1, 79 - 13 col0
----
27
66

skipif mysql # not compatible
query II rowsort label-2658
SELECT + ( ( + 27 ) ) * - - COUNT ( * ) AS col1, 79 - 13 col0
----
27
66

query I rowsort
SELECT ALL + 5 - - - NULLIF ( - - 35, + + 68 ) AS col2
----
-30

query I rowsort
SELECT - 37 * - 96 + 99 * - 62 + + 88 AS col1
----
-2498

query I rowsort
SELECT 55 * + 2 AS col0
----
110

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2663
SELECT + + 88 AS col0, 75 DIV 72
----
88
1

skipif mysql # not compatible
query II rowsort label-2663
SELECT + + 88 AS col0, 75 / 72
----
88
1

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

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

query I rowsort
SELECT + 30 * + 1
----
30

query I rowsort
SELECT - NULLIF ( 2, + - 99 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + 94 * - 72 * - COUNT( * ) * + NULLIF ( 52, - ( + - NULLIF ( + 49, - 86 ) ) ) AS col2
----
351936

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 94 * - 72 * - COUNT ( * ) * + NULLIF ( 52, - ( + - NULLIF ( + 49, - 86 ) ) ) AS col2
----
351936

query I rowsort
SELECT + 87 + 73 + NULLIF ( - + 37, + 93 )
----
123

query I rowsort
SELECT + 63 * + 53 AS col2
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - MAX( DISTINCT + 31 ) - + 34 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2670
SELECT - MAX ( DISTINCT + 31 ) - + 34 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT ( COUNT( * ) ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT ( COUNT ( * ) ) + + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - NULLIF ( - - MIN( ALL 51 ), + 36 ) + - + COUNT( * ) + - + 57
----
-109

skipif mysql # not compatible
query I rowsort label-2672
SELECT - NULLIF ( - - MIN ( ALL 51 ), + 36 ) + - + COUNT ( * ) + - + 57
----
-109

query I rowsort
SELECT ALL + 69 + - 15 col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2674
SELECT + COUNT( * ) + - 39 AS col2, 65 - CAST( NULL AS SIGNED )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-2674
SELECT + COUNT ( * ) + - 39 AS col2, 65 - CAST ( NULL AS INTEGER )
----
-38
NULL

query I rowsort
SELECT + 97 + + 91 col2
----
188

query I rowsort
SELECT - 3 - - 92
----
89

query I rowsort
SELECT DISTINCT - 97 * + - 92 AS col1
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + + MAX( ALL + 85 ) * + - 67
----
-5695

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + + MAX ( ALL + 85 ) * + - 67
----
-5695

query I rowsort
SELECT - 27 + + 46 * + ( + - 89 ) AS col0
----
-4121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT - 96 - - 23 + + + CAST( NULL AS SIGNED ) * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 96 - - 23 + + + CAST ( NULL AS INTEGER ) * + + 89
----
NULL

query I rowsort
SELECT - + 64 * - 48 * + 36
----
110592

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + + ( - 45 ) DIV - 16 + - - 71 + - 25
----
48

skipif mysql # not compatible
query I rowsort label-2682
SELECT + + ( - 45 ) / - 16 + - - 71 + - 25
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT - + 15 + - 8 DIV + 87
----
-15

skipif mysql # not compatible
query I rowsort label-2683
SELECT - + 15 + - 8 / + 87
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + COUNT( * ) * + 63 * + MAX( ALL - + 33 ) - + ( 94 )
----
-2173

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + COUNT ( * ) * + 63 * + MAX ( ALL - + 33 ) - + ( 94 )
----
-2173

query I rowsort
SELECT - 29 * 81 * + 14 + - 72 * + 21 - + - 23 AS col1
----
-34375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT - CASE + 47 WHEN + + 30 THEN NULL WHEN - 12 THEN + + CAST( + + COUNT( * ) AS SIGNED ) ELSE NULL END * MAX( - + 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT - CASE + 47 WHEN + + 30 THEN NULL WHEN - 12 THEN + + CAST ( + + COUNT ( * ) AS INTEGER ) ELSE NULL END * MAX ( - + 28 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - CAST ( - 99 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 * - 74 + - 17 - - 66
----
6857

query I rowsort
SELECT ALL - 28 * - - 13 - - + 31
----
-333

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

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

query I rowsort
SELECT COALESCE ( - 5, - 84 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2692
SELECT ALL + 71 AS col0, 18 + + + 17 * - 96 + - + CAST( + 13 AS SIGNED ) * - - SUM( DISTINCT + 19 )
----
71
-1861

skipif mysql # not compatible
query II rowsort label-2692
SELECT ALL + 71 AS col0, 18 + + + 17 * - 96 + - + CAST ( + 13 AS INTEGER ) * - - SUM ( DISTINCT + 19 )
----
71
-1861

query II rowsort
SELECT ALL 98 col1, - COALESCE ( + 36, + ( - + 62 ) - - 65 ) AS col2
----
98
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT - 6 * - + 85 * + CASE - COALESCE ( - 61, - 15 - - ( 56 ) ) WHEN + COALESCE ( - 18, 71, + - CASE + CASE + 31 WHEN - COALESCE ( 5, 26 + + - COUNT( * ) + + 98 + 85 * - 49 * + 18, SUM( DISTINCT - 98 ) ) * + CAST( NULL AS SIGNED ) - - COUNT( * ) THEN NULL WHEN - COUNT( 63 ) + + 69 + - COUNT( * ) + - 71 * - - ( - + 7 ) THEN + COALESCE ( 46, ( 35 ) + ( 40 + CAST( 78 AS SIGNED ) ), - COUNT( * ) / + 54 ) * + 33 ELSE + COUNT( * ) END WHEN COUNT( * ) + - ( + COUNT( * ) ) THEN ( - 30 ) * + 16 ELSE NULL END, - ( - 14 ) - 0 ) * - 29 THEN 93 ELSE 95 END + 43
----
48493

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - 6 * - + 85 * + CASE - COALESCE ( - 61, - 15 - - ( 56 ) ) WHEN + COALESCE ( - 18, 71, + - CASE + CASE + 31 WHEN - COALESCE ( 5, 26 + + - COUNT ( * ) + + 98 + 85 * - 49 * + 18, SUM ( DISTINCT - 98 ) ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN NULL WHEN - COUNT ( 63 ) + + 69 + - COUNT ( * ) + - 71 * - - ( - + 7 ) THEN + COALESCE ( 46, ( 35 ) + ( 40 + CAST ( 78 AS INTEGER ) ), - COUNT ( * ) / + 54 ) * + 33 ELSE + COUNT ( * ) END WHEN COUNT ( * ) + - ( + COUNT ( * ) ) THEN ( - 30 ) * + 16 ELSE NULL END, - ( - 14 ) - 0 ) * - 29 THEN 93 ELSE 95 END + 43
----
48493

query I rowsort
SELECT + 46 - 97 AS col1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT 92 * - + COUNT( * ) + 90 * - + 14 * - 12 - - 13 col2
----
15041

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT 92 * - + COUNT ( * ) + 90 * - + 14 * - 12 - - 13 col2
----
15041

query I rowsort
SELECT - ( - 86 ) col1
----
86

query I rowsort
SELECT ALL 28 + - + 82
----
-54

query I rowsort
SELECT ALL 74 + + 92 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - CASE + - 81 WHEN - 41 THEN - - CASE + - 92 WHEN - + 76 - + COUNT( * ) + + 35 - + 55 THEN NULL WHEN + 34 THEN NULL WHEN - 10 THEN + - 99 + + - 1 END WHEN - 84 THEN NULL WHEN - 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT - CASE + - 81 WHEN - 41 THEN - - CASE + - 92 WHEN - + 76 - + COUNT ( * ) + + 35 - + 55 THEN NULL WHEN + 34 THEN NULL WHEN - 10 THEN + - 99 + + - 1 END WHEN - 84 THEN NULL WHEN - 82 THEN NULL END
----
NULL

query I rowsort
SELECT + 74 * + 88 AS col2
----
6512

query I rowsort
SELECT ALL + 99 + - 26 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL - COUNT( * ) DIV + + COALESCE ( + ( 11 ), - 2 + 69 + ( - 32 ) DIV - COALESCE ( + - 69, - 52 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - COUNT ( * ) / + + COALESCE ( + ( 11 ), - 2 + 69 + ( - 32 ) / - COALESCE ( + - 69, - 52 ) ) AS col1
----
0

query I rowsort
SELECT + 47 * 64
----
3008

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT DISTINCT - 96 DIV + 12
----
-8

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT - 96 / + 12
----
-8

query I rowsort
SELECT ALL 30 - - 50 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + 46 * 16 * + CASE - NULLIF ( - COUNT( DISTINCT - 16 ), 6 / 96 + + COUNT( * ) - + CASE 10 WHEN + + 39 THEN 62 + + + 5 * - ( - 52 ) + 92 END ) WHEN - 20 THEN + SUM( DISTINCT + - 9 ) END * + SUM( ALL 38 ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 46 * 16 * + CASE - NULLIF ( - COUNT ( DISTINCT - 16 ), 6 / 96 + + COUNT ( * ) - + CASE 10 WHEN + + 39 THEN 62 + + + 5 * - ( - 52 ) + 92 END ) WHEN - 20 THEN + SUM ( DISTINCT + - 9 ) END * + SUM ( ALL 38 ) - 69
----
NULL

query I rowsort
SELECT - 58 * + 0 - - + 36
----
36

query I rowsort
SELECT - 1 * + 60
----
-60

query I rowsort
SELECT ALL - 3 * - 85 * 98 AS col0
----
24990

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT - - 92 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - 92 / - 64
----
-1

query II rowsort
SELECT 65 AS col1, + 23 AS col1
----
65
23

query I rowsort
SELECT 72 * - + 21 * 8
----
-12096

query I rowsort
SELECT ALL 33 * 10 AS col1
----
330

query I rowsort
SELECT ( - - 5 ) * + + 66 + + 67 - - 38 + + 92 - 39 + + 69 * - + 34 * + - ( 38 ) * + 87
----
7756364

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT 51 * COUNT( * ) + - 22 * 96 AS col2
----
-2061

skipif mysql # not compatible
query I rowsort label-2717
SELECT 51 * COUNT ( * ) + - 22 * 96 AS col2
----
-2061

query II rowsort
SELECT 7 AS col2, - 44 + 14
----
7
-30

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

query I rowsort
SELECT 13 * - + 30 + - 91
----
-481

query I rowsort
SELECT 22 * - 92 * - 80 AS col2
----
161920

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT 35 + - + 35 col2, - MIN( DISTINCT 12 )
----
0
-12

skipif mysql # not compatible
query II rowsort label-2722
SELECT 35 + - + 35 col2, - MIN ( DISTINCT 12 )
----
0
-12

query I rowsort
SELECT ALL 34 + 33
----
67

query I rowsort
SELECT 25 * + - 54
----
-1350

query II rowsort
SELECT 23 AS col2, 77 * - + 13 - - 83 + + ( 51 )
----
23
-867

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT - 64 AS col1, MIN( + 19 )
----
-64
19

skipif mysql # not compatible
query II rowsort label-2726
SELECT - 64 AS col1, MIN ( + 19 )
----
-64
19

query II rowsort
SELECT 31, 60 col2
----
31
60

onlyif mysql # DIV for integer division: 
query II rowsort label-2728
SELECT ALL 19, - 45 DIV - 16 AS col0
----
19
2

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL 19, - 45 / - 16 AS col0
----
19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT SUM( + - 97 ) + - 15 * + 74 AS col2
----
-1207

skipif mysql # not compatible
query I rowsort label-2729
SELECT SUM ( + - 97 ) + - 15 * + 74 AS col2
----
-1207

query I rowsort
SELECT 60 * 36
----
2160

query II rowsort
SELECT DISTINCT 78 col1, + 15 AS col0
----
78
15

query I rowsort
SELECT 92 + + + 98 + + 26 - + - 37
----
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT - 36 * - CAST( NULL AS SIGNED ) + - 15 + + 62 + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT - 36 * - CAST ( NULL AS INTEGER ) + - 15 + + 62 + - + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2734
SELECT NULLIF ( - 80, + + 49 ) + + - 5 col2, + 41 * + NULLIF ( - 79, CAST( - + 23 AS SIGNED ) ) + - + 52
----
-85
-3291

skipif mysql # not compatible
query II rowsort label-2734
SELECT NULLIF ( - 80, + + 49 ) + + - 5 col2, + 41 * + NULLIF ( - 79, CAST ( - + 23 AS INTEGER ) ) + - + 52
----
-85
-3291

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

query I rowsort
SELECT CASE WHEN + 91 <> NULL THEN + + 71 END + - ( 70 )
----
NULL

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

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

query I rowsort
SELECT - - COALESCE ( - - 2, 58, - 39 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - COUNT( * ) * 27 col2
----
-27

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - COUNT ( * ) * 27 col2
----
-27

query I rowsort
SELECT 17 + 45 AS col2
----
62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2742
SELECT + NULLIF ( - + CASE COALESCE ( + CASE 65 WHEN 1 + + ( 39 ) THEN + - 89 ELSE NULL END, + + COUNT( ALL - + 6 ) - CAST( NULL AS SIGNED ) + + 48 + - 99 ) WHEN + + 91 THEN - CASE COUNT( * ) WHEN CAST( 69 AS DECIMAL ) + + COUNT( ALL + - 92 ) THEN NULL ELSE 30 * - + 13 * - 33 END * + + COALESCE ( - 20, - - 53, + CAST( + 83 AS SIGNED ) * NULLIF ( COUNT( * ), 92 ) - 35, - + 86 ) WHEN + + COALESCE ( - + 24, COUNT( * ), 44 * 21 ) THEN NULL ELSE NULL END, + 6 - + 93 * - 71 ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT + NULLIF ( - + CASE COALESCE ( + CASE 65 WHEN 1 + + ( 39 ) THEN + - 89 ELSE NULL END, + + COUNT ( ALL - + 6 ) - CAST ( NULL AS INTEGER ) + + 48 + - 99 ) WHEN + + 91 THEN - CASE COUNT ( * ) WHEN CAST ( 69 AS REAL ) + + COUNT ( ALL + - 92 ) THEN NULL ELSE 30 * - + 13 * - 33 END * + + COALESCE ( - 20, - - 53, + CAST ( + 83 AS INTEGER ) * NULLIF ( COUNT ( * ), 92 ) - 35, - + 86 ) WHEN + + COALESCE ( - + 24, COUNT ( * ), 44 * 21 ) THEN NULL ELSE NULL END, + 6 - + 93 * - 71 ) + 72
----
NULL

query I rowsort
SELECT DISTINCT + 74 * - + 33 + 74
----
-2368

query I rowsort
SELECT 9 * 78 AS col0
----
702

query II rowsort
SELECT DISTINCT - + 82 col1, 84 AS col0
----
-82
84

query I rowsort
SELECT 89 * - 39
----
-3471

query I rowsort
SELECT - 74 + 53 * + 9 AS col0
----
403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT ALL + MAX( DISTINCT 38 ) DIV COUNT( * ) DIV COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + MAX ( DISTINCT 38 ) / COUNT ( * ) / COUNT ( * ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2749
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2749
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2, 80
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ( - 85 ) * + SUM( DISTINCT - 97 ) + + - 86 AS col0
----
8159

skipif mysql # not compatible
query I rowsort label-2750
SELECT ( - 85 ) * + SUM ( DISTINCT - 97 ) + + - 86 AS col0
----
8159

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT + 2 DIV 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT + 2 / 83 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT + 41 * - 56 DIV - - COUNT( * )
----
-2296

skipif mysql # not compatible
query I rowsort label-2752
SELECT + 41 * - 56 / - - COUNT ( * )
----
-2296

query II rowsort
SELECT DISTINCT + 0 + 36 AS col1, - 69 * 25 AS col2
----
36
-1725

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2754
SELECT DISTINCT ( - 3 ) * - CAST( + 10 AS SIGNED ) + + CASE - 58 WHEN + 16 THEN + + 88 WHEN 85 THEN + 16 WHEN + 4 THEN NULL ELSE NULL END * - COALESCE ( + + 9, + 33 - - 99, - + AVG ( ALL - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT ( - 3 ) * - CAST ( + 10 AS INTEGER ) + + CASE - 58 WHEN + 16 THEN + + 88 WHEN 85 THEN + 16 WHEN + 4 THEN NULL ELSE NULL END * - COALESCE ( + + 9, + 33 - - 99, - + AVG ( ALL - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT SUM( - + 14 ) + + 24 * + - NULLIF ( - 8, - - 20 + 78 ) + - 28 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT SUM ( - + 14 ) + + 24 * + - NULLIF ( - 8, - - 20 + 78 ) + - 28 AS col2
----
150

query I rowsort
SELECT 55 * + 94 + + 21 - - - NULLIF ( 24, + + 73 ) AS col1
----
5167

query I rowsort
SELECT 67 + - 14
----
53

query I rowsort
SELECT 70 * + 60
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), - 65 - 60 * + 49 ) AS col0
----
3005

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), - 65 - 60 * + 49 ) AS col0
----
3005

query I rowsort
SELECT 50 - - - 51
----
-1

query I rowsort
SELECT 60 - + 7 + - 38
----
15

query I rowsort
SELECT ALL + 83 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL + 11 DIV - 51 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 11 / - 51 * + 49
----
0

query I rowsort
SELECT ALL - 56 - 56
----
-112

query I rowsort
SELECT DISTINCT + 93 * 21
----
1953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT - 34 - - + CAST( NULL AS SIGNED ) + - 18 + - + 5 / + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 34 - - + CAST ( NULL AS INTEGER ) + - 18 + - + 5 / + 38
----
NULL

query I rowsort
SELECT ALL - CASE + + 3 WHEN - 14 THEN + + 57 * + 22 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - ( - + MAX( - + 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - ( - + MAX ( - + 39 ) ) AS col0
----
-39

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT + 0 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 0 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 53 * - 22
----
-1166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2773
SELECT ALL - - CAST( + 48 AS SIGNED ) DIV - + ( - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - - CAST ( + 48 AS INTEGER ) / - + ( - 45 ) AS col0
----
1

query I rowsort
SELECT + 36 * + 23
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT ALL + 6 + + 2 * CASE - + 76 WHEN COUNT( * ) * + 34 THEN + + CASE + + 22 WHEN + 14 * 5 THEN - COUNT( * ) * - SUM( ALL - - 49 ) WHEN + 18 THEN - CAST( NULL AS SIGNED ) END WHEN + + 43 - - 21 / - + 23 * 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + 6 + + 2 * CASE - + 76 WHEN COUNT ( * ) * + 34 THEN + + CASE + + 22 WHEN + 14 * 5 THEN - COUNT ( * ) * - SUM ( ALL - - 49 ) WHEN + 18 THEN - CAST ( NULL AS INTEGER ) END WHEN + + 43 - - 21 / - + 23 * 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL ( + MAX( DISTINCT 20 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL ( + MAX ( DISTINCT 20 ) ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL - 62 * 69 DIV - 14 AS col0
----
305

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - 62 * 69 / - 14 AS col0
----
305

query I rowsort
SELECT - + 56 * + 39 AS col0
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT - 99 * - 77 + + CAST( - + 29 AS SIGNED ) - + 6 AS col1
----
7588

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 99 * - 77 + + CAST ( - + 29 AS INTEGER ) - + 6 AS col1
----
7588

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + CASE 35 WHEN + COUNT( * ) THEN - - 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CASE 35 WHEN + COUNT ( * ) THEN - - 47 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT + MAX( + - 58 ) * COUNT( - 76 ) DIV ( 83 ) + + CAST( - COUNT( * ) AS SIGNED ) + + 53 * + - 1 + - 10
----
-64

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT + MAX ( + - 58 ) * COUNT ( - 76 ) / ( 83 ) + + CAST ( - COUNT ( * ) AS INTEGER ) + + 53 * + - 1 + - 10
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2783
SELECT ALL 49 * 99 + CAST( - ( + 31 ) AS SIGNED ) DIV 94 * - MIN( - + 58 ) DIV 28 AS col1
----
4851

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL 49 * 99 + CAST ( - ( + 31 ) AS INTEGER ) / 94 * - MIN ( - + 58 ) / 28 AS col1
----
4851

onlyif mysql # DIV for integer division: 
query II rowsort label-2784
SELECT + 62 * + 95 - - 13 AS col2, 41 DIV 90 AS col1
----
5903
0

skipif mysql # not compatible
query II rowsort label-2784
SELECT + 62 * + 95 - - 13 AS col2, 41 / 90 AS col1
----
5903
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + 87 + + - SUM( + - 26 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-2785
SELECT + 87 + + - SUM ( + - 26 ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT CASE COUNT( * ) WHEN - 57 * + 93 - - 28 + + - ( - - 31 ) * + + 35 + 73 THEN - 48 WHEN + 56 + 30 + COALESCE ( - 11, - 76 ) * - 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT CASE COUNT ( * ) WHEN - 57 * + 93 - - 28 + + - ( - - 31 ) * + + 35 + 73 THEN - 48 WHEN + 56 + 30 + COALESCE ( - 11, - 76 ) * - 8 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2787
SELECT + COUNT( * ), 39 * 54 * - 92 AS col1
----
1
-193752

skipif mysql # not compatible
query II rowsort label-2787
SELECT + COUNT ( * ), 39 * 54 * - 92 AS col1
----
1
-193752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT + 69 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 69 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 81 * + 17 AS col0
----
1377

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2790
SELECT DISTINCT 22 DIV + - CAST( - 73 AS SIGNED ) AS col0, 95 AS col0
----
0
95

skipif mysql # not compatible
query II rowsort label-2790
SELECT DISTINCT 22 / + - CAST ( - 73 AS INTEGER ) AS col0, 95 AS col0
----
0
95

query I rowsort
SELECT + 34 + 30
----
64

query I rowsort
SELECT + 51 * - 8 * - 83 AS col2
----
33864

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL 57 * + NULLIF ( COUNT( * ), + 18 * 96 * - COUNT( * ) * + MAX( - 17 ) ) * - 31
----
-1767

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL 57 * + NULLIF ( COUNT ( * ), + 18 * 96 * - COUNT ( * ) * + MAX ( - 17 ) ) * - 31
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL 16 * COUNT( - 48 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 16 * COUNT ( - 48 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT 74 * + + 98 * - 24 * 5 * + + COUNT( * ) AS col2
----
-870240

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT 74 * + + 98 * - 24 * 5 * + + COUNT ( * ) AS col2
----
-870240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL + NULLIF ( + 5, CAST( + + 69 AS SIGNED ) * - + COUNT( * ) - + + ( ( - - 97 ) ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + NULLIF ( + 5, CAST ( + + 69 AS INTEGER ) * - + COUNT ( * ) - + + ( ( - - 97 ) ) ) AS col0
----
5

query II rowsort
SELECT - 3 + 3 * 35, ( - ( 89 ) ) AS col0
----
102
-89

query II rowsort
SELECT ALL + 21, 48 * + 32 AS col2
----
21
1536

query I rowsort
SELECT 16 * + 51 + + - 87 AS col1
----
729

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2800
SELECT + 66 * CASE - + 17 WHEN ( - 75 ) * 80 * + ( - 71 ) + 44 * - 68 THEN + COUNT( * ) ELSE NULL END * 58 + + CAST( 0 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT + 66 * CASE - + 17 WHEN ( - 75 ) * 80 * + ( - 71 ) + 44 * - 68 THEN + COUNT ( * ) ELSE NULL END * 58 + + CAST ( 0 AS REAL )
----
NULL

query I rowsort
SELECT - 54 * 77 AS col0
----
-4158

query I rowsort
SELECT - 93 + + + 27 * + 52 col1
----
1311

query I rowsort
SELECT ALL + COALESCE ( + 19, - - 52, + 37 ) AS col0
----
19

query I rowsort
SELECT - 7 + - 2 - + 67 + - ( - 93 ) * - 77 + 89
----
-7148

query II rowsort
SELECT ALL - ( + 82 ) + + 87 AS col2, 81
----
5
81

query I rowsort
SELECT - - 30 + + 30 + + + NULLIF ( - - 67, + 66 ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - + SUM( + + NULLIF ( - 3, 33 * - 35 / 38 ) ) + + COUNT( * ) * 41 * - ( + 84 ) AS col2
----
-3441

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + SUM ( + + NULLIF ( - 3, 33 * - 35 / 38 ) ) + + COUNT ( * ) * 41 * - ( + 84 ) AS col2
----
-3441

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

query I rowsort
SELECT - 56 + + 87 * - 42 * - 48 AS col2
----
175336

query I rowsort
SELECT - 96 + 41 - + 88 * 4 AS col2
----
-407

query II rowsort
SELECT 96 AS col0, 77 AS col0
----
96
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT COALESCE ( - - 74, + COUNT( * ) * + 71 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2812
SELECT COALESCE ( - - 74, + COUNT ( * ) * + 71 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT - COALESCE ( NULLIF ( - - 1, + 93 ), + ( - 93 ) * - - 86 + + - MIN( 88 ), - 42 ) + + CAST( NULL AS SIGNED ) + ( - - ( + 85 ) ) / 92 + + 9 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT - COALESCE ( NULLIF ( - - 1, + 93 ), + ( - 93 ) * - - 86 + + - MIN ( 88 ), - 42 ) + + CAST ( NULL AS INTEGER ) + ( - - ( + 85 ) ) / 92 + + 9 + - 48
----
NULL

query I rowsort
SELECT + 79 + 5 * + + ( - + ( 93 ) ) AS col2
----
-386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT ALL - - 76 + - CASE - CAST( NULL AS SIGNED ) WHEN + 1 THEN NULL WHEN - 9 * COUNT( DISTINCT - + 92 ) * + + MAX( DISTINCT + 13 ) + - 60 + - 87 + - 71 * + 54 + 59 THEN - 20 END - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - - 76 + - CASE - CAST ( NULL AS INTEGER ) WHEN + 1 THEN NULL WHEN - 9 * COUNT ( DISTINCT - + 92 ) * + + MAX ( DISTINCT + 13 ) + - 60 + - 87 + - 71 * + 54 + 59 THEN - 20 END - - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT + 3 DIV - 12 + + COUNT( * ) + - - 21
----
22

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + 3 / - 12 + + COUNT ( * ) + - - 21
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT ALL + ( - COUNT( * ) ) AS col0, + 88 + - 59
----
-1
29

skipif mysql # not compatible
query II rowsort label-2817
SELECT ALL + ( - COUNT ( * ) ) AS col0, + 88 + - 59
----
-1
29

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

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

query I rowsort
SELECT - 29 * 82 col1
----
-2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT CAST( + + CASE - 47 WHEN + + 99 / - 81 * - 41 * + SUM( + 59 ) THEN - 45 + + 79 ELSE NULL END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT CAST ( + + CASE - 47 WHEN + + 99 / - 81 * - 41 * + SUM ( + 59 ) THEN - 45 + + 79 ELSE NULL END AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT 17 * + NULLIF ( + + 36, CASE - 17 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN - + 30 THEN + 59 + 81 ELSE NULL END ) AS col1
----
612

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT 17 * + NULLIF ( + + 36, CASE - 17 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN - + 30 THEN + 59 + 81 ELSE NULL END ) AS col1
----
612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT ALL COUNT( * ) DIV + - 25 - 17 + + 80 * COUNT( * ) - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( * ) / + - 25 - 17 + + 80 * COUNT ( * ) - + COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT CAST( - CASE + - 64 WHEN CAST( NULL AS SIGNED ) + AVG ( + 94 ) THEN 10 * - 27 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT CAST ( - CASE + - 64 WHEN CAST ( NULL AS INTEGER ) + AVG ( + 94 ) THEN 10 * - 27 ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT + 63 * 74 AS col0, 99 AS col1
----
4662
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + CASE 25 WHEN - 17 THEN NULL WHEN + 90 THEN - - COUNT( * ) ELSE - 32 END
----
-32

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + CASE 25 WHEN - 17 THEN NULL WHEN + 90 THEN - - COUNT ( * ) ELSE - 32 END
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT COUNT( * ) * + 60 * - 70 * - - ( ( 52 ) ) - - 1 + + + ( + + 57 ) + - ( - - 77 ) + - 5 * + 28
----
-218559

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT COUNT ( * ) * + 60 * - 70 * - - ( ( 52 ) ) - - 1 + + + ( + + 57 ) + - ( - - 77 ) + - 5 * + 28
----
-218559

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + 25 * - 17 + - COUNT( * )
----
-426

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 25 * - 17 + - COUNT ( * )
----
-426

query I rowsort
SELECT + 97 * - 19 AS col0
----
-1843

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL 3 DIV + 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL 3 / + 87 col1
----
0

query II rowsort
SELECT ALL - 30 * - 9 * - 66 * 76 col2, + 21 + - + 90 AS col1
----
-1354320
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT + 78 * + CAST( NULL AS SIGNED ) AS col1, - 37 * 1 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2833
SELECT + 78 * + CAST ( NULL AS INTEGER ) AS col1, - 37 * 1 AS col0
----
NULL
-37

query I rowsort
SELECT ALL + 19 + - 23 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ( 6 ) * - - COUNT( * ) * + 12
----
72

skipif mysql # not compatible
query I rowsort label-2835
SELECT ( 6 ) * - - COUNT ( * ) * + 12
----
72

query I rowsort
SELECT ALL + 39 + - ( + 47 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + 70 + - - 66 - + - COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + 70 + - - 66 - + - COUNT ( * )
----
137

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

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

query I rowsort
SELECT ALL 10 + 80 AS col2
----
90

query II rowsort
SELECT + 94 * - 24 col0, - COALESCE ( + 7, + + 24 ) col1
----
-2256
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL - 43 + + 96 * - - COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - 43 + + 96 * - - COUNT ( * ) AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - + COUNT ( * ) + + 8 AS col1
----
7

query I rowsort
SELECT 31 * + 6 AS col2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT - CAST( - 0 AS SIGNED ) * ( - + 84 ) + 66
----
66

skipif mysql # not compatible
query I rowsort label-2844
SELECT - CAST ( - 0 AS INTEGER ) * ( - + 84 ) + 66
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT COUNT( * ) DIV - 25 + - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-2845
SELECT COUNT ( * ) / - 25 + - + 81
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT 76 DIV + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-2847
SELECT 76 / + 77 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT 25 * - CAST( + + 68 AS SIGNED ) - + 59
----
-1759

skipif mysql # not compatible
query I rowsort label-2849
SELECT 25 * - CAST ( + + 68 AS INTEGER ) - + 59
----
-1759

query I rowsort
SELECT 56 * ( + - 52 )
----
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT 59 * + CAST( + 83 AS SIGNED )
----
4897

skipif mysql # not compatible
query I rowsort label-2851
SELECT 59 * + CAST ( + 83 AS INTEGER )
----
4897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT + NULLIF ( + - 53, - + COUNT( - 35 ) + 94 + + 89 ) DIV - - NULLIF ( + - 69, - 94 ) * - ( 14 ) + 69
----
69

skipif mysql # not compatible
query I rowsort label-2852
SELECT + NULLIF ( + - 53, - + COUNT ( - 35 ) + 94 + + 89 ) / - - NULLIF ( + - 69, - 94 ) * - ( 14 ) + 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL + 25 * + CASE - 85 WHEN + 72 * + CAST( NULL AS SIGNED ) + - 95 THEN + 87 WHEN COALESCE ( 76, + SUM( - + 25 ), - + 98 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + 25 * + CASE - 85 WHEN + 72 * + CAST ( NULL AS INTEGER ) + - 95 THEN + 87 WHEN COALESCE ( 76, + SUM ( - + 25 ), - + 98 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 4 + - - 59 * - COUNT( ALL 61 )
----
-55

skipif mysql # not compatible
query I rowsort label-2854
SELECT 4 + - - 59 * - COUNT ( ALL 61 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - 61 * + 40 * + - COUNT( * ) col0
----
2440

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - 61 * + 40 * + - COUNT ( * ) col0
----
2440

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT ALL - 56 col2, 74 * + COUNT( * ) AS col0
----
-56
74

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL - 56 col2, 74 * + COUNT ( * ) AS col0
----
-56
74

query I rowsort
SELECT + 66 + + 86
----
152

query I rowsort
SELECT DISTINCT COALESCE ( 46, + + 6 ) + + 99
----
145

query II rowsort
SELECT ALL + 10 + ( + 89 ), - 64 - + 11 col0
----
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - NULLIF ( + 22, + - COUNT( ALL - - 6 ) + - - 67 + - 91 ) + 14 - - 53 col1
----
45

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - NULLIF ( + 22, + - COUNT ( ALL - - 6 ) + - - 67 + - 91 ) + 14 - - 53 col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + 66 + - 70 + + - COUNT( - 31 )
----
-5

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + 66 + - 70 + + - COUNT ( - 31 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + SUM( + 7 ) * + - ( COUNT( * ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2864
SELECT + SUM ( + 7 ) * + - ( COUNT ( * ) ) AS col1
----
-7

query I rowsort
SELECT + 78 + + + 77 * + 15
----
1233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT 30 * + 74 * + 38 + - CAST( + ( - ( - 40 ) ) AS SIGNED ) AS col2
----
84320

skipif mysql # not compatible
query I rowsort label-2866
SELECT 30 * + 74 * + 38 + - CAST ( + ( - ( - 40 ) ) AS INTEGER ) AS col2
----
84320

query I rowsort
SELECT + 91 + + 80
----
171

query II rowsort
SELECT ALL 44 - + 34 + + + 80, + 61 col0
----
90
61

query I rowsort
SELECT 9 + - + 17
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL CASE - COUNT( + 24 ) WHEN + - 44 THEN NULLIF ( 66, + 2 ) * - - 5 + + 66 * + 47 END * + 17 + - AVG ( + 35 ) - + + COUNT( * ) / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL CASE - COUNT ( + 24 ) WHEN + - 44 THEN NULLIF ( 66, + 2 ) * - - 5 + + 66 * + 47 END * + 17 + - AVG ( + 35 ) - + + COUNT ( * ) / 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT DISTINCT + CAST( - 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col0
----
-75

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

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

query I rowsort
SELECT ALL - 31 - 68 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT CASE - SUM( CAST( 14 AS SIGNED ) ) WHEN + 84 THEN NULL ELSE + 34 END DIV - + ( - SUM( ALL + 49 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT CASE - SUM ( CAST ( 14 AS INTEGER ) ) WHEN + 84 THEN NULL ELSE + 34 END / - + ( - SUM ( ALL + 49 ) ) col0
----
0

query I rowsort
SELECT 70 + + + 9 AS col2
----
79

query II rowsort
SELECT 78, 10 * 16 AS col2
----
78
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT 76 * - 61 * 38 * + - COUNT( * ) AS col1
----
176168

skipif mysql # not compatible
query I rowsort label-2877
SELECT 76 * - 61 * 38 * + - COUNT ( * ) AS col1
----
176168

query II rowsort
SELECT DISTINCT 37, + 33 * + 49 col0
----
37
1617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2879
SELECT 86 AS col2, - NULLIF ( - CAST( NULL AS SIGNED ), - ( - + 55 ) + - 77 )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT 86 AS col2, - NULLIF ( - CAST ( NULL AS INTEGER ), - ( - + 55 ) + - 77 )
----
86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT DISTINCT 97 AS col2, 12 + + COUNT( * ) AS col2
----
97
13

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT 97 AS col2, 12 + + COUNT ( * ) AS col2
----
97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT DISTINCT + COUNT( * ) * - 50 * - 25 AS col2
----
1250

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT + COUNT ( * ) * - 50 * - 25 AS col2
----
1250

query I rowsort
SELECT 79 * - + 68 AS col0
----
-5372

query I rowsort
SELECT ALL 93 * - + 2
----
-186

query I rowsort
SELECT 85 + 70 AS col2
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT CASE 80 WHEN - 39 THEN + + 24 WHEN 81 + + CAST( NULL AS SIGNED ) THEN NULL END * - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT CASE 80 WHEN - 39 THEN + + 24 WHEN 81 + + CAST ( NULL AS INTEGER ) THEN NULL END * - - 88
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT COUNT( * ) col2, COALESCE ( + 2, + 36 - 7, + - MIN( DISTINCT - 94 ) ) + + 29
----
1
31

skipif mysql # not compatible
query II rowsort label-2887
SELECT COUNT ( * ) col2, COALESCE ( + 2, + 36 - 7, + - MIN ( DISTINCT - 94 ) ) + + 29
----
1
31

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

skipif mysql # not compatible
query II rowsort label-2888
SELECT COUNT ( * ), - 78 AS col0
----
1
-78

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

skipif mysql # not compatible
query I rowsort label-2889
SELECT - CAST ( NULL AS REAL ) * - - 14 AS col0
----
NULL

query I rowsort
SELECT ALL 4 * + - 28 * 53 + + + 64 * - + 61 AS col2
----
-9840

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL 41 * MAX( DISTINCT + 41 ) + + + 58
----
1739

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 41 * MAX ( DISTINCT + 41 ) + + + 58
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL - 13 * + SUM( ALL + - 46 ) + 89 - + 39
----
648

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - 13 * + SUM ( ALL + - 46 ) + 89 - + 39
----
648

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

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

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

skipif mysql # not compatible
query I rowsort label-2894
SELECT - - CAST ( NULL AS INTEGER ) + + 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT - - 10 * + CAST( NULL AS SIGNED ) / + AVG ( - - CASE + + 82 WHEN - - 86 THEN NULL ELSE + 56 END ) + + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - - 10 * + CAST ( NULL AS INTEGER ) / + AVG ( - - CASE + + 82 WHEN - - 86 THEN NULL ELSE + 56 END ) + + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + + ( - + SUM( DISTINCT - 69 ) ) * 59 + 58 + - - ( + 34 ) + 76 + 96 AS col0
----
4335

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + + ( - + SUM ( DISTINCT - 69 ) ) * 59 + 58 + - - ( + 34 ) + 76 + 96 AS col0
----
4335

query I rowsort
SELECT CASE - 67 WHEN - 82 THEN 45 ELSE - - 50 + + + 75 END
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2898
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 59 AS col1, 39 + - 41 * + 54
----
NULL
-2175

skipif mysql # not compatible
query II rowsort label-2898
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 59 AS col1, 39 + - 41 * + 54
----
NULL
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - + COALESCE ( - 74, + + MAX( + - 88 ) ) - - + CASE WHEN NOT 41 IS NULL THEN NULL ELSE + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT - + COALESCE ( - 74, + + MAX ( + - 88 ) ) - - + CASE WHEN NOT 41 IS NULL THEN NULL ELSE + 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT DISTINCT COUNT( * ) AS col0, 20 * + 17
----
1
340

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT COUNT ( * ) AS col0, 20 * + 17
----
1
340

query I rowsort
SELECT DISTINCT 15 - 72 * + 26 * + 4 * + 88 + + COALESCE ( - 93, - 7 )
----
-659022

query II rowsort
SELECT ALL 70 AS col2, 82 * - 6
----
70
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL COALESCE ( - 14, + COUNT( ALL - ( - 17 ) ) + + 14, + 65 ) - 9 + + 26
----
3

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL COALESCE ( - 14, + COUNT ( ALL - ( - 17 ) ) + + 14, + 65 ) - 9 + + 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT + + COUNT( DISTINCT - 42 ) - 34 * - 39
----
1327

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + + COUNT ( DISTINCT - 42 ) - 34 * - 39
----
1327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT - + CAST( + - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-2905
SELECT - + CAST ( + - 43 AS INTEGER )
----
43

query I rowsort
SELECT + - 91 * - 7 * + 54 - - 1
----
34399

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - CASE 8 WHEN + 85 * 5 * 40 / - 80 THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT - CASE 8 WHEN + 85 * 5 * 40 / - 80 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT ALL + 69 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + 69 / - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 46 * - COUNT( * ) * - 64 AS col1
----
2944

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 46 * - COUNT ( * ) * - 64 AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + COUNT( * ) - + COUNT( DISTINCT COALESCE ( + ( - 98 ), + 38 + + 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT + COUNT ( * ) - + COUNT ( DISTINCT COALESCE ( + ( - 98 ), + 38 + + 98 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT + CAST( - ( ( + - 20 ) ) AS SIGNED ) DIV + 29 + - + SUM( ALL + CASE 78 WHEN + 24 THEN NULL ELSE 44 END ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2911
SELECT + CAST ( - ( ( + - 20 ) ) AS INTEGER ) / + 29 + - + SUM ( ALL + CASE 78 WHEN + 24 THEN NULL ELSE 44 END ) AS col1
----
-44

query I rowsort
SELECT DISTINCT 52 * - - 87 AS col1
----
4524

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

skipif mysql # not compatible
query I rowsort label-2913
SELECT - CAST ( + - 88 AS INTEGER ) AS col1
----
88

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

skipif mysql # not compatible
query I rowsort label-2914
SELECT + 69 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT ALL 0 DIV - 83 + 84
----
84

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL 0 / - 83 + 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT + COALESCE ( + 98, - 13 ) DIV - 17 + + 15 + - 43 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2916
SELECT + COALESCE ( + 98, - 13 ) / - 17 + + 15 + - 43 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + 21 + - COALESCE ( + + 50, - - SUM( ALL - 97 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 21 + - COALESCE ( + + 50, - - SUM ( ALL - 97 ) ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL 37 DIV + + ( + 27 ) + + - 61 * - 23
----
1404

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL 37 / + + ( + 27 ) + + - 61 * - 23
----
1404

query II rowsort
SELECT ( - 29 ) AS col2, 13 * 8 AS col2
----
-29
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + 90 * - + MIN( - 43 ) AS col2
----
3870

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + 90 * - + MIN ( - 43 ) AS col2
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - MAX( ALL 26 ) * 52 * - 83 + + COUNT( * ) AS col0
----
112217

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - MAX ( ALL 26 ) * 52 * - 83 + + COUNT ( * ) AS col0
----
112217

query I rowsort
SELECT ALL + - 66 * - + 30 + + - 71 + - NULLIF ( 21, - 56 * + 8 ) + 78 + - - 38 + - 48 AS col0
----
1956

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

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

query I rowsort
SELECT ALL + - ( - 74 ) * - 19
----
-1406

query I rowsort
SELECT + 38 * + - 73 * + 86 * + + 95 + - 49 AS col1
----
-22663629

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL COUNT( * ) * - 62 col2
----
-62

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL COUNT ( * ) * - 62 col2
----
-62

query I rowsort
SELECT DISTINCT + CASE - 93 WHEN + 51 THEN + 39 + - 26 * - + 4 ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT ALL - - 33 * - 85
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT CASE 54 WHEN 14 * MIN( - - 46 ) THEN NULL WHEN - 33 THEN - 4 * - 58 + - 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT CASE 54 WHEN 14 * MIN ( - - 46 ) THEN NULL WHEN - 33 THEN - 4 * - 58 + - 31 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 3 + - 87 + + 81 * + 44
----
3291

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + 75 * - + 67 + + 44 + COUNT( * )
----
-4980

skipif mysql # not compatible
query I rowsort label-2933
SELECT + 75 * - + 67 + + 44 + COUNT ( * )
----
-4980

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT - + 26 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT - + 26 / - - 51
----
0

query I rowsort
SELECT ALL - 15 * - 46 * - 33 col2
----
-22770

query I rowsort
SELECT - 62 + + 6
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - MIN( ALL - 74 ) * - 27
----
-1998

skipif mysql # not compatible
query I rowsort label-2937
SELECT - MIN ( ALL - 74 ) * - 27
----
-1998

query I rowsort
SELECT ALL + + 54 * + 51 + 37 AS col2
----
2791

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2939
SELECT - 76 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 76 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + CASE + + CASE - 14 WHEN - 14 THEN NULL ELSE + ( COUNT( * ) ) END WHEN - + 16 THEN NULL WHEN + 7 THEN NULL ELSE + 1 + + 81 END AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + CASE + + CASE - 14 WHEN - 14 THEN NULL ELSE + ( COUNT ( * ) ) END WHEN - + 16 THEN NULL WHEN + 7 THEN NULL ELSE + 1 + + 81 END AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2941
SELECT DISTINCT + CAST( + NULLIF ( - + 10, MIN( DISTINCT - 15 ) ) AS SIGNED ) * ( + + 58 ) DIV + MIN( ALL 26 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + CAST ( + NULLIF ( - + 10, MIN ( DISTINCT - 15 ) ) AS INTEGER ) * ( + + 58 ) / + MIN ( ALL 26 ) AS col2
----
-22

query I rowsort
SELECT ALL 99 + + 88 * + 54
----
4851

query I rowsort
SELECT - ( - + 69 ) * + - 14 AS col2
----
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT DISTINCT 50, 49 * - COUNT( * ) col1
----
50
-49

skipif mysql # not compatible
query II rowsort label-2944
SELECT DISTINCT 50, 49 * - COUNT ( * ) col1
----
50
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT 35 AS col1, 71 * - + ( + + COUNT( * ) ) + - COUNT( * ) + + ( - - 23 ) * MIN( + 31 ) AS col0
----
35
641

skipif mysql # not compatible
query II rowsort label-2945
SELECT 35 AS col1, 71 * - + ( + + COUNT ( * ) ) + - COUNT ( * ) + + ( - - 23 ) * MIN ( + 31 ) AS col0
----
35
641

query I rowsort
SELECT + 57 + + 32 AS col2
----
89

query I rowsort
SELECT ALL 63 + - 33
----
30

query II rowsort
SELECT - 55, - 34 AS col2
----
-55
-34

query I rowsort
SELECT ALL 39 + - 85
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL - 30 + + - 49 + + 34 / + + 53 + + CAST( NULL AS SIGNED ) - - + 89 * - - 56 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - 30 + + - 49 + + 34 / + + 53 + + CAST ( NULL AS INTEGER ) - - + 89 * - - 56 + + 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2951
SELECT DISTINCT - 21 DIV + COUNT( + 86 ) AS col1, ( + CASE 56 WHEN - 64 * 57 + + 29 + - 97 THEN NULL ELSE - - ( + 94 ) + 23 END ) * - + ( COUNT( * ) ) * - 15 + + + 22 + 61 AS col1
----
-21
1838

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - 21 / + COUNT ( + 86 ) AS col1, ( + CASE 56 WHEN - 64 * 57 + + 29 + - 97 THEN NULL ELSE - - ( + 94 ) + 23 END ) * - + ( COUNT ( * ) ) * - 15 + + + 22 + 61 AS col1
----
-21
1838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL NULLIF ( - + 62, - CAST( - 96 AS SIGNED ) ) + 49 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL NULLIF ( - + 62, - CAST ( - 96 AS INTEGER ) ) + 49 AS col2
----
-13

query II rowsort
SELECT - 66, - 74 * - 77 AS col1
----
-66
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 3 + - SUM( DISTINCT - 59 )
----
62

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 3 + - SUM ( DISTINCT - 59 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT MIN( + 87 ) + 13 + 68 * + - 30 * 1 + - - 34 AS col2
----
-1906

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT MIN ( + 87 ) + 13 + 68 * + - 30 * 1 + - - 34 AS col2
----
-1906

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( + NULLIF ( - - 99, + 46 ) ) * - 16 - + SUM( 76 )
----
-92

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( + NULLIF ( - - 99, + 46 ) ) * - 16 - + SUM ( 76 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL MAX( + 97 ) * - + 30 + - CAST( - - 65 AS SIGNED ) col0
----
-2975

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL MAX ( + 97 ) * - + 30 + - CAST ( - - 65 AS INTEGER ) col0
----
-2975

query II rowsort
SELECT + 28 AS col2, + 55
----
28
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT - ( + 19 ) * - ( + + 38 ) + + ( 93 ) - 89 DIV - 81 DIV - COUNT( * )
----
814

skipif mysql # not compatible
query I rowsort label-2959
SELECT - ( + 19 ) * - ( + + 38 ) + + ( 93 ) - 89 / - 81 / - COUNT ( * )
----
814

query II rowsort
SELECT + - 5 AS col1, 1
----
-5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT DISTINCT + COALESCE ( 54, 34 ) - - - 96 * - + 73 + COUNT( * ) AS col2, MIN( - - 88 )
----
7063
88

skipif mysql # not compatible
query II rowsort label-2961
SELECT DISTINCT + COALESCE ( 54, 34 ) - - - 96 * - + 73 + COUNT ( * ) AS col2, MIN ( - - 88 )
----
7063
88

query I rowsort
SELECT DISTINCT - + 14 col1
----
-14

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

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

query I rowsort
SELECT ALL - ( - - 67 ) col0
----
-67

query I rowsort
SELECT DISTINCT 36 - - 30 * + - 4
----
-84

query I rowsort
SELECT ALL 54 * + 95
----
5130

query I rowsort
SELECT - 94 + 64 AS col0
----
-30

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

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

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

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

query I rowsort
SELECT + + NULLIF ( 99, 91 * - - 34 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT - 21 / - + ( CASE 55 WHEN - 18 / + 90 THEN + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT - 21 / - + ( CASE 55 WHEN - 18 / + 90 THEN + COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT 2 + 61 AS col1
----
63

query I rowsort
SELECT ALL - + ( - 64 ) col2
----
64

query II rowsort
SELECT - 78, + 6 col2
----
-78
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT ALL - 19 DIV + 15
----
-1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - 19 / + 15
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT + 87 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 87 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL 17 + ( + CASE - + 49 WHEN 10 * 64 + + 71 + - 32 * 57 / - - 82 + - + COUNT( * ) THEN NULL ELSE - 10 END ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL 17 + ( + CASE - + 49 WHEN 10 * 64 + + 71 + - 32 * 57 / - - 82 + - + COUNT ( * ) THEN NULL ELSE - 10 END ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 76 + + - COUNT( * ) * - - 2
----
74

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 76 + + - COUNT ( * ) * - - 2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT SUM( ALL + 24 ) DIV + + NULLIF ( + - MIN( DISTINCT - - 81 ), 61 * + COUNT( * ) - ( - COUNT( * ) ) ) + + 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-2979
SELECT SUM ( ALL + 24 ) / + + NULLIF ( + - MIN ( DISTINCT - - 81 ), 61 * + COUNT ( * ) - ( - COUNT ( * ) ) ) + + 54 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT 95 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-2980
SELECT 95 / - 70
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT 66 - + ( + + MAX( - 60 ) ) * - COUNT( * ) + + - ( + ( - - ( - - COUNT( * ) ) ) ) AS col2, 46 * - 44
----
5
-2024

skipif mysql # not compatible
query II rowsort label-2981
SELECT 66 - + ( + + MAX ( - 60 ) ) * - COUNT ( * ) + + - ( + ( - - ( - - COUNT ( * ) ) ) ) AS col2, 46 * - 44
----
5
-2024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2983
SELECT 75 - - 37 + + COUNT( * ) DIV - ( + - CAST( 69 AS SIGNED ) ) + 89
----
201

skipif mysql # not compatible
query I rowsort label-2983
SELECT 75 - - 37 + + COUNT ( * ) / - ( + - CAST ( 69 AS INTEGER ) ) + 89
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT 79 * - MIN( DISTINCT - 57 )
----
4503

skipif mysql # not compatible
query I rowsort label-2984
SELECT 79 * - MIN ( DISTINCT - 57 )
----
4503

query I rowsort
SELECT DISTINCT - NULLIF ( + 87, - 49 ) + + 35 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL - 7 * - NULLIF ( + 80, ( + MIN( DISTINCT 8 ) ) ) AS col2
----
560

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - 7 * - NULLIF ( + 80, ( + MIN ( DISTINCT 8 ) ) ) AS col2
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL - 35 + - NULLIF ( 14, - + CAST( NULL AS SIGNED ) / + 11 ) * + 1 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 35 + - NULLIF ( 14, - + CAST ( NULL AS INTEGER ) / + 11 ) * + 1 AS col1
----
-49

query I rowsort
SELECT DISTINCT - 17 + 30 - 31 - + 46 + - 30
----
-94

query I rowsort
SELECT 84 + - 3 + 23 * 78
----
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT 91 * 0 * - - 11 * + - 95 * 16 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT 91 * 0 * - - 11 * + - 95 * 16 / + - 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT 94 + - 50, - COUNT( * ) col2
----
44
-1

skipif mysql # not compatible
query II rowsort label-2991
SELECT 94 + - 50, - COUNT ( * ) col2
----
44
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT DISTINCT SUM( ALL 77 ), + 98 * - 49 col0
----
77
-4802

skipif mysql # not compatible
query II rowsort label-2992
SELECT DISTINCT SUM ( ALL 77 ), + 98 * - 49 col0
----
77
-4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2993
SELECT ALL - ( - COUNT( * ) ), + 29 * - + COUNT( 39 ) * CAST( NULL AS SIGNED ) + 81 + - - 93 * - - 40 * - 59 + - - 63 * + 62 * MIN( + + 49 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT ALL - ( - COUNT ( * ) ), + 29 * - + COUNT ( 39 ) * CAST ( NULL AS INTEGER ) + 81 + - - 93 * - - 40 * - 59 + - - 63 * + 62 * MIN ( + + 49 ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + COALESCE ( - + MAX( DISTINCT - - 20 ), - 13 * - 69, - 24 * + + COUNT( * ) * 33 ) * 11 * 96 AS col2
----
-21120

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + COALESCE ( - + MAX ( DISTINCT - - 20 ), - 13 * - 69, - 24 * + + COUNT ( * ) * 33 ) * 11 * 96 AS col2
----
-21120

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL - 30 DIV + 53 - - 5
----
5

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - 30 / + 53 - - 5
----
5

query I rowsort
SELECT 53 * - 7 * + 3 AS col0
----
-1113

query I rowsort
SELECT DISTINCT - - 25 * - 43 AS col2
----
-1075

query I rowsort
SELECT DISTINCT - NULLIF ( + 43, - - 74 + 51 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT 22 * + COUNT( * ) + + 16
----
38

skipif mysql # not compatible
query I rowsort label-2999
SELECT 22 * + COUNT ( * ) + + 16
----
38

query II rowsort
SELECT DISTINCT - + 20 * 10, ( + 68 ) AS col1
----
-200
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT 2 * - 55 + + - 22 + + 15 * - COUNT( * ) * - 30
----
318

skipif mysql # not compatible
query I rowsort label-3001
SELECT 2 * - 55 + + - 22 + + 15 * - COUNT ( * ) * - 30
----
318

query II rowsort
SELECT ALL 28 + - - 18 + 49 * - 91, 23 AS col2
----
-4413
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL 11 + COUNT( 23 )
----
12

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL 11 + COUNT ( 23 )
----
12

query I rowsort
SELECT DISTINCT - 21 + - - 79 + - 95
----
-37

query I rowsort
SELECT 2 * - 93 + ( - AVG ( + + CASE 5 WHEN + - 26 THEN NULL WHEN - - 79 THEN - + 64 END ) ) + - - 47 AS col1
----
NULL

query II rowsort
SELECT ALL - 24 AS col2, - 25 AS col0
----
-24
-25

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

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

query I rowsort
SELECT ALL 64 + + 72 - - 23 * 20 AS col1
----
596

query II rowsort
SELECT DISTINCT 43, - 46 * CASE + - 75 WHEN 15 THEN - + 50 + - 62 WHEN 76 / + - 98 / + AVG ( 65 ) - + + 28 THEN + 35 * + - 82 + + AVG ( ALL - + ( + - 87 ) ) END AS col2
----
43
NULL

query I rowsort
SELECT DISTINCT 93 * + 97 AS col2
----
9021

query I rowsort
SELECT ALL 28 + + 45
----
73

query I rowsort
SELECT DISTINCT 87 + + + 79 * 63
----
5064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3013
SELECT DISTINCT + SUM( 87 ) DIV - 81 AS col0, - 14 - COUNT( * )
----
-1
-15

skipif mysql # not compatible
query II rowsort label-3013
SELECT DISTINCT + SUM ( 87 ) / - 81 AS col0, - 14 - COUNT ( * )
----
-1
-15

query I rowsort
SELECT ALL - 3 - + ( 24 )
----
-27

query I rowsort
SELECT - 16 + + 98
----
82

query I rowsort
SELECT - 74 * - 41 AS col1
----
3034

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

query I rowsort
SELECT - 92 + 85 AS col1
----
-7

query I rowsort
SELECT - COALESCE ( - 45, + 99 )
----
45

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

skipif mysql # not compatible
query I rowsort label-3020
SELECT - 68 + + COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT + 38 * + 55 * - 12
----
-25080

query I rowsort
SELECT - 44 + - + 18 * - - 78 * + 6 AS col1
----
-8468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT - 86 - - 63 + - - COUNT( * ) + - 82 col1
----
-104

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - 86 - - 63 + - - COUNT ( * ) + - 82 col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3025
SELECT ALL + NULLIF ( - 88, + 24 + + MAX( CASE + 42 WHEN 33 THEN NULL ELSE 94 END ) + + 31 * - SUM( DISTINCT + ( + 72 ) ) - + - COUNT( * ) + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + 45 ) * + - 0 * + + 6 DIV + 67 + 88
----
88

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + NULLIF ( - 88, + 24 + + MAX ( CASE + 42 WHEN 33 THEN NULL ELSE 94 END ) + + 31 * - SUM ( DISTINCT + ( + 72 ) ) - + - COUNT ( * ) + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 45 ) * + - 0 * + + 6 / + 67 + 88
----
88

query II rowsort
SELECT ALL - 29 * ( 23 ) AS col2, + 35 * - 12 AS col2
----
-667
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + MIN( 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + MIN ( 5 ) AS col0
----
5

query I rowsort
SELECT DISTINCT - + 72 * + 96
----
-6912

query II rowsort
SELECT DISTINCT + + 32 AS col1, + 69 * + 92 AS col2
----
32
6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT + - NULLIF ( - - 7, - AVG ( ALL 88 ) / - 6 * - CASE + + 69 WHEN 72 THEN 6 END / - MIN( DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - NULLIF ( - - 7, - AVG ( ALL 88 ) / - 6 * - CASE + + 69 WHEN 72 THEN 6 END / - MIN ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
-7

query I rowsort
SELECT ALL + 31 * + + 51 + + 15 * + + 94 + 88 AS col0
----
3079

query I rowsort
SELECT - - 38 - + 23 * - + 1 + 15
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - + ( + COUNT( DISTINCT - - 15 ) ) * 6 + + + 9
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - + ( + COUNT ( DISTINCT - - 15 ) ) * 6 + + + 9
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT + - 33 * + COALESCE ( - ( - 66 ), - COUNT( * ) + - - COUNT( * ) - - COUNT( * ) DIV 52 + 31 * 19 * 24 * - - 63 ) - - + COUNT( * ) + 30
----
-2147

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + - 33 * + COALESCE ( - ( - 66 ), - COUNT ( * ) + - - COUNT ( * ) - - COUNT ( * ) / 52 + 31 * 19 * 24 * - - 63 ) - - + COUNT ( * ) + 30
----
-2147

query I rowsort
SELECT ALL 73 * - 59
----
-4307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3036
SELECT - ( + 25 ) DIV + 46 AS col1, 38 * - 41 * MAX( + 41 ) - + 48 + CAST( NULL AS SIGNED ) + + + 43
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT - ( + 25 ) / + 46 AS col1, 38 * - 41 * MAX ( + 41 ) - + 48 + CAST ( NULL AS INTEGER ) + + + 43
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL - 37 * CAST( AVG ( ALL 36 ) AS SIGNED ) + 37 + + 34 * + SUM( ALL + - 9 ) - 63
----
-1664

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - 37 * CAST ( AVG ( ALL 36 ) AS INTEGER ) + 37 + + 34 * + SUM ( ALL + - 9 ) - 63
----
-1664

query II rowsort
SELECT DISTINCT + 80 * 46 + 82 AS col2, 43
----
3762
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT + 25 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + 25 / 51 AS col1
----
0

query I rowsort
SELECT ALL + 92 * - - 27 AS col2
----
2484

query II rowsort
SELECT - COALESCE ( + - 73, - 0 + + - 45, 33 ) AS col0, 53 AS col0
----
73
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST( NULL AS SIGNED ) AS col2, 49 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3042
SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX ( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST ( NULL AS INTEGER ) AS col2, 49 AS col2
----
NULL
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3043
SELECT CASE + 6 WHEN - 15 THEN + + 58 + - CAST( NULL AS SIGNED ) / - + 85 WHEN AVG ( ALL - + 94 ) + + CASE 58 WHEN 9 * + 22 + 45 + 10 * COALESCE ( - - 84, + + 67 ) + + 22 + + 67 * + 30 / 32 + 21 THEN - + 32 + 80 + ( - MAX( - + 72 ) ) * - AVG ( DISTINCT COALESCE ( - + 98, - 40 ) ) / - + COUNT( * ) + 14 + - COALESCE ( 26, - 15 * COUNT( * ) + - - COUNT( * ) - 22 + + 16 ) ELSE NULL END + + 24 THEN NULL END AS col2, + MAX( DISTINCT + - 78 ) - - + 79 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3043
SELECT CASE + 6 WHEN - 15 THEN + + 58 + - CAST ( NULL AS INTEGER ) / - + 85 WHEN AVG ( ALL - + 94 ) + + CASE 58 WHEN 9 * + 22 + 45 + 10 * COALESCE ( - - 84, + + 67 ) + + 22 + + 67 * + 30 / 32 + 21 THEN - + 32 + 80 + ( - MAX ( - + 72 ) ) * - AVG ( DISTINCT COALESCE ( - + 98, - 40 ) ) / - + COUNT ( * ) + 14 + - COALESCE ( 26, - 15 * COUNT ( * ) + - - COUNT ( * ) - 22 + + 16 ) ELSE NULL END + + 24 THEN NULL END AS col2, + MAX ( DISTINCT + - 78 ) - - + 79 AS col1
----
NULL
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT + COUNT( * ) + + 7 + - ( 39 ) * + ( + 25 ) + - 5 DIV 46 + - 3 DIV 49 AS col0
----
-967

skipif mysql # not compatible
query I rowsort label-3045
SELECT + COUNT ( * ) + + 7 + - ( 39 ) * + ( + 25 ) + - 5 / 46 + - 3 / 49 AS col0
----
-967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - 43 * + + MIN( - + CAST( NULL AS SIGNED ) ) * CAST( - 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - 43 * + + MIN ( - + CAST ( NULL AS INTEGER ) ) * CAST ( - 93 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COUNT( ALL + 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( ALL + 64 ) AS col2
----
1

query I rowsort
SELECT + 16 * + 1 * - 60
----
-960

query I rowsort
SELECT - ( - 52 ) AS col1
----
52

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

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

query I rowsort
SELECT - CASE WHEN + 85 IS NOT NULL THEN NULL ELSE - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT SUM( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3052
SELECT SUM ( 39 )
----
39

query I rowsort
SELECT + 80 - - 8 AS col1
----
88

query II rowsort
SELECT 7, + 36 col0
----
7
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL COUNT( * ) * + - 88 * CAST( + 93 AS SIGNED ) col0
----
-8184

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL COUNT ( * ) * + - 88 * CAST ( + 93 AS INTEGER ) col0
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL COUNT( * ) * - 13 * - + 98
----
1274

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL COUNT ( * ) * - 13 * - + 98
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL COALESCE ( COUNT( * ), 92 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL COALESCE ( COUNT ( * ), 92 ) col1
----
1

query I rowsort
SELECT ALL NULLIF ( 7, + 42 + + 26 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT ALL + + 99 DIV + COUNT( DISTINCT - - 2 )
----
99

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + + 99 / + COUNT ( DISTINCT - - 2 )
----
99

query I rowsort
SELECT + - 33 + 54 AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-3061
SELECT - - COUNT ( * ) - COUNT ( * )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + + ( - COUNT( * ) ) + + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3063
SELECT + + ( - COUNT ( * ) ) + + 0 AS col0
----
-1

query I rowsort
SELECT - + 53 * 52
----
-2756

query I rowsort
SELECT ALL + 48 + NULLIF ( - 31, + 72 + - 61 )
----
17

query I rowsort
SELECT NULLIF ( - + ( 72 ), 4 + 88 )
----
-72

query II rowsort
SELECT + 23 AS col2, 61 AS col1
----
23
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL + - 95 * 89 + + - 78 - - COUNT( * ) * - 57
----
-8590

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + - 95 * 89 + + - 78 - - COUNT ( * ) * - 57
----
-8590

query I rowsort
SELECT - 18 + + 57 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT ALL - + 90 DIV + - 14 + + - 61 + - 6
----
-61

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - + 90 / + - 14 + + - 61 + - 6
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT + - 45 * - 6 * + MAX( - + ( + 49 ) ) col1
----
-13230

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + - 45 * - 6 * + MAX ( - + ( + 49 ) ) col1
----
-13230

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL - 47 DIV - 78 + 87 * + - 24 + + COUNT( * )
----
-2087

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - 47 / - 78 + 87 * + - 24 + + COUNT ( * )
----
-2087

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - CASE COALESCE ( 27, - + 15 * - COUNT( * ) ) WHEN + COUNT( * ) * + 31 THEN + - 25 * + - ( - 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT - CASE COALESCE ( 27, - + 15 * - COUNT ( * ) ) WHEN + COUNT ( * ) * + 31 THEN + - 25 * + - ( - 50 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3075
SELECT ALL + 96 * 47 DIV - 48 + + - COUNT( + + 81 ) + - 78 - - 92 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + 96 * 47 / - 48 + + - COUNT ( + + 81 ) + - 78 - - 92 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL + 83 DIV + + 18 + 96 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + 83 / + + 18 + 96 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + + NULLIF ( - 69, MAX( 83 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + + NULLIF ( - 69, MAX ( 83 ) ) AS col2
----
-69

query I rowsort
SELECT DISTINCT + + 53 * 58 * - + ( - 73 )
----
224402

query I rowsort
SELECT DISTINCT + 30 + 0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - + COUNT( * ) + 45 * - 27 AS col0
----
-1216

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - + COUNT ( * ) + 45 * - 27 AS col0
----
-1216

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

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

query I rowsort
SELECT 76 + 84
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 79 * MIN( ALL + 10 )
----
790

skipif mysql # not compatible
query I rowsort label-3083
SELECT 79 * MIN ( ALL + 10 )
----
790

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT DISTINCT - COUNT( - - 92 ), - 30 AS col1
----
-1
-30

skipif mysql # not compatible
query II rowsort label-3084
SELECT DISTINCT - COUNT ( - - 92 ), - 30 AS col1
----
-1
-30

query II rowsort
SELECT ALL - 48 - 49 AS col0, 89 AS col2
----
-97
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT CASE 30 WHEN 85 * 8 * COALESCE ( 33, + 72 + - CAST( - + 36 AS SIGNED ) ) * + 14 + + + 38 + ( + COALESCE ( - ( COUNT( * ) ), + 8 + + 39 * - 45 + + + 73, + - COUNT( * ) * + 71 ) ) - - 85 THEN - COUNT( * ) + + + 67 END * + 96 + - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT CASE 30 WHEN 85 * 8 * COALESCE ( 33, + 72 + - CAST ( - + 36 AS INTEGER ) ) * + 14 + + + 38 + ( + COALESCE ( - ( COUNT ( * ) ), + 8 + + 39 * - 45 + + + 73, + - COUNT ( * ) * + 71 ) ) - - 85 THEN - COUNT ( * ) + + + 67 END * + 96 + - - 59 col2
----
NULL

query I rowsort
SELECT ALL ( 10 ) * + 41
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT COUNT( * ) * - 91 * 0 * + - 72 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT COUNT ( * ) * - 91 * 0 * + - 72 * - 28
----
0

query I rowsort
SELECT ALL + 76 * + 21
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT NULLIF ( - COUNT( * ), + - 56 + + COUNT( * ) ) - NULLIF ( - 83, + - 42 )
----
82

skipif mysql # not compatible
query I rowsort label-3090
SELECT NULLIF ( - COUNT ( * ), + - 56 + + COUNT ( * ) ) - NULLIF ( - 83, + - 42 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT DISTINCT + 58 * 7 * + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + 58 * 7 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-406

query I rowsort
SELECT 94 * - + 37
----
-3478

query II rowsort
SELECT 30 * + - 5 AS col2, 91 col1
----
-150
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT 3 * 40 + - ( COUNT( * ) )
----
119

skipif mysql # not compatible
query I rowsort label-3094
SELECT 3 * 40 + - ( COUNT ( * ) )
----
119

query I rowsort
SELECT 4 * + NULLIF ( + 91, - + 22 ) AS col0
----
364

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

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

query I rowsort
SELECT - 55 * + - 61 - + 71 AS col1
----
3284

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL 27 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL 27 / 82 AS col0
----
0

query I rowsort
SELECT 45 + - 43
----
2

query I rowsort
SELECT ALL 92 * + - 71 AS col2
----
-6532

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT 97 + + + 56 AS col1, + 45 * ( COUNT( * ) ) - - 88
----
153
133

skipif mysql # not compatible
query II rowsort label-3101
SELECT 97 + + + 56 AS col1, + 45 * ( COUNT ( * ) ) - - 88
----
153
133

query I rowsort
SELECT - 88 * + + 61
----
-5368

query I rowsort
SELECT ALL 32 + - 7 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT MIN( - 2 ) * + 57 - - - COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT MIN ( - 2 ) * + 57 - - - COUNT ( * ) AS col1
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT + 15 DIV ( 57 ) + 46 col2
----
46

skipif mysql # not compatible
query I rowsort label-3105
SELECT + 15 / ( 57 ) + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - MIN( 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3106
SELECT - MIN ( 65 ) AS col0
----
-65

query II rowsort
SELECT + CASE 28 WHEN - + CASE 7 WHEN - NULLIF ( - 55, + - 73 - - 46 ) THEN - 45 END THEN - 95 * + 46 * 24 END AS col2, 20 AS col2
----
NULL
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT ALL + 67 + COUNT( * ) + - 80 + 16 - COUNT( * ) - + 26 DIV - 95 + NULLIF ( - + 27, 50 + - + 9 - 19 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + 67 + COUNT ( * ) + - 80 + 16 - COUNT ( * ) - + 26 / - 95 + NULLIF ( - + 27, 50 + - + 9 - 19 ) AS col1
----
-24

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

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL ( - + COUNT ( * ) ) + + + ( + 96 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL 35 - + COALESCE ( - MAX( - 4 ), + 77 * 60, - 35 ) - + 14 + + - CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 35 - + COALESCE ( - MAX ( - 4 ), + 77 * 60, - 35 ) - + 14 + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3111
SELECT DISTINCT - 42 * + 73 AS col2, - 3 * - 20 DIV 92 + 97 * - 0
----
-3066
0

skipif mysql # not compatible
query II rowsort label-3111
SELECT DISTINCT - 42 * + 73 AS col2, - 3 * - 20 / 92 + 97 * - 0
----
-3066
0

query I rowsort
SELECT ALL - - 88 * 47 + + 16 AS col2
----
4152

query I rowsort
SELECT DISTINCT + 51 * + 82 - + - 19 AS col2
----
4201

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT - COUNT( * ) - - 80 + 30 - 90 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - COUNT ( * ) - - 80 + 30 - 90 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3115
SELECT 3 AS col1, + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3115
SELECT 3 AS col1, + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
3
NULL

query I rowsort
SELECT DISTINCT + 71 * - 56 AS col1
----
-3976

query I rowsort
SELECT ALL - ( - 90 ) - - 67 + + - 9 AS col0
----
148

query I rowsort
SELECT 39 * 55
----
2145

query II rowsort
SELECT ALL - 75 AS col0, - 95
----
-75
-95

query I rowsort
SELECT 13 + 23 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL - CASE ( + + 6 ) WHEN - COUNT( * ) THEN NULL WHEN + 28 / + - CAST( - 66 AS SIGNED ) / 34 + - COUNT( ALL - - 26 ) + + 37 THEN - 73 + + - 73 ELSE 16 * + + 52 END col1
----
-832

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - CASE ( + + 6 ) WHEN - COUNT ( * ) THEN NULL WHEN + 28 / + - CAST ( - 66 AS INTEGER ) / 34 + - COUNT ( ALL - - 26 ) + + 37 THEN - 73 + + - 73 ELSE 16 * + + 52 END col1
----
-832

query II rowsort
SELECT 19 AS col1, 38
----
19
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT - MIN( - - 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - MIN ( - - 46 ) AS col0
----
-46

query I rowsort
SELECT ALL - 9 * 64
----
-576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT - COUNT( * ) + + 40 * + + 83 AS col2
----
3319

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - COUNT ( * ) + + 40 * + + 83 AS col2
----
3319

query I rowsort
SELECT 54 * - - 39
----
2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3128
SELECT ALL - CAST( NULL AS SIGNED ) + + + ( 95 ) * - 92 AS col1, - COUNT( ALL ( 94 ) ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - CAST ( NULL AS INTEGER ) + + + ( 95 ) * - 92 AS col1, - COUNT ( ALL ( 94 ) ) AS col2
----
NULL
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3129
SELECT - - 22 AS col2, + 11 DIV + - 77
----
22
0

skipif mysql # not compatible
query II rowsort label-3129
SELECT - - 22 AS col2, + 11 / + - 77
----
22
0

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT 53 - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 31 + - 87 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT + 86 + 50 + 55 DIV - 73 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-3132
SELECT + 86 + 50 + 55 / - 73 AS col2
----
136

query II rowsort
SELECT + 74 AS col1, + 60 + + 98 * + 18 * - + ( - 52 )
----
74
91788

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - COUNT( DISTINCT - - 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - COUNT ( DISTINCT - - 26 ) AS col1
----
-1

query I rowsort
SELECT + 36 - - 30
----
66

query I rowsort
SELECT ALL 5 - - - 97 col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + + NULLIF ( + - ( + COUNT( * ) ), 10 ) * - 42 + - 77 - + 15
----
-50

skipif mysql # not compatible
query I rowsort label-3137
SELECT + + NULLIF ( + - ( + COUNT ( * ) ), 10 ) * - 42 + - 77 - + 15
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + + 74 + + COUNT( * ) * + 38 * ( 69 ) + - + 74 col2
----
2622

skipif mysql # not compatible
query I rowsort label-3139
SELECT + + 74 + + COUNT ( * ) * + 38 * ( 69 ) + - + 74 col2
----
2622

query II rowsort
SELECT ALL + 27 AS col1, NULLIF ( 40, NULLIF ( + + 91, 20 / - 76 ) )
----
27
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + 54 * + COUNT( * ) * 80 * - 33 - + 72
----
-142632

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + 54 * + COUNT ( * ) * 80 * - 33 - + 72
----
-142632

query I rowsort
SELECT + 93 * + 63 * - - 60
----
351540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - 28 + - 87 + SUM( 61 ) * + 60 AS col2
----
3545

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 28 + - 87 + SUM ( 61 ) * + 60 AS col2
----
3545

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT DISTINCT 63 DIV 5 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 63 / 5 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT + 10 DIV - 74 * - 79
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 10 / - 74 * - 79
----
0

query I rowsort
SELECT ALL - 84 * ( - COALESCE ( 77, - + 80 ) ) + 56 AS col0
----
6524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST( + 73 AS SIGNED ) + + - 87 )
----
-22

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST ( + 73 AS INTEGER ) + + - 87 )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3149
SELECT ALL 40 * 72 DIV 73 DIV + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN( 26 ) AS col1, COUNT( * ) AS col1
----
-97916
1

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL 40 * 72 / 73 / + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN ( 26 ) AS col1, COUNT ( * ) AS col1
----
-97916
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - 3 + + COALESCE ( CASE + 34 WHEN - 80 DIV + - 25 THEN + + 93 + - + 15 END, - - 93 ) - - NULLIF ( - COALESCE ( - - COUNT( * ), - 92 ), - 68 ) DIV 63 * + + 35 * 76 * + + 28 + - + ( - - 9 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 3 + + COALESCE ( CASE + 34 WHEN - 80 / + - 25 THEN + + 93 + - + 15 END, - - 93 ) - - NULLIF ( - COALESCE ( - - COUNT ( * ), - 92 ), - 68 ) / 63 * + + 35 * 76 * + + 28 + - + ( - - 9 ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT DISTINCT - 68 * - + 87 + + 76 DIV + - 38 AS col0
----
5914

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - 68 * - + 87 + + 76 / + - 38 AS col0
----
5914

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + CASE + COALESCE ( - + 53, + 91, - - 42 ) WHEN - 94 + + + COUNT( * ) + + 21 THEN - ( + - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + CASE + COALESCE ( - + 53, + 91, - - 42 ) WHEN - 94 + + + COUNT ( * ) + + 21 THEN - ( + - COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT - - COUNT( DISTINCT - ( + + 53 ) ) + - - 95 DIV - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3153
SELECT - - COUNT ( DISTINCT - ( + + 53 ) ) + - - 95 / - - COUNT ( * )
----
96

query I rowsort
SELECT - 70 + + - 85
----
-155

query I rowsort
SELECT ALL - 69 + - 15 - 19 * + 15 * + + 39 col2
----
-11199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3156
SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST( 4 AS SIGNED ) AS col0
----
-12
3840

skipif mysql # not compatible
query II rowsort label-3156
SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST ( 4 AS INTEGER ) AS col0
----
-12
3840

onlyif mysql # DIV for integer division: 
query II rowsort label-3157
SELECT ALL - + 21 DIV + - 54 AS col0, 24 + + 70
----
0
94

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL - + 21 / + - 54 AS col0, 24 + + 70
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT NULLIF ( 97, + + 62 * + 5 + - COUNT( * ) + - 76 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3158
SELECT NULLIF ( 97, + + 62 * + 5 + - COUNT ( * ) + - 76 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT - - 14 + + 34 + + ( 89 ) - 49 * - + ( - CAST( - + 65 AS SIGNED ) )
----
3322

skipif mysql # not compatible
query I rowsort label-3159
SELECT - - 14 + + 34 + + ( 89 ) - 49 * - + ( - CAST ( - + 65 AS INTEGER ) )
----
3322

query I rowsort
SELECT ALL - ( 13 ) * - 72 AS col0
----
936

query I rowsort
SELECT - + 39 + + ( + 21 ) + - CASE - 3 WHEN 64 / - 35 + + - COALESCE ( + 37, - + 21 ) * + 83 THEN NULL WHEN + 75 THEN 19 * - + 84 END * - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3162
SELECT ALL - - COUNT( * ) - + 0 AS col2, 69 DIV - 58 + 33 * - 66
----
1
-2179

skipif mysql # not compatible
query II rowsort label-3162
SELECT ALL - - COUNT ( * ) - + 0 AS col2, 69 / - 58 + 33 * - 66
----
1
-2179

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + - 64 + SUM( - 6 ) + + + 1
----
-69

skipif mysql # not compatible
query I rowsort label-3163
SELECT + - 64 + SUM ( - 6 ) + + + 1
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL ( - 86 ) DIV + - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL ( - 86 ) / + - 14 AS col0
----
6

query I rowsort
SELECT - ( - NULLIF ( ( + 57 ), + NULLIF ( - 17, - - 68 ) + 31 ) ) - 22 + + ( 71 ) + - + 54 * + + NULLIF ( - 37, 83 / + + 58 * 19 + - + 69 ) AS col2
----
2104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL CAST( - CASE 53 WHEN - 28 * - + 67 * + COUNT( * ) * - - 32 THEN 93 ELSE - CAST( NULL AS SIGNED ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL CAST ( - CASE 53 WHEN - 28 * - + 67 * + COUNT ( * ) * - - 32 THEN 93 ELSE - CAST ( NULL AS INTEGER ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT + 70 + - 58 DIV + 67 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 70 + - 58 / + 67 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL - 34 DIV 29 * + 53 + + 3 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 34 / 29 * + 53 + + 3 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT + 16 - + 54 DIV - 8
----
22

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 16 - + 54 / - 8
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL - 54 * - 43 / + NULLIF ( - - COUNT( * ), + - 33 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - 54 * - 43 / + NULLIF ( - - COUNT ( * ), + - 33 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 34 * - 83 AS col0
----
-2822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT CAST( COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3173
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT + COUNT( * ) - + - COUNT( * ) - 87 AS col2, 74 + + 15 + 35 AS col0
----
-85
124

skipif mysql # not compatible
query II rowsort label-3174
SELECT + COUNT ( * ) - + - COUNT ( * ) - 87 AS col2, 74 + + 15 + 35 AS col0
----
-85
124

query I rowsort
SELECT + 68 * - 35
----
-2380

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT + 44 * - - 43 * 90, ( + 25 ) * - COUNT( * ) AS col0
----
170280
-25

skipif mysql # not compatible
query II rowsort label-3176
SELECT + 44 * - - 43 * 90, ( + 25 ) * - COUNT ( * ) AS col0
----
170280
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT + COUNT( * ) + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-3177
SELECT + COUNT ( * ) + - 40
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL ( 95 ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL ( 95 ) / - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT + ( + CAST( NULLIF ( 82, 85 + + MIN( ALL 18 + + 34 * 34 ) ) AS SIGNED ) ) * - 70
----
-5740

skipif mysql # not compatible
query I rowsort label-3180
SELECT + ( + CAST ( NULLIF ( 82, 85 + + MIN ( ALL 18 + + 34 * 34 ) ) AS INTEGER ) ) * - 70
----
-5740

query I rowsort
SELECT ALL 54 * + ( 1 )
----
54

query I rowsort
SELECT 69 - + ( + 22 + + 11 ) * - 45
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT CASE + AVG ( ALL ( - 72 ) ) WHEN - COUNT( * ) / 8 THEN NULL WHEN 17 + 9 THEN - 89 WHEN 56 + + COUNT( * ) * 52 THEN NULL END + CASE 64 WHEN + ( + 13 ) * 44 THEN + 35 ELSE 15 END * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT CASE + AVG ( ALL ( - 72 ) ) WHEN - COUNT ( * ) / 8 THEN NULL WHEN 17 + 9 THEN - 89 WHEN 56 + + COUNT ( * ) * 52 THEN NULL END + CASE 64 WHEN + ( + 13 ) * 44 THEN + 35 ELSE 15 END * 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT 88 + CAST( + 18 + 94 * 27 AS SIGNED )
----
2644

skipif mysql # not compatible
query I rowsort label-3184
SELECT 88 + CAST ( + 18 + 94 * 27 AS INTEGER )
----
2644

query I rowsort
SELECT ALL + NULLIF ( 32, ( - 29 ) ) * + 57 AS col0
----
1824

query I rowsort
SELECT 98 * + 23 AS col1
----
2254

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

query I rowsort
SELECT 78 + + 36 * 66
----
2454

query I rowsort
SELECT 14 - - 67 AS col0
----
81

query I rowsort
SELECT 88 + ( 47 ) * 73 AS col1
----
3519

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

query I rowsort
SELECT ALL - 58 + 14
----
-44

query I rowsort
SELECT ALL + 94 + - 0
----
94

query I rowsort
SELECT 13 + 0
----
13

query I rowsort
SELECT DISTINCT + 13 + 84
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT 22 + COALESCE ( COUNT( * ), 57, COALESCE ( 5, - 53, 28 ) DIV MIN( - 72 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 22 + COALESCE ( COUNT ( * ), 57, COALESCE ( 5, - 53, 28 ) / MIN ( - 72 ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - MAX( - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - MAX ( - 49 ) AS col2
----
49

query I rowsort
SELECT 50 * + 54 + 33
----
2733

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT COUNT( ALL - ( 28 ) ) * 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3199
SELECT COUNT ( ALL - ( 28 ) ) * 89 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3200
SELECT 96 DIV - 15 + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3200
SELECT 96 / - 15 + + COUNT ( * )
----
-5

query I rowsort
SELECT ALL 21 + - 46 AS col0
----
-25

query I rowsort
SELECT 38 * 8 AS col1
----
304

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3203
SELECT DISTINCT 56 + - MIN( DISTINCT 0 + CAST( NULL AS DECIMAL ) ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 56 + - MIN ( DISTINCT 0 + CAST ( NULL AS REAL ) ) * - 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL - + CASE + 85 WHEN CASE 42 WHEN - 75 THEN - ( 42 ) * + 50 WHEN + 22 * - ( - NULLIF ( - 17, 21 + 68 * + 61 ) * - COALESCE ( 48 * - 84, 59 ) ) THEN NULL END THEN NULL WHEN - COALESCE ( - 78, - CAST( NULL AS SIGNED ) * + 79 ) THEN NULL ELSE + COUNT( * ) + + COUNT( * ) END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - + CASE + 85 WHEN CASE 42 WHEN - 75 THEN - ( 42 ) * + 50 WHEN + 22 * - ( - NULLIF ( - 17, 21 + 68 * + 61 ) * - COALESCE ( 48 * - 84, 59 ) ) THEN NULL END THEN NULL WHEN - COALESCE ( - 78, - CAST ( NULL AS INTEGER ) * + 79 ) THEN NULL ELSE + COUNT ( * ) + + COUNT ( * ) END AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT + + 4 * ( CASE 26 WHEN + AVG ( ALL - CAST( NULL AS SIGNED ) ) THEN + COUNT( DISTINCT 86 ) * + COUNT( * ) + 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + + 4 * ( CASE 26 WHEN + AVG ( ALL - CAST ( NULL AS INTEGER ) ) THEN + COUNT ( DISTINCT 86 ) * + COUNT ( * ) + 58 END )
----
NULL

query I rowsort
SELECT - 75 + + 52
----
-23

query I rowsort
SELECT ( + 26 ) * + 86
----
2236

query I rowsort
SELECT - 88 + 87 * 35
----
2957

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 22 * - COUNT( * ) + 32 * 57
----
1802

skipif mysql # not compatible
query I rowsort label-3209
SELECT 22 * - COUNT ( * ) + 32 * 57
----
1802

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT - COALESCE ( 57, + 3 ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT - COALESCE ( 57, + 3 ) / + 59
----
0

query I rowsort
SELECT - 16 * 87
----
-1392

query I rowsort
SELECT - 55 + CASE ( + ( 84 ) ) WHEN 32 * - 29 THEN NULL ELSE - 79 END AS col0
----
-134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT DISTINCT - 15 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - 15 / 47
----
0

query I rowsort
SELECT ALL ( + CASE WHEN NOT NULL IS NULL THEN 9 WHEN NOT ( 21 / - 11 ) > ( 90 ) + + NULLIF ( + 51, + 14 ) * - 96 THEN 52 / 4 + - 51 * 5 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT CAST( + 21 AS SIGNED ) * 20 AS col2
----
420

skipif mysql # not compatible
query I rowsort label-3216
SELECT CAST ( + 21 AS INTEGER ) * 20 AS col2
----
420

query I rowsort
SELECT + 82 * + 85 AS col0
----
6970

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL SUM( - 76 ) * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL SUM ( - 76 ) * COUNT ( * )
----
-76

query I rowsort
SELECT - ( - NULLIF ( - 55, - 81 * 67 ) ) + - 77 AS col0
----
-132

query I rowsort
SELECT - ( - 21 ) col1
----
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - NULLIF ( - NULLIF ( + 42, 32 ), + 17 * - COUNT( * ) ) + + 18
----
60

skipif mysql # not compatible
query I rowsort label-3224
SELECT - NULLIF ( - NULLIF ( + 42, 32 ), + 17 * - COUNT ( * ) ) + + 18
----
60

query I rowsort
SELECT ALL 1 + - 75 col2
----
-74

query I rowsort
SELECT ALL 5 + 84
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT + ( COUNT( * ) ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + ( COUNT ( * ) ) + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3228
SELECT ALL + CAST( - 34 AS SIGNED ) + 12 DIV COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + CAST ( - 34 AS INTEGER ) + 12 / COUNT ( * ) AS col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3229
SELECT CAST( NULL AS DECIMAL ) * - 84 / CASE - 68 * + 13 WHEN 20 THEN - 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT CAST ( NULL AS REAL ) * - 84 / CASE - 68 * + 13 WHEN 20 THEN - 14 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT DISTINCT + 81 + - + CAST( 99 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + 81 + - + CAST ( 99 AS INTEGER )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL - 27 + - 27 + 40 DIV 73
----
-54

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - 27 + - 27 + 40 / 73
----
-54

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

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

query I rowsort
SELECT 38 - + ( 74 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 74 * - COUNT( + 30 ) * - 63
----
4662

skipif mysql # not compatible
query I rowsort label-3234
SELECT 74 * - COUNT ( + 30 ) * - 63
----
4662

query I rowsort
SELECT ALL + 19 * + - 48 * - 94
----
85728

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL + SUM( ALL + + 57 ) * + 75 - 35 * + 21
----
3540

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + SUM ( ALL + + 57 ) * + 75 - 35 * + 21
----
3540

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT ALL - 19 DIV 1 * 37
----
-703

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 19 / 1 * 37
----
-703

query I rowsort
SELECT 73 * - 39
----
-2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT - NULLIF ( + CAST( 21 AS SIGNED ), + 59 ) * MIN( DISTINCT + 47 ) + - COUNT( * ) AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-3240
SELECT - NULLIF ( + CAST ( 21 AS INTEGER ), + 59 ) * MIN ( DISTINCT + 47 ) + - COUNT ( * ) AS col0
----
-988

query I rowsort
SELECT + 77 - - + 13
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - MAX( DISTINCT - + ( 29 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3242
SELECT - MAX ( DISTINCT - + ( 29 ) ) AS col2
----
29

query I rowsort
SELECT ALL + + 2 * 61 * + 88 - 7 AS col2
----
10729

query I rowsort
SELECT DISTINCT + 29 * + - 91 + 73 AS col1
----
-2566

query I rowsort
SELECT DISTINCT + - NULLIF ( + 59, - NULLIF ( 98, 82 * - 32 + - 17 ) * 9 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + ( - 89 ) * MIN( ALL + 82 * ( 65 ) )
----
-474370

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + ( - 89 ) * MIN ( ALL + 82 * ( 65 ) )
----
-474370

query I rowsort
SELECT - - 91 * 48 * - 13 + ( - 55 )
----
-56839

query I rowsort
SELECT ALL + 85 * + 55 AS col2
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + - CASE - 78 WHEN - ( 52 ) THEN COALESCE ( 70, 5, COUNT( * ) ) + + 87 ELSE + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT + - CASE - 78 WHEN - ( 52 ) THEN COALESCE ( 70, 5, COUNT ( * ) ) + + 87 ELSE + 0 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT DISTINCT - CAST( + NULLIF ( CAST( 57 AS SIGNED ), + 80 * COUNT( * ) ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - CAST ( + NULLIF ( CAST ( 57 AS INTEGER ), + 80 * COUNT ( * ) ) AS INTEGER )
----
-57

query I rowsort
SELECT ALL - 36 + - 0 + + 22
----
-14

query I rowsort
SELECT - 19 + + 24
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL + ( + 3 ) + 59 * - CAST( - SUM( ALL + 28 ) AS SIGNED )
----
1655

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + ( + 3 ) + 59 * - CAST ( - SUM ( ALL + 28 ) AS INTEGER )
----
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + + 64 - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3255
SELECT + + 64 - - COUNT ( * )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT + 53 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + 53 / - 52
----
-1

query I rowsort
SELECT ALL 87 * + + 89 col2
----
7743

query I rowsort
SELECT + 93 + - 84
----
9

query I rowsort
SELECT + 63 - - 90 AS col0
----
153

query I rowsort
SELECT + 34 + - 42 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - COUNT( * ) + - + 96 + + 33 + - 30 * - 96 * ( 45 * + 68 ) col1
----
8812736

skipif mysql # not compatible
query I rowsort label-3261
SELECT - COUNT ( * ) + - + 96 + + 33 + - 30 * - 96 * ( 45 * + 68 ) col1
----
8812736

query I rowsort
SELECT ALL 21 - - 96 AS col2
----
117

query I rowsort
SELECT + 27 + + NULLIF ( + ( + ( + 97 ) ), 63 ) * + 60 col0
----
5847

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + ( CASE - 36 WHEN - ( 31 ) THEN COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + ( CASE - 36 WHEN - ( 31 ) THEN COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + SUM( ALL + + 74 ) + + - 95 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3265
SELECT + SUM ( ALL + + 74 ) + + - 95 AS col1
----
-21

query II rowsort
SELECT ALL + 93 AS col0, - 14 + 48 * + NULLIF ( - 33, - 47 ) AS col2
----
93
-1598

query II rowsort
SELECT DISTINCT + 96, 79 + + 47 AS col2
----
96
126

query I rowsort
SELECT ALL + NULLIF ( 90, - 1 ) AS col2
----
90

query I rowsort
SELECT + 29 * - + 32 + + 53
----
-875

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

query II rowsort
SELECT ALL + + 27 AS col0, 41 + 31
----
27
72

query I rowsort
SELECT - - 81 * - + CASE 15 WHEN 37 THEN + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + + 70 + CASE - 89 WHEN 40 + + 38 THEN COUNT( * ) WHEN 9 THEN 3 * - 95 + 78 WHEN 58 + COUNT( * ) THEN 10 * - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + + 70 + CASE - 89 WHEN 40 + + 38 THEN COUNT ( * ) WHEN 9 THEN 3 * - 95 + 78 WHEN 58 + COUNT ( * ) THEN 10 * - 67 END
----
NULL

query I rowsort
SELECT + 66 * - 41 + 15 * + 4 AS col1
----
-2646

query II rowsort
SELECT ALL + + 67, ( - + ( ( - 9 ) ) ) * 50 AS col0
----
67
450

query I rowsort
SELECT + 78 * - 75 * - 34 + 1 * 72 AS col0
----
198972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL + - ( - + NULLIF ( - - 50, + 17 + + CAST( NULL AS SIGNED ) ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + - ( - + NULLIF ( - - 50, + 17 + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
50

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

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

query I rowsort
SELECT - + 24 * - + 87 + - COALESCE ( NULLIF ( 48, + 5 * 31 ), 54, 17 )
----
2040

query I rowsort
SELECT ALL 95 * 15 * - 26 + - 89
----
-37139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT - COALESCE ( - + 30, - 53 ) DIV + SUM( - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT - COALESCE ( - + 30, - 53 ) / + SUM ( - 86 ) AS col0
----
0

query I rowsort
SELECT - + 54 + - + 73
----
-127

query II rowsort
SELECT + 12, - 72 AS col2
----
12
-72

query I rowsort
SELECT - - 2 * + 47 + - - 92 * 88 + 58
----
8248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT - - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 66 + 14 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3285
SELECT - - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 66 + 14 AS col0
----
-52

query I rowsort
SELECT - NULLIF ( - - 19, + 75 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - - 74 * - 40 * ( - COUNT( * ) ) + 29
----
2989

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - - 74 * - 40 * ( - COUNT ( * ) ) + 29
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - 53 + + + MIN( DISTINCT 3 )
----
-50

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 53 + + + MIN ( DISTINCT 3 )
----
-50

query I rowsort
SELECT ALL - 23 * + + 59 + - - 21 + 80 * COALESCE ( 7 * 92, + 22 + 23 * 40 ) * - 62
----
-3195576

query II rowsort
SELECT - + 78 AS col2, 58
----
-78
58

query I rowsort
SELECT ALL 81 + - 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT ALL CAST( + 22 AS SIGNED ), 57 AS col1
----
22
57

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL CAST ( + 22 AS INTEGER ), 57 AS col1
----
22
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT DISTINCT - 82 - + 13 AS col0, COUNT( * ) AS col2
----
-95
1

skipif mysql # not compatible
query II rowsort label-3293
SELECT DISTINCT - 82 - + 13 AS col0, COUNT ( * ) AS col2
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL COUNT( * ) - + - 63 * 46
----
2899

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL COUNT ( * ) - + - 63 * 46
----
2899

query I rowsort
SELECT - 51 * - 47
----
2397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT - CAST( - MIN( - 28 ) AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3296
SELECT - CAST ( - MIN ( - 28 ) AS INTEGER ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT DISTINCT 80 - + + COUNT( * ) col1, + 74 * - SUM( 61 ) * - 20 + 59
----
79
90339

skipif mysql # not compatible
query II rowsort label-3297
SELECT DISTINCT 80 - + + COUNT ( * ) col1, + 74 * - SUM ( 61 ) * - 20 + 59
----
79
90339

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT ALL 98 DIV 26 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL 98 / 26 AS col0
----
3

query I rowsort
SELECT ALL + 64 - + 50 AS col2
----
14

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

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

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

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

query I rowsort
SELECT ALL 92 - + + 86 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3303
SELECT CASE - COUNT( * ) WHEN - 15 * + COUNT( * ) * + 40 THEN 84 WHEN 99 THEN NULL ELSE - CAST( + 31 AS SIGNED ) + - 86 END DIV 31
----
-3

skipif mysql # not compatible
query I rowsort label-3303
SELECT CASE - COUNT ( * ) WHEN - 15 * + COUNT ( * ) * + 40 THEN 84 WHEN 99 THEN NULL ELSE - CAST ( + 31 AS INTEGER ) + - 86 END / 31
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT 47 + - 35 + - - MIN( DISTINCT - 34 )
----
-22

skipif mysql # not compatible
query I rowsort label-3304
SELECT 47 + - 35 + - - MIN ( DISTINCT - 34 )
----
-22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT - 8 * - COUNT( * ), 33 * + + 91 AS col0
----
8
3003

skipif mysql # not compatible
query II rowsort label-3306
SELECT - 8 * - COUNT ( * ), 33 * + + 91 AS col0
----
8
3003

query I rowsort
SELECT DISTINCT + 38 + - 36 + - 57 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL - + CASE + CAST( NULL AS SIGNED ) WHEN 20 THEN + 87 * AVG ( + 77 + 32 ) + 82 WHEN 98 + + 12 / 62 THEN - 51 ELSE NULL END * 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - + CASE + CAST ( NULL AS INTEGER ) WHEN 20 THEN + 87 * AVG ( + 77 + 32 ) + 82 WHEN 98 + + 12 / 62 THEN - 51 ELSE NULL END * 43 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + 69 + - COUNT( * ) * + MAX( + + 2 ) * COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 69 + - COUNT ( * ) * + MAX ( + + 2 ) * COUNT ( * ) AS col2
----
67

query I rowsort
SELECT 0 + + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - CASE - - 88 WHEN + COUNT( * ) THEN NULL WHEN + + 89 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - CASE - - 88 WHEN + COUNT ( * ) THEN NULL WHEN + + 89 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3312
SELECT 21 DIV - - 89, - 1 col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-3312
SELECT 21 / - - 89, - 1 col0
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT CAST( - - 55 AS SIGNED ) * + 43
----
2365

skipif mysql # not compatible
query I rowsort label-3313
SELECT CAST ( - - 55 AS INTEGER ) * + 43
----
2365

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT 0 DIV - 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT 0 / - 42 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT ALL 7 + + - ( + - COALESCE ( + 39, + ( + CAST( NULL AS SIGNED ) ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL 7 + + - ( + - COALESCE ( + 39, + ( + CAST ( NULL AS INTEGER ) ) ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT ALL + COALESCE ( - 67, - + 21 + - NULLIF ( 36, 94 ), 44 ) DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + COALESCE ( - 67, - + 21 + - NULLIF ( 36, 94 ), 44 ) / 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT 13 + - COUNT( * ) * + COUNT( DISTINCT CAST( 39 AS SIGNED ) ) col0
----
12

skipif mysql # not compatible
query I rowsort label-3317
SELECT 13 + - COUNT ( * ) * + COUNT ( DISTINCT CAST ( 39 AS INTEGER ) ) col0
----
12

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT 36 AS col2, - SUM( DISTINCT ( + ( + - 94 ) ) ) AS col2
----
36
94

skipif mysql # not compatible
query II rowsort label-3319
SELECT 36 AS col2, - SUM ( DISTINCT ( + ( + - 94 ) ) ) AS col2
----
36
94

query II rowsort
SELECT DISTINCT 34 AS col2, 88 * + 78 AS col1
----
34
6864

query I rowsort
SELECT 38 + - 91
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT 48 + 55 - + COUNT( * ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3322
SELECT 48 + 55 - + COUNT ( * ) AS col1
----
102

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

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

query I rowsort
SELECT ALL 92 * + 71
----
6532

query I rowsort
SELECT 64 * + 52 * + 34 AS col1
----
113152

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + 60 * + 71 * - SUM( - 37 ) AS col1
----
157620

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 60 * + 71 * - SUM ( - 37 ) AS col1
----
157620

query I rowsort
SELECT 38 + - - 92 * - + 24 AS col0
----
-2170

query I rowsort
SELECT 73 - - 37 AS col2
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3329
SELECT 47 + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT 47 + + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT MIN( DISTINCT + 21 ) + + 45
----
66

skipif mysql # not compatible
query I rowsort label-3330
SELECT MIN ( DISTINCT + 21 ) + + 45
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT 54 * + CAST( 68 AS SIGNED ) col2
----
3672

skipif mysql # not compatible
query I rowsort label-3331
SELECT 54 * + CAST ( 68 AS INTEGER ) col2
----
3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT SUM( ALL 1 ) * + + 90 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-3332
SELECT SUM ( ALL 1 ) * + + 90 / + 38
----
2

query I rowsort
SELECT 92 + - - 66
----
158

query I rowsort
SELECT ALL 50 + + - 78
----
-28

query II rowsort
SELECT DISTINCT 19, + 83 + + 17 * + + 39 AS col1
----
19
746

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT MAX( DISTINCT 20 ) * 25
----
500

skipif mysql # not compatible
query I rowsort label-3336
SELECT MAX ( DISTINCT 20 ) * 25
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT 89 + + - 3 DIV 97
----
89

skipif mysql # not compatible
query I rowsort label-3337
SELECT 89 + + - 3 / 97
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT COUNT( * ) + - 49 + - NULLIF ( - 36, 98 + 64 ) DIV 51
----
-48

skipif mysql # not compatible
query I rowsort label-3338
SELECT COUNT ( * ) + - 49 + - NULLIF ( - 36, 98 + 64 ) / 51
----
-48

query I rowsort
SELECT ALL - 9 * 82 col0
----
-738

query II rowsort
SELECT + 23 AS col0, + 52
----
23
52

query I rowsort
SELECT ALL + 98 + - 77
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT ALL - - COUNT( * ) + - 67 DIV - + 46
----
2

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - - COUNT ( * ) + - 67 / - + 46
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + - SUM( + + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3343
SELECT + - SUM ( + + 62 ) AS col0
----
-62

query I rowsort
SELECT CASE + 2 WHEN - - 34 THEN - 55 * - 92 * + 60 ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 * - 18 * 61 + + - 71
----
7615

query I rowsort
SELECT - 42 * + 38
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ( - 39 ) + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3347
SELECT ( - 39 ) + COUNT ( * ) col0
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-3348
SELECT DISTINCT - + 34, 5 * 39 DIV - + 58 + 92 AS col0
----
-34
89

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT - + 34, 5 * 39 / - + 58 + 92 AS col0
----
-34
89

query II rowsort
SELECT ALL - - 38 AS col0, - 31
----
38
-31

query I rowsort
SELECT + 8 + - 50
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT + COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + COUNT( 44 ) + 95 ) + + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + COUNT ( 44 ) + 95 ) + + 3 AS col0
----
4

query I rowsort
SELECT + 19 * - 32 + - 46 - + 97 AS col0
----
-751

query I rowsort
SELECT ALL + 91 - + + 6 + - NULLIF ( + 99, - - 26 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 63 - MIN( - COALESCE ( + + 99, + 12 ) ) + - ( + 12 + 79 ) * + 23
----
-2057

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 63 - MIN ( - COALESCE ( + + 99, + 12 ) ) + - ( + 12 + 79 ) * + 23
----
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT 7 * + + ( + MAX( DISTINCT - 28 ) )
----
-196

skipif mysql # not compatible
query I rowsort label-3355
SELECT 7 * + + ( + MAX ( DISTINCT - 28 ) )
----
-196

query I rowsort
SELECT 38 + - 21 + - 61 + - 42 - - 69 - 58
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL ( 78 ) - 59 + + - CASE - SUM( CAST( NULL AS SIGNED ) ) WHEN + 73 * 6 THEN + 62 * - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL ( 78 ) - 59 + + - CASE - SUM ( CAST ( NULL AS INTEGER ) ) WHEN + 73 * 6 THEN + 62 * - 57 END AS col2
----
NULL

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

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

query I rowsort
SELECT ( - 59 ) * + 82 AS col2
----
-4838

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + 25 * - 73 * - 51 * - COUNT( * ) + - 68
----
-93143

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 25 * - 73 * - 51 * - COUNT ( * ) + - 68
----
-93143

query II rowsort
SELECT 84 AS col0, 42
----
84
42

query I rowsort
SELECT ALL ( - 46 ) - - - 56 AS col1
----
-102

query I rowsort
SELECT - NULLIF ( - + 8, 16 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT - ( - 15 ) DIV - 98 + - - 38 + + 80 DIV + 33 + 82
----
122

skipif mysql # not compatible
query I rowsort label-3364
SELECT - ( - 15 ) / - 98 + - - 38 + + 80 / + 33 + 82
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3365
SELECT 78, - 98 AS col0, - - ( - - 20 ) DIV + NULLIF ( - - COUNT( * ), 16 * + 26 ) + 34 AS col2
----
78
-98
54

skipif mysql # not compatible
query III rowsort label-3365
SELECT 78, - 98 AS col0, - - ( - - 20 ) / + NULLIF ( - - COUNT ( * ), 16 * + 26 ) + 34 AS col2
----
78
-98
54

query I rowsort
SELECT + 45 * + - 83
----
-3735

query I rowsort
SELECT - 50 + 13
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT ALL - 1 DIV COUNT( * ) * + + 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL - 1 / COUNT ( * ) * + + 81 AS col1
----
-81

query I rowsort
SELECT - COALESCE ( + 83, 5 + + + NULLIF ( + 55, + 60 ) )
----
-83

query II rowsort
SELECT - 59 AS col1, + 29
----
-59
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT + 29 + + - SUM( + 66 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + 29 + + - SUM ( + 66 ) AS col0
----
-37

query I rowsort
SELECT ALL - 74 + + 33 col0
----
-41

query I rowsort
SELECT ALL + 2 * - + 77 AS col1
----
-154

query II rowsort
SELECT 21 AS col1, + 92 * + 40 AS col0
----
21
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT + 29 + - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 29 + - COUNT ( * ) AS col0
----
28

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

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT 43 + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT - 26 + + 53 - - 59
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + 39 + + 40 * + NULLIF ( + 71, - 80 * + COUNT( * ) )
----
2879

skipif mysql # not compatible
query I rowsort label-3379
SELECT + 39 + + 40 * + NULLIF ( + 71, - 80 * + COUNT ( * ) )
----
2879

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT ALL + + COUNT( * ) col1, 85 + 13
----
1
98

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL + + COUNT ( * ) col1, 85 + 13
----
1
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3382
SELECT - + CAST( + - 5 AS SIGNED ) DIV + 35 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT - + CAST ( + - 5 AS INTEGER ) / + 35 * - 62
----
0

query II rowsort
SELECT ALL + 50 AS col0, + 85
----
50
85

query I rowsort
SELECT + 17 * + 95 + - 77
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL + 37 * - ( - 21 ) * + - 85 * + 41 * - 43 * COUNT( * ) + + ( - ( 3 ) ) AS col2
----
116437332

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + 37 * - ( - 21 ) * + - 85 * + 41 * - 43 * COUNT ( * ) + + ( - ( 3 ) ) AS col2
----
116437332

query II rowsort
SELECT ALL + - 89, - 25 AS col2
----
-89
-25

query I rowsort
SELECT - + 87 + NULLIF ( 36, - 95 - + 83 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT + ( 84 ) DIV + COALESCE ( - 82, - MAX( 63 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3388
SELECT + ( 84 ) / + COALESCE ( - 82, - MAX ( 63 ) ) AS col0
----
-1

query I rowsort
SELECT + 60 - - + ( + 50 )
----
110

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

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL COUNT ( * ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - + 79 - + 17 + - 39 + + - COUNT( * ) AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-3391
SELECT - + 79 - + 17 + - 39 + + - COUNT ( * ) AS col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT - 11 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 11 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT CASE - 31 WHEN + + CASE + - 48 WHEN COUNT( * ) * MAX( ALL - 22 ) + - 49 + - 58 THEN - 11 WHEN 88 + 13 THEN AVG ( ALL - 21 ) ELSE 89 + - COUNT( * ) * 63 END + 48 THEN + 66 - - 20 WHEN 20 * 10 THEN - COUNT( * ) WHEN + 24 + 12 THEN 39 * + ( - 83 / + 90 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT CASE - 31 WHEN + + CASE + - 48 WHEN COUNT ( * ) * MAX ( ALL - 22 ) + - 49 + - 58 THEN - 11 WHEN 88 + 13 THEN AVG ( ALL - 21 ) ELSE 89 + - COUNT ( * ) * 63 END + 48 THEN + 66 - - 20 WHEN 20 * 10 THEN - COUNT ( * ) WHEN + 24 + 12 THEN 39 * + ( - 83 / + 90 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL + CAST( + 10 AS SIGNED ) * + + 73 - - 19 + - 90 AS col2
----
659

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + CAST ( + 10 AS INTEGER ) * + + 73 - - 19 + - 90 AS col2
----
659

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

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

query I rowsort
SELECT + ( + 59 ) * - 13 AS col0
----
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 20 * + MIN( - 50 ) + + 82
----
1082

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 20 * + MIN ( - 50 ) + + 82
----
1082

query I rowsort
SELECT + ( + 32 ) - + 36 - 60 * + 31 + - - 69 + + ( - 61 ) * 58 AS col0
----
-5333

query I rowsort
SELECT + 45 + + - 26 AS col0
----
19

query II rowsort
SELECT - ( - - 87 ) AS col2, - ( + 33 )
----
-87
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3401
SELECT MIN( DISTINCT - 77 ) col2, 39
----
-77
39

skipif mysql # not compatible
query II rowsort label-3401
SELECT MIN ( DISTINCT - 77 ) col2, 39
----
-77
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3402
SELECT + 21 + 59 AS col0, + COUNT( * ) + - 34 + CAST( + - COUNT( * ) AS SIGNED ) * + 53 AS col2
----
80
-86

skipif mysql # not compatible
query II rowsort label-3402
SELECT + 21 + 59 AS col0, + COUNT ( * ) + - 34 + CAST ( + - COUNT ( * ) AS INTEGER ) * + 53 AS col2
----
80
-86

query I rowsort
SELECT + 27 * + 72 * + - 17 * - - 17 col0
----
-561816

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

query I rowsort
SELECT ALL 9 + - 25 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + COUNT( * ) + 58 + - 84
----
-25

skipif mysql # not compatible
query I rowsort label-3406
SELECT + COUNT ( * ) + 58 + - 84
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT ALL 79 * + COUNT( * ) AS col2, + 35 * - 40 AS col1
----
79
-1400

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL 79 * + COUNT ( * ) AS col2, + 35 * - 40 AS col1
----
79
-1400

query I rowsort
SELECT + 91 + + 21 * - 80 AS col1
----
-1589

query I rowsort
SELECT + ( + 81 ) + - - 1 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3410
SELECT ALL 73 + - 31 AS col0, CAST( NULL AS DECIMAL ) - COALESCE ( - CAST( NULL AS SIGNED ), 47 + 1 ) col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL 73 + - 31 AS col0, CAST ( NULL AS REAL ) - COALESCE ( - CAST ( NULL AS INTEGER ), 47 + 1 ) col1
----
42
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3411
SELECT + 31 DIV + - 38 * - 91, + ( 72 ) AS col0
----
0
72

skipif mysql # not compatible
query II rowsort label-3411
SELECT + 31 / + - 38 * - 91, + ( 72 ) AS col0
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT - COALESCE ( + + COALESCE ( 48, - 4 ), + 4 ) + - - MAX( ALL - NULLIF ( - 79, 30 * - 6 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3412
SELECT - COALESCE ( + + COALESCE ( 48, - 4 ), + 4 ) + - - MAX ( ALL - NULLIF ( - 79, 30 * - 6 ) ) AS col0
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - COUNT( * ) + - 41 + - 5 - - 99
----
52

skipif mysql # not compatible
query I rowsort label-3414
SELECT - COUNT ( * ) + - 41 + - 5 - - 99
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - CASE + 36 WHEN + 56 THEN + - COUNT( * ) WHEN 48 THEN NULLIF ( - 73, + 14 * COALESCE ( 3, + MAX( ALL 44 ) * 18 ) ) / 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT - CASE + 36 WHEN + 56 THEN + - COUNT ( * ) WHEN 48 THEN NULLIF ( - 73, + 14 * COALESCE ( 3, + MAX ( ALL 44 ) * 18 ) ) / 6 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT + - 26 * - SUM( 96 )
----
2496

skipif mysql # not compatible
query I rowsort label-3417
SELECT + - 26 * - SUM ( 96 )
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT ALL + 57 - - + 45 DIV 65 col1
----
57

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + 57 - - + 45 / 65 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT + COALESCE ( + 43, + 90 DIV - 36 DIV - SUM( - ( - 27 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + COALESCE ( + 43, + 90 / - 36 / - SUM ( - ( - 27 ) ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT - - 77 + - 27 - 61 + - + CASE - 87 WHEN 15 * COUNT( * ) THEN + COUNT( * ) * 86 WHEN CAST( NULL AS SIGNED ) THEN 53 WHEN COUNT( * ) * - 4 THEN - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - 77 + - 27 - 61 + - + CASE - 87 WHEN 15 * COUNT ( * ) THEN + COUNT ( * ) * 86 WHEN CAST ( NULL AS INTEGER ) THEN 53 WHEN COUNT ( * ) * - 4 THEN - 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL + - CAST( - ( COUNT( * ) ) AS SIGNED ) * + + MAX( ALL - 23 ) - + 21
----
-44

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + MAX ( ALL - 23 ) - + 21
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3422
SELECT - 60 DIV COUNT( * ) + 86 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 60 / COUNT ( * ) + 86 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT + 89 DIV + 33 + - 48 + - 85 - + 33 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-3423
SELECT + 89 / + 33 + - 48 + - 85 - + 33 AS col1
----
-164

query I rowsort
SELECT - - ( + 77 ) * ( 49 )
----
3773

query I rowsort
SELECT - - 19 * + - 88 AS col1
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + MAX( - - COALESCE ( 86, ( + ( - 11 ) ) + + + 27 * 84 ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + MAX ( - - COALESCE ( 86, ( + ( - 11 ) ) + + + 27 * 84 ) ) AS col0
----
86

query I rowsort
SELECT - 6 + - ( - - 97 )
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT DISTINCT - COALESCE ( + ( 87 ), - 25 ) DIV + 36 + - 73 * COUNT( * ) * CASE WHEN NOT ( - 19 ) IS NULL THEN 89 ELSE + 83 END + 92 * COUNT( * )
----
-6407

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - COALESCE ( + ( 87 ), - 25 ) / + 36 + - 73 * COUNT ( * ) * CASE WHEN NOT ( - 19 ) IS NULL THEN 89 ELSE + 83 END + 92 * COUNT ( * )
----
-6407

query I rowsort
SELECT 73 + + ( 85 ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - 1 * + 37 * NULLIF ( + COUNT( DISTINCT - + 80 ), + - 31 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - 1 * + 37 * NULLIF ( + COUNT ( DISTINCT - + 80 ), + - 31 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT CASE - + ( COUNT( DISTINCT + + 78 ) ) WHEN - COALESCE ( - - 61, 41, - 15 * COALESCE ( 29 / 3, ( - 28 ) + - ( 93 ) ) ) THEN - 7 END + + COUNT( ALL 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT CASE - + ( COUNT ( DISTINCT + + 78 ) ) WHEN - COALESCE ( - - 61, 41, - 15 * COALESCE ( 29 / 3, ( - 28 ) + - ( 93 ) ) ) THEN - 7 END + + COUNT ( ALL 92 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT 10 * + + 10 * + + NULLIF ( + + 66, + 84 * + - CASE - 67 WHEN - 84 * 73 THEN NULL WHEN - ( 14 ) + - 31 THEN 71 END + 79 / CAST( NULL AS SIGNED ) + + 73 ) + + 32 AS col2
----
6632

skipif mysql # not compatible
query I rowsort label-3433
SELECT 10 * + + 10 * + + NULLIF ( + + 66, + 84 * + - CASE - 67 WHEN - 84 * 73 THEN NULL WHEN - ( 14 ) + - 31 THEN 71 END + 79 / CAST ( NULL AS INTEGER ) + + 73 ) + + 32 AS col2
----
6632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL 33 + - - ( + + 12 ) - + 95 + CAST( NULL AS SIGNED ) * 48 + + 7 * + 91 * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 33 + - - ( + + 12 ) - + 95 + CAST ( NULL AS INTEGER ) * 48 + + 7 * + 91 * 38 AS col0
----
NULL

query I rowsort
SELECT 63 * 19 AS col2
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - 29 + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - 29 + COUNT ( * ) AS col0
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-3437
SELECT ALL 9 col0, 39 * + 0 * 84 DIV 11
----
9
0

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL 9 col0, 39 * + 0 * 84 / 11
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT COUNT( * ) + - + 47 + COUNT( + 76 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT COUNT ( * ) + - + 47 + COUNT ( + 76 ) AS col1
----
-45

query II rowsort
SELECT 46 col0, - NULLIF ( + + COALESCE ( - ( + 54 ), + 4 * - CASE 45 WHEN ( 22 ) - + 61 THEN - 44 WHEN - 26 THEN NULL END ), 48 + 14 ) AS col1
----
46
54

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

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

query I rowsort
SELECT 52 * - 80 AS col1
----
-4160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT - COALESCE ( - - MIN( ALL - 38 ), - - 56 + - COALESCE ( NULLIF ( - COALESCE ( + 2, + 0, - 68 - + 79 ), COUNT( ALL + 48 ) ), 65 DIV + MIN( ALL NULLIF ( + 87, 94 ) ) ), + 15 * COUNT( - 20 ) + - 61 )
----
38

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COALESCE ( - - MIN ( ALL - 38 ), - - 56 + - COALESCE ( NULLIF ( - COALESCE ( + 2, + 0, - 68 - + 79 ), COUNT ( ALL + 48 ) ), 65 / + MIN ( ALL NULLIF ( + 87, 94 ) ) ), + 15 * COUNT ( - 20 ) + - 61 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3443
SELECT ALL + CASE - COUNT( ALL ( + 50 ) ) WHEN - 80 THEN NULL WHEN + NULLIF ( + 50, + CAST( NULL AS DECIMAL ) * + CASE - ( 29 ) WHEN COUNT( * ) THEN 82 + - 52 WHEN - 19 * COUNT( * ) - 55 THEN NULL END ) + - 42 THEN CAST( - 13 AS SIGNED ) + - 0 * + COUNT( * ) END - - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + CASE - COUNT ( ALL ( + 50 ) ) WHEN - 80 THEN NULL WHEN + NULLIF ( + 50, + CAST ( NULL AS REAL ) * + CASE - ( 29 ) WHEN COUNT ( * ) THEN 82 + - 52 WHEN - 19 * COUNT ( * ) - 55 THEN NULL END ) + - 42 THEN CAST ( - 13 AS INTEGER ) + - 0 * + COUNT ( * ) END - - 39 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3444
SELECT 44 / + - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT DISTINCT + 59 * + 91 + COALESCE ( - + CAST( NULL AS SIGNED ), - 74 ) * - - 74 - + + 27 + + - 15 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + 59 * + 91 + COALESCE ( - + CAST ( NULL AS INTEGER ), - 74 ) * - - 74 - + + 27 + + - 15 AS col2
----
-149

query I rowsort
SELECT DISTINCT NULLIF ( CASE - - 86 WHEN 23 THEN + + 78 + 71 * - 76 / 10 ELSE + 38 + 94 END, + 10 ) AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3447
SELECT CASE - + 82 WHEN + + 88 + + 47 + - 71 * + + MAX( DISTINCT + + 26 ) * + 95 * - 38 THEN NULL WHEN - CAST( + NULLIF ( + 31, CAST( 78 AS SIGNED ) + - COUNT( * ) ) AS DECIMAL ) + 0 * - CAST( - 50 AS SIGNED ) THEN 81 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT CASE - + 82 WHEN + + 88 + + 47 + - 71 * + + MAX ( DISTINCT + + 26 ) * + 95 * - 38 THEN NULL WHEN - CAST ( + NULLIF ( + 31, CAST ( 78 AS INTEGER ) + - COUNT ( * ) ) AS REAL ) + 0 * - CAST ( - 50 AS INTEGER ) THEN 81 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT ( + + COALESCE ( - 54, + 15, + - 54 ) ) * + CAST( NULL AS SIGNED ) / - 15 / + - ( + 88 ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ( + + COALESCE ( - 54, + 15, + - 54 ) ) * + CAST ( NULL AS INTEGER ) / - 15 / + - ( + 88 ) * 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3449
SELECT ALL + 57 AS col0, + COALESCE ( + 82, - 75 ) DIV + - 83 + MIN( DISTINCT + 1 )
----
57
1

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL + 57 AS col0, + COALESCE ( + 82, - 75 ) / + - 83 + MIN ( DISTINCT + 1 )
----
57
1

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

skipif mysql # not compatible
query I rowsort label-3450
SELECT COUNT ( * ) + 16 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT + MIN( + 33 ) DIV + + 65 * 23
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT + MIN ( + 33 ) / + + 65 * 23
----
0

query I rowsort
SELECT 90 * 37 AS col0
----
3330

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - MIN( - - 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - MIN ( - - 18 ) col0
----
-18

query I rowsort
SELECT - 95 + + - 86
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL - 82 + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - 82 + - COUNT ( * ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT + 60 + + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - - NULLIF ( - MAX( DISTINCT - - 17 ), + 12 ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT + 60 + + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - NULLIF ( - MAX ( DISTINCT - - 17 ), + 12 ) + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3458
SELECT DISTINCT 5 * 44 DIV + MIN( DISTINCT - 92 ), + CAST( NULL AS SIGNED ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT 5 * 44 / + MIN ( DISTINCT - 92 ), + CAST ( NULL AS INTEGER ) AS col0
----
-2
NULL

query I rowsort
SELECT ALL - 15 * + 92 * + + 29 AS col2
----
-40020

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT 83 * - SUM( ALL - 98 )
----
8134

skipif mysql # not compatible
query I rowsort label-3460
SELECT 83 * - SUM ( ALL - 98 )
----
8134

query I rowsort
SELECT ALL 4 * + 68 AS col0
----
272

query I rowsort
SELECT DISTINCT 63 + - + 95 * - 97 + + 0 AS col2
----
9278

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

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + COUNT ( DISTINCT - - 89 ) / - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT SUM( ALL + 99 ) * - - COUNT( * ) + - COUNT( * ) + + + ( 27 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3464
SELECT SUM ( ALL + 99 ) * - - COUNT ( * ) + - COUNT ( * ) + + + ( 27 ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT 91 + + COUNT( * ) AS col1, + 32 + + 2 + - 3 * - COALESCE ( + COUNT( * ), + 7 * - 24, 14 )
----
92
37

skipif mysql # not compatible
query II rowsort label-3465
SELECT 91 + + COUNT ( * ) AS col1, + 32 + + 2 + - 3 * - COALESCE ( + COUNT ( * ), + 7 * - 24, 14 )
----
92
37

query I rowsort
SELECT 66 + - + 35 col2
----
31

query I rowsort
SELECT ALL + 21 * 53 AS col2
----
1113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT - - 40 * CAST( + - 31 AS SIGNED )
----
-1240

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - - 40 * CAST ( + - 31 AS INTEGER )
----
-1240

query I rowsort
SELECT 59 + - 7
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL - 29 * + - SUM( DISTINCT + 86 )
----
2494

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - 29 * + - SUM ( DISTINCT + 86 )
----
2494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT SUM( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - COUNT( DISTINCT + 10 ) * ( + + MIN( DISTINCT + 12 ) ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - COUNT ( DISTINCT + 10 ) * ( + + MIN ( DISTINCT + 12 ) ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL + ( MAX( ALL 27 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + ( MAX ( ALL 27 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 69 * COUNT( * ) + + 94 - 38 + - 48 + - 43
----
34

skipif mysql # not compatible
query I rowsort label-3473
SELECT 69 * COUNT ( * ) + + 94 - 38 + - 48 + - 43
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT 28 + - NULLIF ( + + 93, 63 * - - 86 + + COALESCE ( MAX( - 49 ), + 56 - + 51, 26 ) - + 74 * + 58 * - ( COUNT( * ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3474
SELECT 28 + - NULLIF ( + + 93, 63 * - - 86 + + COALESCE ( MAX ( - 49 ), + 56 - + 51, 26 ) - + 74 * + 58 * - ( COUNT ( * ) ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 96 * + MIN( ALL ( + 66 ) ) * - + 18 AS col0
----
-114048

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 96 * + MIN ( ALL ( + 66 ) ) * - + 18 AS col0
----
-114048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3476
SELECT DISTINCT - 44 + + 93 - - CAST( + 6 AS SIGNED ) AS col1, - 94 * + COUNT( * ) AS col0
----
55
-94

skipif mysql # not compatible
query II rowsort label-3476
SELECT DISTINCT - 44 + + 93 - - CAST ( + 6 AS INTEGER ) AS col1, - 94 * + COUNT ( * ) AS col0
----
55
-94

query I rowsort
SELECT DISTINCT + 86 + - + 58 + 51 * 15
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - 4 * - 0 + + - 53 + - 49 + 55 + - + 69 * - - 55 * - MAX( + 55 ) + - 40 AS col1
----
208638

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - 4 * - 0 + + - 53 + - 49 + 55 + - + 69 * - - 55 * - MAX ( + 55 ) + - 40 AS col1
----
208638

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - 69 * + ( 87 ) * 4 + NULLIF ( + 67, COUNT( * ) ) + + 44 + + 24 * + 26
----
-23277

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - 69 * + ( 87 ) * 4 + NULLIF ( + 67, COUNT ( * ) ) + + 44 + + 24 * + 26
----
-23277

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

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

query II rowsort
SELECT ALL + 3 AS col2, + 32
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 10 * MIN( ALL + 97 ) + + 45
----
1015

skipif mysql # not compatible
query I rowsort label-3482
SELECT 10 * MIN ( ALL + 97 ) + + 45
----
1015

query I rowsort
SELECT + ( 95 ) * + - 84 + + 22
----
-7958

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + MIN( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3484
SELECT + MIN ( - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 83 THEN + ( + 67 ) / + 48 WHEN 33 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 83 THEN + ( + 67 ) / + 48 WHEN 33 THEN 8 END
----
NULL

query II rowsort
SELECT + 32 AS col0, + 16 col1
----
32
16

query I rowsort
SELECT ALL 70 * - - 10 + 7
----
707

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

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

query II rowsort
SELECT + 97 col2, + 97 + - NULLIF ( + 6, - 34 ) + - COALESCE ( 61, + 86 ) AS col1
----
97
30

query I rowsort
SELECT ALL + 92 * + 36 * - 93 - - - NULLIF ( 4, - 6 + + 66 + 62 + 6 ) + - 24 AS col1
----
-308044

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

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

query I rowsort
SELECT ALL 50 * + 60 AS col1
----
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3493
SELECT + CASE - + 89 WHEN 19 THEN - CAST( NULL AS SIGNED ) / - COUNT( ALL 57 ) / + - 73 * + 71 - 55 ELSE + + 83 * - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + CASE - + 89 WHEN 19 THEN - CAST ( NULL AS INTEGER ) / - COUNT ( ALL 57 ) / + - 73 * + 71 - 55 ELSE + + 83 * - CAST ( NULL AS REAL ) END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT - ( 26 ) DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT - ( 26 ) / - 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT DISTINCT + CASE 75 WHEN + + COUNT( * ) * 62 - 19 * 96 + 64 THEN NULL WHEN SUM( DISTINCT + - 15 ) + - 66 - + SUM( ALL 84 ) * 10 THEN + CAST( NULL AS SIGNED ) ELSE - 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + CASE 75 WHEN + + COUNT ( * ) * 62 - 19 * 96 + 64 THEN NULL WHEN SUM ( DISTINCT + - 15 ) + - 66 - + SUM ( ALL 84 ) * 10 THEN + CAST ( NULL AS INTEGER ) ELSE - 67 END
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL 37 * 88 * 51 * - 54 * CAST( + AVG ( DISTINCT + 62 ) AS SIGNED ) - 35 + + NULLIF ( 32, 19 ) AS col1
----
-555955491

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 37 * 88 * 51 * - 54 * CAST ( + AVG ( DISTINCT + 62 ) AS INTEGER ) - 35 + + NULLIF ( 32, 19 ) AS col1
----
-555955491

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

skipif mysql # not compatible
query I rowsort label-3498
SELECT - + NULLIF ( - COUNT ( * ), 10 * + 43 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT DISTINCT COUNT( * ) AS col2, 3 * - 67 AS col2
----
1
-201

skipif mysql # not compatible
query II rowsort label-3499
SELECT DISTINCT COUNT ( * ) AS col2, 3 * - 67 AS col2
----
1
-201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3500
SELECT ALL + + 74 DIV - CAST( - 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + + 74 / - CAST ( - 92 AS INTEGER )
----
0

query I rowsort
SELECT - - 3 * - 17 col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT - 23 DIV - 26 * MIN( DISTINCT 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT - 23 / - 26 * MIN ( DISTINCT 49 )
----
0

query I rowsort
SELECT + 11 * + 21 + - + 43 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - 50 - - + COUNT( * ) + 37 * + COUNT( * ) * - 55
----
-2084

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 50 - - + COUNT ( * ) + 37 * + COUNT ( * ) * - 55
----
-2084

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + - 49 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + - 49 + - COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT - - 32 + + - 17
----
15

query I rowsort
SELECT ALL + - 70 * + + 4 + - 50
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT - - 46 * + NULLIF ( - - CASE - 59 WHEN COUNT( * ) + + AVG ( DISTINCT + - ( + 51 ) ) THEN - CAST( - - 56 AS SIGNED ) ELSE NULL END, - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - 46 * + NULLIF ( - - CASE - 59 WHEN COUNT ( * ) + + AVG ( DISTINCT + - ( + 51 ) ) THEN - CAST ( - - 56 AS INTEGER ) ELSE NULL END, - 11 )
----
NULL

query I rowsort
SELECT DISTINCT + + 20 * + 69 AS col0
----
1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT ALL - 2 + - COALESCE ( COALESCE ( + 86, + - 61 ), + - COUNT( * ), + + 78 + - - MIN( DISTINCT + 65 ) + - - 50 DIV 92 * - 44, - 12 ) + 10
----
-78

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - 2 + - COALESCE ( COALESCE ( + 86, + - 61 ), + - COUNT ( * ), + + 78 + - - MIN ( DISTINCT + 65 ) + - - 50 / 92 * - 44, - 12 ) + 10
----
-78

query II rowsort
SELECT ALL - 42 col0, + 80 col1
----
-42
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT - + 27 + - - CAST( CAST( + 88 AS SIGNED ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-3513
SELECT - + 27 + - - CAST ( CAST ( + 88 AS INTEGER ) AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + COUNT( * ) - + - ( + 36 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3514
SELECT + COUNT ( * ) - + - ( + 36 ) AS col1
----
37

query II rowsort
SELECT + 52 + 42 * + 74 * + 53 + - 92 * - + 29 AS col0, + 96 col0
----
167444
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT 58 + MAX( - ( + 50 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT 58 + MAX ( - ( + 50 ) ) AS col2
----
8

query I rowsort
SELECT DISTINCT 51 * - 91 col2
----
-4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3518
SELECT + COALESCE ( - - 66, - - COALESCE ( - ( + - 42 ), 53, + 54 * - 96 + COUNT( * ) + - 63 DIV + 47 ) * CAST( NULL AS SIGNED ) + COUNT( * ), COUNT( * ) + 28 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3518
SELECT + COALESCE ( - - 66, - - COALESCE ( - ( + - 42 ), 53, + 54 * - 96 + COUNT ( * ) + - 63 / + 47 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ), COUNT ( * ) + 28 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT 97 DIV - 38 - - - 1 + + - ( - 66 ) - - 20 col2
----
83

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT 97 / - 38 - - - 1 + + - ( - 66 ) - - 20 col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL + 88 DIV + - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + 88 / + - 89 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT CAST( - CASE MIN( 34 ) WHEN + - 68 - ( - 53 ) THEN + 32 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT CAST ( - CASE MIN ( 34 ) WHEN + - 68 - ( - 53 ) THEN + 32 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT DISTINCT - 98 DIV - - 1 - 5 + - 95
----
-198

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT - 98 / - - 1 - 5 + - 95
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3523
SELECT DISTINCT 16 * - - 31 * 27 DIV 27, COUNT( * ) col0
----
496
1

skipif mysql # not compatible
query II rowsort label-3523
SELECT DISTINCT 16 * - - 31 * 27 / 27, COUNT ( * ) col0
----
496
1

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

skipif mysql # not compatible
query I rowsort label-3524
SELECT - ( - CAST ( NULL AS REAL ) ) * 19 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 45 * - 71 AS col2
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL MIN( - - 19 ) * COUNT( * ) * + + ( 88 ) + + 4 + + 82
----
1758

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL MIN ( - - 19 ) * COUNT ( * ) * + + ( 88 ) + + 4 + + 82
----
1758

query II rowsort
SELECT ( - 11 ) AS col1, + 41 + + 92 + - 4
----
-11
129

query I rowsort
SELECT + 9 * - 1 * - 60 AS col0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - 15 * + + 68 * - - MIN( + + 6 )
----
-6120

skipif mysql # not compatible
query I rowsort label-3529
SELECT - 15 * + + 68 * - - MIN ( + + 6 )
----
-6120

query II rowsort
SELECT 80 * - 90 * - 34 - - 63 AS col1, + NULLIF ( 61, 41 * - + 17 * - 52 * - 60 )
----
244863
61

query I rowsort
SELECT + 85 * - 17 AS col0
----
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT - 84 * + - SUM( ALL + - 66 ) - 33 * + 14 AS col1
----
-6006

skipif mysql # not compatible
query I rowsort label-3532
SELECT - 84 * + - SUM ( ALL + - 66 ) - 33 * + 14 AS col1
----
-6006

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + - CASE + NULLIF ( - + 46, 44 * + - ( - 76 ) * 28 ) WHEN + 89 THEN - ( + CAST( - 11 AS SIGNED ) ) ELSE 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + - CASE + NULLIF ( - + 46, 44 * + - ( - 76 ) * 28 ) WHEN + 89 THEN - ( + CAST ( - 11 AS INTEGER ) ) ELSE 60 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT COALESCE ( ( 9 ), - COUNT( * ) + + COALESCE ( - COUNT( * ), 18 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3535
SELECT COALESCE ( ( 9 ), - COUNT ( * ) + + COALESCE ( - COUNT ( * ), 18 ) ) AS col0
----
9

query II rowsort
SELECT + 33 AS col1, + ( 31 ) * + 26
----
33
806

query I rowsort
SELECT - 18 * - 91 - - 3
----
1641

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + 12 + + + 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 12 + + + 46 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 47 * - 47 AS col0
----
-2209

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT MAX( ALL - 21 ) AS col2, + 7 * + - 87
----
-21
-609

skipif mysql # not compatible
query II rowsort label-3541
SELECT MAX ( ALL - 21 ) AS col2, + 7 * + - 87
----
-21
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + - ( + 15 ) * 67 - - + 28 + CASE - 35 WHEN - 34 / + 87 / COUNT( * ) + - - 0 * 77 * 39 + 88 THEN + 20 * - 48 END + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + - ( + 15 ) * 67 - - + 28 + CASE - 35 WHEN - 34 / + 87 / COUNT ( * ) + - - 0 * 77 * 39 + 88 THEN + 20 * - 48 END + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( ALL - 74 ) + 62 + + 31 * + 45 * 47 + - - CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( ALL - 74 ) + 62 + + 31 * + 45 * 47 + - - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT - - 92 + 0 * + 3 * - 59 / + CAST( NULL AS SIGNED ) * - MIN( ALL - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT - - 92 + 0 * + 3 * - 59 / + CAST ( NULL AS INTEGER ) * - MIN ( ALL - 9 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 86 + + ( - 53 ) col2
----
33

query I rowsort
SELECT - 14 * + 39 AS col2
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3547
SELECT 67 * - 85 DIV + MAX( - 5 ) AS col1, COUNT( * )
----
1139
1

skipif mysql # not compatible
query II rowsort label-3547
SELECT 67 * - 85 / + MAX ( - 5 ) AS col1, COUNT ( * )
----
1139
1

query I rowsort
SELECT DISTINCT - 3 + + 1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 1 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 1 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - - NULLIF ( - + 47, - SUM( 0 ) * - + 53 + + 4 )
----
-47

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - NULLIF ( - + 47, - SUM ( 0 ) * - + 53 + + 4 )
----
-47

query I rowsort
SELECT ( - - ( - - 24 ) ) * + 48 * + 92 + + + 62 - - 47 + 88 AS col0
----
106181

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT COUNT( + - 77 ) + + 59 * - + 8 AS col1
----
-471

skipif mysql # not compatible
query I rowsort label-3552
SELECT COUNT ( + - 77 ) + + 59 * - + 8 AS col1
----
-471

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + 83 * MIN( - ( + + 71 ) ) col2
----
-5893

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + 83 * MIN ( - ( + + 71 ) ) col2
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT 73 + COALESCE ( 92, + + 1 * + - 36 + - + 19, - 8 + MIN( - + 16 ) + - + 32 - - CAST( NULL AS SIGNED ) * - + 79 )
----
165

skipif mysql # not compatible
query I rowsort label-3554
SELECT 73 + COALESCE ( 92, + + 1 * + - 36 + - + 19, - 8 + MIN ( - + 16 ) + - + 32 - - CAST ( NULL AS INTEGER ) * - + 79 )
----
165

query I rowsort
SELECT DISTINCT + 11 - - 38 AS col2
----
49

query I rowsort
SELECT ALL - 56 * - 11 AS col1
----
616

query II rowsort
SELECT DISTINCT + 2 * - - 43, 72 AS col1
----
86
72

query II rowsort
SELECT DISTINCT 4 - + 94 AS col0, - 41
----
-90
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3559
SELECT 93 DIV - COALESCE ( + 7, + MAX( 12 ) + COUNT( ALL + 62 ) ) - + CAST( 55 AS SIGNED ) * - + 16 * - 76 AS col0
----
-66893

skipif mysql # not compatible
query I rowsort label-3559
SELECT 93 / - COALESCE ( + 7, + MAX ( 12 ) + COUNT ( ALL + 62 ) ) - + CAST ( 55 AS INTEGER ) * - + 16 * - 76 AS col0
----
-66893

query I rowsort
SELECT 8 + + 32
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - COUNT( * ) - - 17 * - 1 * + 56
----
-953

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - COUNT ( * ) - - 17 * - 1 * + 56
----
-953

query I rowsort
SELECT ALL - CASE - 4 WHEN - - ( 90 ) * 79 / - 46 THEN NULL WHEN - 22 THEN - - 8 END
----
NULL

query I rowsort
SELECT ALL 97 * 11
----
1067

query I rowsort
SELECT 85 * + 48 + - ( ( 82 ) ) AS col0
----
3998

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL - COALESCE ( - COUNT( * ), + - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - COALESCE ( - COUNT ( * ), + - 32 )
----
1

query II rowsort
SELECT DISTINCT - ( + 47 ) AS col1, + 55 + - 9 AS col1
----
-47
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 49 * + + 65 + COUNT( * ) AS col0
----
3186

skipif mysql # not compatible
query I rowsort label-3567
SELECT 49 * + + 65 + COUNT ( * ) AS col0
----
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + CASE + 58 WHEN - 21 THEN NULL WHEN - 87 THEN 25 * COUNT( * ) * + COUNT( * ) - - 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + CASE + 58 WHEN - 21 THEN NULL WHEN - 87 THEN 25 * COUNT ( * ) * + COUNT ( * ) - - 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 56 - + - 8 - 34 / + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 56 - + - 8 - 34 / + 68 AS col2
----
NULL

query I rowsort
SELECT 13 * - ( + ( + - 93 ) ) col1
----
1209

query I rowsort
SELECT DISTINCT - 99 + 84 AS col1
----
-15

query I rowsort
SELECT - + CASE - 82 WHEN 74 THEN - 32 + - 29 ELSE + 15 END
----
-15

query I rowsort
SELECT ALL 29 + - + 93
----
-64

query I rowsort
SELECT + 12 * - 62 + + + 40 AS col0
----
-704

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT ALL + 74 * + 70 * + 1 AS col0, + 44 * - COUNT( * ) AS col1
----
5180
-44

skipif mysql # not compatible
query II rowsort label-3575
SELECT ALL + 74 * + 70 * + 1 AS col0, + 44 * - COUNT ( * ) AS col1
----
5180
-44

query I rowsort
SELECT - ( - 45 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT - NULLIF ( - 99, + ( - CASE + 39 WHEN - 71 + + 33 THEN NULL WHEN + + 78 THEN - 11 ELSE - COUNT( * ) / CAST( 50 AS SIGNED ) END ) * - CAST( ( - COUNT( * ) ) / ( COUNT( * ) ) AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-3577
SELECT - NULLIF ( - 99, + ( - CASE + 39 WHEN - 71 + + 33 THEN NULL WHEN + + 78 THEN - 11 ELSE - COUNT ( * ) / CAST ( 50 AS INTEGER ) END ) * - CAST ( ( - COUNT ( * ) ) / ( COUNT ( * ) ) AS INTEGER ) )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3578
SELECT - CAST( + 34 AS SIGNED ) AS col1, - 2 AS col0
----
-34
-2

skipif mysql # not compatible
query II rowsort label-3578
SELECT - CAST ( + 34 AS INTEGER ) AS col1, - 2 AS col0
----
-34
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3580
SELECT ALL 18 * COALESCE ( + 29, + 52 * - 81 + + - 30 - + 89, 39 * MIN( ALL - 20 ) DIV CAST( NULL AS SIGNED ) + 53 ) DIV 82
----
6

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL 18 * COALESCE ( + 29, + 52 * - 81 + + - 30 - + 89, 39 * MIN ( ALL - 20 ) / CAST ( NULL AS INTEGER ) + 53 ) / 82
----
6

query I rowsort
SELECT DISTINCT 40 * + - 97
----
-3880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL - COUNT( * ) DIV ( + + 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - COUNT ( * ) / ( + + 73 ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ( - - 63 ) + - - COUNT( * ) * + 67 + - 24 + 76 + 78 AS col0
----
260

skipif mysql # not compatible
query I rowsort label-3584
SELECT ( - - 63 ) + - - COUNT ( * ) * + 67 + - 24 + 76 + 78 AS col0
----
260

query I rowsort
SELECT 8 + - 22
----
-14

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

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( DISTINCT + + 51 ) * + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 18 + 34
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT - COUNT( * ) * - 65 * MIN( DISTINCT + 45 ) AS col2
----
2925

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - COUNT ( * ) * - 65 * MIN ( DISTINCT + 45 ) AS col2
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL SUM( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL SUM ( 5 )
----
5

query I rowsort
SELECT ALL 91 * 45
----
4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT 8 * 77 DIV + SUM( ALL - 39 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3591
SELECT 8 * 77 / + SUM ( ALL - 39 ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + 8 * - + 63
----
-504

query I rowsort
SELECT DISTINCT - 0 * - 71 + 19 * + 56 * ( + + 20 ) AS col2
----
21280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) / 99 - - + ( CASE 64 WHEN 50 + + 7 THEN + 79 * + + 49 ELSE NULL END ) + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / 99 - - + ( CASE 64 WHEN 50 + + 7 THEN + 79 * + + 49 ELSE NULL END ) + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3595
SELECT 7 + - 98 + + - ( COALESCE ( + - COUNT( DISTINCT + + 76 ), + 4 * - 2 * - CAST( NULL AS SIGNED ) * - 1 * CASE + + 37 WHEN + COUNT( + 45 ) * ( COALESCE ( + 99, - COUNT( * ) - CAST( - 86 AS SIGNED ), + 95 ) ) THEN - 76 WHEN - 5 THEN NULL ELSE 2 * 95 END ) ) + ( - COUNT( * ) + 84 ) DIV COUNT( * ) * + 74 AS col1
----
6052

skipif mysql # not compatible
query I rowsort label-3595
SELECT 7 + - 98 + + - ( COALESCE ( + - COUNT ( DISTINCT + + 76 ), + 4 * - 2 * - CAST ( NULL AS INTEGER ) * - 1 * CASE + + 37 WHEN + COUNT ( + 45 ) * ( COALESCE ( + 99, - COUNT ( * ) - CAST ( - 86 AS INTEGER ), + 95 ) ) THEN - 76 WHEN - 5 THEN NULL ELSE 2 * 95 END ) ) + ( - COUNT ( * ) + 84 ) / COUNT ( * ) * + 74 AS col1
----
6052

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

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

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

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT + CAST ( - 86 AS INTEGER ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL - CAST( 76 AS SIGNED ) + - - 82 + - COUNT( * ) + + - CASE 14 WHEN - COALESCE ( - - 23, 72 + COALESCE ( - - 63, - - 22 ) + - 58, COUNT( ALL - 46 ) + 10 * - 5 ) / 42 THEN - AVG ( DISTINCT - 27 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - CAST ( 76 AS INTEGER ) + - - 82 + - COUNT ( * ) + + - CASE 14 WHEN - COALESCE ( - - 23, 72 + COALESCE ( - - 63, - - 22 ) + - 58, COUNT ( ALL - 46 ) + 10 * - 5 ) / 42 THEN - AVG ( DISTINCT - 27 ) END AS col2
----
NULL

query I rowsort
SELECT + - 59 * 37 AS col1
----
-2183

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT COUNT( * ) * + - 82 - + + 60 AS col1, - 40 AS col0
----
-142
-40

skipif mysql # not compatible
query II rowsort label-3601
SELECT COUNT ( * ) * + - 82 - + + 60 AS col1, - 40 AS col0
----
-142
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - + 40 + - 10 + - 54 + + ( 92 ) * - + MAX( 97 ) * + 14 + 87 AS col1
----
-124953

skipif mysql # not compatible
query I rowsort label-3602
SELECT - + 40 + - 10 + - 54 + + ( 92 ) * - + MAX ( 97 ) * + 14 + 87 AS col1
----
-124953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( ALL - - 28 ) * + 24 + + - 42
----
-18

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( ALL - - 28 ) * + 24 + + - 42
----
-18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3606
SELECT ALL 58 DIV + 68 AS col1, + 79 AS col1
----
0
79

skipif mysql # not compatible
query II rowsort label-3606
SELECT ALL 58 / + 68 AS col1, + 79 AS col1
----
0
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + ( + 85 ) DIV 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3607
SELECT + ( + 85 ) / 41 AS col0
----
2

query I rowsort
SELECT + 46 * + + 23
----
1058

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT + 22 + - - 2, NULLIF ( + 23, + COUNT( * ) ) DIV ( + 78 ) col0
----
24
0

skipif mysql # not compatible
query II rowsort label-3610
SELECT + 22 + - - 2, NULLIF ( + 23, + COUNT ( * ) ) / ( + 78 ) col0
----
24
0

query I rowsort
SELECT DISTINCT 86 * - 79
----
-6794

query II rowsort
SELECT - 98 + 76 * + 72 * - - 27 + + - 96 AS col1, 47 * 11 * 13 * 24
----
147550
161304

query I rowsort
SELECT - 15 * - + 83
----
1245

query I rowsort
SELECT DISTINCT 50 + 64
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT + 79 + + 63 + - 53 * - COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN + 97 * 53 THEN 11 END, + - 39 ) * + + ( + 45 ) AS col0
----
-92873

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 79 + + 63 + - 53 * - COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN + 97 * 53 THEN 11 END, + - 39 ) * + + ( + 45 ) AS col0
----
-92873

query I rowsort
SELECT ALL 85 + - 17 AS col2
----
68

query I rowsort
SELECT DISTINCT + 76 + + 35
----
111

query I rowsort
SELECT + 67 + - + 46 + - 60
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT - 71 DIV + + 18 - + 10 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 71 / + + 18 - + 10 AS col1
----
-13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT + 44 DIV - 2
----
-22

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 44 / - 2
----
-22

query I rowsort
SELECT ALL - 92 * 84 + - 74 + + + 53 AS col2
----
-7749

query I rowsort
SELECT - + 54 + - 85 AS col1
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) * + - ( - 48 ) + - 54 + + - ( - 89 ) - + - NULLIF ( 10, + 27 + - NULLIF ( - COUNT( * ), 64 * - 65 * 72 + CAST( 1 + 83 AS SIGNED ) ) ) * 45 * - 33
----
-14767

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) * + - ( - 48 ) + - 54 + + - ( - 89 ) - + - NULLIF ( 10, + 27 + - NULLIF ( - COUNT ( * ), 64 * - 65 * 72 + CAST ( 1 + 83 AS INTEGER ) ) ) * 45 * - 33
----
-14767

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL + SUM( ALL + + 22 ) AS col0, + 17 + - 39 AS col1
----
22
-22

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + SUM ( ALL + + 22 ) AS col0, + 17 + - 39 AS col1
----
22
-22

query I rowsort
SELECT DISTINCT - - CASE WHEN NOT NULL <> + 73 THEN - 90 + + 54 ELSE NULL END * + 90 * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - - 22 * - - 16 * + - ( - + SUM( ALL - 60 ) ) * MIN( 86 ) + - 83 + - + ( + 44 ) + - - 93 AS col2
----
-1816354

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - - 22 * - - 16 * + - ( - + SUM ( ALL - 60 ) ) * MIN ( 86 ) + - 83 + - + ( + 44 ) + - - 93 AS col2
----
-1816354

query II rowsort
SELECT - 50 + 40, ( + + 71 ) AS col2
----
-10
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT MIN( + 65 ) * - 56 + + 26 - + MIN( DISTINCT + 60 ) + 27 * + COUNT( * ) + + - 2 + + COUNT( * ) DIV 14
----
-3649

skipif mysql # not compatible
query I rowsort label-3629
SELECT MIN ( + 65 ) * - 56 + + 26 - + MIN ( DISTINCT + 60 ) + 27 * + COUNT ( * ) + + - 2 + + COUNT ( * ) / 14
----
-3649

query I rowsort
SELECT - + 52 * + COALESCE ( + - 74, - + 58 ) * - 91 AS col1
----
-350168

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

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

query I rowsort
SELECT ALL + 92 * CASE 80 WHEN - 35 - + 4 + + - 16 + 36 THEN NULL ELSE - 19 END
----
-1748

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT + 81 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + 81 / 90 AS col2
----
0

query I rowsort
SELECT + + 53 * + - 16 + - 5 AS col1
----
-853

query I rowsort
SELECT - COALESCE ( + 58, + 30 ) - + + 18 AS col0
----
-76

query I rowsort
SELECT - CASE 3 WHEN - 56 + + - 59 + - ( - 17 ) * 62 THEN + + ( - + 9 ) + + 99 WHEN - + 77 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 16 + - 58
----
-74

query II rowsort
SELECT DISTINCT 76 AS col0, 73 AS col2
----
76
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3640
SELECT + 98 * - CAST( NULL AS SIGNED ) * 59, - NULLIF ( + + COUNT( * ), - - 15 + + NULLIF ( - 73, - 60 + 69 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3640
SELECT + 98 * - CAST ( NULL AS INTEGER ) * 59, - NULLIF ( + + COUNT ( * ), - - 15 + + NULLIF ( - 73, - 60 + 69 ) ) AS col1
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT + 16 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 16 / + 95 AS col2
----
0

query I rowsort
SELECT ALL 80 + + ( + 57 ) AS col2
----
137

query I rowsort
SELECT + 86 - 37 * 0
----
86

query I rowsort
SELECT DISTINCT + 7 + - 89
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - 53 + - MAX( ALL + 8 )
----
-61

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 53 + - MAX ( ALL + 8 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3646
SELECT ALL CAST( - 40 AS SIGNED ) DIV - 6, - 11 * - + 57 AS col0
----
6
627

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL CAST ( - 40 AS INTEGER ) / - 6, - 11 * - + 57 AS col0
----
6
627

query I rowsort
SELECT ALL 44 + - - 47 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT - CASE - + ( 87 ) WHEN - + CASE + 1 WHEN COUNT( * ) * - 56 - - 55 THEN + 30 * + ( 7 ) * - CAST( NULL AS SIGNED ) * + 63 + 76 END * 52 * + COUNT( * ) + - 23 THEN + 53 END * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT - CASE - + ( 87 ) WHEN - + CASE + 1 WHEN COUNT ( * ) * - 56 - - 55 THEN + 30 * + ( 7 ) * - CAST ( NULL AS INTEGER ) * + 63 + 76 END * 52 * + COUNT ( * ) + - 23 THEN + 53 END * 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3649
SELECT - 26 + COALESCE ( + 13, + 63, + 30 ) + - 99 * + - CAST( COUNT( * ) AS DECIMAL ) * + 18 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 26 + COALESCE ( + 13, + 63, + 30 ) + - 99 * + - CAST ( COUNT ( * ) AS REAL ) * + 18 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3650
SELECT - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + 3 + + COALESCE ( + + 94, - ( + 89 ), - COUNT( * ) ) + + COUNT( DISTINCT + - 10 ) + - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 3 + + COALESCE ( + + 94, - ( + 89 ), - COUNT ( * ) ) + + COUNT ( DISTINCT + - 10 ) + - + COUNT ( * )
----
97

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

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

query II rowsort
SELECT ALL 13 AS col1, + 97 - 30 + 18
----
13
85

query I rowsort
SELECT DISTINCT 67 + 61 AS col2
----
128

query I rowsort
SELECT COALESCE ( + 7, - 37 ) * + 8 AS col1
----
56

query I rowsort
SELECT ALL - 19 * + 44 AS col0
----
-836

query II rowsort
SELECT 92 AS col0, - 45 - + 28
----
92
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL CASE - NULLIF ( - 25, + - 75 ) WHEN - 19 THEN NULL WHEN - 14 THEN NULL ELSE 64 END - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL CASE - NULLIF ( - 25, + - 75 ) WHEN - 19 THEN NULL WHEN - 14 THEN NULL ELSE 64 END - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 70 - 63 + - 87
----
-220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3660
SELECT DISTINCT - 39 AS col1, - CASE 88 WHEN - 63 THEN NULL WHEN COALESCE ( 83, 49 * - COALESCE ( + ( COUNT( * ) ), + + 74 + + 33 + + + CAST( NULL AS DECIMAL ) * + CASE - 27 WHEN 20 + 25 / 98 THEN + 78 ELSE NULL END ) * 95, ( 3 ) / + 45 ) THEN 45 * - 83 ELSE 54 + 0 END * - 42 + - ( MIN( + 5 ) ) AS col2
----
-39
2263

skipif mysql # not compatible
query II rowsort label-3660
SELECT DISTINCT - 39 AS col1, - CASE 88 WHEN - 63 THEN NULL WHEN COALESCE ( 83, 49 * - COALESCE ( + ( COUNT ( * ) ), + + 74 + + 33 + + + CAST ( NULL AS REAL ) * + CASE - 27 WHEN 20 + 25 / 98 THEN + 78 ELSE NULL END ) * 95, ( 3 ) / + 45 ) THEN 45 * - 83 ELSE 54 + 0 END * - 42 + - ( MIN ( + 5 ) ) AS col2
----
-39
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - COUNT( * ) * + 4 * + 77 * - 11 - + 96 + - 74 + + COUNT( * )
----
3219

skipif mysql # not compatible
query I rowsort label-3661
SELECT - COUNT ( * ) * + 4 * + 77 * - 11 - + 96 + - 74 + + COUNT ( * )
----
3219

query I rowsort
SELECT - 65 + 2 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT - MAX( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3663
SELECT - MAX ( 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT + 87 - COUNT( * ) - + NULLIF ( - 55, - COUNT( * ) DIV - - COALESCE ( + + 79, - - 7 + NULLIF ( + 40, + 77 ) ) + + ( ( - + NULLIF ( - 50, - 49 * - ( 68 * ( 73 ) ) + + 52 ) ) ) ) DIV 91 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 87 - COUNT ( * ) - + NULLIF ( - 55, - COUNT ( * ) / - - COALESCE ( + + 79, - - 7 + NULLIF ( + 40, + 77 ) ) + + ( ( - + NULLIF ( - 50, - 49 * - ( 68 * ( 73 ) ) + + 52 ) ) ) ) / 91 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - SUM( 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - SUM ( 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + 0 * + MIN( DISTINCT + 2 ) - COALESCE ( 12, - + 11 - + + ( ( - + 27 ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3666
SELECT + 0 * + MIN ( DISTINCT + 2 ) - COALESCE ( 12, - + 11 - + + ( ( - + 27 ) ) )
----
-12

query I rowsort
SELECT + 14 + 49 + + 89
----
152

query I rowsort
SELECT ALL 98 * - - 13 + + + 60 * + 61
----
4934

query I rowsort
SELECT DISTINCT - - 54 * - 66
----
-3564

query I rowsort
SELECT DISTINCT + 35 * - 27 col1
----
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3671
SELECT CAST( COALESCE ( + + CAST( 84 AS SIGNED ), - 91, - 6 ) AS SIGNED ) * + 1 + 1 - 3 DIV - ( - + 82 ) * + 39 DIV + 39 - - COUNT( * ) * 71 * + 68
----
4913

skipif mysql # not compatible
query I rowsort label-3671
SELECT CAST ( COALESCE ( + + CAST ( 84 AS INTEGER ), - 91, - 6 ) AS INTEGER ) * + 1 + 1 - 3 / - ( - + 82 ) * + 39 / + 39 - - COUNT ( * ) * 71 * + 68
----
4913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT COUNT( * ) + - + 41 + - 89 * - SUM( - 75 ) * 59 DIV + - COUNT( * ) col2
----
393785

skipif mysql # not compatible
query I rowsort label-3672
SELECT COUNT ( * ) + - + 41 + - 89 * - SUM ( - 75 ) * 59 / + - COUNT ( * ) col2
----
393785

query II rowsort
SELECT ALL 23 AS col1, 4 AS col0
----
23
4

query II rowsort
SELECT DISTINCT + 21 + + 44 AS col1, 65
----
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT COUNT( * ) + - 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3675
SELECT COUNT ( * ) + - 90 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + MIN( ALL - - 7 ) * + SUM( + + ( ( - 62 ) ) ) * 72
----
-31248

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + MIN ( ALL - - 7 ) * + SUM ( + + ( ( - 62 ) ) ) * 72
----
-31248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3677
SELECT 98 + - - COUNT( * ) * + 92 DIV - 44 - + + 52 * 1 AS col1, 0 + + 6 + - - 65 * 47
----
44
3061

skipif mysql # not compatible
query II rowsort label-3677
SELECT 98 + - - COUNT ( * ) * + 92 / - 44 - + + 52 * 1 AS col1, 0 + + 6 + - - 65 * 47
----
44
3061

onlyif mysql # DIV for integer division: 
query II rowsort label-3678
SELECT 7 + + 29 * + 38 + + 15 AS col1, - NULLIF ( - 89, - 43 * + 56 + + 46 ) - + 86 + - 73 + - 40 DIV 37 + + + 80 * - 42 * 69 * 42 AS col0
----
1124
-9737351

skipif mysql # not compatible
query II rowsort label-3678
SELECT 7 + + 29 * + 38 + + 15 AS col1, - NULLIF ( - 89, - 43 * + 56 + + 46 ) - + 86 + - 73 + - 40 / 37 + + + 80 * - 42 * 69 * 42 AS col0
----
1124
-9737351

query I rowsort
SELECT 10 * 77
----
770

onlyif mysql # DIV for integer division: 
query II rowsort label-3680
SELECT 36 AS col2, 55 DIV COALESCE ( 20, + 84 + + - 89 DIV 59 )
----
36
2

skipif mysql # not compatible
query II rowsort label-3680
SELECT 36 AS col2, 55 / COALESCE ( 20, + 84 + + - 89 / 59 )
----
36
2

query II rowsort
SELECT ALL 57 AS col2, 35 AS col1
----
57
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT ALL 84 DIV + 87 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 84 / + 87 * - 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT 42 + + + COUNT( * ) DIV + - 33 + 11
----
53

skipif mysql # not compatible
query I rowsort label-3683
SELECT 42 + + + COUNT ( * ) / + - 33 + 11
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT ALL - CAST( + 23 AS SIGNED ) - - 69 - - + 90 DIV + 64 - 44 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - CAST ( + 23 AS INTEGER ) - - 69 - - + 90 / + 64 - 44 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 34 + + 93 + - 66 DIV + 99 * + - ( + 12 ) - + + 25 + + 31
----
133

skipif mysql # not compatible
query I rowsort label-3685
SELECT 34 + + 93 + - 66 / + 99 * + - ( + 12 ) - + + 25 + + 31
----
133

query I rowsort
SELECT - 96 * + + 73 * 3 AS col0
----
-21024

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + COUNT( * ) + - 23 * + 96
----
-2207

skipif mysql # not compatible
query I rowsort label-3687
SELECT + COUNT ( * ) + - 23 * + 96
----
-2207

query I rowsort
SELECT + 5 + - 5
----
0

query I rowsort
SELECT 26 * 40 * 62 AS col0
----
64480

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

query II rowsort
SELECT DISTINCT - 85 AS col0, - 7 * + 72 AS col1
----
-85
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT ALL - + 88 AS col0, + SUM( DISTINCT + + 19 ) * COUNT( * ) AS col0
----
-88
19

skipif mysql # not compatible
query II rowsort label-3692
SELECT ALL - + 88 AS col0, + SUM ( DISTINCT + + 19 ) * COUNT ( * ) AS col0
----
-88
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - COALESCE ( + 97, + 9, COUNT( * ) + - 83 * - 63, + ( COUNT( * ) ) * + 24 * + 54 - - COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3693
SELECT - COALESCE ( + 97, + 9, COUNT ( * ) + - 83 * - 63, + ( COUNT ( * ) ) * + 24 * + 54 - - COUNT ( * ) )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT + 48 DIV 61 + - 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 48 / 61 + - 35 col0
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3696
SELECT DISTINCT - 64 AS col2, - NULLIF ( - 4, 18 * COALESCE ( 4, + + 52, + + COUNT( * ) * - + COUNT( DISTINCT - 85 ) + - 56 ) ) DIV - 38 - + 41
----
-64
-41

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT - 64 AS col2, - NULLIF ( - 4, 18 * COALESCE ( 4, + + 52, + + COUNT ( * ) * - + COUNT ( DISTINCT - 85 ) + - 56 ) ) / - 38 - + 41
----
-64
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT + 14 * + COUNT( * ) + 54 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT + 14 * + COUNT ( * ) + 54 AS col0
----
68

query II rowsort
SELECT ALL - - 51 AS col2, 36 + 49
----
51
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT DISTINCT - COALESCE ( 15, - COUNT( * ) * COUNT( * ) + + + 99, + 19 ) AS col2, COUNT( DISTINCT + - 72 )
----
-15
1

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT - COALESCE ( 15, - COUNT ( * ) * COUNT ( * ) + + + 99, + 19 ) AS col2, COUNT ( DISTINCT + - 72 )
----
-15
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3702
SELECT - 0 AS col2, ( - + 62 ) DIV COALESCE ( - - 57, 23 ) * + 93 * + 19 + - 35 * - 43 + + + 2 AS col1
----
0
-260

skipif mysql # not compatible
query II rowsort label-3702
SELECT - 0 AS col2, ( - + 62 ) / COALESCE ( - - 57, 23 ) * + 93 * + 19 + - 35 * - 43 + + + 2 AS col1
----
0
-260

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT ALL 9 + - COUNT( * ) AS col0, + 51
----
8
51

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL 9 + - COUNT ( * ) AS col0, + 51
----
8
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + 79 * COUNT( * ) + - 96 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3704
SELECT + 79 * COUNT ( * ) + - 96 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT CASE + + 63 WHEN 10 THEN NULL WHEN + - ( + COUNT( * ) ) * + + 95 + + NULLIF ( - 5, + - 65 + + CAST( NULL AS SIGNED ) ) * + CASE - 17 WHEN 73 * 96 * 11 - - 40 THEN - ( + 76 ) + + 9 WHEN + ( - 96 ) THEN - 86 ELSE NULL END THEN 18 ELSE 5 END + + COUNT( - 50 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3705
SELECT CASE + + 63 WHEN 10 THEN NULL WHEN + - ( + COUNT ( * ) ) * + + 95 + + NULLIF ( - 5, + - 65 + + CAST ( NULL AS INTEGER ) ) * + CASE - 17 WHEN 73 * 96 * 11 - - 40 THEN - ( + 76 ) + + 9 WHEN + ( - 96 ) THEN - 86 ELSE NULL END THEN 18 ELSE 5 END + + COUNT ( - 50 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3706
SELECT ALL + 14 DIV - - CAST( 37 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + 14 / - - CAST ( 37 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT + 1 AS col0, 59
----
1
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - + CASE - 86 WHEN 79 * 75 + - 68 + 60 * 81 THEN NULL WHEN 41 THEN 90 END * COUNT( * ) * + 26 + 45 / + ( + - CASE 44 WHEN - 77 * ( COALESCE ( 86, 26 * 22 ) * + 1 + 0 * 54 ) THEN - 9 * NULLIF ( - CAST( NULL AS SIGNED ), + ( + 3 ) ) - 42 WHEN - 58 THEN - 66 WHEN 51 * - 94 THEN NULL ELSE NULL END ) * + 18 + + 68 + 28 * ( 59 + 69 * - CAST( 27 * - COUNT( * ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + CASE - 86 WHEN 79 * 75 + - 68 + 60 * 81 THEN NULL WHEN 41 THEN 90 END * COUNT ( * ) * + 26 + 45 / + ( + - CASE 44 WHEN - 77 * ( COALESCE ( 86, 26 * 22 ) * + 1 + 0 * 54 ) THEN - 9 * NULLIF ( - CAST ( NULL AS INTEGER ), + ( + 3 ) ) - 42 WHEN - 58 THEN - 66 WHEN 51 * - 94 THEN NULL ELSE NULL END ) * + 18 + + 68 + 28 * ( 59 + 69 * - CAST ( 27 * - COUNT ( * ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT + COUNT( 87 ), 73 AS col1
----
1
73

skipif mysql # not compatible
query II rowsort label-3709
SELECT + COUNT ( 87 ), 73 AS col1
----
1
73

query I rowsort
SELECT DISTINCT + 25 + - 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL - CAST( + + 14 AS SIGNED ) * 60
----
-840

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - CAST ( + + 14 AS INTEGER ) * 60
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL MAX( 79 ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL MAX ( 79 ) + - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3713
SELECT 20 DIV 52, MAX( DISTINCT + + 33 ) col2
----
0
33

skipif mysql # not compatible
query II rowsort label-3713
SELECT 20 / 52, MAX ( DISTINCT + + 33 ) col2
----
0
33

query I rowsort
SELECT ALL - NULLIF ( 89, - 12 ) + - 70 AS col2
----
-159

query I rowsort
SELECT 27 * + + 98 col1
----
2646

query I rowsort
SELECT ALL 62 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL ( + 51 ) + + CAST( - SUM( + 22 ) AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL ( + 51 ) + + CAST ( - SUM ( + 22 ) AS INTEGER ) AS col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT COUNT( * ) + - 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3719
SELECT COUNT ( * ) + - 11 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - NULLIF ( 67, + ( - COUNT( * ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3720
SELECT - NULLIF ( 67, + ( - COUNT ( * ) ) )
----
-67

query I rowsort
SELECT 52 + - 28 + + 13 + - 58 + + 69 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT COUNT( 49 ) * - 41 * 99 * + - COUNT( * )
----
4059

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( 49 ) * - 41 * 99 * + - COUNT ( * )
----
4059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL + CAST( COUNT( DISTINCT - + 93 ) AS SIGNED ) - 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + CAST ( COUNT ( DISTINCT - + 93 ) AS INTEGER ) - 32 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 45 * 85
----
-3825

query II rowsort
SELECT DISTINCT - 53 * + 68 AS col2, 73
----
-3604
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT - - 48 + + + 73 + 30 AS col2, COUNT( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2
----
151
-29

skipif mysql # not compatible
query II rowsort label-3726
SELECT - - 48 + + + 73 + 30 AS col2, COUNT ( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2
----
151
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT - - 31 * 38 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT - - 31 * 38 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 4 * + 8
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT - MAX( - 4 ) AS col0, + 80 * + 89
----
4
7120

skipif mysql # not compatible
query II rowsort label-3729
SELECT - MAX ( - 4 ) AS col0, + 80 * + 89
----
4
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3730
SELECT - COUNT( + 50 ) DIV + COALESCE ( - CAST( NULL AS SIGNED ), - 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COUNT ( + 50 ) / + COALESCE ( - CAST ( NULL AS INTEGER ), - 73 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL - COUNT( * ) * - NULLIF ( + 67, + + CASE + - 11 WHEN + 40 THEN 21 ELSE NULL END * - + 51 * - + 15 ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - COUNT ( * ) * - NULLIF ( + 67, + + CASE + - 11 WHEN + 40 THEN 21 ELSE NULL END * - + 51 * - + 15 ) * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT - CASE 86 WHEN 22 * + SUM( - + NULLIF ( 21, - 72 / - - 74 * - 34 ) ) - + 87 THEN - - CAST( - 47 AS SIGNED ) * 95 + 67 + 1 END / - 1 * + 27 + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - CASE 86 WHEN 22 * + SUM ( - + NULLIF ( 21, - 72 / - - 74 * - 34 ) ) - + 87 THEN - - CAST ( - 47 AS INTEGER ) * 95 + 67 + 1 END / - 1 * + 27 + - 75
----
NULL

query I rowsort
SELECT ALL + 63 * 91 + + 31 AS col2
----
5764

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3734
SELECT + 41 / 45 + + 56 + CASE + AVG ( 63 ) WHEN 96 THEN 4 + - 75 WHEN + 38 THEN COALESCE ( + + 55, + MAX( DISTINCT - CASE + + 60 WHEN + 30 + CAST( 56 AS DECIMAL ) * 76 THEN NULL ELSE + 30 END ) * 2 ) * + 46 END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 41 / 45 + + 56 + CASE + AVG ( 63 ) WHEN 96 THEN 4 + - 75 WHEN + 38 THEN COALESCE ( + + 55, + MAX ( DISTINCT - CASE + + 60 WHEN + 30 + CAST ( 56 AS REAL ) * 76 THEN NULL ELSE + 30 END ) * 2 ) * + 46 END + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT( * ) ) AS col1, 45 AS col1
----
-5455
45

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT ( * ) ) AS col1, 45 AS col1
----
-5455
45

query II rowsort
SELECT ALL - 85 * - 64 AS col1, - 41 * + - NULLIF ( + 87, + NULLIF ( - 8, - 56 ) * + - 7 )
----
5440
3567

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

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COALESCE ( 37, + + 43 ) * + COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3738
SELECT ALL + ( + + NULLIF ( + 57, CAST( 18 AS SIGNED ) ) ) * + COUNT( * ) + 66 DIV COUNT( * ) DIV 22 + 26 * - ( - 32 ) + COUNT( * ) AS col1
----
893

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + ( + + NULLIF ( + 57, CAST ( 18 AS INTEGER ) ) ) * + COUNT ( * ) + 66 / COUNT ( * ) / 22 + 26 * - ( - 32 ) + COUNT ( * ) AS col1
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - + COALESCE ( + COALESCE ( - 64, - + SUM( + - ( - 43 ) ) ), + 0 ) * 97 * - 34 + - COUNT( ALL + 46 ) AS col2
----
-211073

skipif mysql # not compatible
query I rowsort label-3739
SELECT - + COALESCE ( + COALESCE ( - 64, - + SUM ( + - ( - 43 ) ) ), + 0 ) * 97 * - 34 + - COUNT ( ALL + 46 ) AS col2
----
-211073

query I rowsort
SELECT + 63 + - + 2 AS col1
----
61

query I rowsort
SELECT ALL 56 * 15 + - 47 + - 11 AS col2
----
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + 75 * + CAST( - + 83 AS SIGNED ) * + + 92 + + SUM( ALL - 85 ) * - 43 + 39 * - 20
----
-569825

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 75 * + CAST ( - + 83 AS INTEGER ) * + + 92 + + SUM ( ALL - 85 ) * - 43 + 39 * - 20
----
-569825

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3744
SELECT + 3 + + CAST( NULL AS DECIMAL ) + 44 / 12 + + 7 + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT + 3 + + CAST ( NULL AS REAL ) + 44 / 12 + + 7 + - 30 AS col0
----
NULL

query I rowsort
SELECT - 99 * - 86 - + 60 AS col2
----
8454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) ) / - 61 * + + 44 * CASE + + 58 WHEN 77 THEN COUNT( * ) WHEN + 2 THEN NULL ELSE - 49 * + - 63 + + + 59 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) ) / - 61 * + + 44 * CASE + + 58 WHEN 77 THEN COUNT ( * ) WHEN + 2 THEN NULL ELSE - 49 * + - 63 + + + 59 END * + 16
----
NULL

query I rowsort
SELECT + 97 * + 23 AS col0
----
2231

query I rowsort
SELECT ALL AVG ( DISTINCT - CASE 90 WHEN - 97 THEN + 13 + 26 - + + 46 WHEN ( - 33 ) - 88 THEN + - 19 * + 41 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + MIN( - + 58 ) + - COUNT( * ) + - 20
----
-79

skipif mysql # not compatible
query I rowsort label-3749
SELECT + MIN ( - + 58 ) + - COUNT ( * ) + - 20
----
-79

query I rowsort
SELECT ALL + 13 * 63
----
819

query I rowsort
SELECT + 50 + - 44 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3752
SELECT DISTINCT 4 AS col0, 92 * + + ( + NULLIF ( 61, + 37 * - + ( - CAST( NULL AS SIGNED ) ) / + + COUNT( * ) ) ) AS col1
----
4
5612

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT 4 AS col0, 92 * + + ( + NULLIF ( 61, + 37 * - + ( - CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) ) ) AS col1
----
4
5612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT + 37 * - ( + COUNT( * ) ) / + - CASE 69 WHEN COALESCE ( + 75, 72 * - 83 + - 10 * + 9 + + NULLIF ( 86, CAST( NULL AS SIGNED ) / + 89 + + 32 + - 92 ) ) + - 91 THEN NULL WHEN - 10 THEN 57 * ( ( - 57 ) ) WHEN + COUNT( * ) * - 86 THEN CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + MIN( ALL - 46 ) THEN NULL WHEN 18 / + 30 THEN NULL ELSE - 4 END ELSE NULL END - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT + 37 * - ( + COUNT ( * ) ) / + - CASE 69 WHEN COALESCE ( + 75, 72 * - 83 + - 10 * + 9 + + NULLIF ( 86, CAST ( NULL AS INTEGER ) / + 89 + + 32 + - 92 ) ) + - 91 THEN NULL WHEN - 10 THEN 57 * ( ( - 57 ) ) WHEN + COUNT ( * ) * - 86 THEN CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + MIN ( ALL - 46 ) THEN NULL WHEN 18 / + 30 THEN NULL ELSE - 4 END ELSE NULL END - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT - 43 * CAST( 94 AS SIGNED )
----
-4042

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 43 * CAST ( 94 AS INTEGER )
----
-4042

query I rowsort
SELECT ALL 49 * + - 53 AS col1
----
-2597

query I rowsort
SELECT + 55 + - + 34
----
21

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT - NULLIF ( + - 3, ( + 63 ) + + 77 - - + 45 * + - 13 DIV + COUNT( * ) * - AVG ( ALL 94 ) ) DIV + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT - NULLIF ( + - 3, ( + 63 ) + + 77 - - + 45 * + - 13 / + COUNT ( * ) * - AVG ( ALL 94 ) ) / + 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 17 + + + COUNT( DISTINCT - - 90 ) * 1 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 17 + + + COUNT ( DISTINCT - - 90 ) * 1 AS col1
----
18

query I rowsort
SELECT - NULLIF ( - - 74, - + 89 + - 36 ) + + + 2 AS col0
----
-72

query II rowsort
SELECT DISTINCT 11, + 81 col0
----
11
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT DISTINCT CAST( AVG ( DISTINCT NULLIF ( 59, - 38 ) ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT CAST ( AVG ( DISTINCT NULLIF ( 59, - 38 ) ) AS INTEGER )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT - + 19 + COUNT( * ) DIV COUNT( * ) * + 69 DIV - 40
----
-20

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + 19 + COUNT ( * ) / COUNT ( * ) * + 69 / - 40
----
-20

query II rowsort
SELECT DISTINCT 34 AS col1, 81
----
34
81

query I rowsort
SELECT ALL + - 97 + - 43 AS col2
----
-140

query I rowsort
SELECT + 34 * - 42
----
-1428

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + + 80, - 12 + + 30 * - 92 ) ) * - - 56 AS col1
----
-4480

query II rowsort
SELECT + 62, + 94 AS col2
----
62
94

query I rowsort
SELECT - - 87 * - 43 + 98 + - + 10 AS col1
----
-3653

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT ALL ( + 23 ) DIV - 48 * + 8 + - + 8 DIV - 40 * - 1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL ( + 23 ) / - 48 * + 8 + - + 8 / - 40 * - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + NULLIF ( - SUM( - 47 ), + 51 ) * + - 17
----
-799

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + NULLIF ( - SUM ( - 47 ), + 51 ) * + - 17
----
-799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT - + SUM( DISTINCT + 2 ) DIV 30 + - MAX( ALL - - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - + SUM ( DISTINCT + 2 ) / 30 + - MAX ( ALL - - 43 ) col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT DISTINCT - 44 DIV CAST( - 89 AS SIGNED ) * - - ( 87 ) + + CAST( ( COUNT( * ) ) AS SIGNED ) + + - 67 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - 44 / CAST ( - 89 AS INTEGER ) * - - ( 87 ) + + CAST ( ( COUNT ( * ) ) AS INTEGER ) + + - 67 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT DISTINCT + + 9 AS col2, - 68 * + ( + 54 ) * + 92 * + + 75 * - ( + COUNT( * ) ) * 16 + + 23 + + - 39 * + CAST( - CASE 70 WHEN - COALESCE ( + - 42, - 29 * - + 97 + 11 ) - - 42 / COALESCE ( + 2 * - 55 + 23 * 15, 36 ) THEN - 78 / 38 WHEN 2 THEN NULL WHEN + 12 / COUNT( * ) + - 44 / 53 THEN + 67 END AS SIGNED ) * - 67 - 18 / - 89 + + MIN( ALL - 71 + + 20 ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT + + 9 AS col2, - 68 * + ( + 54 ) * + 92 * + + 75 * - ( + COUNT ( * ) ) * 16 + + 23 + + - 39 * + CAST ( - CASE 70 WHEN - COALESCE ( + - 42, - 29 * - + 97 + 11 ) - - 42 / COALESCE ( + 2 * - 55 + 23 * 15, 36 ) THEN - 78 / 38 WHEN 2 THEN NULL WHEN + 12 / COUNT ( * ) + - 44 / 53 THEN + 67 END AS INTEGER ) * - 67 - 18 / - 89 + + MIN ( ALL - 71 + + 20 ) AS col1
----
9
NULL

query I rowsort
SELECT - + ( + 20 ) + - ( - ( + + 19 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT ALL 5 DIV + NULLIF ( + - COUNT( * ), - - 14 ) + + COUNT( * ) * + + 24 * + 19 AS col1
----
451

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL 5 / + NULLIF ( + - COUNT ( * ), - - 14 ) + + COUNT ( * ) * + + 24 * + 19 AS col1
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT - - 43 DIV 97 + - - 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - 43 / 97 + - - 33 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT ALL CASE + ( + 11 ) WHEN - 43 DIV - - 21 + - ( - + 7 ) + 41 THEN NULL WHEN + - 26 + + ( + - 73 ) THEN - 39 ELSE + 10 + - - 81 - + COUNT( + 32 ) - 77 + 17 DIV 32 - - 81 DIV 57 END DIV + ( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL CASE + ( + 11 ) WHEN - 43 / - - 21 + - ( - + 7 ) + 41 THEN NULL WHEN + - 26 + + ( + - 73 ) THEN - 39 ELSE + 10 + - - 81 - + COUNT ( + 32 ) - 77 + 17 / 32 - - 81 / 57 END / + ( 48 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL - 8 / - CAST( NULL AS SIGNED ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - 8 / - CAST ( NULL AS INTEGER ) + + 24
----
NULL

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

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

query I rowsort
SELECT + 10 + - ( + + 28 ) + - 76 + + + 21 * + 76 AS col1
----
1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL - COUNT( * ) * - COALESCE ( - 43, 82, + + 14 * + 27 + - - 10 ) - + - CAST( NULL AS SIGNED ) / - 23 + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - COUNT ( * ) * - COALESCE ( - 43, 82, + + 14 * + 27 + - - 10 ) - + - CAST ( NULL AS INTEGER ) / - 23 + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT COUNT( * ) * + 33
----
33

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT COUNT ( * ) * + 33
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL 68 * CASE - - 21 WHEN - COUNT( * ) + + - COUNT( * ) - - - COUNT( * ) THEN NULL ELSE - - 44 END
----
2992

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 68 * CASE - - 21 WHEN - COUNT ( * ) + + - COUNT ( * ) - - - COUNT ( * ) THEN NULL ELSE - - 44 END
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 27 - - COUNT( * ) + + 85
----
113

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 27 - - COUNT ( * ) + + 85
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - CAST( + - CASE - - 64 WHEN + 82 + + 59 THEN + 14 / - AVG ( DISTINCT 63 ) + CASE + + 88 WHEN + 70 / + - 6 - + - 35 + - MIN( ALL 59 ) THEN 68 + - + 56 WHEN + + 91 + - 21 * + 29 THEN NULL END * - 5 WHEN 79 * ( + 19 * 43 ) THEN NULL WHEN 6 + ( - MIN( DISTINCT + 28 ) - - ( - 98 + + 48 * 64 ) / 66 ) * - 57 THEN NULL ELSE - 54 END AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - CAST ( + - CASE - - 64 WHEN + 82 + + 59 THEN + 14 / - AVG ( DISTINCT 63 ) + CASE + + 88 WHEN + 70 / + - 6 - + - 35 + - MIN ( ALL 59 ) THEN 68 + - + 56 WHEN + + 91 + - 21 * + 29 THEN NULL END * - 5 WHEN 79 * ( + 19 * 43 ) THEN NULL WHEN 6 + ( - MIN ( DISTINCT + 28 ) - - ( - 98 + + 48 * 64 ) / 66 ) * - 57 THEN NULL ELSE - 54 END AS INTEGER ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL NULLIF ( + + 86, + 64 + - 79 ) * + 42 + + ( - + ( 44 ) ) + NULLIF ( ( + - CASE 95 WHEN + + ( 95 ) * ( + - 24 ) * 80 + - + 66 THEN NULL WHEN 73 THEN 28 * COUNT( ALL - 61 ) END ), + NULLIF ( + 76, 22 ) + 61 * 87 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL NULLIF ( + + 86, + 64 + - 79 ) * + 42 + + ( - + ( 44 ) ) + NULLIF ( ( + - CASE 95 WHEN + + ( 95 ) * ( + - 24 ) * 80 + - + 66 THEN NULL WHEN 73 THEN 28 * COUNT ( ALL - 61 ) END ), + NULLIF ( + 76, 22 ) + 61 * 87 ) col0
----
NULL

query I rowsort
SELECT 26 - + 83
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT MIN( ALL - 56 ) * + CASE + 4 WHEN - 96 - + + 45 + - CAST( - + COUNT( * ) AS SIGNED ) / - - CAST( NULL AS SIGNED ) * - + CAST( 32 AS SIGNED ) THEN 74 WHEN + 14 THEN 22 + - 27 + - + 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT MIN ( ALL - 56 ) * + CASE + 4 WHEN - 96 - + + 45 + - CAST ( - + COUNT ( * ) AS INTEGER ) / - - CAST ( NULL AS INTEGER ) * - + CAST ( 32 AS INTEGER ) THEN 74 WHEN + 14 THEN 22 + - 27 + - + 84 ELSE NULL END
----
NULL

query II rowsort
SELECT 35 + + 68 col0, 33 AS col1
----
103
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT COUNT( * ) * + + 56 + + 49 + - 62 AS col0, - 60 col2
----
43
-60

skipif mysql # not compatible
query II rowsort label-3792
SELECT COUNT ( * ) * + + 56 + + 49 + - 62 AS col0, - 60 col2
----
43
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3793
SELECT ( - 7 ) + + - 21 + - CAST( - 90 AS SIGNED ) - 48 + - 1, 71 * 13 col0
----
13
923

skipif mysql # not compatible
query II rowsort label-3793
SELECT ( - 7 ) + + - 21 + - CAST ( - 90 AS INTEGER ) - 48 + - 1, 71 * 13 col0
----
13
923

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - COUNT( * ) + 92 * + 68
----
6255

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - COUNT ( * ) + 92 * + 68
----
6255

query I rowsort
SELECT ALL + ( + 23 ) + + 50 - - 57 col0
----
130

query I rowsort
SELECT ALL - 70 + - + 39 * - 60 + 56 * + 22 AS col1
----
3502

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL - 59 DIV - - 41 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - 59 / - - 41 col1
----
-1

query I rowsort
SELECT DISTINCT 17 + 31 AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT + 56 - + 8 + + 54 DIV 72 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3799
SELECT + 56 - + 8 + + 54 / 72 AS col2
----
48

query I rowsort
SELECT DISTINCT + 26 * 45
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - NULLIF ( 43, COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3801
SELECT - NULLIF ( 43, COUNT ( * ) ) AS col1
----
-43

query I rowsort
SELECT - ( 49 ) + 56
----
7

query I rowsort
SELECT 57 * + ( - + 16 ) col1
----
-912

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

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

query I rowsort
SELECT ALL - ( 62 ) AS col1
----
-62

query I rowsort
SELECT ALL - 61 - - 4 * 1 * + 79 * + - 32 col1
----
-10173

query I rowsort
SELECT ALL + 3 * - 76
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT + SUM( DISTINCT + + 30 ) DIV 9 + + ( + - 94 ) + - + 13 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3808
SELECT + SUM ( DISTINCT + + 30 ) / 9 + + ( + - 94 ) + - + 13 AS col0
----
-104

query I rowsort
SELECT 27 * - + 34
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 1 + + ( MIN( ALL - 22 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3810
SELECT 1 + + ( MIN ( ALL - 22 ) ) AS col2
----
-21

query I rowsort
SELECT 40 * + 19
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL + CAST( NULL AS SIGNED ) * + COALESCE ( CASE 62 WHEN + - 10 THEN - COUNT( * ) * - 88 END, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + CAST ( NULL AS INTEGER ) * + COALESCE ( CASE 62 WHEN + - 10 THEN - COUNT ( * ) * - 88 END, COUNT ( * ) ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT 17 * - CAST( - ( + 17 ) AS SIGNED )
----
289

skipif mysql # not compatible
query I rowsort label-3814
SELECT 17 * - CAST ( - ( + 17 ) AS INTEGER )
----
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT 49 * + SUM( 0 ) * ( CASE 75 WHEN - 53 * - + CAST( NULL AS SIGNED ) * CASE - + 47 WHEN + CAST( NULL AS SIGNED ) THEN + + 0 END THEN - MIN( ALL - 63 ) * - 53 - + + 81 WHEN NULLIF ( + 70, + 7 + - 51 ) THEN + 43 * 83 - - AVG ( ALL 41 + 92 ) WHEN - 49 THEN NULL WHEN 28 THEN COUNT( ( - 14 ) ) WHEN - COUNT( * ) THEN NULL END ) + + 3 * + CASE + 16 * 15 WHEN + 4 THEN - 37 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT 49 * + SUM ( 0 ) * ( CASE 75 WHEN - 53 * - + CAST ( NULL AS INTEGER ) * CASE - + 47 WHEN + CAST ( NULL AS INTEGER ) THEN + + 0 END THEN - MIN ( ALL - 63 ) * - 53 - + + 81 WHEN NULLIF ( + 70, + 7 + - 51 ) THEN + 43 * 83 - - AVG ( ALL 41 + 92 ) WHEN - 49 THEN NULL WHEN 28 THEN COUNT ( ( - 14 ) ) WHEN - COUNT ( * ) THEN NULL END ) + + 3 * + CASE + 16 * 15 WHEN + 4 THEN - 37 + COUNT ( * ) ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT 21 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT 21 / + 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT MAX( ALL + 36 ) + + + 68 * - 80 * - 84
----
456996

skipif mysql # not compatible
query I rowsort label-3818
SELECT MAX ( ALL + 36 ) + + + 68 * - 80 * - 84
----
456996

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - COUNT( * ) * 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3819
SELECT - COUNT ( * ) * 73 + + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT 35 + 56 + 78 + - 50 AS col0
----
119

query I rowsort
SELECT 45 * + - 34
----
-1530

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

skipif mysql # not compatible
query I rowsort label-3822
SELECT CAST ( NULL AS INTEGER ) * 9 + - 70 + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( + - 3, + 11 DIV 44 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( + - 3, + 11 / 44 ) AS col1
----
3

query I rowsort
SELECT DISTINCT - 69 + + 32
----
-37

query I rowsort
SELECT ALL 78 + 89 AS col1
----
167

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3826
SELECT ALL + CASE - 7 WHEN + 25 THEN - - 85 - - COALESCE ( - COUNT( * ), + ( - CAST( NULL AS DECIMAL ) ), - ( - 75 ) ) WHEN + 23 THEN 14 END + - NULLIF ( 66, - ( 88 ) * 11 ) + COUNT( * ) * + COUNT( * ) / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + CASE - 7 WHEN + 25 THEN - - 85 - - COALESCE ( - COUNT ( * ), + ( - CAST ( NULL AS REAL ) ), - ( - 75 ) ) WHEN + 23 THEN 14 END + - NULLIF ( 66, - ( 88 ) * 11 ) + COUNT ( * ) * + COUNT ( * ) / 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT ALL - 13 AS col0, - MIN( ALL + + NULLIF ( - 28, 96 ) ) * - 92
----
-13
-2576

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL - 13 AS col0, - MIN ( ALL + + NULLIF ( - 28, 96 ) ) * - 92
----
-13
-2576

query I rowsort
SELECT DISTINCT - 72 + - 78
----
-150

query I rowsort
SELECT DISTINCT + ( 42 ) + + + 15 + + + 18 AS col0
----
75

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

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - + 55 + COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT 36 + 4
----
40

query I rowsort
SELECT - 7 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT + 90 + - COUNT( * ) * - - 28, + 15 AS col0
----
62
15

skipif mysql # not compatible
query II rowsort label-3833
SELECT + 90 + - COUNT ( * ) * - - 28, + 15 AS col0
----
62
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + ( - COALESCE ( - COUNT( * ), 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT + ( - COALESCE ( - COUNT ( * ), 50 ) )
----
1

query I rowsort
SELECT ALL 68 + + 17 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + 98 + + 12 + - CASE + CAST( NULL AS SIGNED ) WHEN - 50 THEN - 58 END * + - 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + 98 + + 12 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 50 THEN - 58 END * + - 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 5 + - COUNT( * ) * + 24 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3837
SELECT 5 + - COUNT ( * ) * + 24 AS col0
----
-19

query I rowsort
SELECT - NULLIF ( 73, 13 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3839
SELECT ALL 48 * - 59 * + 53 * - - 16 + - COALESCE ( - - 80, - + 97, CASE + + ( + COUNT( * ) ) WHEN + ( + 76 ) + + COUNT( * ) THEN - MIN( - 44 ) * + - 89 + + 21 - 53 ELSE - 60 END ) - + + NULLIF ( 35, CAST( NULL AS DECIMAL ) )
----
-2401651

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL 48 * - 59 * + 53 * - - 16 + - COALESCE ( - - 80, - + 97, CASE + + ( + COUNT ( * ) ) WHEN + ( + 76 ) + + COUNT ( * ) THEN - MIN ( - 44 ) * + - 89 + + 21 - 53 ELSE - 60 END ) - + + NULLIF ( 35, CAST ( NULL AS REAL ) )
----
-2401651

query II rowsort
SELECT DISTINCT 53 - + 21 * - 73 col0, 34 - 93 AS col2
----
1586
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( * ) * - 79 * + - 46
----
3634

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + COUNT ( * ) * - 79 * + - 46
----
3634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3842
SELECT ( 88 ) + - - COUNT( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST( NULL AS SIGNED ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3842
SELECT ( 88 ) + - - COUNT ( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST ( NULL AS INTEGER ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 29 * + ( + - 90 ) * COUNT( * ) + - + 10 - COUNT( * ) + + + 59
----
2658

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 29 * + ( + - 90 ) * COUNT ( * ) + - + 10 - COUNT ( * ) + + + 59
----
2658

onlyif mysql # aggregate syntax: 
query III rowsort label-3844
SELECT ALL - 75 AS col0, NULLIF ( - - 32, - MIN( ALL 24 ) * - 48 * - - 10 / 18 * 49 + - 67 ) * + 16 * + 62 * - 34 * + 22, + + CASE + 69 WHEN 46 * + 91 * + COALESCE ( 18, + + 2 + 44 * 57, + COUNT( * ) ) THEN 57 END AS col2
----
-75
-23744512
NULL

skipif mysql # not compatible
query III rowsort label-3844
SELECT ALL - 75 AS col0, NULLIF ( - - 32, - MIN ( ALL 24 ) * - 48 * - - 10 / 18 * 49 + - 67 ) * + 16 * + 62 * - 34 * + 22, + + CASE + 69 WHEN 46 * + 91 * + COALESCE ( 18, + + 2 + 44 * 57, + COUNT ( * ) ) THEN 57 END AS col2
----
-75
-23744512
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT 11 * NULLIF ( - - 39, + - 89 + + COUNT( * ) + + 91 / + 13 )
----
429

skipif mysql # not compatible
query I rowsort label-3845
SELECT 11 * NULLIF ( - - 39, + - 89 + + COUNT ( * ) + + 91 / + 13 )
----
429

query I rowsort
SELECT 44 * - 0 * + 74 + - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT + 22 DIV - SUM( ALL - 72 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 22 / - SUM ( ALL - 72 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT CASE + - 55 WHEN + - 51 THEN + NULLIF ( + 49, - 81 ) * - 90 WHEN - - 86 + - 70 THEN - COUNT( * ) * - MAX( + ( + 32 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT CASE + - 55 WHEN + - 51 THEN + NULLIF ( + 49, - 81 ) * - 90 WHEN - - 86 + - 70 THEN - COUNT ( * ) * - MAX ( + ( + 32 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL + NULLIF ( + CAST( - - 9 AS SIGNED ), - - 43 )
----
9

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + NULLIF ( + CAST ( - - 9 AS INTEGER ), - - 43 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3850
SELECT ALL + 81 AS col0, ( - + 71 ) + - - MAX( DISTINCT + - 29 ) DIV 53
----
81
-71

skipif mysql # not compatible
query II rowsort label-3850
SELECT ALL + 81 AS col0, ( - + 71 ) + - - MAX ( DISTINCT + - 29 ) / 53
----
81
-71

query I rowsort
SELECT NULLIF ( - - 79, - + 21 )
----
79

query II rowsort
SELECT ALL + 97 col0, - 2 + - - 79
----
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + CASE + - ( - 89 ) WHEN - ( - 35 ) + + COUNT( * ) THEN + 89 ELSE - - 56 + + - 83 * 43 END AS col0
----
-3513

skipif mysql # not compatible
query I rowsort label-3853
SELECT + CASE + - ( - 89 ) WHEN - ( - 35 ) + + COUNT ( * ) THEN + 89 ELSE - - 56 + + - 83 * 43 END AS col0
----
-3513

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + 9 * + 38 * SUM( DISTINCT + - 79 )
----
-27018

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + 9 * + 38 * SUM ( DISTINCT + - 79 )
----
-27018

query II rowsort
SELECT + NULLIF ( + 47, + ( + 11 ) ) col1, 28 AS col0
----
47
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL ( + + ( NULLIF ( + SUM( + 34 ), - - 54 * - 75 ) ) ) * - 12 * + 30 * + 31 + 45
----
-379395

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL ( + + ( NULLIF ( + SUM ( + 34 ), - - 54 * - 75 ) ) ) * - 12 * + 30 * + 31 + 45
----
-379395

query I rowsort
SELECT ALL 90 * 40 * - 79 AS col1
----
-284400

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT COUNT( * ) col2, 6
----
1
6

skipif mysql # not compatible
query II rowsort label-3858
SELECT COUNT ( * ) col2, 6
----
1
6

query I rowsort
SELECT DISTINCT + 61 * + - 35 + + 40 + + NULLIF ( + - 73, - ( - - 45 ) )
----
-2168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3860
SELECT + - 71, + 15 * + COUNT( * ) * + CAST( - + ( - COALESCE ( - + 66, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col2
----
-71
-990

skipif mysql # not compatible
query II rowsort label-3860
SELECT + - 71, + 15 * + COUNT ( * ) * + CAST ( - + ( - COALESCE ( - + 66, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col2
----
-71
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 68 + + CASE - 3 WHEN 92 DIV - - 33 + + 26 THEN NULL WHEN - 73 * + COUNT( * ) + 85 + 55 THEN - - 49 + - 45 - 62 * + 79 + - 75 * NULLIF ( - 76, + + 78 * - - 38 + - 21 ) DIV 10 ELSE ( 0 ) END - 29
----
39

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 68 + + CASE - 3 WHEN 92 / - - 33 + + 26 THEN NULL WHEN - 73 * + COUNT ( * ) + 85 + 55 THEN - - 49 + - 45 - 62 * + 79 + - 75 * NULLIF ( - 76, + + 78 * - - 38 + - 21 ) / 10 ELSE ( 0 ) END - 29
----
39

query I rowsort
SELECT - - ( 93 ) + + 24 * 34
----
909

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

skipif mysql # not compatible
query I rowsort label-3863
SELECT - + 88 + + COUNT ( * ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ALL - 77 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 77 / + 49
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT - 30 AS col2, - 35 + + - 11 + 23 * - COUNT( * ) * - 49 * + 82 AS col0
----
-30
92368

skipif mysql # not compatible
query II rowsort label-3865
SELECT - 30 AS col2, - 35 + + - 11 + 23 * - COUNT ( * ) * - 49 * + 82 AS col0
----
-30
92368

query I rowsort
SELECT DISTINCT - - 78 + + 49 + - - 17 * - 93
----
-1454

query II rowsort
SELECT ALL 3 AS col2, 8 AS col2
----
3
8

query I rowsort
SELECT DISTINCT + 69 * + 4
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT DISTINCT CAST( - CASE + 56 WHEN - MAX( ALL + + 68 ) THEN - 17 END AS SIGNED ) col1, - 53 * - - COALESCE ( 71, + - 61 * 0 ) * - - 13 * 48 - + - ( - + NULLIF ( + COUNT( * ), - + 73 * - 7 - + 53 + + - 20 + - - 56 * - 66 ) ) * - 53
----
NULL
-2348059

skipif mysql # not compatible
query II rowsort label-3869
SELECT DISTINCT CAST ( - CASE + 56 WHEN - MAX ( ALL + + 68 ) THEN - 17 END AS INTEGER ) col1, - 53 * - - COALESCE ( 71, + - 61 * 0 ) * - - 13 * 48 - + - ( - + NULLIF ( + COUNT ( * ), - + 73 * - 7 - + 53 + + - 20 + - - 56 * - 66 ) ) * - 53
----
NULL
-2348059

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT ALL + 25 * - 36 AS col2, + COUNT( - - 93 )
----
-900
1

skipif mysql # not compatible
query II rowsort label-3871
SELECT ALL + 25 * - 36 AS col2, + COUNT ( - - 93 )
----
-900
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT - SUM( DISTINCT - + 89 ) AS col1, - ( - ( + - MAX( DISTINCT - 45 ) ) ) AS col0
----
89
45

skipif mysql # not compatible
query II rowsort label-3872
SELECT - SUM ( DISTINCT - + 89 ) AS col1, - ( - ( + - MAX ( DISTINCT - 45 ) ) ) AS col0
----
89
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT - + CAST( 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + CAST ( 99 AS INTEGER )
----
-99

query I rowsort
SELECT + - 81 * ( - 6 ) + + + 57
----
543

query II rowsort
SELECT - 48, + 23 col0
----
-48
23

query II rowsort
SELECT 71 col0, + NULLIF ( + 93, - 59 ) * - + 10 * - 9 AS col1
----
71
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( + 63, 7 * MIN( DISTINCT - + 44 ) + 26 )
----
-63

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( + 63, 7 * MIN ( DISTINCT - + 44 ) + 26 )
----
-63

query II rowsort
SELECT - 81 * - 35, 13 AS col1
----
2835
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL 93 DIV 8 * + 69 * - 28 AS col1
----
-21252

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 93 / 8 * + 69 * - 28 AS col1
----
-21252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3880
SELECT + 98 - - 51 AS col2, CAST( + ( - - 45 ) AS SIGNED ) * + COUNT( * ) * 78 AS col2
----
149
3510

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 98 - - 51 AS col2, CAST ( + ( - - 45 ) AS INTEGER ) * + COUNT ( * ) * 78 AS col2
----
149
3510

query I rowsort
SELECT - CASE 17 WHEN - 22 + - - 24 + 76 + - 91 + + + AVG ( - 90 ) + + - 3 * + 80 / + 85 * - - 68 * 18 * 51 * - ( - 21 ) THEN + 96 - + 48 * + 73 + + 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - 77 AS col1
----
-3465

query II rowsort
SELECT + 51 * + 56 * 64 AS col2, - 11
----
182784
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT ALL 57 DIV 2
----
28

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 57 / 2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + ( - COALESCE ( + NULLIF ( + + MAX( - + 30 ), + 15 ), + 37, NULLIF ( - 98, + + 77 * - - 10 + + 42 - - - 46 - COUNT( * ) + - 88 + - 78 + + 46 / - + CASE - 89 WHEN + 75 + + 35 + 12 * 87 THEN MAX( - 88 ) ELSE NULL END - + 63 ) + 96 ) )
----
30

skipif mysql # not compatible
query I rowsort label-3885
SELECT + ( - COALESCE ( + NULLIF ( + + MAX ( - + 30 ), + 15 ), + 37, NULLIF ( - 98, + + 77 * - - 10 + + 42 - - - 46 - COUNT ( * ) + - 88 + - 78 + + 46 / - + CASE - 89 WHEN + 75 + + 35 + 12 * 87 THEN MAX ( - 88 ) ELSE NULL END - + 63 ) + 96 ) )
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-3886
SELECT + 3 DIV 16 AS col1, 59 * + 14 col2
----
0
826

skipif mysql # not compatible
query II rowsort label-3886
SELECT + 3 / 16 AS col1, 59 * + 14 col2
----
0
826

query I rowsort
SELECT + 15 + + 54 + 97 * + 63
----
6180

query I rowsort
SELECT + 21 * - ( 84 )
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 94 + + 45 + - 99
----
40

skipif mysql # not compatible
query I rowsort label-3889
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 94 + + 45 + - 99
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ( + CASE + 30 WHEN + 1 + + 39 THEN + COUNT( * ) ELSE + 42 END )
----
42

skipif mysql # not compatible
query I rowsort label-3890
SELECT ( + CASE + 30 WHEN + 1 + + 39 THEN + COUNT ( * ) ELSE + 42 END )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT ALL 20 DIV - - 77 + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL 20 / - - 77 + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL COUNT( * ) * 70 + + SUM( + 55 ) * - NULLIF ( 33, + 79 ) + + ( - 98 ) * - 12 + - + 43 AS col0
----
-612

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL COUNT ( * ) * 70 + + SUM ( + 55 ) * - NULLIF ( 33, + 79 ) + + ( - 98 ) * - 12 + - + 43 AS col0
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT NULLIF ( 2, 41 ) * + 95 + + + COUNT( * ) * - 58 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3893
SELECT NULLIF ( 2, 41 ) * + 95 + + + COUNT ( * ) * - 58 AS col1
----
132

query I rowsort
SELECT ALL 49 * + 20 * - 14 AS col1
----
-13720

query I rowsort
SELECT DISTINCT 88 * + 71 + 3
----
6251

query I rowsort
SELECT DISTINCT 94 * 5 + + + 76
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT ( 1 ) * - 4 * + 60 DIV + SUM( DISTINCT - 55 ) + + ( COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT ( 1 ) * - 4 * + 60 / + SUM ( DISTINCT - 55 ) + + ( COUNT ( * ) ) AS col1
----
5

query I rowsort
SELECT 24 * + 56 + 33 AS col2
----
1377

query I rowsort
SELECT + - 92 * - + 97
----
8924

query I rowsort
SELECT - 71 * + 65 + - 4 + + 28 AS col0
----
-4591

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

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

query I rowsort
SELECT DISTINCT 38 * - 47 - + 75 - + - 46 col1
----
-1815

query I rowsort
SELECT ALL + 78 * 10 + 66 - 96 col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL 67 * + COUNT( * ) + 89
----
156

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 67 * + COUNT ( * ) + 89
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT DISTINCT COUNT( - 85 ) AS col2, - 0
----
1
0

skipif mysql # not compatible
query II rowsort label-3905
SELECT DISTINCT COUNT ( - 85 ) AS col2, - 0
----
1
0

query II rowsort
SELECT DISTINCT 85 * - 58 AS col2, 45
----
-4930
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3907
SELECT 76 * - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) * 58 * - ( - 41 ) - 28 / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT 76 * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) * 58 * - ( - 41 ) - 28 / 39
----
NULL

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

query I rowsort
SELECT ALL + 54 * + + 23 AS col1
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + + COUNT( * ) DIV COUNT( * ) - - 77 * 8 * - ( 14 ) * + + 22 + + 14 DIV + 58
----
-189727

skipif mysql # not compatible
query I rowsort label-3910
SELECT + + COUNT ( * ) / COUNT ( * ) - - 77 * 8 * - ( 14 ) * + + 22 + + 14 / + 58
----
-189727

query I rowsort
SELECT - 70 - + NULLIF ( + + 17, - 38 * 95 * - 40 ) * - + 73 AS col1
----
1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT + 74 * COUNT( * ) * - - COALESCE ( 1, + - 34 - CAST( NULL AS SIGNED ) * + ( MAX( 24 ) ) + + COUNT( * ), - + CASE 65 WHEN + - 72 THEN NULL WHEN 48 THEN + - COALESCE ( COUNT( * ), - 28 ) WHEN 58 * - 68 + + ( + 72 ) THEN - + COUNT( * ) + 23 END * - 80 )
----
74

skipif mysql # not compatible
query I rowsort label-3912
SELECT + 74 * COUNT ( * ) * - - COALESCE ( 1, + - 34 - CAST ( NULL AS INTEGER ) * + ( MAX ( 24 ) ) + + COUNT ( * ), - + CASE 65 WHEN + - 72 THEN NULL WHEN 48 THEN + - COALESCE ( COUNT ( * ), - 28 ) WHEN 58 * - 68 + + ( + 72 ) THEN - + COUNT ( * ) + 23 END * - 80 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT - NULLIF ( - + ( - 31 ), - AVG ( - 10 ) ) DIV - + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT - NULLIF ( - + ( - 31 ), - AVG ( - 10 ) ) / - + 34 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL + 44 DIV - 10 + - 92 * 48
----
-4420

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + 44 / - 10 + - 92 * 48
----
-4420

query I rowsort
SELECT 91 + - 65 AS col1
----
26

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

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

query I rowsort
SELECT ALL - 17 * + + 50 * 26 * + 36 AS col1
----
-795600

query I rowsort
SELECT 36 + 6 * + - 64 AS col2
----
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL - 27 * + NULLIF ( + 24, 79 + + 83 + - CAST( NULL AS SIGNED ) )
----
-648

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - 27 * + NULLIF ( + 24, 79 + + 83 + - CAST ( NULL AS INTEGER ) )
----
-648

query II rowsort
SELECT DISTINCT 74 col0, 42 + + 5 * + 53 * - 53
----
74
-14003

query II rowsort
SELECT DISTINCT - NULLIF ( + + 71, + 87 ) * + 2, 94 AS col1
----
-142
94

query I rowsort
SELECT ALL + 55 + 64 AS col0
----
119

query I rowsort
SELECT 45 * + 18 AS col0
----
810

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

skipif mysql # not compatible
query I rowsort label-3924
SELECT CAST ( NULL AS INTEGER ) * - 79 + + 89 * COUNT ( * ) * COUNT ( * ) - - 19 + + + 51 * + + COUNT ( * ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 3 + - - 57 * - 8 + - 49 AS col2
----
-502

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

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( - + 35 ) + - - COUNT ( * ) AS col1
----
-34

query II rowsort
SELECT 45 col2, + CASE 36 WHEN - + NULLIF ( + 27, - ( - + 94 ) ) THEN NULL WHEN 17 + + 88 THEN 81 ELSE NULL END / AVG ( DISTINCT + ( + 4 ) ) + + + 44
----
45
NULL

query I rowsort
SELECT ALL 55 + 89 * CASE 29 WHEN 24 THEN - 84 * + + 86 + ( + - 32 ) ELSE - 30 END
----
-2615

query II rowsort
SELECT ALL - 45, - 64 AS col2
----
-45
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3930
SELECT + 2 AS col2, 54 DIV + - 82 col2
----
2
0

skipif mysql # not compatible
query II rowsort label-3930
SELECT + 2 AS col2, 54 / + - 82 col2
----
2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT + 65 DIV - - COALESCE ( 29, - 7 )
----
2

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + 65 / - - COALESCE ( 29, - 7 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT DISTINCT - 22 AS col0, ( + - CASE - 73 WHEN - + ( - + 36 ) * + + 60 / + - 36 * - AVG ( DISTINCT + 30 ) * 49 + - 43 THEN NULL WHEN + 23 THEN NULL WHEN - 56 THEN - 82 * + + 98 + 84 END ) * COUNT( * ) + NULLIF ( COALESCE ( + 41, + 13 - - 10 * + 33 ), - 31 ) * + COUNT( * ) col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT DISTINCT - 22 AS col0, ( + - CASE - 73 WHEN - + ( - + 36 ) * + + 60 / + - 36 * - AVG ( DISTINCT + 30 ) * 49 + - 43 THEN NULL WHEN + 23 THEN NULL WHEN - 56 THEN - 82 * + + 98 + 84 END ) * COUNT ( * ) + NULLIF ( COALESCE ( + 41, + 13 - - 10 * + 33 ), - 31 ) * + COUNT ( * ) col0
----
-22
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT 60 DIV 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT 60 / 53 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - 93 - - + 95 * + 4 * + COUNT( + 14 ) AS col2
----
287

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - 93 - - + 95 * + 4 * + COUNT ( + 14 ) AS col2
----
287

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT DISTINCT - + NULLIF ( - + CASE + 39 WHEN + - NULLIF ( ( - - 51 ), - + 4 ) * + 18 + - 75 THEN NULL WHEN + 8 THEN 34 / - COUNT( * ) END, - + 86 ) AS col1, 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT - + NULLIF ( - + CASE + 39 WHEN + - NULLIF ( ( - - 51 ), - + 4 ) * + 18 + - 75 THEN NULL WHEN + 8 THEN 34 / - COUNT ( * ) END, - + 86 ) AS col1, 86 AS col1
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL CAST( NULL AS SIGNED ) - - 71 + - + MIN( ALL - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL CAST ( NULL AS INTEGER ) - - 71 + - + MIN ( ALL - 0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3937
SELECT ALL + COUNT( * ) * NULLIF ( - - 73, 4 ) DIV - 85 + + + 5 + - - MIN( + - 12 ) AS col0, + 38 AS col1
----
-7
38

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL + COUNT ( * ) * NULLIF ( - - 73, 4 ) / - 85 + + + 5 + - - MIN ( + - 12 ) AS col0, + 38 AS col1
----
-7
38

query I rowsort
SELECT ALL - CASE 2 WHEN - 39 + - 27 THEN + + 48 ELSE + 17 END * + COALESCE ( - 89, - 62, - 97 + - 26 )
----
1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3939
SELECT 80 - - 70 DIV - 34, + MIN( ALL 35 ) AS col2
----
78
35

skipif mysql # not compatible
query II rowsort label-3939
SELECT 80 - - 70 / - 34, + MIN ( ALL 35 ) AS col2
----
78
35

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

query II rowsort
SELECT DISTINCT - 29 AS col0, + 50 * 23 AS col0
----
-29
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3942
SELECT DISTINCT - - 57 AS col2, + COUNT( - CAST( NULL AS SIGNED ) )
----
57
0

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT - - 57 AS col2, + COUNT ( - CAST ( NULL AS INTEGER ) )
----
57
0

query I rowsort
SELECT - 75 + - 53
----
-128

query II rowsort
SELECT DISTINCT - 8, ( + + 52 ) AS col0
----
-8
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT - CAST( - 55 AS SIGNED ) - NULLIF ( - - 53, - + 91 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3945
SELECT - CAST ( - 55 AS INTEGER ) - NULLIF ( - - 53, - + 91 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT + CAST( + 39 AS SIGNED ) * - COALESCE ( - - 93, - 16 - - 96, - 9 * + 46 - + 72 ) * NULLIF ( - + 3, - - 55 )
----
10881

skipif mysql # not compatible
query I rowsort label-3946
SELECT + CAST ( + 39 AS INTEGER ) * - COALESCE ( - - 93, - 16 - - 96, - 9 * + 46 - + 72 ) * NULLIF ( - + 3, - - 55 )
----
10881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3947
SELECT DISTINCT - 42 * NULLIF ( - 37, - 32 * CAST( NULL AS SIGNED ) * + 59 ), COUNT( * ) AS col0
----
1554
1

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT - 42 * NULLIF ( - 37, - 32 * CAST ( NULL AS INTEGER ) * + 59 ), COUNT ( * ) AS col0
----
1554
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT ( + + ( - MAX( ALL - - 96 ) ) ) * + + COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT ( + + ( - MAX ( ALL - - 96 ) ) ) * + + COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT 6 * 85 + - + COUNT( * ) + + 0
----
509

skipif mysql # not compatible
query I rowsort label-3950
SELECT 6 * 85 + - + COUNT ( * ) + + 0
----
509

query I rowsort
SELECT DISTINCT 4 + 66 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT + 68 + - COUNT( - 53 ) * 5 * - - 36 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + 68 + - COUNT ( - 53 ) * 5 * - - 36 AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT - 13 + 63 AS col2, CAST( NULL AS SIGNED ) * + - 36
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 13 + 63 AS col2, CAST ( NULL AS INTEGER ) * + - 36
----
50
NULL

query I rowsort
SELECT ( - 33 ) - - 87
----
54

query I rowsort
SELECT DISTINCT + 68 + - 78 + + + 8 AS col2
----
-2

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

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

query II rowsort
SELECT 51 - + 95, 43 + - + 13 AS col2
----
-44
30

query II rowsort
SELECT DISTINCT + 41 * + 87 * + 16 * + - 67 AS col2, - 98 AS col2
----
-3823824
-98

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

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

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

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

query I rowsort
SELECT ALL - 64 * + 10 - - 48
----
-592

query I rowsort
SELECT DISTINCT - 79 * + + 82
----
-6478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT 88 DIV + 97 + + - 10 + - - 79 * - COUNT( * ) + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3963
SELECT 88 / + 97 + + - 10 + - - 79 * - COUNT ( * ) + + COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3964
SELECT 70 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT 70 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL - NULLIF ( + + CAST( NULL AS SIGNED ), 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - NULLIF ( + + CAST ( NULL AS INTEGER ), 97 )
----
NULL

query I rowsort
SELECT 76 * - 72 * - + 8
----
43776

query I rowsort
SELECT ( - 37 ) * 71 + - 77
----
-2704

query I rowsort
SELECT + 71 * + 19
----
1349

query I rowsort
SELECT ALL - + NULLIF ( + - 93, - 97 + 87 + + - 10 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3970
SELECT DISTINCT - MIN( DISTINCT + 18 ) AS col1, 23 AS col0
----
-18
23

skipif mysql # not compatible
query II rowsort label-3970
SELECT DISTINCT - MIN ( DISTINCT + 18 ) AS col1, 23 AS col0
----
-18
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT - COUNT( * ) + + - 17, - 13 - - - 62 AS col2
----
-18
-75

skipif mysql # not compatible
query II rowsort label-3971
SELECT - COUNT ( * ) + + - 17, - 13 - - - 62 AS col2
----
-18
-75

query II rowsort
SELECT ALL + 37 * + + 76, - 20 * - 86 AS col1
----
2812
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL 4 * + 86 * - + COUNT( * ) * 98 * - 43 col1
----
1449616

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 4 * + 86 * - + COUNT ( * ) * 98 * - 43 col1
----
1449616

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - 46 * + 96 * + + COUNT( * ) - - + 18
----
-4398

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - 46 * + 96 * + + COUNT ( * ) - - + 18
----
-4398

query I rowsort
SELECT ALL - 88 * 77 AS col1
----
-6776

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT + + 18 + + 55 * - 86 * - - 41 - - + 39 DIV NULLIF ( - CAST( + 75 AS SIGNED ), - - 73 * + 37 + - ( + - 72 ) * - 42 )
----
-193912

skipif mysql # not compatible
query I rowsort label-3976
SELECT + + 18 + + 55 * - 86 * - - 41 - - + 39 / NULLIF ( - CAST ( + 75 AS INTEGER ), - - 73 * + 37 + - ( + - 72 ) * - 42 )
----
-193912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT CAST( - + 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3977
SELECT CAST ( - + 21 AS INTEGER ) AS col2
----
-21

query I rowsort
SELECT ALL 35 + + 79
----
114

query I rowsort
SELECT DISTINCT - + ( - 21 ) * - 43 AS col0
----
-903

query I rowsort
SELECT DISTINCT + 30 + - ( + 42 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - SUM( - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3981
SELECT - SUM ( - 6 ) AS col0
----
6

query I rowsort
SELECT + 98 - 88 + 1
----
11

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

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

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

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

query I rowsort
SELECT ALL 80 + + 77
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT + CASE - 85 WHEN + MAX( 67 ) THEN + 52 WHEN + 43 THEN NULL END + + COALESCE ( - 36, - 65 ) * + ( - + 68 ) * - ( - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT + CASE - 85 WHEN + MAX ( 67 ) THEN + 52 WHEN + 43 THEN NULL END + + COALESCE ( - 36, - 65 ) * + ( - + 68 ) * - ( - - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT CAST( NULLIF ( - AVG ( + 86 ), - 98 ) AS SIGNED ) + + 50 + 95 + - CASE COALESCE ( + 28, + + 39, + COUNT( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 * + + ( - - CAST( + COUNT( * ) AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT CAST ( NULLIF ( - AVG ( + 86 ), - 98 ) AS INTEGER ) + + 50 + 95 + - CASE COALESCE ( + 28, + + 39, + COUNT ( * ) ) WHEN - 53 THEN - 10 * + + 46 + - 62 ELSE 49 END - - 30 * + + ( - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
40

query I rowsort
SELECT + 62 + 78 + + - 40 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3989
SELECT DISTINCT COUNT( * ), - 20 + CAST( - 37 AS SIGNED ) AS col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-3989
SELECT DISTINCT COUNT ( * ), - 20 + CAST ( - 37 AS INTEGER ) AS col1
----
1
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT - CAST( NULL AS SIGNED ) + + - MAX( DISTINCT + 7 ) + - + MIN( ALL - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT - CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT + 7 ) + - + MIN ( ALL - 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT + CASE - - 42 WHEN + NULLIF ( + + 71, - + 90 * 8 ) THEN NULL WHEN 90 * - + 79 + 95 * + 39 - - ( 57 ) + - 34 * + 61 THEN NULL ELSE 58 * - + 46 END DIV + - 34 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3991
SELECT + CASE - - 42 WHEN + NULLIF ( + + 71, - + 90 * 8 ) THEN NULL WHEN 90 * - + 79 + 95 * + 39 - - ( 57 ) + - 34 * + 61 THEN NULL ELSE 58 * - + 46 END / + - 34 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT - COALESCE ( + 67, 57 + + COALESCE ( + 60, 14 DIV - - 27 ) - + COUNT( * ), + 6 * + COALESCE ( - 14, - 84 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COALESCE ( + 67, 57 + + COALESCE ( + 60, 14 / - - 27 ) - + COUNT ( * ), + 6 * + COALESCE ( - 14, - 84 ) )
----
-67

query I rowsort
SELECT ALL - 20 - - - 14 * + 48
----
-692

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * ( - + 2 ) + - + 83 + + NULLIF ( 69, + - 66 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3995
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * ( - + 2 ) + - + 83 + + NULLIF ( 69, + - 66 ) AS col1
----
-16

query I rowsort
SELECT - 54 * + - 43 AS col1
----
2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT ALL COUNT( * ) DIV COUNT( ALL 32 ) * - MAX( DISTINCT + + 14 ) + + 1 * + 81
----
67

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) / COUNT ( ALL 32 ) * - MAX ( DISTINCT + + 14 ) + + 1 * + 81
----
67

query I rowsort
SELECT DISTINCT - 10 * + 49
----
-490

query II rowsort
SELECT + 55, 65 AS col0
----
55
65

query I rowsort
SELECT - 5 * + ( + - 72 )
----
360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4001
SELECT ALL + CAST( NULL AS DECIMAL ) * + 80 * + 1 / - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + CAST ( NULL AS REAL ) * + 80 * + 1 / - 39 AS col0
----
NULL

query I rowsort
SELECT - - 3 - - - 61 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT + - CASE COUNT( * ) WHEN ( - 38 ) + CASE - ( - 31 ) WHEN 67 THEN 25 WHEN + 50 * - - 38 THEN NULL ELSE + 29 * - + 78 END THEN - 41 / - 47 WHEN + CAST( NULL AS DECIMAL ) * AVG ( ALL 26 ) * 84 + + + 69 + + CASE - 8 WHEN 40 THEN - 0 + - MAX( + 26 ) * + 76 ELSE NULL END THEN 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT + - CASE COUNT ( * ) WHEN ( - 38 ) + CASE - ( - 31 ) WHEN 67 THEN 25 WHEN + 50 * - - 38 THEN NULL ELSE + 29 * - + 78 END THEN - 41 / - 47 WHEN + CAST ( NULL AS REAL ) * AVG ( ALL 26 ) * 84 + + + 69 + + CASE - 8 WHEN 40 THEN - 0 + - MAX ( + 26 ) * + 76 ELSE NULL END THEN 4 END
----
NULL

query I rowsort
SELECT - - 53 * - 65 AS col2
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + NULLIF ( - - 62, - COUNT( DISTINCT 94 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + NULLIF ( - - 62, - COUNT ( DISTINCT 94 ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT ALL COUNT( * ) * + - CASE - + COUNT( 2 ) WHEN - COUNT( * ) * - CAST( + ( 50 ) AS SIGNED ) THEN NULL ELSE 64 END * + 97 * 94 AS col2
----
-583552

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL COUNT ( * ) * + - CASE - + COUNT ( 2 ) WHEN - COUNT ( * ) * - CAST ( + ( 50 ) AS INTEGER ) THEN NULL ELSE 64 END * + 97 * 94 AS col2
----
-583552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + CAST( + 60 AS SIGNED ) col0
----
60

skipif mysql # not compatible
query I rowsort label-4007
SELECT + CAST ( + 60 AS INTEGER ) col0
----
60

query I rowsort
SELECT - + 26 + 44 AS col0
----
18

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

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

query I rowsort
SELECT 86 * + COALESCE ( 4, 17 * 12 - - + 46 ) + + ( - 98 ) + - ( + 12 )
----
234

query I rowsort
SELECT ALL 86 * + ( + + 90 ) AS col1
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL + ( - 95 ) * - + 61 + - COUNT( * ) * + - 55 AS col1
----
5850

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + ( - 95 ) * - + 61 + - COUNT ( * ) * + - 55 AS col1
----
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT + 86 DIV - - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT + 86 / - - 62 AS col1
----
1

query I rowsort
SELECT + 21 + + 84
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT ALL COUNT( * ), + 85 col2
----
1
85

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL COUNT ( * ), + 85 col2
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - NULLIF ( 79, - ( + NULLIF ( + 19, ( COUNT( * ) ) ) ) ) * 33
----
-2607

skipif mysql # not compatible
query I rowsort label-4016
SELECT - NULLIF ( 79, - ( + NULLIF ( + 19, ( COUNT ( * ) ) ) ) ) * 33
----
-2607

query I rowsort
SELECT - NULLIF ( 34, + - 64 ) + - 17 AS col1
----
-51

query I rowsort
SELECT ALL 14 - + 92
----
-78

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

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

query II rowsort
SELECT + 96 - - 91 * - 83 + + 61, - 57 AS col1
----
-7396
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + CASE - - AVG ( + 57 ) WHEN - - COUNT( * ) * MAX( - + CASE - - ( + + 12 ) WHEN 74 * 79 * - + 68 THEN + + 53 * 18 + - + 88 WHEN 76 THEN NULL END ) + - + COUNT( * ) + + - COUNT( * ) THEN NULL ELSE 11 + + 95 + - 98 + + 7 END - + ( - 43 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4021
SELECT + CASE - - AVG ( + 57 ) WHEN - - COUNT ( * ) * MAX ( - + CASE - - ( + + 12 ) WHEN 74 * 79 * - + 68 THEN + + 53 * 18 + - + 88 WHEN 76 THEN NULL END ) + - + COUNT ( * ) + + - COUNT ( * ) THEN NULL ELSE 11 + + 95 + - 98 + + 7 END - + ( - 43 ) AS col0
----
58

query I rowsort
SELECT ALL 37 * 29
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT + + 48 DIV - - 4
----
12

skipif mysql # not compatible
query I rowsort label-4023
SELECT + + 48 / - - 4
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + 33 * 63 + + 98 - CASE + 89 WHEN - + 32 THEN NULL ELSE - + COUNT( + + ( - - 90 ) ) END + COUNT( ALL 0 )
----
2179

skipif mysql # not compatible
query I rowsort label-4024
SELECT + 33 * 63 + + 98 - CASE + 89 WHEN - + 32 THEN NULL ELSE - + COUNT ( + + ( - - 90 ) ) END + COUNT ( ALL 0 )
----
2179

query II rowsort
SELECT ALL - 45 AS col1, + ( 30 ) + 60 + + 7 AS col1
----
-45
97

query II rowsort
SELECT DISTINCT - 18 + - 15 * 42 * 23 AS col1, - 13
----
-14508
-13

query I rowsort
SELECT ALL + - 62 + + + 83 AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT MAX( DISTINCT 23 ) DIV + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT MAX ( DISTINCT 23 ) / + COUNT ( * ) AS col2
----
23

query I rowsort
SELECT + 91 + + - 3 AS col2
----
88

query I rowsort
SELECT DISTINCT 70 + + 84
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4031
SELECT ALL + - 70 + + 24 + + - COALESCE ( + CASE - + 48 WHEN + + COUNT( * ) * + 89 + - CAST( NULL AS SIGNED ) + - - 65 * - COALESCE ( - ( + + CAST( NULL AS DECIMAL ) ), - 14 ) + + 25 * - COUNT( * ) - - ( - ( + 4 ) ) - + 56 THEN + 54 ELSE - - 90 END, 86 ) * + 97 * + 74, + 14 * 18 * 67 AS col0
----
-646066
16884

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL + - 70 + + 24 + + - COALESCE ( + CASE - + 48 WHEN + + COUNT ( * ) * + 89 + - CAST ( NULL AS INTEGER ) + - - 65 * - COALESCE ( - ( + + CAST ( NULL AS REAL ) ), - 14 ) + + 25 * - COUNT ( * ) - - ( - ( + 4 ) ) - + 56 THEN + 54 ELSE - - 90 END, 86 ) * + 97 * + 74, + 14 * 18 * 67 AS col0
----
-646066
16884

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + CASE 64 WHEN 83 * 19 * + SUM( - + 92 ) + + 83 THEN + 68 / 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT + CASE 64 WHEN 83 * 19 * + SUM ( - + 92 ) + + 83 THEN + 68 / 21 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 16 * + 53 AS col2
----
848

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT ALL - 37 - 33 col0, + COUNT( DISTINCT + + 84 )
----
-70
1

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - 37 - 33 col0, + COUNT ( DISTINCT + + 84 )
----
-70
1

query I rowsort
SELECT DISTINCT 74 - + - 0 + ( + 72 ) + - ( - 19 ) AS col1
----
165

query II rowsort
SELECT DISTINCT 92 * - 31 AS col0, + 43
----
-2852
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT ALL - 37 - COUNT( * ), 11 col0
----
-38
11

skipif mysql # not compatible
query II rowsort label-4038
SELECT ALL - 37 - COUNT ( * ), 11 col0
----
-38
11

query I rowsort
SELECT 90 * + 8 * 19 col2
----
13680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT 61 + - MIN( DISTINCT - + 35 ) - + - 1 * + 98 * - 55 * - - 54 + - 79 * - - ( + COUNT( * ) ) AS col1, + CASE - CASE 66 WHEN NULLIF ( + COALESCE ( 92, - + 77 ), + + 76 * - 92 + - CASE - 51 WHEN - 18 THEN - 3 + - ( + + 42 ) * 28 * - 86 WHEN 84 / 97 THEN NULL END ) THEN 68 ELSE NULL END WHEN + COUNT( * ) THEN 41 + AVG ( DISTINCT CAST( + ( 6 ) AS SIGNED ) ) * + 35 ELSE NULL END
----
-291043
NULL

skipif mysql # not compatible
query II rowsort label-4040
SELECT 61 + - MIN ( DISTINCT - + 35 ) - + - 1 * + 98 * - 55 * - - 54 + - 79 * - - ( + COUNT ( * ) ) AS col1, + CASE - CASE 66 WHEN NULLIF ( + COALESCE ( 92, - + 77 ), + + 76 * - 92 + - CASE - 51 WHEN - 18 THEN - 3 + - ( + + 42 ) * 28 * - 86 WHEN 84 / 97 THEN NULL END ) THEN 68 ELSE NULL END WHEN + COUNT ( * ) THEN 41 + AVG ( DISTINCT CAST ( + ( 6 ) AS INTEGER ) ) * + 35 ELSE NULL END
----
-291043
NULL

query I rowsort
SELECT 70 + - 53 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - COUNT( * ) * + 64 * - 53
----
3392

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - COUNT ( * ) * + 64 * - 53
----
3392

query I rowsort
SELECT 80 * + + 43
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT - 20 * - SUM( - CAST( + 20 AS SIGNED ) ) * 18 + - COUNT( * ) AS col1
----
-7201

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - 20 * - SUM ( - CAST ( + 20 AS INTEGER ) ) * 18 + - COUNT ( * ) AS col1
----
-7201

query I rowsort
SELECT ALL + 2 * + + 52
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT - COUNT( * ) * 19
----
-19

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - COUNT ( * ) * 19
----
-19

query I rowsort
SELECT 15 + + 84
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT ALL - 30 + + COUNT( * ) - - 28 + - 13 + - 14 DIV - SUM( DISTINCT + - 59 ) + + 90 * - - 43 AS col0
----
3856

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - 30 + + COUNT ( * ) - - 28 + - 13 + - 14 / - SUM ( DISTINCT + - 59 ) + + 90 * - - 43 AS col0
----
3856

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT - 82 + + - COUNT( * ) + 35 * 82 * 59 - + 26 + + 56 AS col2, 6 * - 99 AS col0
----
169277
-594

skipif mysql # not compatible
query II rowsort label-4049
SELECT - 82 + + - COUNT ( * ) + 35 * 82 * 59 - + 26 + + 56 AS col2, 6 * - 99 AS col0
----
169277
-594

query I rowsort
SELECT - 26 * - 33 AS col0
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - SUM( ( 26 ) ) + 7
----
-19

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - SUM ( ( 26 ) ) + 7
----
-19

query II rowsort
SELECT ALL + NULLIF ( - 46, + 11 + + 75 ) + 88 + + ( - ( 44 ) ) col0, - 30
----
-2
-30

query I rowsort
SELECT + + NULLIF ( + 47, + - 56 )
----
47

query I rowsort
SELECT ALL - 25 + - 74 AS col0
----
-99

query I rowsort
SELECT ALL - 9 * + - ( - 57 )
----
-513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 41 + + 33 DIV - - 37 + 58 DIV + - COUNT( - + 13 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 41 + + 33 / - - 37 + 58 / + - COUNT ( - + 13 ) AS col1
----
-17

query I rowsort
SELECT 29 - + 57 + + 41
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - MIN( + - 21 ) * 88 + + + 51
----
1899

skipif mysql # not compatible
query I rowsort label-4058
SELECT - MIN ( + - 21 ) * 88 + + + 51
----
1899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4059
SELECT - COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-4059
SELECT - COUNT ( * ) / 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + COUNT( 73 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-4060
SELECT + COUNT ( 73 ) * 75
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT - 82 DIV 11
----
-7

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - 82 / 11
----
-7

query I rowsort
SELECT ALL - 24 - - 90 AS col0
----
66

query I rowsort
SELECT ALL + 5 * + 7
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT ( 37 ) - 80 + - 69 + - 29 + + 2 * + + 16 + + + 24 + + CASE + CASE 73 WHEN - ( - + COUNT( * ) ) THEN 71 WHEN + - ( 47 ) THEN - + MIN( DISTINCT 31 ) WHEN + 51 THEN NULL END WHEN + CASE CAST( NULL AS SIGNED ) WHEN + + 83 THEN ( - - 73 ) WHEN + ( - 5 ) * CAST( NULL AS SIGNED ) * - 83 + 96 THEN + 44 END THEN + 0 WHEN + ( + 24 ) / 46 + 50 THEN 58 ELSE NULL END + + 60 * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ( 37 ) - 80 + - 69 + - 29 + + 2 * + + 16 + + + 24 + + CASE + CASE 73 WHEN - ( - + COUNT ( * ) ) THEN 71 WHEN + - ( 47 ) THEN - + MIN ( DISTINCT 31 ) WHEN + 51 THEN NULL END WHEN + CASE CAST ( NULL AS INTEGER ) WHEN + + 83 THEN ( - - 73 ) WHEN + ( - 5 ) * CAST ( NULL AS INTEGER ) * - 83 + 96 THEN + 44 END THEN + 0 WHEN + ( + 24 ) / 46 + 50 THEN 58 ELSE NULL END + + 60 * + 20 AS col0
----
NULL

query I rowsort
SELECT ALL + 96 * - - 38
----
3648

query I rowsort
SELECT ( - - 45 ) * - 96 AS col1
----
-4320

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT 69 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT 69 / 90
----
0

query I rowsort
SELECT ALL - 33 * 8 col2
----
-264

query I rowsort
SELECT DISTINCT 62 * + NULLIF ( + 17, 25 / + 75 + - + 63 )
----
1054

query I rowsort
SELECT 64 + 95 + ( - + 35 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT 99 * + COALESCE ( - - COUNT( * ), - MIN( DISTINCT 32 ) - + 51 ), + 56 AS col1
----
99
56

skipif mysql # not compatible
query II rowsort label-4071
SELECT 99 * + COALESCE ( - - COUNT ( * ), - MIN ( DISTINCT 32 ) - + 51 ), + 56 AS col1
----
99
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL - COUNT( * ) * - COALESCE ( + COUNT( * ), COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - COUNT ( * ) * - COALESCE ( + COUNT ( * ), COUNT ( * ) ) col2
----
1

query I rowsort
SELECT 61 * + ( + 84 ) + + 9
----
5133

query I rowsort
SELECT 9 - + 69
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT 89 * + MAX( + 71 )
----
6319

skipif mysql # not compatible
query I rowsort label-4075
SELECT 89 * + MAX ( + 71 )
----
6319

query I rowsort
SELECT ALL 61 * 74 AS col0
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT SUM( + + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT SUM ( + + 43 ) AS col0
----
43

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

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

query I rowsort
SELECT ALL + 61 + 57 col2
----
118

query I rowsort
SELECT 85 - 70
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - 13 + + ( + COUNT( * ) ) * - 19 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 13 + + ( + COUNT ( * ) ) * - 19 AS col2
----
-32

query I rowsort
SELECT ALL + 21 * - 29
----
-609

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

skipif mysql # not compatible
query I rowsort label-4083
SELECT - - 15 / - + COUNT ( * ) AS col0
----
-15

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

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

query I rowsort
SELECT ALL - 29 + + ( + 97 )
----
68

query I rowsort
SELECT - - 24 - + 83 * 21 AS col1
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 46 - + 26 * 12 * + 70 * - 14 - - COUNT( * ) + - 7 AS col2
----
305708

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 46 - + 26 * 12 * + 70 * - 14 - - COUNT ( * ) + - 7 AS col2
----
305708

query I rowsort
SELECT - 60 + + - 72 + + ( + 18 ) * + 30
----
408

query II rowsort
SELECT 12 AS col2, ( + + 52 ) AS col2
----
12
52

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT DISTINCT + 84 col0, 82 + + 52 DIV + 48 AS col0
----
84
83

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT + 84 col0, 82 + + 52 / + 48 AS col0
----
84
83

query I rowsort
SELECT - 26 + COALESCE ( - 98, - + COALESCE ( + 90, - + 59 ) * - + 17 )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 86 * + COUNT( * ) - - 6 + 9 * - - COALESCE ( 73, - 66 * - - 70 + COUNT( * ) - NULLIF ( - COUNT( * ), - 73 + + SUM( ALL - 60 ) + + - 60 ) ) + ( + - 12 )
----
737

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 86 * + COUNT ( * ) - - 6 + 9 * - - COALESCE ( 73, - 66 * - - 70 + COUNT ( * ) - NULLIF ( - COUNT ( * ), - 73 + + SUM ( ALL - 60 ) + + - 60 ) ) + ( + - 12 )
----
737

query I rowsort
SELECT - 40 + + 90 + + + 8 + - 74 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT + 98 / + + 61 - + CAST( NULL AS SIGNED ) / + 6 + - 74 * + + COUNT( DISTINCT - + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 98 / + + 61 - + CAST ( NULL AS INTEGER ) / + 6 + - 74 * + + COUNT ( DISTINCT - + 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT - COUNT( * ) * 49 DIV - 47 + 55 + + 17 + - - 56 * - COALESCE ( 74, CASE - 22 WHEN 82 THEN 96 WHEN + 59 - + 88 THEN NULL END )
----
-4071

skipif mysql # not compatible
query I rowsort label-4096
SELECT - COUNT ( * ) * 49 / - 47 + 55 + + 17 + - - 56 * - COALESCE ( 74, CASE - 22 WHEN 82 THEN 96 WHEN + 59 - + 88 THEN NULL END )
----
-4071

query II rowsort
SELECT ALL + - 15 AS col1, 96
----
-15
96

query I rowsort
SELECT ALL 16 * 68 col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + COALESCE ( - NULLIF ( COUNT( - + 52 ), + 44 ), + ( + + 38 ) ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-4099
SELECT + COALESCE ( - NULLIF ( COUNT ( - + 52 ), + 44 ), + ( + + 38 ) ) + - 38
----
-39

query I rowsort
SELECT DISTINCT 63 * 23 * + - 29
----
-42021

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT + ( 74 ) AS col2, COUNT( * ) + - + 12
----
74
-11

skipif mysql # not compatible
query II rowsort label-4101
SELECT + ( 74 ) AS col2, COUNT ( * ) + - + 12
----
74
-11

query I rowsort
SELECT + 79 * 34 + - 38 AS col0
----
2648

query I rowsort
SELECT + 9 * ( - 66 )
----
-594

query I rowsort
SELECT 74 * + 59 + - 8 col1
----
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT MAX( DISTINCT 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4105
SELECT MAX ( DISTINCT 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT 72 * - 56 + + SUM( 75 ) + + 22 * + ( + 74 )
----
-2329

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT 72 * - 56 + + SUM ( 75 ) + + 22 * + ( + 74 )
----
-2329

query I rowsort
SELECT DISTINCT + ( - 66 ) * + 40 col1
----
-2640

query I rowsort
SELECT + 49 + 80 col0
----
129

query I rowsort
SELECT ALL 47 * + 60 + - 21
----
2799

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT - 26 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT - 26 / 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4111
SELECT + CAST( NULL AS SIGNED ) + + 93, + MAX( - - 29 ) + - 84 AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4111
SELECT + CAST ( NULL AS INTEGER ) + + 93, + MAX ( - - 29 ) + - 84 AS col2
----
NULL
-55

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

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

query I rowsort
SELECT + COALESCE ( + 69, + 58, + 29 ) + + 83 AS col1
----
152

query I rowsort
SELECT - 19 + + 66
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - ( + NULLIF ( + 28, + COUNT( * ) ) ) AS col2, 77 AS col0
----
-28
77

skipif mysql # not compatible
query II rowsort label-4115
SELECT - ( + NULLIF ( + 28, + COUNT ( * ) ) ) AS col2, 77 AS col0
----
-28
77

query I rowsort
SELECT ALL - 30 + - + 61
----
-91

query I rowsort
SELECT ALL - - 67 + - - 15
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT - + 20 * + - 74 * + CAST( NULL AS SIGNED ) + - - 25 AS col0, 61 col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4118
SELECT - + 20 * + - 74 * + CAST ( NULL AS INTEGER ) + - - 25 AS col0, 61 col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT + ( 61 ) * - MIN( 97 ), 39 + - 0 col0
----
-5917
39

skipif mysql # not compatible
query II rowsort label-4119
SELECT + ( 61 ) * - MIN ( 97 ), 39 + - 0 col0
----
-5917
39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT ALL + + 63 DIV + 22 * - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + + 63 / + 22 * - - COUNT ( * ) AS col2
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - - MIN( DISTINCT 93 ) - - 41 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - - MIN ( DISTINCT 93 ) - - 41 AS col0
----
134

query I rowsort
SELECT - - 93 * + + 4 * + - 64
----
-23808

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

query I rowsort
SELECT DISTINCT + - 21 * - - 29 + 64
----
-545

query I rowsort
SELECT DISTINCT + - ( - 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT ALL + NULLIF ( 4, - 84 ) AS col0, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL + NULLIF ( 4, - 84 ) AS col0, COUNT ( * ) AS col0
----
4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT CAST( + - 20 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4129
SELECT CAST ( + - 20 AS INTEGER ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT + CASE - CASE - 18 WHEN - 57 * - AVG ( - 97 ) THEN + MAX( 39 ) WHEN - 77 THEN NULL ELSE - 86 - NULLIF ( - 31, + - CAST( NULL AS SIGNED ) ) END WHEN + 2 THEN - COUNT( * ) WHEN MAX( ALL + 4 ) * - + 50 THEN - + 59 ELSE NULL END * - 3 * + 24 + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + CASE - CASE - 18 WHEN - 57 * - AVG ( - 97 ) THEN + MAX ( 39 ) WHEN - 77 THEN NULL ELSE - 86 - NULLIF ( - 31, + - CAST ( NULL AS INTEGER ) ) END WHEN + 2 THEN - COUNT ( * ) WHEN MAX ( ALL + 4 ) * - + 50 THEN - + 59 ELSE NULL END * - 3 * + 24 + + 87 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + COALESCE ( + + COUNT( * ), - 7, + - COALESCE ( - MIN( ALL - 45 ), - ( - + 65 ) ) + + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + COALESCE ( + + COUNT ( * ), - 7, + - COALESCE ( - MIN ( ALL - 45 ), - ( - + 65 ) ) + + 37 )
----
1

query II rowsort
SELECT ALL + 23 * 9 + - 69 AS col0, + 61 AS col0
----
138
61

query I rowsort
SELECT 79 * 90 - + 7 AS col1
----
7103

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT DISTINCT COUNT( - 4 ) * + 93, 78 AS col2
----
93
78

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT COUNT ( - 4 ) * + 93, 78 AS col2
----
93
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT COUNT( * ) + - + 16
----
-15

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT COUNT ( * ) + - + 16
----
-15

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

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + SUM ( - 39 ) / - MIN ( + - 26 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4139
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - - COUNT( * ) - - 97 + - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - CAST ( NULL AS REAL ) - - - COUNT ( * ) - - 97 + - + 64 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 73 AS col1, 79
----
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL - + 90 - + SUM( - + 81 )
----
-9

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - + 90 - + SUM ( - + 81 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT ( 68 ) DIV + + 42 + - 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT ( 68 ) / + + 42 + - 18 AS col1
----
-17

query I rowsort
SELECT 34 + 69 - - + 4 + - 78 * - - 64
----
-4885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT - 51 * + 23 + - NULLIF ( - - 5, - 85 ) - - CASE - ( - - 89 ) WHEN + COUNT( * ) THEN NULL WHEN - SUM( DISTINCT - COALESCE ( - CAST( 13 AS SIGNED ), + + 4 ) ) THEN - - 34 END + SUM( + + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 51 * + 23 + - NULLIF ( - - 5, - 85 ) - - CASE - ( - - 89 ) WHEN + COUNT ( * ) THEN NULL WHEN - SUM ( DISTINCT - COALESCE ( - CAST ( 13 AS INTEGER ), + + 4 ) ) THEN - - 34 END + SUM ( + + 28 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT MIN( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM( + + CAST( NULL AS SIGNED ) ) ) AS col2
----
-5016
83

skipif mysql # not compatible
query II rowsort label-4145
SELECT MIN ( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM ( + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-5016
83

query I rowsort
SELECT ALL + 77 * - 60
----
-4620

query I rowsort
SELECT 27 + 12 AS col1
----
39

query I rowsort
SELECT ALL + 86 * 49
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT + 75 * + 25 * COUNT( * ) + + + 88
----
1963

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + 75 * + 25 * COUNT ( * ) + + + 88
----
1963

query I rowsort
SELECT NULLIF ( 55, - ( + 32 ) * 97 + - + 8 + - 99 ) - - 40 + - 22 - - 35 * - 43 * + 7
----
-10462

query I rowsort
SELECT - 35 * + 68 + - 13
----
-2393

query I rowsort
SELECT ( 6 ) + 92 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT - 35 DIV + 59 + + + 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 35 / + 59 + + + 84 col0
----
84

query I rowsort
SELECT ALL + 1 + + + 11
----
12

query I rowsort
SELECT ( - - 73 ) + 69
----
142

query I rowsort
SELECT 9 - - 58 + 7
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - MAX( ALL + + 83 ) * 88
----
-7304

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - MAX ( ALL + + 83 ) * 88
----
-7304

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL 86 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 86 / - 25
----
-3

query I rowsort
SELECT ALL 45 + 25
----
70

query II rowsort
SELECT + 71 AS col1, + 62 + - 54 + - - 32 col0
----
71
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + COUNT( * ) + 15 * - 76 AS col2
----
-1139

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + COUNT ( * ) + 15 * - 76 AS col2
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - 47 + + + 17 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 47 + + + 17 * - + COUNT ( * )
----
-64

query I rowsort
SELECT ALL - 75 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 5 DIV - 61 * - - ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT 5 / - 61 * - - ( 24 )
----
0

query I rowsort
SELECT 8 + + + 86 - + 23 - 17 AS col1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4166
SELECT 4 AS col2, 37 + - CASE NULLIF ( - 14, - - 33 + + 52 + - 7 + 84 ) WHEN - 90 THEN NULL WHEN - 35 * + 38 + - 60 THEN 63 + - - AVG ( + CAST( 5 AS DECIMAL ) ) END / + 99 * 95 + + 71
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4166
SELECT 4 AS col2, 37 + - CASE NULLIF ( - 14, - - 33 + + 52 + - 7 + 84 ) WHEN - 90 THEN NULL WHEN - 35 * + 38 + - 60 THEN 63 + - - AVG ( + CAST ( 5 AS REAL ) ) END / + 99 * 95 + + 71
----
4
NULL

query II rowsort
SELECT 39 AS col1, - 59 AS col1
----
39
-59

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

query I rowsort
SELECT 89 * - + 7
----
-623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT 3 * 71 * + 92 + - 24 DIV - COUNT( * )
----
19620

skipif mysql # not compatible
query I rowsort label-4170
SELECT 3 * 71 * + 92 + - 24 / - COUNT ( * )
----
19620

query I rowsort
SELECT 98 * - - 22 * + + 31 AS col1
----
66836

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) * - 24 + - + 92
----
-68

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) * - 24 + - + 92
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT COUNT( * ) + + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4173
SELECT COUNT ( * ) + + 2 AS col0
----
3

query II rowsort
SELECT DISTINCT - 82, 26 AS col2
----
-82
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL 54 * MIN( - 84 )
----
-4536

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 54 * MIN ( - 84 )
----
-4536

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MIN( DISTINCT - + 73 ) * - 99
----
7227

skipif mysql # not compatible
query I rowsort label-4177
SELECT MIN ( DISTINCT - + 73 ) * - 99
----
7227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4178
SELECT + 26 + 81 DIV + - CAST( 28 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 26 + 81 / + - CAST ( 28 AS INTEGER )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL - + CAST( + + 29 AS SIGNED ) * + NULLIF ( - COUNT( * ), - + 52 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - + CAST ( + + 29 AS INTEGER ) * + NULLIF ( - COUNT ( * ), - + 52 ) AS col1
----
29

query I rowsort
SELECT 3 + + + ( 50 ) * - 41 * 40 AS col0
----
-81997

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT 93 + + 58 * - MIN( DISTINCT - - 90 ) AS col0, - 95 AS col0
----
-5127
-95

skipif mysql # not compatible
query II rowsort label-4181
SELECT 93 + + 58 * - MIN ( DISTINCT - - 90 ) AS col0, - 95 AS col0
----
-5127
-95

query I rowsort
SELECT DISTINCT - 90 - + 15 AS col0
----
-105

query I rowsort
SELECT - ( - - 94 ) * - 37
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT COUNT( * ) + + - COALESCE ( - 40, - + 9, - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-4184
SELECT COUNT ( * ) + + - COALESCE ( - 40, - + 9, - COUNT ( * ) )
----
41

query II rowsort
SELECT DISTINCT 49, + 27 + 56 col0
----
49
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT - ( - 44 ) / + CAST( NULL AS SIGNED ) / 55 * + 79 * - + 12 * - 12 - - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT - ( - 44 ) / + CAST ( NULL AS INTEGER ) / 55 * + 79 * - + 12 * - 12 - - + 90
----
NULL

query I rowsort
SELECT 18 + + 9 col2
----
27

query II rowsort
SELECT 11 AS col2, - 72
----
11
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT + ( 47 ) DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-4189
SELECT + ( 47 ) / - 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 11 DIV - + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT 11 / - + 28 AS col1
----
0

query I rowsort
SELECT ALL 25 + - COALESCE ( + 90, + NULLIF ( + 57, 60 ) ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT 98 * + COALESCE ( + - COUNT( * ), - 34 * COUNT( * ) ) + + 23
----
-75

skipif mysql # not compatible
query I rowsort label-4192
SELECT 98 * + COALESCE ( + - COUNT ( * ), - 34 * COUNT ( * ) ) + + 23
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-4193
SELECT - 39, + 79 DIV - 67 - - + 18 AS col2
----
-39
17

skipif mysql # not compatible
query II rowsort label-4193
SELECT - 39, + 79 / - 67 - - + 18 AS col2
----
-39
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT + 72 + + 67 + - COUNT( * ) + 19 col2
----
157

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + 72 + + 67 + - COUNT ( * ) + 19 col2
----
157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT 9 + 15 + COUNT( * ) + 97 * 34 + - 75
----
3248

skipif mysql # not compatible
query I rowsort label-4196
SELECT 9 + 15 + COUNT ( * ) + 97 * 34 + - 75
----
3248

query II rowsort
SELECT 83 * 15, 36 AS col1
----
1245
36

query I rowsort
SELECT ALL 48 * + - 96 + - + 30
----
-4638

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT 17 * 10 + + + 85 * - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT 17 * 10 + + + 85 * - COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - 9 * COUNT( * ) * - 86 AS col2
----
774

skipif mysql # not compatible
query I rowsort label-4200
SELECT - 9 * COUNT ( * ) * - 86 AS col2
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COALESCE ( + 42, 42, COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4201
SELECT COALESCE ( + 42, 42, COUNT ( * ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL + 74 * - NULLIF ( + 57, - 33 ) + + COUNT( * )
----
-4217

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + 74 * - NULLIF ( + 57, - 33 ) + + COUNT ( * )
----
-4217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT + CAST( + MIN( + 10 ) AS SIGNED ) - + - 98
----
108

skipif mysql # not compatible
query I rowsort label-4203
SELECT + CAST ( + MIN ( + 10 ) AS INTEGER ) - + - 98
----
108

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) * + 38 - + 30 + - 6 * - ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) * + 38 - + 30 + - 6 * - ( - 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT - 79 * - 57, - 7 + - COUNT( * ) AS col1
----
4503
-8

skipif mysql # not compatible
query II rowsort label-4206
SELECT - 79 * - 57, - 7 + - COUNT ( * ) AS col1
----
4503
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL - ( 61 ) * + 90 * + SUM( DISTINCT + 83 ) * - 17 + 67 AS col1
----
7746457

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - ( 61 ) * + 90 * + SUM ( DISTINCT + 83 ) * - 17 + 67 AS col1
----
7746457

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT MAX( + 86 ) AS col0, + 55
----
86
55

skipif mysql # not compatible
query II rowsort label-4208
SELECT MAX ( + 86 ) AS col0, + 55
----
86
55

query I rowsort
SELECT DISTINCT - 26 * - 17
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT ALL 31 DIV - - MAX( - - 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 31 / - - MAX ( - - 40 ) AS col2
----
0

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

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

query I rowsort
SELECT - 19 - 23 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + ( COUNT( ALL + 53 ) ) * + COUNT( 69 ) DIV + - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + ( COUNT ( ALL + 53 ) ) * + COUNT ( 69 ) / + - 30 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT - CASE COUNT( * ) WHEN + 32 + - + 36 + - + 27 * NULLIF ( - COUNT( + - 82 ), 90 ) THEN - - 6 * - - 32 + + - NULLIF ( 35, + ( + + 52 ) * 59 ) - + CAST( NULL AS SIGNED ) WHEN + 81 THEN NULL ELSE NULL END * - 6 - + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT - CASE COUNT ( * ) WHEN + 32 + - + 36 + - + 27 * NULLIF ( - COUNT ( + - 82 ), 90 ) THEN - - 6 * - - 32 + + - NULLIF ( 35, + ( + + 52 ) * 59 ) - + CAST ( NULL AS INTEGER ) WHEN + 81 THEN NULL ELSE NULL END * - 6 - + ( 66 )
----
NULL

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

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

query I rowsort
SELECT - 10 * - 73
----
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT + CASE + + 20 WHEN + 69 + + 84 THEN 42 * - CASE + COUNT( * ) WHEN - 22 / - ( - COUNT( * ) ) THEN COUNT( * ) WHEN - MIN( DISTINCT 32 ) THEN NULL END * 26 + - 67 * CAST( NULL AS SIGNED ) * + + 63 * - 37 * - 35 WHEN ( + - ( ( 95 ) ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT + CASE + + 20 WHEN + 69 + + 84 THEN 42 * - CASE + COUNT ( * ) WHEN - 22 / - ( - COUNT ( * ) ) THEN COUNT ( * ) WHEN - MIN ( DISTINCT 32 ) THEN NULL END * 26 + - 67 * CAST ( NULL AS INTEGER ) * + + 63 * - 37 * - 35 WHEN ( + - ( ( 95 ) ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT - 38 DIV + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4218
SELECT - 38 / + 37 AS col2
----
-1

query I rowsort
SELECT - + 81 * + - 83 + 26 + 46 AS col0
----
6795

query I rowsort
SELECT - 66 + - - 46 col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL + - 64 + CAST( - 60 AS SIGNED ) + + - NULLIF ( 21, CAST( NULL AS SIGNED ) ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + - 64 + CAST ( - 60 AS INTEGER ) + + - NULLIF ( 21, CAST ( NULL AS INTEGER ) ) AS col0
----
-145

query I rowsort
SELECT - - 54 + 72 * 86 AS col1
----
6246

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4224
SELECT ALL + NULLIF ( - + CAST( NULL AS DECIMAL ), 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + NULLIF ( - + CAST ( NULL AS REAL ), 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT COUNT( - 67 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT COUNT ( - 67 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL + CASE + 26 WHEN SUM( DISTINCT + + 30 ) THEN 36 END + + CAST( NULL AS SIGNED ) + NULLIF ( - 42, 18 ) * + 64 + + NULLIF ( + + 73, + 16 / + 21 * - COUNT( * ) ) * + CASE WHEN NOT ( COUNT( * ) ) < NULL THEN + - 82 / + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + CASE + 26 WHEN SUM ( DISTINCT + + 30 ) THEN 36 END + + CAST ( NULL AS INTEGER ) + NULLIF ( - 42, 18 ) * + 64 + + NULLIF ( + + 73, + 16 / + 21 * - COUNT ( * ) ) * + CASE WHEN NOT ( COUNT ( * ) ) < NULL THEN + - 82 / + + 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT + CASE + + 42 WHEN + ( COALESCE ( 36, - 2 * + 94, + 5 + 4 * - ( + 47 ) ) ) * - - 86 THEN NULL WHEN - + 5 THEN CAST( NULL AS SIGNED ) END - - ( + COUNT( * ) ) / + + NULLIF ( + COUNT( * ), + COUNT( * ) ) * + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + CASE + + 42 WHEN + ( COALESCE ( 36, - 2 * + 94, + 5 + 4 * - ( + 47 ) ) ) * - - 86 THEN NULL WHEN - + 5 THEN CAST ( NULL AS INTEGER ) END - - ( + COUNT ( * ) ) / + + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) * + + 10 AS col2
----
NULL

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

query I rowsort
SELECT + 9 + - 22
----
-13

query I rowsort
SELECT - NULLIF ( + + ( 47 ), + - 40 ) * - + 62
----
2914

query I rowsort
SELECT + 27 * + - 27
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT CAST( - - 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4232
SELECT CAST ( - - 89 AS INTEGER ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT + CAST( - 64 AS SIGNED ) + + 59 col1, 83
----
-5
83

skipif mysql # not compatible
query II rowsort label-4233
SELECT + CAST ( - 64 AS INTEGER ) + + 59 col1, 83
----
-5
83

query I rowsort
SELECT 21 * - ( + 28 ) + + + 44 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + 67 * - MIN( - NULLIF ( - 35, + ( + ( + 86 ) ) / - + 94 * 23 ) ) * 88
----
-206360

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 67 * - MIN ( - NULLIF ( - 35, + ( + ( + 86 ) ) / - + 94 * 23 ) ) * 88
----
-206360

query II rowsort
SELECT DISTINCT + 85 AS col2, + 53
----
85
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - 99 * + 34 + + COUNT( * ) + MAX( ALL 27 ) col0
----
-3338

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 99 * + 34 + + COUNT ( * ) + MAX ( ALL 27 ) col0
----
-3338

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT 85 DIV 82 + - 77 col2
----
-76

skipif mysql # not compatible
query I rowsort label-4238
SELECT 85 / 82 + - 77 col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT + NULLIF ( 5, - + 2 - AVG ( DISTINCT + 4 ) * COUNT( * ) ), + COUNT( * ) + + 75 AS col0
----
5
76

skipif mysql # not compatible
query II rowsort label-4239
SELECT + NULLIF ( 5, - + 2 - AVG ( DISTINCT + 4 ) * COUNT ( * ) ), + COUNT ( * ) + + 75 AS col0
----
5
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - MIN( ALL 56 ) * - - 82
----
-4592

skipif mysql # not compatible
query I rowsort label-4241
SELECT - MIN ( ALL 56 ) * - - 82
----
-4592

query I rowsort
SELECT - 25 * - - 55 * + 23 * - 26 + - - 65 + + - 81 - - 28 + + CASE 62 WHEN 86 THEN NULL WHEN + 92 THEN - 2 END * - ( ( 87 ) ) / - 8 + - 25
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT DISTINCT + - SUM( + 37 ) * - 67, 27 + 68 AS col2
----
2479
95

skipif mysql # not compatible
query II rowsort label-4244
SELECT DISTINCT + - SUM ( + 37 ) * - 67, 27 + 68 AS col2
----
2479
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + ( MAX( ALL - 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + ( MAX ( ALL - 64 ) )
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT CAST( + 58 AS SIGNED ) * - - 21 - CASE + CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT - 6 ) THEN + + 66 * - 33 + 63 / 29 - - CAST( - + 26 AS SIGNED ) END + + + 58 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT CAST ( + 58 AS INTEGER ) * - - 21 - CASE + CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 6 ) THEN + + 66 * - 33 + 63 / 29 - - CAST ( - + 26 AS INTEGER ) END + + + 58 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL COUNT( * ) * + 96 + 71 + - 38 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL COUNT ( * ) * + 96 + 71 + - 38 AS col2
----
129

query II rowsort
SELECT - + 4 AS col0, 4
----
-4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT - 24 * - - COUNT( DISTINCT + + 85 ) AS col0, 96
----
-24
96

skipif mysql # not compatible
query II rowsort label-4252
SELECT - 24 * - - COUNT ( DISTINCT + + 85 ) AS col0, 96
----
-24
96

query I rowsort
SELECT - + 52 + 49
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT + CASE ( ( - 31 ) ) WHEN - + 60 THEN 74 WHEN COALESCE ( + ( 52 ), MAX( + - 57 ) ) * + + AVG ( + + 93 ) * - - 61 THEN - 4 ELSE + 31 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT + CASE ( ( - 31 ) ) WHEN - + 60 THEN 74 WHEN COALESCE ( + ( 52 ), MAX ( + - 57 ) ) * + + AVG ( + + 93 ) * - - 61 THEN - 4 ELSE + 31 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - - 77 + - 50
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL + NULLIF ( + ( - NULLIF ( + - NULLIF ( - 47, - CAST( NULL AS SIGNED ) * 64 * + COUNT( * ) ), + + ( - 84 ) ) ), - + COALESCE ( + COUNT( * ), 20 + - COUNT( ALL - + 12 ), + 97 ) ) + - 64 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + NULLIF ( + ( - NULLIF ( + - NULLIF ( - 47, - CAST ( NULL AS INTEGER ) * 64 * + COUNT ( * ) ), + + ( - 84 ) ) ), - + COALESCE ( + COUNT ( * ), 20 + - COUNT ( ALL - + 12 ), + 97 ) ) + - 64 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT + + MAX( DISTINCT - 99 ) + + + 81 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + + MAX ( DISTINCT - 99 ) + + + 81 AS col0
----
-18

query I rowsort
SELECT ALL - 22 + 89 * - - 31
----
2737

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - 16 - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 16 - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT 89 * - - 43 col2
----
3827

query I rowsort
SELECT ALL + 43 * - + 79
----
-3397

query I rowsort
SELECT 34 + + 87
----
121

query I rowsort
SELECT ALL + 53 * - 73 AS col2
----
-3869

query I rowsort
SELECT DISTINCT - 98 - + 93 AS col1
----
-191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4265
SELECT ALL - CAST( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - CAST ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT CAST( - + 62 AS SIGNED ) * + MAX( ALL - + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT CAST ( - + 62 AS INTEGER ) * + MAX ( ALL - + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT 30 * + 24 * - COUNT( * ) * - 19 AS col0
----
13680

skipif mysql # not compatible
query I rowsort label-4267
SELECT 30 * + 24 * - COUNT ( * ) * - 19 AS col0
----
13680

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT - 6 DIV + + 46 + - 61 - + MIN( ALL + 60 ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-4269
SELECT - 6 / + + 46 + - 61 - + MIN ( ALL + 60 ) AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT - CASE - ( - ( + COALESCE ( 20, - 50, + 59 + - + 57 ) ) ) WHEN - 11 THEN NULL WHEN ( 34 ) THEN + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - CASE - ( - ( + COALESCE ( 20, - 50, + 59 + - + 57 ) ) ) WHEN - 11 THEN NULL WHEN ( 34 ) THEN + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT COUNT( * ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT COUNT ( * ) + - 21
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - COUNT( 4 ) - - - CASE + 73 WHEN + + 23 THEN + + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - COUNT ( 4 ) - - - CASE + 73 WHEN + + 23 THEN + + 67 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 67 + + + 43 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT CASE - 13 WHEN 11 THEN + ( - + 29 ) ELSE + 3 + COUNT( * ) - + ( COALESCE ( - 77, 67 + MIN( 35 ) + + 18 + 22 + 84 * 81 ) ) * - 13 * + 97 - - 38 * 91 END AS col1
----
-93635

skipif mysql # not compatible
query I rowsort label-4274
SELECT CASE - 13 WHEN 11 THEN + ( - + 29 ) ELSE + 3 + COUNT ( * ) - + ( COALESCE ( - 77, 67 + MIN ( 35 ) + + 18 + 22 + 84 * 81 ) ) * - 13 * + 97 - - 38 * 91 END AS col1
----
-93635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 36 * 5 * - + 36
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + 26 + 62 + - 42 * COUNT( * ) * + 63
----
-2558

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + 26 + 62 + - 42 * COUNT ( * ) * + 63
----
-2558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT - - CASE 83 WHEN 83 * - 92 * - - COALESCE ( 80, - 56 + 14 ) + CAST( NULL AS SIGNED ) * COUNT( * ) / - 68 - - 56 * - ( - CAST( NULL AS SIGNED ) ) THEN 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT - - CASE 83 WHEN 83 * - 92 * - - COALESCE ( 80, - 56 + 14 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) / - 68 - - 56 * - ( - CAST ( NULL AS INTEGER ) ) THEN 10 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4279
SELECT ALL MAX( ALL + 31 ) AS col1, + 42 + CAST( NULL AS SIGNED ) - + ( + + 64 ) + 58 + - 84 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL MAX ( ALL + 31 ) AS col1, + 42 + CAST ( NULL AS INTEGER ) - + ( + + 64 ) + 58 + - 84 AS col2
----
31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT 83 * + 72 * + + CAST( 28 AS SIGNED ) AS col1
----
167328

skipif mysql # not compatible
query I rowsort label-4280
SELECT 83 * + 72 * + + CAST ( 28 AS INTEGER ) AS col1
----
167328

query I rowsort
SELECT 18 * + 47 AS col1
----
846

query I rowsort
SELECT 24 - 89 AS col1
----
-65

query II rowsort
SELECT DISTINCT 12 AS col0, ( - 85 )
----
12
-85

query I rowsort
SELECT ( 34 ) + ( + 90 )
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT - 66, + COUNT( * ) + - NULLIF ( 46, + 72 ) col0
----
-66
-45

skipif mysql # not compatible
query II rowsort label-4285
SELECT - 66, + COUNT ( * ) + - NULLIF ( 46, + 72 ) col0
----
-66
-45

query I rowsort
SELECT ALL - CASE - 71 WHEN - 42 THEN + ( - 25 ) WHEN 13 THEN + 96 ELSE NULL END / - + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4287
SELECT DISTINCT 23 AS col1, COUNT( * ) DIV + COALESCE ( + - CASE 7 WHEN - COUNT( * ) THEN - ( + COALESCE ( - 52, CAST( NULL AS SIGNED ) + COUNT( * ) * - 49, 34 + - 72 + + - 4 - + 35 * + 5 + 47 + - 32 DIV - - 3 * - - 79 + + + 48 * + COUNT( ALL - 34 ) ) ) WHEN - - COUNT( * ) + - + ( 0 ) THEN SUM( ALL + 27 ) DIV + 2 END, MAX( ALL - - 68 ) ) * + 18 * - 26
----
23
0

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT 23 AS col1, COUNT ( * ) / + COALESCE ( + - CASE 7 WHEN - COUNT ( * ) THEN - ( + COALESCE ( - 52, CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 49, 34 + - 72 + + - 4 - + 35 * + 5 + 47 + - 32 / - - 3 * - - 79 + + + 48 * + COUNT ( ALL - 34 ) ) ) WHEN - - COUNT ( * ) + - + ( 0 ) THEN SUM ( ALL + 27 ) / + 2 END, MAX ( ALL - - 68 ) ) * + 18 * - 26
----
23
0

query II rowsort
SELECT 24 + - 61 * - 30 AS col0, 68
----
1854
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT + COALESCE ( - 93, - - ( - + ( + NULLIF ( COALESCE ( + 65, + + SUM( DISTINCT 0 ), 41 + + - AVG ( + 79 ), 65 ), 90 + - 58 - + COUNT( * ) * + - 66 DIV + 60 * - 60 * + + 65 * COUNT( * ) + - - 86 + COUNT( 66 ) * - - 76 ) ) ) * COUNT( + + 10 ) DIV - - 4 + + 79 ) * 96 col0
----
-8928

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + COALESCE ( - 93, - - ( - + ( + NULLIF ( COALESCE ( + 65, + + SUM ( DISTINCT 0 ), 41 + + - AVG ( + 79 ), 65 ), 90 + - 58 - + COUNT ( * ) * + - 66 / + 60 * - 60 * + + 65 * COUNT ( * ) + - - 86 + COUNT ( 66 ) * - - 76 ) ) ) * COUNT ( + + 10 ) / - - 4 + + 79 ) * 96 col0
----
-8928

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT 33 + + COUNT( + 29 ) AS col0, 63 AS col2
----
34
63

skipif mysql # not compatible
query II rowsort label-4290
SELECT 33 + + COUNT ( + 29 ) AS col0, 63 AS col2
----
34
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT COUNT( * ) + + COUNT( * ) * - - COUNT( DISTINCT - 5 )
----
2

skipif mysql # not compatible
query I rowsort label-4291
SELECT COUNT ( * ) + + COUNT ( * ) * - - COUNT ( DISTINCT - 5 )
----
2

query I rowsort
SELECT ALL + 22 * - + 46 AS col1
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( * ) * COALESCE ( + 84, - 63 ) * + 50 AS col2
----
4200

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( * ) * COALESCE ( + 84, - 63 ) * + 50 AS col2
----
4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT 52 + - ( - + COUNT( * ) ) DIV 62
----
52

skipif mysql # not compatible
query I rowsort label-4294
SELECT 52 + - ( - + COUNT ( * ) ) / 62
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT 22 DIV - ( - + 45 ) + - 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4295
SELECT 22 / - ( - + 45 ) + - 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - COUNT( 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - COUNT ( 66 )
----
-1

query I rowsort
SELECT 33 + + 81 * - + 10 * - 4 AS col2
----
3273

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT + 15 DIV + + 42 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 15 / + + 42 + - 27
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 39 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT 39 / + 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT ( + 84 ) * 94 + + - 55 * + - 87 + + COUNT( * ) + MAX( - 74 )
----
12608

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT ( + 84 ) * 94 + + - 55 * + - 87 + + COUNT ( * ) + MAX ( - 74 )
----
12608

query I rowsort
SELECT DISTINCT - 4 * - 20 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL - 36 * + - COUNT( * ) + + - 78 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - 36 * + - COUNT ( * ) + + - 78 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL CAST( NULL AS SIGNED ) * - 66 + + AVG ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL CAST ( NULL AS INTEGER ) * - 66 + + AVG ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT 93 DIV + + SUM( ALL + 26 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4304
SELECT 93 / + + SUM ( ALL + 26 ) AS col1
----
3

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

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - MIN ( 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT + CASE + COALESCE ( + ( - 74 ), + COUNT( * ) ) WHEN + COUNT( ALL - 36 ) + 93 THEN NULL WHEN + COUNT( - - COALESCE ( + CAST( NULL AS SIGNED ), 46 ) ) THEN 25 END + CAST( COUNT( DISTINCT - 38 ) AS SIGNED ) * - NULLIF ( - 19, - 59 ) + 91 * - 45 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + CASE + COALESCE ( + ( - 74 ), + COUNT ( * ) ) WHEN + COUNT ( ALL - 36 ) + 93 THEN NULL WHEN + COUNT ( - - COALESCE ( + CAST ( NULL AS INTEGER ), 46 ) ) THEN 25 END + CAST ( COUNT ( DISTINCT - 38 ) AS INTEGER ) * - NULLIF ( - 19, - 59 ) + 91 * - 45 + - 5
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 59, - 68 ) + - + 5
----
-64

query I rowsort
SELECT 41 * 84
----
3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT + 36 * + 64 + + COALESCE ( + 92, - 65 + - 38 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 36 * + 64 + + COALESCE ( + 92, - 65 + - 38 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + + ( - CASE - - 8 WHEN - COUNT( * ) + - - 94 * 13 THEN - - 68 * + 28 - - 3 * 85 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + + ( - CASE - - 8 WHEN - COUNT ( * ) + - - 94 * 13 THEN - - 68 * + 28 - - 3 * 85 END ) AS col2
----
NULL

query I rowsort
SELECT ALL - - ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + 49 * + 51 + - MIN( ALL + + ( - 8 ) ) + + + 79
----
2586

skipif mysql # not compatible
query I rowsort label-4312
SELECT + 49 * + 51 + - MIN ( ALL + + ( - 8 ) ) + + + 79
----
2586

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

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

query I rowsort
SELECT 77 * - + 30 + + 73 AS col2
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + SUM( DISTINCT - - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4315
SELECT + SUM ( DISTINCT - - 76 ) AS col0
----
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4317
SELECT + + CAST( NULL AS SIGNED ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0
----
NULL
5600

skipif mysql # not compatible
query II rowsort label-4317
SELECT + + CAST ( NULL AS INTEGER ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0
----
NULL
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL COUNT( DISTINCT ( + 88 ) ) - - - CASE + COUNT( * ) WHEN 86 * - - 75 + + 36 + - + 45 * + 34 + - 96 THEN + 71 + - 45 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL COUNT ( DISTINCT ( + 88 ) ) - - - CASE + COUNT ( * ) WHEN 86 * - - 75 + + 36 + - + 45 * + 34 + - 96 THEN + 71 + - 45 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - COUNT( * ) * - 25
----
25

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - COUNT ( * ) * - 25
----
25

query II rowsort
SELECT - 25 AS col2, - 54
----
-25
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT ALL 8 AS col0, 73 + + COUNT( * ) + + 40 col2
----
8
114

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL 8 AS col0, 73 + + COUNT ( * ) + + 40 col2
----
8
114

query II rowsort
SELECT DISTINCT 59 AS col2, 66 * + - 91 AS col2
----
59
-6006

query II rowsort
SELECT DISTINCT 12, + 41 + - 83 AS col1
----
12
-42

query II rowsort
SELECT DISTINCT 70 col0, + ( - 66 ) * + 35
----
70
-2310

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

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

query II rowsort
SELECT - ( - 96 ), + 75 AS col0
----
96
75

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

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 91 * + 48 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 97 * 21
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT COUNT( * ) * - + ( + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT COUNT ( * ) * - + ( + 89 ) AS col1
----
-89

query I rowsort
SELECT + 61 * - 63
----
-3843

query I rowsort
SELECT ALL + 91 + 33 * + 49 * 36 * + 23
----
1338967

query I rowsort
SELECT ALL COALESCE ( + 20, - 20 ) + 32 * - 36
----
-1132

query I rowsort
SELECT DISTINCT + 45 * - 46 + 97 AS col1
----
-1973

query I rowsort
SELECT ALL + NULLIF ( ( + - 57 ), - + ( 93 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL NULLIF ( - + 18, - 43 + - 45 ) * + 29 + COUNT( * ) + 83 + - - 50 * - 59 col2
----
-3388

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL NULLIF ( - + 18, - 43 + - 45 ) * + 29 + COUNT ( * ) + 83 + - - 50 * - 59 col2
----
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - - COUNT( * ) * - SUM( DISTINCT - 11 ) + + 62 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - COUNT ( * ) * - SUM ( DISTINCT - 11 ) + + 62 AS col2
----
73

query I rowsort
SELECT ALL 18 * 88 + + + 60
----
1644

query I rowsort
SELECT + + COALESCE ( 49, + 63 ) AS col2
----
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT 87 * 46 + - - 82 + + + 69 DIV - 42 AS col0
----
4083

skipif mysql # not compatible
query I rowsort label-4340
SELECT 87 * 46 + - - 82 + + + 69 / - 42 AS col0
----
4083

query I rowsort
SELECT - 91 * - ( - 25 )
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + 47 * NULLIF ( + COUNT( * ), - 80 * - + 83 ) * - 15 + - 5 + + 31 * - + 30 + - 12 * - 92 + 16 AS col1
----
-520

skipif mysql # not compatible
query I rowsort label-4342
SELECT + 47 * NULLIF ( + COUNT ( * ), - 80 * - + 83 ) * - 15 + - 5 + + 31 * - + 30 + - 12 * - 92 + 16 AS col1
----
-520

query II rowsort
SELECT 41 AS col0, 0 * + 97 - - + 40
----
41
40

query I rowsort
SELECT - + NULLIF ( - + 34, + + 79 ) * - + 29 * 91 col0
----
-89726

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - - 26 * - + COALESCE ( CASE - - 1 WHEN 34 * - 91 * - MIN( ALL 32 ) / 15 THEN - 74 END, + COUNT( * ), - ( - ( ( - - 88 ) ) ) * + 43 + 75 ) * + + 44 + - 56 * + COUNT( * ) + - - MAX( + 78 )
----
-1122

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - - 26 * - + COALESCE ( CASE - - 1 WHEN 34 * - 91 * - MIN ( ALL 32 ) / 15 THEN - 74 END, + COUNT ( * ), - ( - ( ( - - 88 ) ) ) * + 43 + 75 ) * + + 44 + - 56 * + COUNT ( * ) + - - MAX ( + 78 )
----
-1122

query I rowsort
SELECT DISTINCT + NULLIF ( + 59, - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - 16 * - - COUNT( * ) * - + 97 - - 43
----
1595

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 16 * - - COUNT ( * ) * - + 97 - - 43
----
1595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT + ( - 77 ) * + - 83 + + + 9 + + ( 24 ) + 41 + COUNT( + 90 ) DIV - 25 + + 49 * COUNT( * ) AS col0
----
6514

skipif mysql # not compatible
query I rowsort label-4348
SELECT + ( - 77 ) * + - 83 + + + 9 + + ( 24 ) + 41 + COUNT ( + 90 ) / - 25 + + 49 * COUNT ( * ) AS col0
----
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COALESCE ( - COUNT( * ), 86 - SUM( - 26 ) + + 77 * 34 ) * - 41 * 69 * - 30 AS col2
----
84870

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COALESCE ( - COUNT ( * ), 86 - SUM ( - 26 ) + + 77 * 34 ) * - 41 * 69 * - 30 AS col2
----
84870

query I rowsort
SELECT + 93 * - ( + 53 ) + + 34 + 15 AS col2
----
-4880

query II rowsort
SELECT + - 25, 58 AS col1
----
-25
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - ( - 77 ) * - COALESCE ( + MIN( ALL + - ( 34 ) ), + - COALESCE ( - 19, - 64 ) * - 23 * - 92 - - 14 + + + 14 * + 65 * 37 ) AS col2
----
2618

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - ( - 77 ) * - COALESCE ( + MIN ( ALL + - ( 34 ) ), + - COALESCE ( - 19, - 64 ) * - 23 * - 92 - - 14 + + + 14 * + 65 * 37 ) AS col2
----
2618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT + COUNT( * ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COUNT ( * ) / 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT ALL ( + + COUNT( ALL + 48 ) ) AS col0, - 39 * 24 + - ( - MIN( ALL + 98 ) ) AS col1
----
1
-838

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL ( + + COUNT ( ALL + 48 ) ) AS col0, - 39 * 24 + - ( - MIN ( ALL + 98 ) ) AS col1
----
1
-838

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT + 27 / ( - 92 ) * - + CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT ALL + 94 * - + 45 AS col2
----
-4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT ALL 26 * - 99 DIV - COUNT( * ) AS col1
----
2574

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 26 * - 99 / - COUNT ( * ) AS col1
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT SUM( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4359
SELECT SUM ( + 14 ) AS col0
----
14

query I rowsort
SELECT + 73 * 45
----
3285

query I rowsort
SELECT + 85 + 5
----
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT - CAST( 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4363
SELECT - CAST ( 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL 73 + + MAX( + 46 )
----
119

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 73 + + MAX ( + 46 )
----
119

onlyif mysql # aggregate syntax: 
query III rowsort label-4365
SELECT + 37 + - COUNT( * ) AS col0, - 34 AS col1, 1
----
36
-34
1

skipif mysql # not compatible
query III rowsort label-4365
SELECT + 37 + - COUNT ( * ) AS col0, - 34 AS col1, 1
----
36
-34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT - ( + MIN( + - 59 ) ) AS col2, 40
----
59
40

skipif mysql # not compatible
query II rowsort label-4366
SELECT - ( + MIN ( + - 59 ) ) AS col2, 40
----
59
40

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

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL CAST ( NULL AS INTEGER ) + + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT SUM( ALL 72 ) + - 28 - 17
----
27

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT SUM ( ALL 72 ) + - 28 - 17
----
27

query I rowsort
SELECT DISTINCT 30 * + + 57
----
1710

query II rowsort
SELECT - 66 + + - 45 AS col1, + 89
----
-111
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT ALL NULLIF ( 20, + 99 ) + - - 15 DIV - 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL NULLIF ( 20, + 99 ) + - - 15 / - 19 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT + + 16 DIV + + 79 - + 53 + - + 87 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-4372
SELECT + + 16 / + + 79 - + 53 + - + 87 AS col1
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT - + COALESCE ( 12, + 39, 37 + 14 + - 24 * + - 53 * - NULLIF ( SUM( ALL + NULLIF ( 14, + 54 ) ), - + CAST( NULL AS SIGNED ) ) ) * + 62
----
-744

skipif mysql # not compatible
query I rowsort label-4373
SELECT - + COALESCE ( 12, + 39, 37 + 14 + - 24 * + - 53 * - NULLIF ( SUM ( ALL + NULLIF ( 14, + 54 ) ), - + CAST ( NULL AS INTEGER ) ) ) * + 62
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT CASE - - NULLIF ( + 89, 48 ) WHEN - + NULLIF ( + COUNT( * ), 98 ) * + 90 - + + 12 + + + 12 + + 76 * + 45 + - 49 * - ( - 64 ) + - SUM( - 41 ) * + 20 * + 96 * + 90 * + + 97 THEN NULL WHEN + 50 + 4 + - + 23 * - 33 THEN + 44 / - - 34 * - - 95 END / + 98 - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT CASE - - NULLIF ( + 89, 48 ) WHEN - + NULLIF ( + COUNT ( * ), 98 ) * + 90 - + + 12 + + + 12 + + 76 * + 45 + - 49 * - ( - 64 ) + - SUM ( - 41 ) * + 20 * + 96 * + 90 * + + 97 THEN NULL WHEN + 50 + 4 + - + 23 * - 33 THEN + 44 / - - 34 * - - 95 END / + 98 - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL + + MAX( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT( * ) + - 35 AS col1
----
-14
58

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + + MAX ( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT ( * ) + - 35 AS col1
----
-14
58

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

query I rowsort
SELECT + 41 * + + 43 + - + 67 + 32 AS col2
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4378
SELECT ALL + COUNT( * ) DIV + 75, 64 * - - ( - - ( 78 ) ) AS col1
----
0
4992

skipif mysql # not compatible
query II rowsort label-4378
SELECT ALL + COUNT ( * ) / + 75, 64 * - - ( - - ( 78 ) ) AS col1
----
0
4992

query I rowsort
SELECT DISTINCT 20 - - ( + 72 ) + 81 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT 40 + COALESCE ( - CAST( NULL AS SIGNED ), + ( ( - 85 ) ) * + 73 + + + COUNT( * ) ) + + ( - 25 ) col1
----
-6189

skipif mysql # not compatible
query I rowsort label-4380
SELECT 40 + COALESCE ( - CAST ( NULL AS INTEGER ), + ( ( - 85 ) ) * + 73 + + + COUNT ( * ) ) + + ( - 25 ) col1
----
-6189

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - MIN( - 94 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - MIN ( - 94 ) col0
----
94

query I rowsort
SELECT + 91 * + 99
----
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4383
SELECT ALL - COUNT( * ) * - + 41 col2, + 61 DIV + MAX( DISTINCT 12 ) AS col2
----
41
5

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL - COUNT ( * ) * - + 41 col2, + 61 / + MAX ( DISTINCT 12 ) AS col2
----
41
5

query I rowsort
SELECT + - 75 * + 53 + 5 AS col2
----
-3970

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 57 * - 91 * + - MAX( - + 11 )
----
-57057

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 57 * - 91 * + - MAX ( - + 11 )
----
-57057

query I rowsort
SELECT ALL 27 * NULLIF ( + 26, 16 ) AS col0
----
702

query I rowsort
SELECT DISTINCT + COALESCE ( - - ( - 44 ), - 36 - 87, + 97 + + 56 + + + 51 ) + - 70 + - + ( - 94 ) * + + 3 * 36
----
10038

query I rowsort
SELECT - 42 * - + 27 + 23 AS col1
----
1157

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT ALL - 72 AS col2, 23 * + + 73 * + + 95 - + 97 DIV 99
----
-72
159505

skipif mysql # not compatible
query II rowsort label-4389
SELECT ALL - 72 AS col2, 23 * + + 73 * + + 95 - + 97 / 99
----
-72
159505

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL - 26 + - CASE + COUNT( * ) WHEN - COUNT( ALL + 47 ) + + - COUNT( * ) * SUM( - 64 ) * - 4 THEN + 77 ELSE + - 58 END
----
32

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - 26 + - CASE + COUNT ( * ) WHEN - COUNT ( ALL + 47 ) + + - COUNT ( * ) * SUM ( - 64 ) * - 4 THEN + 77 ELSE + - 58 END
----
32

query I rowsort
SELECT 24 * - - 8 * + + 20 * 7 * + 52 AS col0
----
1397760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT COUNT( DISTINCT - 32 ) + + CAST( + COUNT( * ) AS SIGNED )
----
2

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

query I rowsort
SELECT 69 + - - 65 + 92
----
226

query I rowsort
SELECT ALL 73 + - 61 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4395
SELECT 38 AS col0, 87 + - - 14 + - CAST( NULL AS SIGNED ) / + 57 * + MAX( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT 38 AS col0, 87 + - - 14 + - CAST ( NULL AS INTEGER ) / + 57 * + MAX ( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0
----
38
NULL

query I rowsort
SELECT DISTINCT - 9 + + + 11
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL 25 + - COUNT( * ) + - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 25 + - COUNT ( * ) + - COUNT ( * ) AS col2
----
23

query I rowsort
SELECT 58 * 30 * + 74 AS col1
----
128760

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 60 + + 6 - - - COUNT( * ) * + + 8 * + 2 * 6 * 79
----
-7518

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 60 + + 6 - - - COUNT ( * ) * + + 8 * + 2 * 6 * 79
----
-7518

query I rowsort
SELECT DISTINCT - 73 * 71 * + 13
----
-67379

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL 89 - COUNT( * ) * - - 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL 89 - COUNT ( * ) * - - 89 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT 48 - + + NULLIF ( + 16, 31 ) + - + 63 + - 52 DIV + - 3 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4403
SELECT 48 - + + NULLIF ( + 16, 31 ) + - + 63 + - 52 / + - 3 AS col1
----
-14

query II rowsort
SELECT - 51 AS col2, 9 * - + ( - 97 ) AS col2
----
-51
873

query II rowsort
SELECT - + 93 AS col0, + 85
----
-93
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4406
SELECT + CAST( + 4 AS SIGNED ) * + 3 AS col0, + ( 74 ) + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - CAST( - 95 AS SIGNED ) ) + + - SUM( - 12 ) col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4406
SELECT + CAST ( + 4 AS INTEGER ) * + 3 AS col0, + ( 74 ) + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - CAST ( - 95 AS INTEGER ) ) + + - SUM ( - 12 ) col2
----
12
NULL

query I rowsort
SELECT - 12 * - - NULLIF ( - 18, 99 + - - 96 )
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL 69 * + 83 * + 31 + - - COUNT( * ) - - 21 * - - 38 AS col2
----
178336

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 69 * + 83 * + 31 + - - COUNT ( * ) - - 21 * - - 38 AS col2
----
178336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT - 39 - ( - CAST( NULL AS SIGNED ) ) + + 50 + + + 93 + + 96 + + MIN( - + 40 ) - - CAST( NULL AS SIGNED ) * MIN( - - 97 ) * + - ( + 28 ) / - 23 + + 1 + + COALESCE ( 48, AVG ( ALL 5 ) + 92, + + ( + COUNT( * ) ) + + 93 + - 48 + ( + 64 ), - 37 + + 87 - - 69 * + 7 + + 64 * - 76 * - 62 ) / AVG ( + 91 ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 39 - ( - CAST ( NULL AS INTEGER ) ) + + 50 + + + 93 + + 96 + + MIN ( - + 40 ) - - CAST ( NULL AS INTEGER ) * MIN ( - - 97 ) * + - ( + 28 ) / - 23 + + 1 + + COALESCE ( 48, AVG ( ALL 5 ) + 92, + + ( + COUNT ( * ) ) + + 93 + - 48 + ( + 64 ), - 37 + + 87 - - 69 * + 7 + + 64 * - 76 * - 62 ) / AVG ( + 91 ) * 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4410
SELECT ALL 9 DIV + 56 + + - CAST( - - 83 AS SIGNED ) + + - 64 * 74 + - - ( 19 ) * + + 11 * - 9
----
-6700

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL 9 / + 56 + + - CAST ( - - 83 AS INTEGER ) + + - 64 * 74 + - - ( 19 ) * + + 11 * - 9
----
-6700

query II rowsort
SELECT DISTINCT - - 13, - ( 75 ) AS col1
----
13
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT ( - + COUNT( ALL + 87 ) ) * - + COALESCE ( - CAST( NULL AS SIGNED ), - - 48, - + COUNT( * ), 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT ( - + COUNT ( ALL + 87 ) ) * - + COALESCE ( - CAST ( NULL AS INTEGER ), - - 48, - + COUNT ( * ), 49 ) AS col1
----
48

query II rowsort
SELECT + NULLIF ( 10, 61 ), + 21 AS col0
----
10
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT CASE + + 3 WHEN + 21 THEN - 62 END / + CAST( + - ( 34 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT CASE + + 3 WHEN + 21 THEN - 62 END / + CAST ( + - ( 34 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - - 70, + + 10 ) * + 3
----
-210

query I rowsort
SELECT - 98 + - 29
----
-127

query II rowsort
SELECT ALL - - 72 col0, 68
----
72
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT 65 DIV - 94 * - COUNT( * ) * COALESCE ( - 59, + MAX( DISTINCT + 19 ) DIV 15 ) + 80 + 99 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4418
SELECT 65 / - 94 * - COUNT ( * ) * COALESCE ( - 59, + MAX ( DISTINCT + 19 ) / 15 ) + 80 + 99 AS col0
----
179

query I rowsort
SELECT ALL 16 * 87 AS col2
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - CASE + 88 WHEN - 18 / + + 73 THEN - 11 * + COUNT( + 86 ) * + - 80 + - 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - CASE + 88 WHEN - 18 / + + 73 THEN - 11 * + COUNT ( + 86 ) * + - 80 + - 16 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 43 * - 89 AS col1
----
-3827

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT - 0 * - + 87 - + + COUNT( * ) * + COUNT( * ), 49 - + 42 AS col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-4422
SELECT - 0 * - + 87 - + + COUNT ( * ) * + COUNT ( * ), 49 - + 42 AS col1
----
-1
7

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

skipif mysql # not compatible
query I rowsort label-4423
SELECT ( - + COUNT ( * ) ) + + 66 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL + CASE - ( 84 ) WHEN + COALESCE ( - COUNT( ALL + + 33 ), 95 * - 9 + + 0 * + 63 ) + + + CASE 81 WHEN 87 THEN - + COUNT( ALL + 9 ) WHEN + COALESCE ( 76, + - 64 ) / - + ( 63 ) + + 34 THEN - COALESCE ( - 89, + 12, 8 + ( - 62 ) ) * - 8 * + - CAST( NULL AS SIGNED ) * - CAST( - 68 AS SIGNED ) + - 79 ELSE - - 90 END THEN + - MIN( DISTINCT 9 ) / - 75 WHEN + 19 * 71 + - 70 THEN 60 ELSE NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + CASE - ( 84 ) WHEN + COALESCE ( - COUNT ( ALL + + 33 ), 95 * - 9 + + 0 * + 63 ) + + + CASE 81 WHEN 87 THEN - + COUNT ( ALL + 9 ) WHEN + COALESCE ( 76, + - 64 ) / - + ( 63 ) + + 34 THEN - COALESCE ( - 89, + 12, 8 + ( - 62 ) ) * - 8 * + - CAST ( NULL AS INTEGER ) * - CAST ( - 68 AS INTEGER ) + - 79 ELSE - - 90 END THEN + - MIN ( DISTINCT 9 ) / - 75 WHEN + 19 * 71 + - 70 THEN 60 ELSE NULL END * 9
----
NULL

query II rowsort
SELECT DISTINCT + 50 * - 22 AS col0, 91 * ( - 52 ) + + - 44
----
-1100
-4776

query I rowsort
SELECT ALL + 32 + - 7 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + SUM( ( - 34 ) ) + - 81 * - COUNT( * ) * + - 77 * 52 AS col0
----
-324358

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + SUM ( ( - 34 ) ) + - 81 * - COUNT ( * ) * + - 77 * 52 AS col0
----
-324358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT 48 + MAX( DISTINCT + 34 ) DIV 39 * + + 19 * + - 19
----
48

skipif mysql # not compatible
query I rowsort label-4428
SELECT 48 + MAX ( DISTINCT + 34 ) / 39 * + + 19 * + - 19
----
48

query I rowsort
SELECT 58 + 28 + + 99 AS col0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4430
SELECT 93 - 29 DIV - + 74 + - COUNT( * ), + 38 AS col0
----
92
38

skipif mysql # not compatible
query II rowsort label-4430
SELECT 93 - 29 / - + 74 + - COUNT ( * ), + 38 AS col0
----
92
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL MAX( DISTINCT + COALESCE ( - 6, + 2 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL MAX ( DISTINCT + COALESCE ( - 6, + 2 ) ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL - 5 * - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - 5 * - COUNT ( * ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL - + NULLIF ( 73, + - 2 * 18 * + + 52 ) DIV 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - + NULLIF ( 73, + - 2 * 18 * + + 52 ) / 68 AS col0
----
-1

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

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

query I rowsort
SELECT 54 + 4
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4436
SELECT DISTINCT - 61 - 76 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - 61 - 76 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 19 * + 91 AS col2
----
-1729

query I rowsort
SELECT - - NULLIF ( 60, + - 58 + + + 32 ) * 27 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT + 46 * - COUNT( * ) * - ( - - 3 ), MIN( - 55 ) * 19 AS col0
----
138
-1045

skipif mysql # not compatible
query II rowsort label-4439
SELECT + 46 * - COUNT ( * ) * - ( - - 3 ), MIN ( - 55 ) * 19 AS col0
----
138
-1045

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

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + CAST ( AVG ( ALL - 63 ) AS INTEGER ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT - ( 18 ) DIV + - 83 + - 40 * + 28
----
-1120

skipif mysql # not compatible
query I rowsort label-4441
SELECT - ( 18 ) / + - 83 + - 40 * + 28
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT - CAST( NULL AS SIGNED ) * - + NULLIF ( - 3, - + 46 + + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT - CAST ( NULL AS INTEGER ) * - + NULLIF ( - 3, - + 46 + + 33 )
----
NULL

query I rowsort
SELECT ALL + + 54 * - - ( - 25 ) + + 62
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) * 64 - - 13 + - 59 - - - 32 col2
----
-142

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) * 64 - - 13 + - 59 - - - 32 col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL - 29 * 60 + - COUNT( * ) + + 27 col0
----
-1714

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - 29 * 60 + - COUNT ( * ) + + 27 col0
----
-1714

query I rowsort
SELECT ALL + 46 * + 82 + + + 64 AS col0
----
3836

query I rowsort
SELECT + 44 * 25 AS col0
----
1100

query I rowsort
SELECT + 50 * - + 2 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - 69 * - COUNT( * ) * 28 + + + 66 AS col0
----
1998

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - 69 * - COUNT ( * ) * 28 + + + 66 AS col0
----
1998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT + MAX( ALL + 23 ) + + 52 DIV 15 * + + 95
----
308

skipif mysql # not compatible
query I rowsort label-4450
SELECT + MAX ( ALL + 23 ) + + 52 / 15 * + + 95
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4451
SELECT + 14 * + + 49 * - - CAST( + 68 AS SIGNED ) * + 32 AS col0, + 96 + - + COUNT( * )
----
1492736
95

skipif mysql # not compatible
query II rowsort label-4451
SELECT + 14 * + + 49 * - - CAST ( + 68 AS INTEGER ) * + 32 AS col0, + 96 + - + COUNT ( * )
----
1492736
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + 32 + - 49 * - SUM( - 8 ) * - MAX( DISTINCT 45 )
----
17672

skipif mysql # not compatible
query I rowsort label-4452
SELECT + 32 + - 49 * - SUM ( - 8 ) * - MAX ( DISTINCT 45 )
----
17672

query I rowsort
SELECT DISTINCT - 91 * 22 AS col2
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT MAX( NULLIF ( + 24, - 86 * 28 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4454
SELECT MAX ( NULLIF ( + 24, - 86 * 28 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT - 84 + + + CAST( + 97 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 84 + + + CAST ( + 97 AS INTEGER ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT 82 * NULLIF ( + 83, + 44 ) - COUNT( * ) * + COUNT( * )
----
6805

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT 82 * NULLIF ( + 83, + 44 ) - COUNT ( * ) * + COUNT ( * )
----
6805

query I rowsort
SELECT + CASE + 83 WHEN 48 THEN ( 52 ) END * + 62 + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL + 28 * + + COUNT( * ) * - 92 * - + 25 AS col0
----
64400

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + 28 * + + COUNT ( * ) * - 92 * - + 25 AS col0
----
64400

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

query I rowsort
SELECT DISTINCT 13 * - 6
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4461
SELECT ALL + ( 65 ) * 79 AS col1, - CAST( NULL AS SIGNED ) + + COUNT( * ) + 95 AS col2
----
5135
NULL

skipif mysql # not compatible
query II rowsort label-4461
SELECT ALL + ( 65 ) * 79 AS col1, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 95 AS col2
----
5135
NULL

query I rowsort
SELECT ALL NULLIF ( 38, - 56 ) col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL - + CAST( NULL AS SIGNED ) * NULLIF ( - 17, 16 * 99 + + ( + CASE + - AVG ( + - 73 ) WHEN + AVG ( ALL - 98 ) / - + 47 THEN - 14 + - 33 / 15 WHEN + MIN( - + 94 ) + 98 THEN NULL ELSE + 88 * + COALESCE ( + - 40, - 59, + 7 * 72 ) + - 17 - - 90 * 70 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - + CAST ( NULL AS INTEGER ) * NULLIF ( - 17, 16 * 99 + + ( + CASE + - AVG ( + - 73 ) WHEN + AVG ( ALL - 98 ) / - + 47 THEN - 14 + - 33 / 15 WHEN + MIN ( - + 94 ) + 98 THEN NULL ELSE + 88 * + COALESCE ( + - 40, - 59, + 7 * 72 ) + - 17 - - 90 * 70 END ) )
----
NULL

query II rowsort
SELECT DISTINCT 77 AS col1, + ( - 23 ) AS col1
----
77
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4465
SELECT - 30 DIV + - COUNT( * ) + - 82, + 52 + - COALESCE ( + 83, 81 * 13, - - 69 * 67 ) + + 79 DIV COUNT( * ) AS col0
----
-52
48

skipif mysql # not compatible
query II rowsort label-4465
SELECT - 30 / + - COUNT ( * ) + - 82, + 52 + - COALESCE ( + 83, 81 * 13, - - 69 * 67 ) + + 79 / COUNT ( * ) AS col0
----
-52
48

query I rowsort
SELECT NULLIF ( - 65, 53 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - 88 - + + MAX( DISTINCT - - 57 ) AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 88 - + + MAX ( DISTINCT - - 57 ) AS col1
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT ALL - 16 DIV + - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - 16 / + - 29 AS col2
----
0

query II rowsort
SELECT - 56 AS col0, - 26
----
-56
-26

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

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

query I rowsort
SELECT ALL - 66 + - + 12 col1
----
-78

query I rowsort
SELECT - - 91 * - - NULLIF ( + - 12, + 80 ) - 79
----
-1171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT ALL + 26 DIV + 84 + + + COUNT( * ) + + + 19
----
20

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + 26 / + 84 + + + COUNT ( * ) + + + 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + + NULLIF ( - + 70, 29 ) * - - COUNT( * ) - + ( + COUNT( * ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4474
SELECT + + NULLIF ( - + 70, 29 ) * - - COUNT ( * ) - + ( + COUNT ( * ) ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT ALL + 19 DIV + 45 + - 40 * 73
----
-2920

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + 19 / + 45 + - 40 * 73
----
-2920

query II rowsort
SELECT ALL + 88 AS col1, 96 AS col0
----
88
96

query I rowsort
SELECT ALL + CASE - 15 WHEN + 49 * + 95 THEN 46 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT ( + + 5 ) DIV - 22 * + 27 + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT ( + + 5 ) / - 22 * + 27 + - 67
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT ALL + 14 AS col2, 87 + + COUNT( ( - - 48 ) ) + - 98 + + COUNT( * ) * + + 4 AS col0
----
14
-6

skipif mysql # not compatible
query II rowsort label-4479
SELECT ALL + 14 AS col2, 87 + + COUNT ( ( - - 48 ) ) + - 98 + + COUNT ( * ) * + + 4 AS col0
----
14
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL + ( - MIN( DISTINCT 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + ( - MIN ( DISTINCT 32 ) ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL 2 * - COALESCE ( - + 20, - CAST( - 10 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL 2 * - COALESCE ( - + 20, - CAST ( - 10 AS INTEGER ) )
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT ALL 14 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL 14 / - 37
----
0

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

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

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

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

query I rowsort
SELECT - 55 * - - 38
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + MIN( + + 83 ) * + 18
----
1494

skipif mysql # not compatible
query I rowsort label-4487
SELECT + MIN ( + + 83 ) * + 18
----
1494

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL + COUNT( * ) AS col2, 26 * + 70 AS col2
----
1
1820

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL + COUNT ( * ) AS col2, 26 * + 70 AS col2
----
1
1820

query II rowsort
SELECT DISTINCT 72 * - 86, - 80 AS col0
----
-6192
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT 71 DIV - 23 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4490
SELECT 71 / - 23 AS col1
----
-3

query I rowsort
SELECT 14 * 22
----
308

onlyif mysql # aggregate syntax: 
query III rowsort label-4492
SELECT DISTINCT - 73 AS col2, COUNT( * ) * COUNT( * ) + + - 83 AS col0, - 82 * 24 AS col2
----
-73
-82
-1968

skipif mysql # not compatible
query III rowsort label-4492
SELECT DISTINCT - 73 AS col2, COUNT ( * ) * COUNT ( * ) + + - 83 AS col0, - 82 * 24 AS col2
----
-73
-82
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - 49 * MIN( DISTINCT + + 43 ) AS col2
----
-2107

skipif mysql # not compatible
query I rowsort label-4493
SELECT - 49 * MIN ( DISTINCT + + 43 ) AS col2
----
-2107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT 61 * CASE - 54 WHEN NULLIF ( + + 90, - 58 / + - 80 * + - 70 ) THEN NULL WHEN - + 84 THEN + - CAST( - NULLIF ( + - 23, + 20 + - 20 + 17 / + 89 ) AS SIGNED ) - - + 56 * - 34 ELSE + - 99 - 24 END AS col1
----
-7503

skipif mysql # not compatible
query I rowsort label-4494
SELECT 61 * CASE - 54 WHEN NULLIF ( + + 90, - 58 / + - 80 * + - 70 ) THEN NULL WHEN - + 84 THEN + - CAST ( - NULLIF ( + - 23, + 20 + - 20 + 17 / + 89 ) AS INTEGER ) - - + 56 * - 34 ELSE + - 99 - 24 END AS col1
----
-7503

query I rowsort
SELECT + 58 + 82
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT MAX( ALL ( + + 43 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4496
SELECT MAX ( ALL ( + + 43 ) ) AS col2
----
43

query I rowsort
SELECT ALL 2 + - 39 * + 21
----
-817

query I rowsort
SELECT + 41 - - 79 col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT 40 + 35 + 85 DIV 78 + + NULLIF ( - 51, 59 * - 35 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4499
SELECT 40 + 35 + 85 / 78 + + NULLIF ( - 51, 59 * - 35 ) AS col2
----
25

query I rowsort
SELECT ALL - 70 + - 40 AS col0
----
-110

query II rowsort
SELECT 2, - 97 + ( + 0 ) AS col0
----
2
-97

query I rowsort
SELECT DISTINCT 64 * - - 54 - + 96 AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - 8 + + 46 * - 59 - + - ( - COUNT( * ) )
----
-2723

skipif mysql # not compatible
query I rowsort label-4503
SELECT - 8 + + 46 * - 59 - + - ( - COUNT ( * ) )
----
-2723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT DISTINCT - CAST( + NULLIF ( COUNT( * ), + 62 + - 70 * 72 ) AS SIGNED ) + - 80 * - 87 AS col0
----
6959

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - CAST ( + NULLIF ( COUNT ( * ), + 62 + - 70 * 72 ) AS INTEGER ) + - 80 * - 87 AS col0
----
6959

query I rowsort
SELECT DISTINCT + 93 + + 38 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4506
SELECT ALL + 35 + + + 20 * + COALESCE ( - 90, + 81, 76, + ( + 4 ) + MIN( DISTINCT 23 ) * CAST( + + 99 AS SIGNED ) ) AS col0, 13 + ( + COUNT( DISTINCT - 42 ) ) col1
----
-1765
14

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL + 35 + + + 20 * + COALESCE ( - 90, + 81, 76, + ( + 4 ) + MIN ( DISTINCT 23 ) * CAST ( + + 99 AS INTEGER ) ) AS col0, 13 + ( + COUNT ( DISTINCT - 42 ) ) col1
----
-1765
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + ( + 32 ) * - - COUNT( DISTINCT - 31 ) + 75
----
107

skipif mysql # not compatible
query I rowsort label-4507
SELECT + ( + 32 ) * - - COUNT ( DISTINCT - 31 ) + 75
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT 74 DIV - - 19 + - 35 + + 22
----
-10

skipif mysql # not compatible
query I rowsort label-4508
SELECT 74 / - - 19 + - 35 + + 22
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT DISTINCT + 17 DIV + + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT + 17 / + + 22 AS col1
----
0

query I rowsort
SELECT DISTINCT - 63 - 73 AS col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT ALL + 8 * + + 7 DIV - ( + + 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + 8 * + + 7 / - ( + + 77 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT 43 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT 43 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4514
SELECT + 50 DIV 88 + CAST( - 21 AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4514
SELECT + 50 / 88 + CAST ( - 21 AS INTEGER ) AS col2
----
-21

query II rowsort
SELECT ALL + 0 * - + 31 AS col1, ( - 1 ) * - - 23 AS col2
----
0
-23

query II rowsort
SELECT ALL - 46 - 82 AS col0, - 47 AS col0
----
-128
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-4517
SELECT 42 * - - 84, - 43 + + 0 DIV - 41 AS col2
----
3528
-43

skipif mysql # not compatible
query II rowsort label-4517
SELECT 42 * - - 84, - 43 + + 0 / - 41 AS col2
----
3528
-43

query I rowsort
SELECT DISTINCT - 28 * + 94 AS col2
----
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + 87 * + + 5 + COUNT( * )
----
436

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 87 * + + 5 + COUNT ( * )
----
436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4520
SELECT 97 * 13, ( + CAST( SUM( - NULLIF ( + + 99, - - 69 ) ) AS SIGNED ) ) AS col1
----
1261
-99

skipif mysql # not compatible
query II rowsort label-4520
SELECT 97 * 13, ( + CAST ( SUM ( - NULLIF ( + + 99, - - 69 ) ) AS INTEGER ) ) AS col1
----
1261
-99

query II rowsort
SELECT 68 * 99 AS col2, 91 * + 70 + + 30
----
6732
6400

query II rowsort
SELECT ALL - ( - - 64 ) AS col0, + 87
----
-64
87

query I rowsort
SELECT 93 + 4 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT 74 * - 86 * - COUNT( * ) + - 79 AS col2
----
6285

skipif mysql # not compatible
query I rowsort label-4524
SELECT 74 * - 86 * - COUNT ( * ) + - 79 AS col2
----
6285

query I rowsort
SELECT ALL + 82 * - + 54 + - 82
----
-4510

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT NULLIF ( - SUM( ALL + - 9 ), - 95 - - 84 - - 27 ) * + 36
----
324

skipif mysql # not compatible
query I rowsort label-4526
SELECT NULLIF ( - SUM ( ALL + - 9 ), - 95 - - 84 - - 27 ) * + 36
----
324

query II rowsort
SELECT - - 27 * 32 + + + 80 AS col1, - 80 + - 51
----
944
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT 82 * NULLIF ( - CAST( - ( - + 45 ) AS SIGNED ), ( 51 ) + + 44 + + 95 ) - + 63 + + SUM( + + ( - - ( - 74 ) ) ) DIV - 73 AS col0
----
-3752

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT 82 * NULLIF ( - CAST ( - ( - + 45 ) AS INTEGER ), ( 51 ) + + 44 + + 95 ) - + 63 + + SUM ( + + ( - - ( - 74 ) ) ) / - 73 AS col0
----
-3752

query I rowsort
SELECT ALL - 91 + + 97 AS col2
----
6

query I rowsort
SELECT DISTINCT 91 + + 28 + - ( - + 70 ) AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ( 12 ) DIV + - 2 - + - MIN( DISTINCT 76 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( 12 ) / + - 2 - + - MIN ( DISTINCT 76 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 66 DIV - ( + 46 ) + + 72 + + 48 * - 92 * 9 - 98 + 59 * ( + ( - 35 ) ) * COUNT( * )
----
-41836

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 66 / - ( + 46 ) + + 72 + + 48 * - 92 * 9 - 98 + 59 * ( + ( - 35 ) ) * COUNT ( * )
----
-41836

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT - 6 DIV - 32 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-4533
SELECT - 6 / - 32 + - 3
----
-3

query I rowsort
SELECT ALL - ( - 93 ) + 22 + - + 95 * 85 + - 90 AS col0
----
-8050

query I rowsort
SELECT 78 * - 63 + - 99 + - 97
----
-5110

query I rowsort
SELECT DISTINCT ( + ( ( - 41 ) ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 55 * 34 * 65 + - ( SUM( + 52 ) )
----
121498

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 55 * 34 * 65 + - ( SUM ( + 52 ) )
----
121498

query I rowsort
SELECT - NULLIF ( + 24, 74 * - 38 * + - 83 )
----
-24

query I rowsort
SELECT DISTINCT + - 94 * - 3 + 19 + - 93 * 4 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4540
SELECT ALL COALESCE ( + 72, - 96 DIV 58 + 85 ) * + COUNT( * ) * - + 42 * + + 93 AS col1, 51 + + 8 * - + 38
----
-281232
-253

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL COALESCE ( + 72, - 96 / 58 + 85 ) * + COUNT ( * ) * - + 42 * + + 93 AS col1, 51 + + 8 * - + 38
----
-281232
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT CASE + 30 WHEN + 94 + 15 * - 34 + COALESCE ( COUNT( * ), + 61 + 96 / - + 0 ) THEN - 93 ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT CASE + 30 WHEN + 94 + 15 * - 34 + COALESCE ( COUNT ( * ), + 61 + 96 / - + 0 ) THEN - 93 ELSE NULL END * 85
----
NULL

query I rowsort
SELECT 62 - + 89
----
-27

query I rowsort
SELECT NULLIF ( - 98, + 35 + + 51 * - - 41 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT + COUNT( * ) DIV ( - 43 ) DIV + 82 * - - 47 * + 7 - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4544
SELECT + COUNT ( * ) / ( - 43 ) / + 82 * - - 47 * + 7 - + 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT COALESCE ( + - 49, COUNT( * ) * + - 55 ) * + - SUM( ALL - 72 )
----
-3528

skipif mysql # not compatible
query I rowsort label-4545
SELECT COALESCE ( + - 49, COUNT ( * ) * + - 55 ) * + - SUM ( ALL - 72 )
----
-3528

query I rowsort
SELECT 78 * - + 30 col1
----
-2340

query II rowsort
SELECT ALL - 23 AS col0, 44 AS col0
----
-23
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + 83 * COUNT( * ) + 8 * - + CASE COUNT( * ) WHEN + 13 THEN + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + 83 * COUNT ( * ) + 8 * - + CASE COUNT ( * ) WHEN + 13 THEN + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT 68 * - 95 * - - ( + 39 )
----
-251940

query I rowsort
SELECT DISTINCT + 69 * - 55 AS col2
----
-3795

query I rowsort
SELECT - 25 * - - 80
----
-2000

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT 90 DIV - 45
----
-2

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT 90 / - 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - COUNT( ALL 63 ) * - + 2 + - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - COUNT ( ALL 63 ) * - + 2 + - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL - 89 * + 14 + - + 6 * + + 81 * + + 61
----
-30892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT + SUM( ALL - NULLIF ( + 8, + + 41 / - + 81 * 16 ) ) * - 40 * - - CAST( + - COUNT( * ) AS SIGNED ) * - 52 AS col0
----
16640

skipif mysql # not compatible
query I rowsort label-4556
SELECT + SUM ( ALL - NULLIF ( + 8, + + 41 / - + 81 * 16 ) ) * - 40 * - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 52 AS col0
----
16640

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - 95 * + MIN( ALL - 26 ) * + 8 AS col1
----
19760

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 95 * + MIN ( ALL - 26 ) * + 8 AS col1
----
19760

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT COUNT( * ) col0, 63 AS col0
----
1
63

skipif mysql # not compatible
query II rowsort label-4558
SELECT COUNT ( * ) col0, 63 AS col0
----
1
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - 71 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT - 71 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4560
SELECT + + 29 col2, ( + + COUNT( DISTINCT + 59 ) ) DIV - - 28 + - 37
----
29
-37

skipif mysql # not compatible
query II rowsort label-4560
SELECT + + 29 col2, ( + + COUNT ( DISTINCT + 59 ) ) / - - 28 + - 37
----
29
-37

query I rowsort
SELECT - 40 + 45 AS col2
----
5

query I rowsort
SELECT ALL + - 72 + - 17 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT ALL - ( - 18 ) + + 57 DIV COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - ( - 18 ) + + 57 / COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT NULLIF ( - + 61, + 99 - + ( 94 ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL - - SUM( - 53 ) + + 62 + 19
----
28

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - - SUM ( - 53 ) + + 62 + 19
----
28

query I rowsort
SELECT + - 99 + 50 AS col2
----
-49

query I rowsort
SELECT - - 88 + 89 + - 41 + + 17
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + COUNT( * ) * + COUNT( * ) * + ( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4569
SELECT + COUNT ( * ) * + COUNT ( * ) * + ( 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - ( - - 48 ) + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4570
SELECT - ( - - 48 ) + COUNT ( * )
----
-47

query I rowsort
SELECT ALL - 43 * - 44
----
1892

query I rowsort
SELECT - 70 + - 85
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + COUNT( * ) - 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4573
SELECT + COUNT ( * ) - 2 AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 88 * + 25
----
-2200

query I rowsort
SELECT ALL 23 - + 38
----
-15

query II rowsort
SELECT DISTINCT + 74, NULLIF ( 72, - - 89 ) * - 7 AS col0
----
74
-504

query I rowsort
SELECT + 97 * - - 34 AS col1
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL + MAX( - 55 ) * ( - + NULLIF ( 6, 67 ) )
----
330

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL + MAX ( - 55 ) * ( - + NULLIF ( 6, 67 ) )
----
330

query I rowsort
SELECT DISTINCT - + 75 * - 63
----
4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT + COUNT( ALL - 2 ) + 58 + - 92 * 30 + 83 DIV - - 41 + - - 90 AS col1
----
-2609

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( ALL - 2 ) + 58 + - 92 * 30 + 83 / - - 41 + - - 90 AS col1
----
-2609

query I rowsort
SELECT - 3 * + 36 * - ( + 40 ) * ( ( + 9 ) )
----
38880

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT - 80 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-4582
SELECT - 80 / 66
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4583
SELECT + 85 DIV 55, 74 + - COUNT( * ) col0
----
1
73

skipif mysql # not compatible
query II rowsort label-4583
SELECT + 85 / 55, 74 + - COUNT ( * ) col0
----
1
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT ALL 91 DIV - 76 col0, - 7 AS col1
----
-1
-7

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL 91 / - 76 col0, - 7 AS col1
----
-1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - MIN( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4585
SELECT - MIN ( DISTINCT 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + SUM( - 79 ) + - NULLIF ( - MAX( DISTINCT + 26 ), COUNT( ALL - 9 ) ) * 67 * ( + COUNT( * ) ) AS col1
----
1663

skipif mysql # not compatible
query I rowsort label-4586
SELECT + SUM ( - 79 ) + - NULLIF ( - MAX ( DISTINCT + 26 ), COUNT ( ALL - 9 ) ) * 67 * ( + COUNT ( * ) ) AS col1
----
1663

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL COUNT( * ) * - COUNT( * ) * - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 38 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4588
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0, - 61 * - COUNT( * )
----
1
61

skipif mysql # not compatible
query II rowsort label-4588
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0, - 61 * - COUNT ( * )
----
1
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL 79 DIV + 49 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL 79 / + 49 + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT ALL - 45 DIV 1 + - + COALESCE ( + - 69, - 4 )
----
24

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - 45 / 1 + - + COALESCE ( + - 69, - 4 )
----
24

query I rowsort
SELECT 74 * + 46 + + 89
----
3493

query I rowsort
SELECT ( + - 54 ) col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT ( + 16 ), COUNT( * ) col1
----
16
1

skipif mysql # not compatible
query II rowsort label-4593
SELECT ( + 16 ), COUNT ( * ) col1
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL 22 * - - 49 + CASE 47 WHEN - 43 * - + 63 * - - SUM( ALL - 16 ) + - - 83 * AVG ( DISTINCT 5 ) THEN NULL ELSE 96 END AS col2
----
1174

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL 22 * - - 49 + CASE 47 WHEN - 43 * - + 63 * - - SUM ( ALL - 16 ) + - - 83 * AVG ( DISTINCT 5 ) THEN NULL ELSE 96 END AS col2
----
1174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4595
SELECT ( - 97 ) * - + 93 + + 81 AS col1, + CAST( 74 AS SIGNED )
----
9102
74

skipif mysql # not compatible
query II rowsort label-4595
SELECT ( - 97 ) * - + 93 + + 81 AS col1, + CAST ( 74 AS INTEGER )
----
9102
74

query I rowsort
SELECT - 65 + - + 98 * + 21 AS col1
----
-2123

onlyif mysql # aggregate syntax: 
query II rowsort label-4597
SELECT ALL - COUNT( * ) * + - ( + 57 ) + + 11, + 28 AS col0
----
68
28

skipif mysql # not compatible
query II rowsort label-4597
SELECT ALL - COUNT ( * ) * + - ( + 57 ) + + 11, + 28 AS col0
----
68
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL - COUNT( - 46 ) * + 79 * + + 67 * - - CASE + - ( + + 47 ) WHEN + + MIN( - 99 ) THEN NULL ELSE - - 21 END - + 91 + + - 94 * - NULLIF ( - + 67, - 60 ) AS col0
----
-117542

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - COUNT ( - 46 ) * + 79 * + + 67 * - - CASE + - ( + + 47 ) WHEN + + MIN ( - 99 ) THEN NULL ELSE - - 21 END - + 91 + + - 94 * - NULLIF ( - + 67, - 60 ) AS col0
----
-117542

query I rowsort
SELECT - + 77 + - 9 * - 24 * - + 93 AS col2
----
-20165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4600
SELECT - - COALESCE ( - 19, - 76 * + + 6 + 47 + 40 DIV - 27 + - COALESCE ( 62, - 37 + COUNT( * ) ) - - CAST( NULL AS SIGNED ) * - 99 + SUM( + + 71 ) ) + - 34 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4600
SELECT - - COALESCE ( - 19, - 76 * + + 6 + 47 + 40 / - 27 + - COALESCE ( 62, - 37 + COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) * - 99 + SUM ( + + 71 ) ) + - 34 AS col0
----
-53

query I rowsort
SELECT ALL - 39 * + 5 - - 24 * + - 70 AS col2
----
-1875

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT ( - COUNT( * ) ), NULLIF ( - 44, - 54 * - 77 ) AS col1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-4602
SELECT ( - COUNT ( * ) ), NULLIF ( - 44, - 54 * - 77 ) AS col1
----
-1
-44

query I rowsort
SELECT - 74 * + 99 * 34 + - + 77 col2
----
-249161

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL + 47 * - + CASE - 44 WHEN + ( + 77 ) + + SUM( - 19 ) - 49 THEN + 75 * + 63 / - ( - + 99 ) + + 27 - + - COUNT( * ) * - 39 ELSE NULL END + + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 47 * - + CASE - 44 WHEN + ( + 77 ) + + SUM ( - 19 ) - 49 THEN + 75 * + 63 / - ( - + 99 ) + + 27 - + - COUNT ( * ) * - 39 ELSE NULL END + + + 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 82 * - + 38 * + - 67 * + 18 - 94 - - 24 + + 6
----
-3757960

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL CASE + 67 WHEN + COUNT( * ) THEN NULL WHEN - + NULLIF ( - 81, + NULLIF ( - 36, - 8 ) + - 7 + + 91 + + 51 - ( + 93 ) - 29 / 73 * - COUNT( ALL 0 ) + - - 8 * + + 97 * + COUNT( * ) ) THEN NULL ELSE - 35 END
----
-35

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL CASE + 67 WHEN + COUNT ( * ) THEN NULL WHEN - + NULLIF ( - 81, + NULLIF ( - 36, - 8 ) + - 7 + + 91 + + 51 - ( + 93 ) - 29 / 73 * - COUNT ( ALL 0 ) + - - 8 * + + 97 * + COUNT ( * ) ) THEN NULL ELSE - 35 END
----
-35

query I rowsort
SELECT ALL + 32 * 50 AS col2
----
1600

query I rowsort
SELECT - + ( ( + 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - 13 * 80 + + MAX( DISTINCT 39 ) + 63 AS col2
----
-938

skipif mysql # not compatible
query I rowsort label-4609
SELECT - 13 * 80 + + MAX ( DISTINCT 39 ) + 63 AS col2
----
-938

query I rowsort
SELECT ALL - 87 * 56 AS col2
----
-4872

query I rowsort
SELECT - 56 - - 93 + + + 42 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - 73 * 90 * COUNT( * ) AS col1
----
-6570

skipif mysql # not compatible
query I rowsort label-4612
SELECT - 73 * 90 * COUNT ( * ) AS col1
----
-6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT - COUNT( * ) - CAST( + 1 AS SIGNED ) - - 16 * + 2 * + + 15 + + + 96 AS col2
----
574

skipif mysql # not compatible
query I rowsort label-4613
SELECT - COUNT ( * ) - CAST ( + 1 AS INTEGER ) - - 16 * + 2 * + + 15 + + + 96 AS col2
----
574

query I rowsort
SELECT ALL - 87 + + - 37 AS col0
----
-124

query II rowsort
SELECT DISTINCT 70, - 1 AS col0
----
70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL 38 + + COUNT( * ) + COUNT( * ) + - 19
----
21

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 38 + + COUNT ( * ) + COUNT ( * ) + - 19
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + 27
----
27

query II rowsort
SELECT 55 AS col1, 20
----
55
20

query I rowsort
SELECT ALL 72 + + 55
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT 96 - - 94 DIV 64 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4620
SELECT 96 - - 94 / 64 AS col2
----
97

query I rowsort
SELECT ALL 2 + - 58
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( - + 52 ) * + + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( - + 52 ) * + + 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 43 / + + CASE 94 WHEN 27 * - 78 THEN + + 88 END + COUNT( * ) * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT 43 / + + CASE 94 WHEN 27 * - 78 THEN + + 88 END + COUNT ( * ) * + + 79
----
NULL

query I rowsort
SELECT DISTINCT 71 + 12 col1
----
83

query II rowsort
SELECT ALL ( - 83 ) * + 94, 82 * - + 50 * + 61 + - 31 + + - 83 AS col0
----
-7802
-250214

query II rowsort
SELECT DISTINCT - 70 AS col1, + 73 AS col0
----
-70
73

query I rowsort
SELECT ALL 1 + + + 39 + - 17 + - 58 + 66 * - + 93
----
-6173

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT SUM( ALL + 29 ) * + 26 * + 20 AS col0
----
15080

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT SUM ( ALL + 29 ) * + 26 * + 20 AS col0
----
15080

query I rowsort
SELECT DISTINCT - 59 - - 62 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + 49 * - SUM( - 57 ) + - NULLIF ( - COUNT( * ), ( - - 69 ) + + + CASE - + COUNT( * ) WHEN - 52 THEN 50 + - - ( + 25 ) WHEN 59 THEN NULL ELSE NULL END ) + - NULLIF ( 85, 86 + 27 ) * + 92 * + 62 * + - 10 * + + 39
----
189090394

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 49 * - SUM ( - 57 ) + - NULLIF ( - COUNT ( * ), ( - - 69 ) + + + CASE - + COUNT ( * ) WHEN - 52 THEN 50 + - - ( + 25 ) WHEN 59 THEN NULL ELSE NULL END ) + - NULLIF ( 85, 86 + 27 ) * + 92 * + 62 * + - 10 * + + 39
----
189090394

query I rowsort
SELECT ALL - 43 * 76 AS col0
----
-3268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4632
SELECT DISTINCT + - CAST( + - 38 AS SIGNED ) - 31 AS col0, 75 AS col0
----
7
75

skipif mysql # not compatible
query II rowsort label-4632
SELECT DISTINCT + - CAST ( + - 38 AS INTEGER ) - 31 AS col0, 75 AS col0
----
7
75

query I rowsort
SELECT DISTINCT - 10 * + + ( + 70 )
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4634
SELECT - COALESCE ( 44, + CAST( NULL AS SIGNED ) * - NULLIF ( - 4, - 23 ), - - 26 ) * + 42 AS col2, + 17
----
-1848
17

skipif mysql # not compatible
query II rowsort label-4634
SELECT - COALESCE ( 44, + CAST ( NULL AS INTEGER ) * - NULLIF ( - 4, - 23 ), - - 26 ) * + 42 AS col2, + 17
----
-1848
17

query I rowsort
SELECT - 86 * - 78
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - MIN( ALL - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - MIN ( ALL - 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT 60 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT 60 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) + ( - NULLIF ( + ( + + 95 ), - 22 * ( 64 ) * + - 67 * 50 ) ) + + COUNT( * ) * + - 53 + - + 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) + ( - NULLIF ( + ( + + 95 ), - 22 * ( 64 ) * + - 67 * 50 ) ) + + COUNT ( * ) * + - 53 + - + 46 col1
----
NULL

query I rowsort
SELECT + + NULLIF ( - 76, - ( 96 ) - 95 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + MAX( ALL - 75 ) - + 48 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + MAX ( ALL - 75 ) - + 48 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + 52 + + COUNT( * ) + + - 28 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 52 + + COUNT ( * ) + + - 28 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT 40 DIV - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4642
SELECT 40 / - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + + SUM( - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + SUM ( - + 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 83 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 83 / + 39
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT DISTINCT - + 87 * MIN( - 77 ) * 79 - - + 51, - 84 AS col2
----
529272
-84

skipif mysql # not compatible
query II rowsort label-4645
SELECT DISTINCT - + 87 * MIN ( - 77 ) * 79 - - + 51, - 84 AS col2
----
529272
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT ALL - 66 DIV - - 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - 66 / - - 88 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT 32 + + 50 + + 79 DIV + + 88 * - 95
----
82

skipif mysql # not compatible
query I rowsort label-4647
SELECT 32 + + 50 + + 79 / + + 88 * - 95
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT - ( - - ( - + CAST( - - 58 AS SIGNED ) ) ) + + COUNT( + + 33 )
----
59

skipif mysql # not compatible
query I rowsort label-4648
SELECT - ( - - ( - + CAST ( - - 58 AS INTEGER ) ) ) + + COUNT ( + + 33 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4649
SELECT ALL + 55 + + 16, + 41 + + 78 + - - 57 + - + NULLIF ( - 23, 46 ) DIV - 75 + + 73 * 97 - - - COUNT( * ) + - + 40 + 46 + + COUNT( * ) * 9 AS col1
----
71
7271

skipif mysql # not compatible
query II rowsort label-4649
SELECT ALL + 55 + + 16, + 41 + + 78 + - - 57 + - + NULLIF ( - 23, 46 ) / - 75 + + 73 * 97 - - - COUNT ( * ) + - + 40 + 46 + + COUNT ( * ) * 9 AS col1
----
71
7271

query II rowsort
SELECT - 52 col2, 75
----
-52
75

query II rowsort
SELECT 8, ( 36 ) AS col2
----
8
36

query I rowsort
SELECT 71 + + 61 AS col1
----
132

query I rowsort
SELECT DISTINCT + 10 + - 31 AS col2
----
-21

query I rowsort
SELECT ALL - CASE - - 69 WHEN 71 * 13 THEN NULL WHEN + 53 THEN - - 13 END + + + 37 AS col1
----
NULL

query I rowsort
SELECT 87 + + 36
----
123

query I rowsort
SELECT DISTINCT + 11 + 61 + - 57
----
15

query I rowsort
SELECT ALL - 56 + + 93
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT ALL MIN( DISTINCT - + 85 ), - ( - ( COUNT( * ) ) ) + 35 AS col1
----
-85
36

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL MIN ( DISTINCT - + 85 ), - ( - ( COUNT ( * ) ) ) + 35 AS col1
----
-85
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4659
SELECT 96 DIV - 65 AS col0, + 11 * + + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT 96 / - 65 AS col0, + 11 * + + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - 20 * + 98
----
-1960

query I rowsort
SELECT DISTINCT - 14 * - 8 - - + 63
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - 39 * - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + 81 * 23 - + 83 * + MIN( ALL - ( 79 ) )
----
8420

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + 81 * 23 - + 83 * + MIN ( ALL - ( 79 ) )
----
8420

query II rowsort
SELECT 21 * + - 76 AS col2, + 48
----
-1596
48

query I rowsort
SELECT ALL + 72 * + - 3 AS col1
----
-216

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4666
SELECT - 82 * - ( - CAST( + ( - 73 ) AS SIGNED ) ) - + 61 + + 19 - 84 + CAST( NULL AS DECIMAL ) * 98 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 82 * - ( - CAST ( + ( - 73 ) AS INTEGER ) ) - + 61 + + 19 - 84 + CAST ( NULL AS REAL ) * 98 * - 0 AS col0
----
NULL

query I rowsort
SELECT - 47 * + 71
----
-3337

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4668
SELECT CAST( NULL AS DECIMAL ) + - 93 * - 60 + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT CAST ( NULL AS REAL ) + - 93 * - 60 + + 17 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + 0 DIV 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 0 / 54 AS col1
----
0

query I rowsort
SELECT 98 * - - NULLIF ( - 49, - 64 )
----
-4802

query I rowsort
SELECT - - 37 * - 8 + 44
----
-252

query II rowsort
SELECT ALL - 75 AS col2, - ( + 3 ) * + + 72
----
-75
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL - 65 AS col0, COUNT( * ) + + - 32 AS col0
----
-65
-31

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL - 65 AS col0, COUNT ( * ) + + - 32 AS col0
----
-65
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT COUNT( * ) + + 15, - 3 * + 6 AS col0
----
16
-18

skipif mysql # not compatible
query II rowsort label-4674
SELECT COUNT ( * ) + + 15, - 3 * + 6 AS col0
----
16
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - - NULLIF ( COUNT( - + 76 ), 45 - NULLIF ( 83, - 91 * - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - NULLIF ( COUNT ( - + 76 ), 45 - NULLIF ( 83, - 91 * - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL 89 * - - 66
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 55 + - COUNT( * ) + 80 * + + 76 AS col0
----
6134

skipif mysql # not compatible
query I rowsort label-4677
SELECT 55 + - COUNT ( * ) + 80 * + + 76 AS col0
----
6134

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT + + 70 AS col0, 23 + CASE 36 WHEN + 23 THEN 69 WHEN 77 THEN NULL ELSE NULL END + COUNT( * ) + 0 + - 54 * + + COUNT( * ) * + - 5 AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4678
SELECT + + 70 AS col0, 23 + CASE 36 WHEN + 23 THEN 69 WHEN 77 THEN NULL ELSE NULL END + COUNT ( * ) + 0 + - 54 * + + COUNT ( * ) * + - 5 AS col1
----
70
NULL

query I rowsort
SELECT DISTINCT + 37 + - 26 col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT - 16 * + 91 * - + MAX( 68 ) * + + ( + - SUM( DISTINCT - + 97 ) ), - 84 AS col2
----
9603776
-84

skipif mysql # not compatible
query II rowsort label-4680
SELECT - 16 * + 91 * - + MAX ( 68 ) * + + ( + - SUM ( DISTINCT - + 97 ) ), - 84 AS col2
----
9603776
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT MIN( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4681
SELECT MIN ( + 32 )
----
32

query I rowsort
SELECT + - ( + 82 )
----
-82

query I rowsort
SELECT DISTINCT 74 + COALESCE ( + + ( 94 ), + 95 ) * 93 AS col2
----
8816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4684
SELECT - ( - 42 ), 90 * 15 AS col0, 77 * + - ( - + 71 ) * 24 + + + 99 / + 75 * - 32 + - - 8 + - COALESCE ( ( - CAST( NULL AS SIGNED ) ), - 80 * + - CAST( NULL AS SIGNED ) * + COUNT( * ) / + - 48 * - CAST( - - 82 AS SIGNED ) + - 93 * NULLIF ( + COUNT( * ), - COUNT( * ) / - - 80 ) ) / + + 65 - + - 4 AS col1
----
42
1350
NULL

skipif mysql # not compatible
query III rowsort label-4684
SELECT - ( - 42 ), 90 * 15 AS col0, 77 * + - ( - + 71 ) * 24 + + + 99 / + 75 * - 32 + - - 8 + - COALESCE ( ( - CAST ( NULL AS INTEGER ) ), - 80 * + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + - 48 * - CAST ( - - 82 AS INTEGER ) + - 93 * NULLIF ( + COUNT ( * ), - COUNT ( * ) / - - 80 ) ) / + + 65 - + - 4 AS col1
----
42
1350
NULL

query I rowsort
SELECT + + 49 * - 38 * 42 * - 52 col1
----
4066608

query I rowsort
SELECT DISTINCT 62 + 16
----
78

query I rowsort
SELECT ALL - 87 + - 12 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - COALESCE ( + COUNT( * ), - 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COALESCE ( + COUNT ( * ), - 72 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + COALESCE ( COUNT( * ), - 90 ) * - COUNT( * ) + + + 22 - - 68 * + - COALESCE ( 71, + 31 )
----
-4807

skipif mysql # not compatible
query I rowsort label-4689
SELECT + COALESCE ( COUNT ( * ), - 90 ) * - COUNT ( * ) + + + 22 - - 68 * + - COALESCE ( 71, + 31 )
----
-4807

query I rowsort
SELECT ALL + 15 * - + 10 AS col2
----
-150

query I rowsort
SELECT DISTINCT 26 + + 59 * 40
----
2386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT ALL MAX( ALL + 91 ) + COUNT( * ) DIV + COUNT( * ) DIV 1
----
92

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL MAX ( ALL + 91 ) + COUNT ( * ) / + COUNT ( * ) / 1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + 43 - + - COUNT( 5 )
----
44

skipif mysql # not compatible
query I rowsort label-4693
SELECT + 43 - + - COUNT ( 5 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL SUM( + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL SUM ( + 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4695
SELECT + CAST( NULL AS DECIMAL ) + + + 33 + 34 - + CAST( - 70 AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT + CAST ( NULL AS REAL ) + + + 33 + 34 - + CAST ( - 70 AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 25 - 28 + - 78
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT - 95 + + 84 + + + COUNT( * ) DIV 25 - 31 + - - 31 * MIN( ALL - - 93 ) + + 7 + - ( 23 ) * - - 29 + - 50
----
2131

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 95 + + 84 + + + COUNT ( * ) / 25 - 31 + - - 31 * MIN ( ALL - - 93 ) + + 7 + - ( 23 ) * - - 29 + - 50
----
2131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4698
SELECT ALL - 25 - - + 42 + + + 46 + - + 47 / + - CASE - 17 WHEN + 91 THEN ( - CAST( 70 AS SIGNED ) ) END AS col0, ( + 39 )
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4698
SELECT ALL - 25 - - + 42 + + + 46 + - + 47 / + - CASE - 17 WHEN + 91 THEN ( - CAST ( 70 AS INTEGER ) ) END AS col0, ( + 39 )
----
NULL
39

query I rowsort
SELECT - 89 - + COALESCE ( - 2, 26, - 77 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL CASE + 56 WHEN + + 82 * 38 - - MIN( + - 64 ) THEN + 58 - + 36 + - - ( + 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL CASE + 56 WHEN + + 82 * 38 - - MIN ( + - 64 ) THEN + 58 - + 36 + - - ( + 15 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT DISTINCT SUM( - 93 ) col0, 96
----
-93
96

skipif mysql # not compatible
query II rowsort label-4701
SELECT DISTINCT SUM ( - 93 ) col0, 96
----
-93
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT ALL + + COALESCE ( 25, + - 83 ) AS col2, 0 * SUM( 8 ) + 39 + + - 39 - MIN( ALL - - 81 ) AS col1
----
25
-81

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL + + COALESCE ( 25, + - 83 ) AS col2, 0 * SUM ( 8 ) + 39 + + - 39 - MIN ( ALL - - 81 ) AS col1
----
25
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT + + 21 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + + 21 / + - 50
----
0

query I rowsort
SELECT - + ( - 36 ) * - - 96 + + 50
----
3506

query I rowsort
SELECT - - 66 * + 80 AS col2
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + 60 * - 92 * + COUNT( * )
----
-5520

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 60 * - 92 * + COUNT ( * )
----
-5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT - NULLIF ( + - ( + COUNT( * ) ), + COUNT( * ) DIV CAST( - - CAST( 97 AS SIGNED ) AS SIGNED ) - - 72 + 28 DIV - - 33 * ( - + 56 ) DIV SUM( + + 57 ) + NULLIF ( - + 14, + 82 + 94 ) ) DIV + - ( + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT - NULLIF ( + - ( + COUNT ( * ) ), + COUNT ( * ) / CAST ( - - CAST ( 97 AS INTEGER ) AS INTEGER ) - - 72 + 28 / - - 33 * ( - + 56 ) / SUM ( + + 57 ) + NULLIF ( - + 14, + 82 + 94 ) ) / + - ( + 26 )
----
0

query II rowsort
SELECT - + 88 * + + 68 * - 11 AS col2, + 48 - + 47 * 76
----
65824
-3524

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL 83 * COUNT( * ) * + 64 * 54 * - - COUNT( * ) + - 1 + + 74 col2
----
286921

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL 83 * COUNT ( * ) * + 64 * 54 * - - COUNT ( * ) + - 1 + + 74 col2
----
286921

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT + + 39 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT + + 39 / + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 2, - 31, - + 65 * + NULLIF ( ( + 99 ), - 20 - - - 26 + - 7 - 2 ) * + 91 ), - 4 DIV COUNT( * ) ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + COALESCE ( + + COALESCE ( - - 2, - 31, - + 65 * + NULLIF ( ( + 99 ), - 20 - - - 26 + - 7 - 2 ) * + 91 ), - 4 / COUNT ( * ) ) / + 52 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT - COUNT( * ) + + + COUNT( * ) * + 50 DIV 91 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 50 / 91 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT + - MIN( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + - MIN ( ALL - 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT ALL - ( MIN( DISTINCT + 16 ) ) * + + 2 * - 59 + + COUNT( * ) + + MAX( + - 52 ) * + - ( 50 ) AS col2, - ( - COUNT( * ) ) + - 14
----
4489
-13

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL - ( MIN ( DISTINCT + 16 ) ) * + + 2 * - 59 + + COUNT ( * ) + + MAX ( + - 52 ) * + - ( 50 ) AS col2, - ( - COUNT ( * ) ) + - 14
----
4489
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT + CASE + - COALESCE ( ( AVG ( + + 72 ) ), + CAST( 9 AS SIGNED ) + - 77 ) WHEN - 3 * + - COUNT( * ) THEN NULL ELSE - COUNT( ALL + - 71 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + CASE + - COALESCE ( ( AVG ( + + 72 ) ), + CAST ( 9 AS INTEGER ) + - 77 ) WHEN - 3 * + - COUNT ( * ) THEN NULL ELSE - COUNT ( ALL + - 71 ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + NULLIF ( + + 63, + + ( - + COUNT( * ) ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + NULLIF ( + + 63, + + ( - + COUNT ( * ) ) ) AS col2
----
63

query I rowsort
SELECT 55 * - - 12 + - - 18 + - - 57 * - 46 AS col1
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - SUM( ALL - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4718
SELECT - SUM ( ALL - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT ALL 61 - + 63 DIV COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 61 - + 63 / COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - 67 + + 18 col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4721
SELECT ALL 17, - 36 - + COUNT( * ) + + - 37 DIV - COUNT( - - ( - 92 ) ) + CAST( 20 AS SIGNED ) AS col1
----
17
20

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL 17, - 36 - + COUNT ( * ) + + - 37 / - COUNT ( - - ( - 92 ) ) + CAST ( 20 AS INTEGER ) AS col1
----
17
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + ( + COUNT( * ) ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-4722
SELECT + ( + COUNT ( * ) ) + + 14
----
15

query I rowsort
SELECT + 19 + + 23
----
42

query I rowsort
SELECT ALL 25 - - 32 + + + 15
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL ( + 16 ) - - CASE + COUNT( * ) WHEN + 15 THEN NULL ELSE - 3 + + ( + ( + - 83 ) ) END
----
-70

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL ( + 16 ) - - CASE + COUNT ( * ) WHEN + 15 THEN NULL ELSE - 3 + + ( + ( + - 83 ) ) END
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + 13 * + COUNT( * ) col1
----
13

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 13 * + COUNT ( * ) col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + 89 + 63 * 65 DIV 68 * + 6 * 65 * + 14 * - 36 * 70
----
-825551911

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 89 + 63 * 65 / 68 * + 6 * 65 * + 14 * - 36 * 70
----
-825551911

query I rowsort
SELECT ALL COALESCE ( - 49, - 50 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + 66 + + - COALESCE ( 23, + SUM( DISTINCT - + 68 ), + + 99 )
----
43

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 66 + + - COALESCE ( 23, + SUM ( DISTINCT - + 68 ), + + 99 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT ALL ( + + CAST( + 99 AS SIGNED ) ) - + MIN( ALL + - 66 ) * - COALESCE ( + - 25, - 56 + - 65 + 76, - ( + + SUM( ALL - 76 ) ), - 32 * 90 / - 7 ) * 53 - - COUNT( DISTINCT 13 ) + - 56 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL ( + + CAST ( + 99 AS INTEGER ) ) - + MIN ( ALL + - 66 ) * - COALESCE ( + - 25, - 56 + - 65 + 76, - ( + + SUM ( ALL - 76 ) ), - 32 * 90 / - 7 ) * 53 - - COUNT ( DISTINCT 13 ) + - 56 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT + 77 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT + 77 / + 72
----
1

query I rowsort
SELECT - 59 * - 43
----
2537

query I rowsort
SELECT + 78 + 49 AS col0
----
127

query II rowsort
SELECT 11 AS col0, 16 - - - 21
----
11
-5

query I rowsort
SELECT + 91 + - 61 col1
----
30

query II rowsort
SELECT 17, 58 * + - 90 + - 16 + + 47 * 0 AS col2
----
17
-5236

query I rowsort
SELECT ALL 65 * 13
----
845

query I rowsort
SELECT DISTINCT + + 70 col2
----
70

query I rowsort
SELECT DISTINCT + - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT + - COUNT( * ), - 83 + - - NULLIF ( 81, - COUNT( * ) * 86 ) AS col0
----
-1
-2

skipif mysql # not compatible
query II rowsort label-4740
SELECT + - COUNT ( * ), - 83 + - - NULLIF ( 81, - COUNT ( * ) * 86 ) AS col0
----
-1
-2

query I rowsort
SELECT + + ( 73 ) * - CASE + 67 WHEN + ( + + 29 ) THEN 33 WHEN + - COALESCE ( - 33, - - 80 ) THEN 35 * - - 61 END AS col1
----
NULL

query I rowsort
SELECT ( + COALESCE ( 2, + ( 29 ) ) ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - SUM( - - 68 ) + CASE + CAST( NULL AS SIGNED ) WHEN + 64 / 75 + + 54 / + 53 * - 43 * + 36 THEN - 19 WHEN - - 21 * + ( 43 ) / + - ( - - 77 ) * + + 50 THEN NULL END + + 69 - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT - SUM ( - - 68 ) + CASE + CAST ( NULL AS INTEGER ) WHEN + 64 / 75 + + 54 / + 53 * - 43 * + 36 THEN - 19 WHEN - - 21 * + ( 43 ) / + - ( - - 77 ) * + + 50 THEN NULL END + + 69 - + 46
----
NULL

query I rowsort
SELECT ( ( 34 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + CASE - 59 WHEN - 0 * - 27 THEN NULL ELSE NULLIF ( 24, CASE - 69 WHEN + COUNT( * ) THEN NULL ELSE - - 64 END ) END AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + CASE - 59 WHEN - 0 * - 27 THEN NULL ELSE NULLIF ( 24, CASE - 69 WHEN + COUNT ( * ) THEN NULL ELSE - - 64 END ) END AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT 17 * + 78 + + + COUNT( * ) - 73 * + + CASE AVG ( ALL - - 29 ) WHEN - 99 + 65 THEN + 19 WHEN + 55 THEN NULL ELSE + 69 END * - + 50 + - - 20 + 95 AS col1
----
253292

skipif mysql # not compatible
query I rowsort label-4746
SELECT 17 * + 78 + + + COUNT ( * ) - 73 * + + CASE AVG ( ALL - - 29 ) WHEN - 99 + 65 THEN + 19 WHEN + 55 THEN NULL ELSE + 69 END * - + 50 + - - 20 + 95 AS col1
----
253292

query I rowsort
SELECT + 77 + 7 AS col1
----
84

query II rowsort
SELECT + 68 AS col1, 47 * + 17
----
68
799

query I rowsort
SELECT ALL - + ( - 72 ) + + 90
----
162

query I rowsort
SELECT - NULLIF ( - 45, - + 83 )
----
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4751
SELECT ALL + CAST( NULL AS SIGNED ) + - COALESCE ( 60, + - CAST( NULL AS DECIMAL ) ) - + 48 - - 49 * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + CAST ( NULL AS INTEGER ) + - COALESCE ( 60, + - CAST ( NULL AS REAL ) ) - + 48 - - 49 * - 15 AS col2
----
NULL

query I rowsort
SELECT + 43 * 17
----
731

query I rowsort
SELECT DISTINCT + - 9 + - 3
----
-12

query I rowsort
SELECT 67 * + + 90 AS col2
----
6030

query I rowsort
SELECT 77 * - + 94
----
-7238

query I rowsort
SELECT DISTINCT - COALESCE ( - ( - 56 ), + - 23, + - 29 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT ALL - 97 DIV - 93 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - 97 / - 93 AS col1
----
1

query I rowsort
SELECT 22 + + 53 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT COUNT( * ) * + 99 * - 86 AS col0
----
-8514

skipif mysql # not compatible
query I rowsort label-4759
SELECT COUNT ( * ) * + 99 * - 86 AS col0
----
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT 92 * + COUNT( * ) * - 24 col1
----
-2208

skipif mysql # not compatible
query I rowsort label-4760
SELECT 92 * + COUNT ( * ) * - 24 col1
----
-2208

query I rowsort
SELECT 95 + + 25 AS col1
----
120

query I rowsort
SELECT DISTINCT ( - - 10 ) * - 30
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT COUNT( * ) - + - COUNT( * ) * + 78
----
79

skipif mysql # not compatible
query I rowsort label-4763
SELECT COUNT ( * ) - + - COUNT ( * ) * + 78
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT CAST( NULL AS SIGNED ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( NULL AS INTEGER ) * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT 21 + COUNT( DISTINCT + + 24 )
----
22

skipif mysql # not compatible
query I rowsort label-4765
SELECT 21 + COUNT ( DISTINCT + + 24 )
----
22

query I rowsort
SELECT CASE + 22 WHEN + 89 / - - 94 THEN NULL ELSE + + 19 * 94 END AS col0
----
1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT COUNT( ALL + 94 ) + + CAST( + + 34 AS SIGNED ) * - 17 + + - 41 AS col2
----
-618

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( ALL + 94 ) + + CAST ( + + 34 AS INTEGER ) * - 17 + + - 41 AS col2
----
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL NULLIF ( - + 0, + 84 * + 38 * - ( + + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL NULLIF ( - + 0, + 84 * + 38 * - ( + + COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4769
SELECT 84 DIV - 2 + - 16 - + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4769
SELECT 84 / - 2 + - 16 - + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + MAX( ALL + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + MAX ( ALL + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4771
SELECT DISTINCT 37 / COUNT( * ) + + SUM( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 37 / COUNT ( * ) + + SUM ( CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ALL 42 + 44 * - 1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT - 25 DIV + + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 25 / + + 50 AS col2
----
0

query I rowsort
SELECT 55 * - + 69 col2
----
-3795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT + ( 34 ) DIV - + 26 + COUNT( * ) * + 23 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4775
SELECT + ( 34 ) / - + 26 + COUNT ( * ) * + 23 AS col0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4776
SELECT + 61 * 91 * - 31 - 10 * - 70 * + CAST( NULL AS DECIMAL ) + + 89 + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + 61 * 91 * - 31 - 10 * - 70 * + CAST ( NULL AS REAL ) + + 89 + + 24
----
NULL

query I rowsort
SELECT DISTINCT 40 + - 39 * - + 95
----
3745

query I rowsort
SELECT ALL + 25 + + 55
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT 45 * 96 * + 12 + - 68 - - SUM( DISTINCT - 47 ) + + - COUNT( * ) + - - 29 + + 3
----
51756

skipif mysql # not compatible
query I rowsort label-4779
SELECT 45 * 96 * + 12 + - 68 - - SUM ( DISTINCT - 47 ) + + - COUNT ( * ) + - - 29 + + 3
----
51756

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT - - MAX( ALL COALESCE ( + 66, - 29 ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - - MAX ( ALL COALESCE ( + 66, - 29 ) ) AS col0
----
66

query I rowsort
SELECT ALL ( - 91 ) - - - 77 * 76 * - 14
----
81837

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4782
SELECT 80, + COUNT( * ) DIV + 16 * - COUNT( * ) * 93 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-4782
SELECT 80, + COUNT ( * ) / + 16 * - COUNT ( * ) * 93 AS col0
----
80
0

query II rowsort
SELECT DISTINCT - 38, 72 col2
----
-38
72

query I rowsort
SELECT 12 * + - 24 * - + 87 col0
----
25056

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - MAX( DISTINCT + ( + ( - 69 ) ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - MAX ( DISTINCT + ( + ( - 69 ) ) ) AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT 96 + + CASE 72 WHEN CAST( NULL AS DECIMAL ) + + 35 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT 96 + + CASE 72 WHEN CAST ( NULL AS REAL ) + + 35 THEN + 19 END
----
NULL

query I rowsort
SELECT ALL - 93 - - ( + 60 ) + + 85 col0
----
52

query I rowsort
SELECT - 79 * + 83 * + + 25 + + + 19 * + 99 * + - 4 AS col2
----
-171449

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT ALL - COUNT( * ), 82 AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL - COUNT ( * ), 82 AS col2
----
-1
82

query II rowsort
SELECT DISTINCT - 80 col2, 18 + 35 AS col0
----
-80
53

query I rowsort
SELECT 15 * - ( 65 ) AS col1
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT 92 DIV 7
----
13

skipif mysql # not compatible
query I rowsort label-4792
SELECT 92 / 7
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT 31 + + - ( 84 ) * - COUNT( * ) DIV + 98 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4793
SELECT 31 + + - ( 84 ) * - COUNT ( * ) / + 98 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT DISTINCT COUNT( * ) AS col0, - 40
----
1
-40

skipif mysql # not compatible
query II rowsort label-4794
SELECT DISTINCT COUNT ( * ) AS col0, - 40
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT 5 * MAX( - + 79 ) AS col2
----
-395

skipif mysql # not compatible
query I rowsort label-4795
SELECT 5 * MAX ( - + 79 ) AS col2
----
-395

query I rowsort
SELECT 41 + - 30
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT 21 + + CAST( NULL AS SIGNED ) + - + 62 - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT 21 + + CAST ( NULL AS INTEGER ) + - + 62 - + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4798
SELECT CASE - + 61 WHEN + 16 - - CAST( NULL AS DECIMAL ) + ( CASE - + COALESCE ( 5, + AVG ( + 41 ), COUNT( * ) ) WHEN + 1 THEN ( + COUNT( * ) ) ELSE NULL END ) / + - 72 * + COALESCE ( 92, + - 45 ) * 46 THEN + COUNT( * ) * + 21 ELSE NULL END + + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CASE - + 61 WHEN + 16 - - CAST ( NULL AS REAL ) + ( CASE - + COALESCE ( 5, + AVG ( + 41 ), COUNT ( * ) ) WHEN + 1 THEN ( + COUNT ( * ) ) ELSE NULL END ) / + - 72 * + COALESCE ( 92, + - 45 ) * 46 THEN + COUNT ( * ) * + 21 ELSE NULL END + + - 12
----
NULL

query I rowsort
SELECT 27 * - 75
----
-2025

query II rowsort
SELECT 30 * + ( 85 ), - 78 AS col0
----
2550
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - 31 * + - 53 * COUNT( ALL + 81 ) AS col0
----
1643

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - 31 * + - 53 * COUNT ( ALL + 81 ) AS col0
----
1643

query II rowsort
SELECT DISTINCT 97, 16 AS col1
----
97
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT COUNT( * ) * - ( CAST( ( 32 ) AS SIGNED ) * 52 ) AS col0
----
-1664

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( * ) * - ( CAST ( ( 32 ) AS INTEGER ) * 52 ) AS col0
----
-1664

query I rowsort
SELECT ALL 12 + 81 AS col2
----
93

query I rowsort
SELECT ALL 70 + - 89
----
-19

query I rowsort
SELECT 56 + 81 * + 53
----
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL COUNT( ALL - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL COUNT ( ALL - 52 ) AS col0
----
1

query I rowsort
SELECT 65 + 14
----
79

query I rowsort
SELECT DISTINCT CASE - 22 WHEN + 27 * + 96 THEN + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - 59 + COUNT( * ) * 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - 59 + COUNT ( * ) * 60 AS col0
----
1

query I rowsort
SELECT ALL - 68 * + 77 AS col1
----
-5236

query I rowsort
SELECT DISTINCT 46 - 54 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT CASE WHEN + 83 BETWEEN COUNT( DISTINCT 97 ) * + 87 AND 42 + + COUNT( * ) THEN + CAST( + 15 AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT CASE WHEN + 83 BETWEEN COUNT ( DISTINCT 97 ) * + 87 AND 42 + + COUNT ( * ) THEN + CAST ( + 15 AS INTEGER ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT DISTINCT MIN( - 70 ) * - MIN( 17 DIV + 57 ) - + 50 col1
----
-50

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT MIN ( - 70 ) * - MIN ( 17 / + 57 ) - + 50 col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT + 86 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 86 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 56
----
-5488

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT 60 * - 99 + - 57 DIV + 9 AS col0
----
-5946

skipif mysql # not compatible
query I rowsort label-4817
SELECT 60 * - 99 + - 57 / + 9 AS col0
----
-5946

query I rowsort
SELECT DISTINCT 64 * ( - 58 * 82 ) - + 63
----
-304447

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT COALESCE ( 96, COUNT( * ), - 55 )
----
96

skipif mysql # not compatible
query I rowsort label-4819
SELECT COALESCE ( 96, COUNT ( * ), - 55 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + SUM( ALL 25 ) * + 53
----
1325

skipif mysql # not compatible
query I rowsort label-4820
SELECT + SUM ( ALL 25 ) * + 53
----
1325

query I rowsort
SELECT + 56 + 50
----
106

query I rowsort
SELECT ALL 62 * + 22
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT CASE - ( + 86 ) WHEN 64 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4823
SELECT CASE - ( + 86 ) WHEN 64 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT 97 * + 40
----
3880

query I rowsort
SELECT DISTINCT 56 * 36
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT + NULLIF ( CASE + 4 WHEN 68 * NULLIF ( 76 * MAX( ALL - 98 ), - 79 + - 76 ) + 44 THEN ( COALESCE ( 37, - 7, + CAST( + 80 AS SIGNED ) / 38, - AVG ( + 37 ) / + 13 ) ) END, + COUNT( * ) ) * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT + NULLIF ( CASE + 4 WHEN 68 * NULLIF ( 76 * MAX ( ALL - 98 ), - 79 + - 76 ) + 44 THEN ( COALESCE ( 37, - 7, + CAST ( + 80 AS INTEGER ) / 38, - AVG ( + 37 ) / + 13 ) ) END, + COUNT ( * ) ) * - 84 AS col2
----
NULL

query I rowsort
SELECT ALL 2 * 85
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT SUM( - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4828
SELECT SUM ( - 49 ) AS col1
----
-49

query I rowsort
SELECT + 61 * - 99 AS col1
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT MAX( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4830
SELECT MAX ( 46 )
----
46

query I rowsort
SELECT ALL - 83 * + 96 + - 26
----
-7994

query I rowsort
SELECT - 19 * 57 AS col1
----
-1083

query I rowsort
SELECT DISTINCT + 50 * 75 + 36 * + 21 AS col2
----
4506

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT 54 + ( 43 - 34 DIV - 32 ) * 6 AS col0
----
318

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT 54 + ( 43 - 34 / - 32 ) * 6 AS col0
----
318

query I rowsort
SELECT ALL + 99 + + 9
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT - 83 DIV 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 83 / 36 AS col0
----
-2

query I rowsort
SELECT ALL + 52 + + 11 * 27 col1
----
349

query I rowsort
SELECT + 28 + + 91 * + 14 AS col2
----
1302

query I rowsort
SELECT - + ( - 12 ) * 22 AS col0
----
264

query I rowsort
SELECT + - 61 * 67 AS col1
----
-4087

query I rowsort
SELECT - - 97 * - 82 AS col2
----
-7954

query I rowsort
SELECT - - 11 + + 51 AS col0
----
62

query I rowsort
SELECT - + ( 43 ) + 30
----
-13

query I rowsort
SELECT DISTINCT + + 94 * 68
----
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT COALESCE ( - COUNT( * ), 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT COALESCE ( - COUNT ( * ), 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL COALESCE ( + 45, + 4 ) * COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL COALESCE ( + 45, + 4 ) * COUNT ( * ) AS col0
----
45

query I rowsort
SELECT - 14 - + NULLIF ( + 85, ( - 42 ) - 33 ) * 54 AS col0
----
-4604

query I rowsort
SELECT + - 95 + + 32 col0
----
-63

query I rowsort
SELECT + - ( NULLIF ( CASE 61 WHEN 8 THEN 62 * 12 ELSE NULL END, - 75 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT + + COUNT( * ) DIV 30 - + 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4850
SELECT + + COUNT ( * ) / 30 - + 26 AS col1
----
-26

query I rowsort
SELECT - - ( 5 ) * ( 16 + 97 ) col1
----
565

query I rowsort
SELECT + - 4 * - 34 AS col1
----
136

query I rowsort
SELECT DISTINCT - 20 * + + 84 AS col2
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT + 97 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT + 97 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - 71 * - - COALESCE ( 2, 99 DIV - 1 + - 39 ) - + 62
----
-204

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 71 * - - COALESCE ( 2, 99 / - 1 + - 39 ) - + 62
----
-204

query I rowsort
SELECT DISTINCT + NULLIF ( + 10, 99 )
----
10

query I rowsort
SELECT + 71 * + + 38 * - CASE + 36 WHEN - 18 THEN NULL ELSE 17 * + 50 END + - 87 AS col0
----
-2293387

query I rowsort
SELECT + 67 * + 51
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - 8 * + 40 * - COUNT( * ) + 98 col2
----
418

skipif mysql # not compatible
query I rowsort label-4859
SELECT - 8 * + 40 * - COUNT ( * ) + 98 col2
----
418

query I rowsort
SELECT ALL - 39 * 76 * + ( 64 ) + 2 * + 44 AS col2
----
-189608

query I rowsort
SELECT 66 * + CASE + 36 WHEN + NULLIF ( + COALESCE ( - 28, + 90, - 32 * 56 - - 36 ), + 83 * 93 + + 83 ) THEN NULL WHEN 30 + 28 THEN 84 * ( - 7 ) END + + 31 * + 43 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL CAST( NULL AS SIGNED ) * - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL CAST ( NULL AS INTEGER ) * - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT + COUNT( * ) * + + 58 + + 1
----
59

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + COUNT ( * ) * + + 58 + + 1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT CASE - 93 WHEN COUNT( * ) THEN 25 * 31 + 41 WHEN - 5 + - 48 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT CASE - 93 WHEN COUNT ( * ) THEN 25 * 31 + 41 WHEN - 5 + - 48 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT - ( 23 ) * - SUM( + 37 ) + - 85 AS col1
----
766

skipif mysql # not compatible
query I rowsort label-4865
SELECT - ( 23 ) * - SUM ( + 37 ) + - 85 AS col1
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL 57 * 34 * 82 + MAX( ALL 14 ) * 23 AS col1
----
159238

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 57 * 34 * 82 + MAX ( ALL 14 ) * 23 AS col1
----
159238

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - 70 * 95 * + COUNT( * ) + - 95 * - 9
----
-5795

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 70 * 95 * + COUNT ( * ) + - 95 * - 9
----
-5795

query I rowsort
SELECT + - 1 + - 46
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + ( 53 ) + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4869
SELECT + ( 53 ) + - COUNT ( * )
----
52

query I rowsort
SELECT ALL 66 - + 0
----
66

query I rowsort
SELECT 61 * 40 AS col2
----
2440

query I rowsort
SELECT - 5 * + 80 AS col1
----
-400

query I rowsort
SELECT DISTINCT + - ( - 96 ) * + 56
----
5376

query I rowsort
SELECT ALL 32 - + 35
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT + + 92 * + + COALESCE ( - 92, CASE + 5 WHEN ( + 13 ) / COUNT( * ) - 11 THEN NULL WHEN 41 THEN 34 * COUNT( * ) END ) + 56 AS col0
----
-8408

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + + 92 * + + COALESCE ( - 92, CASE + 5 WHEN ( + 13 ) / COUNT ( * ) - 11 THEN NULL WHEN 41 THEN 34 * COUNT ( * ) END ) + 56 AS col0
----
-8408

query I rowsort
SELECT ALL - + 30 - - - 13 col0
----
-43

query I rowsort
SELECT - - ( + + NULLIF ( 92, 10 * - 60 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT + + ( + + 76 ) * COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + + ( + + 76 ) * COUNT ( * ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL CAST( - 33 AS SIGNED ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL CAST ( - 33 AS INTEGER ) col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4880
SELECT 99 DIV - CASE COUNT( * ) WHEN + 72 THEN ( - NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( 9, 98 + 35 ) ) ) * 14 ELSE - 74 END
----
1

skipif mysql # not compatible
query I rowsort label-4880
SELECT 99 / - CASE COUNT ( * ) WHEN + 72 THEN ( - NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( 9, 98 + 35 ) ) ) * 14 ELSE - 74 END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT 6 DIV - - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT 6 / - - 19 AS col1
----
0

query I rowsort
SELECT 12 + - + 92
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) * + - 81 + ( 39 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) * + - 81 + ( 39 ) AS col1
----
120

query II rowsort
SELECT + 6, 26 col0
----
6
26

query II rowsort
SELECT 6, - 86 AS col2
----
6
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 71 DIV NULLIF ( + 17, 34 * - 28 ) + + 31
----
35

skipif mysql # not compatible
query I rowsort label-4886
SELECT 71 / NULLIF ( + 17, 34 * - 28 ) + + 31
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) + - 30 + - - 60 + 41
----
72

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) + - 30 + - - 60 + 41
----
72

query I rowsort
SELECT 12 * - 75 AS col1
----
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT COUNT( * ) + + COALESCE ( + CAST( - 8 AS SIGNED ), - 43 ) * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) + + COALESCE ( + CAST ( - 8 AS INTEGER ), - 43 ) * COUNT ( * )
----
-7

query I rowsort
SELECT 31 * COALESCE ( + + 51, 33, + 61 ) AS col1
----
1581

query I rowsort
SELECT ALL + 71 + + + 9 + + 72
----
152

query I rowsort
SELECT DISTINCT - NULLIF ( + 77, - 26 ) + 75
----
-2

query II rowsort
SELECT 44, + 76 + - 26 - 80 AS col0
----
44
-30

query I rowsort
SELECT ALL 95 + + + 17 + ( 63 ) * - 43 AS col2
----
-2597

query II rowsort
SELECT DISTINCT - 14 AS col2, 55 * + 38 + 5
----
-14
2095

query I rowsort
SELECT 27 * + 53 * + 19 * + 60
----
1631340

query I rowsort
SELECT ALL 59 - - 15 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - 20 - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 20 - COUNT ( * )
----
-21

query I rowsort
SELECT ALL + 33 * + 15 * + 95 AS col0
----
47025

onlyif mysql # DIV for integer division: 
query II rowsort label-4900
SELECT + 64, - 53 DIV - 99 AS col1
----
64
0

skipif mysql # not compatible
query II rowsort label-4900
SELECT + 64, - 53 / - 99 AS col1
----
64
0

query I rowsort
SELECT ALL - + 86 * ( 14 ) AS col2
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT + MAX( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + MAX ( - 26 )
----
-26

query I rowsort
SELECT + COALESCE ( ( - 70 ), + 75 )
----
-70

query I rowsort
SELECT ALL 39 * + 8 + NULLIF ( 15, + 66 ) * 35 col0
----
837

query II rowsort
SELECT - - 45 AS col2, - 58 + + + 60
----
45
2

query II rowsort
SELECT - 49 col0, 38 AS col2
----
-49
38

query I rowsort
SELECT 24 + + 16 - - - 5 + 62 * + NULLIF ( - 14 * - 48, 4 * 84 ) * - 11 AS col0
----
-458269

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT - 55 AS col2, - 96 * - COUNT( * ) * + 10 + - ( - COUNT( * ) + 99 )
----
-55
862

skipif mysql # not compatible
query II rowsort label-4908
SELECT - 55 AS col2, - 96 * - COUNT ( * ) * + 10 + - ( - COUNT ( * ) + 99 )
----
-55
862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT + ( CASE - + CASE - 58 WHEN - 92 * 88 - 14 * - 79 THEN - 43 * ( ( - COUNT( * ) ) * 98 ) ELSE NULL END WHEN 16 THEN CAST( NULL AS SIGNED ) * 9 WHEN 63 THEN + COUNT( * ) ELSE + 83 END ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + ( CASE - + CASE - 58 WHEN - 92 * 88 - 14 * - 79 THEN - 43 * ( ( - COUNT ( * ) ) * 98 ) ELSE NULL END WHEN 16 THEN CAST ( NULL AS INTEGER ) * 9 WHEN 63 THEN + COUNT ( * ) ELSE + 83 END ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT 1 * + 43 - + 5 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4910
SELECT 1 * + 43 - + 5 + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT SUM( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT SUM ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + + 23 + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + + 23 + + COUNT ( * ) AS col2
----
24

query I rowsort
SELECT DISTINCT 38 + + 85 + - + 29 + - + 44 * 95 AS col1
----
-4086

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT 25 + COUNT( * ), 52 AS col2
----
26
52

skipif mysql # not compatible
query II rowsort label-4914
SELECT 25 + COUNT ( * ), 52 AS col2
----
26
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4915
SELECT - COUNT( DISTINCT + 42 ) AS col0, - ( + 13 ) DIV - 93 + 75 AS col2
----
-1
75

skipif mysql # not compatible
query II rowsort label-4915
SELECT - COUNT ( DISTINCT + 42 ) AS col0, - ( + 13 ) / - 93 + 75 AS col2
----
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT SUM( + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4916
SELECT SUM ( + 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - MAX( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - MAX ( DISTINCT 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT SUM( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4918
SELECT SUM ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL - 24 * + 52 + COUNT( * ) AS col0
----
-1247

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - 24 * + 52 + COUNT ( * ) AS col0
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - 24 * + ( + 60 ) - + - SUM( 12 ) AS col1
----
-1428

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 24 * + ( + 60 ) - + - SUM ( 12 ) AS col1
----
-1428

query I rowsort
SELECT 50 * - - 61 AS col1
----
3050

query I rowsort
SELECT 76 * 96 + 77 * - 25 AS col2
----
5371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL 49 * - - 32 - + CAST( 22 AS SIGNED ) + - 67 * - CAST( - 45 * - 99 AS SIGNED ) col0
----
300031

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 49 * - - 32 - + CAST ( 22 AS INTEGER ) + - 67 * - CAST ( - 45 * - 99 AS INTEGER ) col0
----
300031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT - 61 * + 19 + - - CAST( - + 82 AS SIGNED ) * ( + 3 ) AS col2
----
-1405

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 61 * + 19 + - - CAST ( - + 82 AS INTEGER ) * ( + 3 ) AS col2
----
-1405

query I rowsort
SELECT 41 * - 14 + + 56 * + 80 col2
----
3906

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT ALL + 14 * + + COUNT( * ) AS col2, 88
----
14
88

skipif mysql # not compatible
query II rowsort label-4926
SELECT ALL + 14 * + + COUNT ( * ) AS col2, 88
----
14
88

query I rowsort
SELECT - + 99 + - 42 AS col1
----
-141

query I rowsort
SELECT ALL - + 40 * - 0 - - 33 + + 14 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( * ) * - + 79 * 86 * - 51 * - 6 + + ( MIN( ALL - 35 ) )
----
-2078999

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( * ) * - + 79 * 86 * - 51 * - 6 + + ( MIN ( ALL - 35 ) )
----
-2078999

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - 60 * - 40 + + NULLIF ( - 60, + COUNT( * ) + - 80 )
----
2340

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - 60 * - 40 + + NULLIF ( - 60, + COUNT ( * ) + - 80 )
----
2340

query I rowsort
SELECT ALL + - NULLIF ( + - 56, + 29 - + 96 + - 44 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT - + ( - - 2 ), - MIN( + + 85 ) AS col2
----
-2
-85

skipif mysql # not compatible
query II rowsort label-4932
SELECT - + ( - - 2 ), - MIN ( + + 85 ) AS col2
----
-2
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4933
SELECT ALL - 77 DIV + + 9 col0, + 93 col0
----
-8
93

skipif mysql # not compatible
query II rowsort label-4933
SELECT ALL - 77 / + + 9 col0, + 93 col0
----
-8
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 69 AS col1
----
NULL

query II rowsort
SELECT + 94 + - 6, 45 AS col2
----
88
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4936
SELECT - MAX( + 44 ) AS col2, CAST( NULL AS DECIMAL ) AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-4936
SELECT - MAX ( + 44 ) AS col2, CAST ( NULL AS REAL ) AS col0
----
-44
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT ALL - CAST( NULL AS DECIMAL ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - CAST ( NULL AS REAL ) + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + CASE - + COALESCE ( NULLIF ( + 24, COUNT( * ) ), - COUNT( DISTINCT + 96 ) ) WHEN 43 * AVG ( + 15 ) THEN 30 * 29 WHEN - COUNT( * ) * 21 THEN + 39 ELSE 60 * + 47 END DIV 41
----
68

skipif mysql # not compatible
query I rowsort label-4938
SELECT + CASE - + COALESCE ( NULLIF ( + 24, COUNT ( * ) ), - COUNT ( DISTINCT + 96 ) ) WHEN 43 * AVG ( + 15 ) THEN 30 * 29 WHEN - COUNT ( * ) * 21 THEN + 39 ELSE 60 * + 47 END / 41
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT CASE + 15 WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) + + 56 * - 2 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT CASE + 15 WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + + 56 * - 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL COUNT( * ) + MIN( DISTINCT - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL COUNT ( * ) + MIN ( DISTINCT - 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - 34 + + 54 + - 57 + 24 * + 41 * 1 * COUNT( * )
----
947

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - 34 + + 54 + - 57 + 24 * + 41 * 1 * COUNT ( * )
----
947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT + AVG ( ALL - 26 ) * + ( + CAST( NULL AS SIGNED ) ) * + 89 * - 83 + 33 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + AVG ( ALL - 26 ) * + ( + CAST ( NULL AS INTEGER ) ) * + 89 * - 83 + 33 * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL COUNT( * ) + + + 36 col0
----
37

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL COUNT ( * ) + + + 36 col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-4944
SELECT 88 AS col1, 99 DIV 15 - + - 68
----
88
74

skipif mysql # not compatible
query II rowsort label-4944
SELECT 88 AS col1, 99 / 15 - + - 68
----
88
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 56 + + CASE + - MAX( ALL NULLIF ( - + 74, + 39 ) ) WHEN COUNT( * ) * - 45 THEN - 42 + 27 END / + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 56 + + CASE + - MAX ( ALL NULLIF ( - + 74, + 39 ) ) WHEN COUNT ( * ) * - 45 THEN - 42 + 27 END / + 61 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT + 14 - 71 + - + CAST( NULL AS SIGNED ) + + - 15 * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 14 - 71 + - + CAST ( NULL AS INTEGER ) + + - 15 * - 55 AS col2
----
NULL

query I rowsort
SELECT + 32 + - 9 AS col2
----
23

query II rowsort
SELECT ALL 59 AS col2, COALESCE ( - 75, + 26, + - 70 ) * + 11
----
59
-825

query I rowsort
SELECT ALL 78 * - 69 AS col0
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + 2 + 86 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4950
SELECT + 2 + 86 * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 58 * + - CASE - 47 WHEN AVG ( 77 ) * + 3 THEN NULL WHEN MIN( ALL ( - 56 ) ) * - CASE - 58 WHEN - 7 THEN 16 ELSE 20 * - COUNT( - 81 ) + + 29 END THEN - ( + 23 ) + 56 * - MAX( ALL 12 * 8 ) END + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 58 * + - CASE - 47 WHEN AVG ( 77 ) * + 3 THEN NULL WHEN MIN ( ALL ( - 56 ) ) * - CASE - 58 WHEN - 7 THEN 16 ELSE 20 * - COUNT ( - 81 ) + + 29 END THEN - ( + 23 ) + 56 * - MAX ( ALL 12 * 8 ) END + 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT COUNT( * ) / - 35 / CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT COUNT ( * ) / - 35 / CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ( + COALESCE ( - + 50, - - ( + 77 ) DIV + 92 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4953
SELECT ( + COALESCE ( - + 50, - - ( + 77 ) / + 92 ) )
----
-50

query II rowsort
SELECT ALL + 20, - 45 AS col2
----
20
-45

query II rowsort
SELECT DISTINCT + 94 AS col1, ( - - 25 ) * + - ( 50 ) - + 3
----
94
-1253

query I rowsort
SELECT ( ( + 77 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - 24 * - ( + 25 ) * + SUM( ALL + 35 )
----
21000

skipif mysql # not compatible
query I rowsort label-4957
SELECT - 24 * - ( + 25 ) * + SUM ( ALL + 35 )
----
21000

query II rowsort
SELECT ALL + - 98 AS col1, 35 AS col0
----
-98
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT + - COUNT( - - 84 ) * ( - + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + - COUNT ( - - 84 ) * ( - + 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4960
SELECT + + COALESCE ( 96, 25 DIV - CAST( + + CASE + 24 WHEN 6 THEN NULL WHEN + 71 THEN NULL ELSE - COALESCE ( 32, + 53, 46 ) END AS SIGNED ), - 29 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4960
SELECT + + COALESCE ( 96, 25 / - CAST ( + + CASE + 24 WHEN 6 THEN NULL WHEN + 71 THEN NULL ELSE - COALESCE ( 32, + 53, 46 ) END AS INTEGER ), - 29 ) AS col0
----
96

query I rowsort
SELECT + - ( + 61 ) * 22 - + 45 AS col2
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + + 1 - - 24 + - 60 + - 42 * - - NULLIF ( + 63, 90 * COUNT( * ) ) * MIN( ALL 85 )
----
-224945

skipif mysql # not compatible
query I rowsort label-4962
SELECT + + 1 - - 24 + - 60 + - 42 * - - NULLIF ( + 63, 90 * COUNT ( * ) ) * MIN ( ALL 85 )
----
-224945

query I rowsort
SELECT - - 26 - 11 col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT ALL + + 36 * - CASE - + COUNT( * ) WHEN - 15 + + CASE CAST( 65 AS SIGNED ) WHEN 6 - - COUNT( * ) THEN 30 + + 63 ELSE NULL END THEN 87 + - NULLIF ( ( MAX( ALL 19 ) ), COUNT( * ) ) ELSE - 68 END + - 86 DIV - 65 + - 42 AS col2
----
2407

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + + 36 * - CASE - + COUNT ( * ) WHEN - 15 + + CASE CAST ( 65 AS INTEGER ) WHEN 6 - - COUNT ( * ) THEN 30 + + 63 ELSE NULL END THEN 87 + - NULLIF ( ( MAX ( ALL 19 ) ), COUNT ( * ) ) ELSE - 68 END + - 86 / - 65 + - 42 AS col2
----
2407

query I rowsort
SELECT - 45 * - - 19 AS col0
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + + 5 * + + SUM( DISTINCT + CAST( + 50 AS SIGNED ) ) * + 6 + 20 + 98
----
1618

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + 5 * + + SUM ( DISTINCT + CAST ( + 50 AS INTEGER ) ) * + 6 + 20 + 98
----
1618

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - - MIN( ALL + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4967
SELECT - - MIN ( ALL + 36 ) AS col2
----
36

query I rowsort
SELECT ALL - - 14 * - 1 * - - 5
----
-70

query I rowsort
SELECT - 67 - + - 83 AS col0
----
16

query I rowsort
SELECT - 55 * 38 + - 52 AS col2
----
-2142

query I rowsort
SELECT - + ( - + 18 ) - - 51 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT ALL - COALESCE ( + COUNT( * ), - 55 ) AS col0, + 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL - COALESCE ( + COUNT ( * ), - 55 ) AS col0, + 47
----
-1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - - CAST( + 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4973
SELECT - - CAST ( + 83 AS INTEGER ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT - 15 + 35 DIV - 42
----
-15

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 15 + 35 / - 42
----
-15

query I rowsort
SELECT - 91 + 13 AS col0
----
-78

query I rowsort
SELECT ALL - ( + + 96 ) + + 81 AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT + 84 * 88 DIV - 7
----
-1056

skipif mysql # not compatible
query I rowsort label-4977
SELECT + 84 * 88 / - 7
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT + COUNT( * ) DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT + COUNT ( * ) / - 17 AS col2
----
0

query II rowsort
SELECT 60, - 74 AS col0
----
60
-74

query II rowsort
SELECT 65, 21 AS col1
----
65
21

query I rowsort
SELECT ALL 84 - + + ( - + 67 ) * 21
----
1491

query I rowsort
SELECT 30 * - 26 AS col1
----
-780

query II rowsort
SELECT 73 AS col0, 99
----
73
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT COUNT( * ) - + 21 - - 55 + + 75
----
110

skipif mysql # not compatible
query I rowsort label-4984
SELECT COUNT ( * ) - + 21 - - 55 + + 75
----
110

query I rowsort
SELECT 40 * - 27 AS col0
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT + 29 AS col1, - 11 + + CAST( NULL AS SIGNED ) * 86 col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 29 AS col1, - 11 + + CAST ( NULL AS INTEGER ) * 86 col1
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - COUNT( - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( - 24 )
----
-1

query II rowsort
SELECT DISTINCT - 97, - 14 AS col1
----
-97
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-4989
SELECT + 40 AS col2, 69 * 67 DIV + 87
----
40
53

skipif mysql # not compatible
query II rowsort label-4989
SELECT + 40 AS col2, 69 * 67 / + 87
----
40
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4990
SELECT 20 DIV - CAST( NULLIF ( 10, + 27 ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4990
SELECT 20 / - CAST ( NULLIF ( 10, + 27 ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT - 83 * + 26 + + 71 AS col0
----
-2087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4992
SELECT CASE + 2 WHEN + 99 * - 14 * - 15 + + - 18 THEN NULL ELSE + COUNT( * ) END - + CASE - 24 WHEN 52 THEN 73 ELSE MAX( ALL + 11 ) END DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-4992
SELECT CASE + 2 WHEN + 99 * - 14 * - 15 + + - 18 THEN NULL ELSE + COUNT ( * ) END - + CASE - 24 WHEN 52 THEN 73 ELSE MAX ( ALL + 11 ) END / - 20
----
1

query I rowsort
SELECT + ( + - 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT CAST( NULL AS SIGNED ) * ( + 92 ) + 8 * + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT CAST ( NULL AS INTEGER ) * ( + 92 ) + 8 * + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT 27 AS col0, CASE COUNT( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT( * ) END col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4995
SELECT 27 AS col0, CASE COUNT ( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT ( * ) END col0
----
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT + SUM( 15 ) DIV - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4996
SELECT + SUM ( 15 ) / - - COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL ( - NULLIF ( - - 8, - - 35 ) ) + - COUNT( * ) + + + 14 + 39 * - COUNT( * ) * 97
----
-3778

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL ( - NULLIF ( - - 8, - - 35 ) ) + - COUNT ( * ) + + + 14 + 39 * - COUNT ( * ) * 97
----
-3778

query I rowsort
SELECT 30 + - ( 51 ) AS col0
----
-21

query II rowsort
SELECT ALL - 89 AS col0, - 72
----
-89
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT - COUNT( * ) + - 8 DIV + - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COUNT ( * ) + - 8 / + - COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - + SUM( DISTINCT 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - + SUM ( DISTINCT 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + SUM( 94 ) + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + SUM ( 94 ) + - COUNT ( * ) AS col0
----
93

query I rowsort
SELECT DISTINCT 17 + - 52 * - - 31 AS col2
----
-1595

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + 95 DIV - NULLIF ( - 30, - 10 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 95 / - NULLIF ( - 30, - 10 ) col2
----
3

query I rowsort
SELECT + 65 + 58
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL - COUNT( * ) + - 46 * + ( + - 9 ) AS col0
----
413

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - COUNT ( * ) + - 46 * + ( + - 9 ) AS col0
----
413

query I rowsort
SELECT - 4 * + 2 - ( + 31 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT COUNT( * ) col0, AVG ( - CASE + 49 WHEN - 55 THEN - 41 ELSE NULL END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT COUNT ( * ) col0, AVG ( - CASE + 49 WHEN - 55 THEN - 41 ELSE NULL END ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + ( 30 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5009
SELECT + ( 30 ) + + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL + CASE - - 59 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 9 * + NULLIF ( - 2, + 0 / COUNT( ALL 56 ) - + CASE 23 + 35 WHEN ( + 94 ) + + 88 / + CAST( NULL AS SIGNED ) THEN 75 WHEN 59 * - 95 THEN NULL END ) END + + 76
----
94

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + CASE - - 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 9 * + NULLIF ( - 2, + 0 / COUNT ( ALL 56 ) - + CASE 23 + 35 WHEN ( + 94 ) + + 88 / + CAST ( NULL AS INTEGER ) THEN 75 WHEN 59 * - 95 THEN NULL END ) END + + 76
----
94

query I rowsort
SELECT 24 * + 0 AS col2
----
0

query I rowsort
SELECT ALL - 17 * - + 66 col0
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL - CASE + 20 WHEN 73 THEN NULL ELSE NULLIF ( COUNT( * ), - 18 * - COUNT( * ) + - 47 + 65 ) END - - 49 * 93
----
4556

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - CASE + 20 WHEN 73 THEN NULL ELSE NULLIF ( COUNT ( * ), - 18 * - COUNT ( * ) + - 47 + 65 ) END - - 49 * 93
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT + COUNT( * ) * - + 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + COUNT ( * ) * - + 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - 72 - - CASE + 82 WHEN + - COUNT( * ) * - COUNT( * ) + - 32 + 44 THEN 71 END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 72 - - CASE + 82 WHEN + - COUNT ( * ) * - COUNT ( * ) + - 32 + 44 THEN 71 END + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT 40 * 39 * + COUNT( * ) AS col0
----
1560

skipif mysql # not compatible
query I rowsort label-5016
SELECT 40 * 39 * + COUNT ( * ) AS col0
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT ALL + 81 DIV COUNT( 84 ) * 73 * + + MIN( - ( 49 ) )
----
-289737

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + 81 / COUNT ( 84 ) * 73 * + + MIN ( - ( 49 ) )
----
-289737

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT 46 + + - MIN( ALL - 13 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5018
SELECT 46 + + - MIN ( ALL - 13 ) AS col2
----
59

query I rowsort
SELECT 49 - 43 AS col1
----
6

query I rowsort
SELECT 56 + - 34 + - 99
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT ALL + 82 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + 82 / + 85 AS col2
----
0

query I rowsort
SELECT 75 * + - 37 * + 71
----
-197025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT ALL 83 + - 99 DIV COUNT( * ) * - + 59 AS col2
----
5924

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL 83 + - 99 / COUNT ( * ) * - + 59 AS col2
----
5924

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT 55 DIV - 86 * + + 96 * - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT 55 / - 86 * + + 96 * - 52 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT - 64 * + COALESCE ( - 4, - CASE - - 2 WHEN 3 * - 38 * 14 + + 47 THEN NULL WHEN 42 THEN + COUNT( * ) WHEN + 86 THEN ( + ( + 8 ) ) END - - ( - 59 + + COUNT( * ) ) ) DIV COUNT( * ) AS col0
----
256

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 64 * + COALESCE ( - 4, - CASE - - 2 WHEN 3 * - 38 * 14 + + 47 THEN NULL WHEN 42 THEN + COUNT ( * ) WHEN + 86 THEN ( + ( + 8 ) ) END - - ( - 59 + + COUNT ( * ) ) ) / COUNT ( * ) AS col0
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT + 48 DIV + 29 + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5026
SELECT + 48 / + 29 + + 73
----
74

query I rowsort
SELECT ALL 17 + - 39 * - - 1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT COUNT( * ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT COUNT ( * ) + - 24
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + + 72 * + + 40 + - COALESCE ( + 87, + - COUNT( * ) ) + + 55 + - - 11 * - COUNT( * )
----
2837

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + 72 * + + 40 + - COALESCE ( + 87, + - COUNT ( * ) ) + + 55 + - - 11 * - COUNT ( * )
----
2837

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - 99 + - COUNT( * ) + + ( + 22 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - 99 + - COUNT ( * ) + + ( + 22 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT CASE - COUNT( * ) WHEN - + 57 + - 78 * - COUNT( * ) THEN NULL ELSE - 59 + - 21 END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5031
SELECT CASE - COUNT ( * ) WHEN - + 57 + - 78 * - COUNT ( * ) THEN NULL ELSE - 59 + - 21 END AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - - 60 + 79 * + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - - 60 + 79 * + COUNT ( * )
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT CASE 81 WHEN + MAX( - - 54 ) THEN CAST( - 27 AS SIGNED ) WHEN - - CASE - ( + COUNT( * ) ) WHEN COUNT( * ) THEN - COUNT( * ) * 74 END * MIN( ALL 63 + + 68 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT CASE 81 WHEN + MAX ( - - 54 ) THEN CAST ( - 27 AS INTEGER ) WHEN - - CASE - ( + COUNT ( * ) ) WHEN COUNT ( * ) THEN - COUNT ( * ) * 74 END * MIN ( ALL 63 + + 68 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 49 + - 35 + - 40 + + + 94 AS col0
----
-30

query I rowsort
SELECT ALL 6 * NULLIF ( + 3, - COALESCE ( + - 46, + + 85, - 74 + 12 ) ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT SUM( DISTINCT 84 ) * - + 70
----
-5880

skipif mysql # not compatible
query I rowsort label-5036
SELECT SUM ( DISTINCT 84 ) * - + 70
----
-5880

query I rowsort
SELECT 93 - - - ( - 35 ) AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT CAST( + 22 AS SIGNED ) * + COUNT( - 94 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-5038
SELECT CAST ( + 22 AS INTEGER ) * + COUNT ( - 94 ) col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5039
SELECT 90, - ( + NULLIF ( - 90, - COUNT( * ) + - - 17 ) )
----
90
90

skipif mysql # not compatible
query II rowsort label-5039
SELECT 90, - ( + NULLIF ( - 90, - COUNT ( * ) + - - 17 ) )
----
90
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT ALL 67 DIV - + SUM( - ( - + 9 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL 67 / - + SUM ( - ( - + 9 ) ) AS col0
----
-7

query I rowsort
SELECT + 73 * + 10
----
730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 49 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5044
SELECT - 10 AS col0, 58 DIV + 11
----
-10
5

skipif mysql # not compatible
query II rowsort label-5044
SELECT - 10 AS col0, 58 / + 11
----
-10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT + COUNT( * ) + + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( * ) + + - 14
----
-13

query II rowsort
SELECT - 78 + + + ( 95 ) * - - 32 * 3 + 98 AS col0, + 6 + + + 4 * + 61
----
9140
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL 1 + - CAST( + ( + + MIN( ALL 89 ) ) AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL 1 + - CAST ( + ( + + MIN ( ALL 89 ) ) AS INTEGER ) AS col2
----
-88

query I rowsort
SELECT ALL 60 * + 97 AS col1
----
5820

query II rowsort
SELECT 14 col0, 46
----
14
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + MAX( - 6 ) + 92
----
86

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + MAX ( - 6 ) + 92
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-5051
SELECT 22, 93 DIV + 38 AS col2
----
22
2

skipif mysql # not compatible
query II rowsort label-5051
SELECT 22, 93 / + 38 AS col2
----
22
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT - CAST( NULL AS SIGNED ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT - CAST ( NULL AS INTEGER ) + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT - COUNT( * ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - COUNT ( * ) + + 48
----
47

query II rowsort
SELECT ALL + 51 + + 32 - 67, 33 AS col2
----
16
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - + 88 - + + MAX( ALL 15 )
----
-103

skipif mysql # not compatible
query I rowsort label-5055
SELECT - + 88 - + + MAX ( ALL 15 )
----
-103

query I rowsort
SELECT - - NULLIF ( - + 71, - ( 46 ) ) + 97 AS col1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-5057
SELECT + - 60 AS col2, 58 DIV 11 * - + 60 AS col2
----
-60
-300

skipif mysql # not compatible
query II rowsort label-5057
SELECT + - 60 AS col2, 58 / 11 * - + 60 AS col2
----
-60
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL COUNT( * ) * + 37 * 49 + 58 + - COUNT( DISTINCT + 66 ) * - 50 AS col0
----
1921

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL COUNT ( * ) * + 37 * 49 + 58 + - COUNT ( DISTINCT + 66 ) * - 50 AS col0
----
1921

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT MIN( + + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5059
SELECT MIN ( + + 87 ) AS col0
----
87

query I rowsort
SELECT ALL + + 74 * 29 + 29 * ( - - 8 ) AS col2
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - + ( - COUNT( * ) ) * + - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - + ( - COUNT ( * ) ) * + - 45 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT + 36 * + + 35 + + CAST( + 25 AS SIGNED )
----
1285

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 36 * + + 35 + + CAST ( + 25 AS INTEGER )
----
1285

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + COUNT( * ) + + 46 - + - 45
----
92

skipif mysql # not compatible
query I rowsort label-5063
SELECT + COUNT ( * ) + + 46 - + - 45
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT + 58 col0, 0 * - MIN( DISTINCT + 27 )
----
58
0

skipif mysql # not compatible
query II rowsort label-5064
SELECT + 58 col0, 0 * - MIN ( DISTINCT + 27 )
----
58
0

query I rowsort
SELECT - ( + 25 ) * - + 40 AS col2
----
1000

query I rowsort
SELECT - 40 * + - 99 + - 43
----
3917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL - 34 * + + COUNT( * ) + 74 + + MIN( DISTINCT CASE - 71 WHEN + + CAST( + 55 AS SIGNED ) THEN 55 * + 75 END ) - + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - 34 * + + COUNT ( * ) + 74 + + MIN ( DISTINCT CASE - 71 WHEN + + CAST ( + 55 AS INTEGER ) THEN 55 * + 75 END ) - + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 12 * + 74 * - COUNT( * ) + + 61 + 86 * 51 - - 74
----
3633

skipif mysql # not compatible
query I rowsort label-5068
SELECT 12 * + 74 * - COUNT ( * ) + + 61 + 86 * 51 - - 74
----
3633

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT + COUNT( * ) AS col1, 88 * - 89 AS col0
----
1
-7832

skipif mysql # not compatible
query II rowsort label-5069
SELECT + COUNT ( * ) AS col1, 88 * - 89 AS col0
----
1
-7832

query I rowsort
SELECT - + 37 + - 38 + - - 13
----
-62

query I rowsort
SELECT - - 62 + 23 + + - 51 - 39 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - - CASE 23 WHEN - + 73 THEN NULL WHEN ( - - 3 ) THEN + 48 + 66 + - 41 / MAX( DISTINCT 66 ) END * + 88 + - 9 / + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT - - CASE 23 WHEN - + 73 THEN NULL WHEN ( - - 3 ) THEN + 48 + 66 + - 41 / MAX ( DISTINCT 66 ) END * + 88 + - 9 / + 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - 45 - + + 64 - 67
----
2659

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT MAX( 41 ) * 47 + - 63 AS col2
----
1864

skipif mysql # not compatible
query I rowsort label-5074
SELECT MAX ( 41 ) * 47 + - 63 AS col2
----
1864

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + MAX( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5075
SELECT + MAX ( 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + ( - 4 ) + NULLIF ( + + 61, + - 18 + + MAX( DISTINCT - 58 ) )
----
57

skipif mysql # not compatible
query I rowsort label-5076
SELECT + ( - 4 ) + NULLIF ( + + 61, + - 18 + + MAX ( DISTINCT - 58 ) )
----
57

query I rowsort
SELECT - 49 * + CASE 19 WHEN 92 THEN + 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 61 * + - 51 * 66 AS col0
----
-205326

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( ALL NULLIF ( + + 34, - 60 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( ALL NULLIF ( + + 34, - 60 ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT 25 + - + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT 25 + - + COUNT ( * ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT + COUNT( * ) - + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT + CAST( + ( + 93 ) AS SIGNED ) + 54 + - - 1 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-5082
SELECT + CAST ( + ( + 93 ) AS INTEGER ) + 54 + - - 1 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT - 42 + COUNT( * ) * - - 30 - COUNT( * ) + 80 + + 49 * - 81 * - + 47 AS col1
----
186610

skipif mysql # not compatible
query I rowsort label-5083
SELECT - 42 + COUNT ( * ) * - - 30 - COUNT ( * ) + 80 + + 49 * - 81 * - + 47 AS col1
----
186610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT + 53 + - COUNT( * ) DIV - 23
----
53

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 53 + - COUNT ( * ) / - 23
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT + CAST( NULL AS SIGNED ) + - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + CAST ( NULL AS INTEGER ) + - 67 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT + + AVG ( + 54 ) - - 37 + CAST( NULL AS SIGNED ) + + 52 + + + NULLIF ( ( - 4 ), - 59 ) * + 64 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT + + AVG ( + 54 ) - - 37 + CAST ( NULL AS INTEGER ) + + 52 + + + NULLIF ( ( - 4 ), - 59 ) * + 64 * 35
----
NULL

query II rowsort
SELECT ALL - 4 + 47, CASE + AVG ( ALL - 1 ) WHEN - - 58 THEN NULL WHEN + 7 THEN NULL WHEN + 31 * - COALESCE ( - 37, - 41, + 6 * 78 ) THEN ( + 7 ) + - 91 * 93 END AS col0
----
43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - - 72 + - CASE + COUNT( * ) WHEN - 41 + CASE - 45 WHEN 26 THEN COUNT( * ) WHEN - 17 * ( + AVG ( + 32 ) ) THEN 22 * - 20 + 53 ELSE NULL END THEN 33 - 94 * - CAST( NULL AS SIGNED ) ELSE 43 + CASE 5 WHEN 16 THEN - 95 + - 51 WHEN COUNT( * ) THEN COUNT( * ) * 53 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - - 72 + - CASE + COUNT ( * ) WHEN - 41 + CASE - 45 WHEN 26 THEN COUNT ( * ) WHEN - 17 * ( + AVG ( + 32 ) ) THEN 22 * - 20 + 53 ELSE NULL END THEN 33 - 94 * - CAST ( NULL AS INTEGER ) ELSE 43 + CASE 5 WHEN 16 THEN - 95 + - 51 WHEN COUNT ( * ) THEN COUNT ( * ) * 53 END END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 71 * - 0 AS col0, + ( - ( + 12 ) )
----
0
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5090
SELECT + 88 / 27 - - 34 - - - 69 * + COUNT( * ) + 63 + + CAST( NULL AS SIGNED ), 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-5090
SELECT + 88 / 27 - - 34 - - - 69 * + COUNT ( * ) + 63 + + CAST ( NULL AS INTEGER ), 78 AS col2
----
NULL
78

query II rowsort
SELECT + - 16 * - 90, - 4 AS col0
----
1440
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT DISTINCT + 44 DIV 49 * - 33 * - MIN( DISTINCT - 34 ) + + - 49 - - - 47
----
-96

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT + 44 / 49 * - 33 * - MIN ( DISTINCT - 34 ) + + - 49 - - - 47
----
-96

query II rowsort
SELECT - + 83 * 95 AS col1, 26 * + 35 + 50 * + - 60
----
-7885
-2090

query II rowsort
SELECT - + 77 * 13 AS col1, 78 col1
----
-1001
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT ALL - 55 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 55 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT - - 38 DIV + COUNT( * ) - - 39 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - - 38 / + COUNT ( * ) - - 39 AS col0
----
77

query I rowsort
SELECT - 11 * - 15
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - 6 * COUNT( * ) + - - 65 + + 63 * + MIN( + 37 ) * - 44
----
-102505

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - 6 * COUNT ( * ) + - - 65 + + 63 * + MIN ( + 37 ) * - 44
----
-102505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT - + 79 * - CASE + CAST( + 82 AS SIGNED ) WHEN + + 1 THEN + 18 WHEN - 49 * + - 41 THEN + 97 + - CASE - COUNT( * ) WHEN 64 - CASE COUNT( * ) + + 69 WHEN + 64 * 53 THEN CASE - COUNT( * ) WHEN - ( - 25 ) * 87 THEN NULL WHEN + 3 * 8 THEN NULL ELSE - 70 END * - COUNT( * ) WHEN COUNT( DISTINCT ( + 5 ) ) * 9 THEN NULL END * - 4 THEN - 4 WHEN CAST( + MIN( DISTINCT ( 64 ) ) AS SIGNED ) THEN + 83 * + AVG ( ALL COALESCE ( 71, ( + 14 ) ) ) + 44 WHEN 3 THEN 90 + 67 ELSE NULL END ELSE NULL END + COALESCE ( 28, + 62 + 40 * + 47 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT - + 79 * - CASE + CAST ( + 82 AS INTEGER ) WHEN + + 1 THEN + 18 WHEN - 49 * + - 41 THEN + 97 + - CASE - COUNT ( * ) WHEN 64 - CASE COUNT ( * ) + + 69 WHEN + 64 * 53 THEN CASE - COUNT ( * ) WHEN - ( - 25 ) * 87 THEN NULL WHEN + 3 * 8 THEN NULL ELSE - 70 END * - COUNT ( * ) WHEN COUNT ( DISTINCT ( + 5 ) ) * 9 THEN NULL END * - 4 THEN - 4 WHEN CAST ( + MIN ( DISTINCT ( 64 ) ) AS INTEGER ) THEN + 83 * + AVG ( ALL COALESCE ( 71, ( + 14 ) ) ) + 44 WHEN 3 THEN 90 + 67 ELSE NULL END ELSE NULL END + COALESCE ( 28, + 62 + 40 * + 47 ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 62 * 98
----
-6076

query I rowsort
SELECT 59 * 15
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT 40 - - - CASE - - 57 WHEN + - 38 THEN NULL WHEN + COUNT( ALL + 29 ) THEN + 73 ELSE + 0 END
----
40

skipif mysql # not compatible
query I rowsort label-5102
SELECT 40 - - - CASE - - 57 WHEN + - 38 THEN NULL WHEN + COUNT ( ALL + 29 ) THEN + 73 ELSE + 0 END
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT COUNT( DISTINCT 22 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( DISTINCT 22 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT DISTINCT - COUNT( * ) + + - 15 + - + ( MIN( ALL CAST( - - 25 AS SIGNED ) ) ) + - 96 * + 96
----
-9257

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT - COUNT ( * ) + + - 15 + - + ( MIN ( ALL CAST ( - - 25 AS INTEGER ) ) ) + - 96 * + 96
----
-9257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL - CAST( + 89 AS SIGNED ) + - 85 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - CAST ( + 89 AS INTEGER ) + - 85 AS col0
----
-174

query I rowsort
SELECT DISTINCT 7 + + + 10 * 20
----
207

query I rowsort
SELECT DISTINCT - 68 + 97
----
29

query I rowsort
SELECT 49 + 25 col1
----
74

query I rowsort
SELECT 84 - + + CASE 17 WHEN - 7 * - + 77 THEN - + 16 END * 84 - 97
----
NULL

query II rowsort
SELECT - 22 AS col2, - 75 col0
----
-22
-75

query I rowsort
SELECT 91 * + 58 AS col0
----
5278

query I rowsort
SELECT DISTINCT 72 + - 1 AS col0
----
71

query I rowsort
SELECT ALL 6 + - - 22 + 24 * - + 74 AS col2
----
-1748

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT 81 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT 81 / 91
----
0

query I rowsort
SELECT DISTINCT - 51 + 7 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL + 88 + - - 24 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + 88 + - - 24 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 33 + - 29 AS col2
----
-62

query I rowsort
SELECT DISTINCT ( + + 99 )
----
99

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( + + 40, + 17 ), 75, - 74 ) - + 28 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT 89 * + 37 + - 96 AS col2, - 23 + - COUNT( * ) AS col0
----
3197
-24

skipif mysql # not compatible
query II rowsort label-5120
SELECT 89 * + 37 + - 96 AS col2, - 23 + - COUNT ( * ) AS col0
----
3197
-24

query I rowsort
SELECT - ( - + 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 55 + + - 46 - - 47 - ( + 67 ) * + COUNT( * ) + + 21
----
-100

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 55 + + - 46 - - 47 - ( + 67 ) * + COUNT ( * ) + + 21
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT DISTINCT - - 56 col0, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT - - 56 col0, - COUNT ( * )
----
56
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + 99 * - 22 * + 21 * + COUNT( * )
----
-45738

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + 99 * - 22 * + 21 * + COUNT ( * )
----
-45738

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT - 56 * + - 71 - + 66 + + CAST( ( - - 45 ) AS SIGNED ) + 3 * 12, 58 AS col2
----
3991
58

skipif mysql # not compatible
query II rowsort label-5125
SELECT - 56 * + - 71 - + 66 + + CAST ( ( - - 45 ) AS INTEGER ) + 3 * 12, 58 AS col2
----
3991
58

query I rowsort
SELECT 38 * + 84 - - + 45 + 16 * + - ( - 5 )
----
3317

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + 49 + 85 - + 26 + 88 + + SUM( + 53 ) * + 8 * + 78 * 61 * 13 + COUNT( * ) AS col0
----
26226293

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 49 + 85 - + 26 + 88 + + SUM ( + 53 ) * + 8 * + 78 * 61 * 13 + COUNT ( * ) AS col0
----
26226293

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT 97 + MIN( + + 91 )
----
188

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT 97 + MIN ( + + 91 )
----
188

query II rowsort
SELECT ALL - 58, 61 * + 97 + + 3 col2
----
-58
5920

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT COUNT( * ) * - 3 * - COUNT( * ) AS col1, - ( - 82 )
----
3
82

skipif mysql # not compatible
query II rowsort label-5130
SELECT COUNT ( * ) * - 3 * - COUNT ( * ) AS col1, - ( - 82 )
----
3
82

query I rowsort
SELECT 99 * + + 88 + 60
----
8772

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT ALL - COUNT( * ), 91 AS col1
----
-1
91

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL - COUNT ( * ), 91 AS col1
----
-1
91

query I rowsort
SELECT ALL + 36 + - + 23
----
13

query II rowsort
SELECT 59 + 61, 67 AS col2
----
120
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL CASE - + CAST( 24 AS SIGNED ) WHEN + 11 THEN - 17 * - 12 / + 72 + 3 WHEN - CAST( + 74 AS SIGNED ) THEN NULL WHEN 37 THEN + 2 END + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL CASE - + CAST ( 24 AS INTEGER ) WHEN + 11 THEN - 17 * - 12 / + 72 + 3 WHEN - CAST ( + 74 AS INTEGER ) THEN NULL WHEN 37 THEN + 2 END + - 58 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT ALL 2 DIV + + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 2 / + + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT DISTINCT + 9 * COUNT( * ) col1, COUNT( * ) * + 61
----
9
61

skipif mysql # not compatible
query II rowsort label-5137
SELECT DISTINCT + 9 * COUNT ( * ) col1, COUNT ( * ) * + 61
----
9
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT ALL + 37 + - CAST( NULL AS SIGNED ) * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + 37 + - CAST ( NULL AS INTEGER ) * - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ( 1 ) * - - COALESCE ( + CASE 55 WHEN - + NULLIF ( + 94, - 66 * + 89 + 13 ) * 7 * - 59 + - 89 THEN SUM( DISTINCT - 22 ) * - 95 ELSE + 17 END, 25, ( + 52 ) * + 9, 49 + 66 ) + - 0
----
17

skipif mysql # not compatible
query I rowsort label-5139
SELECT ( 1 ) * - - COALESCE ( + CASE 55 WHEN - + NULLIF ( + 94, - 66 * + 89 + 13 ) * 7 * - 59 + - 89 THEN SUM ( DISTINCT - 22 ) * - 95 ELSE + 17 END, 25, ( + 52 ) * + 9, 49 + 66 ) + - 0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5140
SELECT + 67 AS col0, - 87 + + - 25 * + + 24 DIV - COUNT( * ) AS col1
----
67
513

skipif mysql # not compatible
query II rowsort label-5140
SELECT + 67 AS col0, - 87 + + - 25 * + + 24 / - COUNT ( * ) AS col1
----
67
513

query I rowsort
SELECT DISTINCT + 19 + - 56
----
-37

query I rowsort
SELECT ALL - 64 + - 48
----
-112

query II rowsort
SELECT - 20 AS col0, 49 AS col0
----
-20
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT COUNT( * ) + - + 60 + - - 91
----
32

skipif mysql # not compatible
query I rowsort label-5144
SELECT COUNT ( * ) + - + 60 + - - 91
----
32

query I rowsort
SELECT 74 * 9 AS col0
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT DISTINCT + 19 - + 7 + - - COUNT( * ) * - CAST( + 33 AS SIGNED ) / - + 26 * CASE WHEN NOT ( - 13 ) IS NOT NULL THEN MIN( NULLIF ( - ( 57 ), - ( 20 ) ) ) + MAX( ALL 42 + 70 ) END * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + 19 - + 7 + - - COUNT ( * ) * - CAST ( + 33 AS INTEGER ) / - + 26 * CASE WHEN NOT ( - 13 ) IS NOT NULL THEN MIN ( NULLIF ( - ( 57 ), - ( 20 ) ) ) + MAX ( ALL 42 + 70 ) END * + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL - 65 * + 18 * + - ( - + CASE + 41 WHEN + MIN( 49 ) + 56 THEN NULL WHEN + 61 + 99 * + - 26 THEN NULL ELSE - 0 + 75 END ) AS col2
----
-87750

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - 65 * + 18 * + - ( - + CASE + 41 WHEN + MIN ( 49 ) + 56 THEN NULL WHEN + 61 + 99 * + - 26 THEN NULL ELSE - 0 + 75 END ) AS col2
----
-87750

query I rowsort
SELECT 90 + - 94 AS col0
----
-4

query I rowsort
SELECT DISTINCT 18 - 54 col1
----
-36

query II rowsort
SELECT 38 AS col0, 15
----
38
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL MAX( DISTINCT 9 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL MAX ( DISTINCT 9 ) col1
----
9

query I rowsort
SELECT - 86 + 15
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - COUNT( * ) * + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5153
SELECT - COUNT ( * ) * + 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + 88 * - - 45 * - - NULLIF ( COUNT( * ), + 78 ) AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + 88 * - - 45 * - - NULLIF ( COUNT ( * ), + 78 ) AS col1
----
3960

query II rowsort
SELECT ALL 15, - 58 AS col1
----
15
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT - COALESCE ( + 16, + 42 * + 31 DIV - - 78 * + - COUNT( * ) + 84 + - 94 * + - 30, + 66 * + 88 )
----
-16

skipif mysql # not compatible
query I rowsort label-5156
SELECT - COALESCE ( + 16, + 42 * + 31 / - - 78 * + - COUNT ( * ) + 84 + - 94 * + - 30, + 66 * + 88 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT 83 - MAX( DISTINCT + + 12 ) + - - 73 + - + 77 + MAX( DISTINCT + 62 ) * + - COUNT( * ) * - 28 + - + COUNT( DISTINCT - 11 ) - + 3 * + 75 * COUNT( * )
----
1577

skipif mysql # not compatible
query I rowsort label-5157
SELECT 83 - MAX ( DISTINCT + + 12 ) + - - 73 + - + 77 + MAX ( DISTINCT + 62 ) * + - COUNT ( * ) * - 28 + - + COUNT ( DISTINCT - 11 ) - + 3 * + 75 * COUNT ( * )
----
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) + - MIN( DISTINCT 90 ) * + 64 * - 28 AS col0
----
161279

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) + - MIN ( DISTINCT 90 ) * + 64 * - 28 AS col0
----
161279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT + CASE + 54 WHEN - 89 THEN NULL WHEN 23 THEN 6 END + + CASE 43 WHEN - 65 THEN + 85 ELSE + 30 END * - ( ( - ( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT + CASE + 54 WHEN - 89 THEN NULL WHEN 23 THEN 6 END + + CASE 43 WHEN - 65 THEN + 85 ELSE + 30 END * - ( ( - ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + + 0 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT + + 0 / + 76 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL + CAST( + CAST( + 83 AS SIGNED ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + CAST ( + CAST ( + 83 AS INTEGER ) AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - - MAX( DISTINCT - - 6 ) * 11 * + 31
----
2046

skipif mysql # not compatible
query I rowsort label-5162
SELECT - - MAX ( DISTINCT - - 6 ) * 11 * + 31
----
2046

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT + 29 * COUNT( * ) - - ( + 15 ) + 99 * + + 24, + 61 + COUNT( * ) AS col0
----
2420
62

skipif mysql # not compatible
query II rowsort label-5163
SELECT + 29 * COUNT ( * ) - - ( + 15 ) + 99 * + + 24, + 61 + COUNT ( * ) AS col0
----
2420
62

query II rowsort
SELECT ALL + - 72 AS col2, - 13 AS col1
----
-72
-13

query II rowsort
SELECT 5 AS col0, - 80 AS col1
----
5
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT + COUNT( * ) DIV - + 41
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + COUNT ( * ) / - + 41
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5167
SELECT + 60 / + 67 * - CAST( NULL AS DECIMAL ) / - NULLIF ( 70, - + 53 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 60 / + 67 * - CAST ( NULL AS REAL ) / - NULLIF ( 70, - + 53 ) + + 34
----
NULL

query I rowsort
SELECT DISTINCT + 12 * - 40 AS col0
----
-480

query II rowsort
SELECT + CASE + - 43 WHEN + AVG ( 27 ) THEN - 11 + 24 / - + 64 ELSE NULL END, 98 col0
----
NULL
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT CASE NULLIF ( - - COUNT( ALL 13 ), + - 72 * COUNT( * ) + + - 22 + + 45 + - - CAST( - 59 AS SIGNED ) * + 28 ) WHEN - + AVG ( ALL 72 ) - 71 THEN 67 + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT CASE NULLIF ( - - COUNT ( ALL 13 ), + - 72 * COUNT ( * ) + + - 22 + + 45 + - - CAST ( - 59 AS INTEGER ) * + 28 ) WHEN - + AVG ( ALL 72 ) - 71 THEN 67 + 49 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT 68 * + COUNT( * ) + + 44 + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) - + MIN( + + 47 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5171
SELECT 68 * + COUNT ( * ) + + 44 + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) - + MIN ( + + 47 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT + COUNT( * ) + COUNT( * ) AS col1, ( 86 ) * - 77 col0
----
2
-6622

skipif mysql # not compatible
query II rowsort label-5172
SELECT + COUNT ( * ) + COUNT ( * ) AS col1, ( 86 ) * - 77 col0
----
2
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - ( + COUNT( DISTINCT + - 75 ) ) * - 4 col1
----
4

skipif mysql # not compatible
query I rowsort label-5173
SELECT - ( + COUNT ( DISTINCT + - 75 ) ) * - 4 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + COUNT( * ) * - + 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5174
SELECT + COUNT ( * ) * - + 23 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5175
SELECT + 13 - - 67 + CAST( NULL AS SIGNED ) + - - 63 * + 59 AS col1, CAST( 35 AS SIGNED )
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5175
SELECT + 13 - - 67 + CAST ( NULL AS INTEGER ) + - - 63 * + 59 AS col1, CAST ( 35 AS INTEGER )
----
NULL
35

query I rowsort
SELECT ALL + COALESCE ( + + 61, 86 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ( + CAST( AVG ( + - 4 ) AS SIGNED ) ) * + 0 - + 65 + + 55
----
-10

skipif mysql # not compatible
query I rowsort label-5177
SELECT ( + CAST ( AVG ( + - 4 ) AS INTEGER ) ) * + 0 - + 65 + + 55
----
-10

query I rowsort
SELECT - 59 * + 70 * - 98
----
404740

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT 6 * - COUNT( * ) + + ( - 30 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5179
SELECT 6 * - COUNT ( * ) + + ( - 30 ) AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL + - 98 - + - MIN( 77 ) + + + COUNT( * ) DIV 26
----
-21

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + - 98 - + - MIN ( 77 ) + + + COUNT ( * ) / 26
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT - ( 79 ) DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-5181
SELECT - ( 79 ) / 37
----
-2

query I rowsort
SELECT - - 39 * + - 26
----
-1014

query I rowsort
SELECT DISTINCT + 32 * 16
----
512

query I rowsort
SELECT - + 4 * 8 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL + + COUNT( ( + + 15 ) ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + + COUNT ( ( + + 15 ) ) + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - COUNT( * ) + 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5186
SELECT - COUNT ( * ) + 25 AS col1
----
24

query I rowsort
SELECT - 31 + 5 AS col0
----
-26

query I rowsort
SELECT - - 27 + - + 31 AS col2
----
-4

query II rowsort
SELECT DISTINCT + - 76 * - - 91 + + 45 col2, 56 AS col0
----
-6871
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL ( 48 ) DIV + - 87 + - + 9 + + + 7 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL ( 48 ) / + - 87 + - + 9 + + + 7 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT ALL 7 DIV + + 43 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL 7 / + + 43 + + 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT DISTINCT 76 DIV + 4 + 45 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT 76 / + 4 + 45 AS col0
----
64

query I rowsort
SELECT - 43 * 69 AS col2
----
-2967

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + NULLIF ( 31, - MAX( DISTINCT - - 39 ) / + + 14 * - 6 ) + - 88 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5194
SELECT + NULLIF ( 31, - MAX ( DISTINCT - - 39 ) / + + 14 * - 6 ) + - 88 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5195
SELECT CAST( NULL AS SIGNED ) AS col1, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5195
SELECT CAST ( NULL AS INTEGER ) AS col1, 68
----
NULL
68

query I rowsort
SELECT - 37 * + 61 * + 36 AS col2
----
-81252

query I rowsort
SELECT + 43 * 27
----
1161

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT DISTINCT 49 DIV + 2 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT 49 / + 2 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + 75 DIV 99 + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 75 / 99 + - 92
----
-92

query I rowsort
SELECT ALL 84 * + + 54 AS col2
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + 89 + - ( - ( + ( - + COUNT( 40 ) ) ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5201
SELECT + 89 + - ( - ( + ( - + COUNT ( 40 ) ) ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL 93 * 14 - + NULLIF ( - + NULLIF ( + COUNT( ALL + 14 ), + + 27 - + + 83 ), 28 / - - COUNT( * ) - + 49 + ( + + ( - 67 ) ) ) AS col0
----
1303

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL 93 * 14 - + NULLIF ( - + NULLIF ( + COUNT ( ALL + 14 ), + + 27 - + + 83 ), 28 / - - COUNT ( * ) - + 49 + ( + + ( - 67 ) ) ) AS col0
----
1303

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT 13 DIV - - 29 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 13 / - - 29 * + 30
----
0

query I rowsort
SELECT ALL + 70 * - 81 - 38
----
-5708

query I rowsort
SELECT + 83 * - 80 AS col0
----
-6640

query I rowsort
SELECT + 35 + + 25 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT + CAST( NULL AS SIGNED ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT + CAST ( NULL AS INTEGER ) * + 26
----
NULL

query I rowsort
SELECT + 53 * 78 AS col2
----
4134

query I rowsort
SELECT - 12 + - 78 AS col2
----
-90

query I rowsort
SELECT + ( - - ( - 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL - 94 * - 77 - - MAX( DISTINCT + 11 )
----
7249

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - 94 * - 77 - - MAX ( DISTINCT + 11 )
----
7249

onlyif mysql # aggregate syntax: 
query II rowsort label-5212
SELECT - 37 * + + 91 + + 99 AS col0, 20 + + + 99 * + COUNT( DISTINCT - + 63 )
----
-3268
119

skipif mysql # not compatible
query II rowsort label-5212
SELECT - 37 * + + 91 + + 99 AS col0, 20 + + + 99 * + COUNT ( DISTINCT - + 63 )
----
-3268
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT CASE - - 92 WHEN - 14 THEN 75 - 99 + - + COUNT( * ) + 62 * 10 * - + 92 + 0 WHEN - COUNT( * ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT CASE - - 92 WHEN - 14 THEN 75 - 99 + - + COUNT ( * ) + 62 * 10 * - + 92 + 0 WHEN - COUNT ( * ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL - COALESCE ( 42, COALESCE ( + SUM( - 10 ), NULLIF ( 29, - 72 + - + 9 ) ) ) * - 64 * - 25 / - CASE - 62 WHEN + 13 - 48 * 7 THEN - 7 * + 13 ELSE NULL END + + 41 / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - COALESCE ( 42, COALESCE ( + SUM ( - 10 ), NULLIF ( 29, - 72 + - + 9 ) ) ) * - 64 * - 25 / - CASE - 62 WHEN + 13 - 48 * 7 THEN - 7 * + 13 ELSE NULL END + + 41 / 93
----
NULL

query I rowsort
SELECT ALL 18 + - 64 AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5216
SELECT DISTINCT COUNT( * ) + + 86 + + 52 DIV + ( + 77 ) - + 45 - 14 * - 12 + 71 col1
----
281

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT COUNT ( * ) + + 86 + + 52 / + ( + 77 ) - + 45 - 14 * - 12 + 71 col1
----
281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT DISTINCT + 11 DIV COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + 11 / COUNT ( * ) AS col2
----
11

query I rowsort
SELECT DISTINCT - 36 + + 38 AS col2
----
2

query II rowsort
SELECT 60 AS col2, 57 * - 56
----
60
-3192

query I rowsort
SELECT ALL + 87 + + 50
----
137

query I rowsort
SELECT ALL + 17 * + - 64
----
-1088

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT - 51 DIV + 35 + - + 90
----
-91

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 51 / + 35 + - + 90
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT DISTINCT COUNT( * ) col1, 48
----
1
48

skipif mysql # not compatible
query II rowsort label-5223
SELECT DISTINCT COUNT ( * ) col1, 48
----
1
48

query I rowsort
SELECT ALL + + 74 + - - 15
----
89

query II rowsort
SELECT DISTINCT 2 AS col1, - 83 AS col1
----
2
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT MIN( DISTINCT + NULLIF ( + 56, - 23 * 64 ) ) * - 82 * - ( - 53 ) * COUNT( * ) AS col1
----
-243376

skipif mysql # not compatible
query I rowsort label-5226
SELECT MIN ( DISTINCT + NULLIF ( + 56, - 23 * 64 ) ) * - 82 * - ( - 53 ) * COUNT ( * ) AS col1
----
-243376

query I rowsort
SELECT 65 - + + 64
----
1

query I rowsort
SELECT ALL - 5 * + ( + 31 )
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT 74 * - MIN( ALL 24 ) AS col0
----
-1776

skipif mysql # not compatible
query I rowsort label-5229
SELECT 74 * - MIN ( ALL 24 ) AS col0
----
-1776

query I rowsort
SELECT DISTINCT 43 * + 86
----
3698

query I rowsort
SELECT DISTINCT - 15 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT ALL - 6 * COUNT( * ) AS col0, + ( + - 10 ) + - COUNT( * ) * 73 * + 52 * + 94
----
-6
-356834

skipif mysql # not compatible
query II rowsort label-5232
SELECT ALL - 6 * COUNT ( * ) AS col0, + ( + - 10 ) + - COUNT ( * ) * 73 * + 52 * + 94
----
-6
-356834

query II rowsort
SELECT DISTINCT - 88 * - 70, - 45 AS col2
----
6160
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT ALL - ( + COALESCE ( - 72, COUNT( * ), 94 * + 10 - ( - + 51 ) * + + 90 ) ) col0, + 2
----
72
2

skipif mysql # not compatible
query II rowsort label-5234
SELECT ALL - ( + COALESCE ( - 72, COUNT ( * ), 94 * + 10 - ( - + 51 ) * + + 90 ) ) col0, + 2
----
72
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5235
SELECT 43 / - CASE + ( + - 47 ) WHEN 87 THEN - MIN( + + ( + + ( CAST( - 82 AS SIGNED ) ) ) ) END + + ( 78 ) + + 54 + - 48 * + 22 * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT 43 / - CASE + ( + - 47 ) WHEN 87 THEN - MIN ( + + ( + + ( CAST ( - 82 AS INTEGER ) ) ) ) END + + ( 78 ) + + 54 + - 48 * + 22 * + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT 90 DIV + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5236
SELECT 90 / + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT 25 * + - 30 * - COUNT( * )
----
750

skipif mysql # not compatible
query I rowsort label-5237
SELECT 25 * + - 30 * - COUNT ( * )
----
750

query I rowsort
SELECT ( ( - 69 ) ) * 18
----
-1242

query I rowsort
SELECT 38 * + 35 AS col0
----
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL 94 DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL 94 / 25
----
3

query I rowsort
SELECT 9 - 9 AS col1
----
0

query I rowsort
SELECT - ( 25 ) * + 76 AS col2
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL ( + 52 ) + - COUNT( + + ( - 25 ) )
----
51

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL ( + 52 ) + - COUNT ( + + ( - 25 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT 11 + - + 49 * - + COUNT( * ) + - 19 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 11 + - + 49 * - + COUNT ( * ) + - 19 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT + SUM( 35 ) * - 43 + + 10 + + COUNT( * ) + COALESCE ( + - 18, - 24 * + + 26 * + + 38 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT + SUM ( 35 ) * - 43 + + 10 + + COUNT ( * ) + COALESCE ( + - 18, - 24 * + + 26 * + + 38 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 38 + - - 78 AS col1
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT - 22 * 59, - ( - COUNT( * ) ) AS col0
----
-1298
1

skipif mysql # not compatible
query II rowsort label-5247
SELECT - 22 * 59, - ( - COUNT ( * ) ) AS col0
----
-1298
1

query I rowsort
SELECT DISTINCT - 88 * + + 4 + + - 95
----
-447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5250
SELECT ALL 23 - 47 DIV MAX( ALL 88 ) AS col0, 4
----
23
4

skipif mysql # not compatible
query II rowsort label-5250
SELECT ALL 23 - 47 / MAX ( ALL 88 ) AS col0, 4
----
23
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT DISTINCT - - COUNT( * ) * 62 AS col0, + 98 col2
----
62
98

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT - - COUNT ( * ) * 62 AS col0, + 98 col2
----
62
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - NULLIF ( - COUNT( * ), + + 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - NULLIF ( - COUNT ( * ), + + 71 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT 7 * - + COUNT( * ) + + 18 col0
----
11

skipif mysql # not compatible
query I rowsort label-5253
SELECT 7 * - + COUNT ( * ) + + 18 col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT ALL - 6 DIV - 7
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - 6 / - 7
----
0

query II rowsort
SELECT 16 AS col2, - 32 AS col1
----
16
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT CAST( ( - + 54 ) AS SIGNED ) + 87 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5256
SELECT CAST ( ( - + 54 ) AS INTEGER ) + 87 AS col0
----
33

query I rowsort
SELECT ALL 20 - + + 99 AS col2
----
-79

query I rowsort
SELECT DISTINCT 37 * + 97
----
3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL + COUNT( * ) / - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + COUNT ( * ) / - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5260
SELECT + 42 * - - CASE + NULLIF ( - 56, AVG ( + 94 ) * 10 ) WHEN - 74 * - 84 * CAST( + 80 AS SIGNED ) THEN NULL WHEN + ( - 2 ) THEN NULL WHEN 83 + 31 * - 17 THEN - 65 * - 97 ELSE 4 END * ( - 88 ) + COALESCE ( 37 + 61 * COUNT( * ), 58 ) DIV - ( + 2 * - 89 ) AS col1
----
-14784

skipif mysql # not compatible
query I rowsort label-5260
SELECT + 42 * - - CASE + NULLIF ( - 56, AVG ( + 94 ) * 10 ) WHEN - 74 * - 84 * CAST ( + 80 AS INTEGER ) THEN NULL WHEN + ( - 2 ) THEN NULL WHEN 83 + 31 * - 17 THEN - 65 * - 97 ELSE 4 END * ( - 88 ) + COALESCE ( 37 + 61 * COUNT ( * ), 58 ) / - ( + 2 * - 89 ) AS col1
----
-14784

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT 0 DIV - 40 * 76
----
0

skipif mysql # not compatible
query I rowsort label-5261
SELECT 0 / - 40 * 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT SUM( ALL - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5262
SELECT SUM ( ALL - 61 ) AS col2
----
-61

query I rowsort
SELECT 19 + + + 31
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT 93 * - COUNT( DISTINCT + 44 ) AS col1, - 11 AS col0
----
-93
-11

skipif mysql # not compatible
query II rowsort label-5264
SELECT 93 * - COUNT ( DISTINCT + 44 ) AS col1, - 11 AS col0
----
-93
-11

query I rowsort
SELECT 35 * 13
----
455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT ALL - CAST( 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - CAST ( 12 AS INTEGER ) AS col0
----
-12

query I rowsort
SELECT DISTINCT - 61 * + + 19 + - - 61
----
-1098

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5268
SELECT ALL - CAST( NULL AS DECIMAL ) * 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - CAST ( NULL AS REAL ) * 91 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 26, - 24 ) * - - 12 AS col1
----
-312

query I rowsort
SELECT DISTINCT 56 + 86 * - 91
----
-7770

query I rowsort
SELECT ALL + 22 + + 21 col1
----
43

query I rowsort
SELECT + ( - + 78 ) col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT - 53 + - MIN( ALL 14 )
----
-67

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT - 53 + - MIN ( ALL 14 )
----
-67

query II rowsort
SELECT 77, 47 AS col1
----
77
47

query I rowsort
SELECT + + 42 + 14 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT + CASE COUNT( * ) WHEN + 17 THEN + + 9 + + 46 WHEN - 13 THEN NULL WHEN - 63 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 17 THEN + + 9 + + 46 WHEN - 13 THEN NULL WHEN - 63 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 74 + + 2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL COUNT( * ) + + SUM( DISTINCT + 50 ) + + 46
----
97

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL COUNT ( * ) + + SUM ( DISTINCT + 50 ) + + 46
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT DISTINCT + COUNT( * ) DIV + + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + COUNT ( * ) / + + 92 AS col2
----
0

query I rowsort
SELECT 65 * + 82 * - 86 + - 70
----
-458450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5281
SELECT ALL - CAST( + 27 AS DECIMAL ) - - CASE - 2 WHEN 8 THEN - + 48 END + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - CAST ( + 27 AS REAL ) - - CASE - 2 WHEN 8 THEN - + 48 END + - 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL - 95 * ( - - CAST( NULL AS SIGNED ) ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - 95 * ( - - CAST ( NULL AS INTEGER ) ) * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + COUNT( - + ( - + NULLIF ( 90, - 61 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5283
SELECT + COUNT ( - + ( - + NULLIF ( 90, - 61 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL + - 95 DIV - - 46 col1
----
-2

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + - 95 / - - 46 col1
----
-2

query I rowsort
SELECT DISTINCT + 68 * - 24
----
-1632

query I rowsort
SELECT + - 65 * - 50
----
3250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5287
SELECT + 38 * + - 85 AS col1, CAST( 8 AS SIGNED )
----
-3230
8

skipif mysql # not compatible
query II rowsort label-5287
SELECT + 38 * + - 85 AS col1, CAST ( 8 AS INTEGER )
----
-3230
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - SUM( ALL 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5288
SELECT - SUM ( ALL 70 ) AS col1
----
-70

query II rowsort
SELECT 93 AS col2, - 49 AS col2
----
93
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - SUM( - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5290
SELECT - SUM ( - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5291
SELECT ALL 79 * - 75 AS col0, - 85 DIV COUNT( * )
----
-5925
-85

skipif mysql # not compatible
query II rowsort label-5291
SELECT ALL 79 * - 75 AS col0, - 85 / COUNT ( * )
----
-5925
-85

query II rowsort
SELECT ALL 46, 15 - 44 AS col1
----
46
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT - COALESCE ( MIN( 15 ), - 62 + - COUNT( * ) + - COUNT( * ) + + 59, - 47 + - 50, - MAX( - 66 ) ) col1, 72 - - 11
----
-15
83

skipif mysql # not compatible
query II rowsort label-5293
SELECT - COALESCE ( MIN ( 15 ), - 62 + - COUNT ( * ) + - COUNT ( * ) + + 59, - 47 + - 50, - MAX ( - 66 ) ) col1, 72 - - 11
----
-15
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT ALL COUNT( * ) AS col2, + 78 * 94 AS col2
----
1
7332

skipif mysql # not compatible
query II rowsort label-5294
SELECT ALL COUNT ( * ) AS col2, + 78 * 94 AS col2
----
1
7332

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT ALL 66 DIV - ( + 16 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL 66 / - ( + 16 ) col0
----
-4

query I rowsort
SELECT + COALESCE ( + 60, 18 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT + ( + CAST( NULL AS SIGNED ) ) / 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT + ( + CAST ( NULL AS INTEGER ) ) / 45 AS col0
----
NULL

query II rowsort
SELECT - 13 * - 27 AS col2, 92 AS col2
----
351
92

query II rowsort
SELECT ALL + 80, 41 AS col1
----
80
41

query I rowsort
SELECT ALL + 12 * - + 55 * + 26 + - + 47
----
-17207

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + 77 * + - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5301
SELECT + 77 * + - COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + SUM( - - 99 ) * - MIN( - 36 ) + 76
----
3640

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + SUM ( - - 99 ) * - MIN ( - 36 ) + 76
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL - ( + - ( - COUNT( * ) ) ) * 74 + ( - + 20 ) + + 44 * - 75
----
-3394

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - ( + - ( - COUNT ( * ) ) ) * 74 + ( - + 20 ) + + 44 * - 75
----
-3394

query II rowsort
SELECT 48 AS col2, 39 AS col1
----
48
39

query II rowsort
SELECT + 91 AS col1, + 20
----
91
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT + - NULLIF ( + COUNT( * ), - 53 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), - 53 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + - 1 * - COUNT( * ) * + CASE - COALESCE ( + 8, - 10 + ( 44 ) ) WHEN COUNT( * ) THEN - AVG ( 32 ) WHEN + 12 THEN NULL WHEN 24 / + 8 + - 14 THEN + 48 - + 40 ELSE NULL END * + 88 - + NULLIF ( + 87, MIN( 73 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + - 1 * - COUNT ( * ) * + CASE - COALESCE ( + 8, - 10 + ( 44 ) ) WHEN COUNT ( * ) THEN - AVG ( 32 ) WHEN + 12 THEN NULL WHEN 24 / + 8 + - 14 THEN + 48 - + 40 ELSE NULL END * + 88 - + NULLIF ( + 87, MIN ( 73 ) ) col1
----
NULL

query II rowsort
SELECT DISTINCT + 66 * + 64 AS col0, + 79 AS col0
----
4224
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT DISTINCT + 39 AS col2, - 97 * + COALESCE ( - + MIN( - 9 ), - 95 * + 48 + 52, + 36 ) + + 93
----
39
-780

skipif mysql # not compatible
query II rowsort label-5309
SELECT DISTINCT + 39 AS col2, - 97 * + COALESCE ( - + MIN ( - 9 ), - 95 * + 48 + 52, + 36 ) + + 93
----
39
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + + MIN( ALL - 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + + MIN ( ALL - 12 ) AS col2
----
-12

query I rowsort
SELECT - ( 30 ) * + - 38 AS col2
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL + - 67 * 87 * + 71 * - 28 * - - COALESCE ( COUNT( * ), + 24, - 20 ) AS col2
----
11588052

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + - 67 * 87 * + 71 * - 28 * - - COALESCE ( COUNT ( * ), + 24, - 20 ) AS col2
----
11588052

query I rowsort
SELECT - - 75 + 63 * + + 28
----
1839

query II rowsort
SELECT - 14, 60 AS col1
----
-14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - ( + - COUNT( * ) ) * + 99 col1
----
99

skipif mysql # not compatible
query I rowsort label-5315
SELECT - ( + - COUNT ( * ) ) * + 99 col1
----
99

query II rowsort
SELECT + + 78 * - - 26, 2 AS col2
----
2028
2

query I rowsort
SELECT ALL COALESCE ( + 91, - 22 )
----
91

query II rowsort
SELECT - 49 AS col2, 70 AS col0
----
-49
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - ( + COALESCE ( - + 33, - 92 * - COUNT( * ) + 49 * + ( - COUNT( * ) ) ) ) + 98
----
131

skipif mysql # not compatible
query I rowsort label-5319
SELECT - ( + COALESCE ( - + 33, - 92 * - COUNT ( * ) + 49 * + ( - COUNT ( * ) ) ) ) + 98
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT ALL CASE + 76 WHEN - - COUNT( DISTINCT + + 61 ) * - SUM( 16 ) + 39 + 96 THEN NULL ELSE + ( + COALESCE ( 82, + 59 ) ) END DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL CASE + 76 WHEN - - COUNT ( DISTINCT + + 61 ) * - SUM ( 16 ) + 39 + 96 THEN NULL ELSE + ( + COALESCE ( 82, + 59 ) ) END / - 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - ( + + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5321
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - ( + + 73 ) AS col0
----
-73

query I rowsort
SELECT - COALESCE ( - 76, - + 12 * + 35 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT ALL SUM( - COALESCE ( - 6, + + 91 * - 59 + - 20 ) ) * + 64 AS col0, 8 AS col2
----
384
8

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL SUM ( - COALESCE ( - 6, + + 91 * - 59 + - 20 ) ) * + 64 AS col0, 8 AS col2
----
384
8

query I rowsort
SELECT ALL ( + + 85 ) * - 93 + - 48 col2
----
-7953

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT + 43 DIV - 82 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 43 / - 82 * - 3
----
0

query II rowsort
SELECT ALL - 47 * 63, 62 AS col0
----
-2961
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + 60 - - ( - 8 ) + - ( + 6 ) * + - COUNT( * ) + - - 39 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5327
SELECT + 60 - - ( - 8 ) + - ( + 6 ) * + - COUNT ( * ) + - - 39 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL 25 * - 35 * SUM( ALL + CAST( - ( + 42 ) AS SIGNED ) )
----
36750

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL 25 * - 35 * SUM ( ALL + CAST ( - ( + 42 ) AS INTEGER ) )
----
36750

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - NULLIF ( COUNT( * ), + - 93 * - COALESCE ( + + ( COALESCE ( 26, + 13 + COUNT( * ), - 11 ) ), + 35 * - COUNT( * ) / - - COUNT( * ) - 27 + 74 * + - ( + ( - 38 ) ), + 25 * + 88 ) + + 3 ) + 99 * ( + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-5329
SELECT - NULLIF ( COUNT ( * ), + - 93 * - COALESCE ( + + ( COALESCE ( 26, + 13 + COUNT ( * ), - 11 ) ), + 35 * - COUNT ( * ) / - - COUNT ( * ) - 27 + 74 * + - ( + ( - 38 ) ), + 25 * + 88 ) + + 3 ) + 99 * ( + COUNT ( * ) )
----
98

query I rowsort
SELECT + 89 * + 9 AS col2
----
801

query I rowsort
SELECT ALL 71 + - + 6 * - 11 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL 83 + - - MAX( + 27 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL 83 + - - MAX ( + 27 ) AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL CAST( - 44 AS SIGNED ) + + 75 * - - CAST( - + 57 AS SIGNED ) AS col2
----
-4319

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL CAST ( - 44 AS INTEGER ) + + 75 * - - CAST ( - + 57 AS INTEGER ) AS col2
----
-4319

query I rowsort
SELECT ALL 35 + - 41 + + 29
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT ALL CAST( NULL AS SIGNED ) / + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL CAST ( NULL AS INTEGER ) / + 53 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 + - 10
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT + CASE - 69 WHEN NULLIF ( 89, + COUNT( * ) * + 68 - + ( 19 ) + - 71 * + 32 ) THEN - 70 ELSE - CAST( NULL AS SIGNED ) * - + 9 - - 70 END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT + CASE - 69 WHEN NULLIF ( 89, + COUNT ( * ) * + 68 - + ( 19 ) + - 71 * + 32 ) THEN - 70 ELSE - CAST ( NULL AS INTEGER ) * - + 9 - - 70 END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL NULLIF ( COUNT( * ), - 77 * - COUNT( * ) ) * 31 - + 34 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL NULLIF ( COUNT ( * ), - 77 * - COUNT ( * ) ) * 31 - + 34 AS col0
----
-3

query I rowsort
SELECT DISTINCT ( - + 32 ) - + 81 + - 55 * 71 + - 50 - + 66
----
-4134

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - 12 - + 38 + + COUNT( * ) * + 60 * 80 * + 69 col2
----
331150

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - 12 - + 38 + + COUNT ( * ) * + 60 * 80 * + 69 col2
----
331150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT DISTINCT + COUNT( * ) * - CASE + 59 WHEN - 29 * - 78 DIV + 23 + 50 + ( + 79 ) + - 27 * COUNT( * ) THEN NULL ELSE - + 44 END DIV 38 + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + COUNT ( * ) * - CASE + 59 WHEN - 29 * - 78 / + 23 + 50 + ( + 79 ) + - 27 * COUNT ( * ) THEN NULL ELSE - + 44 END / 38 + + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( 40, 93 ) AS col2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5343
SELECT ALL - 79 - 3 * + CAST( NULL AS DECIMAL ) + + - 7 + + 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - 79 - 3 * + CAST ( NULL AS REAL ) + + - 7 + + 76 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5344
SELECT COUNT( + CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( + CAST ( NULL AS REAL ) ) AS col2
----
0

query I rowsort
SELECT 36 * - - 50
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT ALL + 27 * + 11 + - ( - - 97 ) + + 77 + - 34 * 4 * + 38 + COUNT( * ) - 27 DIV 98
----
-4890

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL + 27 * + 11 + - ( - - 97 ) + + 77 + - 34 * 4 * + 38 + COUNT ( * ) - 27 / 98
----
-4890

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5347
SELECT 23 + 87 AS col0, + 90 * - CAST( NULL AS DECIMAL ) * + - 95
----
110
NULL

skipif mysql # not compatible
query II rowsort label-5347
SELECT 23 + 87 AS col0, + 90 * - CAST ( NULL AS REAL ) * + - 95
----
110
NULL

query II rowsort
SELECT + ( + 41 ), - 22 AS col0
----
41
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5349
SELECT + 44 * - CAST( NULL AS SIGNED ) + + 33 + + - 16 + - 89 AS col1, MAX( + 26 ) + + + 23 * NULLIF ( - 64, - 64 - - COUNT( * ) )
----
NULL
-1446

skipif mysql # not compatible
query II rowsort label-5349
SELECT + 44 * - CAST ( NULL AS INTEGER ) + + 33 + + - 16 + - 89 AS col1, MAX ( + 26 ) + + + 23 * NULLIF ( - 64, - 64 - - COUNT ( * ) )
----
NULL
-1446

query I rowsort
SELECT 94 * - + 70
----
-6580

query I rowsort
SELECT ALL - 15 + + - 28 * - 35 + - + 36 + - + 86
----
843

query I rowsort
SELECT DISTINCT + 60 + - 5
----
55

query I rowsort
SELECT 84 * + 52 * 20 AS col2
----
87360

query I rowsort
SELECT 19 + + 82
----
101

query II rowsort
SELECT ALL 53 AS col1, ( + - 38 )
----
53
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT 29 + - + CAST( + 68 AS SIGNED ) - + 30 + + NULLIF ( + 53, + ( + 29 ) ) * 80 AS col0
----
4171

skipif mysql # not compatible
query I rowsort label-5356
SELECT 29 + - + CAST ( + 68 AS INTEGER ) - + 30 + + NULLIF ( + 53, + ( + 29 ) ) * 80 AS col0
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT - COALESCE ( 70, + COUNT( * ) + 35 ) + - 4
----
-74

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - COALESCE ( 70, + COUNT ( * ) + 35 ) + - 4
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5358
SELECT - 9, 98 * - CAST( NULL AS SIGNED ) AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5358
SELECT - 9, 98 * - CAST ( NULL AS INTEGER ) AS col2
----
-9
NULL

query I rowsort
SELECT ALL - 43 + - - 19 AS col1
----
-24

query I rowsort
SELECT 19 * - + 26 col1
----
-494

query I rowsort
SELECT 34 * - + 33 AS col2
----
-1122

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT DISTINCT - COALESCE ( + 40, - 89, - - 61 ) DIV + ( 73 ) * - 54 * + - 84 - - 63 * 10 * - 90 * - - 15
----
-850500

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - COALESCE ( + 40, - 89, - - 61 ) / + ( 73 ) * - 54 * + - 84 - - 63 * 10 * - 90 * - - 15
----
-850500

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT DISTINCT 25, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-5363
SELECT DISTINCT 25, COUNT ( * ) AS col0
----
25
1

query I rowsort
SELECT DISTINCT + ( - 49 ) * + 37 * - ( - 96 ) AS col2
----
-174048

query I rowsort
SELECT ALL - 80 - + NULLIF ( NULLIF ( + 95, - 98 ), - 16 + - - 83 * + 22 + ( + + 94 ) - + 2 + 47 ) col0
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5366
SELECT DISTINCT CAST( - 4 AS SIGNED ) * - 94 AS col2, - 72 + - 43 AS col2
----
376
-115

skipif mysql # not compatible
query II rowsort label-5366
SELECT DISTINCT CAST ( - 4 AS INTEGER ) * - 94 AS col2, - 72 + - 43 AS col2
----
376
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT COUNT( * ) AS col2, COUNT( * ) * ( - 90 ) AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-5367
SELECT COUNT ( * ) AS col2, COUNT ( * ) * ( - 90 ) AS col2
----
1
-90

query I rowsort
SELECT 10 * 19
----
190

query I rowsort
SELECT DISTINCT + 21 * - 50
----
-1050

query II rowsort
SELECT + + 58 AS col1, 87 * 20
----
58
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT 89 * + - CAST( - - ( + 0 ) AS SIGNED ) - - 88 + + 46 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-5371
SELECT 89 * + - CAST ( - - ( + 0 ) AS INTEGER ) - - 88 + + 46 AS col1
----
134

query I rowsort
SELECT 81 - 62
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + MAX( 11 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-5373
SELECT + MAX ( 11 ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT ALL - CAST( - - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - CAST ( - - 86 AS INTEGER )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5375
SELECT + CAST( ( - 51 ) AS SIGNED ) AS col0, - NULLIF ( - COUNT( * ), 21 ) + - 60 * - COALESCE ( + 51, + MAX( ALL + 60 ) * - + 39 - + CASE + + COUNT( * ) WHEN 35 THEN - 3 * - - 9 DIV 84 + - 18 ELSE NULL END + + 39 ) + + 35 AS col1
----
-51
3096

skipif mysql # not compatible
query II rowsort label-5375
SELECT + CAST ( ( - 51 ) AS INTEGER ) AS col0, - NULLIF ( - COUNT ( * ), 21 ) + - 60 * - COALESCE ( + 51, + MAX ( ALL + 60 ) * - + 39 - + CASE + + COUNT ( * ) WHEN 35 THEN - 3 * - - 9 / 84 + - 18 ELSE NULL END + + 39 ) + + 35 AS col1
----
-51
3096

query II rowsort
SELECT + 10 AS col2, - 15 - + - 65
----
10
50

query I rowsort
SELECT + 40 * - NULLIF ( 91, - + 68 ) AS col0
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5378
SELECT - 49 DIV - CAST( + - NULLIF ( - + 2, - - 1 - 46 ) AS SIGNED ) - + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 49 / - CAST ( + - NULLIF ( - + 2, - - 1 - 46 ) AS INTEGER ) - + COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL + 98 * - 14 col0
----
-1372

query I rowsort
SELECT + 42 * - 59 + - + 52 * 62 * + 67
----
-218486

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT + 54 * - - 59 * - CASE + 53 WHEN - - ( + ( COUNT( DISTINCT - 75 ) ) ) * + 94 - 44 * - 59 THEN - COUNT( * ) ELSE - + 75 END AS col2
----
238950

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + 54 * - - 59 * - CASE + 53 WHEN - - ( + ( COUNT ( DISTINCT - 75 ) ) ) * + 94 - 44 * - 59 THEN - COUNT ( * ) ELSE - + 75 END AS col2
----
238950

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT DISTINCT - ( + 74 ) DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT - ( + 74 ) / - 64
----
1

query I rowsort
SELECT 77 * + 90 AS col0
----
6930

query I rowsort
SELECT ALL 43 + 3
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5385
SELECT NULLIF ( - 4, - MIN( - 10 ) ) - - 17 * + - COUNT( * ) * + - ( + + ( - - 21 ) ) + 1, CAST( NULL AS SIGNED ) AS col0
----
354
NULL

skipif mysql # not compatible
query II rowsort label-5385
SELECT NULLIF ( - 4, - MIN ( - 10 ) ) - - 17 * + - COUNT ( * ) * + - ( + + ( - - 21 ) ) + 1, CAST ( NULL AS INTEGER ) AS col0
----
354
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5386
SELECT ALL 7 + - 77 + + + CASE + 2 WHEN + 57 + - 19 THEN - CAST( - 40 AS SIGNED ) * - 69 * ( - ( + 70 ) ) DIV + AVG ( DISTINCT - + 54 ) DIV + - 37 - + - COALESCE ( - - 97, + 63 + + 61 ) + 48 WHEN 60 THEN 91 + - 4 * - 7 ELSE + 95 * COUNT( * ) + 80 END
----
105

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL 7 + - 77 + + + CASE + 2 WHEN + 57 + - 19 THEN - CAST ( - 40 AS INTEGER ) * - 69 * ( - ( + 70 ) ) / + AVG ( DISTINCT - + 54 ) / + - 37 - + - COALESCE ( - - 97, + 63 + + 61 ) + 48 WHEN 60 THEN 91 + - 4 * - 7 ELSE + 95 * COUNT ( * ) + 80 END
----
105

query I rowsort
SELECT DISTINCT + 66 + - 50 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL - CAST( NULL AS SIGNED ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - 71 - - - MIN( - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-5389
SELECT - 71 - - - MIN ( - + 72 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT ALL - 21 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - 21 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT + 42 + - 81 DIV + + ( 18 ) + - 68 + 8 - SUM( DISTINCT + + 59 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 42 + - 81 / + + ( 18 ) + - 68 + 8 - SUM ( DISTINCT + + 59 ) AS col1
----
-81

query I rowsort
SELECT - 47 - - 6 * 94
----
517

query I rowsort
SELECT ALL - NULLIF ( + 58, + - 90 * - NULLIF ( 92, - + ( - COALESCE ( + 6, + + 81 * + + 52 ) ) ) - NULLIF ( - + 84, - ( 32 ) ) + 11 ) * + 44 AS col1
----
-2552

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT + 18 + + 60 AS col1, CASE + - 57 WHEN 28 THEN NULL WHEN - 11 THEN NULL ELSE 84 END * - CASE - + 32 WHEN - 93 * 44 THEN 44 END / COUNT( * ) + - 86 * - + 24 + - - 61
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5394
SELECT + 18 + + 60 AS col1, CASE + - 57 WHEN 28 THEN NULL WHEN - 11 THEN NULL ELSE 84 END * - CASE - + 32 WHEN - 93 * 44 THEN 44 END / COUNT ( * ) + - 86 * - + 24 + - - 61
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL + 49 - + COUNT( + - 51 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + 49 - + COUNT ( + - 51 ) AS col2
----
48

query I rowsort
SELECT - 94 * + + 89
----
-8366

query I rowsort
SELECT - 17 * - NULLIF ( + 9, - + 9 )
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT NULLIF ( + 23, + + 25 + CAST( 70 AS SIGNED ) + + 94 * - 99 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT NULLIF ( + 23, + + 25 + CAST ( 70 AS INTEGER ) + + 94 * - 99 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5399
SELECT - CAST( NULL AS DECIMAL ) + + 20 + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT - CAST ( NULL AS REAL ) + + 20 + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5400
SELECT ALL + 92 - - - ( + CASE CAST( NULL AS SIGNED ) WHEN - NULLIF ( - CAST( - 42 AS SIGNED ), 55 * + 62 - - ( - 78 ) * - 42 + - 79 + + 4 + - - COUNT( * ) * 29 * - 54 ) THEN NULL ELSE COALESCE ( - - 40, MAX( ALL 32 ), - 51 DIV 62 ) * + MIN( ALL 61 ) END ) + 80
----
-2268

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + 92 - - - ( + CASE CAST ( NULL AS INTEGER ) WHEN - NULLIF ( - CAST ( - 42 AS INTEGER ), 55 * + 62 - - ( - 78 ) * - 42 + - 79 + + 4 + - - COUNT ( * ) * 29 * - 54 ) THEN NULL ELSE COALESCE ( - - 40, MAX ( ALL 32 ), - 51 / 62 ) * + MIN ( ALL 61 ) END ) + 80
----
-2268

query I rowsort
SELECT ALL - - 53 * + 43 AS col0
----
2279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT - + COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5402
SELECT - + COUNT ( * ) / COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5403
SELECT DISTINCT - - 36 DIV - - 83 AS col0, + 5 AS col1
----
0
5

skipif mysql # not compatible
query II rowsort label-5403
SELECT DISTINCT - - 36 / - - 83 AS col0, + 5 AS col1
----
0
5

query I rowsort
SELECT - - 73 * + 68 + - - 71
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL + + SUM( - 62 ) * CASE - - 34 WHEN - 0 + - + AVG ( DISTINCT 15 ) THEN NULL WHEN - 54 THEN NULL WHEN - - 29 * + 88 THEN + 62 END * + 22 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + + SUM ( - 62 ) * CASE - - 34 WHEN - 0 + - + AVG ( DISTINCT 15 ) THEN NULL WHEN - 54 THEN NULL WHEN - - 29 * + 88 THEN + 62 END * + 22 + + 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT - 36 DIV - 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 36 / - 29 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), - - 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5407
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), - - 30 ) AS col0
----
30

query I rowsort
SELECT + - 82 + + - 83 - - 93
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - SUM( ALL - - 99 ) * NULLIF ( - + 40, 90 ) * + 88 AS col0
----
348480

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - SUM ( ALL - - 99 ) * NULLIF ( - + 40, 90 ) * + 88 AS col0
----
348480

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT + NULLIF ( - + COUNT( * ), - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), - 96 )
----
-1

query I rowsort
SELECT - + 5 * - 21 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT - 29 * + 77 + 45 + 82 + NULLIF ( + COUNT( * ), - 4 + + 51 ) * - 25 * + 76
----
-4006

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - 29 * + 77 + 45 + 82 + NULLIF ( + COUNT ( * ), - 4 + + 51 ) * - 25 * + 76
----
-4006

query I rowsort
SELECT - NULLIF ( - 5, + + 70 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5414
SELECT - 28 * + - COUNT( * ) + - 50 AS col2, 29 AS col0
----
-22
29

skipif mysql # not compatible
query II rowsort label-5414
SELECT - 28 * + - COUNT ( * ) + - 50 AS col2, 29 AS col0
----
-22
29

query I rowsort
SELECT + 96 * + 39 AS col0
----
3744

query I rowsort
SELECT ALL 2 * 92
----
184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5417
SELECT MIN( ALL + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT MIN ( ALL + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT MIN( NULLIF ( 29, + 95 ) ) col1
----
29

skipif mysql # not compatible
query I rowsort label-5418
SELECT MIN ( NULLIF ( 29, + 95 ) ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - 35 * - + 59 * - 61 + - MIN( ALL + 79 ) AS col0
----
-126044

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - 35 * - + 59 * - 61 + - MIN ( ALL + 79 ) AS col0
----
-126044

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + COUNT( DISTINCT 40 )
----
1

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + COUNT ( DISTINCT 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + 2 + + + NULLIF ( - 54, MIN( DISTINCT ( + 87 ) ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 2 + + + NULLIF ( - 54, MIN ( DISTINCT ( + 87 ) ) ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT + 60 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 60 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL 60 * + CASE 83 WHEN - 67 THEN + - 70 WHEN + + 9 * + 41 + COALESCE ( + + COALESCE ( + 62, MIN( - 70 ), - NULLIF ( - - 25, - CAST( + 18 AS SIGNED ) ) ), - - 45 * + CAST( NULL AS SIGNED ) * + + NULLIF ( + COUNT( * ), - COALESCE ( 26, 3 ) + 25 ) * 3 ) THEN NULL END * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL 60 * + CASE 83 WHEN - 67 THEN + - 70 WHEN + + 9 * + 41 + COALESCE ( + + COALESCE ( + 62, MIN ( - 70 ), - NULLIF ( - - 25, - CAST ( + 18 AS INTEGER ) ) ), - - 45 * + CAST ( NULL AS INTEGER ) * + + NULLIF ( + COUNT ( * ), - COALESCE ( 26, 3 ) + 25 ) * 3 ) THEN NULL END * 78
----
NULL

query I rowsort
SELECT - CASE - 19 WHEN 24 THEN NULL WHEN + + 54 * 48 THEN 8 / - + 1 ELSE NULL END
----
NULL

query II rowsort
SELECT - 24 + - ( + 18 ) + - 72 * - 19 AS col2, 62
----
1326
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL COUNT( DISTINCT 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL COUNT ( DISTINCT 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT - COALESCE ( COALESCE ( + + 0, - 51 ), - 92 + + 4 + CASE + - 90 WHEN - - 76 THEN 18 WHEN - + 7 / - 90 THEN + - COUNT( * ) ELSE NULL END + - 37 * 97 * - COUNT( * ) ) + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5427
SELECT - COALESCE ( COALESCE ( + + 0, - 51 ), - 92 + + 4 + CASE + - 90 WHEN - - 76 THEN 18 WHEN - + 7 / - 90 THEN + - COUNT ( * ) ELSE NULL END + - 37 * 97 * - COUNT ( * ) ) + 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL COUNT( 8 )
----
1

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL COUNT ( 8 )
----
1

query I rowsort
SELECT + 71 * - 37 col0
----
-2627

query I rowsort
SELECT ALL NULLIF ( - ( - 78 ), - 62 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5431
SELECT DISTINCT CASE + COALESCE ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + MIN( + 74 ) ) WHEN + MIN( + 77 ) THEN + CAST( NULL AS SIGNED ) * + 6 WHEN - 90 + - 0 + - 65 THEN NULL END AS col1, + ( + - 81 ) * + COALESCE ( + - 66, CAST( NULL AS SIGNED ), - + 54 * - SUM( 23 ) ) + COUNT( - 40 ) AS col2
----
NULL
5347

skipif mysql # not compatible
query II rowsort label-5431
SELECT DISTINCT CASE + COALESCE ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + MIN ( + 74 ) ) WHEN + MIN ( + 77 ) THEN + CAST ( NULL AS INTEGER ) * + 6 WHEN - 90 + - 0 + - 65 THEN NULL END AS col1, + ( + - 81 ) * + COALESCE ( + - 66, CAST ( NULL AS INTEGER ), - + 54 * - SUM ( 23 ) ) + COUNT ( - 40 ) AS col2
----
NULL
5347

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT - 81 * + ( + - 44 ) AS col0, + COUNT( * )
----
3564
1

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT - 81 * + ( + - 44 ) AS col0, + COUNT ( * )
----
3564
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT - CAST( - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5433
SELECT - CAST ( - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5434
SELECT ALL - 83 AS col1, - CAST( - - 67 AS SIGNED ) AS col0
----
-83
-67

skipif mysql # not compatible
query II rowsort label-5434
SELECT ALL - 83 AS col1, - CAST ( - - 67 AS INTEGER ) AS col0
----
-83
-67

query I rowsort
SELECT - + 77 * - 58 col1
----
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL + 72 * + MAX( 23 ) * 62 + - - 55 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + 72 * + MAX ( 23 ) * 62 + - - 55 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 88 AS col0, + 95 - + + 51 + 92
----
88
136

query I rowsort
SELECT DISTINCT - 39 * - 61 AS col0
----
2379

query I rowsort
SELECT ALL - + 58 * + + 66
----
-3828

query I rowsort
SELECT - ( + 64 ) * + 50 col0
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT DISTINCT ( + COUNT( * ) ) / + - NULLIF ( - + 44, 44 ) + + 10 - - 76 + + CASE + COUNT( * ) WHEN 60 THEN - + COUNT( * ) WHEN + 62 + 28 + - + 75 * + COUNT( * ) + + 84 + + COUNT( * ) - 16 * 39 * + 19 * - 2 - CAST( NULL AS SIGNED ) THEN + 51 * 17 WHEN CAST( 53 AS SIGNED ) THEN NULL END * - NULLIF ( 90 + 30 * 97, 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT ( + COUNT ( * ) ) / + - NULLIF ( - + 44, 44 ) + + 10 - - 76 + + CASE + COUNT ( * ) WHEN 60 THEN - + COUNT ( * ) WHEN + 62 + 28 + - + 75 * + COUNT ( * ) + + 84 + + COUNT ( * ) - 16 * 39 * + 19 * - 2 - CAST ( NULL AS INTEGER ) THEN + 51 * 17 WHEN CAST ( 53 AS INTEGER ) THEN NULL END * - NULLIF ( 90 + 30 * 97, 31 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT ALL + NULLIF ( - COALESCE ( - + 4, + 46 + + 27 DIV 75 * 44 * + COUNT( * ) ), - 97 )
----
4

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + NULLIF ( - COALESCE ( - + 4, + 46 + + 27 / 75 * 44 * + COUNT ( * ) ), - 97 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL + 39 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + 39 / - 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT DISTINCT 16 DIV - MIN( ALL + 37 ) * + NULLIF ( - + SUM( + 84 ), 18 ) + - 34 + + + 28
----
-6

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT 16 / - MIN ( ALL + 37 ) * + NULLIF ( - + SUM ( + 84 ), 18 ) + - 34 + + + 28
----
-6

query I rowsort
SELECT ALL + + ( ( + 73 ) )
----
73

query I rowsort
SELECT DISTINCT + 6 * + + 20 * ( + 70 ) AS col2
----
8400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL + ( - COUNT( * ) ) / 70 + + 39 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL + ( - COUNT ( * ) ) / 70 + + 39 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT + 24 DIV + 12 + - CAST( + 93 AS SIGNED ) DIV - 83
----
3

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + 24 / + 12 + - CAST ( + 93 AS INTEGER ) / - 83
----
3

query I rowsort
SELECT + 70 * - 65 + - + ( + 71 ) + + 20 * - 59 * 71
----
-88401

query I rowsort
SELECT DISTINCT + ( + + 46 ) * + 31 AS col2
----
1426

query I rowsort
SELECT - 55 + - 19 * - 16 AS col0
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT - COUNT( * ) * ( 51 ) DIV + ( 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - COUNT ( * ) * ( 51 ) / + ( 88 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL + CAST( + 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + CAST ( + 84 AS INTEGER ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT ALL + 7 DIV + 93 * 27 + 36 + - 14 * + + 70 + + - ( - - 13 )
----
-957

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + 7 / + 93 * 27 + 36 + - 14 * + + 70 + + - ( - - 13 )
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - SUM( - 80 ) * 75 AS col0
----
6000

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - SUM ( - 80 ) * 75 AS col0
----
6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT ALL CAST( + 75 AS SIGNED ) + MIN( ALL - - 89 ) + - + ( 89 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL CAST ( + 75 AS INTEGER ) + MIN ( ALL - - 89 ) + - + ( 89 ) AS col1
----
75

query I rowsort
SELECT DISTINCT - 39 * 28
----
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5458
SELECT ALL - CAST( + - 67 AS SIGNED ) AS col1, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL - CAST ( + - 67 AS INTEGER ) AS col1, - COUNT ( * )
----
67
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT ALL - 93, + 20 DIV - + 10 + - + 59 + - 52 AS col2
----
-93
-113

skipif mysql # not compatible
query II rowsort label-5459
SELECT ALL - 93, + 20 / - + 10 + - + 59 + - 52 AS col2
----
-93
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT - CASE + 37 WHEN + AVG ( DISTINCT + 85 ) / + + ( + + 19 ) - + 86 * - NULLIF ( ( + 81 ), - CASE + 85 WHEN + ( + 44 ) / - COUNT( * ) THEN + 78 ELSE + - 65 + 30 END ) * - + CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) THEN 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT - CASE + 37 WHEN + AVG ( DISTINCT + 85 ) / + + ( + + 19 ) - + 86 * - NULLIF ( ( + 81 ), - CASE + 85 WHEN + ( + 44 ) / - COUNT ( * ) THEN + 78 ELSE + - 65 + 30 END ) * - + CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) THEN 21 ELSE NULL END
----
NULL

query I rowsort
SELECT 9 + - 0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT 72 AS col0, - MIN( ALL - 46 )
----
72
46

skipif mysql # not compatible
query II rowsort label-5462
SELECT 72 AS col0, - MIN ( ALL - 46 )
----
72
46

query II rowsort
SELECT - 18 AS col1, 50 * 87
----
-18
4350

query I rowsort
SELECT 85 * + 60 - + 84 AS col1
----
5016

query I rowsort
SELECT COALESCE ( + - 88, ( + 64 ) - - 19 * - 74 ) + - 42
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT DISTINCT 0 * ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT 0 * ( + - COUNT ( * ) )
----
0

query II rowsort
SELECT - 29 AS col2, 10
----
-29
10

query I rowsort
SELECT ( 77 ) * + - 61
----
-4697

query I rowsort
SELECT DISTINCT - 43 * + 23 * + + 26
----
-25714

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - COUNT( * ) + - 61 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5470
SELECT - COUNT ( * ) + - 61 AS col1
----
-62

query I rowsort
SELECT DISTINCT 58 + + - 42
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL - 60 + - ( CAST( NULL AS SIGNED ) ) + - - CASE 56 WHEN - - 93 THEN - + 75 * + - 24 * COUNT( * ) + - - 92 - 88 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - 60 + - ( CAST ( NULL AS INTEGER ) ) + - - CASE 56 WHEN - - 93 THEN - + 75 * + - 24 * COUNT ( * ) + - - 92 - 88 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5473
SELECT ALL CAST( NULL AS SIGNED ), + 49 * - + 4 col0
----
NULL
-196

skipif mysql # not compatible
query II rowsort label-5473
SELECT ALL CAST ( NULL AS INTEGER ), + 49 * - + 4 col0
----
NULL
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - 91 + - 30 + COUNT( + 53 ) * + COUNT( * ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - 91 + - 30 + COUNT ( + 53 ) * + COUNT ( * ) AS col1
----
-120

query I rowsort
SELECT + 46 + + 82
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT + 59 + + + MIN( + 56 ) - + 45 * 49 * + 71 col1, - COUNT( * ) * + - ( + 62 ) + - 47 AS col1
----
-156440
15

skipif mysql # not compatible
query II rowsort label-5476
SELECT + 59 + + + MIN ( + 56 ) - + 45 * 49 * + 71 col1, - COUNT ( * ) * + - ( + 62 ) + - 47 AS col1
----
-156440
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + COUNT( DISTINCT 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5477
SELECT + COUNT ( DISTINCT 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT - 35 DIV + - COUNT( * ) - + 19 + 56 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 35 / + - COUNT ( * ) - + 19 + 56 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL - + 18 + NULLIF ( 48, + + COALESCE ( - 11, - + 26 ) ) + + CASE 12 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN 60 ELSE NULL END * - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - + 18 + NULLIF ( 48, + + COALESCE ( - 11, - + 26 ) ) + + CASE 12 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN 60 ELSE NULL END * - 16 AS col0
----
NULL

query I rowsort
SELECT - 26 * 60
----
-1560

query II rowsort
SELECT - ( - 55 ), + 12 AS col2
----
55
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + - MAX( ALL - 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-5482
SELECT + - MAX ( ALL - 27 ) col2
----
27

query I rowsort
SELECT + 9 + - 53 + 72 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT ALL + - CAST( NULL AS SIGNED ) - 69 * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + - CAST ( NULL AS INTEGER ) - 69 * - 19 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 79 - - + 9 + + 33
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5486
SELECT 19 + - 79 - - 86 DIV ( COALESCE ( - 44, + 65 * + 7 DIV - 21 * - - COUNT( * ) * + - 65 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-5486
SELECT 19 + - 79 - - 86 / ( COALESCE ( - 44, + 65 * + 7 / - 21 * - - COUNT ( * ) * + - 65 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL COALESCE ( + 54, - 46 * + COUNT( * ) + + 83, + + ( - - 36 ) ) - - 16 + - MAX( + + ( - - 76 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL COALESCE ( + 54, - 46 * + COUNT ( * ) + + 83, + + ( - - 36 ) ) - - 16 + - MAX ( + + ( - - 76 ) )
----
-6

query I rowsort
SELECT DISTINCT + ( 95 ) * + + 9 * + 59
----
50445

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - MAX( 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - MAX ( 62 )
----
-62

query I rowsort
SELECT 18 * + 78 col1
----
1404

query I rowsort
SELECT 89 * - + 69 + + 12
----
-6129

query II rowsort
SELECT ALL - 53 * + 36 AS col0, 23 + 60
----
-1908
83

query I rowsort
SELECT 28 * + + 90 AS col2
----
2520

query I rowsort
SELECT ALL + 90 * 25
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT 34 + MIN( ( 52 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5495
SELECT 34 + MIN ( ( 52 ) )
----
86

query I rowsort
SELECT DISTINCT + 81 * 28
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT 47 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT 47 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 53 * - 49
----
-2597

query I rowsort
SELECT ALL + ( - 84 ) * + 48
----
-4032

query I rowsort
SELECT 69 + - - 82
----
151

query I rowsort
SELECT 43 * + 29
----
1247

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT + 50 + - + 42, + COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-5502
SELECT + 50 + - + 42, + COUNT ( * ) AS col0
----
8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL + CASE WHEN 73 >= 6 THEN 50 ELSE NULL END + COALESCE ( + 2, - - 4 * + 86 - + + CASE CAST( NULL AS SIGNED ) WHEN + - 4 * - NULLIF ( - 93, 58 * + 99 * COUNT( * ) ) + - 63 + - CAST( - 53 AS SIGNED ) THEN - - COUNT( * ) ELSE ( 55 ) + 16 END )
----
52

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + CASE WHEN 73 >= 6 THEN 50 ELSE NULL END + COALESCE ( + 2, - - 4 * + 86 - + + CASE CAST ( NULL AS INTEGER ) WHEN + - 4 * - NULLIF ( - 93, 58 * + 99 * COUNT ( * ) ) + - 63 + - CAST ( - 53 AS INTEGER ) THEN - - COUNT ( * ) ELSE ( 55 ) + 16 END )
----
52

query I rowsort
SELECT - 16 * + 87
----
-1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT - - CAST( - 82 AS SIGNED ) AS col0, + ( COUNT( * ) ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-5505
SELECT - - CAST ( - 82 AS INTEGER ) AS col0, + ( COUNT ( * ) ) AS col2
----
-82
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5506
SELECT DISTINCT + 61 + - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + 61 + - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT - 43 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT - 43 / - 51 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL - + 74 + 7 + CAST( NULL AS SIGNED ) + + + 2 / + + 37 * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL - + 74 + 7 + CAST ( NULL AS INTEGER ) + + + 2 / + + 37 * + 37 AS col2
----
NULL

query I rowsort
SELECT + 52 * - 55 * - + 1 * + 25 AS col1
----
71500

query I rowsort
SELECT ALL + 37 * + 85
----
3145

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT + 10 + - 84 DIV 21
----
6

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 10 + - 84 / 21
----
6

query I rowsort
SELECT + 19 * + + 94 AS col0
----
1786

query I rowsort
SELECT ALL + 87 - - - ( - - 20 ) * - - 24
----
-393

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ( - 21 ) * + - COUNT( * ) - + + ( + 74 )
----
-53

skipif mysql # not compatible
query I rowsort label-5514
SELECT ( - 21 ) * + - COUNT ( * ) - + + ( + 74 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL + - ( + 86 ) * 23 - 94 + + 1 + 36 * + COUNT( * ) * 70 * 1 * 83 + 28 AS col0
----
207117

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + - ( + 86 ) * 23 - 94 + + 1 + 36 * + COUNT ( * ) * 70 * 1 * 83 + 28 AS col0
----
207117

onlyif mysql # DIV for integer division: 
query II rowsort label-5516
SELECT - 53 * - COALESCE ( - - 99, + 30 DIV - ( 40 ) ) + + + ( - 85 ) * + - 3 + + 70 DIV 43 AS col1, + 8
----
5503
8

skipif mysql # not compatible
query II rowsort label-5516
SELECT - 53 * - COALESCE ( - - 99, + 30 / - ( 40 ) ) + + + ( - 85 ) * + - 3 + + 70 / 43 AS col1, + 8
----
5503
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT + COUNT( * ) * 20 DIV + 75 * - 92 * - 88 * + COUNT( + 42 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT + COUNT ( * ) * 20 / + 75 * - 92 * - 88 * + COUNT ( + 42 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL ( + - CAST( COUNT( * ) AS SIGNED ) ) * - 26 * COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * - 26 * COUNT ( * ) col0
----
26

query I rowsort
SELECT + 43 * + + 81
----
3483

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT COALESCE ( - - 95, - COUNT( - + 42 ) ) * - 73 - - COALESCE ( + 18, - COALESCE ( - - SUM( + + 64 ), - - 83 ) ) - - ( + 91 ), - 33 + + 75 * + 99 AS col1
----
-6826
7392

skipif mysql # not compatible
query II rowsort label-5520
SELECT COALESCE ( - - 95, - COUNT ( - + 42 ) ) * - 73 - - COALESCE ( + 18, - COALESCE ( - - SUM ( + + 64 ), - - 83 ) ) - - ( + 91 ), - 33 + + 75 * + 99 AS col1
----
-6826
7392

query I rowsort
SELECT ALL 89 * + 1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT + 95 * - COUNT( * ) * - - 82
----
-7790

skipif mysql # not compatible
query I rowsort label-5522
SELECT + 95 * - COUNT ( * ) * - - 82
----
-7790

query I rowsort
SELECT - 1 * - 36 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT 3 * 29 * CAST( NULL AS SIGNED ) * - - 69 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT 3 * 29 * CAST ( NULL AS INTEGER ) * - - 69 + - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT ALL - 31 DIV COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - 31 / COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT - 65 * + + 26 * - 18 AS col2
----
30420

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT - 22 DIV + + 32
----
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - 22 / + + 32
----
0

query II rowsort
SELECT DISTINCT + 95 AS col0, 69 AS col2
----
95
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + NULLIF ( + - 43, COUNT( * ) + + 48 + - - MAX( + + CASE 98 WHEN + + COALESCE ( - 29, + 79 / - - 11 * 49 ) * + 75 THEN 0 * + + 65 WHEN - ( - - 57 ) THEN NULL END ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5529
SELECT + NULLIF ( + - 43, COUNT ( * ) + + 48 + - - MAX ( + + CASE 98 WHEN + + COALESCE ( - 29, + 79 / - - 11 * 49 ) * + 75 THEN 0 * + + 65 WHEN - ( - - 57 ) THEN NULL END ) ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT ALL - 31 DIV + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 31 / + COUNT ( * )
----
-31

query I rowsort
SELECT - 35 * - 89 AS col0
----
3115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5532
SELECT - CAST( NULL AS SIGNED ) * + CASE - CAST( + 84 AS SIGNED ) WHEN + - 43 + - + 18 THEN COUNT( DISTINCT + - 75 ) WHEN COALESCE ( + + 45, COALESCE ( 35, 14, + CASE - COUNT( * ) WHEN - 85 THEN - 47 - - CASE - 23 WHEN 79 THEN + COUNT( * ) WHEN + ( + + 90 ) THEN - COUNT( * ) WHEN + 65 THEN NULL ELSE NULL END + + 70 WHEN + 81 * + 49 THEN + MIN( DISTINCT 26 ) END - + NULLIF ( - COUNT( * ), 34 ) ) / - 83, 67 ) / + 6 THEN 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT - CAST ( NULL AS INTEGER ) * + CASE - CAST ( + 84 AS INTEGER ) WHEN + - 43 + - + 18 THEN COUNT ( DISTINCT + - 75 ) WHEN COALESCE ( + + 45, COALESCE ( 35, 14, + CASE - COUNT ( * ) WHEN - 85 THEN - 47 - - CASE - 23 WHEN 79 THEN + COUNT ( * ) WHEN + ( + + 90 ) THEN - COUNT ( * ) WHEN + 65 THEN NULL ELSE NULL END + + 70 WHEN + 81 * + 49 THEN + MIN ( DISTINCT 26 ) END - + NULLIF ( - COUNT ( * ), 34 ) ) / - 83, 67 ) / + 6 THEN 24 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 13 * 17 + - COALESCE ( - 47, 58, + - 33 ) AS col2
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT CASE - 6 WHEN - + 49 * - COALESCE ( + 35, + COALESCE ( + 80, - + 36, 42 * MAX( ALL 82 ) ) ) THEN NULL ELSE + - 86 * + 86 END
----
-7396

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT CASE - 6 WHEN - + 49 * - COALESCE ( + 35, + COALESCE ( + 80, - + 36, 42 * MAX ( ALL 82 ) ) ) THEN NULL ELSE + - 86 * + 86 END
----
-7396

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + - 39 * + COUNT( * ) * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + - 39 * + COUNT ( * ) * + COUNT ( * )
----
-39

query I rowsort
SELECT ALL + + 22 + 66
----
88

query II rowsort
SELECT - - 63 + ( + 41 ) AS col0, 97 AS col0
----
104
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL + + COUNT( * ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + + COUNT ( * ) + - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - MIN( - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5539
SELECT - MIN ( - 13 ) AS col2
----
13

query I rowsort
SELECT - - 77 + 87
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - - MAX( DISTINCT - 48 ) - 55 + + 91 - + COUNT( * ) * - 47 + + CASE 66 WHEN - - 26 THEN + 24 END * + 8 + - CASE - 87 WHEN 44 THEN - - 89 + AVG ( DISTINCT + 54 ) WHEN 81 THEN NULL END / - 90 - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT - - MAX ( DISTINCT - 48 ) - 55 + + 91 - + COUNT ( * ) * - 47 + + CASE 66 WHEN - - 26 THEN + 24 END * + 8 + - CASE - 87 WHEN 44 THEN - - 89 + AVG ( DISTINCT + 54 ) WHEN 81 THEN NULL END / - 90 - - 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), - 55 - - + COUNT( * ) / + + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), - 55 - - + COUNT ( * ) / + + 15 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT - + CAST( NULL AS SIGNED ) + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT - + CAST ( NULL AS INTEGER ) + + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT + 64 - 0 * - 54 * + - ( + 26 ) * - 76 + + ( - ( 60 ) ) + + 22 + - COUNT( ALL - 31 ) + - + 22 + + + 81 * NULLIF ( SUM( 82 ), + ( + 70 ) ) * + + ( + 90 ) * - - COUNT( * ) + 75 + + 76 * + NULLIF ( 52 * + CAST( NULL AS SIGNED ) + - 67, 81 ) + 27 * 15 * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 64 - 0 * - 54 * + - ( + 26 ) * - 76 + + ( - ( 60 ) ) + + 22 + - COUNT ( ALL - 31 ) + - + 22 + + + 81 * NULLIF ( SUM ( 82 ), + ( + 70 ) ) * + + ( + 90 ) * - - COUNT ( * ) + 75 + + 76 * + NULLIF ( 52 * + CAST ( NULL AS INTEGER ) + - 67, 81 ) + 27 * 15 * 86 AS col1
----
NULL

query I rowsort
SELECT + 77 + + + 6
----
83

query I rowsort
SELECT ALL - 17 - - 63
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT + CASE - ( - 84 ) WHEN 57 THEN NULL ELSE + 5 DIV COUNT( DISTINCT - + 20 ) END * - + 77 AS col1
----
-385

skipif mysql # not compatible
query I rowsort label-5547
SELECT + CASE - ( - 84 ) WHEN 57 THEN NULL ELSE + 5 / COUNT ( DISTINCT - + 20 ) END * - + 77 AS col1
----
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-5548
SELECT - + 11 AS col1, + ( + 82 ) * + 39 * - - ( MAX( + ( + 12 ) ) ) + 74 * - 34 AS col0
----
-11
35860

skipif mysql # not compatible
query II rowsort label-5548
SELECT - + 11 AS col1, + ( + 82 ) * + 39 * - - ( MAX ( + ( + 12 ) ) ) + 74 * - 34 AS col0
----
-11
35860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5549
SELECT ALL 74 * + ( + COUNT( * ) ) - 12 + 31 DIV + ( + 48 )
----
62

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 74 * + ( + COUNT ( * ) ) - 12 + 31 / + ( + 48 )
----
62

query I rowsort
SELECT ALL - 56 - - + 78 * - 51 AS col0
----
-4034

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + + COUNT( * ) * 28 * - COUNT( 22 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5551
SELECT + + COUNT ( * ) * 28 * - COUNT ( 22 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT + CAST( 83 AS SIGNED ) + + 86
----
169

skipif mysql # not compatible
query I rowsort label-5552
SELECT + CAST ( 83 AS INTEGER ) + + 86
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT MAX( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5553
SELECT MAX ( 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL + CAST( + CASE + 85 WHEN + + 83 THEN NULL WHEN - 67 THEN NULL ELSE MAX( - 58 ) END AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + CAST ( + CASE + 85 WHEN + + 83 THEN NULL WHEN - 67 THEN NULL ELSE MAX ( - 58 ) END AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - 43 + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 43 + + COUNT ( * )
----
-42

query I rowsort
SELECT - 19 * - - 56 AS col0
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT CASE 59 WHEN - 6 THEN NULL ELSE - 26 * COUNT( * ) + + 31 END * - - 55 + + - 13 + - ( - + 41 ) * + 42
----
1984

skipif mysql # not compatible
query I rowsort label-5557
SELECT CASE 59 WHEN - 6 THEN NULL ELSE - 26 * COUNT ( * ) + + 31 END * - - 55 + + - 13 + - ( - + 41 ) * + 42
----
1984

query I rowsort
SELECT + NULLIF ( 58, - - 48 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT + COUNT( * ) DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT + COUNT ( * ) / - + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT + NULLIF ( + 50, MAX( - 7 ) * - CAST( NULL AS SIGNED ) * + - 62 )
----
50

skipif mysql # not compatible
query I rowsort label-5560
SELECT + NULLIF ( + 50, MAX ( - 7 ) * - CAST ( NULL AS INTEGER ) * + - 62 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT + 24 * 97 DIV + - 59
----
-39

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 24 * 97 / + - 59
----
-39

query II rowsort
SELECT ALL 36 * + 94 AS col0, + 34 AS col0
----
3384
34

query I rowsort
SELECT ( + ( - 73 ) )
----
-73

query I rowsort
SELECT ALL - ( + - 90 ) * - - 57 - - 89 + + COALESCE ( - 77, + - 89 * + 82 * + 73 + 30 ) AS col2
----
5142

query II rowsort
SELECT + 53 * + 96, - 40 * - - 53 AS col0
----
5088
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT + 12 - - SUM( ALL - 99 ) * + 59 col0
----
-5829

skipif mysql # not compatible
query I rowsort label-5566
SELECT + 12 - - SUM ( ALL - 99 ) * + 59 col0
----
-5829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT + CAST( - + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( - + 3 AS INTEGER )
----
-3

query I rowsort
SELECT + 88 - + 90 AS col1
----
-2

query I rowsort
SELECT CASE + 62 WHEN - 0 THEN NULL WHEN + - 15 THEN NULL ELSE 83 * - + 29 END AS col2
----
-2407

query I rowsort
SELECT 63 * - COALESCE ( 73, + 81 ) + + 22
----
-4577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT ALL NULLIF ( - + 40, + 52 ) * 38 * - 93 * + MAX( - 1 ) + 26 - 49 + + - 64 + 86 DIV - - SUM( - 67 ) AS col0
----
-141448

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL NULLIF ( - + 40, + 52 ) * 38 * - 93 * + MAX ( - 1 ) + 26 - 49 + + - 64 + 86 / - - SUM ( - 67 ) AS col0
----
-141448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT - CAST( + ( + 44 ) AS SIGNED ) + + 83 + - MAX( - + NULLIF ( + 12, - 98 + + - NULLIF ( + 63, + 0 * + + CAST( NULL AS SIGNED ) ) ) ) - + + 56 * + ( COUNT( + 60 ) ) * ( - 9 ) * + ( + + 19 )
----
9627

skipif mysql # not compatible
query I rowsort label-5572
SELECT - CAST ( + ( + 44 ) AS INTEGER ) + + 83 + - MAX ( - + NULLIF ( + 12, - 98 + + - NULLIF ( + 63, + 0 * + + CAST ( NULL AS INTEGER ) ) ) ) - + + 56 * + ( COUNT ( + 60 ) ) * ( - 9 ) * + ( + + 19 )
----
9627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5573
SELECT DISTINCT 9 * - 96 + + - CAST( - - ( + - COUNT( - 96 ) ) AS SIGNED ) * + + 27
----
-837

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT 9 * - 96 + + - CAST ( - - ( + - COUNT ( - 96 ) ) AS INTEGER ) * + + 27
----
-837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT + 89 * - 35 / - 47 - 17 * - CASE + 52 WHEN + - 7 * - 61 + - - 46 THEN 88 WHEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + + 43 * - ( + 54 ) - 68 / - CAST( - + ( + - 32 ) AS SIGNED ) WHEN 85 THEN ( 17 ) + + 85 + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 89 * - 35 / - 47 - 17 * - CASE + 52 WHEN + - 7 * - 61 + - - 46 THEN 88 WHEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + + 43 * - ( + 54 ) - 68 / - CAST ( - + ( + - 32 ) AS INTEGER ) WHEN 85 THEN ( 17 ) + + 85 + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL SUM( ALL - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL SUM ( ALL - 81 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT DISTINCT - - 49 DIV 29 + ( 43 )
----
44

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - - 49 / 29 + ( 43 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL - COUNT( * ) / 67 + + 93 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - COUNT ( * ) / 67 + + 93 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL 95 * - + CASE + 99 WHEN + COUNT( * ) THEN + 84 * - ( - SUM( DISTINCT - 35 ) ) END * - COALESCE ( + 99, + NULLIF ( + 55, - AVG ( 50 ) ) / - 30 * - - 69 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 2 + + 56 + + 51, 87 ) + - NULLIF ( + - 60, 98 ) + + 19 / CASE - 53 WHEN + 80 * - 89 THEN NULL ELSE - 15 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL 95 * - + CASE + 99 WHEN + COUNT ( * ) THEN + 84 * - ( - SUM ( DISTINCT - 35 ) ) END * - COALESCE ( + 99, + NULLIF ( + 55, - AVG ( 50 ) ) / - 30 * - - 69 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 2 + + 56 + + 51, 87 ) + - NULLIF ( + - 60, 98 ) + + 19 / CASE - 53 WHEN + 80 * - 89 THEN NULL ELSE - 15 END - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT + CASE + 0 WHEN - 20 + - COUNT( * ) * - ( - 56 ) THEN + ( + + 66 ) WHEN CASE - 34 WHEN + + NULLIF ( - + COUNT( * ), - 49 ) * - + 42 * + + 90 THEN - 48 WHEN + 63 THEN - + ( + - COUNT( * ) ) ELSE NULL END - 34 THEN NULL ELSE NULL END * + 65 + - + COUNT( * ) col1, + 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-5579
SELECT + CASE + 0 WHEN - 20 + - COUNT ( * ) * - ( - 56 ) THEN + ( + + 66 ) WHEN CASE - 34 WHEN + + NULLIF ( - + COUNT ( * ), - 49 ) * - + 42 * + + 90 THEN - 48 WHEN + 63 THEN - + ( + - COUNT ( * ) ) ELSE NULL END - 34 THEN NULL ELSE NULL END * + 65 + - + COUNT ( * ) col1, + 66 AS col2
----
NULL
66

query I rowsort
SELECT - 62 + 99 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT + + 40 / - 36 * - 30 + 10 + - CAST( NULL AS SIGNED ) * 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT + + 40 / - 36 * - 30 + 10 + - CAST ( NULL AS INTEGER ) * 41 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 29 * + - 13 AS col1
----
-377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5583
SELECT DISTINCT - + SUM( ALL + + 59 ) * + 21 + - 31 + + COUNT( * ) DIV - 63 AS col1
----
-1270

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - + SUM ( ALL + + 59 ) * + 21 + - 31 + + COUNT ( * ) / - 63 AS col1
----
-1270

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT - - ( + 67 ), - 31 + - COUNT( * ) * - - MAX( + 5 ) * + + ( 89 ) AS col2
----
67
-476

skipif mysql # not compatible
query II rowsort label-5584
SELECT - - ( + 67 ), - 31 + - COUNT ( * ) * - - MAX ( + 5 ) * + + ( 89 ) AS col2
----
67
-476

query I rowsort
SELECT 93 + - 94 + - 87
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT 12 + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5586
SELECT 12 + COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5587
SELECT 18 * COUNT( * ) DIV - 47 * 53
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT 18 * COUNT ( * ) / - 47 * 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT + 94 + - MIN( 70 ) * + - 49 + COUNT( DISTINCT 56 )
----
3525

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + 94 + - MIN ( 70 ) * + - 49 + COUNT ( DISTINCT 56 )
----
3525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5589
SELECT DISTINCT + 21 + - COUNT( * ) + - 4 AS col0, - 12 DIV + 23
----
16
0

skipif mysql # not compatible
query II rowsort label-5589
SELECT DISTINCT + 21 + - COUNT ( * ) + - 4 AS col0, - 12 / + 23
----
16
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL 42 + - - 85 * CAST( 57 AS SIGNED ) AS col2
----
4887

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL 42 + - - 85 * CAST ( 57 AS INTEGER ) AS col2
----
4887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT 40 DIV + + 35 - 99 - + + 67 * + 30 * - COUNT( * ) AS col1
----
1912

skipif mysql # not compatible
query I rowsort label-5591
SELECT 40 / + + 35 - 99 - + + 67 * + 30 * - COUNT ( * ) AS col1
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL - COALESCE ( - - 47, 77 ) + + 15 + - COUNT( * ) * - 15 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - COALESCE ( - - 47, 77 ) + + 15 + - COUNT ( * ) * - 15 AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT + 49 / + 23 * - + 83 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + 49 / + 23 * - + 83 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5594
SELECT 57 + - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col1, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5594
SELECT 57 + - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1, 68
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + NULLIF ( - 52, - COUNT( * ) * - 97 + + COUNT( * ) ) * - ( + 36 ) + + - MAX( 58 )
----
1814

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + NULLIF ( - 52, - COUNT ( * ) * - 97 + + COUNT ( * ) ) * - ( + 36 ) + + - MAX ( 58 )
----
1814

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL - 77 + + SUM( ALL + 43 ) + + 55 * SUM( 92 ) - 43 + + 3 * + + 6 * + 55 AS col0
----
5973

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - 77 + + SUM ( ALL + 43 ) + + 55 * SUM ( 92 ) - 43 + + 3 * + + 6 * + 55 AS col0
----
5973

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT 40 * - 33 + - CAST( NULL AS SIGNED ) AS col0, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-5597
SELECT 40 * - 33 + - CAST ( NULL AS INTEGER ) AS col0, + 39
----
NULL
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT - ( - CAST( NULL AS SIGNED ) ) / + - 72 * - - 10 * - - 90 + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT - ( - CAST ( NULL AS INTEGER ) ) / + - 72 * - - 10 * - - 90 + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + COUNT( * ) * CASE + 43 WHEN + + 33 * - + 83 THEN NULL ELSE ( + - 15 ) - 74 END * - 67 * 84 - + 17 * + - COUNT( * )
----
500909

skipif mysql # not compatible
query I rowsort label-5599
SELECT + COUNT ( * ) * CASE + 43 WHEN + + 33 * - + 83 THEN NULL ELSE ( + - 15 ) - 74 END * - 67 * 84 - + 17 * + - COUNT ( * )
----
500909

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT ALL - 33 AS col0, CAST( + + 42 AS SIGNED ) col1
----
-33
42

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL - 33 AS col0, CAST ( + + 42 AS INTEGER ) col1
----
-33
42

query I rowsort
SELECT 69 * + 67 AS col1
----
4623

query I rowsort
SELECT DISTINCT - 59 + - - 27 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5603
SELECT 59 col0, + 78 * + + ( + COUNT( * ) ) + - ( - CAST( 99 AS SIGNED ) ) AS col0
----
59
177

skipif mysql # not compatible
query II rowsort label-5603
SELECT 59 col0, + 78 * + + ( + COUNT ( * ) ) + - ( - CAST ( 99 AS INTEGER ) ) AS col0
----
59
177

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT ALL - 46 AS col2, - 38 + + COUNT( - - 77 ) AS col0
----
-46
-37

skipif mysql # not compatible
query II rowsort label-5604
SELECT ALL - 46 AS col2, - 38 + + COUNT ( - - 77 ) AS col0
----
-46
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL 36 - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL 36 - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 66 + - 1 AS col2
----
65

query I rowsort
SELECT + NULLIF ( - 85, 43 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL + 50 - 80 + + + 51 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + 50 - 80 + + + 51 + COUNT ( * )
----
22

query II rowsort
SELECT ALL - 15, 38 AS col2
----
-15
38

query I rowsort
SELECT ALL + ( - 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT ALL + 69 AS col0, + COUNT( * ) * - - 46 * + COUNT( * ) col2
----
69
46

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL + 69 AS col0, + COUNT ( * ) * - - 46 * + COUNT ( * ) col2
----
69
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL + 34 DIV - - 53 * + 89
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + 34 / - - 53 * + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5613
SELECT - 53 DIV - CASE + 8 WHEN - 26 THEN - 90 ELSE NULL END * - MIN( - ( + 38 ) ) col2, 55 DIV + - 8 AS col0
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-5613
SELECT - 53 / - CASE + 8 WHEN - 26 THEN - 90 ELSE NULL END * - MIN ( - ( + 38 ) ) col2, 55 / + - 8 AS col0
----
NULL
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT 7 + 27 + + - ( - 88 ) DIV - ( - 85 )
----
35

skipif mysql # not compatible
query I rowsort label-5614
SELECT 7 + 27 + + - ( - 88 ) / - ( - 85 )
----
35

query I rowsort
SELECT 57 + + + 56 - 10 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT CAST( NULL AS SIGNED ) / - - 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT CAST ( NULL AS INTEGER ) / - - 83 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL + 8 + + COUNT( * ) * 23 + + 96 + - 99 + + + 83 * + + 46
----
3846

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + 8 + + COUNT ( * ) * 23 + + 96 + - 99 + + + 83 * + + 46
----
3846

query I rowsort
SELECT 47 + - 93
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5619
SELECT + 46 DIV 53 + + CAST( + + 8 AS SIGNED ) + + 4
----
12

skipif mysql # not compatible
query I rowsort label-5619
SELECT + 46 / 53 + + CAST ( + + 8 AS INTEGER ) + + 4
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5620
SELECT ( - - COUNT( - 35 ) ) + - - 21 * + CASE 95 WHEN + - ( 53 ) THEN NULL ELSE - COALESCE ( + 19, + 36 * + CAST( - 52 AS SIGNED ) + + ( MAX( - 0 ) ) ) DIV - - 78 END + + 81
----
82

skipif mysql # not compatible
query I rowsort label-5620
SELECT ( - - COUNT ( - 35 ) ) + - - 21 * + CASE 95 WHEN + - ( 53 ) THEN NULL ELSE - COALESCE ( + 19, + 36 * + CAST ( - 52 AS INTEGER ) + + ( MAX ( - 0 ) ) ) / - - 78 END + + 81
----
82

query II rowsort
SELECT + 9, + 96 AS col1
----
9
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT 82 + + COUNT( * ) + + 71 col0
----
154

skipif mysql # not compatible
query I rowsort label-5622
SELECT 82 + + COUNT ( * ) + + 71 col0
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ALL + COUNT( * ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + COUNT ( * ) / 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT COUNT( * ), 68 AS col1
----
1
68

skipif mysql # not compatible
query II rowsort label-5624
SELECT COUNT ( * ), 68 AS col1
----
1
68

onlyif mysql # DIV for integer division: 
query II rowsort label-5625
SELECT 81 DIV 72 * + - ( + 84 ) AS col0, 11
----
-84
11

skipif mysql # not compatible
query II rowsort label-5625
SELECT 81 / 72 * + - ( + 84 ) AS col0, 11
----
-84
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT MIN( + ( + 63 ) ) + - 95
----
-32

skipif mysql # not compatible
query I rowsort label-5626
SELECT MIN ( + ( + 63 ) ) + - 95
----
-32

query II rowsort
SELECT ALL - 4, 38 AS col0
----
-4
38

query I rowsort
SELECT DISTINCT + - 65 * 18 * - 33 AS col2
----
38610

query I rowsort
SELECT 50 - - + 20 col2
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5630
SELECT CASE - ( + 96 ) WHEN + AVG ( ALL + - 35 ) + 80 THEN - CAST( 7 AS DECIMAL ) + - 12 END / - - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT CASE - ( + 96 ) WHEN + AVG ( ALL + - 35 ) + 80 THEN - CAST ( 7 AS REAL ) + - 12 END / - - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT 81 * - SUM( - - 94 ) * + 6 AS col0, - 61
----
-45684
-61

skipif mysql # not compatible
query II rowsort label-5631
SELECT 81 * - SUM ( - - 94 ) * + 6 AS col0, - 61
----
-45684
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5632
SELECT 40 * COALESCE ( 51, 89 * - + 64 DIV + 51 * 82 + - 87 ) DIV - + 63 + + 11 + + + 17 + - 0 * 32 * + - 50 * - + 80 + - 96 - + 43 DIV + - 2 + - 41 AS col0, - 80 AS col0
----
-120
-80

skipif mysql # not compatible
query II rowsort label-5632
SELECT 40 * COALESCE ( 51, 89 * - + 64 / + 51 * 82 + - 87 ) / - + 63 + + 11 + + + 17 + - 0 * 32 * + - 50 * - + 80 + - 96 - + 43 / + - 2 + - 41 AS col0, - 80 AS col0
----
-120
-80

query II rowsort
SELECT + + 9 + + + 85, 51 * 70 col0
----
94
3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5634
SELECT ALL 13 DIV 17 AS col2, COUNT( * ) * - 65 + + - 16
----
0
-81

skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL 13 / 17 AS col2, COUNT ( * ) * - 65 + + - 16
----
0
-81

query I rowsort
SELECT DISTINCT + + COALESCE ( 68, - + 68 * + 68 + - - 42, 75 )
----
68

query II rowsort
SELECT 88 AS col1, 65 col1
----
88
65

query II rowsort
SELECT ALL + 63 AS col2, 52 AS col1
----
63
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT COUNT( * ) AS col2, + 63 AS col0
----
1
63

skipif mysql # not compatible
query II rowsort label-5638
SELECT COUNT ( * ) AS col2, + 63 AS col0
----
1
63

query II rowsort
SELECT ALL 66, + 46 col2
----
66
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT + 24 * + 44 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT + 24 * + 44 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5641
SELECT - 27, NULLIF ( 99, CASE - CASE 0 WHEN - 32 + 39 + + ( - - 64 ) THEN NULL ELSE + + COUNT( * ) END WHEN + 14 - + 69 THEN AVG ( + 25 ) - - CAST( NULL AS SIGNED ) + - + 7 * 61 * 37 WHEN - + NULLIF ( - - 29, - + 19 ) THEN NULL ELSE - 28 END + + 86 ) AS col0
----
-27
99

skipif mysql # not compatible
query II rowsort label-5641
SELECT - 27, NULLIF ( 99, CASE - CASE 0 WHEN - 32 + 39 + + ( - - 64 ) THEN NULL ELSE + + COUNT ( * ) END WHEN + 14 - + 69 THEN AVG ( + 25 ) - - CAST ( NULL AS INTEGER ) + - + 7 * 61 * 37 WHEN - + NULLIF ( - - 29, - + 19 ) THEN NULL ELSE - 28 END + + 86 ) AS col0
----
-27
99

query I rowsort
SELECT + - 83 + - - ( 23 ) - + - 60 * + 20 col1
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT 68 col0, - ( + COUNT( * ) )
----
68
-1

skipif mysql # not compatible
query II rowsort label-5643
SELECT 68 col0, - ( + COUNT ( * ) )
----
68
-1

query I rowsort
SELECT + + 8 + + - 30 * + + ( - 61 ) + - 52
----
1786

query I rowsort
SELECT ALL - 44 * + 52 AS col2
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + - COUNT( * ) * + 10 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5646
SELECT + - COUNT ( * ) * + 10 AS col1
----
-10

query II rowsort
SELECT 12 col0, 46 AS col0
----
12
46

query I rowsort
SELECT ALL 67 + 68 col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 26 + 54 + - CASE + + ( - 9 ) WHEN - 61 THEN NULL WHEN + - 11 THEN + NULLIF ( + - COALESCE ( 42, - 12 - 61 + + - 42 ), + 47 + - - COUNT( - - 96 ) + - NULLIF ( + COUNT( * ), - - 63 * + 98 ) * - 92 * + ( - 14 ) * 17 * + - 40 + 55 ) END / + 57 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT 26 + 54 + - CASE + + ( - 9 ) WHEN - 61 THEN NULL WHEN + - 11 THEN + NULLIF ( + - COALESCE ( 42, - 12 - 61 + + - 42 ), + 47 + - - COUNT ( - - 96 ) + - NULLIF ( + COUNT ( * ), - - 63 * + 98 ) * - 92 * + ( - 14 ) * 17 * + - 40 + 55 ) END / + 57 + + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL ( + COUNT( * ) ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT - CASE + NULLIF ( 90, 64 * - + CAST( NULL AS SIGNED ) * - MAX( ALL - 25 ) + 56 ) WHEN - + 0 THEN NULL ELSE 86 * - 37 END AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-5651
SELECT - CASE + NULLIF ( 90, 64 * - + CAST ( NULL AS INTEGER ) * - MAX ( ALL - 25 ) + 56 ) WHEN - + 0 THEN NULL ELSE 86 * - 37 END AS col1
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( * ) + + ( - - 79 )
----
80

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( * ) + + ( - - 79 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + COUNT( * ) + - SUM( - + 9 ) * + 99 AS col0
----
892

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COUNT ( * ) + - SUM ( - + 9 ) * + 99 AS col0
----
892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5654
SELECT + CAST( NULL AS SIGNED ) * + 76 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT + CAST ( NULL AS INTEGER ) * + 76 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT ALL 25 DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 25 / 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - NULLIF ( 52, COUNT( * ) * + 73 )
----
-52

skipif mysql # not compatible
query I rowsort label-5656
SELECT - NULLIF ( 52, COUNT ( * ) * + 73 )
----
-52

query I rowsort
SELECT DISTINCT 24 * + 15 AS col0
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT - ( - 24 ) + 65 - - + 98 DIV - - ( 77 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5658
SELECT - ( - 24 ) + 65 - - + 98 / - - ( 77 ) AS col2
----
90

query I rowsort
SELECT ALL 17 * 37
----
629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT CAST( NULL AS SIGNED ) * ( - 1 ) + COUNT( * ) / - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT CAST ( NULL AS INTEGER ) * ( - 1 ) + COUNT ( * ) / - - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + COALESCE ( 8, - COUNT( * ), - 42 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + COALESCE ( 8, - COUNT ( * ), - 42 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT + + 61 + - 93 + COUNT( * ) AS col0, NULLIF ( + 5, + 23 * + 13 / - 15 + + ( 26 ) ) * - - 85 + - 55 * + + 91 col1
----
-31
-4580

skipif mysql # not compatible
query II rowsort label-5662
SELECT + + 61 + - 93 + COUNT ( * ) AS col0, NULLIF ( + 5, + 23 * + 13 / - 15 + + ( 26 ) ) * - - 85 + - 55 * + + 91 col1
----
-31
-4580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT - 45 * + COUNT( + 32 ) DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT - 45 * + COUNT ( + 32 ) / 49
----
0

query I rowsort
SELECT - 14 * 73 + + 77 * - 14 AS col0
----
-2100

query I rowsort
SELECT - + 95 * - - ( 82 ) + + 20
----
-7770

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT + COUNT( * ) * - 55 + + - COUNT( * ) + - + 93
----
-149

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + COUNT ( * ) * - 55 + + - COUNT ( * ) + - + 93
----
-149

query I rowsort
SELECT DISTINCT - 39 * 38 AS col1
----
-1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT - + 28 DIV CASE + 68 WHEN 53 * + 37 THEN NULL WHEN - + CASE - AVG ( 90 ) WHEN - 14 * - - 60 * - + MAX( 45 ) THEN - + 5 * - 99 WHEN - 41 * 98 + + 49 THEN NULL ELSE - COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) END THEN NULL ELSE - 80 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT - + 28 / CASE + 68 WHEN 53 * + 37 THEN NULL WHEN - + CASE - AVG ( 90 ) WHEN - 14 * - - 60 * - + MAX ( 45 ) THEN - + 5 * - 99 WHEN - 41 * 98 + + 49 THEN NULL ELSE - COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) END THEN NULL ELSE - 80 END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5669
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 11, + ( + 82 ) * - 64 - - 4 - + 86 + - + COUNT( * ) AS col0
----
NULL
-5331

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 11, + ( + 82 ) * - 64 - - 4 - + 86 + - + COUNT ( * ) AS col0
----
NULL
-5331

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - - 43 + + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5670
SELECT - - 43 + + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT - 1 * + + 66 - 26 + - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT - 1 * + + 66 - 26 + - - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - CASE + + COUNT( * ) WHEN + + 24 + + ( - + 75 ) THEN + 19 / - - 99 WHEN - 87 THEN NULL END + + + COALESCE ( 39, 39, + 81 * + 32 ) + - COUNT( * ) + + 7 + - + 34 * + + 39 * + 13 * + + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT - CASE + + COUNT ( * ) WHEN + + 24 + + ( - + 75 ) THEN + 19 / - - 99 WHEN - 87 THEN NULL END + + + COALESCE ( 39, 39, + 81 * + 32 ) + - COUNT ( * ) + + 7 + - + 34 * + + 39 * + 13 * + + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + COUNT( * ) + - + 94
----
-93

skipif mysql # not compatible
query I rowsort label-5673
SELECT + COUNT ( * ) + - + 94
----
-93

query I rowsort
SELECT ALL 84 * + 48 AS col1
----
4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT ALL 77 - + 78 + + CAST( + 0 AS SIGNED ) * - 49 + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 77 - + 78 + + CAST ( + 0 AS INTEGER ) * - 49 + - 50
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL CAST( + + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL CAST ( + + 27 AS INTEGER ) AS col0
----
27

query I rowsort
SELECT + 59 + + 9
----
68

query I rowsort
SELECT DISTINCT 83 * - 95 AS col1
----
-7885

query I rowsort
SELECT + 76 * + 75 AS col1
----
5700

query I rowsort
SELECT - 99 * + 39 AS col1
----
-3861

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT DISTINCT - 51 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - 51 / 94 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5682
SELECT ALL - 54, CAST( NULL AS SIGNED ) * 58 AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL - 54, CAST ( NULL AS INTEGER ) * 58 AS col0
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - SUM( DISTINCT NULLIF ( - 60, 56 ) ) * - 78 + 34 * + 7
----
-4442

skipif mysql # not compatible
query I rowsort label-5683
SELECT - SUM ( DISTINCT NULLIF ( - 60, 56 ) ) * - 78 + 34 * + 7
----
-4442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5684
SELECT COUNT( * ) AS col0, - 57 * 85 DIV + + 67 AS col0
----
1
-72

skipif mysql # not compatible
query II rowsort label-5684
SELECT COUNT ( * ) AS col0, - 57 * 85 / + + 67 AS col0
----
1
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT ( - 8 ) DIV + 57 - - 19 + + 13
----
32

skipif mysql # not compatible
query I rowsort label-5685
SELECT ( - 8 ) / + 57 - - 19 + + 13
----
32

query I rowsort
SELECT ALL - 2 + + - 37
----
-39

query I rowsort
SELECT ( + 11 ) * 66 + 11 + 28 + 57 * - 18
----
-261

query I rowsort
SELECT ALL + - 60 + 55 + - + 61 AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT 57 * CAST( 95 AS SIGNED )
----
5415

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT 57 * CAST ( 95 AS INTEGER )
----
5415

query I rowsort
SELECT 11 + + - ( ( - + 91 ) ) + + - 85
----
17

query I rowsort
SELECT + + ( + - 89 ) col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5692
SELECT 13 * - 83 + - 20 - - - 82 + + 97 - + CASE WHEN NOT NULL IS NULL THEN + 32 ELSE + 45 END * + CAST( 35 AS SIGNED ) * - 52 + COUNT( * ) DIV + 97 AS col0
----
80816

skipif mysql # not compatible
query I rowsort label-5692
SELECT 13 * - 83 + - 20 - - - 82 + + 97 - + CASE WHEN NOT NULL IS NULL THEN + 32 ELSE + 45 END * + CAST ( 35 AS INTEGER ) * - 52 + COUNT ( * ) / + 97 AS col0
----
80816

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT COUNT( * ), 7 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-5693
SELECT COUNT ( * ), 7 AS col2
----
1
7

query I rowsort
SELECT 3 + + - 34
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + - CAST( - 3 AS SIGNED ) + + + 91 * + 64 * COALESCE ( 22, - ( 88 ) ) AS col0
----
128131

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + - CAST ( - 3 AS INTEGER ) + + + 91 * + 64 * COALESCE ( 22, - ( 88 ) ) AS col0
----
128131

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT SUM( DISTINCT - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5696
SELECT SUM ( DISTINCT - 22 ) AS col1
----
-22

query II rowsort
SELECT DISTINCT - ( ( + - 29 ) ) AS col1, - 50 AS col2
----
29
-50

query II rowsort
SELECT ALL + - 89 + + 9 + 44, 35 col2
----
-36
35

query I rowsort
SELECT ALL - 76 - 0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT 63 * + 39 * CAST( + 88 AS SIGNED ) * + + 10
----
2162160

skipif mysql # not compatible
query I rowsort label-5700
SELECT 63 * + 39 * CAST ( + 88 AS INTEGER ) * + + 10
----
2162160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5701
SELECT ALL - 86 * 26 AS col0, 82 * - - NULLIF ( + ( - SUM( DISTINCT + 24 ) ), + CAST( NULL AS SIGNED ) ) AS col1
----
-2236
-1968

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL - 86 * 26 AS col0, 82 * - - NULLIF ( + ( - SUM ( DISTINCT + 24 ) ), + CAST ( NULL AS INTEGER ) ) AS col1
----
-2236
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT 53 * + COUNT( ALL + 0 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5702
SELECT 53 * + COUNT ( ALL + 0 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT 63 - + COUNT( * ) * - + 14
----
77

skipif mysql # not compatible
query I rowsort label-5703
SELECT 63 - + COUNT ( * ) * - + 14
----
77

query I rowsort
SELECT ALL + 86 * 69 AS col2
----
5934

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT ALL 71 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL 71 / 70
----
1

query I rowsort
SELECT 72 + ( 82 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5707
SELECT 78 * 52 DIV SUM( DISTINCT - 78 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5707
SELECT 78 * 52 / SUM ( DISTINCT - 78 ) AS col0
----
-52

query I rowsort
SELECT ALL 64 * + 92 AS col0
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + 64 + - - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + 64 + - - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT - 6 + - 89 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT COUNT( * ) + + + 59 col0
----
60

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT COUNT ( * ) + + + 59 col0
----
60

query I rowsort
SELECT + 58 * - - 94 + - - 14
----
5466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT 17 DIV + 88 + - MIN( + + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5713
SELECT 17 / + 88 + - MIN ( + + 79 )
----
-79

query I rowsort
SELECT DISTINCT 64 + - 86 * 89 - - 51 * 2 AS col2
----
-7488

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT + - NULLIF ( - + 31, - 85 - - COUNT( * ) ), 87 col2
----
31
87

skipif mysql # not compatible
query II rowsort label-5715
SELECT + - NULLIF ( - + 31, - 85 - - COUNT ( * ) ), 87 col2
----
31
87

query II rowsort
SELECT ALL - 57 + - 28 AS col0, - 94 col1
----
-85
-94

query I rowsort
SELECT DISTINCT - - 30 col0
----
30

query I rowsort
SELECT DISTINCT NULLIF ( + 38, + 83 * CASE - 29 WHEN 20 THEN - 29 + + 59 END ) + 56 * - - 88
----
4966

query I rowsort
SELECT ALL - 65 * - 5 + - - 77 - + - 7 + 41 AS col2
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5720
SELECT ALL COUNT( * ) - - 26 + 47 DIV COUNT( * ) AS col2, 41
----
74
41

skipif mysql # not compatible
query II rowsort label-5720
SELECT ALL COUNT ( * ) - - 26 + 47 / COUNT ( * ) AS col2, 41
----
74
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT - 45 + + - 48 + + - 80 + - COUNT( ALL + 96 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 45 + + - 48 + + - 80 + - COUNT ( ALL + 96 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 * + 15 * - 32
----
-35040

query I rowsort
SELECT ALL 2 - - 33 * + 17 AS col2
----
563

query II rowsort
SELECT 82 + 67 + 16, 20 AS col1
----
165
20

query I rowsort
SELECT 88 * - + ( - 82 ) AS col0
----
7216

query I rowsort
SELECT 1 * + 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ( - COUNT( * ) ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-5727
SELECT ( - COUNT ( * ) ) * - 23
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT 7 + - + CAST( + - 2 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-5728
SELECT 7 + - + CAST ( + - 2 AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT + 37 + ( + + 46 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT - ( 61 ) DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT - ( 61 ) / 72 AS col0
----
0

query I rowsort
SELECT DISTINCT COALESCE ( + 61, + + 63 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT + COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) * + - COUNT( DISTINCT 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( DISTINCT 6 ) AS col1
----
0

query I rowsort
SELECT - 34 * + 19 * + 87 * + + 89 AS col2
----
-5001978

query I rowsort
SELECT - 38 * + 30 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL + + 14 + + + ( + 65 ) * - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + + 14 + + + ( + 65 ) * - - COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT + ( - + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT COALESCE ( - ( - SUM( ALL - 68 ) ), 91, - 9 * + + 97 - 67 * - - 21 * 29 )
----
-68

skipif mysql # not compatible
query I rowsort label-5737
SELECT COALESCE ( - ( - SUM ( ALL - 68 ) ), 91, - 9 * + + 97 - 67 * - - 21 * 29 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - 18 * - 65 + COUNT( * ) + 5
----
1176

skipif mysql # not compatible
query I rowsort label-5738
SELECT - 18 * - 65 + COUNT ( * ) + 5
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT + - 66 + - CASE + + 99 WHEN - + COALESCE ( ( - 1 ), + 40 + + - 10 + - - 67 ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN - - 42 ELSE COUNT( * ) END
----
-67

skipif mysql # not compatible
query I rowsort label-5739
SELECT + - 66 + - CASE + + 99 WHEN - + COALESCE ( ( - 1 ), + 40 + + - 10 + - - 67 ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN - - 42 ELSE COUNT ( * ) END
----
-67

query I rowsort
SELECT DISTINCT 75 * 43 AS col2
----
3225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL + - 34 * - ( + CAST( - 29 AS SIGNED ) ) * - 97 * COUNT( + 32 )
----
95642

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + - 34 * - ( + CAST ( - 29 AS INTEGER ) ) * - 97 * COUNT ( + 32 )
----
95642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT + 63 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT + 63 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT 1 * + 10 - + CASE - - COUNT( * ) WHEN - 34 THEN + - 48 WHEN - + COUNT( * ) + - AVG ( + 50 ) THEN NULL WHEN - 81 THEN NULL END - + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT 1 * + 10 - + CASE - - COUNT ( * ) WHEN - 34 THEN + - 48 WHEN - + COUNT ( * ) + - AVG ( + 50 ) THEN NULL WHEN - 81 THEN NULL END - + - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT + COUNT( + 74 ) * - - 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT + COUNT ( + 74 ) * - - 98 AS col2
----
98

query I rowsort
SELECT + 90 * 34 AS col0
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + 17 * - 60 + + COUNT( * ) * - 11
----
-1031

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 17 * - 60 + + COUNT ( * ) * - 11
----
-1031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT CAST( + ( 46 ) AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5747
SELECT CAST ( + ( 46 ) AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + 30 * + 43 + + MIN( 4 )
----
1294

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 30 * + 43 + + MIN ( 4 )
----
1294

onlyif mysql # aggregate syntax: 
query II rowsort label-5749
SELECT DISTINCT + MAX( + 97 ) AS col1, + 67
----
97
67

skipif mysql # not compatible
query II rowsort label-5749
SELECT DISTINCT + MAX ( + 97 ) AS col1, + 67
----
97
67

query I rowsort
SELECT + COALESCE ( - 62, + ( + 38 ) + + - 41 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT DISTINCT 7 DIV + + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT 7 / + + 56 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5752
SELECT ALL 25 DIV - - 46 AS col1, 18 + 47
----
0
65

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL 25 / - - 46 AS col1, 18 + 47
----
0
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT + CAST( NULL AS SIGNED ) * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT + CAST ( NULL AS INTEGER ) * 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL MIN( + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL MIN ( + 11 ) AS col0
----
11

query I rowsort
SELECT DISTINCT 60 * + 72 * 19
----
82080

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT - SUM( - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5756
SELECT - SUM ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT MIN( ALL - 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-5757
SELECT MIN ( ALL - 12 ) col0
----
-12

query I rowsort
SELECT - COALESCE ( + ( + 5 ), + 3 * 80 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5759
SELECT + CASE - 79 WHEN 53 + - 73 THEN + CAST( 81 AS SIGNED ) / + - 9 * 10 / + 4 * - - 47 WHEN - + 85 * - + NULLIF ( - + 91, + 61 ) THEN - ( MAX( ALL - 26 ) ) END * + 68 + - ( + - 27 ) - - NULLIF ( + 75, 53 + + - ( - 6 ) * + 55 ) * - 54 / - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT + CASE - 79 WHEN 53 + - 73 THEN + CAST ( 81 AS INTEGER ) / + - 9 * 10 / + 4 * - - 47 WHEN - + 85 * - + NULLIF ( - + 91, + 61 ) THEN - ( MAX ( ALL - 26 ) ) END * + 68 + - ( + - 27 ) - - NULLIF ( + 75, 53 + + - ( - 6 ) * + 55 ) * - 54 / - ( + - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 59 + - ( + - 63 ) + - 9 AS col0
----
113

query I rowsort
SELECT + 47 * - + 83
----
-3901

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT MIN( ALL 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT MIN ( ALL 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5763
SELECT - COUNT( * ) DIV + 65 + - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5763
SELECT - COUNT ( * ) / + 65 + - 46 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5764
SELECT + + SUM( DISTINCT + - 6 ) + + + MAX( - 67 ) AS col2, 55 + + - CAST( NULL AS SIGNED ) col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-5764
SELECT + + SUM ( DISTINCT + - 6 ) + + + MAX ( - 67 ) AS col2, 55 + + - CAST ( NULL AS INTEGER ) col0
----
-73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT - - 70 - 21 - + 70 * 5 DIV 15 DIV + 36 * 39 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5765
SELECT - - 70 - 21 - + 70 * 5 / 15 / + 36 * 39 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5766
SELECT - 57, COUNT( * ) DIV + + 39 AS col2
----
-57
0

skipif mysql # not compatible
query II rowsort label-5766
SELECT - 57, COUNT ( * ) / + + 39 AS col2
----
-57
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT - 11 * + + 47 * + COALESCE ( + - 57, 21 * CAST( - + 38 AS SIGNED ), + 51 * + - 24 * - - 47 + - COUNT( 27 ) )
----
29469

skipif mysql # not compatible
query I rowsort label-5767
SELECT - 11 * + + 47 * + COALESCE ( + - 57, 21 * CAST ( - + 38 AS INTEGER ), + 51 * + - 24 * - - 47 + - COUNT ( 27 ) )
----
29469

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT + MIN( + 80 ) - + 19
----
61

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + MIN ( + 80 ) - + 19
----
61

query II rowsort
SELECT ALL + - 8, 74 + + 89 + - + 48 + + 81 * + 39 + + 28 * + + 19 AS col0
----
-8
3806

query I rowsort
SELECT - 52 + 66 + - 23
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT ALL + + CAST( - + 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + + CAST ( - + 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5772
SELECT + MAX( ALL - 10 ) AS col1, + CAST( NULL AS SIGNED ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5772
SELECT + MAX ( ALL - 10 ) AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT ALL + 78, - SUM( - 95 ) AS col1
----
78
95

skipif mysql # not compatible
query II rowsort label-5773
SELECT ALL + 78, - SUM ( - 95 ) AS col1
----
78
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT - - ( 44 ) DIV + ( + 1 ) + + 7 + - + 85 + - - 3 DIV - NULLIF ( MAX( + 21 ), + 73 ) + - + COUNT( * ) * - - MIN( DISTINCT - + 49 ) + - COALESCE ( - COUNT( * ), - + 44 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-5774
SELECT - - ( 44 ) / + ( + 1 ) + + 7 + - + 85 + - - 3 / - NULLIF ( MAX ( + 21 ), + 73 ) + - + COUNT ( * ) * - - MIN ( DISTINCT - + 49 ) + - COALESCE ( - COUNT ( * ), - + 44 ) col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT 97 AS col1, COUNT( - + 95 ) + + 96 + 93 AS col1
----
97
190

skipif mysql # not compatible
query II rowsort label-5775
SELECT 97 AS col1, COUNT ( - + 95 ) + + 96 + 93 AS col1
----
97
190

query II rowsort
SELECT DISTINCT + 55 AS col1, + 67 * - 93 AS col1
----
55
-6231

query II rowsort
SELECT + + 14, 93 AS col1
----
14
93

query II rowsort
SELECT + 26 col2, 56
----
26
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5779
SELECT 19 * 6 DIV - + 85 + 19 AS col0, + 96 + - - 80
----
18
176

skipif mysql # not compatible
query II rowsort label-5779
SELECT 19 * 6 / - + 85 + 19 AS col0, + 96 + - - 80
----
18
176

query II rowsort
SELECT + 65 AS col0, - 82 * + - 81 * 97 * + 2 AS col0
----
65
1288548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT - NULLIF ( 68, - + 73 * + + 75 + - - COUNT( * ) + + 59 + + CAST( NULL AS SIGNED ) * + - 61 * + - 95 + + - COUNT( * ) ) * + + 3 + ( 7 )
----
-197

skipif mysql # not compatible
query I rowsort label-5781
SELECT - NULLIF ( 68, - + 73 * + + 75 + - - COUNT ( * ) + + 59 + + CAST ( NULL AS INTEGER ) * + - 61 * + - 95 + + - COUNT ( * ) ) * + + 3 + ( 7 )
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL MIN( 5 ) * 15 + + 93
----
168

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL MIN ( 5 ) * 15 + + 93
----
168

query I rowsort
SELECT ALL + 82 * + - 21 AS col1
----
-1722

query I rowsort
SELECT DISTINCT + 73 * 22 * + 42 AS col1
----
67452

query I rowsort
SELECT ALL 78 * + - 4 + 33 AS col2
----
-279

query I rowsort
SELECT - ( - 62 ) + ( 26 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ( - SUM( 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5787
SELECT ( - SUM ( 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT 72 + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5788
SELECT 72 + - COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT COUNT( * ) - 53 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5789
SELECT COUNT ( * ) - 53 AS col1
----
-52

query I rowsort
SELECT 17 * + 32 AS col2
----
544

query I rowsort
SELECT DISTINCT 6 + 63
----
69

query I rowsort
SELECT DISTINCT - 38 + + 17 * 69
----
1135

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT 7 + - 73, COALESCE ( + 63, - SUM( - 8 ), - CASE + 30 WHEN 89 THEN - + 38 ELSE NULL END + + 24 ) AS col1
----
-66
63

skipif mysql # not compatible
query II rowsort label-5793
SELECT 7 + - 73, COALESCE ( + 63, - SUM ( - 8 ), - CASE + 30 WHEN 89 THEN - + 38 ELSE NULL END + + 24 ) AS col1
----
-66
63

query I rowsort
SELECT ALL - 20 + + - 99
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT 70 + - + SUM( DISTINCT 99 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT 70 + - + SUM ( DISTINCT 99 ) AS col0
----
-29

query I rowsort
SELECT ALL ( 42 ) + 11 - - 58
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL 5 + + - 92 DIV + - 97 + + + 66
----
71

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL 5 + + - 92 / + - 97 + + + 66
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5798
SELECT 97 DIV + MIN( + + 48 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5798
SELECT 97 / + MIN ( + + 48 ) AS col2
----
2

query II rowsort
SELECT 32 * 38 AS col1, + 22 AS col1
----
1216
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT - NULLIF ( + 75, 25 + - - COUNT( * ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT - NULLIF ( + 75, 25 + - - COUNT ( * ) ) AS col1
----
-75

query I rowsort
SELECT DISTINCT - 91 - 30
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-5802
SELECT ALL - 33 * 31, - 57 * - + 92 + - + 0 DIV - 4 - + + 19 AS col0
----
-1023
5225

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL - 33 * 31, - 57 * - + 92 + - + 0 / - 4 - + + 19 AS col0
----
-1023
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT SUM( - + ( + 70 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5803
SELECT SUM ( - + ( + 70 ) )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT ALL SUM( DISTINCT + + 36 ) AS col1, COUNT( * ) + - 89 + + 67 + + 26 * - 56 col0
----
36
-1477

skipif mysql # not compatible
query II rowsort label-5804
SELECT ALL SUM ( DISTINCT + + 36 ) AS col1, COUNT ( * ) + - 89 + + 67 + + 26 * - 56 col0
----
36
-1477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT ALL - CASE - + COUNT( 47 ) WHEN - 56 + + 36 THEN - - COUNT( * ) DIV - COUNT( * ) ELSE - COUNT( * ) END * + 58
----
58

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - CASE - + COUNT ( 47 ) WHEN - 56 + + 36 THEN - - COUNT ( * ) / - COUNT ( * ) ELSE - COUNT ( * ) END * + 58
----
58

query I rowsort
SELECT NULLIF ( + ( - + 21 ), + 37 * - - 3 * 61 * 73 ) * + 24 AS col2
----
-504

query I rowsort
SELECT ALL - ( - + 54 )
----
54

query I rowsort
SELECT + 89 - - 91
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT - 81 * - CAST( - 83 AS SIGNED ) AS col1
----
-6723

skipif mysql # not compatible
query I rowsort label-5809
SELECT - 81 * - CAST ( - 83 AS INTEGER ) AS col1
----
-6723

query I rowsort
SELECT DISTINCT - 84 * - 83 * 90 col2
----
627480

query I rowsort
SELECT ALL + 57 * - 67 AS col2
----
-3819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT 46 DIV - + 49 + - 47 + 55 * + 96 - - + MAX( ALL - - ( - 94 ) ) + + 38
----
5177

skipif mysql # not compatible
query I rowsort label-5812
SELECT 46 / - + 49 + - 47 + 55 * + 96 - - + MAX ( ALL - - ( - 94 ) ) + + 38
----
5177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5813
SELECT DISTINCT - 43 AS col0, CAST( NULL AS DECIMAL ) + + COUNT( * ) + 50 + + - 23 + - COALESCE ( + + 12, - AVG ( + + NULLIF ( - 59, + - 0 / + 36 * + 76 ) ) ) AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-5813
SELECT DISTINCT - 43 AS col0, CAST ( NULL AS REAL ) + + COUNT ( * ) + 50 + + - 23 + - COALESCE ( + + 12, - AVG ( + + NULLIF ( - 59, + - 0 / + 36 * + 76 ) ) ) AS col2
----
-43
NULL

query I rowsort
SELECT 82 + + + 75
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL + 86 + + + 35 * + MAX( ( 10 ) ) AS col2
----
436

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + 86 + + + 35 * + MAX ( ( 10 ) ) AS col2
----
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5816
SELECT ALL - 96 DIV + NULLIF ( 25, - - 53 - + 78 - - - 59 ) AS col1, - 33 * - COUNT( * ) AS col0
----
-3
33

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - 96 / + NULLIF ( 25, - - 53 - + 78 - - - 59 ) AS col1, - 33 * - COUNT ( * ) AS col0
----
-3
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5817
SELECT 91 DIV + CAST( + MAX( + - 77 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5817
SELECT 91 / + CAST ( + MAX ( + - 77 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - 23 + 95 + + 46 + - 99 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT MAX( ALL + 84 ) * 21 + 65
----
1829

skipif mysql # not compatible
query I rowsort label-5819
SELECT MAX ( ALL + 84 ) * 21 + 65
----
1829

query I rowsort
SELECT 72 * 64 AS col2
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT + 51 + + 74 - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + 51 + + 74 - COUNT ( * ) AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT - CASE + + 74 WHEN COUNT( * ) * + CASE - 74 WHEN - 65 THEN + 32 WHEN - - 97 THEN + 73 END - - 57 THEN 68 * + - 54 WHEN 70 * + ( + COALESCE ( - 6, + COUNT( * ), - - 15 * + 14 + - - MIN( ALL + 16 ) * + 65 + - ( + 71 ) + + - 70 + + 21 + + 15 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - CASE + + 74 WHEN COUNT ( * ) * + CASE - 74 WHEN - 65 THEN + 32 WHEN - - 97 THEN + 73 END - - 57 THEN 68 * + - 54 WHEN 70 * + ( + COALESCE ( - 6, + COUNT ( * ), - - 15 * + 14 + - - MIN ( ALL + 16 ) * + 65 + - ( + 71 ) + + - 70 + + 21 + + 15 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5823
SELECT ALL - COUNT( * ) + ( 24 ) + 20 - + - CAST( NULL AS SIGNED ) + - - 85 + + 37 * 46 * - - 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - COUNT ( * ) + ( 24 ) + 20 - + - CAST ( NULL AS INTEGER ) + - - 85 + + 37 * 46 * - - 77 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT ALL - COUNT( * ), - 88 AS col0
----
-1
-88

skipif mysql # not compatible
query II rowsort label-5824
SELECT ALL - COUNT ( * ), - 88 AS col0
----
-1
-88

query I rowsort
SELECT DISTINCT 0 + + - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL - 33 * + + SUM( - + 62 )
----
2046

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - 33 * + + SUM ( - + 62 )
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - 24 + + - 63 - - SUM( - 2 ) + - + 18 * - ( 29 ) - - 47 AS col1
----
480

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - 24 + + - 63 - - SUM ( - 2 ) + - + 18 * - ( 29 ) - - 47 AS col1
----
480

query II rowsort
SELECT 48 AS col2, - 52
----
48
-52

query I rowsort
SELECT 97 - 47 - 15 AS col1
----
35

query I rowsort
SELECT 12 * + 70 * 63
----
52920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT CAST( + + 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5831
SELECT CAST ( + + 15 AS INTEGER ) AS col0
----
15

query I rowsort
SELECT 18 * + - 89
----
-1602

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT ALL + 73 DIV 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + 73 / 25 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - COALESCE ( 18, 77, - + 89 * MAX( ALL - 8 ) + + 74 + - 45 + + + 46 DIV - 62 + + + 61 * - + 82 * 81 + 7 ) DIV 32 + - 66 DIV COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - COALESCE ( 18, 77, - + 89 * MAX ( ALL - 8 ) + + 74 + - 45 + + + 46 / - 62 + + + 61 * - + 82 * 81 + 7 ) / 32 + - 66 / COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT - CAST( - COALESCE ( - CAST( NULL AS SIGNED ), 74, + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5836
SELECT - CAST ( - COALESCE ( - CAST ( NULL AS INTEGER ), 74, + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT ALL - + 28 * + - CASE - 37 WHEN 82 THEN - SUM( + - 58 ) END AS col1, + 61 - - 82 - - 75 * - 24
----
NULL
-1657

skipif mysql # not compatible
query II rowsort label-5837
SELECT ALL - + 28 * + - CASE - 37 WHEN 82 THEN - SUM ( + - 58 ) END AS col1, + 61 - - 82 - - 75 * - 24
----
NULL
-1657

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT - 29 DIV 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 29 / 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - MAX( + 62 ) + + 17 + + - 52 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5839
SELECT - MAX ( + 62 ) + + 17 + + - 52 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 18 * ( ( - + COUNT( * ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-5840
SELECT 18 * ( ( - + COUNT ( * ) ) )
----
-18

query I rowsort
SELECT - 87 + 61 + - 90
----
-116

query I rowsort
SELECT - 57 - + 94
----
-151

query I rowsort
SELECT DISTINCT 31 * + + 11 + + 50 AS col0
----
391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5844
SELECT 66 + + + ( 75 ) + COUNT( * ) AS col1, + 76 - + NULLIF ( 75, - - 59 ) + - COUNT( * ) * - CAST( + 29 AS SIGNED ) AS col0
----
142
30

skipif mysql # not compatible
query II rowsort label-5844
SELECT 66 + + + ( 75 ) + COUNT ( * ) AS col1, + 76 - + NULLIF ( 75, - - 59 ) + - COUNT ( * ) * - CAST ( + 29 AS INTEGER ) AS col0
----
142
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT ALL 16 col1, MIN( 33 ) AS col1
----
16
33

skipif mysql # not compatible
query II rowsort label-5845
SELECT ALL 16 col1, MIN ( 33 ) AS col1
----
16
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5846
SELECT + 23 + - 75 * COUNT( * ) AS col0, + 1 DIV 95 - 12, + + 46 AS col1
----
-52
-12
46

skipif mysql # not compatible
query III rowsort label-5846
SELECT + 23 + - 75 * COUNT ( * ) AS col0, + 1 / 95 - 12, + + 46 AS col1
----
-52
-12
46

query I rowsort
SELECT DISTINCT + 28 + + + 45
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT + 56 DIV 51 + + 61 * + COUNT( * ) + 85 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 56 / 51 + + 61 * + COUNT ( * ) + 85 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT ALL - 46 * - 15 + + 75 + + 3 AS col2, + SUM( ALL + + 58 )
----
768
58

skipif mysql # not compatible
query II rowsort label-5849
SELECT ALL - 46 * - 15 + + 75 + + 3 AS col2, + SUM ( ALL + + 58 )
----
768
58

query I rowsort
SELECT NULLIF ( 83, 60 ) col0
----
83

query II rowsort
SELECT + 1 * + 42, + 67 * - 41 AS col1
----
42
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - 7 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-5852
SELECT - 7 * + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT MIN( DISTINCT + - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5853
SELECT MIN ( DISTINCT + - 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT ALL + CAST( + - COUNT( - 23 ) AS SIGNED ) * 87 + 17 + + 97 * + 95 * - - 19 AS col2
----
175015

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + CAST ( + - COUNT ( - 23 ) AS INTEGER ) * 87 + 17 + + 97 * + 95 * - - 19 AS col2
----
175015

query II rowsort
SELECT DISTINCT 95 * - 22 AS col0, 20
----
-2090
20

query I rowsort
SELECT ALL - 80 * - ( ( - 0 ) ) + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + 12 + + 59 * + CASE 40 WHEN MIN( ALL + - 7 ) THEN - 7 ELSE - 32 + - ( - - 34 ) * + 85 - 59 + - - 79 END AS col1
----
-171206

skipif mysql # not compatible
query I rowsort label-5857
SELECT + 12 + + 59 * + CASE 40 WHEN MIN ( ALL + - 7 ) THEN - 7 ELSE - 32 + - ( - - 34 ) * + 85 - 59 + - - 79 END AS col1
----
-171206

query I rowsort
SELECT 56 * + 15 - + - COALESCE ( + 48, 49 ) AS col0
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - 76 * + ( COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 76 * + ( COUNT ( * ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT - MIN( ALL - + ( - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - MIN ( ALL - + ( - 60 ) )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5861
SELECT ALL - + 67 * + CAST( NULL AS DECIMAL ) + - 89 + 88 + + 19 * 61 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - + 67 * + CAST ( NULL AS REAL ) + - 89 + 88 + + 19 * 61 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT - 0 * + + COUNT( * ) * + 53 DIV - COUNT( * ) + + 2
----
2

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - 0 * + + COUNT ( * ) * + 53 / - COUNT ( * ) + + 2
----
2

query I rowsort
SELECT DISTINCT - + ( + + 19 ) * - 35
----
665

query I rowsort
SELECT - COALESCE ( + + 86, - 9 ) + 55 * 81
----
4369

query I rowsort
SELECT - - 56 + - 93 + + - 62 col0
----
-99

query I rowsort
SELECT CASE - + 41 WHEN - 57 * + 52 THEN 63 END
----
NULL

query I rowsort
SELECT + - NULLIF ( + 88, - - 50 + 12 ) + + - 42 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT - + COUNT( DISTINCT - 55 ) AS col1, + 17 * - NULLIF ( + 41, + COUNT( * ) )
----
-1
-697

skipif mysql # not compatible
query II rowsort label-5868
SELECT - + COUNT ( DISTINCT - 55 ) AS col1, + 17 * - NULLIF ( + 41, + COUNT ( * ) )
----
-1
-697

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5869
SELECT ALL + 26 + - CAST( NULL AS DECIMAL ), 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL + 26 + - CAST ( NULL AS REAL ), 92 AS col0
----
NULL
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT - CAST( 36 AS SIGNED ) + - 45
----
-81

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT - CAST ( 36 AS INTEGER ) + - 45
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT ALL 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL 60 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 83 + - 24 - 93 AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL - - 21 + MIN( DISTINCT + 68 ) * + 0 col1
----
21

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL - - 21 + MIN ( DISTINCT + 68 ) * + 0 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT + 7 * + - COUNT( * ) + + 69 * - + 71
----
-4906

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + 7 * + - COUNT ( * ) + + 69 * - + 71
----
-4906

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - - 43 + COUNT( * ) * + - ( 73 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5875
SELECT - - 43 + COUNT ( * ) * + - ( 73 ) AS col0
----
-30

query I rowsort
SELECT - 87 - 20 AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT - 91 / - CAST( NULL AS SIGNED ) * + 37 + ( + COALESCE ( 22, - 43 + - 45 - 60 ) ) + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 91 / - CAST ( NULL AS INTEGER ) * + 37 + ( + COALESCE ( 22, - 43 + - 45 - 60 ) ) + + 52 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT ALL + 63 DIV + 27 + 14 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + 63 / + 27 + 14 AS col0
----
16

query I rowsort
SELECT DISTINCT - 51 * + 49 * + + ( - 66 )
----
164934

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + 28 * + 94 + + - NULLIF ( - 11, 55 ) * - COALESCE ( - COUNT( * ), + ( + - 73 ) ) + + MAX( 51 )
----
2694

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 28 * + 94 + + - NULLIF ( - 11, 55 ) * - COALESCE ( - COUNT ( * ), + ( + - 73 ) ) + + MAX ( 51 )
----
2694

query I rowsort
SELECT + 30 * + 32 AS col2
----
960

query I rowsort
SELECT ALL 36 * 2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5883
SELECT 60 DIV NULLIF ( + COUNT( * ), + NULLIF ( + 80, + COALESCE ( 46, COUNT( * ) - + 32 * 64 + - - CASE MAX( ALL - 12 ) WHEN + + 1 THEN - ( 20 ) DIV MAX( ALL + 16 ) + MIN( - + CAST( NULL AS SIGNED ) ) WHEN 48 THEN + 0 ELSE NULL END ) ) + - COUNT( * ) ) + COUNT( * ) + - 24 * - 93
----
2293

skipif mysql # not compatible
query I rowsort label-5883
SELECT 60 / NULLIF ( + COUNT ( * ), + NULLIF ( + 80, + COALESCE ( 46, COUNT ( * ) - + 32 * 64 + - - CASE MAX ( ALL - 12 ) WHEN + + 1 THEN - ( 20 ) / MAX ( ALL + 16 ) + MIN ( - + CAST ( NULL AS INTEGER ) ) WHEN 48 THEN + 0 ELSE NULL END ) ) + - COUNT ( * ) ) + COUNT ( * ) + - 24 * - 93
----
2293

query I rowsort
SELECT ( NULLIF ( 25, 69 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT DISTINCT COUNT( * ) DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT COUNT ( * ) / + 12
----
0

query I rowsort
SELECT + 64 * 63 AS col1
----
4032

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5887
SELECT + ( - NULLIF ( - 9, - + CAST( NULL AS DECIMAL ) ) ) * - ( - + 64 ) + - + 73 DIV 7 + - - 66 + 9
----
641

skipif mysql # not compatible
query I rowsort label-5887
SELECT + ( - NULLIF ( - 9, - + CAST ( NULL AS REAL ) ) ) * - ( - + 64 ) + - + 73 / 7 + - - 66 + 9
----
641

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT + 82 DIV 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 82 / 30 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT + 17 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 17 / + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT DISTINCT + + 2 DIV - ( 24 ) * - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + + 2 / - ( 24 ) * - 76 AS col0
----
0

query I rowsort
SELECT + - 65 - 14
----
-79

query II rowsort
SELECT - 16, 32 AS col1
----
-16
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT - 2 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 2 / + 53
----
0

query I rowsort
SELECT ALL + ( 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT - 10 * + - 70 + COUNT( * ) + 77 AS col2
----
778

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT - 10 * + - 70 + COUNT ( * ) + 77 AS col2
----
778

query I rowsort
SELECT ALL - 74 * + 48 + - + 49 + - 95 AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - MIN( ALL + 53 ) - - 13
----
-40

skipif mysql # not compatible
query I rowsort label-5897
SELECT - MIN ( ALL + 53 ) - - 13
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + + 48 * + + 88 + MAX( DISTINCT 91 ) AS col2
----
4315

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + + 48 * + + 88 + MAX ( DISTINCT 91 ) AS col2
----
4315

query I rowsort
SELECT DISTINCT + + 31 + - 60 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - COUNT( * ) * SUM( + 78 ) - + - 22 * + 41 AS col1
----
824

skipif mysql # not compatible
query I rowsort label-5900
SELECT - COUNT ( * ) * SUM ( + 78 ) - + - 22 * + 41 AS col1
----
824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL + - CAST( + 57 AS SIGNED ) + - 72 + 49 - - - 49 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + - CAST ( + 57 AS INTEGER ) + - 72 + 49 - - - 49 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-5902
SELECT + + SUM( DISTINCT - 49 ) + 16 col0, 55
----
-33
55

skipif mysql # not compatible
query II rowsort label-5902
SELECT + + SUM ( DISTINCT - 49 ) + 16 col0, 55
----
-33
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT - CASE - 7 WHEN + 93 THEN NULL WHEN - 94 THEN NULL ELSE 31 DIV 13 * - ( + 95 ) END AS col0
----
190

skipif mysql # not compatible
query I rowsort label-5903
SELECT - CASE - 7 WHEN + 93 THEN NULL WHEN - 94 THEN NULL ELSE 31 / 13 * - ( + 95 ) END AS col0
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + - CAST( + ( + - 18 ) AS SIGNED ) * + 68 * COUNT( * ) * 27
----
33048

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + - CAST ( + ( + - 18 ) AS INTEGER ) * + 68 * COUNT ( * ) * 27
----
33048

query I rowsort
SELECT ( + - 0 ) - - - 11 AS col2
----
-11

query II rowsort
SELECT - 77 col0, - 55 - - 31 + - + 21 + - - 68 col1
----
-77
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - 37 + - + COUNT( * ) + 79 * + 5 AS col0
----
357

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 37 + - + COUNT ( * ) + 79 * + 5 AS col0
----
357

query II rowsort
SELECT 27, + 60 AS col2
----
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT COUNT( * ) + 48 - - COALESCE ( - + 34, - 40 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( * ) + 48 - - COALESCE ( - + 34, - 40 ) AS col0
----
15

query I rowsort
SELECT ALL ( + 81 ) * - 2 - 5 * - 8 + - 64
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + 92 - + MAX( DISTINCT 61 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + 92 - + MAX ( DISTINCT 61 ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT COUNT( * ) * + + 98 * 87
----
8526

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT COUNT ( * ) * + + 98 * 87
----
8526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT NULLIF ( 25, + CAST( NULL AS SIGNED ) + 98 + 42 ) * - ( + ( + 28 ) )
----
-700

skipif mysql # not compatible
query I rowsort label-5913
SELECT NULLIF ( 25, + CAST ( NULL AS INTEGER ) + 98 + 42 ) * - ( + ( + 28 ) )
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5914
SELECT ALL + 65 * - CAST( NULL AS SIGNED ) AS col0, 6 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5914
SELECT ALL + 65 * - CAST ( NULL AS INTEGER ) AS col0, 6 AS col0
----
NULL
6

query I rowsort
SELECT 0 * + 17 AS col1
----
0

query I rowsort
SELECT ALL + ( 10 ) * + 70 AS col1
----
700

query I rowsort
SELECT DISTINCT 41 * - 93
----
-3813

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT 16 * - 85 AS col0, + CASE 0 WHEN + 76 THEN - COUNT( * ) + + 89 + - - 29 ELSE - - 76 END + + ( - COUNT( * ) )
----
-1360
75

skipif mysql # not compatible
query II rowsort label-5918
SELECT 16 * - 85 AS col0, + CASE 0 WHEN + 76 THEN - COUNT ( * ) + + 89 + - - 29 ELSE - - 76 END + + ( - COUNT ( * ) )
----
-1360
75

query I rowsort
SELECT 51 * + 75
----
3825

onlyif mysql # aggregate syntax: 
query II rowsort label-5920
SELECT COUNT( * ) * 57 AS col0, + 46
----
57
46

skipif mysql # not compatible
query II rowsort label-5920
SELECT COUNT ( * ) * 57 AS col0, + 46
----
57
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL + COUNT( * ) * 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + COUNT ( * ) * 34 AS col2
----
34

query II rowsort
SELECT DISTINCT - 3 AS col1, 73
----
-3
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL - 25 + 60 + + 34 + - 93 + + - CAST( NULL AS SIGNED ) * + 5 * + - 22 * - COUNT( * ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - 25 + 60 + + 34 + - 93 + + - CAST ( NULL AS INTEGER ) * + 5 * + - 22 * - COUNT ( * ) * 81 AS col2
----
NULL

query I rowsort
SELECT + 26 + 75
----
101

query I rowsort
SELECT 14 * - 15 * + 82 * - 66 * 6 - - 4 * 48 + - 42 - - 69 AS col1
----
6819339

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT + ( + + CASE - 16 WHEN - - MAX( - - 9 ) + - - COUNT( * ) THEN 13 * - MIN( + 59 ) * + 42 - - 47 - + + AVG ( DISTINCT + + 65 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT + ( + + CASE - 16 WHEN - - MAX ( - - 9 ) + - - COUNT ( * ) THEN 13 * - MIN ( + 59 ) * + 42 - - 47 - + + AVG ( DISTINCT + + 65 ) END ) AS col0
----
NULL

query I rowsort
SELECT 26 + 3 AS col1
----
29

query II rowsort
SELECT ALL 79 * - 39, 48 + 79 AS col0
----
-3081
127

query I rowsort
SELECT 16 + - 65 AS col2
----
-49

query I rowsort
SELECT ALL 93 + - 67 col0
----
26

query I rowsort
SELECT 54 * + 23 + + + 82
----
1324

query II rowsort
SELECT - 62, 16 AS col1
----
-62
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL + 98 + - 96 - 61 * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + 98 + - 96 - 61 * - COUNT ( * )
----
63

query I rowsort
SELECT + 42 * 22 * + 91
----
84084

query I rowsort
SELECT 72 * 42 * + 8 AS col2
----
24192

query I rowsort
SELECT - 25 + + - 38
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT - 65 + + 56 + - - 78 + - 92 DIV 62
----
68

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 65 + + 56 + - - 78 + - 92 / 62
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT 21 / + + CAST( NULL AS SIGNED ) / - - 57 * + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT 21 / + + CAST ( NULL AS INTEGER ) / - - 57 * + - 64 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT ALL - 57 DIV 5 + + 30
----
19

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - 57 / 5 + + 30
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT 51 * + COUNT( ALL - 98 ) * - 18 * - + 70
----
64260

skipif mysql # not compatible
query I rowsort label-5940
SELECT 51 * + COUNT ( ALL - 98 ) * - 18 * - + 70
----
64260

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5941
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, 72 + - 53 + - 29 * + - 0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5941
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, 72 + - 53 + - 29 * + - 0
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL + + 53 - - 22 * COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + + 53 - - 22 * COUNT ( * ) AS col2
----
75

query II rowsort
SELECT - + 97 AS col0, + 34
----
-97
34

query I rowsort
SELECT DISTINCT + 88 * 65
----
5720

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT COUNT( * ) * - + 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5945
SELECT COUNT ( * ) * - + 3 AS col1
----
-3

query I rowsort
SELECT 6 * - + 38
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT COUNT( * ) + - 71 DIV 13
----
-4

skipif mysql # not compatible
query I rowsort label-5947
SELECT COUNT ( * ) + - 71 / 13
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - MIN( + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - MIN ( + 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT 25 DIV - 12 * + COALESCE ( - COUNT( - 93 ), - COALESCE ( + 78, 12, + 29 * - 7 - - 9 * - 67 + COUNT( * ) ) * + 65 + - 22 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5949
SELECT 25 / - 12 * + COALESCE ( - COUNT ( - 93 ), - COALESCE ( + 78, 12, + 29 * - 7 - - 9 * - 67 + COUNT ( * ) ) * + 65 + - 22 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL - COALESCE ( + - 2, 2, - - 92, - 14 * - - AVG ( ALL 27 ) ) DIV + 46 - - 83 DIV - - 86 + - 86 * NULLIF ( - + NULLIF ( + 21, - COUNT( * ) ), + ( 56 ) + + 44 * + 12 ) AS col1
----
1806

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - COALESCE ( + - 2, 2, - - 92, - 14 * - - AVG ( ALL 27 ) ) / + 46 - - 83 / - - 86 + - 86 * NULLIF ( - + NULLIF ( + 21, - COUNT ( * ) ), + ( 56 ) + + 44 * + 12 ) AS col1
----
1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT - 87 DIV SUM( 85 ) + - + 89 col2
----
-90

skipif mysql # not compatible
query I rowsort label-5951
SELECT - 87 / SUM ( 85 ) + - + 89 col2
----
-90

query I rowsort
SELECT ALL - CASE + + NULLIF ( - - 97, - 11 / 47 ) WHEN - - 74 THEN NULL WHEN - 36 / - 48 THEN - 94 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5953
SELECT ALL - CAST( NULL AS SIGNED ) / 22 col2, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5953
SELECT ALL - CAST ( NULL AS INTEGER ) / 22 col2, 54 AS col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT COUNT( - + 96 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-5954
SELECT COUNT ( - + 96 ) * + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - ( - - COALESCE ( + + COUNT( * ), - COUNT( * ) ) ) + ( - 87 )
----
-88

skipif mysql # not compatible
query I rowsort label-5955
SELECT - ( - - COALESCE ( + + COUNT ( * ), - COUNT ( * ) ) ) + ( - 87 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL - ( + 84 ) + + CAST( - - 31 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - ( + 84 ) + + CAST ( - - 31 AS INTEGER )
----
-53

query I rowsort
SELECT ALL - + 77 + + 88 col1
----
11

query II rowsort
SELECT ALL - ( 67 ), + 34 * - 60 AS col0
----
-67
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT + 74 * SUM( + + COALESCE ( - 63, - 40 ) ) * - - 25 * - CAST( 78 AS SIGNED ) / + CASE + + COUNT( * ) WHEN + + COUNT( * ) + - 91 THEN + MIN( - 22 ) END + + 40 - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 74 * SUM ( + + COALESCE ( - 63, - 40 ) ) * - - 25 * - CAST ( 78 AS INTEGER ) / + CASE + + COUNT ( * ) WHEN + + COUNT ( * ) + - 91 THEN + MIN ( - 22 ) END + + 40 - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL + 28 + + COUNT( * ) * - ( + + 50 ) + 67 - 4 + ( + + 52 ) * - 95 * - 65 - + 57 * 4 AS col1
----
320913

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL + 28 + + COUNT ( * ) * - ( + + 50 ) + 67 - 4 + ( + + 52 ) * - 95 * - 65 - + 57 * 4 AS col1
----
320913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT - CAST( NULL AS SIGNED ) - + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT - CAST ( NULL AS INTEGER ) - + 71 AS col1
----
NULL

query I rowsort
SELECT + ( + + 15 ) + + + 70 - + 30
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL + CAST( 98 AS SIGNED ) - + ( - - 82 ) * COUNT( * ) + - COALESCE ( + - 67, + + 0 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + CAST ( 98 AS INTEGER ) - + ( - - 82 ) * COUNT ( * ) + - COALESCE ( + - 67, + + 0 ) col1
----
83

query I rowsort
SELECT DISTINCT 97 * 90 AS col2
----
8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT + + NULLIF ( + + 4, CAST( NULL AS SIGNED ) ) * + 25 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-5965
SELECT + + NULLIF ( + + 4, CAST ( NULL AS INTEGER ) ) * + 25 AS col0
----
100

query I rowsort
SELECT DISTINCT 55 * + 30 AS col2
----
1650

query I rowsort
SELECT + 7 - + + 20
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT ALL 13 - + 32 DIV - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 13 - + 32 / - COUNT ( * )
----
45

query I rowsort
SELECT + 25 * 49 AS col0
----
1225

query I rowsort
SELECT DISTINCT 31 * - - 31
----
961

query II rowsort
SELECT ALL 86 AS col1, 65 AS col1
----
86
65

query II rowsort
SELECT ALL 38 AS col0, 93 + 85 AS col0
----
38
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + 71 + - 76 - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 71 + - 76 - + COUNT ( * )
----
-6

query I rowsort
SELECT + 89 * - 14 * - 21
----
26166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT COUNT( * ) DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT COUNT ( * ) / + 51 AS col2
----
0

query I rowsort
SELECT + 65 * 31
----
2015

query II rowsort
SELECT - 97 AS col2, 34 AS col2
----
-97
34

query II rowsort
SELECT ALL 49 AS col1, 12 + ( + 14 ) col0
----
49
26

query I rowsort
SELECT + 18 + - 71 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL 6 AS col2, + COUNT( - - 91 ) + + 36 + + 66
----
6
103

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL 6 AS col2, + COUNT ( - - 91 ) + + 36 + + 66
----
6
103

query I rowsort
SELECT - 35 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5982
SELECT - CASE COUNT( * ) WHEN 84 THEN + + MIN( DISTINCT + ( - - NULLIF ( - 60, + 99 ) ) ) / 33 WHEN 45 THEN NULL ELSE NULL END / - + CAST( 9 AS SIGNED ) + - CAST( 41 AS SIGNED ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT - CASE COUNT ( * ) WHEN 84 THEN + + MIN ( DISTINCT + ( - - NULLIF ( - 60, + 99 ) ) ) / 33 WHEN 45 THEN NULL ELSE NULL END / - + CAST ( 9 AS INTEGER ) + - CAST ( 41 AS INTEGER ) + 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 58 * + - 98 AS col1
----
-5684

query I rowsort
SELECT ( - 18 ) col0
----
-18

query I rowsort
SELECT + 99 + ( - 96 ) col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT - 5 * + - COUNT( * ) * - 43, - 42 col1
----
-215
-42

skipif mysql # not compatible
query II rowsort label-5986
SELECT - 5 * + - COUNT ( * ) * - 43, - 42 col1
----
-215
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5987
SELECT DISTINCT 76 * 68 + + CASE + + 25 WHEN SUM( - + 19 ) - - 68 * + 48 + + 6 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END * + 21 AS col2, - 50 AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-5987
SELECT DISTINCT 76 * 68 + + CASE + + 25 WHEN SUM ( - + 19 ) - - 68 * + 48 + + 6 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END * + 21 AS col2, - 50 AS col1
----
NULL
-50

query I rowsort
SELECT ( + + 32 ) AS col2
----
32

query I rowsort
SELECT ALL - 19 * - - 35 * + + 48 + 9 * 44 AS col1
----
-31524

query I rowsort
SELECT - 44 + + 7 + + 89
----
52

query I rowsort
SELECT ALL 37 * - ( - 43 ) + + - 3 + + - ( 80 ) AS col0
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT - 40 DIV - 51 * CASE - 59 WHEN - 9 THEN + 26 WHEN ( - CASE + 48 WHEN - ( - + 77 ) + - - 60 DIV + 12 + - 17 + - 91 - 62 * + 64 THEN NULL WHEN + + ( - + 43 ) + + 25 + - 76 THEN NULL ELSE + NULLIF ( - 0, - 10 ) DIV - 7 END ) THEN + 11 ELSE - 74 - - - 23 END
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - 40 / - 51 * CASE - 59 WHEN - 9 THEN + 26 WHEN ( - CASE + 48 WHEN - ( - + 77 ) + - - 60 / + 12 + - 17 + - 91 - 62 * + 64 THEN NULL WHEN + + ( - + 43 ) + + 25 + - 76 THEN NULL ELSE + NULLIF ( - 0, - 10 ) / - 7 END ) THEN + 11 ELSE - 74 - - - 23 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - 11 + COUNT( * ) + + COUNT( * ) * ( - 10 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 11 + COUNT ( * ) + + COUNT ( * ) * ( - 10 ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT ALL + + 74 * - - ( 46 ) * - + CAST( + - 57 AS SIGNED )
----
194028

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + + 74 * - - ( 46 ) * - + CAST ( + - 57 AS INTEGER )
----
194028

query I rowsort
SELECT - + 2 + + 50 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT - + CASE + 28 WHEN 93 * - + 23 + + + 77 THEN + 57 END * - 71 + 53 + - - COUNT( 18 ) - + - COUNT( * ) / - - COALESCE ( - 15, - 34, COALESCE ( 99, - 64 + - COALESCE ( + 8, 78, - NULLIF ( 7, - 73 * + 22 + - 10 ) ) + - - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT - + CASE + 28 WHEN 93 * - + 23 + + + 77 THEN + 57 END * - 71 + 53 + - - COUNT ( 18 ) - + - COUNT ( * ) / - - COALESCE ( - 15, - 34, COALESCE ( 99, - 64 + - COALESCE ( + 8, 78, - NULLIF ( 7, - 73 * + 22 + - 10 ) ) + - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL 61 * - CASE + 28 WHEN COUNT( * ) THEN - - 98 END * - + 75 - - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 61 * - CASE + 28 WHEN COUNT ( * ) THEN - - 98 END * - + 75 - - 71 AS col1
----
NULL

query I rowsort
SELECT - + 52 * + + 88 AS col2
----
-4576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT ALL CAST( + SUM( DISTINCT + 31 ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL CAST ( + SUM ( DISTINCT + 31 ) AS INTEGER ) AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6000
SELECT DISTINCT CAST( - 28 AS SIGNED ), - CAST( NULL AS SIGNED ) + 48 AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6000
SELECT DISTINCT CAST ( - 28 AS INTEGER ), - CAST ( NULL AS INTEGER ) + 48 AS col1
----
-28
NULL

query II rowsort
SELECT + 1 * + 56 AS col2, - 99 + 15
----
56
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT + MIN( ALL + - 55 ) + 99 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6002
SELECT + MIN ( ALL + - 55 ) + 99 AS col1
----
44

query I rowsort
SELECT + 54 + - ( - ( ( - - 82 ) ) ) * - - 2 * + 95 AS col2
----
15634

query I rowsort
SELECT + 65 * COALESCE ( + - 11, - 85 + - ( + - ( 85 ) ) ) * 62 AS col1
----
-44330

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT MAX( - 51 ) + + + 79 * 46 AS col0
----
3583

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT MAX ( - 51 ) + + + 79 * 46 AS col0
----
3583

query I rowsort
SELECT ALL 12 + 48 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT ALL CASE - 97 WHEN + + 77 - + COUNT( * ) THEN NULL ELSE - + MIN( - + 90 ) + + 90 END + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * NULLIF ( + SUM( - - 81 ), + + COUNT( * ) ) / - ( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL CASE - 97 WHEN + + 77 - + COUNT ( * ) THEN NULL ELSE - + MIN ( - + 90 ) + + 90 END + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * NULLIF ( + SUM ( - - 81 ), + + COUNT ( * ) ) / - ( - 81 )
----
NULL

query II rowsort
SELECT + 82 - - 56 * + + 12 - 22 AS col1, 42
----
732
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT - CAST( - COUNT( DISTINCT 27 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6009
SELECT - CAST ( - COUNT ( DISTINCT 27 ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT + 99 DIV + + 99 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6010
SELECT + 99 / + + 99 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT + 58 - - - 40 + - ( + 82 ) + + + CAST( + 46 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-6011
SELECT + 58 - - - 40 + - ( + 82 ) + + + CAST ( + 46 AS INTEGER )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT - 81 + - 13 DIV 10 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6012
SELECT - 81 + - 13 / 10 AS col2
----
-82

query I rowsort
SELECT - NULLIF ( - 51, + - 80 ) * - 99
----
-5049

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT ALL 46 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL 46 / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT + CAST( - + COALESCE ( + 58, 76, + + 66 + 52 * + + COUNT( * ) ) AS SIGNED ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-6015
SELECT + CAST ( - + COALESCE ( + 58, 76, + + 66 + 52 * + + COUNT ( * ) ) AS INTEGER ) col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL NULLIF ( + CASE + 51 WHEN + 99 THEN NULL WHEN - 52 THEN + + 63 END, + 30 ) / - 69 * - + 59 + + + 25 / 30 * + + SUM( DISTINCT 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL NULLIF ( + CASE + 51 WHEN + 99 THEN NULL WHEN - 52 THEN + + 63 END, + 30 ) / - 69 * - + 59 + + + 25 / 30 * + + SUM ( DISTINCT 60 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT + ( - 70 ) DIV - SUM( + 36 ) + + - 91 DIV + SUM( DISTINCT - 69 )
----
2

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + ( - 70 ) / - SUM ( + 36 ) + + - 91 / + SUM ( DISTINCT - 69 )
----
2

query I rowsort
SELECT ALL - - 39 * - 99 * - - 52
----
-200772

query II rowsort
SELECT ALL + 11 * 98 AS col0, + 61 * - 27 AS col1
----
1078
-1647

query I rowsort
SELECT DISTINCT - 78 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT COUNT( * ) * + ( + 52 ) * 57 * 86 + - - ( + 70 ) AS col0
----
254974

skipif mysql # not compatible
query I rowsort label-6021
SELECT COUNT ( * ) * + ( + 52 ) * 57 * 86 + - - ( + 70 ) AS col0
----
254974

query I rowsort
SELECT - + 92 * - 79 + 54 + - COALESCE ( 98, 46 )
----
7224

query I rowsort
SELECT DISTINCT + 17 * - 89 - - 67 + - 38 + 35
----
-1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT CAST( NULL AS SIGNED ) * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT CAST ( NULL AS INTEGER ) * - + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL COUNT( * ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL COUNT ( * ) - 34
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT 98 * - MIN( 42 ) AS col2
----
-4116

skipif mysql # not compatible
query I rowsort label-6026
SELECT 98 * - MIN ( 42 ) AS col2
----
-4116

query I rowsort
SELECT - 85 * + 66 AS col2
----
-5610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT ALL + COALESCE ( - - ( MIN( - 7 ) ), + + 99 ) DIV + 96 * - 39 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + COALESCE ( - - ( MIN ( - 7 ) ), + + 99 ) / + 96 * - 39 * + 93
----
0

query I rowsort
SELECT 47 * + 22 + + - 87 col0
----
947

query I rowsort
SELECT 6 * - 75 AS col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT 10 + ( - - SUM( - + 39 ) ) + - 0 * - + 34 * + - COUNT( * ) * - 11
----
-29

skipif mysql # not compatible
query I rowsort label-6031
SELECT 10 + ( - - SUM ( - + 39 ) ) + - 0 * - + 34 * + - COUNT ( * ) * - 11
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT COUNT( * ) * - + ( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6032
SELECT COUNT ( * ) * - + ( - 90 ) AS col1
----
90

query I rowsort
SELECT DISTINCT - 57 * + - 23
----
1311

query I rowsort
SELECT ALL - 84 + 36 + + + 6 + 48 * - 44 * + NULLIF ( + 77, + 49 + - - 23 ) AS col0
----
-162666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT COUNT( * ) - + NULLIF ( ( COALESCE ( - - 80, - + COUNT( * ) ) ), - 56 ) + + + 84 DIV + 14
----
-73

skipif mysql # not compatible
query I rowsort label-6035
SELECT COUNT ( * ) - + NULLIF ( ( COALESCE ( - - 80, - + COUNT ( * ) ) ), - 56 ) + + + 84 / + 14
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT + COUNT( * ) + + MIN( - 11 ) + - 83 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + COUNT ( * ) + + MIN ( - 11 ) + - 83 AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6037
SELECT ALL + 39 + 30 + + - 46 * + 39 * - - NULLIF ( + - CAST( NULL AS SIGNED ), + + MAX( + - 97 ) ) + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL + 39 + 30 + + - 46 * + 39 * - - NULLIF ( + - CAST ( NULL AS INTEGER ), + + MAX ( + - 97 ) ) + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL - ( + - ( + - 1 ) ) + - 33 * - 50 * - - ( MIN( + + 40 ) ) AS col2
----
65999

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - ( + - ( + - 1 ) ) + - 33 * - 50 * - - ( MIN ( + + 40 ) ) AS col2
----
65999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT 25 + - CAST( 0 AS SIGNED ) * - 78
----
25

skipif mysql # not compatible
query I rowsort label-6039
SELECT 25 + - CAST ( 0 AS INTEGER ) * - 78
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT 34 + + CASE + 69 WHEN + - 83 THEN ( + 96 ) WHEN - COUNT( * ) * + COUNT( * ) THEN - 63 ELSE NULL END - - 12 * - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT 34 + + CASE + 69 WHEN + - 83 THEN ( + 96 ) WHEN - COUNT ( * ) * + COUNT ( * ) THEN - 63 ELSE NULL END - - 12 * - CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT CASE + COUNT( * ) WHEN + + CAST( - + 25 AS SIGNED ) - 0 + 79 + + SUM( DISTINCT + 35 ) * + CAST( NULL AS SIGNED ) THEN 34 - + 26 END * - COALESCE ( + + AVG ( 22 ), + 43 + COALESCE ( - 1, - 29 ) * + 37 + - AVG ( 82 ) * - COUNT( * ), - + 16 * 67 + + COUNT( * ) ) - + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT CASE + COUNT ( * ) WHEN + + CAST ( - + 25 AS INTEGER ) - 0 + 79 + + SUM ( DISTINCT + 35 ) * + CAST ( NULL AS INTEGER ) THEN 34 - + 26 END * - COALESCE ( + + AVG ( 22 ), + 43 + COALESCE ( - 1, - 29 ) * + 37 + - AVG ( 82 ) * - COUNT ( * ), - + 16 * 67 + + COUNT ( * ) ) - + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT 79 - + - COUNT( * ) - + ( + COALESCE ( + 72, + 14 * + 31 ) ) - COUNT( * ) * - + MAX( - - NULLIF ( + 46, 3 ) ) * + 80
----
3688

skipif mysql # not compatible
query I rowsort label-6042
SELECT 79 - + - COUNT ( * ) - + ( + COALESCE ( + 72, + 14 * + 31 ) ) - COUNT ( * ) * - + MAX ( - - NULLIF ( + 46, 3 ) ) * + 80
----
3688

query I rowsort
SELECT ALL 64 + - 91 AS col1
----
-27

query I rowsort
SELECT ALL 22 + - 42
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT ALL + COUNT( * ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + COUNT ( * ) / + 75
----
0

query II rowsort
SELECT ALL 99 - - 2 + 53 AS col1, - 35 AS col0
----
154
-35

query I rowsort
SELECT - 17 + - NULLIF ( - 55, + 69 * + 21 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT + + ( 52 ) * - MAX( DISTINCT 94 ) * - + 79 - 34 * - 28 col0
----
387104

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + + ( 52 ) * - MAX ( DISTINCT 94 ) * - + 79 - 34 * - 28 col0
----
387104

query I rowsort
SELECT ALL - 40 * + + 25 AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT COUNT( * ) + - 12 - + CASE + ( + 79 ) WHEN ( - 99 ) THEN - 23 - AVG ( ALL 46 ) END * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( * ) + - 12 - + CASE + ( + 79 ) WHEN ( - 99 ) THEN - 23 - AVG ( ALL 46 ) END * 59 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 66 ) col0
----
-66

query I rowsort
SELECT DISTINCT 32 - - 53 * - 89
----
-4685

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6053
SELECT + - CAST( 47 AS SIGNED ) * + ( 32 ) + 6 AS col1, - 84
----
-1498
-84

skipif mysql # not compatible
query II rowsort label-6053
SELECT + - CAST ( 47 AS INTEGER ) * + ( 32 ) + 6 AS col1, - 84
----
-1498
-84

query I rowsort
SELECT COALESCE ( + CASE + 84 WHEN - 92 * + 88 THEN + 59 WHEN 13 THEN NULL WHEN 35 THEN NULL ELSE NULL END, 56 )
----
56

query I rowsort
SELECT ALL - - 59 col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT ALL 3 DIV ( 27 ) * - 64
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL 3 / ( 27 ) * - 64
----
0

query I rowsort
SELECT + 42 + 97 AS col0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT - COALESCE ( + 4, ( - 53 ) * - 92 * - 61 ) * + 24 - + ( + + CAST( NULL AS SIGNED ) ) * + CAST( 29 AS SIGNED ) + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT - COALESCE ( + 4, ( - 53 ) * - 92 * - 61 ) * + 24 - + ( + + CAST ( NULL AS INTEGER ) ) * + CAST ( 29 AS INTEGER ) + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + 83 * - COUNT( * ) + 48
----
-35

skipif mysql # not compatible
query I rowsort label-6059
SELECT + 83 * - COUNT ( * ) + 48
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT CAST( NULL AS SIGNED ) * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT CAST ( NULL AS INTEGER ) * 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - COUNT( DISTINCT - 4 ) * - 29 * + - 73 + + + 1 * - + 77 * 39
----
-5120

skipif mysql # not compatible
query I rowsort label-6061
SELECT - COUNT ( DISTINCT - 4 ) * - 29 * + - 73 + + + 1 * - + 77 * 39
----
-5120

query I rowsort
SELECT ALL 7 + - 79 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 35 + - - COUNT( - NULLIF ( 72, 27 ) )
----
36

skipif mysql # not compatible
query I rowsort label-6063
SELECT 35 + - - COUNT ( - NULLIF ( 72, 27 ) )
----
36

query II rowsort
SELECT DISTINCT 88 AS col1, 47 + - 43
----
88
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT ALL CAST( NULL AS SIGNED ) + + - 19, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL CAST ( NULL AS INTEGER ) + + - 19, 71 AS col0
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT + MIN( DISTINCT 37 ) + + - 18
----
19

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT + MIN ( DISTINCT 37 ) + + - 18
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT 35 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT 35 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 70 + ( COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-6068
SELECT 70 + ( COUNT ( * ) )
----
71

query I rowsort
SELECT 79 + + ( + 25 )
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT DISTINCT 99 DIV + - 85
----
-1

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT 99 / + - 85
----
-1

query I rowsort
SELECT ALL + 8 * - 10 AS col2
----
-80

query I rowsort
SELECT ALL - 54 - + 5
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL - SUM( ALL + 69 ) * + 15 AS col1
----
-1035

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - SUM ( ALL + 69 ) * + 15 AS col1
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT - 36 - - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT - 36 - - + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL + 9 * COUNT( * ) * + - COALESCE ( 24, - + COUNT( * ) ) * + ( ( + MAX( DISTINCT - 56 ) ) )
----
12096

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + 9 * COUNT ( * ) * + - COALESCE ( 24, - + COUNT ( * ) ) * + ( ( + MAX ( DISTINCT - 56 ) ) )
----
12096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT - - ( - CAST( + 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6076
SELECT - - ( - CAST ( + 0 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6077
SELECT ALL + 43 AS col2, 28 * NULLIF ( - - 11, + - CASE 45 WHEN - + 32 THEN NULL WHEN - 38 + - - COUNT( * ) THEN + 44 END * - 81 ) * ( + ( - 80 ) ) + + - 11 - - 76 / ( 84 ) * + - COUNT( * ) + - CAST( NULL AS DECIMAL ) * - ( + 75 ) AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL + 43 AS col2, 28 * NULLIF ( - - 11, + - CASE 45 WHEN - + 32 THEN NULL WHEN - 38 + - - COUNT ( * ) THEN + 44 END * - 81 ) * ( + ( - 80 ) ) + + - 11 - - 76 / ( 84 ) * + - COUNT ( * ) + - CAST ( NULL AS REAL ) * - ( + 75 ) AS col1
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT - - ( - + 75 ) - - COUNT( DISTINCT - 11 ) - + 34
----
-108

skipif mysql # not compatible
query I rowsort label-6078
SELECT - - ( - + 75 ) - - COUNT ( DISTINCT - 11 ) - + 34
----
-108

query II rowsort
SELECT ALL + 74, 43 AS col0
----
74
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT + COUNT( * ) + + + 10 AS col1, + ( - 70 ) AS col1
----
11
-70

skipif mysql # not compatible
query II rowsort label-6080
SELECT + COUNT ( * ) + + + 10 AS col1, + ( - 70 ) AS col1
----
11
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT DISTINCT + COUNT( * ) AS col0, + 19 AS col1
----
1
19

skipif mysql # not compatible
query II rowsort label-6081
SELECT DISTINCT + COUNT ( * ) AS col0, + 19 AS col1
----
1
19

onlyif mysql # DIV for integer division: 
query II rowsort label-6082
SELECT DISTINCT + 1 DIV 54, 63 AS col0
----
0
63

skipif mysql # not compatible
query II rowsort label-6082
SELECT DISTINCT + 1 / 54, 63 AS col0
----
0
63

query I rowsort
SELECT + - 90 - + 50 - 57
----
-197

query I rowsort
SELECT ALL + ( 27 ) * 15 * + + 80 AS col0
----
32400

query I rowsort
SELECT + + 73 * - 49 + - 17
----
-3594

query I rowsort
SELECT - 7 * 7
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT COUNT( * ), + 10 col0
----
1
10

skipif mysql # not compatible
query II rowsort label-6087
SELECT COUNT ( * ), + 10 col0
----
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL + - CAST( NULL AS SIGNED ) * - - CAST( + - 66 AS SIGNED ) + 73 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - CAST ( + - 66 AS INTEGER ) + 73 * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL - ( - - 3 ) * 64 + - + 24 + + + SUM( - + 92 )
----
-308

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - ( - - 3 ) * 64 + - + 24 + + + SUM ( - + 92 )
----
-308

query I rowsort
SELECT + 43 * 23
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT + 84 * - 22 + + + MIN( DISTINCT 58 ) * - 86 AS col1
----
-6836

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT + 84 * - 22 + + + MIN ( DISTINCT 58 ) * - 86 AS col1
----
-6836

query I rowsort
SELECT ALL 89 * + 78
----
6942

query I rowsort
SELECT ALL - 51 * - 88 + + 25 AS col1
----
4513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT + 7 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + 7 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( + - 10 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT COUNT( DISTINCT 80 )
----
1

skipif mysql # not compatible
query I rowsort label-6096
SELECT COUNT ( DISTINCT 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6097
SELECT + 83 + - ( + - SUM( DISTINCT CAST( 5 AS SIGNED ) ) ) AS col2, - 11
----
88
-11

skipif mysql # not compatible
query II rowsort label-6097
SELECT + 83 + - ( + - SUM ( DISTINCT CAST ( 5 AS INTEGER ) ) ) AS col2, - 11
----
88
-11

query I rowsort
SELECT 21 * 88 + + + 21 AS col1
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - NULLIF ( + COUNT( - 33 ), - 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6099
SELECT - NULLIF ( + COUNT ( - 33 ), - 72 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6100
SELECT + COALESCE ( + 96, - CAST( NULL AS SIGNED ) * - - COUNT( * ) ) + + + COUNT( * ) AS col2, 93 + - + 1 AS col2
----
97
92

skipif mysql # not compatible
query II rowsort label-6100
SELECT + COALESCE ( + 96, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) ) + + + COUNT ( * ) AS col2, 93 + - + 1 AS col2
----
97
92

query I rowsort
SELECT - 41 * - 59 AS col2
----
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + 53 * ( - 37 ) * - MIN( + 11 ) + + + 84 + + ( 94 ) AS col2
----
21749

skipif mysql # not compatible
query I rowsort label-6102
SELECT + 53 * ( - 37 ) * - MIN ( + 11 ) + + + 84 + + ( 94 ) AS col2
----
21749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT ALL + 22 - - - 26 + AVG ( 60 ) / - + MAX( - - 43 ) * COUNT( * ) - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 68 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 22 - - - 26 + AVG ( 60 ) / - + MAX ( - - 43 ) * COUNT ( * ) - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 68 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT + COUNT( * ) - + 82 DIV + - 88 - + 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6104
SELECT + COUNT ( * ) - + 82 / + - 88 - + 21 AS col0
----
-20

query I rowsort
SELECT + 5 - 4 + + 73 + - 49 * 3 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6106
SELECT ALL - 49 DIV COALESCE ( - ( - 8 ), 31 * - 9 * 17 - 68 DIV + 89 + - COUNT( * ) + 55 DIV - ( 87 ) + - COUNT( * ), - - 22 + - + 20 )
----
-6

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - 49 / COALESCE ( - ( - 8 ), 31 * - 9 * 17 - 68 / + 89 + - COUNT ( * ) + 55 / - ( 87 ) + - COUNT ( * ), - - 22 + - + 20 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT DISTINCT CASE + 99 WHEN + 27 * CASE + 25 WHEN + + 60 * - AVG ( - 38 ) THEN NULL WHEN - 65 * MAX( + - CAST( 72 AS SIGNED ) ) * + 40 + - 16 THEN + 75 END THEN NULL WHEN 66 THEN NULL ELSE + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT CASE + 99 WHEN + 27 * CASE + 25 WHEN + + 60 * - AVG ( - 38 ) THEN NULL WHEN - 65 * MAX ( + - CAST ( 72 AS INTEGER ) ) * + 40 + - 16 THEN + 75 END THEN NULL WHEN 66 THEN NULL ELSE + 83 END
----
83

query I rowsort
SELECT + 69 + + - 75
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6109
SELECT - CAST( NULL AS SIGNED ) / 93 col1, + 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6109
SELECT - CAST ( NULL AS INTEGER ) / 93 col1, + 19 AS col2
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + 66 + + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6110
SELECT + 66 + + - COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT - CAST( NULL AS SIGNED ) - ( + - 97 ) + + NULLIF ( + 56, - 96 ) + + 10 + 99 * - ( - 15 ) * 90 + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT - CAST ( NULL AS INTEGER ) - ( + - 97 ) + + NULLIF ( + 56, - 96 ) + + 10 + 99 * - ( - 15 ) * 90 + - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL - - 40 * MIN( + + ( ( + NULLIF ( + 70, - 49 ) ) ) )
----
2800

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - - 40 * MIN ( + + ( ( + NULLIF ( + 70, - 49 ) ) ) )
----
2800

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT - - ( 63 ) DIV - - 1 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6113
SELECT - - ( 63 ) / - - 1 AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ALL - 63 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - 63 / 75
----
0

query I rowsort
SELECT ALL + 99 * - 49 + + + 48
----
-4803

query I rowsort
SELECT DISTINCT - + 73 * + + 99
----
-7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) * 84 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) * 84 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL - COUNT( * ) / CASE SUM( ALL + 70 ) WHEN - 40 THEN NULL WHEN 8 + + 38 * + - 33 THEN 96 + + MAX( + 48 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - COUNT ( * ) / CASE SUM ( ALL + 70 ) WHEN - 40 THEN NULL WHEN 8 + + 38 * + - 33 THEN 96 + + MAX ( + 48 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT - COUNT( * ) * - COUNT( * ) * 98 * + - CASE - - 53 WHEN + + COUNT( * ) + + 97 THEN - - 20 WHEN + 85 THEN NULL WHEN + 87 THEN - 80 ELSE NULL END + + + 85 AS col1, + 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6119
SELECT - COUNT ( * ) * - COUNT ( * ) * 98 * + - CASE - - 53 WHEN + + COUNT ( * ) + + 97 THEN - - 20 WHEN + 85 THEN NULL WHEN + 87 THEN - 80 ELSE NULL END + + + 85 AS col1, + 37
----
NULL
37

query I rowsort
SELECT - - 17 + - + 65
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ALL + 43 DIV - - 56 + + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + 43 / - - 56 + + - 21
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT - 39 DIV - + 94 + 23 - - 45 * 39 * + - 26 AS col2
----
-45607

skipif mysql # not compatible
query I rowsort label-6122
SELECT - 39 / - + 94 + 23 - - 45 * 39 * + - 26 AS col2
----
-45607

query I rowsort
SELECT - 19 + - 86
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6124
SELECT ALL - 7 DIV COALESCE ( 60, + + 47 ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - 7 / COALESCE ( 60, + + 47 ) + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ( - COUNT( - 19 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6125
SELECT ( - COUNT ( - 19 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT COUNT( * ) * 91 * - 55 + + 94
----
-4911

skipif mysql # not compatible
query I rowsort label-6126
SELECT COUNT ( * ) * 91 * - 55 + + 94
----
-4911

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT COALESCE ( - 8, - 88 * + + 47 ) * - + COUNT( * ) + + + 16 + + 81 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-6127
SELECT COALESCE ( - 8, - 88 * + + 47 ) * - + COUNT ( * ) + + + 16 + + 81 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL COUNT( DISTINCT 93 ) * 99 * - + CASE 85 WHEN - 44 + + 69 THEN NULL ELSE + - 26 + - - 52 * 62 END
----
-316602

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL COUNT ( DISTINCT 93 ) * 99 * - + CASE 85 WHEN - 44 + + 69 THEN NULL ELSE + - 26 + - - 52 * 62 END
----
-316602

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT 13 * + 95 - + COUNT( - 22 )
----
1234

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT 13 * + 95 - + COUNT ( - 22 )
----
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + NULLIF ( - COUNT( * ), - 15 * 90 * + - 55 - 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6130
SELECT + NULLIF ( - COUNT ( * ), - 15 * 90 * + - 55 - 44 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT + 53 * + CASE + 91 WHEN + + COUNT( * ) THEN - COALESCE ( + 81, + + 74, - - 3 ) + 9 + - ( 4 ) * - COUNT( * ) WHEN + 25 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT + 53 * + CASE + 91 WHEN + + COUNT ( * ) THEN - COALESCE ( + 81, + + 74, - - 3 ) + 9 + - ( 4 ) * - COUNT ( * ) WHEN + 25 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL + MIN( ALL + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + MIN ( ALL + 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT 54 * + 93 * 0 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6133
SELECT 54 * + 93 * 0 + + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL 11 - 29 + + + 78 AS col1, 86 * - 12 * + + 94 + + 45 * 46 + + 63 + - 32 * - 79
----
60
-92347

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT CASE + + 63 WHEN + 76 THEN + 18 END * 11 / - COUNT( 41 ) * + 86 - + + 76 - - 0 / - - 99 * + - 28 - + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT CASE + + 63 WHEN + 76 THEN + 18 END * 11 / - COUNT ( 41 ) * + 86 - + + 76 - - 0 / - - 99 * + - 28 - + + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT ALL 10, - 84 * - + SUM( ALL 15 ) * 17 AS col0
----
10
21420

skipif mysql # not compatible
query II rowsort label-6136
SELECT ALL 10, - 84 * - + SUM ( ALL 15 ) * 17 AS col0
----
10
21420

query I rowsort
SELECT 1 * + ( - 48 ) col2
----
-48

query II rowsort
SELECT - 29 * + 66 * - - 24 AS col1, - 39 * CASE - + NULLIF ( 78, 83 ) WHEN - 44 * - 46 * ( + 43 ) THEN + ( - 96 ) + + 12 END + 21 AS col2
----
-45936
NULL

query I rowsort
SELECT ALL + 34 + - 27 AS col0
----
7

query II rowsort
SELECT DISTINCT + 65, + NULLIF ( + - 18, + 22 * - 25 * + 26 ) AS col0
----
65
-18

query I rowsort
SELECT - 95 + 70
----
-25

query I rowsort
SELECT - 13 * - + 45
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT CASE - 75 WHEN - 48 THEN + CASE - MAX( - 70 ) WHEN 14 + 88 THEN 56 * - - 41 * COUNT( * ) * + 54 / COUNT( * ) END + 65 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT CASE - 75 WHEN - 48 THEN + CASE - MAX ( - 70 ) WHEN 14 + 88 THEN 56 * - - 41 * COUNT ( * ) * + 54 / COUNT ( * ) END + 65 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + 45 + - - 1 * - - NULLIF ( - COUNT( * ), + 38 )
----
44

skipif mysql # not compatible
query I rowsort label-6144
SELECT + 45 + - - 1 * - - NULLIF ( - COUNT ( * ), + 38 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT - 57 + + 16 + CASE - 61 WHEN 22 THEN + ( + + 4 ) WHEN 69 / - + 33 + + - 31 / + 44 THEN NULL WHEN + + COUNT( * ) THEN - SUM( - 6 ) * - 85 + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - 57 + + 16 + CASE - 61 WHEN 22 THEN + ( + + 4 ) WHEN 69 / - + 33 + + - 31 / + 44 THEN NULL WHEN + + COUNT ( * ) THEN - SUM ( - 6 ) * - 85 + 30 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT 88 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT 88 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6147
SELECT ALL - - ( + COUNT( ALL - 92 ) ), + 88 DIV - - 69 col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - - ( + COUNT ( ALL - 92 ) ), + 88 / - - 69 col1
----
1
1

query I rowsort
SELECT ALL - ( + ( - + 1 ) ) + + - 32 * 43 AS col1
----
-1375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT ALL - CAST( 55 AS SIGNED ) * 31 + - 75 col0
----
-1780

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - CAST ( 55 AS INTEGER ) * 31 + - 75 col0
----
-1780

query I rowsort
SELECT COALESCE ( - + 51, - + ( + - 1 ) - + 30 + + 23 * - + 9 * 44 + 50 * ( 76 ) + 13 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6151
SELECT ALL - CASE + 89 WHEN - MIN( DISTINCT - 90 ) THEN - + 11 END AS col2, 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL - CASE + 89 WHEN - MIN ( DISTINCT - 90 ) THEN - + 11 END AS col2, 58 AS col2
----
NULL
58

query II rowsort
SELECT DISTINCT - ( + 56 ) AS col2, - 26 AS col2
----
-56
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6153
SELECT ALL - 85 - 53 + - COUNT( * ) + NULLIF ( + COUNT( * ), 9 ) * - NULLIF ( - + 24, COUNT( * ) - COUNT( + 46 ) + - 2 * + 36 + - + 1 ) AS col0, + 63 * 64 col1
----
-115
4032

skipif mysql # not compatible
query II rowsort label-6153
SELECT ALL - 85 - 53 + - COUNT ( * ) + NULLIF ( + COUNT ( * ), 9 ) * - NULLIF ( - + 24, COUNT ( * ) - COUNT ( + 46 ) + - 2 * + 36 + - + 1 ) AS col0, + 63 * 64 col1
----
-115
4032

query I rowsort
SELECT 54 * 66 AS col1
----
3564

query I rowsort
SELECT DISTINCT - 49 * - + ( + 83 )
----
4067

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT 59 * ( + 32 ) DIV + 60 + + 89 * + + 29 AS col0
----
2612

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 59 * ( + 32 ) / + 60 + + 89 * + + 29 AS col0
----
2612

query I rowsort
SELECT DISTINCT + 68 * + 17 col1
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT + 50 * + + MIN( - 3 )
----
-150

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + 50 * + + MIN ( - 3 )
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT SUM( DISTINCT - ( + 42 ) ) * + - COUNT( * ) + + 19 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6159
SELECT SUM ( DISTINCT - ( + 42 ) ) * + - COUNT ( * ) + + 19 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL MAX( + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL MAX ( + 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT 79 + + 52 + COUNT( * ) + MIN( ALL + 62 )
----
194

skipif mysql # not compatible
query I rowsort label-6161
SELECT 79 + + 52 + COUNT ( * ) + MIN ( ALL + 62 )
----
194

query I rowsort
SELECT DISTINCT - 16 + - + ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT DISTINCT - + 19 + - COUNT( * ) AS col0, + 68 col2
----
-20
68

skipif mysql # not compatible
query II rowsort label-6163
SELECT DISTINCT - + 19 + - COUNT ( * ) AS col0, + 68 col2
----
-20
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT ALL + 41 DIV - 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + 41 / - 33 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + COUNT( * ) / - ( 71 ) + 81 + - 20 + - CASE + 81 WHEN 91 THEN + + 39 * - 73 WHEN + 37 + - 31 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + COUNT ( * ) / - ( 71 ) + 81 + - 20 + - CASE + 81 WHEN 91 THEN + + 39 * - 73 WHEN + 37 + - 31 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6166
SELECT COUNT( + + 15 ) + 83 / - - ( + - 10 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT COUNT ( + + 15 ) + 83 / - - ( + - 10 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL - 80 + + 89 + - - SUM( - - 55 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - 80 + + 89 + - - SUM ( - - 55 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT MIN( 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6168
SELECT MIN ( 65 ) AS col1
----
65

query I rowsort
SELECT - COALESCE ( 37, 31 - - - 48 ) * + 23
----
-851

query I rowsort
SELECT DISTINCT 99 + - 22 * + 12 - - 70 AS col1
----
-95

query I rowsort
SELECT + 95 - + + 63
----
32

query I rowsort
SELECT DISTINCT - COALESCE ( 34, 38 ) + + + 34 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT DISTINCT + + 18 - 8 + MAX( - 13 ), + 51 col1
----
-3
51

skipif mysql # not compatible
query II rowsort label-6173
SELECT DISTINCT + + 18 - 8 + MAX ( - 13 ), + 51 col1
----
-3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + COALESCE ( CASE + - 84 WHEN - - 57 + - 58 * - 56 + + 90 THEN NULL WHEN - - MAX( - 91 ) THEN - 80 END, - - COUNT( * ) * 59, - 49 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + COALESCE ( CASE + - 84 WHEN - - 57 + - 58 * - 56 + + 90 THEN NULL WHEN - - MAX ( - 91 ) THEN - 80 END, - - COUNT ( * ) * 59, - 49 ) AS col0
----
59

query II rowsort
SELECT ALL - ( + 39 ) AS col0, + 20 AS col1
----
-39
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6176
SELECT 25 + + - 9 - 79 DIV COUNT( * ) DIV - 60 col1, + COUNT( * ) * + 3
----
17
3

skipif mysql # not compatible
query II rowsort label-6176
SELECT 25 + + - 9 - 79 / COUNT ( * ) / - 60 col1, + COUNT ( * ) * + 3
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL COUNT( * ) * - + NULLIF ( + ( + 92 ), MIN( - + 55 ) ) - + + ( - - 71 )
----
-163

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL COUNT ( * ) * - + NULLIF ( + ( + 92 ), MIN ( - + 55 ) ) - + + ( - - 71 )
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT 62 DIV 27 + - + 70
----
-68

skipif mysql # not compatible
query I rowsort label-6178
SELECT 62 / 27 + - + 70
----
-68

query I rowsort
SELECT 53 * - 12 + + 54 AS col2
----
-582

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT ALL + 26 * + MAX( 61 ) * + 32 * + 27 col2, 95
----
1370304
95

skipif mysql # not compatible
query II rowsort label-6180
SELECT ALL + 26 * + MAX ( 61 ) * + 32 * + 27 col2, 95
----
1370304
95

query I rowsort
SELECT DISTINCT + ( + - 77 )
----
-77

query I rowsort
SELECT DISTINCT 29 * - - 2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6183
SELECT + CASE - + 57 WHEN - + 94 THEN NULL WHEN - COALESCE ( - - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + + COUNT( * ) * 2 + + 75 ), + 15 + + + 19, + COALESCE ( + COUNT( * ), 55 ) ) * 50 THEN NULL WHEN 19 * - 26 * 55 - + + 48 THEN + CAST( + + 94 AS SIGNED ) * + ( - + 14 ) + 76 + + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT + CASE - + 57 WHEN - + 94 THEN NULL WHEN - COALESCE ( - - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + + COUNT ( * ) * 2 + + 75 ), + 15 + + + 19, + COALESCE ( + COUNT ( * ), 55 ) ) * 50 THEN NULL WHEN 19 * - 26 * 55 - + + 48 THEN + CAST ( + + 94 AS INTEGER ) * + ( - + 14 ) + 76 + + 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT MIN( DISTINCT 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6184
SELECT MIN ( DISTINCT 83 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT + ( 48 ) * + + COUNT( * ) + - + 67 + + 10 + + COUNT( * ) + - COUNT( * ) * + COALESCE ( 42, + 20 ) DIV COUNT( * ) + 87
----
37

skipif mysql # not compatible
query I rowsort label-6185
SELECT + ( 48 ) * + + COUNT ( * ) + - + 67 + + 10 + + COUNT ( * ) + - COUNT ( * ) * + COALESCE ( 42, + 20 ) / COUNT ( * ) + 87
----
37

query II rowsort
SELECT ALL + 40 AS col0, + CASE + + 9 WHEN - AVG ( DISTINCT + - 86 ) THEN - 53 END
----
40
NULL

query I rowsort
SELECT - NULLIF ( 94, - 45 ) * 42
----
-3948

query I rowsort
SELECT ALL 28 + + 21 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6189
SELECT + 65 AS col1, + COUNT( * ) DIV ( + + 59 ) * + 6 - - + 88
----
65
88

skipif mysql # not compatible
query II rowsort label-6189
SELECT + 65 AS col1, + COUNT ( * ) / ( + + 59 ) * + 6 - - + 88
----
65
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6190
SELECT DISTINCT + COUNT( * ) + 25 DIV - - 29 AS col2, + 90 * + ( - - 78 ) * - - 46 + + - CAST( + + NULLIF ( + 8, - 83 * - - ( - - 90 ) * 89 * - - 87 + 39 + - SUM( 15 ) ) AS SIGNED )
----
1
322912

skipif mysql # not compatible
query II rowsort label-6190
SELECT DISTINCT + COUNT ( * ) + 25 / - - 29 AS col2, + 90 * + ( - - 78 ) * - - 46 + + - CAST ( + + NULLIF ( + 8, - 83 * - - ( - - 90 ) * 89 * - - 87 + 39 + - SUM ( 15 ) ) AS INTEGER )
----
1
322912

query I rowsort
SELECT ALL - 64 + + 12
----
-52

query I rowsort
SELECT ALL + - 46 + - 8
----
-54

query I rowsort
SELECT - + NULLIF ( 81, - 99 ) * - 80 AS col2
----
6480

query I rowsort
SELECT DISTINCT + 84 + + + 49 AS col0
----
133

query I rowsort
SELECT - NULLIF ( 5, + - 81 ) * 87
----
-435

query I rowsort
SELECT + 4 * 89
----
356

query I rowsort
SELECT - 44 + 53 AS col2
----
9

query I rowsort
SELECT DISTINCT + + 4 + - 48 col1
----
-44

query I rowsort
SELECT COALESCE ( + 20, 55 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT ALL + CASE - - 58 WHEN + + 67 THEN - COALESCE ( - CAST( NULL AS SIGNED ), - 2 ) * - - ( - - 32 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + CASE - - 58 WHEN + + 67 THEN - COALESCE ( - CAST ( NULL AS INTEGER ), - 2 ) * - - ( - - 32 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 43, + 32 ) - + 9
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6202
SELECT + - CASE + CASE - 48 WHEN 57 THEN + - 68 - - COALESCE ( - ( - - 51 ), - + 0 * - ( + 12 ), - ( - 23 ) ) * - 27 - + 2 ELSE NULL END WHEN - + 74 THEN NULL WHEN + + 34 THEN NULL WHEN COALESCE ( 76, - 31 ) * + SUM( 67 ) * - 25 THEN + COALESCE ( 59, SUM( ALL - - 99 ), + 30 * - AVG ( 52 ), MIN( DISTINCT 37 ) + + CAST( MIN( + - 50 ) AS DECIMAL ) ) END + + - 51 + - - 1 * - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT + - CASE + CASE - 48 WHEN 57 THEN + - 68 - - COALESCE ( - ( - - 51 ), - + 0 * - ( + 12 ), - ( - 23 ) ) * - 27 - + 2 ELSE NULL END WHEN - + 74 THEN NULL WHEN + + 34 THEN NULL WHEN COALESCE ( 76, - 31 ) * + SUM ( 67 ) * - 25 THEN + COALESCE ( 59, SUM ( ALL - - 99 ), + 30 * - AVG ( 52 ), MIN ( DISTINCT 37 ) + + CAST ( MIN ( + - 50 ) AS REAL ) ) END + + - 51 + - - 1 * - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT + - ( - COUNT( * ) ) DIV - COUNT( DISTINCT + 44 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6203
SELECT + - ( - COUNT ( * ) ) / - COUNT ( DISTINCT + 44 ) AS col1
----
-1

query I rowsort
SELECT ALL + 19 * + 33 col0
----
627

query I rowsort
SELECT - - 44 * + 59 * + + 4 * + - 54 AS col2
----
-560736

query II rowsort
SELECT - + 35 AS col2, 95 + - - 64 AS col0
----
-35
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - 64 - - + 21 + + 37 + - + COUNT( + 98 ) * + MIN( ALL + 23 )
----
-29

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 64 - - + 21 + + 37 + - + COUNT ( + 98 ) * + MIN ( ALL + 23 )
----
-29

query I rowsort
SELECT ALL 31 * - - 82
----
2542

query I rowsort
SELECT DISTINCT ( + 57 ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6210
SELECT ALL CAST( 24 AS SIGNED ) * + CAST( + 75 AS SIGNED ) AS col0, - 79
----
1800
-79

skipif mysql # not compatible
query II rowsort label-6210
SELECT ALL CAST ( 24 AS INTEGER ) * + CAST ( + 75 AS INTEGER ) AS col0, - 79
----
1800
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6211
SELECT + COUNT( * ), - NULLIF ( SUM( ALL + 69 ), - + 46 ) + ( 20 ) AS col1
----
1
-49

skipif mysql # not compatible
query II rowsort label-6211
SELECT + COUNT ( * ), - NULLIF ( SUM ( ALL + 69 ), - + 46 ) + ( 20 ) AS col1
----
1
-49

query II rowsort
SELECT ( + 58 ) AS col1, 10
----
58
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT CASE + COUNT( * ) WHEN 12 THEN - - 83 WHEN 67 THEN - COUNT( * ) - - 97 + - 29 END * ( - 56 ) - - 85 - - 94 + 85 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT CASE + COUNT ( * ) WHEN 12 THEN - - 83 WHEN 67 THEN - COUNT ( * ) - - 97 + - 29 END * ( - 56 ) - - 85 - - 94 + 85 / COUNT ( * )
----
NULL

query I rowsort
SELECT ( - 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + ( + 41 ) * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-6215
SELECT + ( + 41 ) * - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ( - SUM( + + 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-6216
SELECT ( - SUM ( + + 46 ) )
----
-46

query II rowsort
SELECT ALL + 40 AS col2, + 74 * - + 76
----
40
-5624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6218
SELECT + 23 DIV - - MAX( DISTINCT - 63 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT + 23 / - - MAX ( DISTINCT - 63 ) col0
----
0

query I rowsort
SELECT DISTINCT ( - NULLIF ( - - 42, + - 81 ) ) * + + 91 + ( + 34 ) + + ( + - 42 ) AS col1
----
-3830

query I rowsort
SELECT ALL - 67 * + 76 + + 26 + - 59 AS col0
----
-5125

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + 87 * + SUM( DISTINCT - 4 ) * - 61 - - 3 * CASE - COUNT( * ) WHEN ( 60 ) THEN + + 52 + 89 WHEN - 19 / - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT + 87 * + SUM ( DISTINCT - 4 ) * - 61 - - 3 * CASE - COUNT ( * ) WHEN ( 60 ) THEN + + 52 + 89 WHEN - 19 / - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 81 * 41
----
3321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT - 93 * COALESCE ( - 16, + 37 + - 66 DIV + - COUNT( * ) * + 38 * 10 ) AS col0
----
1488

skipif mysql # not compatible
query I rowsort label-6223
SELECT - 93 * COALESCE ( - 16, + 37 + - 66 / + - COUNT ( * ) * + 38 * 10 ) AS col0
----
1488

query II rowsort
SELECT + 62 AS col2, 68
----
62
68

query I rowsort
SELECT DISTINCT 31 * + 75 * + + 15
----
34875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT + 5 + + COUNT( * ) - 20 + 4 * ( + 82 ) DIV ( + - 85 )
----
-17

skipif mysql # not compatible
query I rowsort label-6226
SELECT + 5 + + COUNT ( * ) - 20 + 4 * ( + 82 ) / ( + - 85 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT NULLIF ( + - 55, + + 25 * - + 67 * 8 + + 84 ) AS col1, + MIN( + 66 )
----
-55
66

skipif mysql # not compatible
query II rowsort label-6227
SELECT NULLIF ( + - 55, + + 25 * - + 67 * 8 + + 84 ) AS col1, + MIN ( + 66 )
----
-55
66

query I rowsort
SELECT - 6 * - 70 + - 9
----
411

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ( + MIN( 48 ) ) col1
----
48

skipif mysql # not compatible
query I rowsort label-6229
SELECT ( + MIN ( 48 ) ) col1
----
48

query I rowsort
SELECT + - ( - 48 ) AS col2
----
48

query I rowsort
SELECT + 32 + + 52 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - 2 * - COUNT( * ) + + - 93
----
-91

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 2 * - COUNT ( * ) + + - 93
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL ( + ( - COALESCE ( + COUNT( * ), - - 54, + COUNT( * ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL ( + ( - COALESCE ( + COUNT ( * ), - - 54, + COUNT ( * ) ) ) ) AS col1
----
-1

query I rowsort
SELECT - 46 + 18
----
-28

query II rowsort
SELECT ALL - 48 * + 61 * - 56 - + + 37 * - 64 * - 48 AS col2, 60 + - - 66 + - - 94
----
50304
220

query II rowsort
SELECT ALL + - 81 * + + 16 - - + ( ( - 46 ) ) * - 32, + 66 col1
----
176
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - - ( + 8 ) + COUNT( * ) + - - 13
----
22

skipif mysql # not compatible
query I rowsort label-6237
SELECT - - ( + 8 ) + COUNT ( * ) + - - 13
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + MIN( ALL + 54 ) + - COUNT( 19 ) + - 44 * - COUNT( * ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + MIN ( ALL + 54 ) + - COUNT ( 19 ) + - 44 * - COUNT ( * ) + - 91
----
NULL

query I rowsort
SELECT ALL - 79 * 23 + 60 AS col0
----
-1757

query I rowsort
SELECT - 5 * - 68
----
340

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6241
SELECT - 9, CAST( NULL AS DECIMAL ) + + 20 AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6241
SELECT - 9, CAST ( NULL AS REAL ) + + 20 AS col0
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + 32 + + SUM( ALL - 65 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 32 + + SUM ( ALL - 65 ) AS col0
----
-33

query I rowsort
SELECT 70 * 25 col0
----
1750

query I rowsort
SELECT DISTINCT 18 * - 29
----
-522

query II rowsort
SELECT 44 * - - 30, + 98 AS col0
----
1320
98

query I rowsort
SELECT ALL + 63 + - 16 + - + 50 + + 69 + - - 35 + + - 83 * - 85
----
7156

query I rowsort
SELECT 50 + - 8 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT 89 DIV - + 2
----
-44

skipif mysql # not compatible
query I rowsort label-6248
SELECT 89 / - + 2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT CAST( NULL AS SIGNED ) / - 55 - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( NULL AS INTEGER ) / - 55 - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT ALL COUNT( * ) + - + COUNT( * ), - 87 AS col2
----
0
-87

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL COUNT ( * ) + - + COUNT ( * ), - 87 AS col2
----
0
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + 65 * + SUM( DISTINCT 15 ) + 53 + CASE + 55 WHEN + 89 THEN + + 98 END - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 65 * + SUM ( DISTINCT 15 ) + 53 + CASE + 55 WHEN + 89 THEN + + 98 END - + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6252
SELECT CAST( NULL AS SIGNED ) - + 29 AS col1, 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6252
SELECT CAST ( NULL AS INTEGER ) - + 29 AS col1, 30
----
NULL
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT 36 DIV + + COUNT( * ) + + 7 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6253
SELECT 36 / + + COUNT ( * ) + + 7 AS col2
----
43

query I rowsort
SELECT ALL 35 + - 68 * - 14 * - 76
----
-72317

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT + 8 DIV - 28 + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 8 / - 28 + 31 AS col1
----
31

query I rowsort
SELECT ALL 11 + + 80
----
91

query I rowsort
SELECT 95 + 50
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT 40 + - - COALESCE ( - - COUNT( 8 ), + ( 0 ), - 80 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT 40 + - - COALESCE ( - - COUNT ( 8 ), + ( 0 ), - 80 ) AS col2
----
41

query I rowsort
SELECT 37 * 86 * + 88 + + 63 AS col0
----
280079

query I rowsort
SELECT ALL 75 + 40 AS col2
----
115

query II rowsort
SELECT 85 * + - ( + 19 ) * 57 + - 72 col0, 60
----
-92127
60

query I rowsort
SELECT 20 * - 0 * - + 38 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT - CAST( + 14 AS SIGNED ) * + + 42 * + + 18 * - ( - 37 ) + 70 AS col0
----
-391538

skipif mysql # not compatible
query I rowsort label-6263
SELECT - CAST ( + 14 AS INTEGER ) * + + 42 * + + 18 * - ( - 37 ) + 70 AS col0
----
-391538

query II rowsort
SELECT ALL - - ( + 85 ) * 39 AS col2, + COALESCE ( - 60, 87 ) AS col1
----
3315
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT 62 DIV + - ( ( 40 ) ) + - + ( 28 ) DIV - + 71 * + 41 + 53 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6265
SELECT 62 / + - ( ( 40 ) ) + - + ( 28 ) / - + 71 * + 41 + 53 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6266
SELECT SUM( 79 ) col1, + 3 + + COUNT( * ) DIV + - 32 * + 79
----
79
3

skipif mysql # not compatible
query II rowsort label-6266
SELECT SUM ( 79 ) col1, + 3 + + COUNT ( * ) / + - 32 * + 79
----
79
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL 49 * + SUM( + 9 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 49 * + SUM ( + 9 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - - CASE + - 37 WHEN - 93 THEN 87 END * 22 * - COUNT( * ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT - - CASE + - 37 WHEN - 93 THEN 87 END * 22 * - COUNT ( * ) + + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT ALL + CAST( + NULLIF ( + 17, - SUM( - + 22 ) ) AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + CAST ( + NULLIF ( + 17, - SUM ( - + 22 ) ) AS INTEGER ) AS col1
----
17

query I rowsort
SELECT - 11 + 93 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT ALL SUM( DISTINCT + - 21 ) AS col0, - 59 * - + SUM( ALL - - 77 ) AS col0
----
-21
4543

skipif mysql # not compatible
query II rowsort label-6271
SELECT ALL SUM ( DISTINCT + - 21 ) AS col0, - 59 * - + SUM ( ALL - - 77 ) AS col0
----
-21
4543

query I rowsort
SELECT - 78 + + 46 * + 84 AS col2
----
3786

query I rowsort
SELECT 63 - + + 15 * - + 36 AS col1
----
603

query I rowsort
SELECT DISTINCT 54 + - + 11 * 55 * - + 62 AS col2
----
37564

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL + 95 + + 39 * + 19 + COUNT( * )
----
837

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + 95 + + 39 * + 19 + COUNT ( * )
----
837

query I rowsort
SELECT 79 * + + 76
----
6004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6277
SELECT DISTINCT - 22 * - NULLIF ( - + ( - - 94 ), - + 44 + COUNT( * ) + - 98 ) * - + 50 * - 8 * + 0 DIV - 48 * 25 DIV - + 81 * - COUNT( * ) + - 31 + - 90 + + CAST( - 74 AS SIGNED ) * 63 AS col0, + COUNT( * ) + + + COUNT( * ) AS col0, - 95 AS col0
----
-4783
2
-95

skipif mysql # not compatible
query III rowsort label-6277
SELECT DISTINCT - 22 * - NULLIF ( - + ( - - 94 ), - + 44 + COUNT ( * ) + - 98 ) * - + 50 * - 8 * + 0 / - 48 * 25 / - + 81 * - COUNT ( * ) + - 31 + - 90 + + CAST ( - 74 AS INTEGER ) * 63 AS col0, + COUNT ( * ) + + + COUNT ( * ) AS col0, - 95 AS col0
----
-4783
2
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT SUM( DISTINCT + - 79 ) + - + 66 + - + ( ( MAX( + - 9 ) ) )
----
-136

skipif mysql # not compatible
query I rowsort label-6278
SELECT SUM ( DISTINCT + - 79 ) + - + 66 + - + ( ( MAX ( + - 9 ) ) )
----
-136

query I rowsort
SELECT ALL - 4 * - - 76 col1
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT 69 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT 69 / - 94
----
0

query II rowsort
SELECT 47 AS col2, + 28 AS col0
----
47
28

query I rowsort
SELECT ALL + 32 + + 29
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT - NULLIF ( - COUNT( + 11 ), 13 )
----
1

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - NULLIF ( - COUNT ( + 11 ), 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT + 96 * - ( - 22 ) * + 0 + - - 54 + - 22 - MAX( - 35 ) * + - 36 * 30
----
-37768

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + 96 * - ( - 22 ) * + 0 + - - 54 + - 22 - MAX ( - 35 ) * + - 36 * 30
----
-37768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6285
SELECT DISTINCT - COUNT( * ), + 98 + + COUNT( * ) * + 79 DIV + + 72 AS col2
----
-1
99

skipif mysql # not compatible
query II rowsort label-6285
SELECT DISTINCT - COUNT ( * ), + 98 + + COUNT ( * ) * + 79 / + + 72 AS col2
----
-1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT + 58 AS col1, + 74 * + + MIN( ALL 78 ) + - MAX( + 82 ) * + 91
----
58
-1690

skipif mysql # not compatible
query II rowsort label-6286
SELECT + 58 AS col1, + 74 * + + MIN ( ALL 78 ) + - MAX ( + 82 ) * + 91
----
58
-1690

onlyif mysql # aggregate syntax: 
query II rowsort label-6287
SELECT COUNT( * ) AS col0, 13
----
1
13

skipif mysql # not compatible
query II rowsort label-6287
SELECT COUNT ( * ) AS col0, 13
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT + 79 * COUNT( + 63 ) - - 65
----
144

skipif mysql # not compatible
query I rowsort label-6288
SELECT + 79 * COUNT ( + 63 ) - - 65
----
144

query I rowsort
SELECT 30 * - 34
----
-1020

query I rowsort
SELECT NULLIF ( + + 62, + 26 ) * + 71
----
4402

query I rowsort
SELECT DISTINCT 36 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT - SUM( DISTINCT 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - SUM ( DISTINCT 64 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT 97 AS col2, COUNT( * ) * + + 14 * + 20 AS col0
----
97
280

skipif mysql # not compatible
query II rowsort label-6293
SELECT 97 AS col2, COUNT ( * ) * + + 14 * + 20 AS col0
----
97
280

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL SUM( - - 38 ) * - + 91
----
-3458

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL SUM ( - - 38 ) * - + 91
----
-3458

query I rowsort
SELECT ALL - 61 * - 17
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT - COUNT( * ) * 68 - + 60 - - - 74
----
-202

skipif mysql # not compatible
query I rowsort label-6296
SELECT - COUNT ( * ) * 68 - + 60 - - - 74
----
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6297
SELECT DISTINCT - CAST( NULL AS SIGNED ), - 33 DIV - SUM( 22 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6297
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - 33 / - SUM ( 22 ) AS col2
----
NULL
1

query I rowsort
SELECT ALL - 12 * + 78
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + MIN( ALL - ( + 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-6299
SELECT + MIN ( ALL - ( + 50 ) )
----
-50

query I rowsort
SELECT + 87 - 97
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - NULLIF ( - 15, + + COUNT( * ) ) * + 48 AS col1
----
720

skipif mysql # not compatible
query I rowsort label-6301
SELECT - NULLIF ( - 15, + + COUNT ( * ) ) * + 48 AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ( - - COUNT( * ) ) + + - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6302
SELECT ( - - COUNT ( * ) ) + + - 84 AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT - 63 * - CAST( NULL AS SIGNED ) - + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 63 * - CAST ( NULL AS INTEGER ) - + + 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL 83 * + + CAST( + + 0 AS SIGNED ) + - - 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL 83 * + + CAST ( + + 0 AS INTEGER ) + - - 56 AS col1
----
56

query II rowsort
SELECT - 55 AS col1, - 96 + + - 45 AS col1
----
-55
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL 23 DIV + + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL 23 / + + 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT COUNT( * ) + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT COUNT ( * ) + 38 AS col1
----
39

query I rowsort
SELECT + 67 + + + ( + 70 ) AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-6309
SELECT ALL 65 + + 27 AS col2, + 81 * + 94 * COALESCE ( - + COUNT( ALL + + 27 ), + 71, + - 60, - COUNT( * ) ) col0
----
92
-7614

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL 65 + + 27 AS col2, + 81 * + 94 * COALESCE ( - + COUNT ( ALL + + 27 ), + 71, + - 60, - COUNT ( * ) ) col0
----
92
-7614

query I rowsort
SELECT + 71 + - ( + - 97 ) AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6311
SELECT - CAST( NULL AS SIGNED ) * + + 99 / - SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT - CAST ( NULL AS INTEGER ) * + + 99 / - SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - CASE + + 83 WHEN + + 6 THEN - 78 END, - 64 AS col1
----
NULL
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + NULLIF ( + 17, COALESCE ( - 92, - CASE + NULLIF ( - 45, - 35 ) WHEN CASE + - 89 WHEN COUNT( * ) THEN NULL WHEN + + ( + 6 ) THEN - COUNT( * ) END THEN - COUNT( * ) * COUNT( * ) WHEN - 71 THEN NULL END ) ) + - - 92 col0
----
109

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + NULLIF ( + 17, COALESCE ( - 92, - CASE + NULLIF ( - 45, - 35 ) WHEN CASE + - 89 WHEN COUNT ( * ) THEN NULL WHEN + + ( + 6 ) THEN - COUNT ( * ) END THEN - COUNT ( * ) * COUNT ( * ) WHEN - 71 THEN NULL END ) ) + - - 92 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT 64 + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT 64 + - COUNT ( * ) AS col2
----
63

query I rowsort
SELECT ALL - ( - 19 ) * + 86 col1
----
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + COUNT( * ) - MAX( ALL 8 )
----
-7

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + COUNT ( * ) - MAX ( ALL 8 )
----
-7

query I rowsort
SELECT + NULLIF ( 84, - + 24 * - - 47 ) * - + 88
----
-7392

query I rowsort
SELECT ( + + 44 ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT + 12 * - MAX( 80 ) * - CAST( 61 AS SIGNED ) + 20 - + 52
----
58528

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 12 * - MAX ( 80 ) * - CAST ( 61 AS INTEGER ) + 20 - + 52
----
58528

query I rowsort
SELECT - 63 - 66
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT 74 * + 48 / - + 83 / - - CASE 15 WHEN + COUNT( + - 74 ) + + COUNT( * ) THEN - + 76 * COUNT( * ) + + + 22 ELSE NULL END + + 98 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT 74 * + 48 / - + 83 / - - CASE 15 WHEN + COUNT ( + - 74 ) + + COUNT ( * ) THEN - + 76 * COUNT ( * ) + + + 22 ELSE NULL END + + 98 * + 5
----
NULL

query I rowsort
SELECT - 10 * 70 AS col0
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT + ( SUM( + 23 ) ) col0
----
23

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + ( SUM ( + 23 ) ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - - 21 + - - ( + MAX( ALL - 77 ) ) + - 58 * + 88
----
-5160

skipif mysql # not compatible
query I rowsort label-6324
SELECT - - 21 + - - ( + MAX ( ALL - 77 ) ) + - 58 * + 88
----
-5160

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT ALL + 52 DIV + 11 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + 52 / + 11 AS col2
----
4

query I rowsort
SELECT - 11 * - CASE + + ( + - 11 ) WHEN 9 THEN - 91 END + - 99 + 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - + 35 DIV - + ( 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT - + 35 / - + ( 46 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - ( + 10 ) DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT - ( + 10 ) / + + 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6329
SELECT - + 97 DIV - 1, CASE - - CAST( 27 AS SIGNED ) WHEN CAST( 47 AS SIGNED ) THEN + ( - 10 ) WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT - + 97 / - 1, CASE - - CAST ( 27 AS INTEGER ) WHEN CAST ( 47 AS INTEGER ) THEN + ( - 10 ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT ALL + + COUNT( * ) DIV - 67 * + COALESCE ( 22, + - COUNT( * ) ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + + COUNT ( * ) / - 67 * + COALESCE ( 22, + - COUNT ( * ) ) * + COUNT ( * )
----
0

query II rowsort
SELECT - 1 * - - 59 AS col2, + 41
----
-59
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT - 10 DIV + + 74 + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 10 / + + 74 + 42 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT MIN( DISTINCT 26 ) * ( - 16 ) DIV CAST( + COUNT( * ) AS SIGNED ) + + 69 + - 32 * - 98 + + 73 * + + COUNT( * ) AS col1
----
2862

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT MIN ( DISTINCT 26 ) * ( - 16 ) / CAST ( + COUNT ( * ) AS INTEGER ) + + 69 + - 32 * - 98 + + 73 * + + COUNT ( * ) AS col1
----
2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6334
SELECT ALL - + 15 * COALESCE ( 61, + 90 * + + 66, COUNT( * ), 15 * + 99 * 3 ) + + + ( COUNT( * ) ) + - - ( - MIN( ALL - 91 ) ) * - 47 * - CAST( - + 67 AS SIGNED ) * + 60 + 61 * COALESCE ( - 35, 92 - + + NULLIF ( + 48, 85 ), 94 ) DIV 14 + - 14 * 95 AS col1, 7 AS col2
----
-17195936
7

skipif mysql # not compatible
query II rowsort label-6334
SELECT ALL - + 15 * COALESCE ( 61, + 90 * + + 66, COUNT ( * ), 15 * + 99 * 3 ) + + + ( COUNT ( * ) ) + - - ( - MIN ( ALL - 91 ) ) * - 47 * - CAST ( - + 67 AS INTEGER ) * + 60 + 61 * COALESCE ( - 35, 92 - + + NULLIF ( + 48, 85 ), 94 ) / 14 + - 14 * 95 AS col1, 7 AS col2
----
-17195936
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL + + COUNT( DISTINCT - ( + + ( - + 18 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + + COUNT ( DISTINCT - ( + + ( - + 18 ) ) )
----
1

query I rowsort
SELECT ALL 2 * + 90 + + - 31 + - 6 + 90 * + COALESCE ( 57, + 47 )
----
5273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6337
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 64 + 6 + + 70, 74 + COUNT( * ) AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-6337
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 64 + 6 + + 70, 74 + COUNT ( * ) AS col1
----
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6338
SELECT ALL + CAST( - 77 AS SIGNED ), + SUM( + 5 ) AS col2
----
-77
5

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL + CAST ( - 77 AS INTEGER ), + SUM ( + 5 ) AS col2
----
-77
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT + 60 + + ( + MIN( + 89 ) ), 11 * + 85 * - COUNT( * ) AS col2
----
149
-935

skipif mysql # not compatible
query II rowsort label-6339
SELECT + 60 + + ( + MIN ( + 89 ) ), 11 * + 85 * - COUNT ( * ) AS col2
----
149
-935

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT ALL - 69 * + + 39 + + COUNT( * ) + + 50 AS col2, - 68
----
-2640
-68

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL - 69 * + + 39 + + COUNT ( * ) + + 50 AS col2, - 68
----
-2640
-68

query I rowsort
SELECT + + ( 35 ) * + + 93 col0
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - 30 - + CASE 46 WHEN CASE + ( + 83 ) WHEN + COUNT( * ) * - ( + + 21 ) THEN 66 END + - COALESCE ( + 41, - 27 ) * - - 85 THEN - 86 * - 21 + 93 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 30 - + CASE 46 WHEN CASE + ( + 83 ) WHEN + COUNT ( * ) * - ( + + 21 ) THEN 66 END + - COALESCE ( + 41, - 27 ) * - - 85 THEN - 86 * - 21 + 93 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT + 54 + ( + MIN( + 36 ) ) * - ( + 14 ) * 50
----
-25146

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 54 + ( + MIN ( + 36 ) ) * - ( + 14 ) * 50
----
-25146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT 59 + - ( + - 52 ) + NULLIF ( + COUNT( + - CAST( + + 56 AS SIGNED ) ), - + 28 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT 59 + - ( + - 52 ) + NULLIF ( + COUNT ( + - CAST ( + + 56 AS INTEGER ) ), - + 28 ) AS col2
----
112

query I rowsort
SELECT - CASE 92 WHEN 89 * + 78 / + 55 + 48 + 35 * - 33 + + - 61 + - + 0 / - 7 * - 8 THEN 31 * 84 * 62 * 70 ELSE 5 END
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT DISTINCT 65 DIV - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT 65 / - - COUNT ( * )
----
65

query I rowsort
SELECT DISTINCT 23 - + 90 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6348
SELECT + 94 + - - CASE 64 WHEN - + 52 THEN 6 ELSE 7 * 56 - - CASE + 54 WHEN + 57 THEN NULL WHEN - 29 * - - 63 * + + 82 + CAST( - + COUNT( * ) AS DECIMAL ) THEN + 19 * + 56 + + + 22 WHEN + 75 THEN NULL END END + - 29 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + 94 + - - CASE 64 WHEN - + 52 THEN 6 ELSE 7 * 56 - - CASE + 54 WHEN + 57 THEN NULL WHEN - 29 * - - 63 * + + 82 + CAST ( - + COUNT ( * ) AS REAL ) THEN + 19 * + 56 + + + 22 WHEN + 75 THEN NULL END END + - 29 + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - COALESCE ( COUNT( ALL 35 ), - + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-6349
SELECT - COALESCE ( COUNT ( ALL 35 ), - + 62 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT + 40 DIV NULLIF ( 29, - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6350
SELECT + 40 / NULLIF ( 29, - 63 ) AS col1
----
1

query I rowsort
SELECT + 46 * - - 66
----
3036

query II rowsort
SELECT DISTINCT 53 AS col2, + 79 AS col2
----
53
79

query I rowsort
SELECT - 22 * 13
----
-286

query I rowsort
SELECT - 40 + 72 + + 94 + + 37
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL SUM( - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL SUM ( - 89 ) AS col1
----
-89

query I rowsort
SELECT DISTINCT 57 * + 3 * - - 51 AS col1
----
8721

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + COUNT( + ( 16 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + COUNT ( + ( 16 ) ) AS col1
----
1

query I rowsort
SELECT + 92 - 65 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6359
SELECT + 51 * COALESCE ( 83 * + CAST( - 99 AS SIGNED ), 82, 12 DIV + COALESCE ( + 13, 60 DIV 35 ) ) AS col2
----
-419067

skipif mysql # not compatible
query I rowsort label-6359
SELECT + 51 * COALESCE ( 83 * + CAST ( - 99 AS INTEGER ), 82, 12 / + COALESCE ( + 13, 60 / 35 ) ) AS col2
----
-419067

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - COUNT( + 12 ) * - 79
----
79

skipif mysql # not compatible
query I rowsort label-6360
SELECT - COUNT ( + 12 ) * - 79
----
79

query I rowsort
SELECT - 32 * - ( 74 ) - + 9 * 52
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT ALL - 22 DIV - 30 + + 38
----
38

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 22 / - 30 + + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + COUNT( * ) * - MIN( DISTINCT - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6363
SELECT + COUNT ( * ) * - MIN ( DISTINCT - 44 ) AS col1
----
44

query I rowsort
SELECT ALL + 7 * - 29 AS col0
----
-203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT DISTINCT CAST( NULL AS SIGNED ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT ALL COUNT( * ) + + 34 * + CAST( 85 * - 5 + + 68 AS SIGNED ) AS col0
----
-12137

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL COUNT ( * ) + + 34 * + CAST ( 85 * - 5 + + 68 AS INTEGER ) AS col0
----
-12137

query I rowsort
SELECT 54 - + 49 AS col0
----
5

query I rowsort
SELECT ALL - 81 + NULLIF ( - 70, 89 ) AS col0
----
-151

query I rowsort
SELECT ALL + 17 + 25 * ( + 46 ) col1
----
1167

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT 83 DIV 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6370
SELECT 83 / 18 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT COUNT( * ) * 2 + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6371
SELECT COUNT ( * ) * 2 + + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT 89 * - 86 AS col2
----
-7654

query I rowsort
SELECT ALL + 18 + 20
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + 37 * + 12 + - 79 * + CASE 63 WHEN + 25 THEN NULL WHEN - COUNT( * ) THEN + 42 * - 41 ELSE 26 + - 23 END
----
207

skipif mysql # not compatible
query I rowsort label-6374
SELECT + 37 * + 12 + - 79 * + CASE 63 WHEN + 25 THEN NULL WHEN - COUNT ( * ) THEN + 42 * - 41 ELSE 26 + - 23 END
----
207

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6375
SELECT MAX( CAST( NULL AS DECIMAL ) ) - - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT MAX ( CAST ( NULL AS REAL ) ) - - 73 AS col0
----
NULL

query I rowsort
SELECT 73 + 29 AS col2
----
102

query I rowsort
SELECT ALL - 45 * + 53
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT + MAX( ALL + 12 ) * - 30
----
-360

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + MAX ( ALL + 12 ) * - 30
----
-360

query I rowsort
SELECT ALL + 18 - 28 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT ALL COALESCE ( - COUNT( DISTINCT - 92 ), + 70 * - CASE 84 WHEN 81 * + COUNT( * ) + + 29 * COUNT( * ) THEN + 85 DIV - CASE - 79 WHEN + 72 THEN ( - 48 ) + ( + 83 + 28 DIV - 88 ) WHEN - MAX( DISTINCT 48 ) DIV + 99 THEN 18 ELSE 93 END END + COUNT( * ) DIV + 34 ) * - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL COALESCE ( - COUNT ( DISTINCT - 92 ), + 70 * - CASE 84 WHEN 81 * + COUNT ( * ) + + 29 * COUNT ( * ) THEN + 85 / - CASE - 79 WHEN + 72 THEN ( - 48 ) + ( + 83 + 28 / - 88 ) WHEN - MAX ( DISTINCT 48 ) / + 99 THEN 18 ELSE 93 END END + COUNT ( * ) / + 34 ) * - 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT DISTINCT + 0 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + 0 - - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT COALESCE ( 67, 99 ) + - 81 DIV + 92 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6382
SELECT COALESCE ( 67, 99 ) + - 81 / + 92 AS col0
----
67

query I rowsort
SELECT 78 * - 91
----
-7098

query I rowsort
SELECT 85 + + 95 AS col0
----
180

query I rowsort
SELECT 94 + - 49 * 51
----
-2405

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT 64 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT 64 / 32
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT COUNT( * ) - ( NULLIF ( CAST( SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ), - 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT COUNT ( * ) - ( NULLIF ( CAST ( SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 1 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT 23 DIV + ( 8 )
----
2

skipif mysql # not compatible
query I rowsort label-6388
SELECT 23 / + ( 8 )
----
2

query I rowsort
SELECT 29 + 90 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT ALL - 38 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - 38 / 59 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT - 47 DIV CASE 41 + COUNT( * ) WHEN ( 54 ) THEN NULL ELSE 57 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 47 / CASE 41 + COUNT ( * ) WHEN ( 54 ) THEN NULL ELSE 57 END AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT 29 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT 29 / 41 AS col0
----
0

query I rowsort
SELECT ALL 87 + + ( - 66 )
----
21

query I rowsort
SELECT - COALESCE ( - 84, - 21 ) * - 19 AS col2
----
-1596

query I rowsort
SELECT + 39 - + 69
----
-30

query I rowsort
SELECT ALL + 64 + - 88 AS col1
----
-24

query I rowsort
SELECT ALL - ( + 70 ) + 60
----
-10

query I rowsort
SELECT DISTINCT - 31 + - 54
----
-85

query I rowsort
SELECT ALL - + 60 + 71 * 6
----
366

query I rowsort
SELECT DISTINCT + - 98 + + 35 * 26
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT + - 18 * 81 + + COUNT( * ) AS col1
----
-1457

skipif mysql # not compatible
query I rowsort label-6401
SELECT + - 18 * 81 + + COUNT ( * ) AS col1
----
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT DISTINCT 34 - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT 34 - COUNT ( * )
----
33

query I rowsort
SELECT ALL - - 56 * + 88
----
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT DISTINCT - CASE COALESCE ( 96, COALESCE ( CAST( NULL AS SIGNED ), 29 ) ) WHEN + 10 + 62 THEN - 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - CASE COALESCE ( 96, COALESCE ( CAST ( NULL AS INTEGER ), 29 ) ) WHEN + 10 + 62 THEN - 81 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 48 - - 43
----
91

query I rowsort
SELECT ALL - ( + + 3 ) AS col0
----
-3

query I rowsort
SELECT 14 * + 57 AS col2
----
798

query I rowsort
SELECT 97 - - + 5 AS col2
----
102

query I rowsort
SELECT 4 * ( 85 ) col0
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL 41 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL 41 / + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT ALL - 42 * 60 DIV 24
----
-105

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 42 * 60 / 24
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT ALL - CASE CASE + 9 WHEN - CAST( + 72 AS SIGNED ) + - 84 * ( - 86 * + 67 ) THEN 86 ELSE NULL END WHEN - 45 * ( 84 ) + + 22 * - 65 THEN 33 / 14 END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - CASE CASE + 9 WHEN - CAST ( + 72 AS INTEGER ) + - 84 * ( - 86 * + 67 ) THEN 86 ELSE NULL END WHEN - 45 * ( 84 ) + + 22 * - 65 THEN 33 / 14 END * - 83
----
NULL

query I rowsort
SELECT DISTINCT + 97 + + 7 + 76 AS col2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT - - CAST( 0 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT - - CAST ( 0 AS INTEGER ) col0
----
0

query I rowsort
SELECT + 54 * - - 6 + + 71 * - 40
----
-2516

query I rowsort
SELECT 74 + - + 87 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - - ( - ( 34 ) ) + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - - ( - ( 34 ) ) + + COUNT ( * )
----
-33

query I rowsort
SELECT DISTINCT - 35 + 97
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6419
SELECT ALL 20 + 33 + + CAST( COALESCE ( + 86, 61 ) - + COUNT( - 91 ) AS SIGNED ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 20 + 33 + + CAST ( COALESCE ( + 86, 61 ) - + COUNT ( - 91 ) AS INTEGER ) AS col1
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT + + 57 DIV 27 DIV 76 + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6420
SELECT + + 57 / 27 / 76 + + 83 AS col1
----
83

query I rowsort
SELECT - - 46 - 57
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL 29 * 52 + + 94 * + COUNT( * ) AS col0
----
1602

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 29 * 52 + + 94 * + COUNT ( * ) AS col0
----
1602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT + CAST( NULL AS SIGNED ) / 29 + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT + CAST ( NULL AS INTEGER ) / 29 + 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT + 53 DIV - - 86 * 14
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 53 / - - 86 * 14
----
0

query I rowsort
SELECT + 93 * - + 48 AS col0
----
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT ALL - - 37 * - + 96 + 1 DIV ( 3 ) AS col2
----
-3552

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - - 37 * - + 96 + 1 / ( 3 ) AS col2
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT + - MAX( DISTINCT - 31 ) * - 34
----
-1054

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + - MAX ( DISTINCT - 31 ) * - 34
----
-1054

query I rowsort
SELECT + 11 * 52 AS col1
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT ALL 50 DIV + 6 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL 50 / + 6 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT + 32 * 13 DIV COUNT( * ) - 95 AS col1
----
321

skipif mysql # not compatible
query I rowsort label-6430
SELECT + 32 * 13 / COUNT ( * ) - 95 AS col1
----
321

query II rowsort
SELECT ALL + 69 AS col0, + 48 AS col2
----
69
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + NULLIF ( MIN( DISTINCT - - 85 ), ( COUNT( * ) ) / + 57 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6432
SELECT + NULLIF ( MIN ( DISTINCT - - 85 ), ( COUNT ( * ) ) / + 57 ) AS col2
----
85

query II rowsort
SELECT DISTINCT + 40, + COALESCE ( + + 22, 48 ) col2
----
40
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT SUM( DISTINCT - ( - 30 ) ) col1
----
30

skipif mysql # not compatible
query I rowsort label-6434
SELECT SUM ( DISTINCT - ( - 30 ) ) col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT MAX( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6435
SELECT MAX ( - 5 ) AS col0
----
-5

query II rowsort
SELECT ALL + 53, + 89 * + 32 col0
----
53
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT COUNT( * ) * - - 54 * 27 * + COUNT( * ) + CASE COUNT( * ) + ( + 77 ) / - 54 WHEN 9 - - COUNT( * ) THEN NULL ELSE + CASE + 17 WHEN 62 + 37 THEN 47 * 51 WHEN + 30 / - COUNT( * ) THEN NULL WHEN 24 + + 58 THEN NULLIF ( - ( MAX( - 36 ) ), 2 * 47 ) - 35 * - 67 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT COUNT ( * ) * - - 54 * 27 * + COUNT ( * ) + CASE COUNT ( * ) + ( + 77 ) / - 54 WHEN 9 - - COUNT ( * ) THEN NULL ELSE + CASE + 17 WHEN 62 + 37 THEN 47 * 51 WHEN + 30 / - COUNT ( * ) THEN NULL WHEN 24 + + 58 THEN NULLIF ( - ( MAX ( - 36 ) ), 2 * 47 ) - 35 * - 67 ELSE NULL END END AS col0
----
NULL

query I rowsort
SELECT - 47 * + - 6 * - 80
----
-22560

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - COUNT( * ) - + - 81
----
80

skipif mysql # not compatible
query I rowsort label-6439
SELECT - COUNT ( * ) - + - 81
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + MAX( ALL + - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + MAX ( ALL + - 66 ) AS col2
----
-66

query I rowsort
SELECT + CASE - 45 WHEN + 71 THEN 33 WHEN - 59 * 10 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 0 * - - 55 * + ( ( - 39 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + 11 / - - CASE - - 28 WHEN 3 * - 36 THEN NULL WHEN - MAX( + 38 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT + 11 / - - CASE - - 28 WHEN 3 * - 36 THEN NULL WHEN - MAX ( + 38 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL COUNT( DISTINCT + + 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL COUNT ( DISTINCT + + 79 ) col1
----
1

query I rowsort
SELECT - 64 + - 66 + - 44 AS col0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT + 75 DIV + + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 75 / + + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT - 9, - 0 + - - 25 - + 93 * + COUNT( * ) AS col1
----
-9
-68

skipif mysql # not compatible
query II rowsort label-6447
SELECT - 9, - 0 + - - 25 - + 93 * + COUNT ( * ) AS col1
----
-9
-68

query I rowsort
SELECT + 69 + + 22
----
91

query I rowsort
SELECT + 28 * + + 69 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT 25 AS col0, + CASE + - 29 WHEN 78 + - 35 THEN 75 / NULLIF ( - NULLIF ( + SUM( - 69 ), - NULLIF ( - 68, 60 * 42 + COUNT( * ) ) ), + COUNT( * ) + 17 ) WHEN - 93 - + 41 / 1 THEN + COUNT( * ) * 84 ELSE NULL END
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6450
SELECT 25 AS col0, + CASE + - 29 WHEN 78 + - 35 THEN 75 / NULLIF ( - NULLIF ( + SUM ( - 69 ), - NULLIF ( - 68, 60 * 42 + COUNT ( * ) ) ), + COUNT ( * ) + 17 ) WHEN - 93 - + 41 / 1 THEN + COUNT ( * ) * 84 ELSE NULL END
----
25
NULL

query I rowsort
SELECT - 52 + + 20
----
-32

query I rowsort
SELECT ALL NULLIF ( 91, + - 57 ) + + 72
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 26 + ( - + NULLIF ( - CASE + 55 WHEN + 28 / 90 THEN + 86 WHEN 15 THEN NULL WHEN MIN( 65 ) * 60 THEN NULL END, 88 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 26 + ( - + NULLIF ( - CASE + 55 WHEN + 28 / 90 THEN + 86 WHEN 15 THEN NULL WHEN MIN ( 65 ) * 60 THEN NULL END, 88 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT MAX( - + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT MAX ( - + 13 ) AS col0
----
-13

query I rowsort
SELECT - - 36 + - + 80
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6456
SELECT + 51, CAST( - - 15 AS SIGNED ) AS col1
----
51
15

skipif mysql # not compatible
query II rowsort label-6456
SELECT + 51, CAST ( - - 15 AS INTEGER ) AS col1
----
51
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL - MIN( DISTINCT - - COALESCE ( + 19, - 48 * - 95 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - MIN ( DISTINCT - - COALESCE ( + 19, - 48 * - 95 ) )
----
-19

query I rowsort
SELECT - + ( - 2 ) + + + 12 + 64 * + 82
----
5262

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - 54 + + MIN( ALL - 15 )
----
-69

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 54 + + MIN ( ALL - 15 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT - 24 - + 65 DIV MIN( ALL - 97 )
----
-24

skipif mysql # not compatible
query I rowsort label-6460
SELECT - 24 - + 65 / MIN ( ALL - 97 )
----
-24

query I rowsort
SELECT - NULLIF ( + + 93, 94 + - 64 * 67 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT + + 81 * + MIN( ALL + + 20 ) + - COUNT( * )
----
1619

skipif mysql # not compatible
query I rowsort label-6462
SELECT + + 81 * + MIN ( ALL + + 20 ) + - COUNT ( * )
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + 38 - - NULLIF ( + 3, ( NULLIF ( + ( CASE - COUNT( * ) WHEN COUNT( * ) THEN 57 / COUNT( - 11 ) END ), - 47 ) ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 38 - - NULLIF ( + 3, ( NULLIF ( + ( CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 57 / COUNT ( - 11 ) END ), - 47 ) ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT + 8, 70 + + + 45 + COUNT( * ) AS col1
----
8
116

skipif mysql # not compatible
query II rowsort label-6464
SELECT + 8, 70 + + + 45 + COUNT ( * ) AS col1
----
8
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT + COUNT( ALL + 21 ) / + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / NULLIF ( 14 + - ( + 85 ), + 23 ) - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + COUNT ( ALL + 21 ) / + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / NULLIF ( 14 + - ( + 85 ), + 23 ) - + 8
----
NULL

query II rowsort
SELECT + 59 col0, - 73 - - 22 AS col2
----
59
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL + + ( ( - COALESCE ( - COUNT( * ), 88 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + + ( ( - COALESCE ( - COUNT ( * ), 88 ) ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT - + 60 + + COALESCE ( 13, - 20 DIV 22 ) + - 44 DIV 48 DIV - 67
----
-47

skipif mysql # not compatible
query I rowsort label-6468
SELECT - + 60 + + COALESCE ( 13, - 20 / 22 ) + - 44 / 48 / - 67
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - - 85 + MIN( 59 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-6469
SELECT - - 85 + MIN ( 59 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - + COUNT( ALL - 60 ) * - 31
----
31

skipif mysql # not compatible
query I rowsort label-6470
SELECT - + COUNT ( ALL - 60 ) * - 31
----
31

query I rowsort
SELECT 23 * + - 4 + COALESCE ( + 97, - ( + 69 ) + NULLIF ( - 57, ( 49 ) ) ) col0
----
5

query I rowsort
SELECT + NULLIF ( 96, + 45 * 92 + 52 ) AS col2
----
96

query II rowsort
SELECT + 24 + - 11, - 8 AS col0
----
13
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6474
SELECT - 35 * 83 AS col2, - 22 * - CAST( NULL AS SIGNED ) AS col2
----
-2905
NULL

skipif mysql # not compatible
query II rowsort label-6474
SELECT - 35 * 83 AS col2, - 22 * - CAST ( NULL AS INTEGER ) AS col2
----
-2905
NULL

query I rowsort
SELECT + 94 * - 51 AS col0
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL + 24 * 63 * + COUNT( * ) * + 70 * - 95 AS col0
----
-10054800

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + 24 * 63 * + COUNT ( * ) * + 70 * - 95 AS col0
----
-10054800

query I rowsort
SELECT DISTINCT - 70 * + 94
----
-6580

query I rowsort
SELECT ALL + 39 * + - 40 + 70
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT DISTINCT + CASE + COALESCE ( SUM( + 42 ), CASE 51 WHEN 74 + - 45 THEN ( ( 16 ) ) / - 98 + 86 WHEN CASE COUNT( * ) WHEN + 20 * - CASE MIN( 17 ) WHEN COUNT( * ) + - 77 * 99 THEN + 41 ELSE NULL END THEN NULL ELSE + ( + 25 ) + COUNT( * ) END THEN NULL ELSE NULL END / + 54 ) WHEN 81 THEN NULL ELSE 30 END * + ( - COUNT( * ) ) + 42
----
12

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + CASE + COALESCE ( SUM ( + 42 ), CASE 51 WHEN 74 + - 45 THEN ( ( 16 ) ) / - 98 + 86 WHEN CASE COUNT ( * ) WHEN + 20 * - CASE MIN ( 17 ) WHEN COUNT ( * ) + - 77 * 99 THEN + 41 ELSE NULL END THEN NULL ELSE + ( + 25 ) + COUNT ( * ) END THEN NULL ELSE NULL END / + 54 ) WHEN 81 THEN NULL ELSE 30 END * + ( - COUNT ( * ) ) + 42
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT CASE - ( + 47 ) WHEN MIN( DISTINCT - 8 ) + - 54 THEN NULL ELSE 25 * ( 49 ) + 31 END AS col0
----
1256

skipif mysql # not compatible
query I rowsort label-6480
SELECT CASE - ( + 47 ) WHEN MIN ( DISTINCT - 8 ) + - 54 THEN NULL ELSE 25 * ( 49 ) + 31 END AS col0
----
1256

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL + 45 * 72 + - - COUNT( * )
----
3241

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + 45 * 72 + - - COUNT ( * )
----
3241

query I rowsort
SELECT ALL - 62 * 8 * 14 * + 38 * - 10 + 95 AS col2
----
2638815

query I rowsort
SELECT + 28 - 60 col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT 67 * + SUM( ALL + 94 )
----
6298

skipif mysql # not compatible
query I rowsort label-6484
SELECT 67 * + SUM ( ALL + 94 )
----
6298

query I rowsort
SELECT ALL - 46 + - 19 + 84 * + - 52
----
-4433

query I rowsort
SELECT DISTINCT NULLIF ( - 99, 72 ) * - ( 29 ) * + 39 AS col0
----
111969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT + CAST( + 75 AS SIGNED ) + SUM( DISTINCT - 22 ) - 54
----
-1

skipif mysql # not compatible
query I rowsort label-6487
SELECT + CAST ( + 75 AS INTEGER ) + SUM ( DISTINCT - 22 ) - 54
----
-1

query I rowsort
SELECT 6 * - 46
----
-276

onlyif mysql # aggregate syntax: 
query II rowsort label-6489
SELECT ALL - 1 * 45 AS col2, + ( 19 ) - 18 * + COUNT( * )
----
-45
1

skipif mysql # not compatible
query II rowsort label-6489
SELECT ALL - 1 * 45 AS col2, + ( 19 ) - 18 * + COUNT ( * )
----
-45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + MAX( ALL - 75 ) - - - 76 * - 15
----
1065

skipif mysql # not compatible
query I rowsort label-6490
SELECT + MAX ( ALL - 75 ) - - - 76 * - 15
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + NULLIF ( - MAX( DISTINCT - - 32 ), - + 89 + - 23 * 39 ) + 19
----
-13

skipif mysql # not compatible
query I rowsort label-6491
SELECT + NULLIF ( - MAX ( DISTINCT - - 32 ), - + 89 + - 23 * 39 ) + 19
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT + - 24 DIV 5 + - 92
----
-96

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + - 24 / 5 + - 92
----
-96

query I rowsort
SELECT ALL + + 49 * + ( - 80 )
----
-3920

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT DISTINCT 44 DIV - 16 + - 0
----
-2

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT 44 / - 16 + - 0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6495
SELECT + 93 DIV 86 DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6495
SELECT + 93 / 86 / COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6496
SELECT DISTINCT - - CASE - CAST( NULL AS SIGNED ) WHEN ( + COALESCE ( 38, - ( - 41 ) + - ( 83 ) * ( 65 * - COUNT( * ) ), - 81 ) ) + 84 THEN + 78 * 20 WHEN - 54 THEN + COUNT( * ) * 71 WHEN MAX( + 89 ) THEN 50 WHEN COUNT( * ) * - ( 43 ) THEN 15 ELSE + COUNT( * ) * 83 END AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - - CASE - CAST ( NULL AS INTEGER ) WHEN ( + COALESCE ( 38, - ( - 41 ) + - ( 83 ) * ( 65 * - COUNT ( * ) ), - 81 ) ) + 84 THEN + 78 * 20 WHEN - 54 THEN + COUNT ( * ) * 71 WHEN MAX ( + 89 ) THEN 50 WHEN COUNT ( * ) * - ( 43 ) THEN 15 ELSE + COUNT ( * ) * 83 END AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT COUNT( * ) * 32 + 31
----
63

skipif mysql # not compatible
query I rowsort label-6497
SELECT COUNT ( * ) * 32 + 31
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), - + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), - + 89 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT + + 12 * 49 - - CAST( - 79 AS SIGNED )
----
509

skipif mysql # not compatible
query I rowsort label-6499
SELECT + + 12 * 49 - - CAST ( - 79 AS INTEGER )
----
509

query I rowsort
SELECT - 24 * 34
----
-816

query I rowsort
SELECT ALL + 28 + 13 AS col1
----
41

query I rowsort
SELECT 98 + 13 + + + 47 AS col0
----
158

query I rowsort
SELECT 4 * + 5
----
20

query I rowsort
SELECT 7 + - - 66
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT ALL - 56 + + - 11 * - 43 AS col0, COUNT( * )
----
417
1

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL - 56 + + - 11 * - 43 AS col0, COUNT ( * )
----
417
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL + COUNT( * ) + - COUNT( * ) * + 97
----
-96

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + 97
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT ALL CAST( NULL AS SIGNED ) * + ( + ( - - 28 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + ( - - 28 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT + 42, COUNT( * ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-6508
SELECT + 42, COUNT ( * ) AS col0
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT 13 * + + COALESCE ( - NULLIF ( + 69, + - 55 ), NULLIF ( 90, + 91 ), COUNT( * ) ) * 37 AS col2
----
-33189

skipif mysql # not compatible
query I rowsort label-6509
SELECT 13 * + + COALESCE ( - NULLIF ( + 69, + - 55 ), NULLIF ( 90, + 91 ), COUNT ( * ) ) * 37 AS col2
----
-33189

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - 38 * - + COUNT( * ) + 25
----
63

skipif mysql # not compatible
query I rowsort label-6510
SELECT - 38 * - + COUNT ( * ) + 25
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + COUNT( * ) * - 47 * + MAX( ALL + 87 )
----
-4089

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + COUNT ( * ) * - 47 * + MAX ( ALL + 87 )
----
-4089

query I rowsort
SELECT DISTINCT 99 + 5
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 32 + ( + COUNT( DISTINCT - 47 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6513
SELECT 32 + ( + COUNT ( DISTINCT - 47 ) )
----
33

query I rowsort
SELECT ALL - 93 + + + 35 AS col0
----
-58

query I rowsort
SELECT DISTINCT 34 + + - 30 + - ( - 22 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT ALL 92 + - + 57 / + CAST( NULL AS SIGNED ) / 79 + + + ( 3 ) - - 42 * 94 * + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL 92 + - + 57 / + CAST ( NULL AS INTEGER ) / 79 + + + ( 3 ) - - 42 * 94 * + 5 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6517
SELECT ALL CASE + ( 73 ) WHEN + 96 THEN - COUNT( * ) + COUNT( * ) ELSE + 60 END DIV + 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL CASE + ( 73 ) WHEN + 96 THEN - COUNT ( * ) + COUNT ( * ) ELSE + 60 END / + 55 AS col2
----
1

query I rowsort
SELECT DISTINCT - 14 - + 66 * + - 94 AS col2
----
6190

query I rowsort
SELECT ALL 44 - 98 + + 93 + - 71
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6520
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6520
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, 19
----
NULL
19

query I rowsort
SELECT 1 * 76
----
76

query I rowsort
SELECT ALL + ( + ( - 81 ) ) * + - 0
----
0

query I rowsort
SELECT NULLIF ( 97, + 19 ) + 40 AS col1
----
137

query I rowsort
SELECT + 63 * - 62 AS col2
----
-3906

query I rowsort
SELECT - 72 + + - 52 + 68 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT - 30 * - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6526
SELECT - 30 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT - COALESCE ( - 99, NULLIF ( 48, + 14 * CASE 85 WHEN 96 THEN CAST( - 98 AS SIGNED ) WHEN - 84 - COUNT( * ) THEN NULL WHEN ( + 14 ) * 78 THEN + ( 12 ) + + 97 END ), 98 ) + - COUNT( * ) DIV 72
----
99

skipif mysql # not compatible
query I rowsort label-6527
SELECT - COALESCE ( - 99, NULLIF ( 48, + 14 * CASE 85 WHEN 96 THEN CAST ( - 98 AS INTEGER ) WHEN - 84 - COUNT ( * ) THEN NULL WHEN ( + 14 ) * 78 THEN + ( 12 ) + + 97 END ), 98 ) + - COUNT ( * ) / 72
----
99

query I rowsort
SELECT + 22 - - - 6 AS col2
----
16

query I rowsort
SELECT ALL - ( + 64 ) * + + 52 * - ( - + 55 ) - + 36 + + 48 AS col2
----
-183028

query I rowsort
SELECT 60 * - 64 + + + 17 AS col1
----
-3823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6531
SELECT 33 + - + ( - COALESCE ( + - 90, CASE + + 74 WHEN + 67 + 39 THEN NULL WHEN - 79 * - COUNT( * ) + - 52 THEN - CAST( 7 AS SIGNED ) DIV - 51 + CASE - 27 WHEN 12 THEN NULL WHEN 24 THEN NULL WHEN + 24 THEN + AVG ( 8 ) END DIV - 51 ELSE NULL END * - 89 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6531
SELECT 33 + - + ( - COALESCE ( + - 90, CASE + + 74 WHEN + 67 + 39 THEN NULL WHEN - 79 * - COUNT ( * ) + - 52 THEN - CAST ( 7 AS INTEGER ) / - 51 + CASE - 27 WHEN 12 THEN NULL WHEN 24 THEN NULL WHEN + 24 THEN + AVG ( 8 ) END / - 51 ELSE NULL END * - 89 ) )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT DISTINCT 22 * - ( + 51 ) + - COALESCE ( 76, - 92, 75 + + CAST( NULL AS SIGNED ) ) - - 57 col2
----
-1141

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT 22 * - ( + 51 ) + - COALESCE ( 76, - 92, 75 + + CAST ( NULL AS INTEGER ) ) - - 57 col2
----
-1141

query I rowsort
SELECT ALL - 0 * - 7 + - ( - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT MAX( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-6534
SELECT MAX ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT - 56 * + + 18 + - 26 * - COUNT( * ) AS col0
----
-982

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - 56 * + + 18 + - 26 * - COUNT ( * ) AS col0
----
-982

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + 1 * - + COALESCE ( + 51, 19 + 50 * + - 78 ) + + COUNT( * ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + 1 * - + COALESCE ( + 51, 19 + 50 * + - 78 ) + + COUNT ( * ) col0
----
-50

query I rowsort
SELECT ALL + 23 * ( - - ( 99 ) ) * 73 + - 20
----
166201

query I rowsort
SELECT + NULLIF ( + - 4, + + 37 )
----
-4

query I rowsort
SELECT + 29 * + - 40 AS col2
----
-1160

query I rowsort
SELECT DISTINCT COALESCE ( + + 77, - - 58 ) * + 51 - 8 - + + 55 * - 58 AS col2
----
7109

query I rowsort
SELECT DISTINCT 69 * 51 * - + 56 AS col0
----
-197064

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT + 2, - COUNT( * ) * + 28 AS col0
----
2
-28

skipif mysql # not compatible
query II rowsort label-6542
SELECT + 2, - COUNT ( * ) * + 28 AS col0
----
2
-28

query I rowsort
SELECT ALL ( + + 23 ) * - ( + 57 ) + - + ( + 10 ) - + 70
----
-1391

query I rowsort
SELECT - 98 * 81 AS col0
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL + SUM( - - NULLIF ( ( + 54 ), - 33 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL + SUM ( - - NULLIF ( ( + 54 ), - 33 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT DISTINCT - 80 - + 64 col1, MAX( 25 ) AS col0
----
-144
25

skipif mysql # not compatible
query II rowsort label-6546
SELECT DISTINCT - 80 - + 64 col1, MAX ( 25 ) AS col0
----
-144
25

query I rowsort
SELECT ALL + ( - 17 )
----
-17

query I rowsort
SELECT + CASE + 46 WHEN + 94 THEN + + 62 WHEN ( + 88 ) THEN - 20 ELSE NULL END * - 7 + 65 AS col0
----
NULL

query I rowsort
SELECT - - 74 + + 74 + + 54 AS col1
----
202

query I rowsort
SELECT ALL + NULLIF ( - - 96, - 83 + 56 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT - + CAST( MAX( - 20 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-6551
SELECT - + CAST ( MAX ( - 20 ) AS INTEGER )
----
20

query I rowsort
SELECT - 21 * - 28
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - COALESCE ( - ( + 6 ), + NULLIF ( - + COUNT( * ), + 2 / - SUM( ALL + 65 ) ) ) * 52
----
312

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - COALESCE ( - ( + 6 ), + NULLIF ( - + COUNT ( * ), + 2 / - SUM ( ALL + 65 ) ) ) * 52
----
312

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT - 48 DIV + ( 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT - 48 / + ( 84 ) AS col2
----
0

query I rowsort
SELECT ALL - 58 * - 17
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT + + 28 * 72 + + 21 - - 86 * ( + - 80 ) + - SUM( DISTINCT 25 ) AS col0
----
-4868

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + + 28 * 72 + + 21 - - 86 * ( + - 80 ) + - SUM ( DISTINCT 25 ) AS col0
----
-4868

query II rowsort
SELECT DISTINCT 71 AS col1, 28 * - + 26 AS col2
----
71
-728

query I rowsort
SELECT ALL - NULLIF ( 0, - 50 / 99 + - 27 + + 79 * - ( 78 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT DISTINCT 5 DIV + 9 * ( 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT 5 / + 9 * ( 74 ) AS col1
----
0

query I rowsort
SELECT + - ( 83 ) * + 94
----
-7802

query I rowsort
SELECT ALL - 17 + - 26 col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6562
SELECT - 84 AS col0, + CAST( NULL AS SIGNED )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-6562
SELECT - 84 AS col0, + CAST ( NULL AS INTEGER )
----
-84
NULL

query I rowsort
SELECT ALL 90 + + + 4
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - CASE - 79 WHEN - - 25 THEN + 75 * COALESCE ( + COUNT( * ), + 87 * - 75 ) - - ( + 0 ) - 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT - CASE - 79 WHEN - - 25 THEN + 75 * COALESCE ( + COUNT ( * ), + 87 * - 75 ) - - ( + 0 ) - 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT 36 + - SUM( ALL + 58 )
----
-22

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT 36 + - SUM ( ALL + 58 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + 57 DIV - COALESCE ( 9, + 74 + 99 + + 25 - 66 ) + - 13 * 52 AS col2
----
-682

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + 57 / - COALESCE ( 9, + 74 + 99 + + 25 - 66 ) + - 13 * 52 AS col2
----
-682

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6567
SELECT + 77 * + 79 * + CAST( NULL AS SIGNED ) AS col1, + 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-6567
SELECT + 77 * + 79 * + CAST ( NULL AS INTEGER ) AS col1, + 70 AS col2
----
NULL
70

query II rowsort
SELECT ( - + 31 ) col1, + 57
----
-31
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT 29 DIV + - 84 + - 46 * - - 92
----
-4232

skipif mysql # not compatible
query I rowsort label-6569
SELECT 29 / + - 84 + - 46 * - - 92
----
-4232

query I rowsort
SELECT - 35 * - 6 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + COUNT( * ) + + 26 * + 86
----
2237

skipif mysql # not compatible
query I rowsort label-6571
SELECT + COUNT ( * ) + + 26 * + 86
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + NULLIF ( - COUNT( * ), + + 79 * - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + NULLIF ( - COUNT ( * ), + + 79 * - 99 )
----
-1

query II rowsort
SELECT + ( - 39 ), - 90 + 7 * + - 87 - + + 49 col1
----
-39
-748

query I rowsort
SELECT + 99 * - 49 col1
----
-4851

query I rowsort
SELECT ALL + 21 * - + CASE + - 43 WHEN + + 63 THEN 81 WHEN - - 13 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ( - MIN( - + 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-6576
SELECT ( - MIN ( - + 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT CASE - NULLIF ( ( MAX( + 63 ) ), + COUNT( * ) ) WHEN COUNT( * ) THEN 90 - 78 * AVG ( ALL - 34 + + ( 48 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT CASE - NULLIF ( ( MAX ( + 63 ) ), + COUNT ( * ) ) WHEN COUNT ( * ) THEN 90 - 78 * AVG ( ALL - 34 + + ( 48 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 23 * + 8
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT ALL + MAX( DISTINCT - 52 ) AS col1, 22 + - 35
----
-52
-13

skipif mysql # not compatible
query II rowsort label-6579
SELECT ALL + MAX ( DISTINCT - 52 ) AS col1, 22 + - 35
----
-52
-13

query I rowsort
SELECT + ( 45 ) * + CASE + 1 WHEN - + 83 * + - ( + 67 ) * 13 THEN 89 * - 75 + - 23 ELSE + 44 + + 33 * 14 END + - 41 AS col0
----
22729

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + + 84 + - 9 + + CASE + 8 WHEN + 62 THEN + 7 * MIN( - 45 ) WHEN 93 * + COUNT( DISTINCT - 64 ) THEN NULL ELSE NULL END + 85 / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT + + 84 + - 9 + + CASE + 8 WHEN + 62 THEN + 7 * MIN ( - 45 ) WHEN 93 * + COUNT ( DISTINCT - 64 ) THEN NULL ELSE NULL END + 85 / + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - 18 * - + COUNT( 43 )
----
18

skipif mysql # not compatible
query I rowsort label-6582
SELECT - 18 * - + COUNT ( 43 )
----
18

query I rowsort
SELECT - + 1 * + NULLIF ( + 29, + 37 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT - + COUNT( * ) * - 76 * + - 55 + 66 AS col1
----
-4114

skipif mysql # not compatible
query I rowsort label-6584
SELECT - + COUNT ( * ) * - 76 * + - 55 + 66 AS col1
----
-4114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT ALL CASE - 68 WHEN + 11 THEN + - CAST( COUNT( * ) AS SIGNED ) - - 24 - - COUNT( * ) + + 83 / ( + 4 + + 28 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL CASE - 68 WHEN + 11 THEN + - CAST ( COUNT ( * ) AS INTEGER ) - - 24 - - COUNT ( * ) + + 83 / ( + 4 + + 28 ) END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6586
SELECT DISTINCT - 79 DIV - 19 + + COUNT( DISTINCT - 7 ) + - 87 + CAST( + + COUNT( * ) AS SIGNED ) * + 30 col1
----
-52

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - 79 / - 19 + + COUNT ( DISTINCT - 7 ) + - 87 + CAST ( + + COUNT ( * ) AS INTEGER ) * + 30 col1
----
-52

query I rowsort
SELECT - 7 + + ( - NULLIF ( NULLIF ( - 10, 64 / + 28 + - 13 ), + 73 ) ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6588
SELECT - 21 + - COUNT( * ), - 46 + CAST( - 95 AS SIGNED ) + - - 25 * + - 97 AS col0
----
-22
-2566

skipif mysql # not compatible
query II rowsort label-6588
SELECT - 21 + - COUNT ( * ), - 46 + CAST ( - 95 AS INTEGER ) + - - 25 * + - 97 AS col0
----
-22
-2566

query I rowsort
SELECT - 34 + - 12 * + 5 + - + 76
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL - + MAX( DISTINCT - 2 ) + - 13 * 12 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - + MAX ( DISTINCT - 2 ) + - 13 * 12 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT DISTINCT MAX( - + 2 ) AS col2, 26 AS col0
----
-2
26

skipif mysql # not compatible
query II rowsort label-6591
SELECT DISTINCT MAX ( - + 2 ) AS col2, 26 AS col0
----
-2
26

query I rowsort
SELECT DISTINCT - 27 + + 23 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT ALL 83 + 9 * - 30 DIV COUNT( DISTINCT - 73 ) + - 87
----
-274

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL 83 + 9 * - 30 / COUNT ( DISTINCT - 73 ) + - 87
----
-274

query I rowsort
SELECT - 89 + - 95 * + 91 AS col0
----
-8734

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT + 65 + - + 47 DIV - 29 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6595
SELECT + 65 + - + 47 / - 29 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + 41 + + - 29 + 6 - - 14 + + - COUNT( ALL + - ( 0 ) ) - - ( + 90 )
----
121

skipif mysql # not compatible
query I rowsort label-6596
SELECT + 41 + + - 29 + 6 - - 14 + + - COUNT ( ALL + - ( 0 ) ) - - ( + 90 )
----
121

query I rowsort
SELECT - 53 * - - 36
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - ( - NULLIF ( + COUNT( * ), + ( - + 27 ) * - AVG ( ALL + - 8 ) + - 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT - ( - NULLIF ( + COUNT ( * ), + ( - + 27 ) * - AVG ( ALL + - 8 ) + - 22 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT CASE + 36 WHEN + 36 + + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 95 / - + 55 - - 21 THEN + CASE SUM( + 17 ) WHEN + 53 + - 62 THEN NULL ELSE NULLIF ( NULLIF ( + 85, 95 + 22 ), 24 ) END ELSE NULL END + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT CASE + 36 WHEN + 36 + + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 95 / - + 55 - - 21 THEN + CASE SUM ( + 17 ) WHEN + 53 + - 62 THEN NULL ELSE NULLIF ( NULLIF ( + 85, 95 + 22 ), 24 ) END ELSE NULL END + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL 17 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL 17 - - COUNT ( * )
----
18

query I rowsort
SELECT 39 * + 26
----
1014

query II rowsort
SELECT DISTINCT - 19, 95 AS col0
----
-19
95

query I rowsort
SELECT ALL 69 * 39 AS col1
----
2691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT COUNT( * ) * + 52 + - 67 DIV - 62 - - 33 DIV + 61
----
53

skipif mysql # not compatible
query I rowsort label-6604
SELECT COUNT ( * ) * + 52 + - 67 / - 62 - - 33 / + 61
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6606
SELECT + CAST( NULL AS SIGNED ) / + 63 + + 3, 54 + 34 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-6606
SELECT + CAST ( NULL AS INTEGER ) / + 63 + + 3, 54 + 34 AS col1
----
NULL
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6607
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, - 84 col0
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL - CAST ( NULL AS REAL ) AS col1, - 84 col0
----
NULL
-84

query I rowsort
SELECT ALL 77 + - 29
----
48

query I rowsort
SELECT DISTINCT - 83 + - - 37 * 4 + + 19
----
84

query I rowsort
SELECT DISTINCT + 9 * + 54 col2
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL CAST( NULL AS SIGNED ) + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL CAST ( NULL AS INTEGER ) + - 57 AS col1
----
NULL

query I rowsort
SELECT ALL - 92 + + 24
----
-68

query II rowsort
SELECT - 12 col1, - 59
----
-12
-59

query I rowsort
SELECT - 10 - + - 87
----
77

query I rowsort
SELECT DISTINCT 6 + 57 * - + 85
----
-4839

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6616
SELECT DISTINCT 90 AS col0, CAST( - 52 AS SIGNED )
----
90
-52

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT 90 AS col0, CAST ( - 52 AS INTEGER )
----
90
-52

query I rowsort
SELECT 55 * - CASE + 52 WHEN + CASE - 76 WHEN ( + 80 ) THEN NULL WHEN - - 47 + 41 * 59 THEN + 55 END THEN - 4 ELSE NULL END * + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL COUNT( * ) + + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( * ) + + 60 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6619
SELECT 4 - - - 62 DIV ( - 86 ) AS col0, 32 AS col2, + 12 * 66 * - COUNT( * ) + MAX( ALL 73 )
----
4
32
-719

skipif mysql # not compatible
query III rowsort label-6619
SELECT 4 - - - 62 / ( - 86 ) AS col0, 32 AS col2, + 12 * 66 * - COUNT ( * ) + MAX ( ALL 73 )
----
4
32
-719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT ALL + MAX( - + 19 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + MAX ( - + 19 ) / 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT ( + 5 ) DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT ( + 5 ) / 69 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6622
SELECT COUNT( ALL - - 68 ) * + + COUNT( * ) * 8 AS col0, - CASE - + 20 WHEN CASE - - 10 WHEN + 51 THEN + 93 END THEN - CASE + 65 WHEN 2 * + 87 THEN - 61 WHEN - 2 THEN NULL ELSE 7 END * - COALESCE ( CAST( NULL AS DECIMAL ), 89 ) ELSE NULL END
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6622
SELECT COUNT ( ALL - - 68 ) * + + COUNT ( * ) * 8 AS col0, - CASE - + 20 WHEN CASE - - 10 WHEN + 51 THEN + 93 END THEN - CASE + 65 WHEN 2 * + 87 THEN - 61 WHEN - 2 THEN NULL ELSE 7 END * - COALESCE ( CAST ( NULL AS REAL ), 89 ) ELSE NULL END
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 39 * COUNT( * ) * - 16 AS col1
----
-624

skipif mysql # not compatible
query I rowsort label-6623
SELECT 39 * COUNT ( * ) * - 16 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT 51 * + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6624
SELECT 51 * + + COUNT ( * ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL - COUNT( + 58 ) * - - 28 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - COUNT ( + 58 ) * - - 28 AS col0
----
-28

query I rowsort
SELECT 38 * - + 48
----
-1824

query I rowsort
SELECT 73 * + - 16
----
-1168

query I rowsort
SELECT 77 * + 28 * - - 57 * - ( + 13 ) * + 81 AS col2
----
-129405276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT 67 * CASE - COUNT( * ) WHEN + + CASE + 94 WHEN + COUNT( * ) * + 27 THEN + 45 END + - + CAST( NULL AS SIGNED ) THEN + 37 + - COUNT( * ) * 67 WHEN + 66 + + 51 THEN + 81 * - COUNT( ALL - 95 ) ELSE 2 END * 2 + - ( 60 + 31 ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-6629
SELECT 67 * CASE - COUNT ( * ) WHEN + + CASE + 94 WHEN + COUNT ( * ) * + 27 THEN + 45 END + - + CAST ( NULL AS INTEGER ) THEN + 37 + - COUNT ( * ) * 67 WHEN + 66 + + 51 THEN + 81 * - COUNT ( ALL - 95 ) ELSE 2 END * 2 + - ( 60 + 31 ) AS col2
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6630
SELECT + 46 DIV + COUNT( * ) + - - 33 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6630
SELECT + 46 / + COUNT ( * ) + - - 33 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT + 58 * - 87 * - - 28 - 33 + CAST( NULL AS SIGNED ) + - 6 * - 71 * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT + 58 * - 87 * - - 28 - 33 + CAST ( NULL AS INTEGER ) + - 6 * - 71 * + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT DISTINCT + COUNT( - 26 ) + COUNT( * ) + + 3, + 58 AS col1
----
5
58

skipif mysql # not compatible
query II rowsort label-6632
SELECT DISTINCT + COUNT ( - 26 ) + COUNT ( * ) + + 3, + 58 AS col1
----
5
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT + + 13 * - ( + 36 ) + - 84 AS col1, COUNT( * )
----
-552
1

skipif mysql # not compatible
query II rowsort label-6633
SELECT + + 13 * - ( + 36 ) + - 84 AS col1, COUNT ( * )
----
-552
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + - MIN( 67 ) + + + 63 * - 99 - + 44 AS col0
----
-6348

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + - MIN ( 67 ) + + + 63 * - 99 - + 44 AS col0
----
-6348

query I rowsort
SELECT ALL - 82 + - 32 col0
----
-114

query I rowsort
SELECT 76 * - 42 + + 25 - - 38 * - 5
----
-3357

query I rowsort
SELECT DISTINCT + - 21 + 81
----
60

query I rowsort
SELECT ALL NULLIF ( - - 30, - 73 - - 9 ) + + 80 - - 58
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + - 79 + + + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + - 79 + + + COUNT ( * )
----
-78

query I rowsort
SELECT ( - ( - - ( - 50 ) ) ) col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT - 39 DIV + 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 39 / + 26 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT DISTINCT - 36 DIV - + 97 - - + COALESCE ( 61, + + 22 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - 36 / - + 97 - - + COALESCE ( 61, + + 22 ) AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6643
SELECT ALL - 78 - + 93 DIV MAX( ALL + + 35 )
----
-80

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - 78 - + 93 / MAX ( ALL + + 35 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT 72 * - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6644
SELECT 72 * - COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT + 12 * 35 AS col1
----
420

query I rowsort
SELECT DISTINCT ( - + ( + + 61 ) ) * 64
----
-3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6647
SELECT ALL 21 AS col2, - CASE 39 WHEN - NULLIF ( + CAST( + + 8 AS SIGNED ), + + CAST( 27 AS SIGNED ) + + + 2 + - COUNT( * ) ) * - 14 THEN ( 95 ) END AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL 21 AS col2, - CASE 39 WHEN - NULLIF ( + CAST ( + + 8 AS INTEGER ), + + CAST ( 27 AS INTEGER ) + + + 2 + - COUNT ( * ) ) * - 14 THEN ( 95 ) END AS col0
----
21
NULL

query I rowsort
SELECT + 6 + + 99 * + 6 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT DISTINCT CASE - COUNT( * ) WHEN + 51 THEN + 80 WHEN - + 59 THEN 69 + 57 * - + 82 ELSE NULL END - 3 - - 59 - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 51 THEN + 80 WHEN - + 59 THEN 69 + 57 * - + 82 ELSE NULL END - 3 - - 59 - + 14
----
NULL

query I rowsort
SELECT DISTINCT ( + 57 ) * 98 AS col1
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - 76 + ( - ( + - COALESCE ( + COUNT( DISTINCT 25 ), - 95 ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 76 + ( - ( + - COALESCE ( + COUNT ( DISTINCT 25 ), - 95 ) ) )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT DISTINCT COUNT( * ), + 53 AS col1
----
1
53

skipif mysql # not compatible
query II rowsort label-6652
SELECT DISTINCT COUNT ( * ), + 53 AS col1
----
1
53

query I rowsort
SELECT + 46 * 85
----
3910

query I rowsort
SELECT - CASE - 31 WHEN - - 35 THEN - + 99 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT - COUNT( * ) + + 57 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6655
SELECT - COUNT ( * ) + + 57 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT DISTINCT + 17 DIV + 51 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT + 17 / + 51 * + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT - CAST( NULL AS SIGNED ) * + 72 * - - MAX( ALL - 80 ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT - CAST ( NULL AS INTEGER ) * + 72 * - - MAX ( ALL - 80 ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + 16 * + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6658
SELECT + 16 * + COUNT ( * ) AS col0
----
16

query I rowsort
SELECT - 22 + 94
----
72

query I rowsort
SELECT ALL - 99 * - - 12
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL + 45 + + - MIN( DISTINCT 12 ) * - 51 + - 23 + - 76 col0
----
558

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + 45 + + - MIN ( DISTINCT 12 ) * - 51 + - 23 + - 76 col0
----
558

query II rowsort
SELECT + 54 AS col2, + ( + 29 ) + 47
----
54
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT ALL CAST( 14 AS SIGNED ) * - 7 + 21 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL CAST ( 14 AS INTEGER ) * - 7 + 21 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6664
SELECT - 69 DIV + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6664
SELECT - 69 / + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - - COUNT( * ) * - SUM( + + 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - - COUNT ( * ) * - SUM ( + + 45 ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT - 42 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT - 42 / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT - COUNT( * ) DIV - 35 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-6667
SELECT - COUNT ( * ) / - 35 + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL 56 * ( 23 ) + - + COUNT( * )
----
1287

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL 56 * ( 23 ) + - + COUNT ( * )
----
1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT - + 20 * - 43 * + - 60 * CASE + NULLIF ( - 88, COUNT( * ) + - 48 + + 5 * NULLIF ( + 99, + 96 ) + 6 ) WHEN - 25 DIV + 25 THEN 4 * 3 + - 0 WHEN + 90 * + 98 THEN + 37 + 58 DIV 98 ELSE - 38 END AS col2
----
1960800

skipif mysql # not compatible
query I rowsort label-6669
SELECT - + 20 * - 43 * + - 60 * CASE + NULLIF ( - 88, COUNT ( * ) + - 48 + + 5 * NULLIF ( + 99, + 96 ) + 6 ) WHEN - 25 / + 25 THEN 4 * 3 + - 0 WHEN + 90 * + 98 THEN + 37 + 58 / 98 ELSE - 38 END AS col2
----
1960800

query I rowsort
SELECT - 25 * + + 36 * - 26
----
23400

query I rowsort
SELECT ALL CASE - 81 WHEN 19 THEN NULL WHEN - - 8 + + 23 + + 18 THEN 11 END * 24 - + 53 / - - 79 * 16 + - ( 86 ) * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - - ( + COUNT( * ) ) - - + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6672
SELECT - - ( + COUNT ( * ) ) - - + COUNT ( * ) AS col1
----
2

query II rowsort
SELECT - 74, 33 AS col2
----
-74
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT 84 AS col1, COUNT( * ) col1
----
84
1

skipif mysql # not compatible
query II rowsort label-6674
SELECT 84 AS col1, COUNT ( * ) col1
----
84
1

query II rowsort
SELECT - 7 AS col1, 92 AS col0
----
-7
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT - - CAST( - + 56 AS SIGNED ) * - 23
----
1288

skipif mysql # not compatible
query I rowsort label-6676
SELECT - - CAST ( - + 56 AS INTEGER ) * - 23
----
1288

query I rowsort
SELECT DISTINCT + 40 * 3 + + - 28 AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT + 28 * + SUM( DISTINCT + - ( + 93 ) ) * + + 82 * + ( - COUNT( * ) ) + 68 + + 63 DIV + COUNT( * ) AS col1
----
213659

skipif mysql # not compatible
query I rowsort label-6678
SELECT + 28 * + SUM ( DISTINCT + - ( + 93 ) ) * + + 82 * + ( - COUNT ( * ) ) + 68 + + 63 / + COUNT ( * ) AS col1
----
213659

query I rowsort
SELECT + + 12 + + 37 * 69 * + 96 AS col2
----
245100

query I rowsort
SELECT + NULLIF ( 67, + 11 ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT - + CAST( - - 77 AS SIGNED ) * - 92
----
7084

skipif mysql # not compatible
query I rowsort label-6681
SELECT - + CAST ( - - 77 AS INTEGER ) * - 92
----
7084

query I rowsort
SELECT + + 63 * + - 93
----
-5859

query I rowsort
SELECT + 36 + 68 + - 33
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT SUM( DISTINCT + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6684
SELECT SUM ( DISTINCT + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6685
SELECT ALL CAST( NULL AS DECIMAL ), 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL CAST ( NULL AS REAL ), 34 AS col1
----
NULL
34

query II rowsort
SELECT ALL 74, - 53 AS col2
----
74
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT DISTINCT 23 DIV - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT 23 / - 33 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL 58 * CAST( - ( ( - 71 ) ) AS SIGNED ) AS col0
----
4118

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL 58 * CAST ( - ( ( - 71 ) ) AS INTEGER ) AS col0
----
4118

query I rowsort
SELECT + 64 - 10 * + - 32
----
384

query II rowsort
SELECT 63, 10 AS col0
----
63
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT + COUNT( * ) DIV - COUNT( - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-6691
SELECT + COUNT ( * ) / - COUNT ( - 73 )
----
-1

query I rowsort
SELECT - ( - - 59 ) AS col2
----
-59

query II rowsort
SELECT - 44 AS col0, 25 + 76 + + 9 * - - COALESCE ( 90, - 93 * - 0 ) + 24 AS col1
----
-44
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT + ( 33 ) * CAST( - 38 AS SIGNED ) * 5
----
-6270

skipif mysql # not compatible
query I rowsort label-6694
SELECT + ( 33 ) * CAST ( - 38 AS INTEGER ) * 5
----
-6270

query I rowsort
SELECT ALL 98 + + ( - 88 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL 4 + - MIN( 32 ) + - COUNT( * ) * NULLIF ( + 63, + 94 ) * - 44
----
2744

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 4 + - MIN ( 32 ) + - COUNT ( * ) * NULLIF ( + 63, + 94 ) * - 44
----
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL + COUNT( * ) + - 29 * - 20 AS col0
----
581

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + COUNT ( * ) + - 29 * - 20 AS col0
----
581

query I rowsort
SELECT + CASE + 4 WHEN + 66 THEN - 98 END - - - 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT ALL 56, - COUNT( * ) col2
----
56
-1

skipif mysql # not compatible
query II rowsort label-6699
SELECT ALL 56, - COUNT ( * ) col2
----
56
-1

query I rowsort
SELECT DISTINCT 10 + - 69 + ( + 98 ) + + 51 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + CASE + + 88 WHEN + CASE - 78 WHEN 80 THEN - + 6 WHEN - 63 THEN COUNT( * ) END * 63 THEN - + 3 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT + CASE + + 88 WHEN + CASE - 78 WHEN 80 THEN - + 6 WHEN - 63 THEN COUNT ( * ) END * 63 THEN - + 3 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT + CAST( NULL AS SIGNED ) + - 29 + + - ( 70 ) + + + 36 - - COUNT( + 25 ) + 86 * + 11 * - COUNT( ALL - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT + CAST ( NULL AS INTEGER ) + - 29 + + - ( 70 ) + + + 36 - - COUNT ( + 25 ) + 86 * + 11 * - COUNT ( ALL - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL + 62 DIV 55 + + 92
----
93

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + 62 / 55 + + 92
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT + COUNT( * ) * - 22 + - - 0 + + CAST( + + 75 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-6704
SELECT + COUNT ( * ) * - 22 + - - 0 + + CAST ( + + 75 AS INTEGER )
----
53

query I rowsort
SELECT - 19 * - + 73
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT - - 33 * - NULLIF ( - 59, - 56 * + + COUNT( * ) + + 7 ) - + COUNT( * ) + + 74 + COUNT( * ) AS col1
----
2021

skipif mysql # not compatible
query I rowsort label-6706
SELECT - - 33 * - NULLIF ( - 59, - 56 * + + COUNT ( * ) + + 7 ) - + COUNT ( * ) + + 74 + COUNT ( * ) AS col1
----
2021

query I rowsort
SELECT ALL - 13 * - 63 AS col2
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL - 2 * 28 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - 2 * 28 + + COUNT ( * )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT ALL + 61 DIV 40 - 86 - 4
----
-89

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + 61 / 40 - 86 - 4
----
-89

query I rowsort
SELECT DISTINCT + 11 * + ( 97 ) * + + 59 * 6 * + 78 AS col2
----
29462004

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - - 42 * + 51 * - COUNT( DISTINCT + 64 ) AS col0
----
-2142

skipif mysql # not compatible
query I rowsort label-6711
SELECT - - 42 * + 51 * - COUNT ( DISTINCT + 64 ) AS col0
----
-2142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL + + CAST( NULL AS SIGNED ) - - 3 + + + 41 * + 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + + CAST ( NULL AS INTEGER ) - - 3 + + + 41 * + 95 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT CAST( NULL AS SIGNED ) * AVG ( ALL 90 ) + - 0 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT CAST ( NULL AS INTEGER ) * AVG ( ALL 90 ) + - 0 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT 99 DIV - 1 + - + COUNT( * ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6714
SELECT 99 / - 1 + - + COUNT ( * ) AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT ALL + - 36 DIV + 86 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + - 36 / + 86 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - SUM( + - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - SUM ( + - 94 ) AS col0
----
94

query I rowsort
SELECT ALL - ( + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL 53 * COALESCE ( + ( 75 ), - - 22 ) * COUNT( * ) AS col1
----
3975

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 53 * COALESCE ( + ( 75 ), - - 22 ) * COUNT ( * ) AS col1
----
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT + 89 + - 65 - - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT + 89 + - 65 - - + COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT + 53 * + 94 * 20 + - 15 * - + COUNT( * )
----
99655

skipif mysql # not compatible
query I rowsort label-6720
SELECT + 53 * + 94 * 20 + - 15 * - + COUNT ( * )
----
99655

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT - 16 * + ( + - 29 ) + + ( COUNT( * ) ) - + - 5 * - - 18 * + + ( - 63 ) * + + 44 * - 98 + + - 26
----
24449479

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 16 * + ( + - 29 ) + + ( COUNT ( * ) ) - + - 5 * - - 18 * + + ( - 63 ) * + + 44 * - 98 + + - 26
----
24449479

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT 77 * + ( + COUNT( * ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6722
SELECT 77 * + ( + COUNT ( * ) ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT 48 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT 48 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 83 - + ( + 33 ) - 89
----
-39

query I rowsort
SELECT ALL 11 + 15
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6726
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * ) * + ( - ( + ( + + MAX( DISTINCT - 22 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + ( - ( + ( + + MAX ( DISTINCT - 22 ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL 5 + - + 77 * + COUNT( * ) * 99 AS col2
----
-7618

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL 5 + - + 77 * + COUNT ( * ) * 99 AS col2
----
-7618

onlyif mysql # DIV for integer division: 
query II rowsort label-6728
SELECT ALL + 45 + + 33 AS col2, 7 * + COALESCE ( + 95, - 28, - 71 + + - COALESCE ( ( + 82 ), - - ( + + 47 ), + 90 DIV 79 ) ) * ( - 15 * ( 59 ) ) AS col2
----
78
-588525

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL + 45 + + 33 AS col2, 7 * + COALESCE ( + 95, - 28, - 71 + + - COALESCE ( ( + 82 ), - - ( + + 47 ), + 90 / 79 ) ) * ( - 15 * ( 59 ) ) AS col2
----
78
-588525

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ( - 55 ) + COUNT( * ) + - 10
----
-64

skipif mysql # not compatible
query I rowsort label-6729
SELECT ( - 55 ) + COUNT ( * ) + - 10
----
-64

query I rowsort
SELECT DISTINCT 10 + - 26 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT 4 * + ( - COUNT( * ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT 4 * + ( - COUNT ( * ) ) AS col0
----
-4

query I rowsort
SELECT + 94 + + 88
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT - COUNT( * ) * + - COUNT( ALL - 49 ) * - 1 + 97 * - 38 - - CAST( NULL AS SIGNED ) * 80 + + + COUNT( * ) / + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT - COUNT ( * ) * + - COUNT ( ALL - 49 ) * - 1 + 97 * - 38 - - CAST ( NULL AS INTEGER ) * 80 + + + COUNT ( * ) / + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT + MAX( DISTINCT + 25 ) - - 20
----
45

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT + MAX ( DISTINCT + 25 ) - - 20
----
45

query I rowsort
SELECT ALL + 42 - + 15 + + - 78
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + + CASE - 37 WHEN AVG ( + - 79 ) - - - 77 + - COALESCE ( 5, ( ( + 71 ) ) + - ( - CASE 83 WHEN 10 THEN NULL ELSE MAX( DISTINCT 10 ) END ), - 85 + COUNT( * ) ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT + + CASE - 37 WHEN AVG ( + - 79 ) - - - 77 + - COALESCE ( 5, ( ( + 71 ) ) + - ( - CASE 83 WHEN 10 THEN NULL ELSE MAX ( DISTINCT 10 ) END ), - 85 + COUNT ( * ) ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + 73 * NULLIF ( + 79, - COUNT( * ) )
----
5767

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + 73 * NULLIF ( + 79, - COUNT ( * ) )
----
5767

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - 19 * + 81 + - COUNT( * ) + - 2 AS col0
----
-1542

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 19 * + 81 + - COUNT ( * ) + - 2 AS col0
----
-1542

query II rowsort
SELECT 24 - 48 AS col2, + 33
----
-24
33

query I rowsort
SELECT 55 + - 50
----
5

query I rowsort
SELECT DISTINCT + + 84 * 89 AS col2
----
7476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT DISTINCT + 8 * - CAST( - 15 AS SIGNED ) col0
----
120

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT + 8 * - CAST ( - 15 AS INTEGER ) col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT + 97 + + 28 + + 74 + 5 - - - 69 * - 93 * COUNT( DISTINCT 93 ) col2
----
6621

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + 97 + + 28 + + 74 + 5 - - - 69 * - 93 * COUNT ( DISTINCT 93 ) col2
----
6621

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + COUNT( * ) * 19 + - - 87 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-6744
SELECT + COUNT ( * ) * 19 + - - 87 AS col1
----
106

query I rowsort
SELECT 32 * - 54 AS col1
----
-1728

query I rowsort
SELECT 67 + - 16 * 16 * + - 45 + + 8 AS col1
----
11595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6747
SELECT ALL + 85 + NULLIF ( - 25, 23 + - + 2 * + CAST( - COALESCE ( + 74, + 60 ) AS SIGNED ) ) DIV - 11
----
87

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL + 85 + NULLIF ( - 25, 23 + - + 2 * + CAST ( - COALESCE ( + 74, + 60 ) AS INTEGER ) ) / - 11
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + MIN( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6748
SELECT + MIN ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL + 76 + - - COUNT( * ) col2
----
77

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + 76 + - - COUNT ( * ) col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT - 28 AS col0, - MAX( ALL + 92 ) AS col1
----
-28
-92

skipif mysql # not compatible
query II rowsort label-6750
SELECT - 28 AS col0, - MAX ( ALL + 92 ) AS col1
----
-28
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6751
SELECT 57 * 70 * COALESCE ( 54, - ( + - 74 ), + 77 DIV 35 + - NULLIF ( COUNT( * ), + ( - - 63 ) ) + + + CAST( NULL AS SIGNED ) * - 85, COUNT( * ) * SUM( ALL 54 ) ) DIV 19 AS col1
----
11340

skipif mysql # not compatible
query I rowsort label-6751
SELECT 57 * 70 * COALESCE ( 54, - ( + - 74 ), + 77 / 35 + - NULLIF ( COUNT ( * ), + ( - - 63 ) ) + + + CAST ( NULL AS INTEGER ) * - 85, COUNT ( * ) * SUM ( ALL 54 ) ) / 19 AS col1
----
11340

query I rowsort
SELECT DISTINCT - 4 + 21
----
17

query II rowsort
SELECT ALL + 40 + + 8 * 99 AS col0, + 23 * 14
----
832
322

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT ALL COUNT( * ), 74 + SUM( ALL + 41 ) AS col0
----
1
115

skipif mysql # not compatible
query II rowsort label-6754
SELECT ALL COUNT ( * ), 74 + SUM ( ALL + 41 ) AS col0
----
1
115

query II rowsort
SELECT - 39 AS col2, 40 + + + 35
----
-39
75

query I rowsort
SELECT DISTINCT + 59 + 76 AS col1
----
135

query II rowsort
SELECT ALL 96 AS col2, + 73 col1
----
96
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL + 41 + - - CASE 98 WHEN + CAST( 15 AS SIGNED ) * + 41 + + 52 THEN - 9 * NULLIF ( + 89, + COUNT( * ) ) + - - 42 + - - 87 - SUM( 76 ) * + 83 WHEN ( - AVG ( + 5 ) ) - - SUM( DISTINCT 64 ) THEN NULL WHEN 4 + 95 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + 41 + - - CASE 98 WHEN + CAST ( 15 AS INTEGER ) * + 41 + + 52 THEN - 9 * NULLIF ( + 89, + COUNT ( * ) ) + - - 42 + - - 87 - SUM ( 76 ) * + 83 WHEN ( - AVG ( + 5 ) ) - - SUM ( DISTINCT 64 ) THEN NULL WHEN 4 + 95 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 86 * + 6
----
-516

query I rowsort
SELECT 73 - ( - 9 )
----
82

query II rowsort
SELECT - 5 AS col0, - 38 + - + 18 AS col0
----
-5
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT 82 - - 64 - CASE 46 WHEN - - 92 THEN + + ( - 82 ) WHEN - 25 THEN + 47 * + 68 ELSE NULL END + - + COUNT( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT 82 - - 64 - CASE 46 WHEN - - 92 THEN + + ( - 82 ) WHEN - 25 THEN + 47 * + 68 ELSE NULL END + - + COUNT ( 1 )
----
NULL

query I rowsort
SELECT - 92 * + 5 - + 50 AS col0
----
-510

query II rowsort
SELECT ALL + 1 AS col1, 70 + + - 71 + - 31 col2
----
1
-32

query I rowsort
SELECT DISTINCT + - 20 * - - 87 col2
----
-1740

query I rowsort
SELECT ALL - ( 49 ) - - - 35
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT MAX( 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6767
SELECT MAX ( 36 ) AS col2
----
36

query I rowsort
SELECT + 58 * + 41 + NULLIF ( NULLIF ( + - ( + 89 ), - 87 - 51 ), + 85 + + 74 )
----
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL + MAX( 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + MAX ( 23 ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT DISTINCT COALESCE ( + NULLIF ( CASE + NULLIF ( + NULLIF ( - 36, 97 ), - 88 ) WHEN 52 THEN NULL WHEN + MIN( ALL 79 ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) + - ( - 63 ) - 12 / + 62 THEN NULL ELSE 25 END, 71 + 44 ), MIN( - 81 ), - 63 ) * 23
----
575

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT COALESCE ( + NULLIF ( CASE + NULLIF ( + NULLIF ( - 36, 97 ), - 88 ) WHEN 52 THEN NULL WHEN + MIN ( ALL 79 ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) + - ( - 63 ) - 12 / + 62 THEN NULL ELSE 25 END, 71 + 44 ), MIN ( - 81 ), - 63 ) * 23
----
575

query I rowsort
SELECT 13 - + 35 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - 25 + + + 42 * - + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6772
SELECT - 25 + + + 42 * - + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT 15 col1, - COUNT( * )
----
15
-1

skipif mysql # not compatible
query II rowsort label-6773
SELECT 15 col1, - COUNT ( * )
----
15
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6774
SELECT COUNT( * ) AS col0, 74 DIV + 79 + + 20 + NULLIF ( ( 74 ), - 5 * - 23 ) AS col2, + + 92 + 36 + 20 + + - 61
----
1
94
87

skipif mysql # not compatible
query III rowsort label-6774
SELECT COUNT ( * ) AS col0, 74 / + 79 + + 20 + NULLIF ( ( 74 ), - 5 * - 23 ) AS col2, + + 92 + 36 + 20 + + - 61
----
1
94
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT + - 25 DIV - 3
----
8

skipif mysql # not compatible
query I rowsort label-6775
SELECT + - 25 / - 3
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - CASE + 73 WHEN + 41 THEN NULL WHEN 34 THEN NULL ELSE + + 0 + + 39 - + - 60 + + + 8 + + 76 + - + COUNT( ALL + 16 ) + - + NULLIF ( 85, COUNT( 17 ) * - NULLIF ( - 71, - COUNT( * ) ) ) + 29 * + 35 * 81 END AS col0
----
-82312

skipif mysql # not compatible
query I rowsort label-6776
SELECT - CASE + 73 WHEN + 41 THEN NULL WHEN 34 THEN NULL ELSE + + 0 + + 39 - + - 60 + + + 8 + + 76 + - + COUNT ( ALL + 16 ) + - + NULLIF ( 85, COUNT ( 17 ) * - NULLIF ( - 71, - COUNT ( * ) ) ) + 29 * + 35 * 81 END AS col0
----
-82312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6777
SELECT ALL CAST( 1 AS SIGNED ) * - COUNT( * ), 78 * + 75 AS col1
----
-1
5850

skipif mysql # not compatible
query II rowsort label-6777
SELECT ALL CAST ( 1 AS INTEGER ) * - COUNT ( * ), 78 * + 75 AS col1
----
-1
5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT + + 81 + + 26 + + 66 - NULLIF ( COUNT( * ), - 89 * + + 71 / CASE 9 WHEN + 2 * - - CAST( + 14 AS SIGNED ) + - - 4 * ( - 47 * + 84 ) THEN - 42 ELSE NULL END ) - - 4 * 31
----
296

skipif mysql # not compatible
query I rowsort label-6778
SELECT + + 81 + + 26 + + 66 - NULLIF ( COUNT ( * ), - 89 * + + 71 / CASE 9 WHEN + 2 * - - CAST ( + 14 AS INTEGER ) + - - 4 * ( - 47 * + 84 ) THEN - 42 ELSE NULL END ) - - 4 * 31
----
296

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT + COUNT( * ) AS col1, - 76 + + ( - - 37 )
----
1
-39

skipif mysql # not compatible
query II rowsort label-6779
SELECT + COUNT ( * ) AS col1, - 76 + + ( - - 37 )
----
1
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT DISTINCT 62 * - + 88 * + 62 AS col1, COUNT( * ) AS col1
----
-338272
1

skipif mysql # not compatible
query II rowsort label-6780
SELECT DISTINCT 62 * - + 88 * + 62 AS col1, COUNT ( * ) AS col1
----
-338272
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT ALL 69 * + - MAX( CAST( + - 75 AS SIGNED ) ) + + 14 + - CAST( + 96 AS SIGNED ) * 97
----
-4123

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 69 * + - MAX ( CAST ( + - 75 AS INTEGER ) ) + + 14 + - CAST ( + 96 AS INTEGER ) * 97
----
-4123

query II rowsort
SELECT + 67 AS col1, + 23
----
67
23

query I rowsort
SELECT DISTINCT + + 53 * - 88 * 8 + + 23 + + + 13
----
-37276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT + 12 + + 67 AS col1, - MIN( - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) - - + 87 AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6784
SELECT + 12 + + 67 AS col1, - MIN ( - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) - - + 87 AS col2
----
79
NULL

query I rowsort
SELECT ALL 64 * - + 15 + - 69 col1
----
-1029

query I rowsort
SELECT + 41 + + 70 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT + 82 * 50 * - - ( - - 29 ) + + + COUNT( - 19 ) + COUNT( * )
----
118902

skipif mysql # not compatible
query I rowsort label-6787
SELECT + 82 * 50 * - - ( - - 29 ) + + + COUNT ( - 19 ) + COUNT ( * )
----
118902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT 7 * - CAST( NULL AS SIGNED ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT 7 * - CAST ( NULL AS INTEGER ) + + 26
----
NULL

query I rowsort
SELECT ALL NULLIF ( 57, 6 ) * + + 66 * + 22 + + - 15
----
82749

query II rowsort
SELECT ALL 76 * - + 26, 99 AS col1
----
-1976
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL COUNT( * ) * + NULLIF ( + NULLIF ( - + 95, - 52 * + ( - CASE WHEN NOT 36 IS NOT NULL THEN - COUNT( - + 55 ) END ) * + 71 + - 42 ), 79 ) + COALESCE ( + 49 + 64 * 30, 95 )
----
1874

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL COUNT ( * ) * + NULLIF ( + NULLIF ( - + 95, - 52 * + ( - CASE WHEN NOT 36 IS NOT NULL THEN - COUNT ( - + 55 ) END ) * + 71 + - 42 ), 79 ) + COALESCE ( + 49 + 64 * 30, 95 )
----
1874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT + CAST( + COUNT( * ) AS SIGNED ) - 50 + - 84
----
-133

skipif mysql # not compatible
query I rowsort label-6792
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - 50 + - 84
----
-133

query I rowsort
SELECT ALL 69 - 1 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT DISTINCT MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL MIN( - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL MIN ( - + 89 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT + COUNT( * ) + 27 * - + 61 DIV + COUNT( * ) AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-6796
SELECT + COUNT ( * ) + 27 * - + 61 / + COUNT ( * ) AS col0
----
-1646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT - 33 - - CAST( + - COUNT( * ) AS SIGNED ) + - 60 + + COUNT( * ) * 33
----
-61

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 33 - - CAST ( + - COUNT ( * ) AS INTEGER ) + - 60 + + COUNT ( * ) * 33
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT - 92 * + 39 DIV + + ( - 3 )
----
1196

skipif mysql # not compatible
query I rowsort label-6798
SELECT - 92 * + 39 / + + ( - 3 )
----
1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT - 4 + COUNT( * ) DIV - 87
----
-4

skipif mysql # not compatible
query I rowsort label-6799
SELECT - 4 + COUNT ( * ) / - 87
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT ALL - 10 DIV - 24 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - 10 / - 24 * - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL CASE 69 WHEN 67 THEN NULL WHEN COUNT( * ) / + 23 THEN NULL WHEN + + 95 + - 85 THEN + - 54 * 2 * - - 38 ELSE 36 END
----
36

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL CASE 69 WHEN 67 THEN NULL WHEN COUNT ( * ) / + 23 THEN NULL WHEN + + 95 + - 85 THEN + - 54 * 2 * - - 38 ELSE 36 END
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT - CAST( NULL AS SIGNED ) * COUNT( ALL + 14 ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( ALL + 14 ) * - 68
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + + 47, + 82 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT - ( 84 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT - ( 84 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT ALL - NULLIF ( - - ( + 77 ), - NULLIF ( - + 8, 20 * CAST( NULL AS SIGNED ) ) ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - NULLIF ( - - ( + 77 ), - NULLIF ( - + 8, 20 * CAST ( NULL AS INTEGER ) ) ) col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6806
SELECT - - 35 * COUNT( DISTINCT 24 ) * + COUNT( * ) DIV COUNT( * ) AS col1, + NULLIF ( 66, COALESCE ( COUNT( * ), COUNT( * ) ) * + + 55 - 5 ) DIV 43 AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-6806
SELECT - - 35 * COUNT ( DISTINCT 24 ) * + COUNT ( * ) / COUNT ( * ) AS col1, + NULLIF ( 66, COALESCE ( COUNT ( * ), COUNT ( * ) ) * + + 55 - 5 ) / 43 AS col1
----
35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT - ( + CAST( NULL AS SIGNED ) ) + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT DISTINCT + ( - + 14 ) AS col2, + COUNT( * ) AS col0
----
-14
1

skipif mysql # not compatible
query II rowsort label-6808
SELECT DISTINCT + ( - + 14 ) AS col2, + COUNT ( * ) AS col0
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - - COUNT( * ) * + - 22 + - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6809
SELECT - - COUNT ( * ) * + - 22 + - COUNT ( * ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT ALL + 33 DIV + MAX( - 64 ) + + MIN( DISTINCT 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + 33 / + MAX ( - 64 ) + + MIN ( DISTINCT 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6811
SELECT DISTINCT - 4 DIV - + 63 + 40 + + SUM( ALL 53 ) + 51 * 39 col1, + 14 AS col0
----
2082
14

skipif mysql # not compatible
query II rowsort label-6811
SELECT DISTINCT - 4 / - + 63 + 40 + + SUM ( ALL 53 ) + 51 * 39 col1, + 14 AS col0
----
2082
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT ALL - 68 DIV + COUNT( * ) + - - 33 - - COUNT( * ) * + - 79 + - - 15
----
-99

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - 68 / + COUNT ( * ) + - - 33 - - COUNT ( * ) * + - 79 + - - 15
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6813
SELECT ALL - - MIN( 71 ) / ( + CAST( NULL AS SIGNED ) ), - 32 * + + 36 AS col1
----
NULL
-1152

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL - - MIN ( 71 ) / ( + CAST ( NULL AS INTEGER ) ), - 32 * + + 36 AS col1
----
NULL
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT + SUM( - 31 ), + 52 * - 54 AS col2
----
-31
-2808

skipif mysql # not compatible
query II rowsort label-6814
SELECT + SUM ( - 31 ), + 52 * - 54 AS col2
----
-31
-2808

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT DISTINCT + 75 DIV + + 54 + - 18 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT + 75 / + + 54 + - 18 AS col0
----
-17

query I rowsort
SELECT - 0 - + 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6817
SELECT + 6 * + - CAST( + - ( + CAST( - + 32 AS DECIMAL ) ) AS SIGNED ) col2
----
-192

skipif mysql # not compatible
query I rowsort label-6817
SELECT + 6 * + - CAST ( + - ( + CAST ( - + 32 AS REAL ) ) AS INTEGER ) col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL 88 * - + CASE 29 WHEN + - 92 THEN NULL WHEN + COUNT( * ) THEN - 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL 88 * - + CASE 29 WHEN + - 92 THEN NULL WHEN + COUNT ( * ) THEN - 2 ELSE NULL END
----
NULL

query I rowsort
SELECT ( + 1 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL SUM( DISTINCT - 78 ) * - - 22 - + + MAX( ALL + 67 ) + 98
----
-1685

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL SUM ( DISTINCT - 78 ) * - - 22 - + + MAX ( ALL + 67 ) + 98
----
-1685

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT + COALESCE ( - - 16, + + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-6821
SELECT + COALESCE ( - - 16, + + COUNT ( * ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6822
SELECT DISTINCT 35 * - - 15 * - 56 AS col2, - CAST( 64 AS SIGNED ) + - 63
----
-29400
-127

skipif mysql # not compatible
query II rowsort label-6822
SELECT DISTINCT 35 * - - 15 * - 56 AS col2, - CAST ( 64 AS INTEGER ) + - 63
----
-29400
-127

query II rowsort
SELECT ALL 52 * - - 98 * + 89 * - - ( - 99 ) AS col2, 69 AS col0
----
-44900856
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + 65 * + 85 + + SUM( DISTINCT + - 28 ) AS col1
----
5497

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 65 * + 85 + + SUM ( DISTINCT + - 28 ) AS col1
----
5497

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + COUNT( * ) - + - 12
----
13

skipif mysql # not compatible
query I rowsort label-6825
SELECT + COUNT ( * ) - + - 12
----
13

query I rowsort
SELECT + ( - 58 ) * - 4
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT DISTINCT + MAX( - CAST( 67 AS SIGNED ) )
----
-67

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT + MAX ( - CAST ( 67 AS INTEGER ) )
----
-67

query I rowsort
SELECT ALL 74 * 33 * + + 28
----
68376

query I rowsort
SELECT + 80 * - + 63 AS col0
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT - CAST( - - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-6830
SELECT - CAST ( - - 11 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - - NULLIF ( 97, - 51 * + NULLIF ( + 74, COUNT( * ) * - - 3 + 85 ) * + - 66 + COUNT( * ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6831
SELECT - - NULLIF ( 97, - 51 * + NULLIF ( + 74, COUNT ( * ) * - - 3 + 85 ) * + - 66 + COUNT ( * ) ) AS col0
----
97

query I rowsort
SELECT + 79 * + 21 AS col2
----
1659

query I rowsort
SELECT ALL 23 * 55 AS col0
----
1265

query I rowsort
SELECT DISTINCT 28 * + 12
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT 84 - + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-6835
SELECT 84 - + + COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT + 7 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 7 / - 86 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT COUNT( * ) DIV - - 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT COUNT ( * ) / - - 4 AS col1
----
0

query I rowsort
SELECT - 16 - + 84
----
-100

query II rowsort
SELECT - 72 AS col2, + 45 AS col2
----
-72
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT + CAST( + - 77 AS SIGNED ) * - - 57 + - 91 * + 84
----
-12033

skipif mysql # not compatible
query I rowsort label-6840
SELECT + CAST ( + - 77 AS INTEGER ) * - - 57 + - 91 * + 84
----
-12033

query I rowsort
SELECT DISTINCT - 92 + 24 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT 22 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT 22 / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT + 1 + - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + 1 + - - COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT - COUNT( * ) + - - 88 + + 71 + - - COUNT( * ) * + - ( + - 99 ) * - + 46 AS col0
----
-4396

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - COUNT ( * ) + - - 88 + + 71 + - - COUNT ( * ) * + - ( + - 99 ) * - + 46 AS col0
----
-4396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL + CASE - 30 WHEN - CASE ( + - NULLIF ( - 11, + - 54 / + + ( 49 ) * - - ( - ( - 46 ) ) + - CAST( + 83 AS SIGNED ) * - 70 ) ) WHEN 30 * MIN( ALL 1 ) - - 67 THEN + COUNT( * ) * 63 ELSE NULL END - - 39 THEN NULL WHEN 65 THEN 44 WHEN 22 + - 18 THEN NULL WHEN + SUM( 27 ) + 29 * 54 THEN NULL ELSE NULL END + 45 * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + CASE - 30 WHEN - CASE ( + - NULLIF ( - 11, + - 54 / + + ( 49 ) * - - ( - ( - 46 ) ) + - CAST ( + 83 AS INTEGER ) * - 70 ) ) WHEN 30 * MIN ( ALL 1 ) - - 67 THEN + COUNT ( * ) * 63 ELSE NULL END - - 39 THEN NULL WHEN 65 THEN 44 WHEN 22 + - 18 THEN NULL WHEN + SUM ( 27 ) + 29 * 54 THEN NULL ELSE NULL END + 45 * 56 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT + CASE 52 WHEN - 42 THEN NULL WHEN + 49 + - + CASE + COUNT( * ) WHEN + - 52 + ( ( - 18 ) ) / ( - 34 ) / + SUM( + CAST( + + NULLIF ( + 18, - 9 ) AS SIGNED ) ) THEN - 63 END + + 5 THEN 79 END - + CASE NULLIF ( CAST( NULL AS SIGNED ), 33 ) + - 75 WHEN COUNT( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 75 THEN NULL WHEN 35 THEN NULL ELSE COUNT( * ) / - 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT + CASE 52 WHEN - 42 THEN NULL WHEN + 49 + - + CASE + COUNT ( * ) WHEN + - 52 + ( ( - 18 ) ) / ( - 34 ) / + SUM ( + CAST ( + + NULLIF ( + 18, - 9 ) AS INTEGER ) ) THEN - 63 END + + 5 THEN 79 END - + CASE NULLIF ( CAST ( NULL AS INTEGER ), 33 ) + - 75 WHEN COUNT ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 75 THEN NULL WHEN 35 THEN NULL ELSE COUNT ( * ) / - 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT ALL - COUNT( * ), + ( + + COUNT( * ) ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL - COUNT ( * ), + ( + + COUNT ( * ) ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT COUNT( + 65 ) * - - 95 * - - 18 AS col1
----
1710

skipif mysql # not compatible
query I rowsort label-6848
SELECT COUNT ( + 65 ) * - - 95 * - - 18 AS col1
----
1710

query I rowsort
SELECT ALL - - 23 + 4
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT + 27 DIV + 5 + - MIN( 29 )
----
-24

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 27 / + 5 + - MIN ( 29 )
----
-24

query I rowsort
SELECT ALL - NULLIF ( - 63, - + ( 80 ) * - AVG ( DISTINCT + 70 ) + - 92 + + 92 + COALESCE ( 69, + 14 * + + 84 ) + - - 67 * - 82 * COALESCE ( - 64, + 36 ) * 7 * ( 90 * 0 + - 98 ) ) AS col0
----
63

query II rowsort
SELECT + 61 AS col1, 67 AS col1
----
61
67

query I rowsort
SELECT DISTINCT + 44 + - - 92
----
136

query II rowsort
SELECT ALL - 31 AS col2, + 4 AS col1
----
-31
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT + COUNT( * ) * 44 * + SUM( ALL + 47 ) * + + 65 + 1 + ( - COUNT( * ) ) + 75, ( + ( + NULLIF ( - 19, - + 71 ) ) ) col0
----
134495
-19

skipif mysql # not compatible
query II rowsort label-6855
SELECT + COUNT ( * ) * 44 * + SUM ( ALL + 47 ) * + + 65 + 1 + ( - COUNT ( * ) ) + 75, ( + ( + NULLIF ( - 19, - + 71 ) ) ) col0
----
134495
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + 26 - - 10 + - COUNT( - + 31 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + 26 - - 10 + - COUNT ( - + 31 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT - 72 * - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - 72 * - COUNT ( * ) AS col1
----
72

query I rowsort
SELECT ALL 41 - + 85
----
-44

onlyif mysql # aggregate syntax: 
query III rowsort label-6859
SELECT 45, COUNT( * ) col0, 82 AS col1
----
45
1
82

skipif mysql # not compatible
query III rowsort label-6859
SELECT 45, COUNT ( * ) col0, 82 AS col1
----
45
1
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT + 61 DIV - - 76 + + + COALESCE ( + 37, - 97 * + + 85 + + 95 * 30, 26 )
----
37

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 61 / - - 76 + + + COALESCE ( + 37, - 97 * + + 85 + + 95 * 30, 26 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT 18 AS col1, - MIN( 8 )
----
18
-8

skipif mysql # not compatible
query II rowsort label-6861
SELECT 18 AS col1, - MIN ( 8 )
----
18
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL - 27 - + 12 + + + 68 * + COUNT( * ) - 89
----
-60

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - 27 - + 12 + + + 68 * + COUNT ( * ) - 89
----
-60

query I rowsort
SELECT 82 + 62 col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT COUNT( + 94 ) * + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( + 94 ) * + 49 AS col1
----
49

query I rowsort
SELECT ( - 7 ) * 60
----
-420

query II rowsort
SELECT ALL - 72 col2, 87
----
-72
87

query I rowsort
SELECT DISTINCT - NULLIF ( - 23, - 16 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT 17 - - - COUNT( * ) * - 85 col0
----
102

skipif mysql # not compatible
query I rowsort label-6868
SELECT 17 - - - COUNT ( * ) * - 85 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT - COUNT( * ) * + - 53
----
53

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT - COUNT ( * ) * + - 53
----
53

query II rowsort
SELECT DISTINCT - 88 AS col1, + 87 AS col2
----
-88
87

query I rowsort
SELECT ALL 17 + - + 16
----
1

query II rowsort
SELECT 91 col1, 8 AS col2
----
91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT 98 + + NULLIF ( + COUNT( * ), - COALESCE ( - 10, - COUNT( - - 32 ) ) * + - 94 )
----
99

skipif mysql # not compatible
query I rowsort label-6873
SELECT 98 + + NULLIF ( + COUNT ( * ), - COALESCE ( - 10, - COUNT ( - - 32 ) ) * + - 94 )
----
99

query II rowsort
SELECT DISTINCT 39 AS col1, + 73 col1
----
39
73

query II rowsort
SELECT ALL 44 + - - 61 * - - 68 * - + 53 col2, COALESCE ( + + 23, - + 63 ) AS col0
----
-219800
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL - + CASE - CAST( NULL AS SIGNED ) WHEN - - 28 THEN - + 14 WHEN + 67 THEN NULL END + 41 + 14 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - + CASE - CAST ( NULL AS INTEGER ) WHEN - - 28 THEN - + 14 WHEN + 67 THEN NULL END + 41 + 14 + 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6877
SELECT - + 91, - CAST( + 62 AS SIGNED ) AS col2
----
-91
-62

skipif mysql # not compatible
query II rowsort label-6877
SELECT - + 91, - CAST ( + 62 AS INTEGER ) AS col2
----
-91
-62

query I rowsort
SELECT DISTINCT - CASE 84 WHEN - + 35 THEN + 16 + - ( + 92 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL + 8 + + + 71 + - 15 + - - 30 * + ( MIN( DISTINCT + 32 ) ) * - CAST( - COUNT( * ) AS SIGNED ) - - + 10 AS col2
----
1034

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + 8 + + + 71 + - 15 + - - 30 * + ( MIN ( DISTINCT + 32 ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) - - + 10 AS col2
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT 68 + - 57, COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-6880
SELECT 68 + - 57, COUNT ( * ) AS col0
----
11
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6881
SELECT - CAST( NULL AS DECIMAL ), 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6881
SELECT - CAST ( NULL AS REAL ), 18 AS col2
----
NULL
18

query I rowsort
SELECT + 63 + + + 75 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT - MIN( 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT - MIN ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL 46 + - CASE + ( + + 2 ) WHEN - + NULLIF ( 99, 38 - - 73 + + MIN( ALL - + 44 ) * + 12 ) THEN NULL WHEN - 22 THEN + 86 END - + - 64 * + 29 * - 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 46 + - CASE + ( + + 2 ) WHEN - + NULLIF ( 99, 38 - - 73 + + MIN ( ALL - + 44 ) * + 12 ) THEN NULL WHEN - 22 THEN + 86 END - + - 64 * + 29 * - 97 col2
----
NULL

query I rowsort
SELECT 47 * + ( - + 42 ) * 18 - + 54 + + 45
----
-35541

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT - MAX( ALL + 35 ) * 75
----
-2625

skipif mysql # not compatible
query I rowsort label-6886
SELECT - MAX ( ALL + 35 ) * 75
----
-2625

query I rowsort
SELECT - ( - - 31 ) * 31 AS col1
----
-961

query II rowsort
SELECT - 85, ( 46 ) AS col2
----
-85
46

query I rowsort
SELECT 24 + + 44 col0
----
68

query I rowsort
SELECT DISTINCT - 45 * - 73 AS col2
----
3285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT + 13 / + COUNT( * ) * + 73 * + 49 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + 13 / + COUNT ( * ) * + 73 * + 49 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT 76 * - ( - CAST( + ( - 89 ) AS SIGNED ) )
----
-6764

skipif mysql # not compatible
query I rowsort label-6892
SELECT 76 * - ( - CAST ( + ( - 89 ) AS INTEGER ) )
----
-6764

query I rowsort
SELECT DISTINCT - 40 * ( + 39 )
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT 66 * COUNT( 70 )
----
66

skipif mysql # not compatible
query I rowsort label-6894
SELECT 66 * COUNT ( 70 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL - 50 * - CASE - + 6 WHEN COUNT( * ) * + 37 * - AVG ( DISTINCT + 92 ) * + COUNT( - 22 ) * 54 * - 2 THEN - CASE 17 WHEN + ( - + CASE WHEN - COUNT( * ) NOT BETWEEN ( 61 ) * 31 + + 86 AND NULL THEN 48 WHEN NOT ( NULL ) IS NULL THEN NULL END ) THEN NULL WHEN + 24 THEN NULL ELSE - 22 END - + 78 * COUNT( * ) ELSE + 95 END
----
4750

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - 50 * - CASE - + 6 WHEN COUNT ( * ) * + 37 * - AVG ( DISTINCT + 92 ) * + COUNT ( - 22 ) * 54 * - 2 THEN - CASE 17 WHEN + ( - + CASE WHEN - COUNT ( * ) NOT BETWEEN ( 61 ) * 31 + + 86 AND NULL THEN 48 WHEN NOT ( NULL ) IS NULL THEN NULL END ) THEN NULL WHEN + 24 THEN NULL ELSE - 22 END - + 78 * COUNT ( * ) ELSE + 95 END
----
4750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT 85 - + COUNT( * ) DIV 66 + - 82
----
3

skipif mysql # not compatible
query I rowsort label-6896
SELECT 85 - + COUNT ( * ) / 66 + - 82
----
3

query I rowsort
SELECT 21 * + - ( - 21 ) AS col0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL - COALESCE ( ( - MAX( + 76 ) ), 15 ) * - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - COALESCE ( ( - MAX ( + 76 ) ), 15 ) * - COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT 92 * + ( - 11 )
----
-1012

query I rowsort
SELECT ALL 10 * + - 88 AS col0
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT - MAX( + - 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - MAX ( + - 41 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6902
SELECT ALL - CAST( - 15 AS SIGNED ) AS col2, - 79 * - CASE COALESCE ( + 0, 64, + 86 ) WHEN 59 THEN - - COUNT( * ) END AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6902
SELECT ALL - CAST ( - 15 AS INTEGER ) AS col2, - 79 * - CASE COALESCE ( + 0, 64, + 86 ) WHEN 59 THEN - - COUNT ( * ) END AS col0
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6903
SELECT ALL - MIN( DISTINCT - 96 ) AS col2, 17 / 92 * - - 38 + - MIN( - + COALESCE ( 52, - - 6 ) ) + - CASE - 0 WHEN - - 29 + + - 8 - + + 20 + 72 * - 18 * + MAX( ALL 48 ) THEN 22 + - NULLIF ( CAST( NULL AS SIGNED ), 5 * - 91 ) / 42 END / 12
----
96
NULL

skipif mysql # not compatible
query II rowsort label-6903
SELECT ALL - MIN ( DISTINCT - 96 ) AS col2, 17 / 92 * - - 38 + - MIN ( - + COALESCE ( 52, - - 6 ) ) + - CASE - 0 WHEN - - 29 + + - 8 - + + 20 + 72 * - 18 * + MAX ( ALL 48 ) THEN 22 + - NULLIF ( CAST ( NULL AS INTEGER ), 5 * - 91 ) / 42 END / 12
----
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT 11 DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT 11 / + 68 AS col1
----
0

query I rowsort
SELECT 51 * + 19 + - - 92 AS col2
----
1061

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - MAX( ALL 43 ) + + - SUM( ALL + - 70 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - MAX ( ALL 43 ) + + - SUM ( ALL + - 70 ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6907
SELECT - 27 DIV - 61 AS col0, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-6907
SELECT - 27 / - 61 AS col0, + COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT ALL + 53 + 87 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT - - 47 * - COUNT( * ) * - 21
----
987

skipif mysql # not compatible
query I rowsort label-6909
SELECT - - 47 * - COUNT ( * ) * - 21
----
987

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT DISTINCT + 36 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + 36 / - 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT DISTINCT + CAST( 27 AS SIGNED ), + 93 AS col1
----
27
93

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT + CAST ( 27 AS INTEGER ), + 93 AS col1
----
27
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6912
SELECT - - 98 / - CAST( NULL AS SIGNED ), - 38 - 70 AS col1
----
NULL
-108

skipif mysql # not compatible
query II rowsort label-6912
SELECT - - 98 / - CAST ( NULL AS INTEGER ), - 38 - 70 AS col1
----
NULL
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT SUM( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6913
SELECT SUM ( ALL - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT - COUNT( * ) * MIN( ( 23 ) ) - + 56
----
-79

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - COUNT ( * ) * MIN ( ( 23 ) ) - + 56
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT + 79 + 67 * - CASE - 51 WHEN - COALESCE ( - 19, 43 ) / COUNT( * ) + + 72 + + COUNT( * ) THEN NULL ELSE + 5 * - + ( - + 8 ) * COUNT( DISTINCT + 54 ) + - 55 + + 15 - ( 75 + CASE 61 WHEN 0 * 74 THEN - 44 * - 67 WHEN ( - 80 ) * 86 THEN NULL WHEN 24 THEN 15 END / + 64 ) * + 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + 79 + 67 * - CASE - 51 WHEN - COALESCE ( - 19, 43 ) / COUNT ( * ) + + 72 + + COUNT ( * ) THEN NULL ELSE + 5 * - + ( - + 8 ) * COUNT ( DISTINCT + 54 ) + - 55 + + 15 - ( 75 + CASE 61 WHEN 0 * 74 THEN - 44 * - 67 WHEN ( - 80 ) * 86 THEN NULL WHEN 24 THEN 15 END / + 64 ) * + 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6916
SELECT - SUM( - + ( - + 61 ) ) + - MIN( DISTINCT - + 10 ) DIV 5 - - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6916
SELECT - SUM ( - + ( - + 61 ) ) + - MIN ( DISTINCT - + 10 ) / 5 - - COUNT ( * ) AS col1
----
-58

query I rowsort
SELECT + 47 * - 40 + + - 50 + - 80 + - ( - 91 ) * + 47 AS col2
----
2267

query II rowsort
SELECT ALL - 51 + + 67, - 48 + + - 16 AS col2
----
16
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT - 0 - ( + 22 ) + + + MIN( ALL + 84 )
----
62

skipif mysql # not compatible
query I rowsort label-6919
SELECT - 0 - ( + 22 ) + + + MIN ( ALL + 84 )
----
62

query I rowsort
SELECT - - 96 - + - 90 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + - 90 * COUNT( * ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-6921
SELECT + - 90 * COUNT ( * ) col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + MIN( - + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + MIN ( - + 79 ) AS col1
----
-79

query I rowsort
SELECT + + 21 + + - 75 - - 67 * + 56
----
3698

query II rowsort
SELECT ALL - + 51 - + 86, 93 col1
----
-137
93

query I rowsort
SELECT + NULLIF ( + 2, 36 ) AS col1
----
2

query II rowsort
SELECT + ( + 41 ), 4 AS col1
----
41
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT + CASE - 96 WHEN - ( + + 36 ) + 39 + COUNT( * ) * - 16 + - 58 - ( + 13 ) + - + 78 + 1 * + - 94 THEN + 55 * 23 * - COALESCE ( - 76, - - 55 DIV 70 + 15 ) WHEN - 80 THEN NULL ELSE + COUNT( * ) END * + 58
----
58

skipif mysql # not compatible
query I rowsort label-6927
SELECT + CASE - 96 WHEN - ( + + 36 ) + 39 + COUNT ( * ) * - 16 + - 58 - ( + 13 ) + - + 78 + 1 * + - 94 THEN + 55 * 23 * - COALESCE ( - 76, - - 55 / 70 + 15 ) WHEN - 80 THEN NULL ELSE + COUNT ( * ) END * + 58
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT ALL 77 DIV - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL 77 / - 37 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + 47 - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6929
SELECT + 47 - COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT + COUNT( * ) + - - COALESCE ( 13, 80 * + 82 DIV + 67, 49 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6930
SELECT + COUNT ( * ) + - - COALESCE ( 13, 80 * + 82 / + 67, 49 ) AS col2
----
14

query I rowsort
SELECT ALL 29 * + 45 AS col1
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + COALESCE ( + 15, - 92, + + 62 + - 7, COUNT( * ) ) / SUM( + 43 ) / 57 - - CASE - 53 WHEN + 21 THEN NULL WHEN 24 / + 48 + 34 + - + 1 THEN + 65 END + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT + COALESCE ( + 15, - 92, + + 62 + - 7, COUNT ( * ) ) / SUM ( + 43 ) / 57 - - CASE - 53 WHEN + 21 THEN NULL WHEN 24 / + 48 + 34 + - + 1 THEN + 65 END + - + 5
----
NULL

query I rowsort
SELECT + 41 * + 46 * + + 44
----
82984

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + 0 + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6934
SELECT + 0 + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + COUNT( DISTINCT - 66 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + COUNT ( DISTINCT - 66 ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6936
SELECT + CAST( NULL AS DECIMAL ) * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT + CAST ( NULL AS REAL ) * 49 AS col0
----
NULL

query I rowsort
SELECT ALL 69 * + - 74
----
-5106

query I rowsort
SELECT + 81 * + - 34
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT + 94 * - COUNT( * ) * 96 + - ( 82 ) + - 41 + - 62 + + NULLIF ( - + ( - 94 ), - + 91 * - NULLIF ( 37, 43 ) ) * + 73 - ( - 79 ) + NULLIF ( + 35, COUNT( * ) ) * + COUNT( * ) * + COUNT( * )
----
-2233

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + 94 * - COUNT ( * ) * 96 + - ( 82 ) + - 41 + - 62 + + NULLIF ( - + ( - 94 ), - + 91 * - NULLIF ( 37, 43 ) ) * + 73 - ( - 79 ) + NULLIF ( + 35, COUNT ( * ) ) * + COUNT ( * ) * + COUNT ( * )
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6940
SELECT DISTINCT - MAX( DISTINCT 91 ) * - 32 * - CAST( NULL AS SIGNED ) + + 69 + - 37 + COUNT( DISTINCT ( 30 ) ) / - - CASE - 77 WHEN - + 61 THEN NULL WHEN 57 THEN + + 67 * + 99 * + 7 ELSE - + COUNT( * ) END + - 50 * CASE - COUNT( * ) WHEN 10 - + 83 THEN 23 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - MAX ( DISTINCT 91 ) * - 32 * - CAST ( NULL AS INTEGER ) + + 69 + - 37 + COUNT ( DISTINCT ( 30 ) ) / - - CASE - 77 WHEN - + 61 THEN NULL WHEN 57 THEN + + 67 * + 99 * + 7 ELSE - + COUNT ( * ) END + - 50 * CASE - COUNT ( * ) WHEN 10 - + 83 THEN 23 END col2
----
NULL

query I rowsort
SELECT - 51 * - - 95
----
-4845

query I rowsort
SELECT DISTINCT + 17 * 41 * - + 77 + - 76 + - + 51 + - 80
----
-53876

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ( + CASE COUNT( * ) WHEN - - ( 51 ) THEN - 86 * + COUNT( DISTINCT 9 ) WHEN 20 THEN - + 43 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT ( + CASE COUNT ( * ) WHEN - - ( 51 ) THEN - 86 * + COUNT ( DISTINCT 9 ) WHEN 20 THEN - + 43 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL + 84 * + 90 + 21 * - + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + 84 * + 90 + 21 * - + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( - + 51 )
----
-51

query II rowsort
SELECT + - 51 AS col1, 49
----
-51
49

query I rowsort
SELECT ALL + NULLIF ( + + 46, - 1 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT + 87 * - 72 + 68 + CAST( - 85 AS SIGNED )
----
-6281

skipif mysql # not compatible
query I rowsort label-6948
SELECT + 87 * - 72 + 68 + CAST ( - 85 AS INTEGER )
----
-6281

query II rowsort
SELECT DISTINCT + 56 AS col1, ( - - 40 )
----
56
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT ALL 83 * - - 74 + + COUNT( * ), 34 AS col0
----
6143
34

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL 83 * - - 74 + + COUNT ( * ), 34 AS col0
----
6143
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + NULLIF ( MIN( DISTINCT 89 ), + 24 * - ( 64 ) - - + 23 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + NULLIF ( MIN ( DISTINCT 89 ), + 24 * - ( 64 ) - - + 23 ) AS col2
----
89

query II rowsort
SELECT - 23 * 33 * 35 AS col1, 88
----
-26565
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT - COUNT( * ) + + COUNT( * ) DIV + 4 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6953
SELECT - COUNT ( * ) + + COUNT ( * ) / + 4 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT ALL - CAST( NULL AS SIGNED ) * - - MIN( - 0 ) - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - CAST ( NULL AS INTEGER ) * - - MIN ( - 0 ) - 35
----
NULL

query I rowsort
SELECT - + 75 * + 78
----
-5850

query II rowsort
SELECT 38, - 72 AS col1
----
38
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6957
SELECT - - CAST( NULL AS DECIMAL ) + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - - CAST ( NULL AS REAL ) + - 39
----
NULL

query II rowsort
SELECT DISTINCT 58 AS col2, - 69 * + 39 AS col0
----
58
-2691

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT ALL + + 16 DIV 10
----
1

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + + 16 / 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - + COUNT( * ) + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-6960
SELECT - + COUNT ( * ) + - 71
----
-72

query I rowsort
SELECT ALL - + 3 - - - COALESCE ( 90, 75 * + - 84 ) - + 66 AS col2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT MIN( ALL - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT MIN ( ALL - 11 ) AS col0
----
-11

query II rowsort
SELECT ALL + 10 AS col0, 14
----
10
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT - 34 DIV - - 55 + + 68 + 56 + 38
----
162

skipif mysql # not compatible
query I rowsort label-6964
SELECT - 34 / - - 55 + + 68 + 56 + 38
----
162

query II rowsort
SELECT - 37 AS col1, + ( - 4 ) AS col1
----
-37
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL + 95 * 86 * + 37 - + CAST( NULL AS SIGNED ) + + 63 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + 95 * 86 * + 37 - + CAST ( NULL AS INTEGER ) + + 63 * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + + 28 * - COUNT( * ) + - - 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + + 28 * - COUNT ( * ) + - - 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - MAX( DISTINCT + 75 ) * COUNT( * ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-6968
SELECT - MAX ( DISTINCT + 75 ) * COUNT ( * ) col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT + 24 + + 47 AS col1, - MIN( DISTINCT - 87 )
----
71
87

skipif mysql # not compatible
query II rowsort label-6969
SELECT + 24 + + 47 AS col1, - MIN ( DISTINCT - 87 )
----
71
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT - CASE - 94 WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN AVG ( DISTINCT - - 55 ) * - + ( - MIN( + 3 ) ) + + 89 THEN + ( - 26 ) * - CAST( - 17 AS SIGNED ) END * + - ( - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT - CASE - 94 WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN AVG ( DISTINCT - - 55 ) * - + ( - MIN ( + 3 ) ) + + 89 THEN + ( - 26 ) * - CAST ( - 17 AS INTEGER ) END * + - ( - 67 ) AS col0
----
NULL

query I rowsort
SELECT + 17 * + 62 AS col0
----
1054

query I rowsort
SELECT - 5 + + 55
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT + CAST( + 88 AS SIGNED ) * 13
----
1144

skipif mysql # not compatible
query I rowsort label-6973
SELECT + CAST ( + 88 AS INTEGER ) * 13
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT ( - - 34 ) * + + 40
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL MAX( ALL - + 95 ) + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL MAX ( ALL - + 95 ) + COUNT ( * )
----
-94

query I rowsort
SELECT ALL 16 + + 65 AS col0
----
81

query I rowsort
SELECT DISTINCT ( + 72 ) * - 74 AS col2
----
-5328

query I rowsort
SELECT ( - - 70 ) * 78 col2
----
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT 17 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT 17 / - 63 AS col2
----
0

query I rowsort
SELECT DISTINCT 6 + - 84 + - 36
----
-114

query I rowsort
SELECT ALL - + 33 col1
----
-33

query I rowsort
SELECT DISTINCT + 84 - - 56 + - - 9 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL - + MIN( ALL + COALESCE ( ( - 28 ), ( 7 ), - 57 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - + MIN ( ALL + COALESCE ( ( - 28 ), ( 7 ), - 57 ) ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT - CAST( COUNT( 18 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6985
SELECT - CAST ( COUNT ( 18 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6986
SELECT 53 * - + CASE 12 WHEN CASE + 11 WHEN - ( 7 ) * 44 THEN + 95 * COUNT( * ) - - CAST( AVG ( ALL + - 78 ) AS SIGNED ) + + COUNT( * ) * + + 92 * + + 0 + - 52 + - 64 / 76 WHEN 71 THEN + COUNT( * ) * + AVG ( 39 ) END * 29 THEN NULL WHEN + 57 + CAST( NULL AS SIGNED ) THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT 53 * - + CASE 12 WHEN CASE + 11 WHEN - ( 7 ) * 44 THEN + 95 * COUNT ( * ) - - CAST ( AVG ( ALL + - 78 ) AS INTEGER ) + + COUNT ( * ) * + + 92 * + + 0 + - 52 + - 64 / 76 WHEN 71 THEN + COUNT ( * ) * + AVG ( 39 ) END * 29 THEN NULL WHEN + 57 + CAST ( NULL AS INTEGER ) THEN 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ( + + MAX( 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6987
SELECT ( + + MAX ( 60 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - COUNT( * ) * ( - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6988
SELECT - COUNT ( * ) * ( - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL NULLIF ( + 21, + COUNT( * ) + - COUNT( * ) + + 92 * + 65 + - MAX( DISTINCT - 15 ) + + 1 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL NULLIF ( + 21, + COUNT ( * ) + - COUNT ( * ) + + 92 * + 65 + - MAX ( DISTINCT - 15 ) + + 1 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT SUM( 77 ) + - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6990
SELECT SUM ( 77 ) + - COUNT ( * ) AS col1
----
76

query I rowsort
SELECT 5 * + 88
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT - 91 DIV + 14
----
-6

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 91 / + 14
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT ALL + COUNT( * ) + - - 30 DIV + 7 - 28
----
-23

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + COUNT ( * ) + - - 30 / + 7 - 28
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT 86 + + 2 - + NULLIF ( 17, - + COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6994
SELECT 86 + + 2 - + NULLIF ( 17, - + COUNT ( * ) ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6995
SELECT ALL 66, MAX( DISTINCT + 82 ) DIV - + 44 AS col2
----
66
-1

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL 66, MAX ( DISTINCT + 82 ) / - + 44 AS col2
----
66
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT ALL - CASE NULLIF ( + ( 20 ), + + 63 + 45 + - 0 DIV - 72 ) WHEN 1 * + + 41 * + + 49 * + + 12 * + ( - - 62 ) + + 50 DIV + - 42 * + 26 + + 81 * - 95 THEN + + 5 DIV 20 WHEN 54 + + COUNT( * ) THEN 26 + 30 WHEN 23 THEN 99 ELSE + CASE CASE + 85 WHEN 50 THEN NULL WHEN - 43 + 79 THEN + 68 ELSE NULL END WHEN 20 THEN - 47 ELSE + 76 * - 66 END * - 98 END * + COUNT( * )
----
-491568

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - CASE NULLIF ( + ( 20 ), + + 63 + 45 + - 0 / - 72 ) WHEN 1 * + + 41 * + + 49 * + + 12 * + ( - - 62 ) + + 50 / + - 42 * + 26 + + 81 * - 95 THEN + + 5 / 20 WHEN 54 + + COUNT ( * ) THEN 26 + 30 WHEN 23 THEN 99 ELSE + CASE CASE + 85 WHEN 50 THEN NULL WHEN - 43 + 79 THEN + 68 ELSE NULL END WHEN 20 THEN - 47 ELSE + 76 * - 66 END * - 98 END * + COUNT ( * )
----
-491568

query I rowsort
SELECT DISTINCT + 10 * 17 col0
----
170

query I rowsort
SELECT ALL + 37 + + 11 AS col0
----
48

query I rowsort
SELECT ALL 28 + - - 20 + + 1 * - - COALESCE ( + + 33, + 22 + + 64 ) col1
----
81

query I rowsort
SELECT ALL - 65 * + 15
----
-975

query I rowsort
SELECT 95 + - 41 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT COUNT( * ) + - - ( - 85 )
----
-84

skipif mysql # not compatible
query I rowsort label-7002
SELECT COUNT ( * ) + - - ( - 85 )
----
-84

query II rowsort
SELECT 19 AS col1, 4 AS col0
----
19
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL + 92 + + - 84 + - CAST( - 13 AS SIGNED ) * + 81 * ( - 59 )
----
-62119

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + 92 + + - 84 + - CAST ( - 13 AS INTEGER ) * + 81 * ( - 59 )
----
-62119

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT MIN( + 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7005
SELECT MIN ( + 52 ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7006
SELECT ALL CAST( + ( - 84 ) AS SIGNED ) + - COUNT( * ) + + - 1 + + 67 * + COUNT( * ) * - + MIN( + 66 ) * - 78 - 6 DIV + - 15 * + 23 * + SUM( - 68 ) AS col2, 0
----
344830
0

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL CAST ( + ( - 84 ) AS INTEGER ) + - COUNT ( * ) + + - 1 + + 67 * + COUNT ( * ) * - + MIN ( + 66 ) * - 78 - 6 / + - 15 * + 23 * + SUM ( - 68 ) AS col2, 0
----
344830
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7007
SELECT - COUNT( * ) DIV + 74 + + COUNT( * ) * - 99 - - COUNT( * ), 57 DIV - - 35 col2
----
-98
1

skipif mysql # not compatible
query II rowsort label-7007
SELECT - COUNT ( * ) / + 74 + + COUNT ( * ) * - 99 - - COUNT ( * ), 57 / - - 35 col2
----
-98
1

query I rowsort
SELECT ALL + NULLIF ( - 72, - NULLIF ( 81, 73 ) ) * - + 31 AS col0
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT - MAX( + ( - 52 ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - MAX ( + ( - 52 ) ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT 30 + COUNT( * ) * - ( - 28 ) * + ( - 16 ) - - - 1 + 71
----
-348

skipif mysql # not compatible
query I rowsort label-7010
SELECT 30 + COUNT ( * ) * - ( - 28 ) * + ( - 16 ) - - - 1 + 71
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT 21 * - MIN( DISTINCT + 17 ) * - - 17 AS col0
----
-6069

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT 21 * - MIN ( DISTINCT + 17 ) * - - 17 AS col0
----
-6069

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL - - 49 - COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - - 49 - COUNT ( * ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT COALESCE ( + 25, + 33 * - COUNT( * ) * - 19 / + COALESCE ( + + 48, 13, + MIN( - NULLIF ( 9, + - 80 ) ), + NULLIF ( - - MIN( + 54 ), + 19 ) ), CASE - - 34 WHEN + COUNT( * ) + - + COUNT( * ) * MAX( DISTINCT + 61 ) THEN 72 / - 92 END * 33 ) * CASE 22 WHEN - 83 THEN - CAST( NULL AS SIGNED ) WHEN 31 * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT COALESCE ( + 25, + 33 * - COUNT ( * ) * - 19 / + COALESCE ( + + 48, 13, + MIN ( - NULLIF ( 9, + - 80 ) ), + NULLIF ( - - MIN ( + 54 ), + 19 ) ), CASE - - 34 WHEN + COUNT ( * ) + - + COUNT ( * ) * MAX ( DISTINCT + 61 ) THEN 72 / - 92 END * 33 ) * CASE 22 WHEN - 83 THEN - CAST ( NULL AS INTEGER ) WHEN 31 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 24 * - 93 AS col0
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + COUNT( 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT + COUNT ( 79 ) AS col2
----
1

query I rowsort
SELECT + 5 + - + 52 * + 46 * + - 70 AS col0
----
167445

query I rowsort
SELECT 91 * + NULLIF ( - + 48, - - 45 ) col2
----
-4368

query I rowsort
SELECT - 14 * - + 19 + - 62 AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT SUM( ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - 70 END ) + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT SUM ( ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - 70 END ) + - 49 AS col2
----
NULL

query II rowsort
SELECT + + 83 AS col0, 63 AS col0
----
83
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL - 20 * + - 7 * + CAST( NULL AS SIGNED ) + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - 20 * + - 7 * + CAST ( NULL AS INTEGER ) + - 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT + - 64 * - 23 + + ( 81 ) + + 78 + - CASE + 7 WHEN + 57 THEN 38 * - SUM( DISTINCT - - 66 ) WHEN - 49 * + 58 + - 37 + - 3 THEN + CAST( NULL AS SIGNED ) END * + 20 + - 21 + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT + - 64 * - 23 + + ( 81 ) + + 78 + - CASE + 7 WHEN + 57 THEN 38 * - SUM ( DISTINCT - - 66 ) WHEN - 49 * + 58 + - 37 + - 3 THEN + CAST ( NULL AS INTEGER ) END * + 20 + - 21 + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT 6 DIV - 64 + - ( - + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7023
SELECT 6 / - 64 + - ( - + 7 ) AS col1
----
7

query I rowsort
SELECT ALL - + 49 * - 99 AS col2
----
4851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7025
SELECT CAST( NULL AS SIGNED ) + MAX( ALL - 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT CAST ( NULL AS INTEGER ) + MAX ( ALL - 84 ) AS col0
----
NULL

query I rowsort
SELECT 39 * + + 47
----
1833

query I rowsort
SELECT + 30 + - 39 + - + 73 * - - 14
----
-1031

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + COUNT( DISTINCT + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-7028
SELECT + COUNT ( DISTINCT + 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT - MIN( + 34 ) * - SUM( DISTINCT - + 17 ) + NULLIF ( + + 50, - COUNT( ALL - 95 ) ) - - + NULLIF ( + 38, 18 )
----
-490

skipif mysql # not compatible
query I rowsort label-7029
SELECT - MIN ( + 34 ) * - SUM ( DISTINCT - + 17 ) + NULLIF ( + + 50, - COUNT ( ALL - 95 ) ) - - + NULLIF ( + 38, 18 )
----
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT - COUNT( * ) AS col1, - 45
----
-1
-45

skipif mysql # not compatible
query II rowsort label-7030
SELECT - COUNT ( * ) AS col1, - 45
----
-1
-45

query I rowsort
SELECT 15 * - 70 * - 52 AS col1
----
54600

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL - 96 * + + NULLIF ( + 27, - - 58 * + ( - + NULLIF ( + 26, + - 96 ) ) ) * 42 + + 37 * - + 24 + + - NULLIF ( - COUNT( * ), - ( + 75 ) / 1 ) * + 84 AS col1
----
-109668

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - 96 * + + NULLIF ( + 27, - - 58 * + ( - + NULLIF ( + 26, + - 96 ) ) ) * 42 + + 37 * - + 24 + + - NULLIF ( - COUNT ( * ), - ( + 75 ) / 1 ) * + 84 AS col1
----
-109668

query I rowsort
SELECT DISTINCT 12 + - 61
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - CASE 97 WHEN + COUNT( * ) * + 6 THEN NULL ELSE 37 * 91 END AS col1
----
-3367

skipif mysql # not compatible
query I rowsort label-7034
SELECT - CASE 97 WHEN + COUNT ( * ) * + 6 THEN NULL ELSE 37 * 91 END AS col1
----
-3367

query I rowsort
SELECT + 41 * + 63
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL 47 + + COALESCE ( 38, COALESCE ( 90, + 20 * - 62 + + NULLIF ( + 20, + COUNT( * ) ) ) + - - 76 * 17 ) + + + 44
----
129

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 47 + + COALESCE ( 38, COALESCE ( 90, + 20 * - 62 + + NULLIF ( + 20, + COUNT ( * ) ) ) + - - 76 * 17 ) + + + 44
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT COUNT( * ) + - 95 - + 70 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT COUNT ( * ) + - 95 - + 70 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT - COUNT( + 51 ) AS col0, 31
----
-1
31

skipif mysql # not compatible
query II rowsort label-7038
SELECT - COUNT ( + 51 ) AS col0, 31
----
-1
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7039
SELECT ALL 76 AS col0, COUNT( * ) + + 21 - 44 - + 77 AS col0
----
76
-99

skipif mysql # not compatible
query II rowsort label-7039
SELECT ALL 76 AS col0, COUNT ( * ) + + 21 - 44 - + 77 AS col0
----
76
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - COUNT( + ( - + 24 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7040
SELECT - COUNT ( + ( - + 24 ) ) AS col1
----
-1

query I rowsort
SELECT - COALESCE ( + ( + 82 ), - 60 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT - 11 + + + MIN( DISTINCT 19 ) + - - 96 * COALESCE ( - 75, 45 * - + 46 + + - 59 * - - SUM( - ( 21 ) ) * + + CAST( NULL AS SIGNED ) * - COALESCE ( + 10, - - ( + 79 ), 72 * 31 ) + - 51 + 37 + - COUNT( * ) * 33 ) AS col1
----
-7192

skipif mysql # not compatible
query I rowsort label-7042
SELECT - 11 + + + MIN ( DISTINCT 19 ) + - - 96 * COALESCE ( - 75, 45 * - + 46 + + - 59 * - - SUM ( - ( 21 ) ) * + + CAST ( NULL AS INTEGER ) * - COALESCE ( + 10, - - ( + 79 ), 72 * 31 ) + - 51 + 37 + - COUNT ( * ) * 33 ) AS col1
----
-7192

query I rowsort
SELECT + 22 * 21 * + - 52
----
-24024

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - MIN( 40 ) + + 44 * 15
----
620

skipif mysql # not compatible
query I rowsort label-7044
SELECT - MIN ( 40 ) + + 44 * 15
----
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT - 75 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT - 75 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT 98 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT 98 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL CASE 54 WHEN + 42 THEN NULL WHEN - 6 * + 79 * MIN( + - ( + 89 ) ) + COALESCE ( + COUNT( * ), - + 70, + + 48, + 56 ) - - 52 THEN COUNT( * ) * - 21 - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL CASE 54 WHEN + 42 THEN NULL WHEN - 6 * + 79 * MIN ( + - ( + 89 ) ) + COALESCE ( + COUNT ( * ), - + 70, + + 48, + 56 ) - - 52 THEN COUNT ( * ) * - 21 - 48 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 41 * - 64 * - - 77 - + 36 * + 86
----
-205144

query I rowsort
SELECT 43 * + - 36 + - 90 * 85 + + 20
----
-9178

query I rowsort
SELECT - + 90 * 56
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT - 84 + CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT - 84 + CAST ( NULL AS INTEGER ) * 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7052
SELECT + 70 AS col0, CAST( + 65 AS SIGNED )
----
70
65

skipif mysql # not compatible
query II rowsort label-7052
SELECT + 70 AS col0, CAST ( + 65 AS INTEGER )
----
70
65

query I rowsort
SELECT + + 60 * + 99 + + 34 + + 38 * - + 5 - + 53 + + 7 + + 46 * + ( 11 ) AS col1
----
6244

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + + MIN( + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + + MIN ( + + 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7055
SELECT + 4 AS col0, - 84 DIV 7 * COUNT( * ) + + 14 - + 0
----
4
2

skipif mysql # not compatible
query II rowsort label-7055
SELECT + 4 AS col0, - 84 / 7 * COUNT ( * ) + + 14 - + 0
----
4
2

onlyif mysql # aggregate syntax: 
query III rowsort label-7056
SELECT ALL + + 34, - ( - COALESCE ( - - 93, + 30 + - 40 ) ) - + 58 AS col1, - COUNT( * ) * + 56 * - 57 + 99 - 22 * + + 90 AS col2
----
34
35
1311

skipif mysql # not compatible
query III rowsort label-7056
SELECT ALL + + 34, - ( - COALESCE ( - - 93, + 30 + - 40 ) ) - + 58 AS col1, - COUNT ( * ) * + 56 * - 57 + 99 - 22 * + + 90 AS col2
----
34
35
1311

query II rowsort
SELECT - + 63 * + ( - 7 ) + + 9 AS col2, 88 * + 29 AS col2
----
450
2552

query II rowsort
SELECT + 5 col0, + NULLIF ( - + 31, - ( + + 38 ) + + 61 )
----
5
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT - 27 AS col0, ( COUNT( * ) ) / SUM( - + 7 ) - - 55 + + 94 + - CASE - - COALESCE ( + COUNT( * ), + COUNT( DISTINCT - 84 ) ) WHEN + 56 THEN 55 * + - ( - + 79 ) * + NULLIF ( - - NULLIF ( + 31, + 22 ), - ( 32 ) * 78 + - 25 * + ( 18 + 6 ) ) * + COUNT( * ) + + 78 + 87 * 90 END - 34 * SUM( DISTINCT - 33 + 21 ) AS col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-7059
SELECT - 27 AS col0, ( COUNT ( * ) ) / SUM ( - + 7 ) - - 55 + + 94 + - CASE - - COALESCE ( + COUNT ( * ), + COUNT ( DISTINCT - 84 ) ) WHEN + 56 THEN 55 * + - ( - + 79 ) * + NULLIF ( - - NULLIF ( + 31, + 22 ), - ( 32 ) * 78 + - 25 * + ( 18 + 6 ) ) * + COUNT ( * ) + + 78 + 87 * 90 END - 34 * SUM ( DISTINCT - 33 + 21 ) AS col1
----
-27
NULL

query I rowsort
SELECT ALL - + 30 * 64
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - 44 * + COUNT( - - 11 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7061
SELECT - 44 * + COUNT ( - - 11 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + COALESCE ( + + 4, 55 ) * - 4 + - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7062
SELECT + COALESCE ( + + 4, 55 ) * - 4 + - COUNT ( * ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT - - 86 - + + 50 DIV + - 7 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7063
SELECT - - 86 - + + 50 / + - 7 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL 17 * - MAX( DISTINCT - 13 ) + 28
----
249

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 17 * - MAX ( DISTINCT - 13 ) + 28
----
249

query II rowsort
SELECT + 78, 54 AS col2
----
78
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT 12 * - COALESCE ( - 50, MIN( DISTINCT - 8 ), - MIN( DISTINCT + - 15 ) ) * + 85 + + 52
----
51052

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT 12 * - COALESCE ( - 50, MIN ( DISTINCT - 8 ), - MIN ( DISTINCT + - 15 ) ) * + 85 + + 52
----
51052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7067
SELECT ALL 81 * - 15 + + CAST( NULL AS SIGNED ), 36 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL 81 * - 15 + + CAST ( NULL AS INTEGER ), 36 AS col0
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL + COUNT( * ) * + COUNT( * ) + + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + + 12 AS col0
----
13

query I rowsort
SELECT + 59 * - ( - 60 )
----
3540

query I rowsort
SELECT - NULLIF ( 52, NULLIF ( - ( - 51 ), - + 31 * - 10 - + + 8 ) + - - 93 + + 5 ) AS col0
----
-52

query I rowsort
SELECT - 29 + + + 74 AS col1
----
45

query I rowsort
SELECT + 35 * - ( 94 )
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + ( - COUNT( * ) ) + + 15
----
14

skipif mysql # not compatible
query I rowsort label-7073
SELECT + ( - COUNT ( * ) ) + + 15
----
14

query I rowsort
SELECT - NULLIF ( + 70, + + 58 ) AS col2
----
-70

query I rowsort
SELECT ALL 93 - 67
----
26

query I rowsort
SELECT + 99 + + 43 - - 90
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - 5 * MIN( + 93 ) AS col2
----
-465

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 5 * MIN ( + 93 ) AS col2
----
-465

query I rowsort
SELECT + 75 + + ( - 73 ) * 13
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL COUNT( ALL - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL COUNT ( ALL - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL COUNT( * ) * + ( - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL COUNT ( * ) * + ( - 55 ) AS col1
----
-55

query I rowsort
SELECT + 51 + ( - + 20 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7082
SELECT ALL 57 - + CAST( + + 66 AS SIGNED ) + + - COUNT( * ) - + ( + CAST( NULL AS SIGNED ) ) * + - 52 + + COUNT( * ) AS col0, 47 + + 53 * + CASE NULLIF ( COUNT( * ), + 38 * + - COUNT( * ) ) WHEN + 58 + 86 * + 68 + - - CAST( + 88 AS SIGNED ) * 53 + - + 6 THEN COUNT( * ) WHEN 0 THEN + 68 ELSE 96 END AS col0
----
NULL
5135

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL 57 - + CAST ( + + 66 AS INTEGER ) + + - COUNT ( * ) - + ( + CAST ( NULL AS INTEGER ) ) * + - 52 + + COUNT ( * ) AS col0, 47 + + 53 * + CASE NULLIF ( COUNT ( * ), + 38 * + - COUNT ( * ) ) WHEN + 58 + 86 * + 68 + - - CAST ( + 88 AS INTEGER ) * 53 + - + 6 THEN COUNT ( * ) WHEN 0 THEN + 68 ELSE 96 END AS col0
----
NULL
5135

query I rowsort
SELECT + 69 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + 15 + COUNT( * ) + + 26 + 64 + + - 4
----
102

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 15 + COUNT ( * ) + + 26 + 64 + + - 4
----
102

query I rowsort
SELECT - 21 - + 39 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT + 33 * 88 DIV 44 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 33 * 88 / 44 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT COUNT( - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT COUNT ( - 60 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7088
SELECT DISTINCT + - 7 * - + ( + COUNT( * ) ) - - + 89 DIV + 54 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + - 7 * - + ( + COUNT ( * ) ) - - + 89 / + 54 AS col0
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7089
SELECT ALL + 3 DIV - + 46, 86 col2
----
0
86

skipif mysql # not compatible
query II rowsort label-7089
SELECT ALL + 3 / - + 46, 86 col2
----
0
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT - 62 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-7090
SELECT - 62 / + + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7091
SELECT ALL - COALESCE ( + COALESCE ( - + 20, - 65, ( 96 ) DIV - 7 + - 98, - - 61 * 6 ), - 25 ) DIV - CAST( 58 AS SIGNED ) + - + 5 * + 91 * + 42 + + 13 AS col0, 81 AS col0
----
-19097
81

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL - COALESCE ( + COALESCE ( - + 20, - 65, ( 96 ) / - 7 + - 98, - - 61 * 6 ), - 25 ) / - CAST ( 58 AS INTEGER ) + - + 5 * + 91 * + 42 + + 13 AS col0, 81 AS col0
----
-19097
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT ALL - 23 * + - 75 - - CASE + 14 WHEN + COUNT( + ( - 83 ) ) - - 93 THEN - 36 WHEN + + CAST( 12 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - 23 * + - 75 - - CASE + 14 WHEN + COUNT ( + ( - 83 ) ) - - 93 THEN - 36 WHEN + + CAST ( 12 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT - 69 * 41 + 28 + + 21
----
-2780

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - SUM( ALL + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-7094
SELECT - SUM ( ALL + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT + + COUNT( * ) * + - 73 + + CAST( NULL AS SIGNED ) * - 42 + - MIN( 25 ) + - 50 * - - MIN( ALL + - 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT + + COUNT ( * ) * + - 73 + + CAST ( NULL AS INTEGER ) * - 42 + - MIN ( 25 ) + - 50 * - - MIN ( ALL + - 97 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT + 29 DIV + 52 - - 19 * - 22 AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-7096
SELECT + 29 / + 52 - - 19 * - 22 AS col2
----
-418

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT ALL + 84 DIV 3 * - - COALESCE ( ( 95 ), + 72 ) + - 80
----
2580

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + 84 / 3 * - - COALESCE ( ( 95 ), + 72 ) + - 80
----
2580

query II rowsort
SELECT - - 40 + 89, 94 col0
----
129
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT ( - - ( + CASE + CAST( NULLIF ( - + 27, 29 + ( - 79 ) ) AS SIGNED ) WHEN - MAX( DISTINCT - 56 ) * + 9 + COALESCE ( - 95, 18 ) * - 12 * - + COALESCE ( SUM( DISTINCT - - 82 ), + 14, - COUNT( * ) ) THEN + - CASE - 84 WHEN + SUM( ALL ( NULLIF ( - ( - 48 ), + CAST( NULL AS SIGNED ) / 42 ) ) ) + + 63 * - CAST( NULL AS SIGNED ) THEN NULLIF ( 68, + 41 ) - 93 WHEN - COUNT( * ) THEN NULL WHEN - 61 THEN NULLIF ( COUNT( * ), - 75 ) ELSE - 50 END ELSE 46 * 91 END ) )
----
4186

skipif mysql # not compatible
query I rowsort label-7099
SELECT ( - - ( + CASE + CAST ( NULLIF ( - + 27, 29 + ( - 79 ) ) AS INTEGER ) WHEN - MAX ( DISTINCT - 56 ) * + 9 + COALESCE ( - 95, 18 ) * - 12 * - + COALESCE ( SUM ( DISTINCT - - 82 ), + 14, - COUNT ( * ) ) THEN + - CASE - 84 WHEN + SUM ( ALL ( NULLIF ( - ( - 48 ), + CAST ( NULL AS INTEGER ) / 42 ) ) ) + + 63 * - CAST ( NULL AS INTEGER ) THEN NULLIF ( 68, + 41 ) - 93 WHEN - COUNT ( * ) THEN NULL WHEN - 61 THEN NULLIF ( COUNT ( * ), - 75 ) ELSE - 50 END ELSE 46 * 91 END ) )
----
4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7100
SELECT + CAST( - + 99 AS SIGNED ) * - - 43 + - 55 * + 56 AS col0, + 16 * + NULLIF ( + + COUNT( ALL 82 ), + 90 * 62 + - CAST( 76 AS SIGNED ) ) AS col0
----
-7337
16

skipif mysql # not compatible
query II rowsort label-7100
SELECT + CAST ( - + 99 AS INTEGER ) * - - 43 + - 55 * + 56 AS col0, + 16 * + NULLIF ( + + COUNT ( ALL 82 ), + 90 * 62 + - CAST ( 76 AS INTEGER ) ) AS col0
----
-7337
16

query II rowsort
SELECT DISTINCT - 27 + + - 43, NULLIF ( + 34, 19 ) AS col0
----
-70
34

query I rowsort
SELECT ALL 53 + + 71 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT COUNT( * ) + 24 + - 20 + + 90
----
95

skipif mysql # not compatible
query I rowsort label-7103
SELECT COUNT ( * ) + 24 + - 20 + + 90
----
95

onlyif mysql # aggregate syntax: 
query III rowsort label-7104
SELECT DISTINCT + COUNT( ALL + - 23 ) * 84 AS col1, + 63, + 65 AS col0
----
84
63
65

skipif mysql # not compatible
query III rowsort label-7104
SELECT DISTINCT + COUNT ( ALL + - 23 ) * 84 AS col1, + 63, + 65 AS col0
----
84
63
65

query I rowsort
SELECT ALL - 6 - + - 71 + + 83 + + - 36 * - + 90 AS col2
----
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT 11 DIV - + ( 50 ) * - - 96
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT 11 / - + ( 50 ) * - - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT NULLIF ( + 51, + MIN( DISTINCT 52 ) * - 40 ) * - + 31
----
-1581

skipif mysql # not compatible
query I rowsort label-7107
SELECT NULLIF ( + 51, + MIN ( DISTINCT 52 ) * - 40 ) * - + 31
----
-1581

query I rowsort
SELECT DISTINCT + 61 * + 7
----
427

query II rowsort
SELECT ALL 81 AS col2, 96 AS col0
----
81
96

query II rowsort
SELECT - 82, + NULLIF ( 5, + NULLIF ( 61, - 5 + + 60 ) ) col1
----
-82
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL + COUNT( * ) * 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + COUNT ( * ) * 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT - 88 * - - SUM( - COALESCE ( - - 9, - 7, 11 ) )
----
792

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - 88 * - - SUM ( - COALESCE ( - - 9, - 7, 11 ) )
----
792

query I rowsort
SELECT 46 * 96 AS col2
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT ALL 92 AS col0, NULLIF ( + - NULLIF ( - 5, 2 ), + + SUM( 83 ) * - COUNT( * ) / SUM( 60 ) + + + 66 ) * + 61 * - + 17 AS col1
----
92
-5185

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL 92 AS col0, NULLIF ( + - NULLIF ( - 5, 2 ), + + SUM ( 83 ) * - COUNT ( * ) / SUM ( 60 ) + + + 66 ) * + 61 * - + 17 AS col1
----
92
-5185

query I rowsort
SELECT ( - - 14 ) + - 5 + + ( NULLIF ( - ( - 3 ), 58 ) ) - 23 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT 36 * 25 DIV + 44
----
20

skipif mysql # not compatible
query I rowsort label-7116
SELECT 36 * 25 / + 44
----
20

query I rowsort
SELECT CASE - 57 WHEN 39 * + 33 THEN NULL ELSE + 46 * - 66 END * - 7 AS col1
----
21252

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7118
SELECT MAX ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT - - COUNT( ALL - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT - - COUNT ( ALL - 66 ) AS col2
----
1

query I rowsort
SELECT - 33 * - 56 AS col1
----
1848

query I rowsort
SELECT DISTINCT + 74 * + 92
----
6808

query II rowsort
SELECT ALL - + 17 + + - ( 88 ) * 58 AS col1, - 16
----
-5121
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL + ( - 82 ) + + 56 / + + CASE - 5 WHEN 22 / + 37 + - 56 THEN - 25 WHEN COUNT( * ) * 41 + - - 77 THEN + - 66 END * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + ( - 82 ) + + 56 / + + CASE - 5 WHEN 22 / + 37 + - 56 THEN - 25 WHEN COUNT ( * ) * 41 + - - 77 THEN + - 66 END * 51 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 84 col2, + 12 + 63
----
-84
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT + 21 DIV + COUNT( * ) + COUNT( * ) + - 38 + + ( + 91 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7125
SELECT + 21 / + COUNT ( * ) + COUNT ( * ) + - 38 + + ( + 91 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - MIN( DISTINCT - + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7126
SELECT - MIN ( DISTINCT - + 36 )
----
36

query II rowsort
SELECT + 82 + + 21 + - - 99 AS col2, + 81
----
202
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7128
SELECT 22 * ( + 77 ) * - 83 col1, CAST( NULL AS SIGNED ) * 18 AS col0
----
-140602
NULL

skipif mysql # not compatible
query II rowsort label-7128
SELECT 22 * ( + 77 ) * - 83 col1, CAST ( NULL AS INTEGER ) * 18 AS col0
----
-140602
NULL

query II rowsort
SELECT DISTINCT - + 14, + ( - 12 ) AS col2
----
-14
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL 19 + CASE - - 80 WHEN - 38 THEN NULL WHEN + 87 + + CAST( NULL AS SIGNED ) THEN 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL 19 + CASE - - 80 WHEN - 38 THEN NULL WHEN + 87 + + CAST ( NULL AS INTEGER ) THEN 49 END
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + - COUNT( + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-7132
SELECT + - COUNT ( + 85 )
----
-1

query I rowsort
SELECT - 89 * + 7 AS col2
----
-623

query II rowsort
SELECT ALL CASE 16 WHEN + - AVG ( DISTINCT + - 51 ) THEN NULL WHEN 65 THEN NULL ELSE 99 * + 72 END * 5, + 43 AS col0
----
35640
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT 21 DIV + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7135
SELECT 21 / + COUNT ( * )
----
21

query I rowsort
SELECT 24 - - 42 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT ( + CAST( + 47 AS SIGNED ) ) - - + 91 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-7137
SELECT ( + CAST ( + 47 AS INTEGER ) ) - - + 91 AS col1
----
138

query I rowsort
SELECT 4 * + 87 * - 41 col2
----
-14268

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL SUM( + NULLIF ( + 39, + 78 ) ) * 86
----
3354

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL SUM ( + NULLIF ( + 39, + 78 ) ) * 86
----
3354

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT DISTINCT COUNT( - - 97 ) AS col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7140
SELECT DISTINCT COUNT ( - - 97 ) AS col0, + COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 56 - + ( - - 63 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT 39 * - 33 * + NULLIF ( ( + 7 ), - NULLIF ( 93, - - 95 * COUNT( * ) * - + COALESCE ( - 14, + - 79 - COUNT( * ) + - 42 ) + - SUM( 82 ) + 64 + COUNT( * ) ) )
----
-9009

skipif mysql # not compatible
query I rowsort label-7142
SELECT 39 * - 33 * + NULLIF ( ( + 7 ), - NULLIF ( 93, - - 95 * COUNT ( * ) * - + COALESCE ( - 14, + - 79 - COUNT ( * ) + - 42 ) + - SUM ( 82 ) + 64 + COUNT ( * ) ) )
----
-9009

query I rowsort
SELECT 46 - - - 0 + + 99 * 95 * + 9
----
84691

query I rowsort
SELECT 20 + + + 47 + - 90
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT CASE + - MIN( DISTINCT + 9 ) WHEN + 51 THEN 9 END / + 32 * + 58 + - + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT CASE + - MIN ( DISTINCT + 9 ) WHEN + 51 THEN 9 END / + 32 * + 58 + - + 42 AS col0
----
NULL

query I rowsort
SELECT 45 + - 39 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7147
SELECT ALL 56 + + COUNT( * ) AS col1, + 49 * + COUNT( * ) DIV - 62 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL 56 + + COUNT ( * ) AS col1, + 49 * + COUNT ( * ) / - 62 AS col1
----
57
0

query I rowsort
SELECT 55 + ( 3 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT - ( - 51 ) * + ( + + 51 ) + - NULLIF ( - - MAX( DISTINCT 99 ), 75 ) * COUNT( - 94 )
----
2502

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - ( - 51 ) * + ( + + 51 ) + - NULLIF ( - - MAX ( DISTINCT 99 ), 75 ) * COUNT ( - 94 )
----
2502

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7150
SELECT CAST( - - 94 AS SIGNED ) DIV - + 17 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7150
SELECT CAST ( - - 94 AS INTEGER ) / - + 17 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT - COALESCE ( - + 82, CAST( NULL AS SIGNED ), + 66 - CASE 64 WHEN + + NULLIF ( + 82, - ( - COUNT( * ) ) ) THEN NULL WHEN 11 * + - COUNT( * ) * - + ( + COALESCE ( + 74, 9 * 72 + + - 44 + - CASE + 36 WHEN - 51 + - - 95 - 5 - - COUNT( * ) * 18 * 97 THEN - 4 WHEN 12 THEN COUNT( * ) * ( 12 ) - - 57 ELSE NULL END + 30 ) ) THEN - CASE 9 WHEN 1 + 18 THEN - 8 * 29 ELSE + ( + 82 ) END ELSE ( + 84 ) END ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7151
SELECT - COALESCE ( - + 82, CAST ( NULL AS INTEGER ), + 66 - CASE 64 WHEN + + NULLIF ( + 82, - ( - COUNT ( * ) ) ) THEN NULL WHEN 11 * + - COUNT ( * ) * - + ( + COALESCE ( + 74, 9 * 72 + + - 44 + - CASE + 36 WHEN - 51 + - - 95 - 5 - - COUNT ( * ) * 18 * 97 THEN - 4 WHEN 12 THEN COUNT ( * ) * ( 12 ) - - 57 ELSE NULL END + 30 ) ) THEN - CASE 9 WHEN 1 + 18 THEN - 8 * 29 ELSE + ( + 82 ) END ELSE ( + 84 ) END ) AS col1
----
82

query I rowsort
SELECT 27 + + 9 AS col2
----
36

query I rowsort
SELECT 60 * - 62 AS col0
----
-3720

query I rowsort
SELECT - 24 + - 87
----
-111

query I rowsort
SELECT ALL ( + 30 ) * - 49 col2
----
-1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT DISTINCT - + 25 * ( - 60 ) + + - NULLIF ( CASE WHEN NOT 64 NOT BETWEEN - CAST( NULL AS SIGNED ) AND - 24 THEN + - 8 ELSE NULL END, + - ( + 76 ) + - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - + 25 * ( - 60 ) + + - NULLIF ( CASE WHEN NOT 64 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - 24 THEN + - 8 ELSE NULL END, + - ( + 76 ) + - 87 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - COALESCE ( - 39, + COUNT( * ) ) + - - 71 * + 38 * - 5 + 88
----
-13363

skipif mysql # not compatible
query I rowsort label-7157
SELECT - COALESCE ( - 39, + COUNT ( * ) ) + - - 71 * + 38 * - 5 + 88
----
-13363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT DISTINCT + - CAST( 37 AS SIGNED ) * 56 - CAST( COUNT( * ) AS SIGNED )
----
-2073

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + - CAST ( 37 AS INTEGER ) * 56 - CAST ( COUNT ( * ) AS INTEGER )
----
-2073

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7159
SELECT ALL ( 56 ) * - CAST( NULL AS DECIMAL ) * - 23 / - - 40 * - + CAST( NULL AS SIGNED ) * + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL ( 56 ) * - CAST ( NULL AS REAL ) * - 23 / - - 40 * - + CAST ( NULL AS INTEGER ) * + - 33 AS col2
----
NULL

query I rowsort
SELECT ALL + 68 * 93 * - + ( - + ( 32 ) ) AS col1
----
202368

query I rowsort
SELECT ALL - + 40 * + - 19 - - 71 + - + 66
----
765

query I rowsort
SELECT + NULLIF ( - 8, + ( - - 57 ) ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT 5 DIV 83 * - 86 DIV - 29 + + + 25 + - - 81 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-7163
SELECT 5 / 83 * - 86 / - 29 + + + 25 + - - 81 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT ALL 70 DIV 23 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL 70 / 23 / - + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT 79 * 29 + - SUM( DISTINCT 95 ) * 32
----
-749

skipif mysql # not compatible
query I rowsort label-7165
SELECT 79 * 29 + - SUM ( DISTINCT 95 ) * 32
----
-749

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT - 49 * + 41 + - - 48, COUNT( * ) col2
----
-1961
1

skipif mysql # not compatible
query II rowsort label-7166
SELECT - 49 * + 41 + - - 48, COUNT ( * ) col2
----
-1961
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT ALL + COALESCE ( - ( - 92 ), - - 14 DIV - - 50 + 36 * + - COUNT( * ) * - NULLIF ( - - COUNT( * ), - ( 58 ) ) + - 10 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + COALESCE ( - ( - 92 ), - - 14 / - - 50 + 36 * + - COUNT ( * ) * - NULLIF ( - - COUNT ( * ), - ( 58 ) ) + - 10 ) AS col0
----
92

query I rowsort
SELECT + 70 * - 36
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT ALL 34 DIV 54 * + + 3
----
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL 34 / 54 * + + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - 46 + + 70 * + + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7170
SELECT - 46 + + 70 * + + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + CASE - 61 WHEN + - 14 + 70 + - 17 THEN NULL ELSE 65 END AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL + MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + MAX ( 97 )
----
97

query II rowsort
SELECT + CASE - 16 WHEN - + 72 THEN NULL ELSE + 64 - 54 END col2, - 29
----
10
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT + 92 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 92 / + - 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - ( + 49 ) + + SUM( - 31 )
----
-80

skipif mysql # not compatible
query I rowsort label-7175
SELECT - ( + 49 ) + + SUM ( - 31 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT COUNT( - 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7176
SELECT COUNT ( - 98 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 98 + - CASE 83 WHEN ( + + NULLIF ( - + 43, 81 ) ) * COALESCE ( 58, 71 ) * + 10 THEN 26 + - 47 ELSE + + 70 END AS col2
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7178
SELECT - 38 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT - 38 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - ( + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT - + COUNT( * ) * - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7180
SELECT - + COUNT ( * ) * - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 8 * + + 63 * + 30 AS col1
----
-15120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7182
SELECT ALL - 64 DIV + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - 64 / + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT - + 45 - - - MAX( DISTINCT - - 91 )
----
-136

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT - + 45 - - - MAX ( DISTINCT - - 91 )
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT - + COUNT( * ) * NULLIF ( + 63, 72 )
----
-63

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - + COUNT ( * ) * NULLIF ( + 63, 72 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT ALL - COUNT( * ) - - 55 + COUNT( * ) DIV - - 61
----
54

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - COUNT ( * ) - - 55 + COUNT ( * ) / - - 61
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - - COALESCE ( 18, - COUNT( * ) ) * 28
----
504

skipif mysql # not compatible
query I rowsort label-7186
SELECT - - COALESCE ( 18, - COUNT ( * ) ) * 28
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT ( + MIN( - ( - 34 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT ( + MIN ( - ( - 34 ) ) )
----
34

query I rowsort
SELECT - NULLIF ( - - 57, + 13 * + + ( + COALESCE ( - 63, - + 19 ) ) ) * 27
----
-1539

onlyif mysql # DIV for integer division: 
query II rowsort label-7189
SELECT + + 67 col1, 16 DIV + 93
----
67
0

skipif mysql # not compatible
query II rowsort label-7189
SELECT + + 67 col1, 16 / + 93
----
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL + COALESCE ( - - ( + MAX( ALL - 18 ) ), + 51 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + COALESCE ( - - ( + MAX ( ALL - 18 ) ), + 51 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT 29 * 9 * COUNT( * )
----
261

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT 29 * 9 * COUNT ( * )
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT DISTINCT + 91 col0, + SUM( ALL - 62 ) col1
----
91
-62

skipif mysql # not compatible
query II rowsort label-7192
SELECT DISTINCT + 91 col0, + SUM ( ALL - 62 ) col1
----
91
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7193
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ), CASE + 4 WHEN 26 THEN NULL ELSE 63 END AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7193
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ), CASE + 4 WHEN 26 THEN NULL ELSE 63 END AS col0
----
NULL
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7194
SELECT ALL + 4, - CAST( NULL AS SIGNED ) AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7194
SELECT ALL + 4, - CAST ( NULL AS INTEGER ) AS col2
----
4
NULL

query I rowsort
SELECT + ( + - 85 ) col1
----
-85

query I rowsort
SELECT ( - + 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - 16 * - MIN( DISTINCT 77 ) col1
----
1232

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 16 * - MIN ( DISTINCT 77 ) col1
----
1232

query I rowsort
SELECT ALL 28 * ( 21 ) AS col0
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( * ) - - 4
----
5

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( * ) - - 4
----
5

query I rowsort
SELECT + NULLIF ( + 83, 19 - + 92 )
----
83

query I rowsort
SELECT + 75 * - 29 col0
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT + 57 + + NULLIF ( + 56, + 41 + - COALESCE ( 54, - SUM( ALL 19 ) / - 20 + + 20 * - ( - 44 ), - 84 ) ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 57 + + NULLIF ( + 56, + 41 + - COALESCE ( 54, - SUM ( ALL 19 ) / - 20 + + 20 * - ( - 44 ), - 84 ) ) AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT + + COUNT( * ) * 92 + - 78 DIV - 9 + - 0 * - ( 53 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7203
SELECT + + COUNT ( * ) * 92 + - 78 / - 9 + - 0 * - ( 53 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT - CASE + 22 WHEN + COUNT( * ) THEN ( - 24 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT - CASE + 22 WHEN + COUNT ( * ) THEN ( - 24 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 62 * 52 AS col2
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + 4 + + - COUNT( * ) + 45 + + 91 * 53 + + + CASE + 84 WHEN - 81 THEN NULL ELSE - 71 END AS col0
----
4800

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + 4 + + - COUNT ( * ) + 45 + + 91 * 53 + + + CASE + 84 WHEN - 81 THEN NULL ELSE - 71 END AS col0
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT 89 + + CAST( + ( 32 ) AS SIGNED ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-7207
SELECT 89 + + CAST ( + ( 32 ) AS INTEGER ) AS col0
----
121

query II rowsort
SELECT DISTINCT 36, 97 - - 38 AS col1
----
36
135

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT 11 AS col0, + COUNT( * ) + 53 AS col1
----
11
54

skipif mysql # not compatible
query II rowsort label-7209
SELECT 11 AS col0, + COUNT ( * ) + 53 AS col1
----
11
54

query I rowsort
SELECT 58 + + 94 * 73 * - + 69 * - 10 AS col2
----
4734838

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT - 26 AS col1, ( + + COUNT( - 2 ) ) AS col1
----
-26
1

skipif mysql # not compatible
query II rowsort label-7211
SELECT - 26 AS col1, ( + + COUNT ( - 2 ) ) AS col1
----
-26
1

query I rowsort
SELECT - 69 + - 26 + + 88 * + - 62 AS col0
----
-5551

query I rowsort
SELECT + ( + + 35 ) * - 46
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT 30 * + COUNT( 91 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7214
SELECT 30 * + COUNT ( 91 ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7215
SELECT ALL + COUNT( * ) * - COUNT( * ), - CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL + COUNT ( * ) * - COUNT ( * ), - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
-1
-1

query I rowsort
SELECT 46 - + + 85 * + + 99 + - 72 * - 55
----
-4409

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT MAX( + 55 ) * 30 AS col2
----
1650

skipif mysql # not compatible
query I rowsort label-7217
SELECT MAX ( + 55 ) * 30 AS col2
----
1650

query I rowsort
SELECT 29 * + + 36
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL 81 + - + 24 * + 73 + - MAX( ALL + 22 )
----
-1693

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL 81 + - + 24 * + 73 + - MAX ( ALL + 22 )
----
-1693

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT COUNT( * ) + + 11 AS col1, 92 AS col1
----
12
92

skipif mysql # not compatible
query II rowsort label-7220
SELECT COUNT ( * ) + + 11 AS col1, 92 AS col1
----
12
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL + CAST( + 3 AS SIGNED ) + - 48 col0
----
-45

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + CAST ( + 3 AS INTEGER ) + - 48 col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT DISTINCT + 71 + - - 90 + - + 28 - 36 * + 9 DIV - COUNT( * ) AS col0
----
457

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + 71 + - - 90 + - + 28 - 36 * + 9 / - COUNT ( * ) AS col0
----
457

query I rowsort
SELECT ALL 75 + 56
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT - COUNT( - + ( - 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT - COUNT ( - + ( - 8 ) )
----
-1

query I rowsort
SELECT ALL + 53 + - + 64 + + 73 + 44 + + 74 * 78
----
5878

query I rowsort
SELECT 45 * ( 32 )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT MAX( - + 75 ) + - 44
----
-119

skipif mysql # not compatible
query I rowsort label-7227
SELECT MAX ( - + 75 ) + - 44
----
-119

query II rowsort
SELECT ALL 39 * + - 44 * + 90 AS col0, 90 AS col2
----
-154440
90

query II rowsort
SELECT 90 + + 42 AS col0, + 53 AS col1
----
132
53

query II rowsort
SELECT DISTINCT 85 * - 73, + 49 col0
----
-6205
49

query I rowsort
SELECT + - 35 * - 12 + + 98 * - - 61 * - - ( + 31 )
----
185738

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ( COUNT( * ) ) + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7232
SELECT ( COUNT ( * ) ) + 37 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT + NULLIF ( 32, ( + 22 ) + 63 ) AS col1, COUNT( * ) + 88 / AVG ( ALL 73 ) + - ( + 7 ) + - SUM( - 50 ) * - CAST( NULL AS SIGNED ) col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7233
SELECT + NULLIF ( 32, ( + 22 ) + 63 ) AS col1, COUNT ( * ) + 88 / AVG ( ALL 73 ) + - ( + 7 ) + - SUM ( - 50 ) * - CAST ( NULL AS INTEGER ) col0
----
32
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 63, 69 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT ALL COUNT( * ) DIV 4
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL COUNT ( * ) / 4
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + - 15, + 82 + + 9 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT - MAX( DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 40 * - 49 THEN + 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT - MAX ( DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 40 * - 49 THEN + 76 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7238
SELECT - CAST( NULL AS SIGNED ) / 31 AS col1, 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-7238
SELECT - CAST ( NULL AS INTEGER ) / 31 AS col1, 13 AS col2
----
NULL
13

query I rowsort
SELECT + 66 * - + ( + 28 ) * - 10 col2
----
18480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7240
SELECT DISTINCT ( - 36 ) * 52 * - ( - 0 ), COUNT( * ) DIV - CASE COUNT( * ) WHEN - - 30 THEN NULL WHEN COUNT( * ) THEN SUM( ALL - - 15 ) * - 40 * 56 ELSE NULL END col1
----
0
0

skipif mysql # not compatible
query II rowsort label-7240
SELECT DISTINCT ( - 36 ) * 52 * - ( - 0 ), COUNT ( * ) / - CASE COUNT ( * ) WHEN - - 30 THEN NULL WHEN COUNT ( * ) THEN SUM ( ALL - - 15 ) * - 40 * 56 ELSE NULL END col1
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7241
SELECT COUNT( * ) DIV - - 51 AS col2, - 99 AS col1
----
0
-99

skipif mysql # not compatible
query II rowsort label-7241
SELECT COUNT ( * ) / - - 51 AS col2, - 99 AS col1
----
0
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT + 6 - - - 55 AS col2, COUNT( * ) AS col2
----
-49
1

skipif mysql # not compatible
query II rowsort label-7242
SELECT + 6 - - - 55 AS col2, COUNT ( * ) AS col2
----
-49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL MIN( 53 ) * - 59 + - 99
----
-3226

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL MIN ( 53 ) * - 59 + - 99
----
-3226

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL 99 + - SUM( + 13 ) + CASE NULLIF ( + 34, + 30 - + - 80 ) WHEN + - 9 / - + 58 THEN + 56 WHEN - 77 / - 21 * - ( + COUNT( * ) ) + - 45 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL 99 + - SUM ( + 13 ) + CASE NULLIF ( + 34, + 30 - + - 80 ) WHEN + - 9 / - + 58 THEN + 56 WHEN - 77 / - 21 * - ( + COUNT ( * ) ) + - 45 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 4 col2, - 92 - 9 + + - 71 + 31 AS col0
----
4
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL + 84 + - 71 + + CAST( - - 2 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + 84 + - 71 + + CAST ( - - 2 AS INTEGER )
----
15

query I rowsort
SELECT 14 + - 50 AS col2
----
-36

query I rowsort
SELECT ( - 66 ) * + 19 - + - 33 AS col0
----
-1221

query II rowsort
SELECT + 21 AS col2, 7 * + 89
----
21
623

query I rowsort
SELECT 48 + - + 13
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT ALL ( - 82 ) DIV + 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL ( - 82 ) / + 55 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + SUM( + 44 ) * + 58 * + + 85 + + 43
----
216963

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + SUM ( + 44 ) * + 58 * + + 85 + + 43
----
216963

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL 42 * - COUNT( * ) * + 68 + + 37 + + 56 + ( + 57 ) AS col0
----
-2706

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL 42 * - COUNT ( * ) * + 68 + + 37 + + 56 + ( + 57 ) AS col0
----
-2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7254
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / - CAST( NULL AS SIGNED ) col1, + COUNT( * ) + + + 82
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7254
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) + + + 82
----
NULL
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT COUNT( * ), + 42 AS col0
----
1
42

skipif mysql # not compatible
query II rowsort label-7255
SELECT COUNT ( * ), + 42 AS col0
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT 64 * + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7256
SELECT 64 * + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT COUNT( DISTINCT 44 )
----
1

skipif mysql # not compatible
query I rowsort label-7257
SELECT COUNT ( DISTINCT 44 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT ALL + COUNT( * ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + COUNT ( * ) / - 47
----
0

query I rowsort
SELECT 6 * 9 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT + 20, - COUNT( * ) AS col2
----
20
-1

skipif mysql # not compatible
query II rowsort label-7261
SELECT + 20, - COUNT ( * ) AS col2
----
20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + MIN( DISTINCT - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7262
SELECT + MIN ( DISTINCT - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT ALL + - 58, 45 * MIN( DISTINCT - - 90 ) + + 78 * + COUNT( * ) AS col0
----
-58
4128

skipif mysql # not compatible
query II rowsort label-7263
SELECT ALL + - 58, 45 * MIN ( DISTINCT - - 90 ) + + 78 * + COUNT ( * ) AS col0
----
-58
4128

query II rowsort
SELECT DISTINCT - - 22 - + + 70 + + 3 AS col2, - 24 AS col1
----
-45
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL CAST( + + 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL CAST ( + + 13 AS INTEGER ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT - + COUNT( * ) + - 68 + COUNT( * ) + + - COUNT( * ) * 11
----
-79

skipif mysql # not compatible
query I rowsort label-7266
SELECT - + COUNT ( * ) + - 68 + COUNT ( * ) + + - COUNT ( * ) * 11
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + - 41 - + + NULLIF ( 90, - COUNT( * ) ) + + 35 + 81 + - COUNT( * ) - + 88 * + MIN( - 20 ) + + 66 * + + 81 + - ( + CASE + 63 WHEN 50 THEN - COUNT( * ) / - 49 + 90 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT + - 41 - + + NULLIF ( 90, - COUNT ( * ) ) + + 35 + 81 + - COUNT ( * ) - + 88 * + MIN ( - 20 ) + + 66 * + + 81 + - ( + CASE + 63 WHEN 50 THEN - COUNT ( * ) / - 49 + 90 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT COUNT( * ) * 63
----
63

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT COUNT ( * ) * 63
----
63

query I rowsort
SELECT + 91 + 22
----
113

query I rowsort
SELECT + + 64 * + 9
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7271
SELECT ALL ( - + COALESCE ( - COALESCE ( - COUNT( * ), + 35 + + AVG ( ALL 61 ) * + 86 DIV - COUNT( DISTINCT - 83 ) ), + 23 * + COALESCE ( - 89, - CASE + 99 WHEN 40 + - - 54 THEN NULLIF ( + MIN( DISTINCT - + CAST( 85 AS SIGNED ) ), - 21 * 24 ) WHEN + 91 THEN + SUM( DISTINCT 46 ) END, 10 * MAX( - 1 ) ) * - 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL ( - + COALESCE ( - COALESCE ( - COUNT ( * ), + 35 + + AVG ( ALL 61 ) * + 86 / - COUNT ( DISTINCT - 83 ) ), + 23 * + COALESCE ( - 89, - CASE + 99 WHEN 40 + - - 54 THEN NULLIF ( + MIN ( DISTINCT - + CAST ( 85 AS INTEGER ) ), - 21 * 24 ) WHEN + 91 THEN + SUM ( DISTINCT 46 ) END, 10 * MAX ( - 1 ) ) * - 9 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT - CASE + 3 WHEN - 18 THEN NULL ELSE - CAST( - 18 AS SIGNED ) END AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7272
SELECT - CASE + 3 WHEN - 18 THEN NULL ELSE - CAST ( - 18 AS INTEGER ) END AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT + 82 + + - 30 DIV - 66 col2
----
82

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 82 + + - 30 / - 66 col2
----
82

query I rowsort
SELECT - ( - + 8 )
----
8

query I rowsort
SELECT ALL 5 + + 12 AS col1
----
17

query I rowsort
SELECT + 46 * - 1 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT ( - COUNT( * ) ) * + + SUM( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT ( - COUNT ( * ) ) * + + SUM ( 84 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7278
SELECT ALL + COUNT( * ) DIV + 40 + - - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + COUNT ( * ) / + 40 + - - 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7279
SELECT ALL - COUNT( * ) * - - 60 * CAST( NULL AS SIGNED ) * CASE + + 20 WHEN - 63 + + 5 THEN 61 WHEN ( CAST( + 67 AS SIGNED ) ) THEN NULL ELSE + ( - 83 ) END DIV - 9 * + + 42 + - + NULLIF ( + + 87, + - 64 ) + 98 * - 83 AS col1, COUNT( * ) DIV 39 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7279
SELECT ALL - COUNT ( * ) * - - 60 * CAST ( NULL AS INTEGER ) * CASE + + 20 WHEN - 63 + + 5 THEN 61 WHEN ( CAST ( + 67 AS INTEGER ) ) THEN NULL ELSE + ( - 83 ) END / - 9 * + + 42 + - + NULLIF ( + + 87, + - 64 ) + 98 * - 83 AS col1, COUNT ( * ) / 39 AS col1
----
NULL
0

query I rowsort
SELECT ALL 82 * - - 75 + + 62 AS col1
----
6212

query I rowsort
SELECT 90 * - + 24 + + 77
----
-2083

query I rowsort
SELECT - 33 - - 25
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT - ( + 69 ) * 27 + + 71 AS col2, MAX( DISTINCT - 82 ) - + 71
----
-1792
-153

skipif mysql # not compatible
query II rowsort label-7283
SELECT - ( + 69 ) * 27 + + 71 AS col2, MAX ( DISTINCT - 82 ) - + 71
----
-1792
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7284
SELECT + MIN( + 81 ) + - 27 * 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT + MIN ( + 81 ) + - 27 * 10 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 62 * - 25 AS col1
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + + 97 * + COUNT( * ) + + + 88
----
185

skipif mysql # not compatible
query I rowsort label-7286
SELECT + + 97 * + COUNT ( * ) + + + 88
----
185

query I rowsort
SELECT DISTINCT 33 * + ( 79 ) AS col2
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - - COUNT( * ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - COUNT ( * ) * + 46
----
46

query I rowsort
SELECT DISTINCT - - 20 * + + 61 * + 8
----
9760

query I rowsort
SELECT - - 45 + + + 18 + + 70 + - + 50 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL + SUM( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + SUM ( DISTINCT - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - - 75 * + + 10 * - MAX( ALL + + 66 ) AS col2
----
-49500

skipif mysql # not compatible
query I rowsort label-7292
SELECT - - 75 * + + 10 * - MAX ( ALL + + 66 ) AS col2
----
-49500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7293
SELECT - COUNT( * ) + + - CAST( - ( + COUNT( * ) ) AS SIGNED ) + - 54 * - + 65 * + 92 AS col1
----
322920

skipif mysql # not compatible
query I rowsort label-7293
SELECT - COUNT ( * ) + + - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) + - 54 * - + 65 * + 92 AS col1
----
322920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / - + 77 AS col2
----
NULL

query I rowsort
SELECT ALL - 98 * 54 + - - 67
----
-5225

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT 37 + - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT 37 + - + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7297
SELECT ALL - 49 + + - 99, CAST( NULL AS SIGNED ) AS col2
----
-148
NULL

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL - 49 + + - 99, CAST ( NULL AS INTEGER ) AS col2
----
-148
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7298
SELECT ALL + 79 + ( + 51 ) + + CAST( + 92 AS SIGNED ) DIV - 20 DIV - COUNT( 96 )
----
134

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + 79 + ( + 51 ) + + CAST ( + 92 AS INTEGER ) / - 20 / - COUNT ( 96 )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - + COUNT( + 5 ) - + - NULLIF ( - COUNT( * ), - 93 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-7299
SELECT - + COUNT ( + 5 ) - + - NULLIF ( - COUNT ( * ), - 93 ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT - 46 + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - 46 + COUNT ( * )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-7301
SELECT - 52, - 54 + - + 90 DIV - COALESCE ( 41, + 44, - 42 )
----
-52
-52

skipif mysql # not compatible
query II rowsort label-7301
SELECT - 52, - 54 + - + 90 / - COALESCE ( 41, + 44, - 42 )
----
-52
-52

query I rowsort
SELECT + 58 * ( - 84 ) AS col1
----
-4872

query I rowsort
SELECT ALL 64 + - 66
----
-2

query I rowsort
SELECT - 88 + + ( - 29 ) col2
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7305
SELECT 52 AS col1, 17 DIV + COUNT( * ) AS col2
----
52
17

skipif mysql # not compatible
query II rowsort label-7305
SELECT 52 AS col1, 17 / + COUNT ( * ) AS col2
----
52
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT + 23 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 23 / - 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL 52 * MAX( 84 ) AS col0
----
4368

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL 52 * MAX ( 84 ) AS col0
----
4368

query I rowsort
SELECT ALL 10 - + 42 * + - 92 * NULLIF ( 72, 29 )
----
278218

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT DISTINCT 81 DIV 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT 81 / 24 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT - 87 + CAST( NULL AS SIGNED ) + - + ( + + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 87 + CAST ( NULL AS INTEGER ) + - + ( + + 21 ) AS col2
----
NULL

query II rowsort
SELECT + 92 * + 78 * - - 27, + 48 * + 58 * NULLIF ( + + 5, + - 18 ) AS col2
----
193752
13920

query I rowsort
SELECT ALL 16 * + 63
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-7313
SELECT + CASE WHEN NOT - 80 BETWEEN NULL AND - + 52 - - NULLIF ( - - 25, - 96 ) + - 69 + - COUNT( * ) THEN NULL ELSE - - 44 * - ( - CASE - SUM( + 27 ) WHEN + + 87 THEN NULL WHEN - 97 / 47 THEN - 40 END ) END, 84 * - 52 AS col2
----
NULL
-4368

skipif mysql # not compatible
query II rowsort label-7313
SELECT + CASE WHEN NOT - 80 BETWEEN NULL AND - + 52 - - NULLIF ( - - 25, - 96 ) + - 69 + - COUNT ( * ) THEN NULL ELSE - - 44 * - ( - CASE - SUM ( + 27 ) WHEN + + 87 THEN NULL WHEN - 97 / 47 THEN - 40 END ) END, 84 * - 52 AS col2
----
NULL
-4368

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT 73 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT 73 / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - MIN( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - MIN ( 85 )
----
-85

query I rowsort
SELECT ALL 56 * + + 59
----
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL 15 * - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL 15 * - COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT DISTINCT 73 * - - 49
----
3577

query II rowsort
SELECT ALL - - 96 AS col0, + 11
----
96
11

query II rowsort
SELECT + 70 * - 46 * - 17 col1, + 66
----
54740
66

query I rowsort
SELECT - 10 + + 16 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT DISTINCT - SUM( - 91 ) + - - 39 - - 31 + + COUNT( * ) - - 21 col2
----
183

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT - SUM ( - 91 ) + - - 39 - - 31 + + COUNT ( * ) - - 21 col2
----
183

query I rowsort
SELECT - 37 * 17 AS col2
----
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + 9 * + 37 - - 89 - ( - COUNT( * ) ) AS col1
----
423

skipif mysql # not compatible
query I rowsort label-7324
SELECT + 9 * + 37 - - 89 - ( - COUNT ( * ) ) AS col1
----
423

query I rowsort
SELECT ALL + 33 + + 15
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT ALL - - 42 + 15 + 48 + + 35 * + 2 DIV ( - + 80 ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - - 42 + 15 + 48 + + 35 * + 2 / ( - + 80 ) AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT ( CAST( NULL AS SIGNED ) ) * - NULLIF ( - COUNT( * ), 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ( CAST ( NULL AS INTEGER ) ) * - NULLIF ( - COUNT ( * ), 58 )
----
NULL

query I rowsort
SELECT ALL - 58 + + 22
----
-36

query I rowsort
SELECT DISTINCT 51 * - 42 * + 92 * - - 71 col0
----
-13991544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT ALL + + 29 + + 36 / - CAST( NULL AS SIGNED ) / - 18 + 96 / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + + 29 + + 36 / - CAST ( NULL AS INTEGER ) / - 18 + 96 / + 88
----
NULL

query I rowsort
SELECT ALL - ( + - 80 ) + - - 61 AS col2
----
141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7332
SELECT 38 + + 91 - + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT 38 + + 91 - + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL + + 37 + - 74 * - 63 col0
----
4699

query I rowsort
SELECT ( 29 ) col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT - 36 DIV 22 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 36 / 22 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT ALL + 25 DIV + - SUM( + 7 )
----
-3

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + 25 / + - SUM ( + 7 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT 58 + - + COUNT( DISTINCT - - 22 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7337
SELECT 58 + - + COUNT ( DISTINCT - - 22 ) AS col2
----
57

query I rowsort
SELECT ALL + 35 - + + 42 * 27 * 96 + - - 63 AS col1
----
-108766

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT 64 * 64 DIV NULLIF ( + 20, + 71 ) AS col0
----
204

skipif mysql # not compatible
query I rowsort label-7339
SELECT 64 * 64 / NULLIF ( + 20, + 71 ) AS col0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT ALL + 26 DIV 77 * 6
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + 26 / 77 * 6
----
0

query I rowsort
SELECT ALL 11 - 94 + + - 87 AS col0
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT 74 * NULLIF ( + 81, COUNT( * ) - CASE + - 98 WHEN + MIN( - 67 ) + - + 88 + + COALESCE ( 61, - 49 + 77 ) * + 36 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 29 * ( NULLIF ( + 0, 85 * COUNT( * ) ) ) THEN + + 18 END ) AS col1
----
5994

skipif mysql # not compatible
query I rowsort label-7342
SELECT 74 * NULLIF ( + 81, COUNT ( * ) - CASE + - 98 WHEN + MIN ( - 67 ) + - + 88 + + COALESCE ( 61, - 49 + 77 ) * + 36 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 29 * ( NULLIF ( + 0, 85 * COUNT ( * ) ) ) THEN + + 18 END ) AS col1
----
5994

query I rowsort
SELECT 45 + 3 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT DISTINCT - 53 - - CAST( NULL AS SIGNED ) + + 28 * + - 62 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - 53 - - CAST ( NULL AS INTEGER ) + + 28 * + - 62 + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT 93 + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT 93 + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 35 * - 28
----
980

query I rowsort
SELECT 64 * + NULLIF ( + NULLIF ( - + 22, - ( - - 28 ) ), 46 ) AS col1
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT SUM( + 67 ) + - 6 - - 26 DIV - 4
----
55

skipif mysql # not compatible
query I rowsort label-7348
SELECT SUM ( + 67 ) + - 6 - - 26 / - 4
----
55

query I rowsort
SELECT ALL - 36 * + + 37 * + 38 col2
----
-50616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT ( 96 ) - - CAST( 44 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-7350
SELECT ( 96 ) - - CAST ( 44 AS INTEGER )
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT COUNT( * ) DIV - ( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT COUNT ( * ) / - ( - 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - NULLIF ( COUNT( * ), 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - NULLIF ( COUNT ( * ), 7 ) AS col0
----
-1

query I rowsort
SELECT 55 + - + COALESCE ( 26, - 7 ) col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT ALL - MIN( + 49 ) DIV - 2 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - MIN ( + 49 ) / - 2 AS col0
----
24

query II rowsort
SELECT + 61 AS col2, 63 AS col0
----
61
63

query I rowsort
SELECT ALL + 23 + + 23 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7357
SELECT + 57 DIV - + COUNT( DISTINCT + - 88 ) + + 60 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 57 / - + COUNT ( DISTINCT + - 88 ) + + 60 AS col1
----
3

query I rowsort
SELECT DISTINCT 56 + - 59 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT COUNT( * ) + + - 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7359
SELECT COUNT ( * ) + + - 72 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT + CASE 37 WHEN - 42 - + 40 / 99 THEN + 98 * - 91 + + ( + CAST( - ( + 1 ) AS SIGNED ) ) * - SUM( ALL + - 8 ) * 11 + + - 95 + + CASE + 98 WHEN + MIN( ALL - 68 ) THEN NULL WHEN 75 THEN - 52 WHEN - 98 * + + 81 + + COALESCE ( - - 2, + 3 * + - 17 + 96, - + 33 - 57 + + 70 / + 77 ) + 65 * - 31 THEN NULL ELSE NULL END - + 74 WHEN 59 - + COUNT( * ) * + 27 THEN NULL ELSE 53 END
----
53

skipif mysql # not compatible
query I rowsort label-7360
SELECT + CASE 37 WHEN - 42 - + 40 / 99 THEN + 98 * - 91 + + ( + CAST ( - ( + 1 ) AS INTEGER ) ) * - SUM ( ALL + - 8 ) * 11 + + - 95 + + CASE + 98 WHEN + MIN ( ALL - 68 ) THEN NULL WHEN 75 THEN - 52 WHEN - 98 * + + 81 + + COALESCE ( - - 2, + 3 * + - 17 + 96, - + 33 - 57 + + 70 / + 77 ) + 65 * - 31 THEN NULL ELSE NULL END - + 74 WHEN 59 - + COUNT ( * ) * + 27 THEN NULL ELSE 53 END
----
53

query I rowsort
SELECT ALL + 73 + - COALESCE ( - 43, 10 + 45 + 60 + - 53 ) AS col1
----
116

query I rowsort
SELECT ALL - 62 + 39 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + 4 * ( + 47 ) * - MAX( + 85 ) + - - 94
----
-15886

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + 4 * ( + 47 ) * - MAX ( + 85 ) + - - 94
----
-15886

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT ALL 96 + - 65 * - 75 + - ( COUNT( * ) ) * 68 AS col0, 19 AS col2
----
4903
19

skipif mysql # not compatible
query II rowsort label-7364
SELECT ALL 96 + - 65 * - 75 + - ( COUNT ( * ) ) * 68 AS col0, 19 AS col2
----
4903
19

query I rowsort
SELECT ALL 40 + - - 98 + - 84 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT 4 + + - ( - CAST( NULL AS SIGNED ) ) - 28 - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT 4 + + - ( - CAST ( NULL AS INTEGER ) ) - 28 - - 51
----
NULL

query I rowsort
SELECT DISTINCT + CASE - + 44 WHEN + 53 THEN 58 ELSE NULL END + - 49 + + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT 52 * 40 + COUNT( * ) + + + COUNT( * ) * + 18 + + COALESCE ( 17, + + 43, - CASE - + 71 WHEN 6 + + 19 THEN NULL WHEN - ( + 57 ) THEN - - CAST( SUM( + COALESCE ( + CASE - 25 WHEN 4 THEN - 74 WHEN + + 65 THEN NULL END, + ( + 78 ) ) ) AS SIGNED ) + + 42 + + 22 ELSE NULL END * 9 * + 60 + 54 + + + 91 ) + 65 * 82
----
7446

skipif mysql # not compatible
query I rowsort label-7368
SELECT 52 * 40 + COUNT ( * ) + + + COUNT ( * ) * + 18 + + COALESCE ( 17, + + 43, - CASE - + 71 WHEN 6 + + 19 THEN NULL WHEN - ( + 57 ) THEN - - CAST ( SUM ( + COALESCE ( + CASE - 25 WHEN 4 THEN - 74 WHEN + + 65 THEN NULL END, + ( + 78 ) ) ) AS INTEGER ) + + 42 + + 22 ELSE NULL END * 9 * + 60 + 54 + + + 91 ) + 65 * 82
----
7446

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL - COUNT( * ) + + 46
----
45

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - COUNT ( * ) + + 46
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7370
SELECT CASE 93 WHEN + + 76 / - ( - 93 ) THEN 54 WHEN - CAST( NULL AS SIGNED ) + + - 72 THEN + 86 ELSE - - 73 END * + + CAST( NULLIF ( - ( - 35 ), + MIN( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ), + COALESCE ( + 27, - + CASE + 19 WHEN - 46 * 50 + 23 THEN 33 WHEN + 62 + - + 15 + + 70 + NULLIF ( 39, + CASE - COUNT( * ) WHEN 3 + 26 * - COALESCE ( 15, 98 ) THEN COUNT( * ) * + 28 WHEN - NULLIF ( - SUM( 71 ), 45 ) + - 64 * + NULLIF ( - 28 * - 78, - 72 + 38 / 43 ) THEN + ( 44 ) END ) * + 18 THEN + 39 WHEN + 80 THEN - 93 WHEN - 34 - - CASE 69 WHEN COUNT( * ) + 52 THEN NULL WHEN 18 + COUNT( * ) THEN 68 END THEN NULL END ) AS col1
----
2555
27

skipif mysql # not compatible
query II rowsort label-7370
SELECT CASE 93 WHEN + + 76 / - ( - 93 ) THEN 54 WHEN - CAST ( NULL AS INTEGER ) + + - 72 THEN + 86 ELSE - - 73 END * + + CAST ( NULLIF ( - ( - 35 ), + MIN ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ), + COALESCE ( + 27, - + CASE + 19 WHEN - 46 * 50 + 23 THEN 33 WHEN + 62 + - + 15 + + 70 + NULLIF ( 39, + CASE - COUNT ( * ) WHEN 3 + 26 * - COALESCE ( 15, 98 ) THEN COUNT ( * ) * + 28 WHEN - NULLIF ( - SUM ( 71 ), 45 ) + - 64 * + NULLIF ( - 28 * - 78, - 72 + 38 / 43 ) THEN + ( 44 ) END ) * + 18 THEN + 39 WHEN + 80 THEN - 93 WHEN - 34 - - CASE 69 WHEN COUNT ( * ) + 52 THEN NULL WHEN 18 + COUNT ( * ) THEN 68 END THEN NULL END ) AS col1
----
2555
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT CASE COUNT( * ) WHEN COUNT( * ) / - 96 THEN NULL ELSE + ( - 72 ) END
----
-72

skipif mysql # not compatible
query I rowsort label-7371
SELECT CASE COUNT ( * ) WHEN COUNT ( * ) / - 96 THEN NULL ELSE + ( - 72 ) END
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL SUM( + 60 ) - - COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL SUM ( + 60 ) - - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT + 21 * - - 11 * - COUNT( * ) AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + 21 * - - 11 * - COUNT ( * ) AS col1
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT DISTINCT CASE COUNT( * ) WHEN - COUNT( * ) + + COUNT( * ) + - - SUM( - + 64 ) - - COUNT( * ) THEN - - 34 END * - - 36 * + 14 * - + CAST( NULL AS SIGNED ) + 72 * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT CASE COUNT ( * ) WHEN - COUNT ( * ) + + COUNT ( * ) + - - SUM ( - + 64 ) - - COUNT ( * ) THEN - - 34 END * - - 36 * + 14 * - + CAST ( NULL AS INTEGER ) + 72 * - - 70
----
NULL

query I rowsort
SELECT ALL 5 * 68
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT 74 * 46 DIV 36 * + 46
----
4324

skipif mysql # not compatible
query I rowsort label-7376
SELECT 74 * 46 / 36 * + 46
----
4324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7377
SELECT ALL MAX( ALL 27 ) AS col0, 45 DIV - 88
----
27
0

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL MAX ( ALL 27 ) AS col0, 45 / - 88
----
27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7378
SELECT ( + - MIN( ALL + 57 ) ) DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-7378
SELECT ( + - MIN ( ALL + 57 ) ) / + - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT 99 + - - COALESCE ( COALESCE ( + 96, + + 5 * + + MAX( ALL + 97 ) + - + 89 * 38, - 68 ), - - 76 + + - COUNT( * ), + - 73, - - ( - - 79 ) ) AS col2
----
195

skipif mysql # not compatible
query I rowsort label-7379
SELECT 99 + - - COALESCE ( COALESCE ( + 96, + + 5 * + + MAX ( ALL + 97 ) + - + 89 * 38, - 68 ), - - 76 + + - COUNT ( * ), + - 73, - - ( - - 79 ) ) AS col2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT + 77 DIV + - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + 77 / + - 42 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7381
SELECT - ( - 70 ) - - 98 + + 95 + + 61 * ( + COUNT( * ) ) AS col2, - CAST( + 96 AS SIGNED ) col1
----
324
-96

skipif mysql # not compatible
query II rowsort label-7381
SELECT - ( - 70 ) - - 98 + + 95 + + 61 * ( + COUNT ( * ) ) AS col2, - CAST ( + 96 AS INTEGER ) col1
----
324
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT - CAST( - 65 AS SIGNED ) * NULLIF ( - 90, + COUNT( * ) ) AS col1
----
-5850

skipif mysql # not compatible
query I rowsort label-7382
SELECT - CAST ( - 65 AS INTEGER ) * NULLIF ( - 90, + COUNT ( * ) ) AS col1
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - COUNT( * ) * - 3 col0
----
3

skipif mysql # not compatible
query I rowsort label-7383
SELECT - COUNT ( * ) * - 3 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - 32 + + - COALESCE ( - 52, 1 + - - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - 32 + + - COALESCE ( - 52, 1 + - - COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT - COUNT( * ) + - 76 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - COUNT ( * ) + - 76 + COUNT ( * )
----
-76

query I rowsort
SELECT ALL - COALESCE ( + 84, - 8, + 83 + + 82 - - + 69 ) * + + 16
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT CASE - 84 WHEN 59 THEN + 25 * 58 * - + ( - COUNT( * ) ) ELSE + ( + 77 ) END
----
77

skipif mysql # not compatible
query I rowsort label-7387
SELECT CASE - 84 WHEN 59 THEN + 25 * 58 * - + ( - COUNT ( * ) ) ELSE + ( + 77 ) END
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - 28 * - + CAST( NULL AS SIGNED ) * - - 56 * + 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT - 28 * - + CAST ( NULL AS INTEGER ) * - - 56 * + 17 col2
----
NULL

query I rowsort
SELECT DISTINCT + - 8 * - - 55
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7390
SELECT ALL - - COUNT( * ) * - ( + CAST( - - 11 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) - - 73 + 91 * - COUNT( * ) * 26 * + COUNT( * ), 67 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7390
SELECT ALL - - COUNT ( * ) * - ( + CAST ( - - 11 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - - 73 + 91 * - COUNT ( * ) * 26 * + COUNT ( * ), 67 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7391
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 7 * + 83 * + 56 + COUNT( ALL - + 31 ) + 26 * 46, ( - - 99 ) AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 7 * + 83 * + 56 + COUNT ( ALL - + 31 ) + 26 * 46, ( - - 99 ) AS col0
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + - NULLIF ( - + 20, + - 76 + - COUNT( * ) * + 29 * + + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-7392
SELECT + - NULLIF ( - + 20, + - 76 + - COUNT ( * ) * + 29 * + + COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + ( + CASE - 92 WHEN - + 92 * + ( + + NULLIF ( ( - 11 ), + 16 - - 83 / - COUNT( * ) ) ) THEN NULL WHEN AVG ( ALL - - 76 ) THEN + 86 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT + ( + CASE - 92 WHEN - + 92 * + ( + + NULLIF ( ( - 11 ), + 16 - - 83 / - COUNT ( * ) ) ) THEN NULL WHEN AVG ( ALL - - 76 ) THEN + 86 ELSE NULL END ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT DISTINCT 70 * - - 51 + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT 70 * - - 51 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 65 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT + COUNT( ALL 85 ) * COUNT( * ) - 93 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COUNT ( ALL 85 ) * COUNT ( * ) - 93 / - - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL 88 * - COUNT( * ) + 88 + - COUNT( * ) + 41 * 90 * + SUM( + 28 )
----
103319

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL 88 * - COUNT ( * ) + 88 + - COUNT ( * ) + 41 * 90 * + SUM ( + 28 )
----
103319

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT + - COUNT( * ) * + MAX( + 42 ) + + 63 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + - COUNT ( * ) * + MAX ( + 42 ) + + 63 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + COUNT( * ) * + - 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( * ) * + - 23 AS col2
----
-23

query I rowsort
SELECT DISTINCT 64 * - 91
----
-5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7400
SELECT + ( + - 13 ) * NULLIF ( - + ( + - 77 ), 31 ) DIV - + NULLIF ( - - COUNT( + - 31 ), 36 * + 70 * + 18 DIV - 17 * - + 42 + + 25 ) + - CAST( 71 AS SIGNED ) - 68
----
862

skipif mysql # not compatible
query I rowsort label-7400
SELECT + ( + - 13 ) * NULLIF ( - + ( + - 77 ), 31 ) / - + NULLIF ( - - COUNT ( + - 31 ), 36 * + 70 * + 18 / - 17 * - + 42 + + 25 ) + - CAST ( 71 AS INTEGER ) - 68
----
862

query I rowsort
SELECT + 70 + + 39
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + ( - 41 ) * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7402
SELECT + ( - 41 ) * COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + 34 + - 28 + + MIN( ALL - 32 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 34 + - 28 + + MIN ( ALL - 32 ) AS col2
----
-26

query I rowsort
SELECT ALL 57 + - 26 * 15 + + - 88
----
-421

query I rowsort
SELECT ALL + 72 * - 55 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT COALESCE ( 91, + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT COALESCE ( 91, + COUNT ( * ) )
----
91

query I rowsort
SELECT ALL 92 + + 72 - - - 43
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - COALESCE ( + MIN( DISTINCT - - 20 ), + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7408
SELECT - COALESCE ( + MIN ( DISTINCT - - 20 ), + COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT + COUNT( * ) + + 53 col1
----
54

skipif mysql # not compatible
query I rowsort label-7409
SELECT + COUNT ( * ) + + 53 col1
----
54

query I rowsort
SELECT - 56 + - NULLIF ( + 55, + - 84 + + 42 + - 89 ) * + + 57 AS col0
----
-3191

query I rowsort
SELECT DISTINCT + 95 + + 12
----
107

query II rowsort
SELECT ALL + 31 AS col2, - ( 42 ) AS col2
----
31
-42

query I rowsort
SELECT - - 26 + - 61
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT DISTINCT - 15 + CAST( NULL AS SIGNED ) * - 33 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - 15 + CAST ( NULL AS INTEGER ) * - 33 - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT ALL - - 60 DIV - 24 + 75 DIV 97 + + 54 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - - 60 / - 24 + 75 / 97 + + 54 AS col2
----
52

query I rowsort
SELECT ALL - + ( 87 ) * - - 82 AS col2
----
-7134

query II rowsort
SELECT DISTINCT + - 74, - 42 AS col0
----
-74
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + - MIN( + + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-7418
SELECT + - MIN ( + + 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + MIN( DISTINCT - + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7419
SELECT + MIN ( DISTINCT - + 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7420
SELECT - + 65 * 0 * 28 DIV MAX( DISTINCT 8 ) + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7420
SELECT - + 65 * 0 * 28 / MAX ( DISTINCT 8 ) + + - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT ALL - 8 DIV 13 - - 51 - 75
----
-24

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - 8 / 13 - - 51 - 75
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT - 10 DIV + 80 + - ( + + ( 51 ) ) + - ( - NULLIF ( + - 50, - + 42 ) ) col1
----
-101

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 10 / + 80 + - ( + + ( 51 ) ) + - ( - NULLIF ( + - 50, - + 42 ) ) col1
----
-101

query I rowsort
SELECT ALL + 30 * + 97 AS col1
----
2910

query I rowsort
SELECT - 28 + 26 col0
----
-2

query I rowsort
SELECT ALL + 19 * - 35 * - ( - 47 )
----
-31255

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 35 * 7 + - 22 * - COUNT( * )
----
-223

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 35 * 7 + - 22 * - COUNT ( * )
----
-223

query I rowsort
SELECT DISTINCT + + 64 * 77 * - 15 AS col2
----
-73920

query I rowsort
SELECT ALL + 69 * + 48 * - 88 * 2 AS col0
----
-582912

query I rowsort
SELECT DISTINCT + - NULLIF ( + - 3, - + 50 * 20 + + 36 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7430
SELECT 88 AS col2, - 95 * + 7 * COALESCE ( - - MAX( DISTINCT 3 ), + + ( ( - + 66 ) ) * - MAX( DISTINCT + COALESCE ( + 19, 48, - 16 ) ) + + 86 - - 12 * + 75, + COUNT( * ) * ( - - COUNT( * ) ) * + CAST( - COUNT( ALL 34 ) AS SIGNED ) * 43 + + 2 + - ( + 43 ) + + 4 + + 61 + + - 18 * 55 ) * - COALESCE ( + CAST( NULL AS SIGNED ), - 30 + + ( 65 ) ) + + 50
----
88
69875

skipif mysql # not compatible
query II rowsort label-7430
SELECT 88 AS col2, - 95 * + 7 * COALESCE ( - - MAX ( DISTINCT 3 ), + + ( ( - + 66 ) ) * - MAX ( DISTINCT + COALESCE ( + 19, 48, - 16 ) ) + + 86 - - 12 * + 75, + COUNT ( * ) * ( - - COUNT ( * ) ) * + CAST ( - COUNT ( ALL 34 ) AS INTEGER ) * 43 + + 2 + - ( + 43 ) + + 4 + + 61 + + - 18 * 55 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 30 + + ( 65 ) ) + + 50
----
88
69875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7431
SELECT + 94 + CAST( NULL AS DECIMAL ) - + - 19 + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT + 94 + CAST ( NULL AS REAL ) - + - 19 + 79 AS col1
----
NULL

query II rowsort
SELECT COALESCE ( - 35, 2, 34 + + + 40 * - 16, - 93 * - 32 + + 30 ) AS col0, 82 AS col0
----
-35
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + COALESCE ( - - 49, 2 ) * + 30 - + 31 + - - ( - 24 ) + - COUNT( * ) AS col2
----
1414

skipif mysql # not compatible
query I rowsort label-7433
SELECT + COALESCE ( - - 49, 2 ) * + 30 - + 31 + - - ( - 24 ) + - COUNT ( * ) AS col2
----
1414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL 52 * - + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 58 * 22 * - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL 52 * - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 58 * 22 * - 88 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7435
SELECT ALL - 4 DIV + 45 AS col0, CAST( NULLIF ( + 90, + COUNT( * ) + + - 31 + + - 24 ) AS SIGNED ) AS col2
----
0
90

skipif mysql # not compatible
query II rowsort label-7435
SELECT ALL - 4 / + 45 AS col0, CAST ( NULLIF ( + 90, + COUNT ( * ) + + - 31 + + - 24 ) AS INTEGER ) AS col2
----
0
90

query II rowsort
SELECT DISTINCT 87 * - 87 col1, 9 AS col1
----
-7569
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT ALL COUNT( * ) * + CASE - AVG ( + 44 ) WHEN + COUNT( * ) THEN + COALESCE ( - 13, - + COUNT( * ) ) * - 6 END, ( - - 27 ) AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-7437
SELECT ALL COUNT ( * ) * + CASE - AVG ( + 44 ) WHEN + COUNT ( * ) THEN + COALESCE ( - 13, - + COUNT ( * ) ) * - 6 END, ( - - 27 ) AS col1
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT MIN( DISTINCT 22 ) * - ( - ( 65 ) ) + + COUNT( * ) + - 52 + + + 19 AS col1
----
1398

skipif mysql # not compatible
query I rowsort label-7438
SELECT MIN ( DISTINCT 22 ) * - ( - ( 65 ) ) + + COUNT ( * ) + - 52 + + + 19 AS col1
----
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - 77 + + 73 * COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - 77 + + 73 * COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT 39 + 36
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT 73 - - - 54 DIV + - 1 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-7441
SELECT 73 - - - 54 / + - 1 AS col1
----
127

query I rowsort
SELECT 83 + + + 7
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT COUNT( * ) + 9 DIV - + 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7443
SELECT COUNT ( * ) + 9 / - + 70 AS col0
----
1

query I rowsort
SELECT DISTINCT 3 + + 10
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT ALL COUNT( * ) + 47, + COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL COUNT ( * ) + 47, + COUNT ( * ) AS col0
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) - + 76 + - 62 * 53 * + + COUNT( * )
----
-3361

skipif mysql # not compatible
query I rowsort label-7446
SELECT COUNT ( * ) - + 76 + - 62 * 53 * + + COUNT ( * )
----
-3361

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT COUNT( * ) - - COUNT( + 94 )
----
2

skipif mysql # not compatible
query I rowsort label-7447
SELECT COUNT ( * ) - - COUNT ( + 94 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT ALL - COUNT( ALL - - ( 17 ) ) * - - 63 AS col0, 66 * - + 18
----
-63
-1188

skipif mysql # not compatible
query II rowsort label-7448
SELECT ALL - COUNT ( ALL - - ( 17 ) ) * - - 63 AS col0, 66 * - + 18
----
-63
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7449
SELECT ALL - CAST( NULL AS SIGNED ) - - + COUNT( * ), + 49 DIV - ( - - 66 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7449
SELECT ALL - CAST ( NULL AS INTEGER ) - - + COUNT ( * ), + 49 / - ( - - 66 ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + 37 * SUM( + - 94 )
----
-3478

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 37 * SUM ( + - 94 )
----
-3478

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7451
SELECT ALL 7 * CAST( NULL AS DECIMAL ) / - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL 7 * CAST ( NULL AS REAL ) / - 75 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 92 * + 14
----
1288

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 48 * + + 0 DIV + 84 * - 5 - + + 83 col0
----
-83

skipif mysql # not compatible
query I rowsort label-7453
SELECT 48 * + + 0 / + 84 * - 5 - + + 83 col0
----
-83

query II rowsort
SELECT + + NULLIF ( 16, + 3 * - 87 ), 57 AS col1
----
16
57

query I rowsort
SELECT ALL + ( + + 98 ) - + - 61 AS col1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7456
SELECT ( CAST( + - 11 AS SIGNED ) ) * + 13 AS col1, + 36 AS col1
----
-143
36

skipif mysql # not compatible
query II rowsort label-7456
SELECT ( CAST ( + - 11 AS INTEGER ) ) * + 13 AS col1, + 36 AS col1
----
-143
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT 58 / - CASE - 89 WHEN 27 / 5 + - - 8 THEN - 32 ELSE + COALESCE ( + 93, 4 + + 98 ) * - - 95 END - - COUNT( + - 64 ) * - 7 * - MAX( - 19 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT 58 / - CASE - 89 WHEN 27 / 5 + - - 8 THEN - 32 ELSE + COALESCE ( + 93, 4 + + 98 ) * - - 95 END - - COUNT ( + - 64 ) * - 7 * - MAX ( - 19 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT - SUM( DISTINCT - + 92 ) * - - MIN( DISTINCT CAST( 11 AS SIGNED ) ) AS col1
----
1012

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - SUM ( DISTINCT - + 92 ) * - - MIN ( DISTINCT CAST ( 11 AS INTEGER ) ) AS col1
----
1012

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT - + 45 DIV 16 + ( + 37 ) + - 67 * 23
----
-1506

skipif mysql # not compatible
query I rowsort label-7459
SELECT - + 45 / 16 + ( + 37 ) + - 67 * 23
----
-1506

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7460
SELECT ( 29 ) DIV ( 79 ), 24 + SUM( + 44 ) AS col0
----
0
68

skipif mysql # not compatible
query II rowsort label-7460
SELECT ( 29 ) / ( 79 ), 24 + SUM ( + 44 ) AS col0
----
0
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT 7 + - 98 AS col0, - SUM( 25 )
----
-91
-25

skipif mysql # not compatible
query II rowsort label-7461
SELECT 7 + - 98 AS col0, - SUM ( 25 )
----
-91
-25

query I rowsort
SELECT ALL + 17 * 44 * + 93 * - 61
----
-4243404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + NULLIF ( + ( ( CAST( - 19 AS SIGNED ) ) ), - + 9 ) * 56 + + CAST( NULL AS SIGNED ) - 75 * + 75 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT + NULLIF ( + ( ( CAST ( - 19 AS INTEGER ) ) ), - + 9 ) * 56 + + CAST ( NULL AS INTEGER ) - 75 * + 75 + + 18
----
NULL

query I rowsort
SELECT ALL - 8 * + 90
----
-720

query II rowsort
SELECT 1, - 81 + - 24 AS col0
----
1
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7466
SELECT + 54 AS col1, CAST( NULL AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7466
SELECT + 54 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT ALL - COALESCE ( + 57, - - 29 DIV 84 - 23 )
----
-57

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - COALESCE ( + 57, - - 29 / 84 - 23 )
----
-57

query I rowsort
SELECT DISTINCT + 63 + + 0 col1
----
63

query I rowsort
SELECT ALL + 18 + + - 79 col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT CAST( NULL AS SIGNED ) * - - 12 + 38 + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT CAST ( NULL AS INTEGER ) * - - 12 + 38 + + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL + COUNT( * ) + + 69 + - 32 + COUNT( * ) * + - 80 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + COUNT ( * ) + + 69 + - 32 + COUNT ( * ) * + - 80 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT 83 + + 76 * + + 25 * - COUNT( * ) AS col2
----
-1817

skipif mysql # not compatible
query I rowsort label-7472
SELECT 83 + + 76 * + + 25 * - COUNT ( * ) AS col2
----
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT DISTINCT + 0 + - CAST( 9 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT + 0 + - CAST ( 9 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT COUNT( * ) + + CASE 50 WHEN + - 59 + - 83 * + + 83 THEN - 0 + + 24 * 56 + - 39 WHEN 61 * + 60 + 89 THEN 84 * 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT COUNT ( * ) + + CASE 50 WHEN + - 59 + - 83 * + + 83 THEN - 0 + + 24 * 56 + - 39 WHEN 61 * + 60 + 89 THEN 84 * 88 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT DISTINCT - 55 DIV - SUM( DISTINCT 15 )
----
3

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - 55 / - SUM ( DISTINCT 15 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT + COUNT( * ) - + + 63 col2
----
-62

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + COUNT ( * ) - + + 63 col2
----
-62

query II rowsort
SELECT DISTINCT 96 col2, + 20 + + - 81
----
96
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 70 AS col0
----
NULL

query I rowsort
SELECT 35 + 63 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT + CAST( + 98 AS SIGNED ) + + 88 AS col0
----
186

skipif mysql # not compatible
query I rowsort label-7480
SELECT + CAST ( + 98 AS INTEGER ) + + 88 AS col0
----
186

query I rowsort
SELECT - 35 + + 15 * + 30
----
415

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT ALL - NULLIF ( + COUNT( * ), 84 ) AS col2, 40 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL - NULLIF ( + COUNT ( * ), 84 ) AS col2, 40 AS col0
----
-1
40

query II rowsort
SELECT 62 col2, + 34 + + 21
----
62
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT + 3, COUNT( * ) * + 90 col2
----
3
90

skipif mysql # not compatible
query II rowsort label-7484
SELECT + 3, COUNT ( * ) * + 90 col2
----
3
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7485
SELECT 4 + - - 43 DIV - 23 AS col0, - ( + + 65 ) AS col2
----
3
-65

skipif mysql # not compatible
query II rowsort label-7485
SELECT 4 + - - 43 / - 23 AS col0, - ( + + 65 ) AS col2
----
3
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT + 1 * - 61 - + + NULLIF ( CAST( NULL AS SIGNED ), + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT + 1 * - 61 - + + NULLIF ( CAST ( NULL AS INTEGER ), + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL SUM( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL SUM ( ALL 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT + SUM( ALL + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + SUM ( ALL + 50 ) AS col0
----
50

query I rowsort
SELECT ALL COALESCE ( + 8, + 2, - 76 ) AS col1
----
8

query I rowsort
SELECT 96 + - ( 71 ) + + 61 - - 77
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - + NULLIF ( + + COUNT( * ), AVG ( DISTINCT + 78 ) * + + 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - + NULLIF ( + + COUNT ( * ), AVG ( DISTINCT + 78 ) * + + 10 )
----
-1

query I rowsort
SELECT 73 + - - 36
----
109

query I rowsort
SELECT DISTINCT - 36 * 86 AS col1
----
-3096

query I rowsort
SELECT + + 97 * + - 17 AS col2
----
-1649

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT + 58 + 20 DIV + NULLIF ( 37, - 50 + - 49 ) * + ( - - 93 )
----
58

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 58 + 20 / + NULLIF ( 37, - 50 + - 49 ) * + ( - - 93 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT DISTINCT + 45 AS col0, + 84 - + - COUNT( * )
----
45
85

skipif mysql # not compatible
query II rowsort label-7496
SELECT DISTINCT + 45 AS col0, + 84 - + - COUNT ( * )
----
45
85

query I rowsort
SELECT ALL 91 * 33 * - 79 + + 65
----
-237172

query I rowsort
SELECT + 4 * - 54 + 7
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL COUNT( * ) * 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL COUNT ( * ) * 11 + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + CASE + ( + MIN( + 8 ) ) WHEN 79 THEN + + 99 / + ( + 69 ) - - 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT + CASE + ( + MIN ( + 8 ) ) WHEN 79 THEN + + 99 / + ( + 69 ) - - 73 ELSE NULL END
----
NULL

query I rowsort
SELECT + 11 * - 14 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT ALL 22 * - CAST( NULL AS SIGNED ) + COUNT( * ) + + 57 + - 67 + 13 + + COUNT( * ) / 36 * - ( + 71 ) * - + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL 22 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 57 + - 67 + 13 + + COUNT ( * ) / 36 * - ( + 71 ) * - + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT ALL COUNT( * ) DIV + SUM( DISTINCT - 2 )
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL COUNT ( * ) / + SUM ( DISTINCT - 2 )
----
0

query I rowsort
SELECT + 75 * - 57 AS col0
----
-4275

query I rowsort
SELECT - 81 + + 13
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT SUM( DISTINCT + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT SUM ( DISTINCT + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + COUNT( * ) + 39 * 22
----
859

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + COUNT ( * ) + 39 * 22
----
859

query II rowsort
SELECT ALL + 37, - 49 AS col0
----
37
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT ALL - NULLIF ( - + 7, CAST( + 68 AS SIGNED ) ) * 40 AS col2
----
280

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - NULLIF ( - + 7, CAST ( + 68 AS INTEGER ) ) * 40 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - 62 + - COUNT( * ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 62 + - COUNT ( * ) col1
----
-63

query I rowsort
SELECT DISTINCT 68 * - - 78
----
5304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7512
SELECT ALL NULLIF ( - 75, 72 + - + 42 ) - + 76 * + ( 2 ) + - 63 + + - COUNT( * ) DIV + CASE 23 WHEN + 56 THEN NULL ELSE 24 DIV 35 * + - ( 71 ) - - 22 END
----
-290

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL NULLIF ( - 75, 72 + - + 42 ) - + 76 * + ( 2 ) + - 63 + + - COUNT ( * ) / + CASE 23 WHEN + 56 THEN NULL ELSE 24 / 35 * + - ( 71 ) - - 22 END
----
-290

query I rowsort
SELECT DISTINCT COALESCE ( 59, - - 97 ) AS col0
----
59

query I rowsort
SELECT ALL - 15 - - 42 AS col0
----
27

query I rowsort
SELECT - 14 * - 26 * + 62
----
22568

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT ALL COUNT( * ) AS col1, 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL COUNT ( * ) AS col1, 40 AS col1
----
1
40

query I rowsort
SELECT + 36 - 65 AS col1
----
-29

query II rowsort
SELECT DISTINCT - 21 AS col2, + 13
----
-21
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT - - 97 + - SUM( ALL - 81 ) - 66 + - COUNT( * ) col0
----
111

skipif mysql # not compatible
query I rowsort label-7519
SELECT - - 97 + - SUM ( ALL - 81 ) - 66 + - COUNT ( * ) col0
----
111

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7520
SELECT ALL + CAST( 82 AS SIGNED ) DIV - - 30
----
2

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + CAST ( 82 AS INTEGER ) / - - 30
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT - + CAST( - 76 AS SIGNED ) - + 99 + - CAST( NULL AS SIGNED ) / + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT - + CAST ( - 76 AS INTEGER ) - + 99 + - CAST ( NULL AS INTEGER ) / + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + 42 * + COUNT( * ) * COUNT( DISTINCT 5 )
----
42

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + 42 * + COUNT ( * ) * COUNT ( DISTINCT 5 )
----
42

query I rowsort
SELECT - 94 * 78 AS col2
----
-7332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT ALL + COUNT( * ) DIV 36 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + COUNT ( * ) / 36 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT DISTINCT COUNT( * ), 77 AS col0
----
1
77

skipif mysql # not compatible
query II rowsort label-7525
SELECT DISTINCT COUNT ( * ), 77 AS col0
----
1
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7526
SELECT - + ( 46 ) * CAST( NULL AS DECIMAL ) * + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT - + ( 46 ) * CAST ( NULL AS REAL ) * + 13 AS col0
----
NULL

query II rowsort
SELECT + 83 AS col1, 17 AS col0
----
83
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - - COUNT( * ) * + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7528
SELECT - - COUNT ( * ) * + 80 AS col2
----
80

query I rowsort
SELECT ALL - 90 + - 60 - - ( 31 ) AS col0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT - NULLIF ( + 7, + CASE WHEN NOT 79 NOT BETWEEN NULL AND NULL THEN NULL ELSE - 96 + 23 * CAST( + 2 AS SIGNED ) END )
----
-7

skipif mysql # not compatible
query I rowsort label-7530
SELECT - NULLIF ( + 7, + CASE WHEN NOT 79 NOT BETWEEN NULL AND NULL THEN NULL ELSE - 96 + 23 * CAST ( + 2 AS INTEGER ) END )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ALL + 58 DIV + 90 + + 97
----
97

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + 58 / + 90 + + 97
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7532
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 83 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 83 + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7533
SELECT ALL 19 DIV + NULLIF ( + 63, - COUNT( * ) ) * - 41 * + 25 + + + 72 + - MIN( + 65 ) + - - 63 + + + 96 + - - CAST( COUNT( * ) AS SIGNED ) AS col2, - COUNT( * )
----
167
-1

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL 19 / + NULLIF ( + 63, - COUNT ( * ) ) * - 41 * + 25 + + + 72 + - MIN ( + 65 ) + - - 63 + + + 96 + - - CAST ( COUNT ( * ) AS INTEGER ) AS col2, - COUNT ( * )
----
167
-1

query I rowsort
SELECT DISTINCT + COALESCE ( + 11, + 31 ) AS col0
----
11

query I rowsort
SELECT + CASE + 47 WHEN + 46 THEN - - 42 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL - 62 / 11 + - CAST( NULL AS SIGNED ) * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 62 / 11 + - CAST ( NULL AS INTEGER ) * - 98 AS col1
----
NULL

query I rowsort
SELECT ( + - NULLIF ( 47, - - 48 ) )
----
-47

query I rowsort
SELECT - 99 + - 28 * - + 66 AS col1
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + ( - COUNT( DISTINCT + 99 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7539
SELECT + ( - COUNT ( DISTINCT + 99 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL MIN( DISTINCT - 87 ) * - + COUNT( * ) + + + 45 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL MIN ( DISTINCT - 87 ) * - + COUNT ( * ) + + + 45 AS col1
----
132

query I rowsort
SELECT + 81 * + - 17
----
-1377

query I rowsort
SELECT ( - 3 ) AS col1
----
-3

query I rowsort
SELECT ALL + 35 * + - 96 - + 30
----
-3390

query I rowsort
SELECT ( + 86 ) * - + 33 + - 37 AS col0
----
-2875

query I rowsort
SELECT ( COALESCE ( - 37, - ( - + 69 ) * - + 42 * - 28, + ( + + 13 ) ) )
----
-37

query I rowsort
SELECT DISTINCT 68 * + 72 - + 47 + - + 52 AS col1
----
4797

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL + MIN( + - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + MIN ( + - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - MIN( + + ( - + 26 ) ) * - + 26 * + ( - + COUNT( * ) ) - 45 + - 2 + COUNT( * ) * + 94 * 79 * - - ( + 10 ) * + 95 AS col0
----
7055329

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - MIN ( + + ( - + 26 ) ) * - + 26 * + ( - + COUNT ( * ) ) - 45 + - 2 + COUNT ( * ) * + 94 * 79 * - - ( + 10 ) * + 95 AS col0
----
7055329

query I rowsort
SELECT + 97 + + + 84
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT + COUNT( * ) DIV COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-7550
SELECT + COUNT ( * ) / COUNT ( * ) * 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT ALL ( 28 ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL ( 28 ) / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT SUM( ALL + - 87 ) * - + 82 + 17 - - 4 - - 40 * + ( + COUNT( * ) ) * + COUNT( * ) + 54
----
7249

skipif mysql # not compatible
query I rowsort label-7552
SELECT SUM ( ALL + - 87 ) * - + 82 + 17 - - 4 - - 40 * + ( + COUNT ( * ) ) * + COUNT ( * ) + 54
----
7249

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - ( COUNT( DISTINCT + ( 63 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7553
SELECT - ( COUNT ( DISTINCT + ( 63 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7554
SELECT + 61 + - 69 * SUM( 54 ) * - 16 AS col2, - 55
----
59677
-55

skipif mysql # not compatible
query II rowsort label-7554
SELECT + 61 + - 69 * SUM ( 54 ) * - 16 AS col2, - 55
----
59677
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + - COUNT( * ) * + + 67 + CASE - 86 WHEN - + 18 THEN 54 WHEN - 5 THEN + 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT + - COUNT ( * ) * + + 67 + CASE - 86 WHEN - + 18 THEN 54 WHEN - 5 THEN + 40 END AS col1
----
NULL

query I rowsort
SELECT ALL - 38 * + - ( - + 19 ) AS col1
----
-722

query I rowsort
SELECT - 12 * - ( + 13 ) AS col0
----
156

query I rowsort
SELECT - + 68 + + - 80 + - 18 AS col1
----
-166

query II rowsort
SELECT - 83 + - 14 AS col0, NULLIF ( 85, - 97 - + 29 )
----
-97
85

query I rowsort
SELECT ALL 53 * 46 col0
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL - NULLIF ( COALESCE ( 99, COUNT( * ) * - 63, - 75 ), + ( + 82 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - NULLIF ( COALESCE ( 99, COUNT ( * ) * - 63, - 75 ), + ( + 82 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7562
SELECT - ( - + 35 ) AS col0, COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-7562
SELECT - ( - + 35 ) AS col0, COUNT ( * )
----
35
1

query I rowsort
SELECT ALL - - 92 + - + 9 + - 75
----
8

query I rowsort
SELECT 13 + + + 60 + - NULLIF ( + + 48, 4 + + 16 * 14 * - 27 ) AS col0
----
25

query I rowsort
SELECT 56 * 76 AS col2
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL + + 4 + COUNT( * ) * + 17
----
21

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + + 4 + COUNT ( * ) * + 17
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COALESCE ( - 15, - 79 + - COUNT( * ), CASE - + 8 WHEN - - 68 / - 31 THEN NULL ELSE 78 * 95 - - 78 + + 83 END, - - CASE - - 24 WHEN - 38 THEN NULL ELSE - COUNT( * ) END ) + + 79 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7567
SELECT COALESCE ( - 15, - 79 + - COUNT ( * ), CASE - + 8 WHEN - - 68 / - 31 THEN NULL ELSE 78 * 95 - - 78 + + 83 END, - - CASE - - 24 WHEN - 38 THEN NULL ELSE - COUNT ( * ) END ) + + 79 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL - - ( + COUNT( * ) ) + - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - - ( + COUNT ( * ) ) + - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - + SUM( - 39 ) + 63
----
102

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - + SUM ( - 39 ) + 63
----
102

query II rowsort
SELECT ALL ( - 26 ) + + + 16 AS col1, 28 AS col2
----
-10
28

query I rowsort
SELECT DISTINCT - 41 * - 67
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT 9 + MAX( DISTINCT + 85 )
----
94

skipif mysql # not compatible
query I rowsort label-7572
SELECT 9 + MAX ( DISTINCT + 85 )
----
94

query I rowsort
SELECT DISTINCT + 68 * - + 69 AS col1
----
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7574
SELECT - COALESCE ( 93, - 5 * NULLIF ( 86, - 60 * + 36 ) + + CAST( NULL AS SIGNED ) DIV - + 89 * - - 58, 97 + - COUNT( * ) ) DIV 54 * 31 + - - ( - COALESCE ( - - 66, + 28 * - 3 * ( - 14 ) + - 2 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-7574
SELECT - COALESCE ( 93, - 5 * NULLIF ( 86, - 60 * + 36 ) + + CAST ( NULL AS INTEGER ) / - + 89 * - - 58, 97 + - COUNT ( * ) ) / 54 * 31 + - - ( - COALESCE ( - - 66, + 28 * - 3 * ( - 14 ) + - 2 ) )
----
-97

query I rowsort
SELECT 99 * - - 20 AS col2
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7576
SELECT DISTINCT - 70 AS col0, 51 * - COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( ALL ( - - 3 ) ) + - 43 + + 78 * + COUNT( * ) + - - 76 + + - ( + COUNT( * ) ), - 47, + 12 + - COALESCE ( - 7, + 54 ) ) + - + 58 + - ( - COUNT( * ) )
----
-70
-5616

skipif mysql # not compatible
query II rowsort label-7576
SELECT DISTINCT - 70 AS col0, 51 * - COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( ALL ( - - 3 ) ) + - 43 + + 78 * + COUNT ( * ) + - - 76 + + - ( + COUNT ( * ) ), - 47, + 12 + - COALESCE ( - 7, + 54 ) ) + - + 58 + - ( - COUNT ( * ) )
----
-70
-5616

query II rowsort
SELECT ALL - 73, 14 + - 62 AS col0
----
-73
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT COUNT( * ) * 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7578
SELECT COUNT ( * ) * 81 AS col2
----
81

query I rowsort
SELECT DISTINCT - ( - - 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - MAX( ALL + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - MAX ( ALL + 51 )
----
-51

query I rowsort
SELECT ALL ( 83 ) * - 63
----
-5229

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT ALL - 88 AS col2, COUNT( * ) AS col0
----
-88
1

skipif mysql # not compatible
query II rowsort label-7582
SELECT ALL - 88 AS col2, COUNT ( * ) AS col0
----
-88
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7583
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT CAST ( NULL AS REAL ) * - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT NULLIF ( CAST( + + 30 AS SIGNED ), 82 ) * + + 43 * 98 * 91 AS col1
----
11504220

skipif mysql # not compatible
query I rowsort label-7584
SELECT NULLIF ( CAST ( + + 30 AS INTEGER ), 82 ) * + + 43 * 98 * 91 AS col1
----
11504220

query II rowsort
SELECT ALL - + 24, 42 col2
----
-24
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT + 63 + + - 73 * + - 59 AS col2, + COUNT( * ) AS col1
----
4370
1

skipif mysql # not compatible
query II rowsort label-7586
SELECT + 63 + + - 73 * + - 59 AS col2, + COUNT ( * ) AS col1
----
4370
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7587
SELECT ALL 46 + - - ( + + COALESCE ( - + 45, - COALESCE ( - 5, + 22 * + CAST( NULL AS SIGNED ) * + + 98, + + NULLIF ( COALESCE ( COUNT( * ), COUNT( * ) * + - 78, - SUM( ALL + 10 ) ), + ( 94 ) ) ) ) ) col1, + 53 * + - COUNT( * )
----
1
-53

skipif mysql # not compatible
query II rowsort label-7587
SELECT ALL 46 + - - ( + + COALESCE ( - + 45, - COALESCE ( - 5, + 22 * + CAST ( NULL AS INTEGER ) * + + 98, + + NULLIF ( COALESCE ( COUNT ( * ), COUNT ( * ) * + - 78, - SUM ( ALL + 10 ) ), + ( 94 ) ) ) ) ) col1, + 53 * + - COUNT ( * )
----
1
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT ALL + COUNT( * ), + 12 AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL + COUNT ( * ), + 12 AS col1
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT + 82 + - + NULLIF ( + 16, + 50 / 58 * - 19 + 82 * - 74 * ( - SUM( DISTINCT 42 ) ) ) * + 8 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + 82 + - + NULLIF ( + 16, + 50 / 58 * - 19 + 82 * - 74 * ( - SUM ( DISTINCT 42 ) ) ) * + 8 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7590
SELECT CAST( + 62 AS SIGNED ) + + + 37, COALESCE ( - 1, + 34 - + - 62 + + 33, + + 84 * - 13 ) * - 12 - - 9 DIV - 46 AS col1
----
99
12

skipif mysql # not compatible
query II rowsort label-7590
SELECT CAST ( + 62 AS INTEGER ) + + + 37, COALESCE ( - 1, + 34 - + - 62 + + 33, + + 84 * - 13 ) * - 12 - - 9 / - 46 AS col1
----
99
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7591
SELECT 81 DIV 24 + + + COUNT( * ) + + - 25
----
-21

skipif mysql # not compatible
query I rowsort label-7591
SELECT 81 / 24 + + + COUNT ( * ) + + - 25
----
-21

query I rowsort
SELECT DISTINCT - 57 * + 88
----
-5016

query II rowsort
SELECT ALL - 61, - ( - - 85 ) AS col2
----
-61
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT - + COUNT( * ) col1, + COALESCE ( 99, - - 42 )
----
-1
99

skipif mysql # not compatible
query II rowsort label-7594
SELECT - + COUNT ( * ) col1, + COALESCE ( 99, - - 42 )
----
-1
99

query I rowsort
SELECT DISTINCT + 88 + - 43 * - 95 * 17
----
69533

query I rowsort
SELECT DISTINCT - 66 + 85 AS col2
----
19

query I rowsort
SELECT DISTINCT + 8 + + - 88 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7598
SELECT ALL CAST( NULL AS SIGNED ), - 51 AS col0
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-7598
SELECT ALL CAST ( NULL AS INTEGER ), - 51 AS col0
----
NULL
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - CASE - CASE - 27 WHEN + - 84 THEN NULL ELSE - + 39 + - + 4 END WHEN + - 76 THEN + COUNT( * ) + - 83 WHEN - 2 THEN NULL WHEN + 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT - CASE - CASE - 27 WHEN + - 84 THEN NULL ELSE - + 39 + - + 4 END WHEN + - 76 THEN + COUNT ( * ) + - 83 WHEN - 2 THEN NULL WHEN + 46 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT CAST( + 37 AS SIGNED ) * 52 + + + CASE - COUNT( * ) WHEN COUNT( * ) THEN ( + 44 ) END + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT CAST ( + 37 AS INTEGER ) * 52 + + + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN ( + 44 ) END + - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL MIN( + 93 ) * 23 AS col0
----
2139

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL MIN ( + 93 ) * 23 AS col0
----
2139

query I rowsort
SELECT DISTINCT 52 - 48
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT DISTINCT + 45 - CASE 37 WHEN - + 8 THEN + 7 * + - COUNT( DISTINCT + 82 ) + CAST( - + 5 AS SIGNED ) + - NULLIF ( + COUNT( * ), - ( - SUM( - 8 ) ) * + 95 + 50 + + - 51 + 64 + - - 41 + - + 15 * NULLIF ( + 76, + 17 - COUNT( * ) ) ) WHEN + + 24 - - COALESCE ( + 46, + CAST( - 44 AS SIGNED ) ) THEN - 87 - - CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN 41 * + - 69 ELSE - ( 28 ) * 4 + - - 36 + SUM( + 99 + 56 ) END ELSE NULL END + ( 23 + 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + 45 - CASE 37 WHEN - + 8 THEN + 7 * + - COUNT ( DISTINCT + 82 ) + CAST ( - + 5 AS INTEGER ) + - NULLIF ( + COUNT ( * ), - ( - SUM ( - 8 ) ) * + 95 + 50 + + - 51 + 64 + - - 41 + - + 15 * NULLIF ( + 76, + 17 - COUNT ( * ) ) ) WHEN + + 24 - - COALESCE ( + 46, + CAST ( - 44 AS INTEGER ) ) THEN - 87 - - CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN 41 * + - 69 ELSE - ( 28 ) * 4 + - - 36 + SUM ( + 99 + 56 ) END ELSE NULL END + ( 23 + 90 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT 92 * + 71 AS col0, MIN( DISTINCT + 38 )
----
6532
38

skipif mysql # not compatible
query II rowsort label-7604
SELECT 92 * + 71 AS col0, MIN ( DISTINCT + 38 )
----
6532
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( - 79 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( - 79 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 51 ) col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT ALL - CASE COUNT( * ) WHEN + 90 * - 25 THEN NULL WHEN + 10 THEN ( CASE + - MAX( + + 2 ) WHEN - 92 THEN NULL ELSE ( - + 99 ) + - - MIN( DISTINCT 8 ) END ) / NULLIF ( + 44, - - 99 ) END, + 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL - CASE COUNT ( * ) WHEN + 90 * - 25 THEN NULL WHEN + 10 THEN ( CASE + - MAX ( + + 2 ) WHEN - 92 THEN NULL ELSE ( - + 99 ) + - - MIN ( DISTINCT 8 ) END ) / NULLIF ( + 44, - - 99 ) END, + 31 AS col1
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT 37 * - - COUNT( * ) col2, + 57 AS col1
----
37
57

skipif mysql # not compatible
query II rowsort label-7608
SELECT 37 * - - COUNT ( * ) col2, + 57 AS col1
----
37
57

query I rowsort
SELECT ALL - ( - - 10 ) * 52
----
-520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7610
SELECT 14 DIV + CAST( - + 32 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT 14 / + CAST ( - + 32 AS INTEGER )
----
0

query I rowsort
SELECT 20 * - + 94 + + 66 AS col0
----
-1814

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - 77 * + + COUNT( * ) + - 64
----
-141

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 77 * + + COUNT ( * ) + - 64
----
-141

query I rowsort
SELECT DISTINCT - + COALESCE ( + 65, 76 * + 17 + 40 * + 63 ) AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7614
SELECT + 52 + + 98 + - + COUNT( * ) DIV + 35, - 81 AS col0
----
150
-81

skipif mysql # not compatible
query II rowsort label-7614
SELECT + 52 + + 98 + - + COUNT ( * ) / + 35, - 81 AS col0
----
150
-81

query I rowsort
SELECT ( + - 85 ) + - - 11
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7616
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col1, 13 AS col1
----
-1
13

skipif mysql # not compatible
query II rowsort label-7616
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, 13 AS col1
----
-1
13

query I rowsort
SELECT - - ( ( + 44 ) )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7618
SELECT + 1 + + - ( + + ( COUNT( * ) ) ) AS col0, 8 * + 24 * - 70 * - - 16 col2
----
0
-215040

skipif mysql # not compatible
query II rowsort label-7618
SELECT + 1 + + - ( + + ( COUNT ( * ) ) ) AS col0, 8 * + 24 * - 70 * - - 16 col2
----
0
-215040

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - COUNT( * ) * + 6 col1
----
-6

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - COUNT ( * ) * + 6 col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT ALL - ( - 31 ) + - 64 * 79 DIV 87 + + 58
----
31

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - ( - 31 ) + - 64 * 79 / 87 + + 58
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT - + 96 + - - 60 + + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - + 96 + - - 60 + + COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT ALL - 59 * - 0 DIV + - 67
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - 59 * - 0 / + - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + + SUM( - NULLIF ( - 1, - 39 ) ) + MAX( ALL + - 50 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7623
SELECT + + SUM ( - NULLIF ( - 1, - 39 ) ) + MAX ( ALL + - 50 ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT - 20 DIV + 99 + + 32
----
32

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - 20 / + 99 + + 32
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT - COUNT( * ) * + 4, 55 * - 7 - 69 + 15 col2
----
-4
-439

skipif mysql # not compatible
query II rowsort label-7625
SELECT - COUNT ( * ) * + 4, 55 * - 7 - 69 + 15 col2
----
-4
-439

query I rowsort
SELECT + 4 * + + 44
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT DISTINCT - CAST( - - 14 AS SIGNED ) - 36 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT - CAST ( - - 14 AS INTEGER ) - 36 AS col2
----
-50

query I rowsort
SELECT ALL 46 * + + 14 AS col0
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - 58 * MIN( DISTINCT + 66 )
----
-3828

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 58 * MIN ( DISTINCT + 66 )
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + CASE + + 24 WHEN 10 THEN NULL WHEN + 77 THEN NULL WHEN + SUM( DISTINCT 24 ) THEN NULL WHEN + - 18 THEN - 95 ELSE - 42 END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT + CASE + + 24 WHEN 10 THEN NULL WHEN + 77 THEN NULL WHEN + SUM ( DISTINCT 24 ) THEN NULL WHEN + - 18 THEN - 95 ELSE - 42 END + 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT DISTINCT 75 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT 75 / 50
----
1

query I rowsort
SELECT ALL 40 * + 13 AS col0
----
520

query I rowsort
SELECT + 46 + + 54 + 47 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - NULLIF ( 88, 5 / - 65 + COUNT( * ) ) * + 90 AS col0
----
-7920

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - NULLIF ( 88, 5 / - 65 + COUNT ( * ) ) * + 90 AS col0
----
-7920

query I rowsort
SELECT DISTINCT 69 * 18 AS col2
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + 98 + + + SUM( 95 ) col0
----
193

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 98 + + + SUM ( 95 ) col0
----
193

query I rowsort
SELECT ( - ( + - 93 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7638
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0
----
0

query I rowsort
SELECT + 62 * + - 20
----
-1240

query I rowsort
SELECT DISTINCT + 44 * - + 64 + 62 + + 46 AS col2
----
-2708

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + 61 * - + MIN( - 87 ) + - + 1 AS col0
----
5306

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + 61 * - + MIN ( - 87 ) + - + 1 AS col0
----
5306

query I rowsort
SELECT - 32 * + 40 AS col1
----
-1280

query I rowsort
SELECT ALL - 52 * + 0 * + + 12 * 40 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT - 49 DIV + 12
----
-4

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 49 / + 12
----
-4

query I rowsort
SELECT - + COALESCE ( 70, - 47, - - 55 ) * - 92 AS col0
----
6440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7646
SELECT - - 60 DIV COUNT( * ) * + COALESCE ( - 54, + 58 * - 82 ) - + 29 - ( 35 ) - 62 - + 27 AS col1
----
-3393

skipif mysql # not compatible
query I rowsort label-7646
SELECT - - 60 / COUNT ( * ) * + COALESCE ( - 54, + 58 * - 82 ) - + 29 - ( 35 ) - 62 - + 27 AS col1
----
-3393

query I rowsort
SELECT - - 79 * 5 * + 77 AS col1
----
30415

query I rowsort
SELECT ALL + 56 * - ( + + 56 ) + - 65 AS col1
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - 63 * - - 21 + - + 64 + - 73 * - COUNT( * ) + 19
----
-1295

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - 63 * - - 21 + - + 64 + - 73 * - COUNT ( * ) + 19
----
-1295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT ALL CAST( NULL AS SIGNED ) * - 8 * - 39 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL CAST ( NULL AS INTEGER ) * - 8 * - 39 + 99
----
NULL

query II rowsort
SELECT - 80 AS col0, + 11
----
-80
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT ALL 2, + COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-7652
SELECT ALL 2, + COUNT ( * ) AS col1
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - MAX( ALL + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7653
SELECT - MAX ( ALL + 15 ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + 91 * + 13 AS col1
----
1183

query I rowsort
SELECT - 18 + - - 4 AS col2
----
-14

query I rowsort
SELECT + - 11 + - 32
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL - + COUNT( * ) * + 46
----
-46

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - + COUNT ( * ) * + 46
----
-46

query I rowsort
SELECT - + 41 * 72 AS col0
----
-2952

query I rowsort
SELECT + + 36 + 16
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - - MIN( ALL + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7660
SELECT - - MIN ( ALL + 89 ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT NULLIF ( ( + CAST( - + 50 AS SIGNED ) ), NULLIF ( 64, - - 7 ) - + CAST( NULL AS SIGNED ) * + - 86 * + 51 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7661
SELECT NULLIF ( ( + CAST ( - + 50 AS INTEGER ) ), NULLIF ( 64, - - 7 ) - + CAST ( NULL AS INTEGER ) * + - 86 * + 51 ) AS col1
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-7662
SELECT ALL 95 AS col0, - 83 DIV ( - 23 ) AS col1
----
95
3

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL 95 AS col0, - 83 / ( - 23 ) AS col1
----
95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL COUNT( * ) * 89 * 97 col1
----
8633

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL COUNT ( * ) * 89 * 97 col1
----
8633

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT - 29 * + 32 * + ( + 29 ) * - 35 * + + 83, 91 + COUNT( * ) AS col1
----
78179360
92

skipif mysql # not compatible
query II rowsort label-7664
SELECT - 29 * + 32 * + ( + 29 ) * - 35 * + + 83, 91 + COUNT ( * ) AS col1
----
78179360
92

query I rowsort
SELECT ALL - 28 * 24
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + 5 + - ( + - 2 ) + + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7666
SELECT + 5 + - ( + - 2 ) + + + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT + 75 * + ( + 8 )
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT ALL ( COUNT( * ) ) DIV - 73 + + 65
----
65

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL ( COUNT ( * ) ) / - 73 + + 65
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT + 63 DIV - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 63 / - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + COUNT( DISTINCT + - 73 ) * + - 74 + + 59 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7670
SELECT + COUNT ( DISTINCT + - 73 ) * + - 74 + + 59 AS col0
----
-15

query I rowsort
SELECT + 45 * + 98 * + 45 AS col0
----
198450

query I rowsort
SELECT ALL 50 + 56 AS col2
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7673
SELECT ALL ( - 44 ) DIV 17 * - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL ( - 44 ) / 17 * - + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT ( + + 14 ) DIV - - 69 + - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT ( + + 14 ) / - - 69 + - 3 AS col1
----
-3

query I rowsort
SELECT ALL 3 * - - 27
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + 9 * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-7676
SELECT + 9 * COUNT ( * )
----
9

query I rowsort
SELECT ALL + COALESCE ( + - 82, - - 95 * + 23 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT COUNT( DISTINCT - CAST( + 11 AS SIGNED ) ) + - COUNT( * ) + - + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7678
SELECT COUNT ( DISTINCT - CAST ( + 11 AS INTEGER ) ) + - COUNT ( * ) + - + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT + COUNT( * ), 59 AS col1
----
1
59

skipif mysql # not compatible
query II rowsort label-7679
SELECT + COUNT ( * ), 59 AS col1
----
1
59

query II rowsort
SELECT + 46 col1, 61
----
46
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT ALL + - 71 - + 31 AS col0, CASE - COUNT( * ) WHEN - COUNT( * ) + 4 THEN 18 ELSE NULL END * - + 82
----
-102
NULL

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL + - 71 - + 31 AS col0, CASE - COUNT ( * ) WHEN - COUNT ( * ) + 4 THEN 18 ELSE NULL END * - + 82
----
-102
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT 26 + - + 26 - + 75 + 96 * + MAX( - - 65 )
----
6165

skipif mysql # not compatible
query I rowsort label-7682
SELECT 26 + - + 26 - + 75 + 96 * + MAX ( - - 65 )
----
6165

query I rowsort
SELECT - ( - + 11 ) + - 90
----
-79

query I rowsort
SELECT ALL 19 - - + 3 * - + 45
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + 59 * - 31 + + 81 * - - 61 - - COUNT( * ) AS col0
----
3113

skipif mysql # not compatible
query I rowsort label-7685
SELECT + 59 * - 31 + + 81 * - - 61 - - COUNT ( * ) AS col0
----
3113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7686
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, 79 + + 56 - - - 60 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-7686
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, 79 + + 56 - - - 60 AS col2
----
NULL
75

query I rowsort
SELECT + COALESCE ( 45, + 51, + - 97 * + + 75 + - NULLIF ( 39, + 84 ) ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7688
SELECT - + CAST( NULL AS DECIMAL ) * - - 13 + + MAX( DISTINCT - + CAST( - 26 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT - + CAST ( NULL AS REAL ) * - - 13 + + MAX ( DISTINCT - + CAST ( - 26 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - 39 * + + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 39 * + + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT DISTINCT - COUNT( * ) AS col1, - CASE CASE 52 WHEN - + COUNT( * ) / + - 51 + + 48 * - COUNT( * ) THEN - + 90 WHEN - + 29 THEN 43 END WHEN - + 31 THEN NULL WHEN 6 THEN NULL WHEN - 88 + + + NULLIF ( - 32, 89 + + 60 * - + 73 ) THEN + - 1 * + + 89 + - ( - 54 ) + MAX( ( + + 88 ) ) END / ( - 8 ) * 39 * + CASE + 60 WHEN NULLIF ( + 2, - 76 ) THEN ( - COUNT( * ) ) * + MIN( ALL + 47 ) ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7690
SELECT DISTINCT - COUNT ( * ) AS col1, - CASE CASE 52 WHEN - + COUNT ( * ) / + - 51 + + 48 * - COUNT ( * ) THEN - + 90 WHEN - + 29 THEN 43 END WHEN - + 31 THEN NULL WHEN 6 THEN NULL WHEN - 88 + + + NULLIF ( - 32, 89 + + 60 * - + 73 ) THEN + - 1 * + + 89 + - ( - 54 ) + MAX ( ( + + 88 ) ) END / ( - 8 ) * 39 * + CASE + 60 WHEN NULLIF ( + 2, - 76 ) THEN ( - COUNT ( * ) ) * + MIN ( ALL + 47 ) ELSE NULL END
----
-1
NULL

query I rowsort
SELECT DISTINCT - - 24 * 48
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT 18 * - COUNT( * ), MIN( + 71 ) AS col2
----
-18
71

skipif mysql # not compatible
query II rowsort label-7692
SELECT 18 * - COUNT ( * ), MIN ( + 71 ) AS col2
----
-18
71

query II rowsort
SELECT 98 + + ( 77 ), + 78 AS col1
----
175
78

query I rowsort
SELECT 1 - 94 * + 50 AS col0
----
-4699

query I rowsort
SELECT 8 + + 99 * - + 25
----
-2467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT COUNT( * ) - + CASE + - CAST( 73 AS SIGNED ) WHEN - 15 THEN + 98 ELSE - + 79 * 88 + + + CAST( NULL AS SIGNED ) + + 95 + + - 55 END + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT COUNT ( * ) - + CASE + - CAST ( 73 AS INTEGER ) WHEN - 15 THEN + 98 ELSE - + 79 * 88 + + + CAST ( NULL AS INTEGER ) + + 95 + + - 55 END + - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT + 79 + + 99 + - CASE COALESCE ( + - AVG ( ALL + 37 ), + 51, 91 + + COUNT( * ) * - 32 ) WHEN - 69 THEN 30 WHEN + 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + 79 + + 99 + - CASE COALESCE ( + - AVG ( ALL + 37 ), + 51, 91 + + COUNT ( * ) * - 32 ) WHEN - 69 THEN 30 WHEN + 99 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 26 ) + - + 50
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7699
SELECT CASE 90 WHEN + 79 - - COUNT( * ) THEN + 20 DIV - 84 + - SUM( DISTINCT - 0 ) ELSE - + 82 END * - 70 - NULLIF ( COUNT( * ), + 73 DIV - - 12 ) * 75
----
5665

skipif mysql # not compatible
query I rowsort label-7699
SELECT CASE 90 WHEN + 79 - - COUNT ( * ) THEN + 20 / - 84 + - SUM ( DISTINCT - 0 ) ELSE - + 82 END * - 70 - NULLIF ( COUNT ( * ), + 73 / - - 12 ) * 75
----
5665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7700
SELECT ALL + CASE - 59 WHEN + + 25 THEN + - 36 * ( - + 96 ) + + 85 + + 26 * CASE - - ( - CAST( 11 AS SIGNED ) ) WHEN CASE - + 30 WHEN - 42 THEN 81 WHEN CASE - COUNT( * ) WHEN 91 THEN NULL WHEN CAST( - + ( - 49 ) AS SIGNED ) THEN + 72 * - CAST( NULL AS SIGNED ) + + 77 END + - 10 + + 46 THEN CAST( + COUNT( * ) AS SIGNED ) + 19 ELSE - 74 * - COUNT( * ) + + ( - + 65 ) * ( + + 54 ) END THEN 14 ELSE + - 5 END WHEN + ( - COUNT( * ) ) * 93 / - - 3 - - 5 * 58 THEN - 93 END + 65 / + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + CASE - 59 WHEN + + 25 THEN + - 36 * ( - + 96 ) + + 85 + + 26 * CASE - - ( - CAST ( 11 AS INTEGER ) ) WHEN CASE - + 30 WHEN - 42 THEN 81 WHEN CASE - COUNT ( * ) WHEN 91 THEN NULL WHEN CAST ( - + ( - 49 ) AS INTEGER ) THEN + 72 * - CAST ( NULL AS INTEGER ) + + 77 END + - 10 + + 46 THEN CAST ( + COUNT ( * ) AS INTEGER ) + 19 ELSE - 74 * - COUNT ( * ) + + ( - + 65 ) * ( + + 54 ) END THEN 14 ELSE + - 5 END WHEN + ( - COUNT ( * ) ) * 93 / - - 3 - - 5 * 58 THEN - 93 END + 65 / + 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT 33 + + + 91 + CAST( - - AVG ( + 70 ) AS SIGNED )
----
194

skipif mysql # not compatible
query I rowsort label-7701
SELECT 33 + + + 91 + CAST ( - - AVG ( + 70 ) AS INTEGER )
----
194

query I rowsort
SELECT DISTINCT 68 * + - 37
----
-2516

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT ALL + 61 + - 10 DIV + 75 - - 95
----
156

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 61 + - 10 / + 75 - - 95
----
156

query I rowsort
SELECT 68 + 7
----
75

query I rowsort
SELECT + NULLIF ( 10, + 47 * + + 26 - - + 32 + + 34 / + - 20 ) * 79 * + + 87 + - 66
----
68664

query I rowsort
SELECT - 80 * + 48
----
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7707
SELECT ALL NULLIF ( - + NULLIF ( MAX( DISTINCT + 56 ), - COUNT( * ) ), + 54 ) - - CAST( + + 53 AS SIGNED ) AS col1, + 64 DIV + + 60 AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL NULLIF ( - + NULLIF ( MAX ( DISTINCT + 56 ), - COUNT ( * ) ), + 54 ) - - CAST ( + + 53 AS INTEGER ) AS col1, + 64 / + + 60 AS col2
----
-3
1

query I rowsort
SELECT - 98 * 99 AS col2
----
-9702

query I rowsort
SELECT ALL 37 * 48 AS col2
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL + 16 * 15 - COUNT( * ) * + 15
----
225

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + 16 * 15 - COUNT ( * ) * + 15
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-7711
SELECT DISTINCT - - 89 DIV + + 67 col0, 13
----
1
13

skipif mysql # not compatible
query II rowsort label-7711
SELECT DISTINCT - - 89 / + + 67 col0, 13
----
1
13

query I rowsort
SELECT ALL - NULLIF ( + + 67, + 40 ) * 20 AS col0
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL - + COUNT( ALL + - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL - + COUNT ( ALL + - 90 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT 69 * - 94 * - 26 * CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN + 26 END - + 75 + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT 69 * - 94 * - 26 * CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 26 END - + 75 + - 80 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 45 ) * - 73 col1
----
-3285

query II rowsort
SELECT ALL 26 * - + 47, - 99 AS col2
----
-1222
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT - NULLIF ( + - CAST( - - ( - + CASE - + ( + CAST( - - 84 AS SIGNED ) ) WHEN + 69 - + - 51 + + 62 * 82 THEN - - 31 END ) AS SIGNED ), + 16 ) * - 16 * - 37 * - - ( - CASE - 23 WHEN + 65 THEN 36 + COUNT( * ) * - 17 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT - NULLIF ( + - CAST ( - - ( - + CASE - + ( + CAST ( - - 84 AS INTEGER ) ) WHEN + 69 - + - 51 + + 62 * 82 THEN - - 31 END ) AS INTEGER ), + 16 ) * - 16 * - 37 * - - ( - CASE - 23 WHEN + 65 THEN 36 + COUNT ( * ) * - 17 ELSE NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT COUNT( * ) * - 66 * - 64 * - 25 AS col1
----
-105600

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( * ) * - 66 * - 64 * - 25 AS col1
----
-105600

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT ALL - SUM( DISTINCT - 64 ) AS col2, - 88
----
64
-88

skipif mysql # not compatible
query II rowsort label-7719
SELECT ALL - SUM ( DISTINCT - 64 ) AS col2, - 88
----
64
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT NULLIF ( COUNT( * ), - 71 ) - 88
----
-87

skipif mysql # not compatible
query I rowsort label-7720
SELECT NULLIF ( COUNT ( * ), - 71 ) - 88
----
-87

query I rowsort
SELECT + 46 + - 21
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT CAST( NULL AS SIGNED ) * + AVG ( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT CAST ( NULL AS INTEGER ) * + AVG ( + 16 )
----
NULL

query I rowsort
SELECT 2 + + 16 col2
----
18

query I rowsort
SELECT ALL 81 * - - 76 AS col0
----
6156

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT 8 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-7725
SELECT 8 / - + 62
----
0

query I rowsort
SELECT 47 - + 31 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7727
SELECT ALL + ( + MIN( DISTINCT - + 15 ) ) + + 36 AS col2, + 65 * - CAST( NULL AS SIGNED ) AS col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-7727
SELECT ALL + ( + MIN ( DISTINCT - + 15 ) ) + + 36 AS col2, + 65 * - CAST ( NULL AS INTEGER ) AS col1
----
21
NULL

query I rowsort
SELECT ALL 45 * + + 7
----
315

query I rowsort
SELECT 43 * + ( + 50 ) * + 96 + - + 6 AS col0
----
206394

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL COALESCE ( - 62, + 21 * - - COUNT( * ) + - + 23 - + 83 ) + - 87 * + + 99 + + 46 - 43
----
-8672

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL COALESCE ( - 62, + 21 * - - COUNT ( * ) + - + 23 - + 83 ) + - 87 * + + 99 + + 46 - 43
----
-8672

query I rowsort
SELECT DISTINCT + 48 + - 74
----
-26

query I rowsort
SELECT ALL - 93 + - 66
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT DISTINCT COUNT( * ) AS col1, - ( 35 )
----
1
-35

skipif mysql # not compatible
query II rowsort label-7733
SELECT DISTINCT COUNT ( * ) AS col1, - ( 35 )
----
1
-35

query I rowsort
SELECT + 97 - 83 AS col1
----
14

query I rowsort
SELECT ALL + 30 - 70
----
-40

query I rowsort
SELECT - CASE - 55 WHEN + - 84 THEN + + ( - + 47 ) + + + 21 WHEN + 67 * - ( + 17 ) THEN NULL END / + 75 - + 96 AS col2
----
NULL

query I rowsort
SELECT ALL - 86 * 71 * - 13 + + - 38
----
79340

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - - 81 - - SUM( 0 )
----
81

skipif mysql # not compatible
query I rowsort label-7738
SELECT - - 81 - - SUM ( 0 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT DISTINCT - ( + SUM( - + 32 ) ) * + 72 + - COUNT( DISTINCT 25 ) col1, + COUNT( * ) * + + ( - + 97 )
----
2303
-97

skipif mysql # not compatible
query II rowsort label-7739
SELECT DISTINCT - ( + SUM ( - + 32 ) ) * + 72 + - COUNT ( DISTINCT 25 ) col1, + COUNT ( * ) * + + ( - + 97 )
----
2303
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7740
SELECT + 95 * 64 * - - 41 * - 45 - + 47 + 55 * + 20 + 22 col0, + MIN( + 51 ) * + 15 - - - ( + 12 ) + COUNT( DISTINCT + - 28 ) * - 95 * - 5 * - - 5 + - 1
----
-11216525
3127

skipif mysql # not compatible
query II rowsort label-7740
SELECT + 95 * 64 * - - 41 * - 45 - + 47 + 55 * + 20 + 22 col0, + MIN ( + 51 ) * + 15 - - - ( + 12 ) + COUNT ( DISTINCT + - 28 ) * - 95 * - 5 * - - 5 + - 1
----
-11216525
3127

query I rowsort
SELECT - 85 + - 81
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT - 7 DIV 89 - - + 21 * - 46
----
-966

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 7 / 89 - - + 21 * - 46
----
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT + ( - - MIN( ALL - CAST( 18 AS SIGNED ) ) ) * - 33
----
594

skipif mysql # not compatible
query I rowsort label-7743
SELECT + ( - - MIN ( ALL - CAST ( 18 AS INTEGER ) ) ) * - 33
----
594

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT ALL + + 77, COUNT( * ) * - - 53 * 30 AS col1
----
77
1590

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL + + 77, COUNT ( * ) * - - 53 * 30 AS col1
----
77
1590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7745
SELECT ALL CAST( NULL AS SIGNED ) * - - 71 * - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2, - 36 AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-7745
SELECT ALL CAST ( NULL AS INTEGER ) * - - 71 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, - 36 AS col1
----
NULL
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7746
SELECT ALL + - CAST( - - ( - COUNT( 17 ) ) AS SIGNED ), ( - 78 ) * 80 * - 11 * + 76 + + 23 + COUNT( * ) DIV + - 87 * + ( + + 19 ) + + COUNT( * ) AS col0
----
1
5216664

skipif mysql # not compatible
query II rowsort label-7746
SELECT ALL + - CAST ( - - ( - COUNT ( 17 ) ) AS INTEGER ), ( - 78 ) * 80 * - 11 * + 76 + + 23 + COUNT ( * ) / + - 87 * + ( + + 19 ) + + COUNT ( * ) AS col0
----
1
5216664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT ALL - 99 DIV - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - 99 / - COUNT ( * ) AS col1
----
99

query I rowsort
SELECT + + 30 + - - 36 * + 30 * 26 col0
----
28110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT ALL ( 24 ) * CAST( - - MAX( DISTINCT + + 9 ) AS SIGNED )
----
216

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL ( 24 ) * CAST ( - - MAX ( DISTINCT + + 9 ) AS INTEGER )
----
216

query I rowsort
SELECT + NULLIF ( - 65, + 13 * + - 43 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7751
SELECT + 46 * - COALESCE ( 48, + CAST( NULL AS SIGNED ) + 55 * + 34 DIV + 12 * - + 85 )
----
-2208

skipif mysql # not compatible
query I rowsort label-7751
SELECT + 46 * - COALESCE ( 48, + CAST ( NULL AS INTEGER ) + 55 * + 34 / + 12 * - + 85 )
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT - 39 * - - 79 + COUNT( * ) - - 90 + - COUNT( * )
----
-2991

skipif mysql # not compatible
query I rowsort label-7752
SELECT - 39 * - - 79 + COUNT ( * ) - - 90 + - COUNT ( * )
----
-2991

query I rowsort
SELECT + 69 * + 54 * + - 91
----
-339066

query I rowsort
SELECT ALL NULLIF ( 15, + - 92 ) + 0 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT 4 + NULLIF ( + + MIN( + - CAST( NULL AS SIGNED ) ), + 61 ) * - - 37 + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT 4 + NULLIF ( + + MIN ( + - CAST ( NULL AS INTEGER ) ), + 61 ) * - - 37 + + 94 AS col1
----
NULL

query I rowsort
SELECT + 33 + 43 AS col2
----
76

query I rowsort
SELECT DISTINCT - 16 * - + 88 * + 88 * - 82 AS col0
----
-10160128

query I rowsort
SELECT ALL + 61 - - + 75 AS col0
----
136

query I rowsort
SELECT ALL - 7 * - 83 AS col0
----
581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT ALL 92 DIV COUNT( * ) * - - SUM( ALL 56 ) AS col0
----
5152

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 92 / COUNT ( * ) * - - SUM ( ALL 56 ) AS col0
----
5152

query I rowsort
SELECT + 97 + + 35 * - 53
----
-1758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7762
SELECT - 3 - - CASE WHEN NOT ( NULL ) > NULL THEN - 76 ELSE CAST( - MIN( 32 ) AS DECIMAL ) END * SUM( 54 ) * 85 / - CASE ( ( + CAST( NULL AS SIGNED ) ) ) WHEN - 6 + - COUNT( * ) THEN NULLIF ( + 35, - + 87 * + + 40 * - 90 ) ELSE 68 END * + CAST( NULL AS SIGNED ) - - COUNT( + 75 ) - 72 + 88 + - MAX( DISTINCT + 65 ) + - 60 + - + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT - 3 - - CASE WHEN NOT ( NULL ) > NULL THEN - 76 ELSE CAST ( - MIN ( 32 ) AS REAL ) END * SUM ( 54 ) * 85 / - CASE ( ( + CAST ( NULL AS INTEGER ) ) ) WHEN - 6 + - COUNT ( * ) THEN NULLIF ( + 35, - + 87 * + + 40 * - 90 ) ELSE 68 END * + CAST ( NULL AS INTEGER ) - - COUNT ( + 75 ) - 72 + 88 + - MAX ( DISTINCT + 65 ) + - 60 + - + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - ( + 19 ) + + 4 + + + 56 + + 68 * - + 9 + + 99 * + COUNT( * ) AS col0
----
-472

skipif mysql # not compatible
query I rowsort label-7763
SELECT - ( + 19 ) + + 4 + + + 56 + + 68 * - + 9 + + 99 * + COUNT ( * ) AS col0
----
-472

query I rowsort
SELECT ALL 85 - - 44 * + - 83 col0
----
-3567

query I rowsort
SELECT + 67 + + 73
----
140

query I rowsort
SELECT DISTINCT 91 * ( + 53 )
----
4823

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT DISTINCT MIN( + NULLIF ( 7, 89 ) ), 96 AS col2
----
7
96

skipif mysql # not compatible
query II rowsort label-7767
SELECT DISTINCT MIN ( + NULLIF ( 7, 89 ) ), 96 AS col2
----
7
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7768
SELECT + + CASE WHEN NOT - ( - + ( CAST( - + 14 AS DECIMAL ) ) ) IS NULL THEN + 41 ELSE - + 71 + - COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-7768
SELECT + + CASE WHEN NOT - ( - + ( CAST ( - + 14 AS REAL ) ) ) IS NULL THEN + 41 ELSE - + 71 + - COUNT ( * ) END
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT DISTINCT - - 9 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - - 9 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT ALL + 67 DIV 67 + 20 + - - 25
----
46

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + 67 / 67 + 20 + - - 25
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT NULLIF ( 88, + CAST( 97 AS SIGNED ) - + - 82 ) DIV + 39 + - 23 col0
----
-21

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT NULLIF ( 88, + CAST ( 97 AS INTEGER ) - + - 82 ) / + 39 + - 23 col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7772
SELECT DISTINCT + + 54 DIV - 71 * + 97 + - 85 + - + 22 + - 12 + - 37 * + COALESCE ( - 77, - + CAST( - - 47 AS SIGNED ) ) AS col1
----
2730

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT + + 54 / - 71 * + 97 + - 85 + - + 22 + - 12 + - 37 * + COALESCE ( - 77, - + CAST ( - - 47 AS INTEGER ) ) AS col1
----
2730

query I rowsort
SELECT DISTINCT - + ( 77 ) * - 45
----
3465

query I rowsort
SELECT - 32 * - - 44 * + 72 AS col0
----
-101376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7775
SELECT ALL + - 89 DIV - MIN( - 79 ) + - CAST( - + 51 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL + - 89 / - MIN ( - 79 ) + - CAST ( - + 51 AS INTEGER ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT COUNT( - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT COUNT ( - 67 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ( - + 10 ), - MIN( DISTINCT + 53 ) + - MIN( DISTINCT - - 92 ) + + 23 * - 64 AS col1
----
-10
-1617

skipif mysql # not compatible
query II rowsort label-7777
SELECT ( - + 10 ), - MIN ( DISTINCT + 53 ) + - MIN ( DISTINCT - - 92 ) + + 23 * - 64 AS col1
----
-10
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - - CASE - + 27 WHEN + + 60 * + 56 THEN NULL WHEN - + 93 * + 65 THEN + 63 + - COUNT( * ) END * + + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT - - CASE - + 27 WHEN + + 60 * + 56 THEN NULL WHEN - + 93 * + 65 THEN + 63 + - COUNT ( * ) END * + + 3 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7779
SELECT + 52 * + + 43 * - + SUM( DISTINCT - + ( - 46 ) ) AS col1, ( - COALESCE ( + 89, CAST( NULL AS SIGNED ), + - 36 ) ) / 7 + + 43 + - CASE - 95 WHEN + 32 THEN NULL WHEN + 20 * - + 34 + + 23 THEN - 38 END
----
-102856
NULL

skipif mysql # not compatible
query II rowsort label-7779
SELECT + 52 * + + 43 * - + SUM ( DISTINCT - + ( - 46 ) ) AS col1, ( - COALESCE ( + 89, CAST ( NULL AS INTEGER ), + - 36 ) ) / 7 + + 43 + - CASE - 95 WHEN + 32 THEN NULL WHEN + 20 * - + 34 + + 23 THEN - 38 END
----
-102856
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + MIN ( + 38 )
----
38

query I rowsort
SELECT + 70 + - 55 + + 1
----
16

query I rowsort
SELECT + ( - + 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT + CASE - ( + 46 ) WHEN + - COUNT( * ) THEN 6 - - - COUNT( * ) END * - + 59 + - 92 - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + CASE - ( + 46 ) WHEN + - COUNT ( * ) THEN 6 - - - COUNT ( * ) END * - + 59 + - 92 - + 61 AS col1
----
NULL

query I rowsort
SELECT + 92 - 28
----
64

query I rowsort
SELECT DISTINCT 22 - - COALESCE ( + - 34, 2 )
----
-12

query I rowsort
SELECT DISTINCT 51 * 53
----
2703

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT 36 + MIN( - 71 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7787
SELECT 36 + MIN ( - 71 ) AS col1
----
-35

query I rowsort
SELECT 71 * + 89 * - 17 AS col0
----
-107423

query I rowsort
SELECT ( + 4 ) * - 10 + 44 col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7790
SELECT DISTINCT 86 - - 1 + 65 + - 69 DIV - + 35 + 79 + 35 * 61, 28 * - 83 + - 90 AS col0
----
2367
-2414

skipif mysql # not compatible
query II rowsort label-7790
SELECT DISTINCT 86 - - 1 + 65 + - 69 / - + 35 + 79 + 35 * 61, 28 * - 83 + - 90 AS col0
----
2367
-2414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT ( + CASE 1 WHEN - MIN( - - 19 ) / + 51 THEN NULL WHEN + CAST( + + 75 AS SIGNED ) + - 86 / 79 THEN + 67 * - 80 * - 90 + + - 26 WHEN 17 - - - 78 THEN NULL END ) + - 55 + - 37 / + 17 * 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT ( + CASE 1 WHEN - MIN ( - - 19 ) / + 51 THEN NULL WHEN + CAST ( + + 75 AS INTEGER ) + - 86 / 79 THEN + 67 * - 80 * - 90 + + - 26 WHEN 17 - - - 78 THEN NULL END ) + - 55 + - 37 / + 17 * 57 col0
----
NULL

query I rowsort
SELECT 61 * - 11 AS col2
----
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT DISTINCT 73 DIV + - 60
----
-1

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT 73 / + - 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT 26 + COUNT( - - 91 ) + 34
----
61

skipif mysql # not compatible
query I rowsort label-7794
SELECT 26 + COUNT ( - - 91 ) + 34
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7795
SELECT ALL 93 * - - 96 * - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) * - - MAX( + + 29 ) + 28
----
-8928
NULL

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL 93 * - - 96 * - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * - - MAX ( + + 29 ) + 28
----
-8928
NULL

query I rowsort
SELECT - 76 - + 89 AS col1
----
-165

query I rowsort
SELECT ALL + - 44 + - + 77 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 49 - + 69 + - COUNT( * ) * 45
----
-65

skipif mysql # not compatible
query I rowsort label-7798
SELECT 49 - + 69 + - COUNT ( * ) * 45
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7799
SELECT ALL CAST( 16 AS SIGNED ) * 76 DIV + 60
----
20

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL CAST ( 16 AS INTEGER ) * 76 / + 60
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL - 68 + + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - 68 + + COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT 95 + - ( + 6 ) AS col1
----
89

query I rowsort
SELECT DISTINCT - - 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL - 8 + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - 8 + COUNT ( * )
----
-7

query II rowsort
SELECT + - 5 AS col2, 20
----
-5
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7805
SELECT - + 97 / 57 - + 93 - - + ( - 18 ) * - ( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT - + 97 / 57 - + 93 - - + ( - 18 ) * - ( CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ( - - COUNT( * ) ) * + - 0 + - ( - - 70 ) + + 24 + - + 28
----
-74

skipif mysql # not compatible
query I rowsort label-7806
SELECT ( - - COUNT ( * ) ) * + - 0 + - ( - - 70 ) + + 24 + - + 28
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT ALL + 79 - 84 + - COUNT( * ) * - COUNT( * ) * + 70 + - COALESCE ( - 80, + 12, - 3, - + 37 + + 50 * 71 - - 58 DIV - 34 ) - - COUNT( * ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + 79 - 84 + - COUNT ( * ) * - COUNT ( * ) * + 70 + - COALESCE ( - 80, + 12, - 3, - + 37 + + 50 * 71 - - 58 / - 34 ) - - COUNT ( * ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - CASE - COUNT( * ) WHEN - 8 THEN - - SUM( + 16 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - CASE - COUNT ( * ) WHEN - 8 THEN - - SUM ( + 16 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 97, + - 2 * 47 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT + 8, SUM( - - 75 ) col2
----
8
75

skipif mysql # not compatible
query II rowsort label-7810
SELECT + 8, SUM ( - - 75 ) col2
----
8
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT 36, + 98 * - - COUNT( * ) + + 18 AS col1
----
36
116

skipif mysql # not compatible
query II rowsort label-7811
SELECT 36, + 98 * - - COUNT ( * ) + + 18 AS col1
----
36
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7812
SELECT COUNT( * ) * MAX( ALL + 73 ) DIV - 70 + 58 + 4 * - + 47
----
-131

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) * MAX ( ALL + 73 ) / - 70 + 58 + 4 * - + 47
----
-131

query I rowsort
SELECT - NULLIF ( 66, 16 + 99 - 28 ) * - 26 + - + 12 col1
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT COUNT( DISTINCT - ( - - 26 ) ) * - + 62 + - 99 AS col0
----
-161

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( DISTINCT - ( - - 26 ) ) * - + 62 + - 99 AS col0
----
-161

query II rowsort
SELECT - 21 AS col0, 56 * - 22 + - - 12
----
-21
-1220

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT 61 DIV NULLIF ( + ( + 40 ), - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7816
SELECT 61 / NULLIF ( + ( + 40 ), - 84 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT ALL 38 DIV - 31 * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 38 / - 31 * + + COUNT ( * )
----
-1

query I rowsort
SELECT 68 + + - 32
----
36

query I rowsort
SELECT 77 + - + 63 + + - 28 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7820
SELECT CASE + - 51 WHEN NULLIF ( + - CAST( - - CAST( + + 32 AS SIGNED ) AS SIGNED ), - + 56 + + 28 + + ( - COALESCE ( - COALESCE ( + - 77, 96 ), 73 * - - 48, + 4 + + - CAST( - 52 AS DECIMAL ) * 70 / ( 59 ) * 43, - 28 + + COUNT( * ) ) ) / + 97 * - - 42 ) - + - 88 + + + ( - 73 ) * + 9 THEN - ( - 16 ) END + 45 + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT CASE + - 51 WHEN NULLIF ( + - CAST ( - - CAST ( + + 32 AS INTEGER ) AS INTEGER ), - + 56 + + 28 + + ( - COALESCE ( - COALESCE ( + - 77, 96 ), 73 * - - 48, + 4 + + - CAST ( - 52 AS REAL ) * 70 / ( 59 ) * 43, - 28 + + COUNT ( * ) ) ) / + 97 * - - 42 ) - + - 88 + + + ( - 73 ) * + 9 THEN - ( - 16 ) END + 45 + - 53 AS col0
----
NULL

query I rowsort
SELECT - 24 + - 4
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT 92 - + CAST( + - 7 AS SIGNED ) + 0
----
99

skipif mysql # not compatible
query I rowsort label-7822
SELECT 92 - + CAST ( + - 7 AS INTEGER ) + 0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT 63 * + + 24 * - + COUNT( * ) AS col1
----
-1512

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT 63 * + + 24 * - + COUNT ( * ) AS col1
----
-1512

query I rowsort
SELECT 40 * + + 85
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT DISTINCT - + 38 + - COALESCE ( - + 65, + 96 * - - 84 ) + - - COUNT( * ) - 87
----
-59

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT - + 38 + - COALESCE ( - + 65, + 96 * - - 84 ) + - - COUNT ( * ) - 87
----
-59

query II rowsort
SELECT ALL 4 + 43 + - ( 46 ), 16 AS col1
----
1
16

query I rowsort
SELECT + 74 + 0 * 48
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT ALL - 61 + + + COUNT( DISTINCT - + ( - 52 ) ) DIV - - 52 col0
----
-61

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - 61 + + + COUNT ( DISTINCT - + ( - 52 ) ) / - - 52 col0
----
-61

query I rowsort
SELECT ALL + 81 * - + 60
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL - COUNT( * ) + 57 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - COUNT ( * ) + 57 AS col0
----
56

onlyif mysql # aggregate syntax: 
query III rowsort label-7831
SELECT 43 * - - 6 AS col0, + 78 + + - COUNT( * ), + 40 + COUNT( * ) * - - NULLIF ( + - COUNT( * ), COUNT( * ) ) AS col1
----
258
77
39

skipif mysql # not compatible
query III rowsort label-7831
SELECT 43 * - - 6 AS col0, + 78 + + - COUNT ( * ), + 40 + COUNT ( * ) * - - NULLIF ( + - COUNT ( * ), COUNT ( * ) ) AS col1
----
258
77
39

query I rowsort
SELECT - 23 + - 10 AS col2
----
-33

query I rowsort
SELECT ALL 93 * 62
----
5766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL - MAX( ALL - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - MAX ( ALL - + 10 )
----
10

query I rowsort
SELECT DISTINCT ( - 77 ) * - 39
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + CASE 26 WHEN + 40 THEN NULL WHEN + SUM( 93 ) THEN NULL WHEN - - 42 * - 91 + - COUNT( * ) + + 47 THEN NULL WHEN 69 THEN + + 74 * + 6 * 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT + CASE 26 WHEN + 40 THEN NULL WHEN + SUM ( 93 ) THEN NULL WHEN - - 42 * - 91 + - COUNT ( * ) + + 47 THEN NULL WHEN 69 THEN + + 74 * + 6 * 36 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT ALL + 75 DIV + + 21
----
3

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + 75 / + + 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + 81 - COUNT( * ) + 8 col0
----
88

skipif mysql # not compatible
query I rowsort label-7839
SELECT + 81 - COUNT ( * ) + 8 col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT 48 * - 87 * + + MIN( DISTINCT - 32 ) * 65 - - + MAX( + 28 ) + - ( - + 91 ) * - CASE - 37 WHEN + 6 THEN + 57 DIV + + 65 * + 8 ELSE 76 + COUNT( * ) END * - 2 - + 33 * + 0 AS col1
----
8700122

skipif mysql # not compatible
query I rowsort label-7840
SELECT 48 * - 87 * + + MIN ( DISTINCT - 32 ) * 65 - - + MAX ( + 28 ) + - ( - + 91 ) * - CASE - 37 WHEN + 6 THEN + 57 / + + 65 * + 8 ELSE 76 + COUNT ( * ) END * - 2 - + 33 * + 0 AS col1
----
8700122

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - COUNT( * ) * 61 * + + 27 * - 8 + ( + 99 ) AS col2
----
13275

skipif mysql # not compatible
query I rowsort label-7841
SELECT - COUNT ( * ) * 61 * + + 27 * - 8 + ( + 99 ) AS col2
----
13275

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT + SUM( + 84 ) * - 71 * - 55 + + + NULLIF ( + 13, - - 49 + - 47 + + - COUNT( * ) ) * 0, - 92 AS col2
----
328020
-92

skipif mysql # not compatible
query II rowsort label-7842
SELECT + SUM ( + 84 ) * - 71 * - 55 + + + NULLIF ( + 13, - - 49 + - 47 + + - COUNT ( * ) ) * 0, - 92 AS col2
----
328020
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7843
SELECT ALL + MIN( + - ( 24 ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + MIN ( + - ( 24 ) ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT - NULLIF ( + - COUNT( * ), + MAX( ALL + 51 ) + ( - MIN( - - 46 ) ) ) - + 55 AS col2, - 5 * - 5 * - COUNT( * )
----
-54
-25

skipif mysql # not compatible
query II rowsort label-7844
SELECT - NULLIF ( + - COUNT ( * ), + MAX ( ALL + 51 ) + ( - MIN ( - - 46 ) ) ) - + 55 AS col2, - 5 * - 5 * - COUNT ( * )
----
-54
-25

query I rowsort
SELECT ALL 9 * 47
----
423

query I rowsort
SELECT - ( + ( + + 5 ) ) * + 91 * - + 5 col0
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ( - 77 ) * 13 - - COUNT( * ) + + + 39
----
-961

skipif mysql # not compatible
query I rowsort label-7847
SELECT ( - 77 ) * 13 - - COUNT ( * ) + + + 39
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT + 58 + + + 71 - NULLIF ( - + SUM( + 95 ), + 71 ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 58 + + + 71 - NULLIF ( - + SUM ( + 95 ), + 71 ) AS col2
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT - COALESCE ( - COUNT( * ), 68 * + CAST( NULL AS SIGNED ) * COUNT( DISTINCT - + ( - 65 ) ) + + 38 + COALESCE ( + COUNT( * ), - 37 * 57 * + ( - + ( - - 49 ) ) ) * + - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT - COALESCE ( - COUNT ( * ), 68 * + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - + ( - 65 ) ) + + 38 + COALESCE ( + COUNT ( * ), - 37 * 57 * + ( - + ( - - 49 ) ) ) * + - 54 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - 91 + - 14 + + 48 * + - COUNT( * )
----
-153

skipif mysql # not compatible
query I rowsort label-7850
SELECT - 91 + - 14 + + 48 * + - COUNT ( * )
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL NULLIF ( + - 15, COUNT( * ) + - COUNT( * ) * + 12 + - 17 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL NULLIF ( + - 15, COUNT ( * ) + - COUNT ( * ) * + 12 + - 17 ) AS col0
----
-15

query I rowsort
SELECT - + 56 + + + 70
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT - 96 - - 46 - - 94 DIV - + COUNT( * ) col1
----
-144

skipif mysql # not compatible
query I rowsort label-7853
SELECT - 96 - - 46 - - 94 / - + COUNT ( * ) col1
----
-144

query I rowsort
SELECT DISTINCT - ( - 98 ) + + - 7 - 68 - - 36 col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT - - 71 * + COALESCE ( + + 81, + 50 ) - 58 * 9 DIV - 75 + - + 5 + - 35
----
5717

skipif mysql # not compatible
query I rowsort label-7855
SELECT - - 71 * + COALESCE ( + + 81, + 50 ) - 58 * 9 / - 75 + - + 5 + - 35
----
5717

query I rowsort
SELECT - + 38 * + 67 AS col0
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT ALL - 32 DIV + + 31 - - 8 + 46 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - 32 / + + 31 - - 8 + 46 AS col0
----
53

query I rowsort
SELECT ALL + 52 * - 90 + + - 20 AS col1
----
-4700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7859
SELECT - - CAST( 47 AS SIGNED ) AS col1, 55
----
47
55

skipif mysql # not compatible
query II rowsort label-7859
SELECT - - CAST ( 47 AS INTEGER ) AS col1, 55
----
47
55

query I rowsort
SELECT - - 77 * + 96 * 72 AS col0
----
532224

query II rowsort
SELECT - 38 + + + 16 * + 72 AS col2, 65 AS col0
----
1114
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT ALL + - CAST( 4 AS SIGNED ) * - ( + ( + 74 ) ) - - COUNT( * ) AS col0
----
297

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + - CAST ( 4 AS INTEGER ) * - ( + ( + 74 ) ) - - COUNT ( * ) AS col0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT - 51 + + - 73 + 16 DIV + 9 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-7863
SELECT - 51 + + - 73 + 16 / + 9 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + 21 * + - 31 + MAX( + + 50 ) + 35 AS col1
----
-566

skipif mysql # not compatible
query I rowsort label-7864
SELECT + 21 * + - 31 + MAX ( + + 50 ) + 35 AS col1
----
-566

query I rowsort
SELECT DISTINCT - ( - ( - 55 ) )
----
-55

query I rowsort
SELECT ALL + 0 - + 27 - 51
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + - ( COUNT( * ) ) - MAX( DISTINCT - - 24 ) * + COUNT( 40 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7867
SELECT + - ( COUNT ( * ) ) - MAX ( DISTINCT - - 24 ) * + COUNT ( 40 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT + SUM( DISTINCT + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + SUM ( DISTINCT + 9 ) AS col1
----
9

query I rowsort
SELECT ( + ( - 36 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + ( - NULLIF ( + 82, + COUNT( * ) + 38 + + NULLIF ( 5, 71 * 83 ) * + - ( + + NULLIF ( 97, + 41 ) ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7870
SELECT + ( - NULLIF ( + 82, + COUNT ( * ) + 38 + + NULLIF ( 5, 71 * 83 ) * + - ( + + NULLIF ( 97, + 41 ) ) ) )
----
-82

query I rowsort
SELECT - 57 + 30
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + MIN( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-7872
SELECT + MIN ( ALL + 89 )
----
89

query I rowsort
SELECT 52 * 16 + + 45
----
877

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + 39 - + COUNT( + 64 )
----
38

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 39 - + COUNT ( + 64 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT 74 * - 86 * + 96 * COUNT( * ) AS col1
----
-610944

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT 74 * - 86 * + 96 * COUNT ( * ) AS col1
----
-610944

query II rowsort
SELECT ALL + 97, + 44 AS col2
----
97
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT 17 * + 76 + + 47 - - - CAST( NULL AS SIGNED ) + + 27 * - ( 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT 17 * + 76 + + 47 - - - CAST ( NULL AS INTEGER ) + + 27 * - ( 9 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 68 * + 95
----
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT 34 * COUNT( + 92 ) + - 69 * + MIN( ALL - + 57 ) AS col0
----
3967

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT 34 * COUNT ( + 92 ) + - 69 * + MIN ( ALL - + 57 ) AS col0
----
3967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT + ( 14 ) * + 89 * + CAST( NULL AS SIGNED ) + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT + ( 14 ) * + 89 * + CAST ( NULL AS INTEGER ) + - 36 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL COUNT( * ) * CAST( - + 79 AS SIGNED ) * - + 79 + - + 63 + - 49
----
6129

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL COUNT ( * ) * CAST ( - + 79 AS INTEGER ) * - + 79 + - + 63 + - 49
----
6129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7882
SELECT CASE + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN 16 - - NULLIF ( - NULLIF ( + + CASE + - 13 WHEN + + 11 THEN NULL ELSE + 13 + COUNT( * ) / 13 + CAST( + 29 AS SIGNED ) END, 26 ), 60 ) THEN - - 52 WHEN + CASE - 36 WHEN - 63 * 89 THEN - + 29 + - - 92 WHEN + 76 * - - 8 * 64 THEN NULL ELSE + 59 END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT CASE + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) WHEN 16 - - NULLIF ( - NULLIF ( + + CASE + - 13 WHEN + + 11 THEN NULL ELSE + 13 + COUNT ( * ) / 13 + CAST ( + 29 AS INTEGER ) END, 26 ), 60 ) THEN - - 52 WHEN + CASE - 36 WHEN - 63 * 89 THEN - + 29 + - - 92 WHEN + 76 * - - 8 * 64 THEN NULL ELSE + 59 END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ( - - COUNT( * ) ) * + - COUNT( * ) + + 42
----
41

skipif mysql # not compatible
query I rowsort label-7883
SELECT ( - - COUNT ( * ) ) * + - COUNT ( * ) + + 42
----
41

query I rowsort
SELECT - 67 * - 49 * ( + 5 ) AS col2
----
16415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL - - 9 * + 92 + 14 + - 85 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - - 9 * + 92 + 14 + - 85 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT ALL - - COUNT( * ) * 41 + - 84 AS col0, - 2
----
-43
-2

skipif mysql # not compatible
query II rowsort label-7886
SELECT ALL - - COUNT ( * ) * 41 + - 84 AS col0, - 2
----
-43
-2

query I rowsort
SELECT DISTINCT + 3 * - + 20 * 9 AS col1
----
-540

query I rowsort
SELECT - 69 + - 43 AS col1
----
-112

query I rowsort
SELECT DISTINCT - - 8 * + 83
----
664

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + - 89 + - - COUNT( * ) * + - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7890
SELECT + - 89 + - - COUNT ( * ) * + - COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT - - 84 + + + CASE + 59 WHEN COUNT( * ) THEN NULL ELSE 70 DIV + 72 + - - 79 END
----
163

skipif mysql # not compatible
query I rowsort label-7891
SELECT - - 84 + + + CASE + 59 WHEN COUNT ( * ) THEN NULL ELSE 70 / + 72 + - - 79 END
----
163

query I rowsort
SELECT - 96 * + 14 AS col1
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7893
SELECT ALL 47 AS col1, - 80 + - CAST( NULL AS SIGNED ) * + 90 - + - 91 AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL 47 AS col1, - 80 + - CAST ( NULL AS INTEGER ) * + 90 - + - 91 AS col2
----
47
NULL

query I rowsort
SELECT - + 9 + - + 15 + + 67 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT 70, 61 - + ( + NULLIF ( COUNT( DISTINCT - 11 ), - ( 47 ) ) ) col0
----
70
60

skipif mysql # not compatible
query II rowsort label-7895
SELECT 70, 61 - + ( + NULLIF ( COUNT ( DISTINCT - 11 ), - ( 47 ) ) ) col0
----
70
60

query I rowsort
SELECT ALL COALESCE ( + - 63, - 79 )
----
-63

query I rowsort
SELECT - 58 + - 16 AS col2
----
-74

query I rowsort
SELECT - + 65 * + 21 + + 78 col2
----
-1287

query I rowsort
SELECT ALL - 38 * 68 * - 67 AS col2
----
173128

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - SUM( DISTINCT 41 ) + + 7
----
-34

skipif mysql # not compatible
query I rowsort label-7900
SELECT - SUM ( DISTINCT 41 ) + + 7
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 41 * + COUNT( * ) * 99 - + ( 88 ) AS col1
----
3971

skipif mysql # not compatible
query I rowsort label-7901
SELECT 41 * + COUNT ( * ) * 99 - + ( 88 ) AS col1
----
3971

onlyif mysql # DIV for integer division: 
query II rowsort label-7902
SELECT 62 DIV - - 55 AS col2, + 56
----
1
56

skipif mysql # not compatible
query II rowsort label-7902
SELECT 62 / - - 55 AS col2, + 56
----
1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT 43 * + - 93, 79 * - COUNT( DISTINCT - + 63 ) + COUNT( * ) AS col2
----
-3999
-78

skipif mysql # not compatible
query II rowsort label-7903
SELECT 43 * + - 93, 79 * - COUNT ( DISTINCT - + 63 ) + COUNT ( * ) AS col2
----
-3999
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT + 2 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT + 2 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL - COUNT( * ) * - ( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - COUNT ( * ) * - ( - 51 )
----
-51

query I rowsort
SELECT DISTINCT + 40 + - + 38 * - 14
----
572

query I rowsort
SELECT ALL - 85 + - 57 - - - 85
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT COUNT( * ) * - CASE - - 81 WHEN - + 87 THEN - 79 * + 99 * 69 WHEN - CASE + + CAST( 4 AS SIGNED ) WHEN - + 61 THEN 79 WHEN 59 + + - 56 / - + 27 THEN - - AVG ( - 50 ) ELSE NULL END THEN NULL END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT COUNT ( * ) * - CASE - - 81 WHEN - + 87 THEN - 79 * + 99 * 69 WHEN - CASE + + CAST ( 4 AS INTEGER ) WHEN - + 61 THEN 79 WHEN 59 + + - 56 / - + 27 THEN - - AVG ( - 50 ) ELSE NULL END THEN NULL END - - COUNT ( * )
----
NULL

query I rowsort
SELECT 12 + 52 * - 66 AS col0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT 73 + + SUM( - 56 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT 73 + + SUM ( - 56 ) AS col2
----
17

query I rowsort
SELECT ALL 8 + ( + 99 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT 38 - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7912
SELECT 38 - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT ALL + 74 - 80 AS col0
----
-6

query I rowsort
SELECT + + COALESCE ( 87, + - 59 ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT + 93 DIV + + 75
----
1

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 93 / + + 75
----
1

query I rowsort
SELECT - COALESCE ( - 78, - + 27 ) col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT DISTINCT + COUNT( * ) - + CAST( NULL AS SIGNED ) + COUNT( * ) * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 44 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 48, - 11, 10 ) * 1 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL - - 30 * COUNT( * ) * - + ( 98 ) + 99
----
-2841

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - - 30 * COUNT ( * ) * - + ( 98 ) + 99
----
-2841

query I rowsort
SELECT COALESCE ( - + 63, 80 + - 84 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT ALL - 97 * 1 + 69 * + 51 + - - 95 * COUNT( * ) + - NULLIF ( + + COUNT( * ), - 38 + + ( + + CAST( + + 68 AS SIGNED ) ) + - 41 * + 46 + + - 87 * - CAST( NULL AS SIGNED ) ) + + + 53 * + COUNT( * ) * 46 + - 70
----
5884

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - 97 * 1 + 69 * + 51 + - - 95 * COUNT ( * ) + - NULLIF ( + + COUNT ( * ), - 38 + + ( + + CAST ( + + 68 AS INTEGER ) ) + - 41 * + 46 + + - 87 * - CAST ( NULL AS INTEGER ) ) + + + 53 * + COUNT ( * ) * 46 + - 70
----
5884

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ( - 45 ) * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7922
SELECT ( - 45 ) * - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + 36 + + MAX( 38 ) + SUM( DISTINCT + - 6 )
----
68

skipif mysql # not compatible
query I rowsort label-7923
SELECT + 36 + + MAX ( 38 ) + SUM ( DISTINCT + - 6 )
----
68

query I rowsort
SELECT ALL COALESCE ( 68, + - 31 * + 86 ) + - 23 - + 7 + - 10 - - ( 50 ) * 67 col0
----
3378

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT DISTINCT + 44 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + 44 / + 31
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT 81 + + - 81 DIV + - 32
----
83

skipif mysql # not compatible
query I rowsort label-7926
SELECT 81 + + - 81 / + - 32
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT COUNT( * ) col2, 25 * + + 42 AS col1
----
1
1050

skipif mysql # not compatible
query II rowsort label-7927
SELECT COUNT ( * ) col2, 25 * + + 42 AS col1
----
1
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT 71 + + 71 + - NULLIF ( - 28, - - CASE - + COUNT( ALL + 80 ) WHEN + + 95 THEN - 6 - + 84 WHEN + - 34 THEN NULL END ) * 88
----
2606

skipif mysql # not compatible
query I rowsort label-7928
SELECT 71 + + 71 + - NULLIF ( - 28, - - CASE - + COUNT ( ALL + 80 ) WHEN + + 95 THEN - 6 - + 84 WHEN + - 34 THEN NULL END ) * 88
----
2606

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT - 95 DIV + + 91 - ( - - 55 ) DIV 54 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7929
SELECT - 95 / + + 91 - ( - - 55 ) / 54 AS col1
----
-2

query I rowsort
SELECT 16 + - 88
----
-72

query I rowsort
SELECT ALL - 81 * - 48 * 33
----
128304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7932
SELECT ALL + 27 + + COALESCE ( + 0, + - MIN( ALL + + 70 ), - - 2 ) AS col2, CAST( NULL AS SIGNED ) + - - 36 + - - ( + + 3 ) * - 9 * COUNT( * )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-7932
SELECT ALL + 27 + + COALESCE ( + 0, + - MIN ( ALL + + 70 ), - - 2 ) AS col2, CAST ( NULL AS INTEGER ) + - - 36 + - - ( + + 3 ) * - 9 * COUNT ( * )
----
27
NULL

query I rowsort
SELECT DISTINCT - 63 * - 58
----
3654

query I rowsort
SELECT COALESCE ( + ( - CASE 48 WHEN - 37 THEN 10 WHEN CASE - 66 WHEN - 45 + + ( 82 ) THEN AVG ( ALL - 40 ) END * COALESCE ( 3, - 96 - - 78, 99 / 51 ) THEN ( - 78 ) ELSE NULL END ), - 14 * 69, + 88 + 45 ) + - 39 AS col1
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT - MAX( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT - MAX ( 15 )
----
-15

query I rowsort
SELECT 96 * + ( 71 * + 92 )
----
627072

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT 82 * 91 + - COUNT( * ) AS col1
----
7461

skipif mysql # not compatible
query I rowsort label-7937
SELECT 82 * 91 + - COUNT ( * ) AS col1
----
7461

query I rowsort
SELECT 11 + COALESCE ( + 28, + ( + 53 ) + - ( + 35 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT CASE + MAX( + 37 ) WHEN 14 THEN NULL WHEN ( MAX( DISTINCT + 68 ) ) - - 34 * 69 THEN NULL ELSE + 32 * 5 END + MIN( ALL + 97 ) * - 53 AS col1
----
-4981

skipif mysql # not compatible
query I rowsort label-7939
SELECT CASE + MAX ( + 37 ) WHEN 14 THEN NULL WHEN ( MAX ( DISTINCT + 68 ) ) - - 34 * 69 THEN NULL ELSE + 32 * 5 END + MIN ( ALL + 97 ) * - 53 AS col1
----
-4981

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL COALESCE ( - 80, + COUNT( * ) * SUM( + 49 ) + + 90 * + 1 ) * 3
----
-240

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL COALESCE ( - 80, + COUNT ( * ) * SUM ( + 49 ) + + 90 * + 1 ) * 3
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT ALL + 19 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + 19 / 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT COUNT( * ) + + 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7942
SELECT COUNT ( * ) + + 82 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT ( + MAX( ALL - 39 ) ) * CASE + 38 + - 67 WHEN COUNT( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT ( + MAX ( ALL - 39 ) ) * CASE + 38 + - 67 WHEN COUNT ( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN ( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 41, 37 + - 70 )
----
41

query I rowsort
SELECT ALL + ( 20 ) * - 8 col1
----
-160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7946
SELECT - 74 * - 82 + COUNT( * ) / + ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 74 * - 82 + COUNT ( * ) / + ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL 59 * CASE + CASE - 41 WHEN NULLIF ( - 59, + COUNT( * ) / 29 ) + + 0 THEN NULL ELSE COALESCE ( + 92, + CAST( 97 AS SIGNED ), + MAX( DISTINCT 47 ) ) END / + 96 WHEN - 12 + + CAST( SUM( 19 ) AS SIGNED ) THEN NULL WHEN 8 * - 10 - + MIN( + 18 ) * 9 THEN NULL WHEN + ( - MAX( DISTINCT - 66 ) ) THEN NULL ELSE 42 END
----
2478

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 59 * CASE + CASE - 41 WHEN NULLIF ( - 59, + COUNT ( * ) / 29 ) + + 0 THEN NULL ELSE COALESCE ( + 92, + CAST ( 97 AS INTEGER ), + MAX ( DISTINCT 47 ) ) END / + 96 WHEN - 12 + + CAST ( SUM ( 19 ) AS INTEGER ) THEN NULL WHEN 8 * - 10 - + MIN ( + 18 ) * 9 THEN NULL WHEN + ( - MAX ( DISTINCT - 66 ) ) THEN NULL ELSE 42 END
----
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - 65 * + SUM( + 49 )
----
-3185

skipif mysql # not compatible
query I rowsort label-7948
SELECT - 65 * + SUM ( + 49 )
----
-3185

query I rowsort
SELECT + 88 + 41 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + MAX( + 38 ) * 76 col1
----
2888

skipif mysql # not compatible
query I rowsort label-7950
SELECT + MAX ( + 38 ) * 76 col1
----
2888

query I rowsort
SELECT + ( + 67 ) + 34
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT - COALESCE ( - 1, + 48 DIV - 72 + 43 * + 24, - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7952
SELECT - COALESCE ( - 1, + 48 / - 72 + 43 * + 24, - 80 )
----
1

query I rowsort
SELECT + 35 * - 34 AS col2
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + COUNT( * ) + 91 col0
----
92

skipif mysql # not compatible
query I rowsort label-7954
SELECT + COUNT ( * ) + 91 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL 46 + + COUNT( 13 ) * 40
----
86

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 46 + + COUNT ( 13 ) * 40
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT ALL CAST( NULL AS SIGNED ) + ( + 62 ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 62 ) * - 33
----
NULL

query I rowsort
SELECT - COALESCE ( - 81, 57, + 23 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT ALL - MIN( ALL - CAST( 69 AS SIGNED ) ) + 72
----
141

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - MIN ( ALL - CAST ( 69 AS INTEGER ) ) + 72
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT + COUNT( * ) + + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7959
SELECT + COUNT ( * ) + + 3 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL 10 + 11 DIV 98
----
10

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL 10 + 11 / 98
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + MAX( 78 ) * 20
----
1560

skipif mysql # not compatible
query I rowsort label-7961
SELECT + MAX ( 78 ) * 20
----
1560

query I rowsort
SELECT - COALESCE ( + 30, 7 )
----
-30

query I rowsort
SELECT - 28 * + 27 + + 92
----
-664

query I rowsort
SELECT ALL - 7 * 19 + 90
----
-43

query I rowsort
SELECT + ( - 99 ) * 51
----
-5049

query I rowsort
SELECT ALL 44 * + 42 AS col2
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT ALL + ( - 54 ) DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL + ( - 54 ) / - 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT - 91 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT - 91 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - 3 * - 10 + 59 * CASE + 16 WHEN + ( 0 ) THEN COALESCE ( 45, - 33, 38 + - 68 ) + 29 WHEN MAX( - 66 ) THEN NULL ELSE - 49 END
----
-2861

skipif mysql # not compatible
query I rowsort label-7969
SELECT - 3 * - 10 + 59 * CASE + 16 WHEN + ( 0 ) THEN COALESCE ( 45, - 33, 38 + - 68 ) + 29 WHEN MAX ( - 66 ) THEN NULL ELSE - 49 END
----
-2861

query I rowsort
SELECT DISTINCT + 77 * ( + 82 ) AS col2
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL + SUM( 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL + SUM ( 60 ) col2
----
60

query I rowsort
SELECT + 66 - - 29 * 34
----
1052

query I rowsort
SELECT - ( - 2 ) * - 44 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT - 56 * COALESCE ( 24 - 99, + 94, 19 DIV - 28 ) + NULLIF ( 3, 56 * - 98 ) * 74 AS col0
----
4422

skipif mysql # not compatible
query I rowsort label-7974
SELECT - 56 * COALESCE ( 24 - 99, + 94, 19 / - 28 ) + NULLIF ( 3, 56 * - 98 ) * 74 AS col0
----
4422

query I rowsort
SELECT - 49 * 72
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT - - CASE + MAX( + 8 ) WHEN - COALESCE ( + COALESCE ( 38, 88 ), + 70, + 66 + 91 ) * - COALESCE ( + SUM( ( + 44 ) ), + ( + 98 ), - 95 ) THEN NULL WHEN 64 * + 22 + 79 THEN NULL ELSE + 67 END + - MIN( - COALESCE ( + 66, 28 ) + + 13 ) * + 91 AS col0
----
4890

skipif mysql # not compatible
query I rowsort label-7976
SELECT - - CASE + MAX ( + 8 ) WHEN - COALESCE ( + COALESCE ( 38, 88 ), + 70, + 66 + 91 ) * - COALESCE ( + SUM ( ( + 44 ) ), + ( + 98 ), - 95 ) THEN NULL WHEN 64 * + 22 + 79 THEN NULL ELSE + 67 END + - MIN ( - COALESCE ( + 66, 28 ) + + 13 ) * + 91 AS col0
----
4890

query I rowsort
SELECT DISTINCT + + 89 * 65 AS col1
----
5785

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT + SUM( 79 ) * ( + 82 * + 11 )
----
71258

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + SUM ( 79 ) * ( + 82 * + 11 )
----
71258

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + + COUNT( * ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + + COUNT ( * ) * - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT MIN( 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7980
SELECT MIN ( 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT - COUNT( ALL - 8 ) * 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7981
SELECT - COUNT ( ALL - 8 ) * 90 AS col0
----
-90

query I rowsort
SELECT NULLIF ( 41, 77 + - 54 / + 62 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - MIN( ALL 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - MIN ( ALL 25 ) AS col2
----
-25

query I rowsort
SELECT - 18 * 2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT 66 + COUNT( * ) col0
----
67

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT 66 + COUNT ( * ) col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT + - 5 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + - 5 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + CASE COUNT( + 90 ) WHEN COUNT( * ) THEN NULL WHEN - 52 + + 75 THEN NULL ELSE + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT + CASE COUNT ( + 90 ) WHEN COUNT ( * ) THEN NULL WHEN - 52 + + 75 THEN NULL ELSE + 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL MAX( ALL + 61 ) + 97 * - 62
----
-5953

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL MAX ( ALL + 61 ) + 97 * - 62
----
-5953

query I rowsort
SELECT ALL + 53 + - 73 AS col0
----
-20

query I rowsort
SELECT DISTINCT + 44 * 10 AS col1
----
440

query I rowsort
SELECT DISTINCT 4 * + 14
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL 63 + 22 + + ( MIN( DISTINCT + 39 ) ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL 63 + 22 + + ( MIN ( DISTINCT + 39 ) ) AS col2
----
124

query I rowsort
SELECT - 69 + + COALESCE ( + 45, + 83 * + 98 )
----
-24

query I rowsort
SELECT + 75 - + - 69 - ( 85 ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - COUNT( * ) + + + SUM( 52 )
----
51

skipif mysql # not compatible
query I rowsort label-7995
SELECT - COUNT ( * ) + + + SUM ( 52 )
----
51

query I rowsort
SELECT + 51 * - - 83 AS col1
----
4233

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT + 27 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7997
SELECT + 27 / 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + ( + 85 ) + 57 * COUNT( * ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-7998
SELECT + ( + 85 ) + 57 * COUNT ( * ) AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT 62 - + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT 62 - + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT + 91 + - - 35 - 13 AS col1
----
113

query I rowsort
SELECT ALL 97 - + 42 + ( 11 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + ( MAX( DISTINCT 4 ) ) * - 88 AS col1
----
-352

skipif mysql # not compatible
query I rowsort label-8002
SELECT + ( MAX ( DISTINCT 4 ) ) * - 88 AS col1
----
-352

query I rowsort
SELECT + 85 * - - 75 AS col2
----
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT NULLIF ( - - MIN( 51 ), - 13 / - 53 ) / + NULLIF ( + COUNT( * ) * - 98, - 36 / - 2 + - 14 ) + CASE 62 WHEN + 83 THEN NULL WHEN ( - 36 ) THEN NULL WHEN ( 64 ) THEN 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT NULLIF ( - - MIN ( 51 ), - 13 / - 53 ) / + NULLIF ( + COUNT ( * ) * - 98, - 36 / - 2 + - 14 ) + CASE 62 WHEN + 83 THEN NULL WHEN ( - 36 ) THEN NULL WHEN ( 64 ) THEN 14 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + MIN( - 77 ) + - 68
----
-145

skipif mysql # not compatible
query I rowsort label-8005
SELECT + MIN ( - 77 ) + - 68
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8006
SELECT - 7 DIV + - 76 * ( - MAX( + ( 99 ) ) ) + 80 * 89
----
7120

skipif mysql # not compatible
query I rowsort label-8006
SELECT - 7 / + - 76 * ( - MAX ( + ( 99 ) ) ) + 80 * 89
----
7120

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL + 37 * - + COUNT( * ) - 48
----
-85

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + 37 * - + COUNT ( * ) - 48
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + + 31 * + - 57 + COUNT( * )
----
-1766

skipif mysql # not compatible
query I rowsort label-8008
SELECT + + 31 * + - 57 + COUNT ( * )
----
-1766

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - + 26 * - - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8009
SELECT - + 26 * - - COUNT ( * )
----
-26

query I rowsort
SELECT - - 67 + - 38
----
29

query I rowsort
SELECT ALL + 93 * - 44 - 66
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT 24 * NULLIF ( CASE COUNT( * ) WHEN 4 THEN - 27 + 96 END, - 91 ) * 36 + ( - ( - 50 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT 24 * NULLIF ( CASE COUNT ( * ) WHEN 4 THEN - 27 + 96 END, - 91 ) * 36 + ( - ( - 50 ) ) col2
----
NULL

query I rowsort
SELECT + 13 + + + 51 + 14
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT - + ( + CASE + AVG ( ALL + 54 ) WHEN 84 - - 42 THEN NULL WHEN CAST( 64 AS SIGNED ) THEN CASE ( + 21 ) WHEN 68 - + 66 * 84 THEN COALESCE ( + COUNT( * ), 94 * 61 ) * 29 WHEN - 83 THEN NULL END WHEN - 79 * 7 THEN MIN( DISTINCT - 55 ) / + 68 WHEN 19 * + 67 + ( 32 ) THEN + 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - + ( + CASE + AVG ( ALL + 54 ) WHEN 84 - - 42 THEN NULL WHEN CAST ( 64 AS INTEGER ) THEN CASE ( + 21 ) WHEN 68 - + 66 * 84 THEN COALESCE ( + COUNT ( * ), 94 * 61 ) * 29 WHEN - 83 THEN NULL END WHEN - 79 * 7 THEN MIN ( DISTINCT - 55 ) / + 68 WHEN 19 * + 67 + ( 32 ) THEN + 54 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT ALL 92 + + 51 DIV ( - 86 )
----
92

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL 92 + + 51 / ( - 86 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT - 36 DIV ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT - 36 / ( 82 )
----
0

query I rowsort
SELECT 64 * + + 5 col2
----
320

query I rowsort
SELECT - 63 * - - 81 AS col0
----
-5103

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - 60 * + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - 60 * + COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT + COUNT( * ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-8020
SELECT + COUNT ( * ) + 39
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT + 72 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 72 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT SUM( DISTINCT - + 13 ) + + 58 * + 89 AS col2
----
5149

skipif mysql # not compatible
query I rowsort label-8022
SELECT SUM ( DISTINCT - + 13 ) + + 58 * + 89 AS col2
----
5149

query I rowsort
SELECT ALL + 69 + ( 48 ) col1
----
117

query I rowsort
SELECT 72 + 77 + 53 AS col0
----
202

query I rowsort
SELECT DISTINCT + 58 + + - 53 + 20
----
25

query I rowsort
SELECT ALL - COALESCE ( - - 72, 86, - 20, 56 ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8027
SELECT - 38 + + + CASE + ( ( AVG ( - CAST( NULL AS DECIMAL ) ) ) ) WHEN 98 * COUNT( * ) THEN NULLIF ( ( 86 ), + 34 ) * - 39 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 38 + + + CASE + ( ( AVG ( - CAST ( NULL AS REAL ) ) ) ) WHEN 98 * COUNT ( * ) THEN NULLIF ( ( 86 ), + 34 ) * - 39 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT + CAST( NULL AS SIGNED ) * - 54 + 92 + + COUNT( * ) * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT + CAST ( NULL AS INTEGER ) * - 54 + 92 + + COUNT ( * ) * 22 AS col2
----
NULL

query I rowsort
SELECT ALL + 58 + + 11 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT 52 * - MIN( ALL + 22 ) * ( 53 * 84 + 49 ) AS col1
----
-5149144

skipif mysql # not compatible
query I rowsort label-8030
SELECT 52 * - MIN ( ALL + 22 ) * ( 53 * 84 + 49 ) AS col1
----
-5149144

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT - 42 AS col0, - ( + SUM( - 4 ) )
----
-42
4

skipif mysql # not compatible
query II rowsort label-8031
SELECT - 42 AS col0, - ( + SUM ( - 4 ) )
----
-42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT 90 + COALESCE ( - 97, MIN( 63 ) ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-8032
SELECT 90 + COALESCE ( - 97, MIN ( 63 ) ) col2
----
-7

query II rowsort
SELECT ALL 44, + 8 AS col2
----
44
8

query I rowsort
SELECT 97 + - + 9
----
88

query I rowsort
SELECT 6 + + CASE + 44 WHEN 17 THEN + 91 ELSE NULL END - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL - 22 - 72 * - CASE 61 WHEN + 50 / ( + 52 ) THEN - MIN( ALL - 25 ) * COUNT( * ) + - 57 WHEN COUNT( * ) * + ( - 73 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - 22 - 72 * - CASE 61 WHEN + 50 / ( + 52 ) THEN - MIN ( ALL - 25 ) * COUNT ( * ) + - 57 WHEN COUNT ( * ) * + ( - 73 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8037
SELECT 26 AS col0, CAST( NULL AS SIGNED ) + - 27 / 34 AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8037
SELECT 26 AS col0, CAST ( NULL AS INTEGER ) + - 27 / 34 AS col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT COUNT( * ) + - + 14 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8038
SELECT COUNT ( * ) + - + 14 AS col2
----
-13

query I rowsort
SELECT DISTINCT - 40 - 65
----
-105

query I rowsort
SELECT 90 * + 78 AS col2
----
7020

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 96 DIV 75 * ( 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8041
SELECT 96 / 75 * ( 7 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL - 22 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL - 22 / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT - 4 * - COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT - 4 * - COUNT ( * ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - MAX( ALL - 76 ) * COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - MAX ( ALL - 76 ) * COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT 86 - 74 * 25 / 2 - SUM( ALL - CASE - 33 WHEN + 49 THEN 88 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT 86 - 74 * 25 / 2 - SUM ( ALL - CASE - 33 WHEN + 49 THEN 88 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT 22 / - - CASE + COUNT( * ) WHEN 24 * SUM( - 42 ) THEN SUM( 53 ) + - 4 * - 20 END / - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT 22 / - - CASE + COUNT ( * ) WHEN 24 * SUM ( - 42 ) THEN SUM ( 53 ) + - 4 * - 20 END / - 87 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 27 AS col0, 99 * + - 9 AS col1
----
27
-891

query I rowsort
SELECT 5 * ( - - ( - 17 ) ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT 12 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT 12 / + 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT 50 AS col2, COUNT( * ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-8050
SELECT 50 AS col2, COUNT ( * ) AS col2
----
50
1

query II rowsort
SELECT 13, - ( 18 ) AS col0
----
13
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8052
SELECT ALL - - 54, - MAX( + - 48 ) DIV + 64 - - 48 * - MIN( - 24 DIV 87 ) AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-8052
SELECT ALL - - 54, - MAX ( + - 48 ) / + 64 - - 48 * - MIN ( - 24 / 87 ) AS col0
----
54
0

query I rowsort
SELECT DISTINCT + 47 + 32 AS col2
----
79

query II rowsort
SELECT + - 7 AS col0, 46 + + + 33 + + 73
----
-7
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL 37 * 1 + + + MAX( DISTINCT - 39 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 37 * 1 + + + MAX ( DISTINCT - 39 ) AS col2
----
-2

query I rowsort
SELECT 38 * 62
----
2356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT DISTINCT - ( - 55 ) + + - COALESCE ( COUNT( * ), - 72 * - 29 + 56, - CAST( + 74 AS SIGNED ) * 55 + - COUNT( * ) ) + 74 * 34 AS col2
----
2570

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - ( - 55 ) + + - COALESCE ( COUNT ( * ), - 72 * - 29 + 56, - CAST ( + 74 AS INTEGER ) * 55 + - COUNT ( * ) ) + 74 * 34 AS col2
----
2570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ( + + ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 94 + - 52 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT CASE WHEN ( - 89 ) NOT BETWEEN ( - COALESCE ( 30, + COUNT( * ) * COUNT( * ) ) ) AND ( + CAST( + 12 AS SIGNED ) ) THEN - 50 ELSE NULL END * 99 + - 44
----
-4994

skipif mysql # not compatible
query I rowsort label-8060
SELECT CASE WHEN ( - 89 ) NOT BETWEEN ( - COALESCE ( 30, + COUNT ( * ) * COUNT ( * ) ) ) AND ( + CAST ( + 12 AS INTEGER ) ) THEN - 50 ELSE NULL END * 99 + - 44
----
-4994

query I rowsort
SELECT ALL - 64 * + + 7
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8062
SELECT COUNT( * ) * + CASE + 77 WHEN CASE - COALESCE ( CASE CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN SUM( DISTINCT - 69 ) * 79 THEN NULL WHEN + COUNT( * ) THEN - COUNT( * ) / 42 + + CAST( NULL AS SIGNED ) WHEN 16 * 3 THEN NULL END, 34 + CAST( - 1 - - 48 / + 73 AS SIGNED ) * 66, 6 ) WHEN 8 THEN - 41 * - 61 - + 88 WHEN - 44 THEN NULL ELSE NULL END * COALESCE ( + CAST( 49 AS DECIMAL ), ( + ( COUNT( * ) ) ) * COUNT( * ) ) + - 90 THEN NULL WHEN 52 + CAST( CAST( + ( + ( 13 ) ) AS SIGNED ) AS SIGNED ) * + 58 THEN NULL ELSE 14 + 35 END * - 24 - - ( 65 ) * - 37 AS col2
----
-3581

skipif mysql # not compatible
query I rowsort label-8062
SELECT COUNT ( * ) * + CASE + 77 WHEN CASE - COALESCE ( CASE CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN SUM ( DISTINCT - 69 ) * 79 THEN NULL WHEN + COUNT ( * ) THEN - COUNT ( * ) / 42 + + CAST ( NULL AS INTEGER ) WHEN 16 * 3 THEN NULL END, 34 + CAST ( - 1 - - 48 / + 73 AS INTEGER ) * 66, 6 ) WHEN 8 THEN - 41 * - 61 - + 88 WHEN - 44 THEN NULL ELSE NULL END * COALESCE ( + CAST ( 49 AS REAL ), ( + ( COUNT ( * ) ) ) * COUNT ( * ) ) + - 90 THEN NULL WHEN 52 + CAST ( CAST ( + ( + ( 13 ) ) AS INTEGER ) AS INTEGER ) * + 58 THEN NULL ELSE 14 + 35 END * - 24 - - ( 65 ) * - 37 AS col2
----
-3581

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT 7 + + COUNT( * ) + + + 79 * + 6 * 73
----
34610

skipif mysql # not compatible
query I rowsort label-8063
SELECT 7 + + COUNT ( * ) + + + 79 * + 6 * 73
----
34610

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - 20 + + + 64 + + - MIN( ALL - 48 ) + - 72 / CASE + 13 WHEN - 19 * 92 THEN - 66 WHEN + 11 * + 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 20 + + + 64 + + - MIN ( ALL - 48 ) + - 72 / CASE + 13 WHEN - 19 * 92 THEN - 66 WHEN + 11 * + 58 THEN NULL END
----
NULL

query I rowsort
SELECT ALL ( 23 ) + - + 80 + - 99 * 33
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT - COUNT( * ) * + + 98
----
-98

skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( * ) * + + 98
----
-98

query I rowsort
SELECT DISTINCT + ( + - NULLIF ( - 93, 98 ) ) + + 26
----
119

query I rowsort
SELECT 60 * 23 + 77 - + 46 AS col0
----
1411

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT ALL - + COUNT( * ) DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - + COUNT ( * ) / - + 36
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT 32 * + 7 + + 76 * CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT 32 * + 7 + + 76 * CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + 18, 10 AS col2
----
18
10

query I rowsort
SELECT DISTINCT 22 - - 62
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT MAX( DISTINCT 91 ) + - - 81 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-8073
SELECT MAX ( DISTINCT 91 ) + - - 81 AS col2
----
172

query II rowsort
SELECT 0 * + 20, 20 AS col0
----
0
20

query I rowsort
SELECT ALL - 99 * + 4 AS col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - COUNT( 40 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8076
SELECT - COUNT ( 40 ) col0
----
-1

query I rowsort
SELECT DISTINCT 86 - - 51 + - 58
----
79

query I rowsort
SELECT 90 * - 1 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL SUM( + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL SUM ( + 96 ) AS col0
----
96

query I rowsort
SELECT 96 - ( 89 )
----
7

query I rowsort
SELECT 99 * + - 54 AS col1
----
-5346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8082
SELECT ALL 80 * - CAST( NULL AS SIGNED ) col1, COUNT( * ) + 40 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL 80 * - CAST ( NULL AS INTEGER ) col1, COUNT ( * ) + 40 AS col2
----
NULL
41

query I rowsort
SELECT ( 77 ) + - - 3 * + + 24
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT 96 + - - 2 * - 77 DIV - 12 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8084
SELECT 96 + - - 2 * - 77 / - 12 AS col0
----
108

query I rowsort
SELECT 31 - - - 30
----
1

query I rowsort
SELECT 5 + + 96 AS col2
----
101

query I rowsort
SELECT 15 + - 81
----
-66

query I rowsort
SELECT ALL - 1 + - - 46 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - MIN( + + 83 ) + + + 91 * - 17 AS col0
----
-1630

skipif mysql # not compatible
query I rowsort label-8089
SELECT - MIN ( + + 83 ) + + + 91 * - 17 AS col0
----
-1630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8090
SELECT DISTINCT + 18 + + + 80 - + 28 + - COUNT( * ) + 44 * 70 * ( 41 ) DIV 59 AS col0
----
2209

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT + 18 + + + 80 - + 28 + - COUNT ( * ) + 44 * 70 * ( 41 ) / 59 AS col0
----
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT - ( + COUNT( * ) ) * - 64 + - 16 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - ( + COUNT ( * ) ) * - 64 + - 16 AS col1
----
48

query I rowsort
SELECT ALL + + COALESCE ( + 90, + 74, + 16, + 16 * 56 ) * 33 + 40
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT - ( - 67 ) * - 64 * + - MAX( + 3 ) AS col0
----
12864

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - ( - 67 ) * - 64 * + - MAX ( + 3 ) AS col0
----
12864

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT + + 99 * + 26 * ( + + 11 ) * + 3 + - ( - 87 + 97 DIV 42 ) AS col1
----
85027

skipif mysql # not compatible
query I rowsort label-8094
SELECT + + 99 * + 26 * ( + + 11 ) * + 3 + - ( - 87 + 97 / 42 ) AS col1
----
85027

query I rowsort
SELECT DISTINCT + 66 * 70 + - 63 + + + 74 AS col0
----
4631

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT 24 DIV + ( - + 99 ) + + - 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8096
SELECT 24 / + ( - + 99 ) + + - 49 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT DISTINCT + NULLIF ( + 70, COALESCE ( + - 50, CAST( NULL AS SIGNED ) + - NULLIF ( 51, CASE 22 WHEN 48 THEN NULL ELSE 4 END ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + NULLIF ( + 70, COALESCE ( + - 50, CAST ( NULL AS INTEGER ) + - NULLIF ( 51, CASE 22 WHEN 48 THEN NULL ELSE 4 END ) ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT 27 * + CASE + COUNT( * ) WHEN 31 THEN NULL WHEN - 38 THEN - 77 END + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT 27 * + CASE + COUNT ( * ) WHEN 31 THEN NULL WHEN - 38 THEN - 77 END + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT ALL - CASE + - CAST( - COUNT( * ) AS SIGNED ) WHEN - + 64 THEN - ( + NULLIF ( - 54, 8 * COUNT( * ) ) ) END * + NULLIF ( NULLIF ( COUNT( * ), - 71 * + ( - 68 ) ) + 19, + 65 ) + - 37 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - CASE + - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - + 64 THEN - ( + NULLIF ( - 54, 8 * COUNT ( * ) ) ) END * + NULLIF ( NULLIF ( COUNT ( * ), - 71 * + ( - 68 ) ) + 19, + 65 ) + - 37 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT + + NULLIF ( + 37, - ( - 66 ) - + ( - ( - MIN( DISTINCT - 53 ) ) ) * 35 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + + NULLIF ( + 37, - ( - 66 ) - + ( - ( - MIN ( DISTINCT - 53 ) ) ) * 35 ) AS col0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8101
SELECT DISTINCT AVG ( 31 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT AVG ( 31 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 51 * - + 29 - + - 8
----
-1471

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT - + 3 * + - 10 AS col2, ( COUNT( * ) )
----
30
1

skipif mysql # not compatible
query II rowsort label-8103
SELECT - + 3 * + - 10 AS col2, ( COUNT ( * ) )
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT 86 * - + MIN( DISTINCT 18 ) + + - 52 + 14
----
-1586

skipif mysql # not compatible
query I rowsort label-8104
SELECT 86 * - + MIN ( DISTINCT 18 ) + + - 52 + 14
----
-1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT 13 * - COUNT( * ) * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT 13 * - COUNT ( * ) * + COUNT ( * )
----
-13

query I rowsort
SELECT + 19 * + 67 + + ( - 99 ) + - - 94
----
1268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT + 52 - - CASE - CAST( NULL AS SIGNED ) WHEN 61 THEN + 27 * - 28 WHEN 58 + COUNT( * ) THEN COUNT( * ) * 4 - + COUNT( * ) / + 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT + 52 - - CASE - CAST ( NULL AS INTEGER ) WHEN 61 THEN + 27 * - 28 WHEN 58 + COUNT ( * ) THEN COUNT ( * ) * 4 - + COUNT ( * ) / + 71 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + COUNT( * ) * - - 10
----
10

skipif mysql # not compatible
query I rowsort label-8108
SELECT + COUNT ( * ) * - - 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8109
SELECT DISTINCT + 19 AS col1, COUNT( * ) * - COALESCE ( 30, COUNT( * ) * 20 + ( - 88 ) ) * 94
----
19
-2820

skipif mysql # not compatible
query II rowsort label-8109
SELECT DISTINCT + 19 AS col1, COUNT ( * ) * - COALESCE ( 30, COUNT ( * ) * 20 + ( - 88 ) ) * 94
----
19
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + 92 + MAX( DISTINCT 73 ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 92 + MAX ( DISTINCT 73 ) AS col1
----
165

query II rowsort
SELECT ALL 54, 16 * 40 AS col0
----
54
640

query I rowsort
SELECT - 44 * 94
----
-4136

query I rowsort
SELECT + ( - 60 ) * 63 AS col2
----
-3780

query I rowsort
SELECT - 62 + + - 87 AS col2
----
-149

query I rowsort
SELECT - ( + ( + - 61 ) ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - 38 + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 38 + COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - ( COUNT( DISTINCT - 21 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8117
SELECT - ( COUNT ( DISTINCT - 21 ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8118
SELECT + 8 DIV - ( + 83 ), - 14 col2
----
0
-14

skipif mysql # not compatible
query II rowsort label-8118
SELECT + 8 / - ( + 83 ), - 14 col2
----
0
-14

query I rowsort
SELECT ALL + 33 + - 22 + - 15 + - 8 * + 17 * - 94
----
12780

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL 90 + COUNT( - - 26 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL 90 + COUNT ( - - 26 ) col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT DISTINCT 25 + + SUM( + + 12 ) AS col1, - 2 AS col1
----
37
-2

skipif mysql # not compatible
query II rowsort label-8121
SELECT DISTINCT 25 + + SUM ( + + 12 ) AS col1, - 2 AS col1
----
37
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT - + CAST( NULL AS SIGNED ) * MAX( - - 7 ) / - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT - + CAST ( NULL AS INTEGER ) * MAX ( - - 7 ) / - 57 AS col2
----
NULL

query I rowsort
SELECT ALL - - 13 + - 41 + 81
----
53

query I rowsort
SELECT + ( 88 ) - + + 10
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT - COALESCE ( - 66, + - 71 * NULLIF ( + 85, - 46 + - ( 57 + + COUNT( * ) * 27 ) ) + 69, - CASE WHEN 38 IS NULL THEN 20 END ) * - 51
----
-3366

skipif mysql # not compatible
query I rowsort label-8125
SELECT - COALESCE ( - 66, + - 71 * NULLIF ( + 85, - 46 + - ( 57 + + COUNT ( * ) * 27 ) ) + 69, - CASE WHEN 38 IS NULL THEN 20 END ) * - 51
----
-3366

query I rowsort
SELECT - 16 * - 16 AS col2
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT DISTINCT + 69 DIV + + 15 + + 60
----
64

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + 69 / + + 15 + + 60
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL CAST( NULL AS SIGNED ) / + - 82 + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL CAST ( NULL AS INTEGER ) / + - 82 + + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT - - CAST( ( + COUNT( * ) ) AS SIGNED ) - + 15 - - - CAST( + 75 AS SIGNED ) + SUM( - 17 + + 52 ) * 97
----
3306

skipif mysql # not compatible
query I rowsort label-8129
SELECT - - CAST ( ( + COUNT ( * ) ) AS INTEGER ) - + 15 - - - CAST ( + 75 AS INTEGER ) + SUM ( - 17 + + 52 ) * 97
----
3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT ALL + 82 * 80 + + - 83 + 34 + - 59 DIV - 15 DIV COUNT( * ) AS col2
----
6514

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + 82 * 80 + + - 83 + 34 + - 59 / - 15 / COUNT ( * ) AS col2
----
6514

query I rowsort
SELECT - 91 + + + COALESCE ( - - 41, + + 17, + + 72 ) + 28
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8132
SELECT + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8132
SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT ALL COUNT( * ) DIV + 61 - - + 11 + - 80 * + 52 AS col0
----
-4149

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL COUNT ( * ) / + 61 - - + 11 + - 80 * + 52 AS col0
----
-4149

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - 18 * COUNT( * ) * 40 AS col0
----
-720

skipif mysql # not compatible
query I rowsort label-8134
SELECT - 18 * COUNT ( * ) * 40 AS col0
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL + + 20 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + + 20 * - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT - COALESCE ( + CAST( - 56 AS SIGNED ), + 76 )
----
56

skipif mysql # not compatible
query I rowsort label-8136
SELECT - COALESCE ( + CAST ( - 56 AS INTEGER ), + 76 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + - COUNT( * ) + ( + + MIN( DISTINCT - 58 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8137
SELECT + - COUNT ( * ) + ( + + MIN ( DISTINCT - 58 ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8138
SELECT + 45 DIV + 96 + - + COUNT( * ) * 14 * - + CAST( + 69 AS SIGNED )
----
966

skipif mysql # not compatible
query I rowsort label-8138
SELECT + 45 / + 96 + - + COUNT ( * ) * 14 * - + CAST ( + 69 AS INTEGER )
----
966

query II rowsort
SELECT ALL + 55 AS col0, - 92 AS col0
----
55
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - SUM( ALL 49 ) * + ( + NULLIF ( 83, + 3 * - 8 ) )
----
-4067

skipif mysql # not compatible
query I rowsort label-8140
SELECT - SUM ( ALL 49 ) * + ( + NULLIF ( 83, + 3 * - 8 ) )
----
-4067

query I rowsort
SELECT + COALESCE ( ( + 70 ), - ( - + 91 ), - 26 )
----
70

query II rowsort
SELECT ALL + 70 AS col2, 41 AS col1
----
70
41

query I rowsort
SELECT NULLIF ( + - 44, + 82 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL + 10 * - + 93 + 12 + - 17 * + COUNT( * )
----
-935

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + 10 * - + 93 + 12 + - 17 * + COUNT ( * )
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 56 - + COUNT( * ) - - ( + ( - 52 ) )
----
-109

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 56 - + COUNT ( * ) - - ( + ( - 52 ) )
----
-109

query I rowsort
SELECT ALL COALESCE ( + 60, + + 27 ) * + 4 AS col0
----
240

query I rowsort
SELECT + 38 * + 89 * - 25 AS col2
----
-84550

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - ( ( + NULLIF ( - MIN( + + 53 ), - 77 * + COUNT( * ) ) ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8148
SELECT - ( ( + NULLIF ( - MIN ( + + 53 ), - 77 * + COUNT ( * ) ) ) ) AS col2
----
53

query I rowsort
SELECT ALL 20 + - 86 + - 47 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT 21 - + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8150
SELECT 21 - + + COUNT ( * )
----
20

query II rowsort
SELECT DISTINCT 20 AS col0, + 58 * + - 58 + + 22 AS col1
----
20
-3342

query I rowsort
SELECT DISTINCT 49 + 72
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT ALL 73 + - 88 - + COUNT( * ) * + 48 + + 96
----
33

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL 73 + - 88 - + COUNT ( * ) * + 48 + + 96
----
33

query I rowsort
SELECT ALL 84 + + - 32 AS col2
----
52

query II rowsort
SELECT DISTINCT 81 AS col2, - 94 * + - 13 * + + ( 98 ) + - 18 AS col1
----
81
119738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8156
SELECT CAST( - 90 AS SIGNED ) DIV - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8156
SELECT CAST ( - 90 AS INTEGER ) / - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT COALESCE ( - 64, - - MAX( DISTINCT - 71 ) ) + + 57 * - 36
----
-2116

skipif mysql # not compatible
query I rowsort label-8157
SELECT COALESCE ( - 64, - - MAX ( DISTINCT - 71 ) ) + + 57 * - 36
----
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL COUNT( * ) + 72 * 93 * 3 AS col0
----
20089

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL COUNT ( * ) + 72 * 93 * 3 AS col0
----
20089

query I rowsort
SELECT COALESCE ( + 99, - + 38 ) - 58 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT ALL 61 DIV + 40 + SUM( - 28 ) + - 8 DIV - - 78 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL 61 / + 40 + SUM ( - 28 ) + - 8 / - - 78 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT - 30 + 35 DIV + 75 + + ( - - 82 ) * + - 86
----
-7082

skipif mysql # not compatible
query I rowsort label-8161
SELECT - 30 + 35 / + 75 + + ( - - 82 ) * + - 86
----
-7082

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8162
SELECT ALL + 77 * + 75 AS col1, - CASE WHEN NOT NULL NOT IN ( AVG ( DISTINCT - - 40 ) ) THEN + 10 ELSE - ( + 83 ) * MIN( 27 DIV 81 ) + - 19 END * - 34 + 59 AS col2
----
5775
-587

skipif mysql # not compatible
query II rowsort label-8162
SELECT ALL + 77 * + 75 AS col1, - CASE WHEN NOT NULL NOT IN ( AVG ( DISTINCT - - 40 ) ) THEN + 10 ELSE - ( + 83 ) * MIN ( 27 / 81 ) + - 19 END * - 34 + 59 AS col2
----
5775
-587

query I rowsort
SELECT + COALESCE ( - 90, + 37 * 65 + 78 + + - 67 ) * - 35 AS col1
----
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT DISTINCT + 66 DIV + + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT + 66 / + + 65 AS col0
----
1

query I rowsort
SELECT ALL + ( + + 33 ) - + 57 + - 18 AS col0
----
-42

query I rowsort
SELECT ALL - 33 * 75 * 20 * - ( 97 )
----
4801500

query I rowsort
SELECT + 80 + 46
----
126

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 95, + - 57 / + - 41 ) ) AS col2
----
-95

query II rowsort
SELECT + 97 AS col2, 98 AS col2
----
97
98

query I rowsort
SELECT ALL - + 72 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT + 55 * + + CASE - 46 WHEN 21 THEN NULL WHEN ( COUNT( * ) ) / - SUM( ALL + 24 ) - SUM( DISTINCT - 38 ) THEN ( 62 ) WHEN + 3 THEN 91 WHEN COUNT( * ) THEN NULL ELSE 53 END AS col0
----
2915

skipif mysql # not compatible
query I rowsort label-8171
SELECT + 55 * + + CASE - 46 WHEN 21 THEN NULL WHEN ( COUNT ( * ) ) / - SUM ( ALL + 24 ) - SUM ( DISTINCT - 38 ) THEN ( 62 ) WHEN + 3 THEN 91 WHEN COUNT ( * ) THEN NULL ELSE 53 END AS col0
----
2915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT + CAST( NULL AS SIGNED ) + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT + CAST ( NULL AS INTEGER ) + 15 AS col2
----
NULL

query II rowsort
SELECT - 20 col2, 88 AS col0
----
-20
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ( + - MIN( 66 ) ) * - + ( 38 ) - + ( 78 ) + + 27 * 29 col2
----
3213

skipif mysql # not compatible
query I rowsort label-8174
SELECT ( + - MIN ( 66 ) ) * - + ( 38 ) - + ( 78 ) + + 27 * 29 col2
----
3213

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL - COUNT( 72 ) AS col2, - 86
----
-1
-86

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL - COUNT ( 72 ) AS col2, - 86
----
-1
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT DISTINCT + COUNT( DISTINCT - ( + 91 ) ) + - ( + COALESCE ( + 72, - - COUNT( * ), 58 DIV COUNT( * ) ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + COUNT ( DISTINCT - ( + 91 ) ) + - ( + COALESCE ( + 72, - - COUNT ( * ), 58 / COUNT ( * ) ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + 77 * + ( 98 ) * - + ( + - COUNT( * ) ) * + 75 AS col1
----
565950

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + 77 * + ( 98 ) * - + ( + - COUNT ( * ) ) * + 75 AS col1
----
565950

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 86 + - - SUM( 25 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-8178
SELECT 86 + - - SUM ( 25 ) AS col0
----
111

query I rowsort
SELECT 31 - + 12
----
19

query I rowsort
SELECT 5 * - - 91 + + 48 AS col0
----
503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT 69 * - 97 + 3 DIV - - 39 DIV NULLIF ( - COUNT( * ), 88 * - 89 + SUM( DISTINCT + 80 ) * + 73 ) + - 77 AS col2
----
-6770

skipif mysql # not compatible
query I rowsort label-8181
SELECT 69 * - 97 + 3 / - - 39 / NULLIF ( - COUNT ( * ), 88 * - 89 + SUM ( DISTINCT + 80 ) * + 73 ) + - 77 AS col2
----
-6770

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL - COUNT( * ) + - - 60 + - 44 * 93 * + COUNT( * ) * MAX( DISTINCT - + 70 ) * 26
----
7447499

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - COUNT ( * ) + - - 60 + - 44 * 93 * + COUNT ( * ) * MAX ( DISTINCT - + 70 ) * 26
----
7447499

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL + 5 + - 74 DIV - - 10
----
-2

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 5 + - 74 / - - 10
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT + SUM( DISTINCT + 9 ) + - + MAX( ALL + 48 ) * - CAST( NULL AS SIGNED ) * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + SUM ( DISTINCT + 9 ) + - + MAX ( ALL + 48 ) * - CAST ( NULL AS INTEGER ) * - - 96
----
NULL

query I rowsort
SELECT ALL - 33 + + ( + - ( 31 ) ) AS col0
----
-64

query I rowsort
SELECT - 28 * + 50 + - 57 AS col1
----
-1457

query I rowsort
SELECT ALL + ( COALESCE ( + - 91, 66 * 71 + 87 ) ) + 79 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL CAST( NULL AS SIGNED ) * 44 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL CAST ( NULL AS INTEGER ) * 44 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT COUNT( * ) * SUM( ALL + 83 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-8189
SELECT COUNT ( * ) * SUM ( ALL + 83 ) col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8190
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + 48 AS col1, COUNT( * ) * COALESCE ( - - CASE - 6 WHEN + ( 54 ) THEN 67 * 57 + ( 51 ) END, - 19, 10 DIV MIN( ALL 51 ) + + NULLIF ( - 99, + ( + 0 ) * 98 + 49 ) ) * 82 + - 36 col1
----
NULL
-1594

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT CAST ( NULL AS REAL ) * - + 48 AS col1, COUNT ( * ) * COALESCE ( - - CASE - 6 WHEN + ( 54 ) THEN 67 * 57 + ( 51 ) END, - 19, 10 / MIN ( ALL 51 ) + + NULLIF ( - 99, + ( + 0 ) * 98 + 49 ) ) * 82 + - 36 col1
----
NULL
-1594

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL - 48 * + COUNT( * ) * 97 * - - COUNT( * ) * 81 AS col2
----
-377136

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - 48 * + COUNT ( * ) * 97 * - - COUNT ( * ) * 81 AS col2
----
-377136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8192
SELECT CAST( + COUNT( * ) AS SIGNED ) col2, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-8192
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col2, 73
----
1
73

query I rowsort
SELECT - ( + NULLIF ( + 1, + 14 ) ) * 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT SUM( ALL + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT SUM ( ALL + + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT + 4 * - COALESCE ( - + 19, + 91 * + + 22 + - ( 0 ) + + 30, - 71 + MAX( 20 ) ) * - 70 + 86 AS col1
----
-5234

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + 4 * - COALESCE ( - + 19, + 91 * + + 22 + - ( 0 ) + + 30, - 71 + MAX ( 20 ) ) * - 70 + 86 AS col1
----
-5234

query I rowsort
SELECT 10 - - + ( + 61 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - + COUNT( ALL 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-8197
SELECT - + COUNT ( ALL 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - CASE + 51 WHEN + 91 THEN 3 * - - ( 47 ) + - - 74 + 65 * - 49 WHEN + 98 THEN NULL ELSE 86 * COUNT( * ) - 83 * 35 END AS col0
----
2819

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - CASE + 51 WHEN + 91 THEN 3 * - - ( 47 ) + - - 74 + 65 * - 49 WHEN + 98 THEN NULL ELSE 86 * COUNT ( * ) - 83 * 35 END AS col0
----
2819

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL + 21 DIV + 29 * + + 42
----
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + 21 / + 29 * + + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT 87 * 54 * - + 57 + - COUNT( * ) + + + 79
----
-267708

skipif mysql # not compatible
query I rowsort label-8200
SELECT 87 * 54 * - + 57 + - COUNT ( * ) + + + 79
----
-267708

query II rowsort
SELECT - 53 * 23 * 27 AS col0, 89 * 41
----
-32913
3649

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT ALL - 60 DIV + + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - 60 / + + 49 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT ALL - 38 * - 62 AS col2, - 52 * + CASE - - COUNT( * ) WHEN 8 THEN 48 + + 23 END + SUM( DISTINCT 91 ) * - 98 col1
----
2356
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL - 38 * - 62 AS col2, - 52 * + CASE - - COUNT ( * ) WHEN 8 THEN 48 + + 23 END + SUM ( DISTINCT 91 ) * - 98 col1
----
2356
NULL

query II rowsort
SELECT ALL + + 91 * - - 19 AS col2, 14 AS col0
----
1729
14

query I rowsort
SELECT 56 * + 72 + 31
----
4063

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + NULLIF ( - MIN( DISTINCT ( - 79 ) ), + 44 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8206
SELECT + NULLIF ( - MIN ( DISTINCT ( - 79 ) ), + 44 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT COUNT( * ) * - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT COUNT ( * ) * - 41 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT COUNT( ALL - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-8208
SELECT COUNT ( ALL - 67 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8209
SELECT CAST( + - 22 AS DECIMAL ) * - 65 * + - CASE 97 WHEN - COUNT( * ) THEN + 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( + - 22 AS REAL ) * - 65 * + - CASE 97 WHEN - COUNT ( * ) THEN + 39 END AS col1
----
NULL

query I rowsort
SELECT 82 * + + 92 + + + 3 AS col1
----
7547

query I rowsort
SELECT 41 + + 87 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT DISTINCT - 6 * - - 42 + + COALESCE ( + MAX( ALL - 86 ), - 61 ) col2, - 96 col2
----
-338
-96

skipif mysql # not compatible
query II rowsort label-8212
SELECT DISTINCT - 6 * - - 42 + + COALESCE ( + MAX ( ALL - 86 ), - 61 ) col2, - 96 col2
----
-338
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + NULLIF ( - COUNT( DISTINCT 48 ), 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-8213
SELECT + NULLIF ( - COUNT ( DISTINCT 48 ), 72 )
----
-1

query I rowsort
SELECT ALL - 45 * + + 77 + + 6 + - 70
----
-3529

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT DISTINCT + 62 * + + 64 + + 31 AS col1, + CASE COUNT( * ) WHEN + 88 THEN NULL WHEN + - 12 * COUNT( + 29 ) + 27 THEN + 32 ELSE NULL END AS col1
----
3999
NULL

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT + 62 * + + 64 + + 31 AS col1, + CASE COUNT ( * ) WHEN + 88 THEN NULL WHEN + - 12 * COUNT ( + 29 ) + 27 THEN + 32 ELSE NULL END AS col1
----
3999
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT DISTINCT - COUNT( * ) * + CASE - 9 WHEN CAST( + 41 AS SIGNED ) THEN - + COALESCE ( + 60, - - 6 ) + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - COUNT ( * ) * + CASE - 9 WHEN CAST ( + 41 AS INTEGER ) THEN - + COALESCE ( + 60, - - 6 ) + 37 END
----
NULL

query I rowsort
SELECT ALL + 6 * - + 62 + 32
----
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8218
SELECT DISTINCT + 23 * - + 48 + + 0 AS col0, - 94 + 29 + + - COUNT( * ) - + + CASE + - COALESCE ( - COUNT( * ), + 0 + 72 * CAST( NULL AS SIGNED ) ) WHEN + 72 + - NULLIF ( 7, + NULLIF ( ( + 99 ), + ( CASE + 25 WHEN + COUNT( * ) THEN NULLIF ( - 82, ( 96 ) ) * + 57 END ) - - MAX( DISTINCT 85 + 79 ) * + 57 ) - 44 * - 3 ) THEN NULL ELSE - 73 + 3 END + - 16 DIV 85 * 40
----
-1104
4

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT + 23 * - + 48 + + 0 AS col0, - 94 + 29 + + - COUNT ( * ) - + + CASE + - COALESCE ( - COUNT ( * ), + 0 + 72 * CAST ( NULL AS INTEGER ) ) WHEN + 72 + - NULLIF ( 7, + NULLIF ( ( + 99 ), + ( CASE + 25 WHEN + COUNT ( * ) THEN NULLIF ( - 82, ( 96 ) ) * + 57 END ) - - MAX ( DISTINCT 85 + 79 ) * + 57 ) - 44 * - 3 ) THEN NULL ELSE - 73 + 3 END + - 16 / 85 * 40
----
-1104
4

query II rowsort
SELECT ALL + 69 AS col1, + 57 * + 89 AS col1
----
69
5073

query I rowsort
SELECT DISTINCT + 56 + + 29
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT DISTINCT - 1 + + - MIN( DISTINCT - + 40 ) DIV - 31 + - - 26
----
24

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT - 1 + + - MIN ( DISTINCT - + 40 ) / - 31 + - - 26
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT ALL + CASE + 9 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN 78 + - 31 THEN 92 * - 42 * - 19 + AVG ( + NULLIF ( 1, + 44 ) + 35 ) ELSE + CAST( + 63 AS SIGNED ) END AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + CASE + 9 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 78 + - 31 THEN 92 * - 42 * - 19 + AVG ( + NULLIF ( 1, + 44 ) + 35 ) ELSE + CAST ( + 63 AS INTEGER ) END AS col1
----
63

query I rowsort
SELECT + 26 * + 71
----
1846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT - 43 + - COUNT( * ) DIV COALESCE ( - 32, + 94 + + - NULLIF ( - 23, + COUNT( * ) ), - MAX( ALL + 54 ) - COUNT( * ) ) * 29 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 43 + - COUNT ( * ) / COALESCE ( - 32, + 94 + + - NULLIF ( - 23, + COUNT ( * ) ), - MAX ( ALL + 54 ) - COUNT ( * ) ) * 29 AS col2
----
-43

query I rowsort
SELECT DISTINCT - 2 * + 94 col1
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8226
SELECT 12 AS col0, COUNT( ALL - 47 ) DIV 49
----
12
0

skipif mysql # not compatible
query II rowsort label-8226
SELECT 12 AS col0, COUNT ( ALL - 47 ) / 49
----
12
0

query I rowsort
SELECT - 12 * - ( - + 20 ) - - 3 AS col1
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL - CASE + + COUNT( * ) WHEN - 86 + 12 / CAST( + 11 AS SIGNED ) THEN - COUNT( * ) * + 91 * + 27 + + 4 WHEN 70 THEN NULL END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - CASE + + COUNT ( * ) WHEN - 86 + 12 / CAST ( + 11 AS INTEGER ) THEN - COUNT ( * ) * + 91 * + 27 + + 4 WHEN 70 THEN NULL END * 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT + 42 AS col1, 36 * - 82 * - COUNT( * ) AS col2
----
42
2952

skipif mysql # not compatible
query II rowsort label-8229
SELECT + 42 AS col1, 36 * - 82 * - COUNT ( * ) AS col2
----
42
2952

query I rowsort
SELECT + - 6 * + COALESCE ( - + 38, + + 78 * 87, + 4 + 73 ) * + - 13 * - 89 + + 75 - - 86
----
263957

query I rowsort
SELECT ALL + - 2 - - - 37 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - - 5 + + + 30 + 82 * 63 * - COUNT( * ) * - 67 - 69 * - 18 + 10
----
347409

skipif mysql # not compatible
query I rowsort label-8232
SELECT - - 5 + + + 30 + 82 * 63 * - COUNT ( * ) * - 67 - 69 * - 18 + 10
----
347409

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT - COUNT( ALL - 87 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8233
SELECT - COUNT ( ALL - 87 ) col0
----
-1

query I rowsort
SELECT - + 19 + 51
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + - 14 * - MIN( + 41 ) * 3 AS col0
----
1722

skipif mysql # not compatible
query I rowsort label-8235
SELECT + - 14 * - MIN ( + 41 ) * 3 AS col0
----
1722

query II rowsort
SELECT - NULLIF ( - + 36, - 5 ) AS col0, 4
----
36
4

query I rowsort
SELECT - - 45 + + 20
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + MAX( - 76 ) - + 53 + + 43
----
-86

skipif mysql # not compatible
query I rowsort label-8238
SELECT + MAX ( - 76 ) - + 53 + + 43
----
-86

query I rowsort
SELECT - + 70 + + 27
----
-43

query I rowsort
SELECT ALL 68 * - 13 AS col1
----
-884

query I rowsort
SELECT - 37 * - 32
----
1184

query I rowsort
SELECT ALL - 48 * 50
----
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT DISTINCT + ( - 43 ) + 15 DIV 36 + + - 88 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT + ( - 43 ) + 15 / 36 + + - 88 AS col2
----
-131

query I rowsort
SELECT DISTINCT - + 84 * + 12
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL 95 + - MIN( 73 )
----
22

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 95 + - MIN ( 73 )
----
22

query I rowsort
SELECT ALL - 98 * ( + + 37 )
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT + + 72 + 67 + + 14 - + COUNT( * ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + + 72 + 67 + + 14 - + COUNT ( * ) AS col2
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT + + COUNT( * ) + - 50 * COUNT( * ) DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-8248
SELECT + + COUNT ( * ) + - 50 * COUNT ( * ) / + 66
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT ALL + - 73 DIV 80 * - 65 + + + 88 + - - 88 - 19 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + - 73 / 80 * - 65 + + + 88 + - - 88 - 19 AS col0
----
157

query II rowsort
SELECT ( + + 43 ) AS col0, 73
----
43
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT DISTINCT + 11 DIV + 3 + - 65 * + + 7
----
-452

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + 11 / + 3 + - 65 * + + 7
----
-452

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ( CASE + 13 WHEN + - MAX( - + 36 ) THEN - COUNT( * ) * + - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ( CASE + 13 WHEN + - MAX ( - + 36 ) THEN - COUNT ( * ) * + - COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT + ( + + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + ( + + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + 98 + - + COUNT( * ) col0
----
97

skipif mysql # not compatible
query I rowsort label-8254
SELECT + 98 + - + COUNT ( * ) col0
----
97

query I rowsort
SELECT ( + ( + 87 ) )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT ALL 15 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL 15 / - 67 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT ALL - 12 * - CASE + 5 WHEN + 45 THEN NULL WHEN + COALESCE ( - 45, - 71 - - 91, 60 * - CAST( NULL AS SIGNED ) ) THEN 79 END + 47 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 12 * - CASE + 5 WHEN + 45 THEN NULL WHEN + COALESCE ( - 45, - 71 - - 91, 60 * - CAST ( NULL AS INTEGER ) ) THEN 79 END + 47 * + 12
----
NULL

query I rowsort
SELECT ALL 97 * - 38 AS col0
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT 5 * + - 3 + 49 * - MIN( - 72 ) AS col2
----
3513

skipif mysql # not compatible
query I rowsort label-8259
SELECT 5 * + - 3 + 49 * - MIN ( - 72 ) AS col2
----
3513

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8260
SELECT DISTINCT 15 * - 41 AS col2, 30 DIV + - MAX( ALL + 90 ) AS col1
----
-615
0

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT 15 * - 41 AS col2, 30 / + - MAX ( ALL + 90 ) AS col1
----
-615
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - MAX( 5 ) * - 20 + + - 95 col0
----
5

skipif mysql # not compatible
query I rowsort label-8261
SELECT - MAX ( 5 ) * - 20 + + - 95 col0
----
5

query II rowsort
SELECT + 38 * + - 89, + 53 * ( + 80 ) * + + 44 AS col0
----
-3382
186560

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT + NULLIF ( 75, + MIN( ALL 94 ) ) AS col2, ( + MAX( ALL - 43 ) ) AS col1
----
75
-43

skipif mysql # not compatible
query II rowsort label-8263
SELECT + NULLIF ( 75, + MIN ( ALL 94 ) ) AS col2, ( + MAX ( ALL - 43 ) ) AS col1
----
75
-43

query I rowsort
SELECT + 67 + + 9 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8265
SELECT + CASE + + CAST( NULL AS DECIMAL ) WHEN - 31 THEN NULL WHEN - + 1 THEN COALESCE ( 18, + - 37 + + 20 + 39 * + COUNT( * ) ) WHEN - 96 THEN NULL ELSE - 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-8265
SELECT + CASE + + CAST ( NULL AS REAL ) WHEN - 31 THEN NULL WHEN - + 1 THEN COALESCE ( 18, + - 37 + + 20 + 39 * + COUNT ( * ) ) WHEN - 96 THEN NULL ELSE - 49 END
----
-49

query I rowsort
SELECT - 20 * 24 + - 22 AS col0
----
-502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT - NULLIF ( + + 33, - + 68 * + CAST( NULL AS SIGNED ) + - 57 / 13 * - 9 ) - 27
----
-60

skipif mysql # not compatible
query I rowsort label-8267
SELECT - NULLIF ( + + 33, - + 68 * + CAST ( NULL AS INTEGER ) + - 57 / 13 * - 9 ) - 27
----
-60

query I rowsort
SELECT - 8 * - 13 * + + 91
----
9464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT 43 * 15 * + + 75 + - + 79 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT 43 * 15 * + + 75 + - + 79 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + COALESCE ( + 86, + 9 * + 54 ), - 35 * - + 71 AS col2
----
86
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL + NULLIF ( + - 29, - - COUNT( * ) + 20 * + 66 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + NULLIF ( + - 29, - - COUNT ( * ) + 20 * + 66 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT + COUNT( * ) * - MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT + COUNT ( * ) * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + 83 * 28 + - 24 + - + 89 + COUNT( * ) col2
----
2212

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 83 * 28 + - 24 + - + 89 + COUNT ( * ) col2
----
2212

query I rowsort
SELECT + - 65 * ( - 87 ) - - 50 AS col0
----
5705

query I rowsort
SELECT - - 60 + 52 * 93
----
4896

query I rowsort
SELECT - CASE + 72 WHEN - 75 THEN - + 37 * - - 10 * - 68 + + 77 ELSE 39 END
----
-39

query I rowsort
SELECT DISTINCT + 21 * 34
----
714

query I rowsort
SELECT - 13 * - 8
----
104

query I rowsort
SELECT - CASE WHEN NOT 21 IN ( 90 + + + 64 ) THEN - CASE ( - - 77 ) WHEN - - 16 * - 16 THEN NULL WHEN 46 * + ( 4 ) THEN 65 ELSE NULL END END + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT + SUM( + CASE + 37 WHEN - + 2 + + + 91 * + 3 THEN + - 26 ELSE NULL END ) + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + SUM ( + CASE + 37 WHEN - + 2 + + + 91 * + 3 THEN + - 26 ELSE NULL END ) + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL - COALESCE ( - ( - 31 ), COUNT( * ) ) + - + 33 - - 98
----
34

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - COALESCE ( - ( - 31 ), COUNT ( * ) ) + - + 33 - - 98
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL - + 82 * - + 69 * + + 80 * + 54 - CAST( + 8 AS SIGNED )
----
24442552

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - + 82 * - + 69 * + + 80 * + 54 - CAST ( + 8 AS INTEGER )
----
24442552

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL + - COUNT( * ) + + 49 * - + COALESCE ( + COUNT( * ), - 73 * - 60 )
----
-50

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + - COUNT ( * ) + + 49 * - + COALESCE ( + COUNT ( * ), - 73 * - 60 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - + COUNT( * ) * 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8284
SELECT - + COUNT ( * ) * 28 AS col1
----
-28

query I rowsort
SELECT DISTINCT + 11 + - CASE 29 WHEN - COALESCE ( 73, 65 ) * + + AVG ( 89 ) * - 42 + - 29 - + 81 THEN NULL ELSE + 0 END * + 55
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL + CASE - CAST( + 6 AS SIGNED ) WHEN + NULLIF ( + + 18, + COUNT( * ) ) THEN - 57 * - 65 - 62 ELSE + COUNT( * ) END + + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + CASE - CAST ( + 6 AS INTEGER ) WHEN + NULLIF ( + + 18, + COUNT ( * ) ) THEN - 57 * - 65 - 62 ELSE + COUNT ( * ) END + + 63 AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT - 15 - - - 34 + + 53 + 17 DIV + + 41
----
4

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 15 - - - 34 + + 53 + 17 / + + 41
----
4

query I rowsort
SELECT ALL - 46 * - 58 * - + 13
----
-34684

query I rowsort
SELECT ALL + NULLIF ( - 57, - 83 ) + + - NULLIF ( + 85, + 89 ) * - - 14
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT MAX( 99 ) * - 58 AS col2
----
-5742

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT MAX ( 99 ) * - 58 AS col2
----
-5742

query I rowsort
SELECT 25 * + 89 AS col2
----
2225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT - 79 / - - 96 * + ( + 59 ) - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT - 79 / - - 96 * + ( + 59 ) - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 15 * + - NULLIF ( + 8, + - 21 ) AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT ALL - 85 AS col1, ( 16 ) * + CAST( 28 AS SIGNED ) + - ( 97 ) + + CASE + 93 WHEN - 50 THEN + 66 WHEN + 14 THEN 92 END
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-8294
SELECT ALL - 85 AS col1, ( 16 ) * + CAST ( 28 AS INTEGER ) + - ( 97 ) + + CASE + 93 WHEN - 50 THEN + 66 WHEN + 14 THEN 92 END
----
-85
NULL

query II rowsort
SELECT + 12 AS col0, + 13 * - - ( - - 8 )
----
12
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT 55 - + 79 + + CAST( COUNT( * ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT 55 - + 79 + + CAST ( COUNT ( * ) AS INTEGER )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ALL 14 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 14 / - 67 AS col1
----
0

query I rowsort
SELECT ( - 32 ) + 86 AS col1
----
54

query II rowsort
SELECT + 23, ( + - 19 ) + - ( + 20 ) col1
----
23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL 67 * + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL 67 * + - COUNT ( * )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL CAST( 34 AS SIGNED ) / - CAST( NULL AS SIGNED ) + - + 26 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL CAST ( 34 AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - + 26 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 43 * + + 33 * - 38
----
-53922

query I rowsort
SELECT 69 + - - 75 AS col0
----
144

query II rowsort
SELECT ALL - 4 AS col0, + 53 AS col2
----
-4
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT - 16 * + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - 16 * + COUNT ( * )
----
-16

query I rowsort
SELECT ALL 87 * - + 19 + - 44
----
-1697

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT - 31 DIV + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 31 / + 37 AS col2
----
0

query I rowsort
SELECT 75 * - 63
----
-4725

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT + 71, + COUNT( DISTINCT + 5 ) + - + MAX( + + 77 ) + CASE - - CASE + - 35 WHEN - ( - + 10 ) + + CASE - 18 + + 14 WHEN + 91 THEN ( 42 ) + 99 WHEN 56 * + 36 + 66 THEN NULL ELSE NULL END * 75 THEN + 66 ELSE NULL END WHEN - 52 + 19 THEN ( CASE WHEN - 3 IS NOT NULL THEN 94 ELSE NULL END ) * 99 + - 6 * 38 END * - 8 AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8309
SELECT + 71, + COUNT ( DISTINCT + 5 ) + - + MAX ( + + 77 ) + CASE - - CASE + - 35 WHEN - ( - + 10 ) + + CASE - 18 + + 14 WHEN + 91 THEN ( 42 ) + 99 WHEN 56 * + 36 + 66 THEN NULL ELSE NULL END * 75 THEN + 66 ELSE NULL END WHEN - 52 + 19 THEN ( CASE WHEN - 3 IS NOT NULL THEN 94 ELSE NULL END ) * 99 + - 6 * 38 END * - 8 AS col0
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT 71 * + + MIN( 97 ) * + 93 AS col0
----
640491

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT 71 * + + MIN ( 97 ) * + 93 AS col0
----
640491

query I rowsort
SELECT ALL + - 59 + - 73
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT 31 - + + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8312
SELECT 31 - + + COUNT ( * ) AS col1
----
30

query I rowsort
SELECT ALL CASE - 39 WHEN - 53 * 77 THEN NULL WHEN - 38 * 8 THEN + + COALESCE ( + + 67, 17 * - 98 * + 43 + + 91 ) + - 69 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT ALL + - CAST( - 45 AS SIGNED ) + + 46 + 15 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL + - CAST ( - 45 AS INTEGER ) + + 46 + 15 AS col0
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8315
SELECT - CAST( NULL AS DECIMAL ) + - + 28 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT - CAST ( NULL AS REAL ) + - + 28 * + 42
----
NULL

query I rowsort
SELECT ALL 16 + - 16 - - 42 * + - 2 * 25 AS col1
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT NULLIF ( + 57, + COUNT( * ) + ( 19 ) * + - 87 / + 95 )
----
57

skipif mysql # not compatible
query I rowsort label-8317
SELECT NULLIF ( + 57, + COUNT ( * ) + ( 19 ) * + - 87 / + 95 )
----
57

query I rowsort
SELECT - 99 + 78
----
-21

query I rowsort
SELECT ALL + ( + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT COUNT( * ) + - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-8320
SELECT COUNT ( * ) + - + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT 25 * + 99 * COUNT( * ) AS col2
----
2475

skipif mysql # not compatible
query I rowsort label-8321
SELECT 25 * + 99 * COUNT ( * ) AS col2
----
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8322
SELECT DISTINCT 42 AS col2, CASE + - 0 WHEN - 59 THEN - + 97 WHEN + 85 * + SUM( DISTINCT - 20 ) / - 43 * COUNT( * ) + 83 + 82 * CAST( NULL AS SIGNED ) THEN - 4 + - 78 ELSE NULL END AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT 42 AS col2, CASE + - 0 WHEN - 59 THEN - + 97 WHEN + 85 * + SUM ( DISTINCT - 20 ) / - 43 * COUNT ( * ) + 83 + 82 * CAST ( NULL AS INTEGER ) THEN - 4 + - 78 ELSE NULL END AS col0
----
42
NULL

query I rowsort
SELECT 34 + + 45 + 2 * 14 * + 99 / - 53 / CASE 80 WHEN - 63 THEN 47 END col2
----
NULL

query II rowsort
SELECT DISTINCT 96 AS col2, 57 AS col2
----
96
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT + 60 DIV - - 12
----
5

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + 60 / - - 12
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - MAX( - 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - MAX ( - 77 ) AS col0
----
77

query II rowsort
SELECT DISTINCT - 92 col0, 55 AS col2
----
-92
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8328
SELECT - MIN( 0 ) DIV - 14 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8328
SELECT - MIN ( 0 ) / - 14 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT 40 + - 35 + COUNT( * ) * + 69 + + 45 * + CASE + - 69 WHEN - + ( - - 68 ) * + 2 THEN + 37 * 92 + 51 END * + 43 + - 28 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT 40 + - 35 + COUNT ( * ) * + 69 + + 45 * + CASE + - 69 WHEN - + ( - - 68 ) * + 2 THEN + 37 * 92 + 51 END * + 43 + - 28 * - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL - COUNT( + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - COUNT ( + 96 )
----
-1

query I rowsort
SELECT 49 * + - 16 AS col0
----
-784

query I rowsort
SELECT ALL + 79 * - 36 AS col0
----
-2844

query I rowsort
SELECT DISTINCT 26 * - - 26 AS col1
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT + SUM( + + 77 ) * - 94
----
-7238

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + SUM ( + + 77 ) * - 94
----
-7238

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT COUNT( * ) AS col0, MAX( + 51 ) AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-8335
SELECT COUNT ( * ) AS col0, MAX ( + 51 ) AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT + 83, COUNT( DISTINCT - 51 ) * - COUNT( * ) * - + 19 AS col0
----
83
19

skipif mysql # not compatible
query II rowsort label-8336
SELECT + 83, COUNT ( DISTINCT - 51 ) * - COUNT ( * ) * - + 19 AS col0
----
83
19

query I rowsort
SELECT + CASE + 45 WHEN + ( + 53 ) * + 99 THEN NULL WHEN + 42 THEN 14 END
----
NULL

query I rowsort
SELECT + 37 + - - 20 + NULLIF ( 22, - + 39 * 37 * 14 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT ALL ( NULLIF ( - 46, - NULLIF ( + 47, 53 / - COUNT( * ) * + 51 + 4 + - - 12 ) * + 21 + - COUNT( * ) * + 70 ) ) + - CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL ( NULLIF ( - 46, - NULLIF ( + 47, 53 / - COUNT ( * ) * + 51 + 4 + - - 12 ) * + 21 + - COUNT ( * ) * + 70 ) ) + - CAST ( NULL AS INTEGER ) * 80
----
NULL

query II rowsort
SELECT DISTINCT - 51 AS col2, + 32 AS col0
----
-51
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL 34 + + MIN( ALL - + 0 )
----
34

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 34 + + MIN ( ALL - + 0 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - 4 + COUNT( * ) + + 24
----
21

skipif mysql # not compatible
query I rowsort label-8342
SELECT - 4 + COUNT ( * ) + + 24
----
21

query I rowsort
SELECT + - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT ( - MIN( + 75 ) ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT ( - MIN ( + 75 ) ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL NULLIF ( + + 3, + COUNT( ALL - 24 ) ) + - + 25
----
-22

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL NULLIF ( + + 3, + COUNT ( ALL - 24 ) ) + - + 25
----
-22

query I rowsort
SELECT + 70 * + 8 AS col2
----
560

query I rowsort
SELECT ALL - 19 * - 27
----
513

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8348
SELECT ALL 50 - - - NULLIF ( 39, - CAST( NULL AS SIGNED ) ) + + - CAST( NULL AS SIGNED ) + - - 42, 5 DIV - ( 21 ) col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8348
SELECT ALL 50 - - - NULLIF ( 39, - CAST ( NULL AS INTEGER ) ) + + - CAST ( NULL AS INTEGER ) + - - 42, 5 / - ( 21 ) col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8349
SELECT ALL MIN( - - 30 ) * - - 83 + + ( 20 ) + 71 * 16 DIV - COUNT( * ) - + + 24 DIV - 82 AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL MIN ( - - 30 ) * - - 83 + + ( 20 ) + 71 * 16 / - COUNT ( * ) - + + 24 / - 82 AS col2
----
1374

query I rowsort
SELECT ALL + 83 * + - 64 AS col1
----
-5312

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + MIN( DISTINCT - 8 ) + + + 89 + - 58 + + COUNT( * ) * - + 73 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8351
SELECT + MIN ( DISTINCT - 8 ) + + + 89 + - 58 + + COUNT ( * ) * - + 73 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT - NULLIF ( - - MIN( + 75 ), 98 )
----
-75

skipif mysql # not compatible
query I rowsort label-8352
SELECT - NULLIF ( - - MIN ( + 75 ), 98 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( 92 ) / + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( 92 ) / + + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT - ( - 97 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT - ( - 97 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL 39 * + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL 39 * + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT + 3 - 59 + 7 * + - 81 * - 73 * + 83
----
3435397

query I rowsort
SELECT + 79 + + ( + 36 )
----
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8358
SELECT ALL 3 * - - CASE - - CASE - MIN( - - 30 ) WHEN - 88 THEN NULL WHEN NULLIF ( - 93, - 45 / + 39 ) THEN - 73 ELSE NULL END WHEN NULLIF ( - 12, + ( ( + NULLIF ( COALESCE ( 51, - 24 + ( + 92 ) / 45 ), 36 ) ) ) + CAST( - 8 + - 87 AS DECIMAL ) ) * + 48 THEN NULLIF ( - 44, - 87 * ( 40 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 3 * - - CASE - - CASE - MIN ( - - 30 ) WHEN - 88 THEN NULL WHEN NULLIF ( - 93, - 45 / + 39 ) THEN - 73 ELSE NULL END WHEN NULLIF ( - 12, + ( ( + NULLIF ( COALESCE ( 51, - 24 + ( + 92 ) / 45 ), 36 ) ) ) + CAST ( - 8 + - 87 AS REAL ) ) * + 48 THEN NULLIF ( - 44, - 87 * ( 40 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 1, 3 ) AS col0
----
1

query I rowsort
SELECT - ( - 18 ) * + 1
----
18

query I rowsort
SELECT - 65 * + COALESCE ( + 71, - ( - + 38 ), 94 + - 42 + - - 58 + + + 52 )
----
-4615

query I rowsort
SELECT ALL 67 * - 27 + 76 - 4 + 87 AS col1
----
-1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT + 39 * - NULLIF ( - 32, - - 64 * + 77 ) + COUNT( ALL + 16 ) * + - 58 DIV ( + 44 ) * 92 + - 4
----
1152

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + 39 * - NULLIF ( - 32, - - 64 * + 77 ) + COUNT ( ALL + 16 ) * + - 58 / ( + 44 ) * 92 + - 4
----
1152

query I rowsort
SELECT ALL 75 * 70 + 33 AS col0
----
5283

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL + COUNT( - + CASE - 88 WHEN 11 + ( + 5 ) THEN 23 END ) * + 12 + NULLIF ( - 44, ( + 57 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + COUNT ( - + CASE - 88 WHEN 11 + ( + 5 ) THEN 23 END ) * + 12 + NULLIF ( - 44, ( + 57 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 79 * + COUNT( * ) - - - 63 + + 63
----
79

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 79 * + COUNT ( * ) - - - 63 + + 63
----
79

query I rowsort
SELECT - NULLIF ( + 86, 7 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT + SUM( + ( 33 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8368
SELECT + SUM ( + ( 33 ) ) AS col1
----
33

query I rowsort
SELECT - 4 * + + 8
----
-32

query I rowsort
SELECT + 18 - - 16 AS col1
----
34

query I rowsort
SELECT + - 44 + - + ( - 67 ) + + 12 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT + COUNT( * ) + 8 * + 5 + + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-8372
SELECT + COUNT ( * ) + 8 * + 5 + + + COUNT ( * )
----
42

query II rowsort
SELECT ALL 86 AS col2, - 66 * 27 * 12
----
86
-21384

query I rowsort
SELECT - 51 * + 19 * + 49 col0
----
-47481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT CAST( - 62 AS SIGNED ) * 14 AS col2
----
-868

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT CAST ( - 62 AS INTEGER ) * 14 AS col2
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - 27 + + 30 + NULLIF ( + 55, 64 ) - - + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8376
SELECT - 27 + + 30 + NULLIF ( + 55, 64 ) - - + COUNT ( * ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT + 33 DIV - 72 * + + 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT + 33 / - 72 * + + 30 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT + COUNT( * ) + + 90 * + 86 AS col2, 2 - COUNT( * )
----
7741
1

skipif mysql # not compatible
query II rowsort label-8378
SELECT + COUNT ( * ) + + 90 * + 86 AS col2, 2 - COUNT ( * )
----
7741
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + COUNT( * ) * - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8379
SELECT + COUNT ( * ) * - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL 62 + - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL 62 + - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT + 73 + 42
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT ALL 44 + + + 74 * - + COUNT( * ), 31 * - - COUNT( * ) + ( - - COUNT( - 23 ) ) AS col2
----
-30
32

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL 44 + + + 74 * - + COUNT ( * ), 31 * - - COUNT ( * ) + ( - - COUNT ( - 23 ) ) AS col2
----
-30
32

query I rowsort
SELECT ALL 32 + 93 + - 94 + + NULLIF ( + 77, - 97 ) * + 80 * + CASE + 57 WHEN - 53 THEN - 62 * - 36 + + 81 END * - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8384
SELECT - NULLIF ( 82, + 34 ), ( - 45 ) + NULLIF ( + 94, + - 10 ) * - CAST( NULL AS SIGNED ) * - CASE - 12 WHEN + + 46 THEN NULL WHEN 90 THEN NULL ELSE 69 * + NULLIF ( - NULLIF ( ( 67 ), - 68 ), - CAST( NULL AS DECIMAL ) ) END AS col0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-8384
SELECT - NULLIF ( 82, + 34 ), ( - 45 ) + NULLIF ( + 94, + - 10 ) * - CAST ( NULL AS INTEGER ) * - CASE - 12 WHEN + + 46 THEN NULL WHEN 90 THEN NULL ELSE 69 * + NULLIF ( - NULLIF ( ( 67 ), - 68 ), - CAST ( NULL AS REAL ) ) END AS col0
----
-82
NULL

query II rowsort
SELECT 97, + 43 * - 28 * + 87 AS col0
----
97
-104748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT ALL 49 + + 0 + - 86 * AVG ( DISTINCT 24 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL 49 + + 0 + - 86 * AVG ( DISTINCT 24 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT COUNT( * ) * 22 + - - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT COUNT ( * ) * 22 + - - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 90 * + + 43
----
3870

query I rowsort
SELECT + 7 + - - 14
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8390
SELECT + 29 AS col1, 32 * + - COALESCE ( - 59, - 27 * - + 96, + 19 + + 8 DIV + ( - - 2 ) - - + 69 * - ( - 20 ) ) - - CAST( + NULLIF ( + 92, - AVG ( - 57 ) ) AS SIGNED )
----
29
1980

skipif mysql # not compatible
query II rowsort label-8390
SELECT + 29 AS col1, 32 * + - COALESCE ( - 59, - 27 * - + 96, + 19 + + 8 / + ( - - 2 ) - - + 69 * - ( - 20 ) ) - - CAST ( + NULLIF ( + 92, - AVG ( - 57 ) ) AS INTEGER )
----
29
1980

query I rowsort
SELECT + 77 * + + 11 + + 14
----
861

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT ALL + + 16 AS col1, MIN( - - 17 ) AS col0
----
16
17

skipif mysql # not compatible
query II rowsort label-8392
SELECT ALL + + 16 AS col1, MIN ( - - 17 ) AS col0
----
16
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + + COUNT( ALL 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + + COUNT ( ALL 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + ( - + 15 ) + + + 14 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8394
SELECT + ( - + 15 ) + + + 14 * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - - 0 + + 77 + - - 23 / + COUNT( * ) * 51 * - CASE + 57 WHEN + + COALESCE ( - + CASE + 28 WHEN + MAX( DISTINCT - 63 ) * - + 92 THEN + 18 + 56 / 74 WHEN 98 THEN NULL END, + 50 ) THEN + 95 WHEN + NULLIF ( + 99, COUNT( * ) ) + - 27 THEN - 81 WHEN + 93 + ( + 1 ) * + 36 THEN 10 END + - SUM( 79 + ( 32 + + 20 ) ) * - 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT - - 0 + + 77 + - - 23 / + COUNT ( * ) * 51 * - CASE + 57 WHEN + + COALESCE ( - + CASE + 28 WHEN + MAX ( DISTINCT - 63 ) * - + 92 THEN + 18 + 56 / 74 WHEN 98 THEN NULL END, + 50 ) THEN + 95 WHEN + NULLIF ( + 99, COUNT ( * ) ) + - 27 THEN - 81 WHEN + 93 + ( + 1 ) * + 36 THEN 10 END + - SUM ( 79 + ( 32 + + 20 ) ) * - 52 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT ALL + ( + + 30 ) DIV - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL + ( + + 30 ) / - 54 AS col2
----
0

query I rowsort
SELECT - 22 + + 46 * + 50 col1
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - 35 + + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 35 + + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT ALL - 3 - - + 41
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL - + NULLIF ( + 80, - COUNT( * ) + + - 8 )
----
-80

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - + NULLIF ( + 80, - COUNT ( * ) + + - 8 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - CASE + 24 WHEN COUNT( * ) / - + 4 + + - 57 THEN NULL WHEN + ( 38 ) THEN + NULLIF ( 15, - - 32 ) + - 78 + + - MIN( ALL + 5 ) + - 33 * 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - CASE + 24 WHEN COUNT ( * ) / - + 4 + + - 57 THEN NULL WHEN + ( 38 ) THEN + NULLIF ( 15, - - 32 ) + - 78 + + - MIN ( ALL + 5 ) + - 33 * 85 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + + COUNT( * ) - + 73 * + + 3 + - - 32, + 89 AS col0
----
-187
89

skipif mysql # not compatible
query II rowsort label-8402
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) - + 73 * + + 3 + - - 32, + 89 AS col0
----
-187
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL - MIN( DISTINCT 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - MIN ( DISTINCT 93 )
----
-93

query I rowsort
SELECT ALL - + ( + - 1 )
----
1

query I rowsort
SELECT + 59 * 12 * 74 * + + 18
----
943056

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT 98 * + + 16 + + COALESCE ( - NULLIF ( - - 75, + 17 + + 80 * - 23 ), - CASE + 70 WHEN + 75 THEN + 32 * - AVG ( + 27 ) + - 19 END ) + - 10 * + CASE COUNT( * ) * 61 + 46 / AVG ( DISTINCT 35 ) WHEN - 26 THEN NULL WHEN 46 THEN - 44 * NULLIF ( + MAX( DISTINCT + 4 ), 33 ) + 91 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT 98 * + + 16 + + COALESCE ( - NULLIF ( - - 75, + 17 + + 80 * - 23 ), - CASE + 70 WHEN + 75 THEN + 32 * - AVG ( + 27 ) + - 19 END ) + - 10 * + CASE COUNT ( * ) * 61 + 46 / AVG ( DISTINCT 35 ) WHEN - 26 THEN NULL WHEN 46 THEN - 44 * NULLIF ( + MAX ( DISTINCT + 4 ), 33 ) + 91 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT 50 * - + NULLIF ( + 77, CAST( - 89 AS SIGNED ) / - 39 ) AS col1
----
-3850

skipif mysql # not compatible
query I rowsort label-8407
SELECT 50 * - + NULLIF ( + 77, CAST ( - 89 AS INTEGER ) / - 39 ) AS col1
----
-3850

query I rowsort
SELECT 63 * - + 26 * 75
----
-122850

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT 34 * - MIN( ALL + 1 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8409
SELECT 34 * - MIN ( ALL + 1 ) AS col0
----
-34

query I rowsort
SELECT 69 + + 1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT 40 DIV + 62 DIV 42 * + + 26 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT 40 / + 62 / 42 * + + 26 * + 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT DISTINCT 50 DIV - ( + NULLIF ( + 90, - 97 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT 50 / - ( + NULLIF ( + 90, - 97 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT 9 + - 30 DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT 9 + - 30 / + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL 44 + - + ( + COUNT( * ) ) * - 17
----
61

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL 44 + - + ( + COUNT ( * ) ) * - 17
----
61

query I rowsort
SELECT DISTINCT + 39 * + + 38
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT MAX( DISTINCT 69 ) * 65 col1
----
4485

skipif mysql # not compatible
query I rowsort label-8416
SELECT MAX ( DISTINCT 69 ) * 65 col1
----
4485

query I rowsort
SELECT ALL 49 * 91
----
4459

query I rowsort
SELECT ALL 8 + - 92 AS col2
----
-84

query I rowsort
SELECT 59 - 2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT DISTINCT 84 + - 5 + 87 * + COALESCE ( 15, 13, + COUNT( * ) DIV 45 ) - - 81 + - + 4 * - 81
----
1789

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT 84 + - 5 + 87 * + COALESCE ( 15, 13, + COUNT ( * ) / 45 ) - - 81 + - + 4 * - 81
----
1789

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT COUNT( ALL - 72 ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-8421
SELECT COUNT ( ALL - 72 ) + 97
----
98

query I rowsort
SELECT DISTINCT + 6 + + 32
----
38

query I rowsort
SELECT DISTINCT 26 + - + ( + 96 ) * - + 72 * - + 59 col0
----
-407782

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8424
SELECT - 42 * 17 - 11 * + - 89 AS col0, + MAX( + 94 ) * 2 + 17 + + COALESCE ( + + COALESCE ( + 13, 11 * - 39 DIV 72 ), + 90 ) + + COALESCE ( - 42, COUNT( + 90 ) + 96, 10 * 12 + + 83 ) AS col1
----
265
176

skipif mysql # not compatible
query II rowsort label-8424
SELECT - 42 * 17 - 11 * + - 89 AS col0, + MAX ( + 94 ) * 2 + 17 + + COALESCE ( + + COALESCE ( + 13, 11 * - 39 / 72 ), + 90 ) + + COALESCE ( - 42, COUNT ( + 90 ) + 96, 10 * 12 + + 83 ) AS col1
----
265
176

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT ALL - - MAX( + 52 ) AS col2, 26
----
52
26

skipif mysql # not compatible
query II rowsort label-8425
SELECT ALL - - MAX ( + 52 ) AS col2, 26
----
52
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT 60 * + 2 * + 13 * COUNT( * ) + - ( + - 31 ) + - + CASE + 80 WHEN + 96 + - + COALESCE ( - 61, 75 ) THEN - + 28 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT 60 * + 2 * + 13 * COUNT ( * ) + - ( + - 31 ) + - + CASE + 80 WHEN + 96 + - + COALESCE ( - 61, 75 ) THEN - + 28 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 44 * 33 AS col2
----
1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT + 32 - - CASE + + 7 WHEN - - MIN( ( + 87 ) ) * + + 15 + - - MAX( DISTINCT CAST( 99 AS SIGNED ) ) THEN NULL WHEN - 55 THEN + 46 ELSE - 34 END + - 42 + 46 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + 32 - - CASE + + 7 WHEN - - MIN ( ( + 87 ) ) * + + 15 + - - MAX ( DISTINCT CAST ( 99 AS INTEGER ) ) THEN NULL WHEN - 55 THEN + 46 ELSE - 34 END + - 42 + 46 AS col2
----
2

query I rowsort
SELECT 23 * + - 31 AS col0
----
-713

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT DISTINCT - MIN( + + 71 ), + 24 + - - 96 * + + 75 AS col0
----
-71
7224

skipif mysql # not compatible
query II rowsort label-8430
SELECT DISTINCT - MIN ( + + 71 ), + 24 + - - 96 * + + 75 AS col0
----
-71
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - + MAX( ALL - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - + MAX ( ALL - 47 ) AS col1
----
47

query I rowsort
SELECT - 57 * - 66 + - 22 AS col0
----
3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT - 32 * + CAST( NULL AS SIGNED ) + + 5 / - 82 + COUNT( * ) + - ( - CASE - 92 WHEN - 44 THEN NULL WHEN - ( CASE - COUNT( * ) WHEN - + 88 THEN NULL ELSE + COUNT( * ) END ) / COALESCE ( 29 + - CAST( NULL AS SIGNED ), 95, + COUNT( * ) ) THEN NULL WHEN 6 - 25 THEN 41 / AVG ( ALL 17 ) ELSE - 68 END ) - - MIN( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT - 32 * + CAST ( NULL AS INTEGER ) + + 5 / - 82 + COUNT ( * ) + - ( - CASE - 92 WHEN - 44 THEN NULL WHEN - ( CASE - COUNT ( * ) WHEN - + 88 THEN NULL ELSE + COUNT ( * ) END ) / COALESCE ( 29 + - CAST ( NULL AS INTEGER ), 95, + COUNT ( * ) ) THEN NULL WHEN 6 - 25 THEN 41 / AVG ( ALL 17 ) ELSE - 68 END ) - - MIN ( + 73 )
----
NULL

query I rowsort
SELECT + COALESCE ( - 48, - + ( 78 ) + - + 76 * + 8, + 86 + 89 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - MIN( - 7 ) + + 34 * 28 * + + COUNT( * ) AS col2
----
959

skipif mysql # not compatible
query I rowsort label-8435
SELECT - MIN ( - 7 ) + + 34 * 28 * + + COUNT ( * ) AS col2
----
959

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT 63 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT 63 / + + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT 69 * COUNT( * ) col0
----
69

skipif mysql # not compatible
query I rowsort label-8437
SELECT 69 * COUNT ( * ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - NULLIF ( - 89, - 29 + - 96 + - 91 / COUNT( * ) / - 83 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - NULLIF ( - 89, - 29 + - 96 + - 91 / COUNT ( * ) / - 83 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8439
SELECT ALL 37, - 41 DIV - 92 AS col0
----
37
0

skipif mysql # not compatible
query II rowsort label-8439
SELECT ALL 37, - 41 / - 92 AS col0
----
37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT 43 + - SUM( ( 32 ) ) - - - 11
----
0

skipif mysql # not compatible
query I rowsort label-8440
SELECT 43 + - SUM ( ( 32 ) ) - - - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL COUNT( DISTINCT + + 9 ) + 29 * + 47 AS col2
----
1364

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL COUNT ( DISTINCT + + 9 ) + 29 * + 47 AS col2
----
1364

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT ALL - 34 + - 4 + + 91 + - 98 DIV - + 28 + - 36 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - 34 + - 4 + + 91 + - 98 / - + 28 + - 36 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT 69 + - 13 * + 1 / - - 71 - + COUNT( DISTINCT 87 ) * - + 36 / - 57 + + 89 * CAST( NULL AS SIGNED ) * - + CASE AVG ( - - CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) * - 8 * - 2 + + COUNT( * ) THEN 30 + - SUM( - 80 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT 69 + - 13 * + 1 / - - 71 - + COUNT ( DISTINCT 87 ) * - + 36 / - 57 + + 89 * CAST ( NULL AS INTEGER ) * - + CASE AVG ( - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) * - 8 * - 2 + + COUNT ( * ) THEN 30 + - SUM ( - 80 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 52 + - 57 AS col0
----
-5

query I rowsort
SELECT 49 + + 53
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT 88 + - CAST( - - ( 61 ) AS SIGNED ) - - 74
----
101

skipif mysql # not compatible
query I rowsort label-8446
SELECT 88 + - CAST ( - - ( 61 ) AS INTEGER ) - - 74
----
101

query I rowsort
SELECT ALL + 35 + 95
----
130

query I rowsort
SELECT DISTINCT - 80 + - 15 AS col2
----
-95

query I rowsort
SELECT 68 + + - 48 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT 4 - + 56 - + 13 DIV + - 10
----
-51

skipif mysql # not compatible
query I rowsort label-8450
SELECT 4 - + 56 - + 13 / + - 10
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT MIN( ALL 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT MIN ( ALL 2 )
----
2

query I rowsort
SELECT ALL + 35 + 1 AS col2
----
36

query I rowsort
SELECT 84 * + + 90 AS col0
----
7560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL COUNT( + - 87 ) * + CAST( 29 AS SIGNED ) * + 48 * + 19 + 18 * + 76 AS col2
----
27816

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL COUNT ( + - 87 ) * + CAST ( 29 AS INTEGER ) * + 48 * + 19 + 18 * + 76 AS col2
----
27816

query I rowsort
SELECT ALL 55 - - 54
----
109

query II rowsort
SELECT - + 74 AS col2, - 55 * - ( - - 87 ) + 62 + + 15
----
-74
4862

query I rowsort
SELECT DISTINCT - ( + 23 ) - + ( + + 81 )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COUNT( * ) * - 95 - - 59 + - 55 + + 19 * - - 43 AS col0
----
726

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( * ) * - 95 - - 59 + - 55 + + 19 * - - 43 AS col0
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL + + 68 * 14 + + 16 DIV + 83 AS col2
----
952

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + + 68 * 14 + + 16 / + 83 AS col2
----
952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8460
SELECT - COALESCE ( 38, COUNT( * ) - - 86 + + 17, + 92 * + + 51 + - CASE - - CASE 4 WHEN + NULLIF ( + 69, - 60 * + - 61 * + CAST( NULL AS SIGNED ) * - ( 10 ) + 81 + - NULLIF ( + 36 - 66, 73 + ( - 12 ) ) ) * 71 THEN NULL WHEN 80 - + 54 THEN - 89 ELSE NULL END WHEN + COUNT( DISTINCT + 74 ) * 15 - 18 THEN + AVG ( 8 ) DIV + CASE CAST( NULL AS SIGNED ) WHEN 72 THEN + 88 WHEN 62 * 9 THEN NULL END WHEN + 96 * 7 + - 82 THEN - COUNT( * ) * COUNT( ALL - 82 ) END * - COALESCE ( 13, - 7 * 15 - - CAST( NULL AS SIGNED ), + ( - 14 ) + 18 * 72 ) + 37 ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT - COALESCE ( 38, COUNT ( * ) - - 86 + + 17, + 92 * + + 51 + - CASE - - CASE 4 WHEN + NULLIF ( + 69, - 60 * + - 61 * + CAST ( NULL AS INTEGER ) * - ( 10 ) + 81 + - NULLIF ( + 36 - 66, 73 + ( - 12 ) ) ) * 71 THEN NULL WHEN 80 - + 54 THEN - 89 ELSE NULL END WHEN + COUNT ( DISTINCT + 74 ) * 15 - 18 THEN + AVG ( 8 ) / + CASE CAST ( NULL AS INTEGER ) WHEN 72 THEN + 88 WHEN 62 * 9 THEN NULL END WHEN + 96 * 7 + - 82 THEN - COUNT ( * ) * COUNT ( ALL - 82 ) END * - COALESCE ( 13, - 7 * 15 - - CAST ( NULL AS INTEGER ), + ( - 14 ) + 18 * 72 ) + 37 ) / 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8461
SELECT + + 83 DIV COUNT( * ) + 45 * + 85 * + 37 * + 57 + - 30
----
8066978

skipif mysql # not compatible
query I rowsort label-8461
SELECT + + 83 / COUNT ( * ) + 45 * + 85 * + 37 * + 57 + - 30
----
8066978

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT 8 DIV 48 * - + 31 * 11 * + - 49 + + 17 + - 16 + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8462
SELECT 8 / 48 * - + 31 * 11 * + - 49 + + 17 + - 16 + - 14 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8463
SELECT ALL + 2 AS col0, + 55 * - CAST( - + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) col1
----
2
-55

skipif mysql # not compatible
query II rowsort label-8463
SELECT ALL + 2 AS col0, + 55 * - CAST ( - + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) col1
----
2
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT ( + - CAST( + 45 AS SIGNED ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8464
SELECT ( + - CAST ( + 45 AS INTEGER ) ) AS col0
----
-45

query II rowsort
SELECT 6 * + + 21 + - ( - 89 ) * - - 42 AS col0, 17
----
3864
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - + MAX( ALL - COALESCE ( 4, - - 3 ) ) * + + 40 - - + 25 + - 98 col1
----
87

skipif mysql # not compatible
query I rowsort label-8466
SELECT - + MAX ( ALL - COALESCE ( 4, - - 3 ) ) * + + 40 - - + 25 + - 98 col1
----
87

query I rowsort
SELECT + 97 + - + 80 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT + - 71 * 39 DIV 72 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8468
SELECT + - 71 * 39 / 72 AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT + - 65 + + MAX( DISTINCT + - 3 ) DIV + 9 + COUNT( * ) * 45
----
-20

skipif mysql # not compatible
query I rowsort label-8469
SELECT + - 65 + + MAX ( DISTINCT + - 3 ) / + 9 + COUNT ( * ) * 45
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT - COUNT( * ) * + - COUNT( * ) + + ( - 12 ) + + 52 * COUNT( * ) + - 45 + + 17 + + - 62 * - 24 AS col1, NULLIF ( - 38, + 81 ) * - 88 + + + COUNT( * ) * 23 AS col2
----
1501
3367

skipif mysql # not compatible
query II rowsort label-8470
SELECT - COUNT ( * ) * + - COUNT ( * ) + + ( - 12 ) + + 52 * COUNT ( * ) + - 45 + + 17 + + - 62 * - 24 AS col1, NULLIF ( - 38, + 81 ) * - 88 + + + COUNT ( * ) * 23 AS col2
----
1501
3367

query I rowsort
SELECT ALL + - ( 21 ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT - 33 * + + COUNT( * ) + - CAST( + 9 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - 33 * + + COUNT ( * ) + - CAST ( + 9 AS INTEGER ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL COALESCE ( - + 30, + NULLIF ( COUNT( * ), - + ( ( - COUNT( * ) ) ) ) * 45 ) * + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL COALESCE ( - + 30, + NULLIF ( COUNT ( * ), - + ( ( - COUNT ( * ) ) ) ) * 45 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT MAX( DISTINCT 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8474
SELECT MAX ( DISTINCT 56 )
----
56

query II rowsort
SELECT ALL + 95 AS col0, - 48 + - 78
----
95
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + COUNT( DISTINCT + 11 ) * 27
----
27

skipif mysql # not compatible
query I rowsort label-8476
SELECT + COUNT ( DISTINCT + 11 ) * 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + COUNT( * ) * - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8477
SELECT + COUNT ( * ) * - 20 AS col2
----
-20

query I rowsort
SELECT ALL 33 + + 0 * + - 93 + - 79 - + - 81
----
35

query I rowsort
SELECT - 20 + + + 5 + - + 89
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT ALL 26 DIV + COUNT( - COALESCE ( 3, - 5, + 29 ) )
----
26

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL 26 / + COUNT ( - COALESCE ( 3, - 5, + 29 ) )
----
26

query I rowsort
SELECT - 97 + - CASE 35 WHEN - 63 + 37 THEN NULL WHEN + 27 THEN ( 17 ) + - 3 END * + 16 + + - 75 + - 3
----
NULL

query II rowsort
SELECT - ( 4 ) AS col0, 39 AS col0
----
-4
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT DISTINCT 32 - + 15 + - 87 DIV + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT 32 - + 15 + - 87 / + COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT COALESCE ( - - 43, COUNT( * ) * - COALESCE ( - 72, - ( - + ( + COUNT( * ) ) ) ), + ( + - 59 ) )
----
43

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT COALESCE ( - - 43, COUNT ( * ) * - COALESCE ( - 72, - ( - + ( + COUNT ( * ) ) ) ), + ( + - 59 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL + COUNT( * ) * 57 * - COUNT( DISTINCT + - 62 ) * - + ( - 93 ) AS col0
----
-5301

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + COUNT ( * ) * 57 * - COUNT ( DISTINCT + - 62 ) * - + ( - 93 ) AS col0
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - ( + COUNT( * ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8486
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL MAX( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL MAX ( ALL - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT ALL COUNT( * ), + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT - + 87 * - - 83 AS col2
----
-7221

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT - - 18 - - - ( - 75 ) * + COUNT( * ), ( + 52 ) * + + 40 AS col1
----
93
2080

skipif mysql # not compatible
query II rowsort label-8490
SELECT - - 18 - - - ( - 75 ) * + COUNT ( * ), ( + 52 ) * + + 40 AS col1
----
93
2080

query I rowsort
SELECT - 32 * + ( + 77 )
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT COALESCE ( + COUNT( * ), 59 * - 8 * + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT COALESCE ( + COUNT ( * ), 59 * - 8 * + 13 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT ALL + COUNT( * ) AS col2, - ( 65 )
----
1
-65

skipif mysql # not compatible
query II rowsort label-8493
SELECT ALL + COUNT ( * ) AS col2, - ( 65 )
----
1
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - + CASE - 6 WHEN + MAX( + 60 ) / - 22 + - 7 * + 12 THEN ( - - 0 ) * 86 * - 6 WHEN + 28 THEN NULL WHEN + COUNT( + 5 ) * 44 + + 66 THEN + 59 * - 35 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT - + CASE - 6 WHEN + MAX ( + 60 ) / - 22 + - 7 * + 12 THEN ( - - 0 ) * 86 * - 6 WHEN + 28 THEN NULL WHEN + COUNT ( + 5 ) * 44 + + 66 THEN + 59 * - 35 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 60 * - + 39
----
-2340

query II rowsort
SELECT - + 78 * - - 82 * - 43 - - 29 col1, 41 col1
----
275057
41

query I rowsort
SELECT - + 91 * + + 68 + + 75 + + 58 col0
----
-6055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL - + COUNT( * ) / 72 + 28 + - 21 + - + CASE 48 WHEN SUM( + 52 ) THEN NULL WHEN - + COUNT( * ) * - 61 + + + ( - + 51 ) * + + AVG ( 38 ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) + + 42 + - ( 81 ) THEN COUNT( * ) ELSE NULL END * + ( - 98 * + COUNT( + 9 ) + + COUNT( * ) ) * + ( - 24 + - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - + COUNT ( * ) / 72 + 28 + - 21 + - + CASE 48 WHEN SUM ( + 52 ) THEN NULL WHEN - + COUNT ( * ) * - 61 + + + ( - + 51 ) * + + AVG ( 38 ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) + + 42 + - ( 81 ) THEN COUNT ( * ) ELSE NULL END * + ( - 98 * + COUNT ( + 9 ) + + COUNT ( * ) ) * + ( - 24 + - 40 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8499
SELECT - 35 * COUNT( * ) * - + 13 * - 83 + + 76 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT - 35 * COUNT ( * ) * - + 13 * - 83 + + 76 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT - 48 * 34 + + - 94 + - CAST( NULL AS SIGNED ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 48 * 34 + + - 94 + - CAST ( NULL AS INTEGER ) + + 20
----
NULL

query II rowsort
SELECT + + 9 AS col2, 55
----
9
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT - 65 * + 78 DIV + 3 - - 19
----
-1671

skipif mysql # not compatible
query I rowsort label-8502
SELECT - 65 * + 78 / + 3 - - 19
----
-1671

query II rowsort
SELECT ( 92 ) col0, + ( + 87 )
----
92
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT ALL + MAX( - 5 ) AS col2, 50
----
-5
50

skipif mysql # not compatible
query II rowsort label-8504
SELECT ALL + MAX ( - 5 ) AS col2, 50
----
-5
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT COALESCE ( + 53, SUM( + ( - + 30 ) ) * + + 3, - - ( 88 ), + 93, + 8 + ( - 43 ) ) * + COUNT( * ) + - 55 + - 90 * + 26
----
-2342

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT COALESCE ( + 53, SUM ( + ( - + 30 ) ) * + + 3, - - ( 88 ), + 93, + 8 + ( - 43 ) ) * + COUNT ( * ) + - 55 + - 90 * + 26
----
-2342

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT ALL 81 * - + 76 + - 81 + + 0 * + 6 * - ( 94 ), COUNT( * ) AS col0
----
-6237
1

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL 81 * - + 76 + - 81 + + 0 * + 6 * - ( 94 ), COUNT ( * ) AS col0
----
-6237
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT - SUM( DISTINCT 55 ) * NULLIF ( - ( 99 ), - 6 ) + + + COALESCE ( - + 58, COUNT( * ) + - 41 ) + - 55 DIV - + 4
----
5400

skipif mysql # not compatible
query I rowsort label-8507
SELECT - SUM ( DISTINCT 55 ) * NULLIF ( - ( 99 ), - 6 ) + + + COALESCE ( - + 58, COUNT ( * ) + - 41 ) + - 55 / - + 4
----
5400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8508
SELECT + CAST( NULL AS SIGNED ) * - - AVG ( ALL + 23 ) AS col0, 14 DIV - + NULLIF ( + 29, + 66 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8508
SELECT + CAST ( NULL AS INTEGER ) * - - AVG ( ALL + 23 ) AS col0, 14 / - + NULLIF ( + 29, + 66 )
----
NULL
0

query I rowsort
SELECT + ( - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT 98 * + 49 - - - COUNT( + - 67 ) AS col0
----
4801

skipif mysql # not compatible
query I rowsort label-8510
SELECT 98 * + 49 - - - COUNT ( + - 67 ) AS col0
----
4801

query I rowsort
SELECT CASE 64 WHEN 91 THEN NULL ELSE 76 END
----
76

query II rowsort
SELECT ALL 85 * - 74 AS col2, - 51 AS col1
----
-6290
-51

query I rowsort
SELECT + 91 + + NULLIF ( - - 66, - 70 ) + - - 99 AS col0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL COUNT( * ) * - - 47 - + 69
----
-22

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL COUNT ( * ) * - - 47 - + 69
----
-22

query I rowsort
SELECT + 9 * - + 95 col1
----
-855

query II rowsort
SELECT ( - - 10 ) * - 51 + - - 15 * - 51 AS col0, 55 * + + 85
----
-1275
4675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT DISTINCT 84 * - 63 * + - COALESCE ( + COALESCE ( - + 47, - MIN( DISTINCT 0 ) * - 57 ), + CASE + MIN( - - 18 ) WHEN - - COUNT( * ) THEN - 35 WHEN - + 41 + - COALESCE ( 11, - 44 ) THEN SUM( + 2 ) ELSE 42 * ( + 72 DIV 47 ) END )
----
-248724

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT 84 * - 63 * + - COALESCE ( + COALESCE ( - + 47, - MIN ( DISTINCT 0 ) * - 57 ), + CASE + MIN ( - - 18 ) WHEN - - COUNT ( * ) THEN - 35 WHEN - + 41 + - COALESCE ( 11, - 44 ) THEN SUM ( + 2 ) ELSE 42 * ( + 72 / 47 ) END )
----
-248724

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT SUM( ALL - 39 ), 52 - - + 49 AS col2
----
-39
101

skipif mysql # not compatible
query II rowsort label-8518
SELECT SUM ( ALL - 39 ), 52 - - + 49 AS col2
----
-39
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT SUM( - 28 ) AS col0, 55
----
-28
55

skipif mysql # not compatible
query II rowsort label-8519
SELECT SUM ( - 28 ) AS col0, 55
----
-28
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8520
SELECT + 13 + COUNT( * ) AS col2, + 9 DIV + 51 * 91 * + 33
----
14
0

skipif mysql # not compatible
query II rowsort label-8520
SELECT + 13 + COUNT ( * ) AS col2, + 9 / + 51 * 91 * + 33
----
14
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT 84 DIV - 33 col2
----
-2

skipif mysql # not compatible
query I rowsort label-8521
SELECT 84 / - 33 col2
----
-2

query I rowsort
SELECT + 94 + 82 + + 78 AS col1
----
254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8523
SELECT 83 DIV COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8523
SELECT 83 / COUNT ( * ) AS col1
----
83

query I rowsort
SELECT DISTINCT - + 1 * 36
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT ALL + + COALESCE ( - 63, + 25 + + 1 + - 49 ) * 44 * 77 + + - 79 * - - 61 + 98 AS col0, - COUNT( * ) AS col2
----
-218165
-1

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL + + COALESCE ( - 63, + 25 + + 1 + - 49 ) * 44 * 77 + + - 79 * - - 61 + 98 AS col0, - COUNT ( * ) AS col2
----
-218165
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT 22 + + 24 + + COUNT( * ) col1
----
47

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT 22 + + 24 + + COUNT ( * ) col1
----
47

query I rowsort
SELECT ALL + - 59 + + ( + 8 ) * - 29 * - 2 + - 47
----
358

query I rowsort
SELECT - ( 58 ) col2
----
-58

query I rowsort
SELECT - 19 + 45
----
26

query I rowsort
SELECT ALL ( + 1 ) + 81 + 70
----
152

query I rowsort
SELECT ALL - + 71 + + 57 + - - 55 * 68 + + - 45
----
3681

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT DISTINCT - 20 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - 20 / 40
----
0

query I rowsort
SELECT ALL + 66 + 99 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 78 + - + MAX( + 59 ) + - - 54
----
73

skipif mysql # not compatible
query I rowsort label-8534
SELECT 78 + - + MAX ( + 59 ) + - - 54
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT 49 DIV 8
----
6

skipif mysql # not compatible
query I rowsort label-8535
SELECT 49 / 8
----
6

query I rowsort
SELECT 85 * 51 AS col1
----
4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - 93 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - 93 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 92 AS col0, 0
----
92
0

query I rowsort
SELECT 97 * - + 85
----
-8245

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT ALL - COUNT( * ) AS col0, 28 * 74
----
-1
2072

skipif mysql # not compatible
query II rowsort label-8540
SELECT ALL - COUNT ( * ) AS col0, 28 * 74
----
-1
2072

query I rowsort
SELECT DISTINCT + 21 * - 60
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8542
SELECT 75 * 22 * + - ( ( + 50 ) ) * + 65 * - 89 + - + 26 col2, 46 DIV + SUM( DISTINCT + + 22 ) AS col2
----
477262474
2

skipif mysql # not compatible
query II rowsort label-8542
SELECT 75 * 22 * + - ( ( + 50 ) ) * + 65 * - 89 + - + 26 col2, 46 / + SUM ( DISTINCT + + 22 ) AS col2
----
477262474
2

query I rowsort
SELECT 84 * + + 26 AS col2
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL - 31 * - - 18 * + - MIN( 13 )
----
7254

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - 31 * - - 18 * + - MIN ( 13 )
----
7254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8545
SELECT ALL - COUNT( * ) AS col1, 63 DIV - 47 AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL - COUNT ( * ) AS col1, 63 / - 47 AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT 46 col0, MIN( ALL - 70 )
----
46
-70

skipif mysql # not compatible
query II rowsort label-8546
SELECT 46 col0, MIN ( ALL - 70 )
----
46
-70

query I rowsort
SELECT 10 * - 44
----
-440

onlyif mysql # DIV for integer division: 
query II rowsort label-8548
SELECT 62 AS col2, - 63 + 5 DIV 72 AS col0
----
62
-63

skipif mysql # not compatible
query II rowsort label-8548
SELECT 62 AS col2, - 63 + 5 / 72 AS col0
----
62
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT 84 - + SUM( ALL - + 32 ) AS col1, - 49 * - 33 AS col2
----
116
1617

skipif mysql # not compatible
query II rowsort label-8549
SELECT 84 - + SUM ( ALL - + 32 ) AS col1, - 49 * - 33 AS col2
----
116
1617

query I rowsort
SELECT 22 * - + 21 * + 87 * - 97
----
3898818

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT 0 * + ( + 80 ) AS col1, - 79 * ( + COUNT( * ) ) col0
----
0
-79

skipif mysql # not compatible
query II rowsort label-8551
SELECT 0 * + ( + 80 ) AS col1, - 79 * ( + COUNT ( * ) ) col0
----
0
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL - SUM( DISTINCT + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - SUM ( DISTINCT + 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8553
SELECT DISTINCT 10 AS col0, CAST( 10 AS SIGNED ) * - 76 AS col0
----
10
-760

skipif mysql # not compatible
query II rowsort label-8553
SELECT DISTINCT 10 AS col0, CAST ( 10 AS INTEGER ) * - 76 AS col0
----
10
-760

query I rowsort
SELECT ALL + 15 * - + 87
----
-1305

query II rowsort
SELECT 75 AS col0, - 40 * 12 * NULLIF ( + + ( - 5 ), + 98 )
----
75
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL - - 82 * CAST( COALESCE ( + - 3, + NULLIF ( - + 11, + 76 ) + - 36 ) AS SIGNED ) AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - - 82 * CAST ( COALESCE ( + - 3, + NULLIF ( - + 11, + 76 ) + - 36 ) AS INTEGER ) AS col0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL + + COUNT( * ) + - - 36 * - MAX( + 27 ) - + 76
----
-1047

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + + COUNT ( * ) + - - 36 * - MAX ( + 27 ) - + 76
----
-1047

query I rowsort
SELECT DISTINCT 6 + COALESCE ( - 96, - 67 ) + 73 * + + ( + - 1 ) AS col0
----
-163

query I rowsort
SELECT ALL 11 + - 22 AS col1
----
-11

query II rowsort
SELECT 12 col1, + 21 AS col1
----
12
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT - 50 AS col0, 93 * - COUNT( * ) + + + MAX( DISTINCT + - 8 ) + 90 * NULLIF ( + 56, - + 18 * + 75 ) + CASE - 77 WHEN 21 THEN COUNT( * ) WHEN COUNT( * ) THEN NULL END
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-8561
SELECT - 50 AS col0, 93 * - COUNT ( * ) + + + MAX ( DISTINCT + - 8 ) + 90 * NULLIF ( + 56, - + 18 * + 75 ) + CASE - 77 WHEN 21 THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL END
----
-50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT 13 * + - COUNT( * ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-8562
SELECT 13 * + - COUNT ( * ) col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - NULLIF ( - 19, - - MAX( ALL - 35 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8563
SELECT - NULLIF ( - 19, - - MAX ( ALL - 35 ) ) AS col1
----
19

query I rowsort
SELECT 15 + + 10 AS col1
----
25

query I rowsort
SELECT - - NULLIF ( - 27, 77 * + - 12 + - + 79 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8566
SELECT + COUNT( * ) AS col0, + 91
----
1
91

skipif mysql # not compatible
query II rowsort label-8566
SELECT + COUNT ( * ) AS col0, + 91
----
1
91

query I rowsort
SELECT DISTINCT + 70 + + 15 col0
----
85

query I rowsort
SELECT ALL - - NULLIF ( + 8, + + 69 ) * 64 col0
----
512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL 2 * 74 - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
148

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL 2 * 74 - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8570
SELECT - 48 / - 55 - - ( - + ( - + 49 ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT - 48 / - 55 - - ( - + ( - + 49 ) ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 53 * + - 92
----
-4876

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL - 7 * 6 * - + 45 * - MIN( DISTINCT + 46 )
----
-86940

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - 7 * 6 * - + 45 * - MIN ( DISTINCT + 46 )
----
-86940

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT MAX( ALL - 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8573
SELECT MAX ( ALL - 79 ) AS col2
----
-79

query I rowsort
SELECT ALL 85 * 45 - + + 99
----
3726

query I rowsort
SELECT 78 * - 30
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT - CASE - COUNT( * ) WHEN 10 THEN NULL WHEN + 27 THEN - 82 ELSE NULL END / - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 10 THEN NULL WHEN + 27 THEN - 82 ELSE NULL END / - 87
----
NULL

query I rowsort
SELECT ALL + 44 * - 1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + CASE - 1 WHEN + 50 + - 22 / 38 * + + CAST( NULL AS SIGNED ) * + 68 THEN NULL WHEN - 27 THEN + - SUM( DISTINCT - 76 ) * + 87 / + 20 - - 16 * + 18 + - CASE - - 52 WHEN - CASE - COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) THEN + 50 WHEN 31 THEN - COUNT( * ) END * + COUNT( * ) THEN NULL WHEN 47 + 6 * + ( 69 ) THEN + 90 ELSE - COUNT( * ) / - 17 END ELSE NULLIF ( - 48, CAST( NULL AS SIGNED ) ) END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8578
SELECT + CASE - 1 WHEN + 50 + - 22 / 38 * + + CAST ( NULL AS INTEGER ) * + 68 THEN NULL WHEN - 27 THEN + - SUM ( DISTINCT - 76 ) * + 87 / + 20 - - 16 * + 18 + - CASE - - 52 WHEN - CASE - COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) THEN + 50 WHEN 31 THEN - COUNT ( * ) END * + COUNT ( * ) THEN NULL WHEN 47 + 6 * + ( 69 ) THEN + 90 ELSE - COUNT ( * ) / - 17 END ELSE NULLIF ( - 48, CAST ( NULL AS INTEGER ) ) END AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8579
SELECT - 90 DIV - - 2, + ( - 59 ) * + COUNT( * ) - + - 35 AS col0
----
-45
-24

skipif mysql # not compatible
query II rowsort label-8579
SELECT - 90 / - - 2, + ( - 59 ) * + COUNT ( * ) - + - 35 AS col0
----
-45
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - ( - - COUNT( DISTINCT 29 ) ) + - COUNT( * ) * 89
----
-90

skipif mysql # not compatible
query I rowsort label-8580
SELECT - ( - - COUNT ( DISTINCT 29 ) ) + - COUNT ( * ) * 89
----
-90

query I rowsort
SELECT - 66 * + - 52 - + NULLIF ( - 18, - + 6 ) + + - 88 * + 94 AS col0
----
-4822

query II rowsort
SELECT DISTINCT 38 + 99 AS col2, NULLIF ( - 26, - 5 + + 42 * + 15 ) AS col2
----
137
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT + - 17 + + MIN( DISTINCT + - 20 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + - 17 + + MIN ( DISTINCT + - 20 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + NULLIF ( COUNT( * ), - 34 + - + 64 - MIN( DISTINCT 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 34 + - + 64 - MIN ( DISTINCT 56 ) )
----
1

query I rowsort
SELECT - NULLIF ( + - 52, 16 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT MIN( - 21 ), 59 col1
----
-21
59

skipif mysql # not compatible
query II rowsort label-8586
SELECT MIN ( - 21 ), 59 col1
----
-21
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT - - SUM( - 89 ) AS col0, COUNT( * )
----
-89
1

skipif mysql # not compatible
query II rowsort label-8587
SELECT - - SUM ( - 89 ) AS col0, COUNT ( * )
----
-89
1

query I rowsort
SELECT - + 54 * + 2 AS col2
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT ALL - COUNT( * ) * + + ( + 5 ) DIV + 76 + 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - COUNT ( * ) * + + ( + 5 ) / + 76 + 97 col2
----
97

query I rowsort
SELECT DISTINCT + 10 * 80
----
800

query I rowsort
SELECT DISTINCT + 99 * 17 AS col2
----
1683

query I rowsort
SELECT - - 85 + - 55
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT + + 22 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT + + 22 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 56, 3 * - 91 ) + - 9 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8595
SELECT + CAST( NULL AS SIGNED ) - - - 86 * 48 AS col1, 7 col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8595
SELECT + CAST ( NULL AS INTEGER ) - - - 86 * 48 AS col1, 7 col2
----
NULL
7

query I rowsort
SELECT + ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT + 92 + + ( 28 ) + - 41 DIV - - 51 + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 92 + + ( 28 ) + - 41 / - - 51 + + COUNT ( * )
----
121

query I rowsort
SELECT + ( + 35 ) * - 13 * 94 + - + 83 col2
----
-42853

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT ALL 74 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL 74 / - - 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + CAST( - 30 AS SIGNED ) + - + SUM( ALL 91 ) AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-8600
SELECT + CAST ( - 30 AS INTEGER ) + - + SUM ( ALL 91 ) AS col0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT ALL 56 * - 69 DIV + COUNT( * )
----
-3864

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 56 * - 69 / + COUNT ( * )
----
-3864

query I rowsort
SELECT ( + - 84 ) * 78 + - - 22
----
-6530

query I rowsort
SELECT + ( - + 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8604
SELECT 76 DIV 22 DIV - ( - CAST( + 63 AS SIGNED ) ) * - 59 + - 65 + - + 62 * 42
----
-2669

skipif mysql # not compatible
query I rowsort label-8604
SELECT 76 / 22 / - ( - CAST ( + 63 AS INTEGER ) ) * - 59 + - 65 + - + 62 * 42
----
-2669

query I rowsort
SELECT ALL 3 * - CASE + AVG ( + 44 ) WHEN 6 THEN - ( 28 ) WHEN - - 95 THEN 91 * - ( + 30 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 14 + + 74 col1
----
60

query I rowsort
SELECT ALL + 32 * + - 73 + - 85 * - 26
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT ALL + 16 * + CAST( + - COUNT( * ) AS SIGNED ) + 94
----
78

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + 16 * + CAST ( + - COUNT ( * ) AS INTEGER ) + 94
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + CAST( + 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8609
SELECT + CAST ( + 12 AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT COUNT( * ) * - - 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT COUNT ( * ) * - - 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL 5 * - - 65 + + - 59 + 16 * 86 + 38 + + SUM( 33 ) - + 63 * + 73 AS col0
----
-2886

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 5 * - - 65 + + - 59 + 16 * 86 + 38 + + SUM ( 33 ) - + 63 * + 73 AS col0
----
-2886

query I rowsort
SELECT ALL - 17 * + ( 54 ) + - 65 col1
----
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + + COUNT( * ) - + 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8613
SELECT + + COUNT ( * ) - + 2 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT - + 27 * - AVG ( DISTINCT + 92 ) / - ( - + 28 ) + - - CASE + + 68 WHEN - + 59 THEN - MAX( ALL + + 82 ) ELSE NULL END, - 90 col2
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-8614
SELECT - + 27 * - AVG ( DISTINCT + 92 ) / - ( - + 28 ) + - - CASE + + 68 WHEN - + 59 THEN - MAX ( ALL + + 82 ) ELSE NULL END, - 90 col2
----
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + SUM( + - 56 ) * ( + - 36 ) + + 83 AS col0
----
2099

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + SUM ( + - 56 ) * ( + - 36 ) + + 83 AS col0
----
2099

query II rowsort
SELECT - - 7 AS col0, 60 col2
----
7
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT MIN( DISTINCT + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8617
SELECT MIN ( DISTINCT + 24 )
----
24

query I rowsort
SELECT ALL + - 40 + - 44 + 34
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT - CAST( - + 57 AS SIGNED ) * - - NULLIF ( - + COUNT( * ), + + 60 * COUNT( * ) + - ( + 58 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8619
SELECT - CAST ( - + 57 AS INTEGER ) * - - NULLIF ( - + COUNT ( * ), + + 60 * COUNT ( * ) + - ( + 58 ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL - - COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - - COUNT ( * ) * - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL + COUNT( * ) * + 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + COUNT ( * ) * + 2 AS col2
----
2

query I rowsort
SELECT DISTINCT + - ( + 63 ) - + + 20 AS col2
----
-83

query I rowsort
SELECT - + 31 * - 79 AS col2
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - MIN( ( - - 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-8624
SELECT - MIN ( ( - - 22 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT - - CASE 75 WHEN 35 THEN NULL WHEN + - 54 * - 66 + 60 + - - CAST( NULL AS SIGNED ) + - - 30 THEN NULL ELSE + CAST( + 40 AS SIGNED ) END + - CASE - COUNT( * ) WHEN CASE - + 35 WHEN + 62 THEN + 81 + + 47 WHEN + - MIN( ALL - 55 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN ( 79 ) ELSE NULL END THEN - 62 * COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( - 88, + 25 ) * - 98 END * + 25 AS col1
----
-215560

skipif mysql # not compatible
query I rowsort label-8625
SELECT - - CASE 75 WHEN 35 THEN NULL WHEN + - 54 * - 66 + 60 + - - CAST ( NULL AS INTEGER ) + - - 30 THEN NULL ELSE + CAST ( + 40 AS INTEGER ) END + - CASE - COUNT ( * ) WHEN CASE - + 35 WHEN + 62 THEN + 81 + + 47 WHEN + - MIN ( ALL - 55 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN ( 79 ) ELSE NULL END THEN - 62 * COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( - 88, + 25 ) * - 98 END * + 25 AS col1
----
-215560

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT + MAX( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + MAX ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT - + 82 + 10 + + 71 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT SUM( ALL - ( 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT SUM ( ALL - ( 69 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8629
SELECT - COUNT( * ) col0, 8 * + 41
----
-1
328

skipif mysql # not compatible
query II rowsort label-8629
SELECT - COUNT ( * ) col0, 8 * + 41
----
-1
328

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT DISTINCT + 89 DIV - 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + 89 / - 76 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT - CAST( NULL AS SIGNED ) / - + 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT - CAST ( NULL AS INTEGER ) / - + 90 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT + 72 * - COUNT( * ) * + + 18 AS col1
----
-1296

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + 72 * - COUNT ( * ) * + + 18 AS col1
----
-1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8633
SELECT + 42 AS col1, + 36 - + 2 - - - ( - SUM( DISTINCT + + 1 ) ) * + SUM( ALL 20 ) DIV - + 58 * + 6 * + 67 * + 9 AS col1, 1 AS col2
----
42
34
1

skipif mysql # not compatible
query III rowsort label-8633
SELECT + 42 AS col1, + 36 - + 2 - - - ( - SUM ( DISTINCT + + 1 ) ) * + SUM ( ALL 20 ) / - + 58 * + 6 * + 67 * + 9 AS col1, 1 AS col2
----
42
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL NULLIF ( + + 89, - 21 ) + ( - MIN( + 80 ) )
----
9

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL NULLIF ( + + 89, - 21 ) + ( - MIN ( + 80 ) )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT 8 DIV - 57 - + ( - 1 ) * 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8635
SELECT 8 / - 57 - + ( - 1 ) * 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT 43 col1, COUNT( 63 ) - - 6 col2
----
43
7

skipif mysql # not compatible
query II rowsort label-8636
SELECT 43 col1, COUNT ( 63 ) - - 6 col2
----
43
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT 55 + 49 + 70 - COUNT( * ) + + - 59 * + COUNT( * ) * - 61 - + 46 AS col0
----
3726

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT 55 + 49 + 70 - COUNT ( * ) + + - 59 * + COUNT ( * ) * - 61 - + 46 AS col0
----
3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT DISTINCT 8 + + CAST( NULL AS SIGNED ) + 53 + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT 8 + + CAST ( NULL AS INTEGER ) + 53 + + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL 43 + + ( - 17 ) * - CASE + + 70 WHEN - 80 THEN + COALESCE ( - 39, COUNT( * ) ) WHEN + + COUNT( * ) THEN NULL ELSE + 5 + + 98 END + + 58 AS col2
----
1852

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL 43 + + ( - 17 ) * - CASE + + 70 WHEN - 80 THEN + COALESCE ( - 39, COUNT ( * ) ) WHEN + + COUNT ( * ) THEN NULL ELSE + 5 + + 98 END + + 58 AS col2
----
1852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT 28 - + CAST( NULL AS SIGNED ) + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT 28 - + CAST ( NULL AS INTEGER ) + - 54 AS col0
----
NULL

query I rowsort
SELECT ALL 54 + + + 86
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ( + SUM( - 7 ) ) * - 11 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8642
SELECT ( + SUM ( - 7 ) ) * - 11 AS col1
----
77

query II rowsort
SELECT + 56 AS col2, 0 AS col1
----
56
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT COUNT( * ) AS col0, + 48 * + 45
----
1
2160

skipif mysql # not compatible
query II rowsort label-8644
SELECT COUNT ( * ) AS col0, + 48 * + 45
----
1
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL + ( + ( + + COUNT( * ) ) ) + + - 58 + - 30
----
-87

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + ( + ( + + COUNT ( * ) ) ) + + - 58 + - 30
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - CASE - + COUNT( * ) WHEN + ( + MAX( 36 ) ) * + 77 + 43 + NULLIF ( 77, - - 83 / COALESCE ( - 78, + 71 * 77, + - MIN( - 53 ) + + 72 + + + 89 * + 67 ) ) * + + 21 THEN - - 75 * - MAX( ALL - 88 ) - + ( 40 ) ELSE NULL END + + MIN( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT - CASE - + COUNT ( * ) WHEN + ( + MAX ( 36 ) ) * + 77 + 43 + NULLIF ( 77, - - 83 / COALESCE ( - 78, + 71 * 77, + - MIN ( - 53 ) + + 72 + + + 89 * + 67 ) ) * + + 21 THEN - - 75 * - MAX ( ALL - 88 ) - + ( 40 ) ELSE NULL END + + MIN ( - 41 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT + 96 * 33 - + - 6 * 89 + NULLIF ( + - COUNT( * ), - 9 ) + - CAST( - 76 AS SIGNED ) * - - 16
----
4917

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 96 * 33 - + - 6 * 89 + NULLIF ( + - COUNT ( * ), - 9 ) + - CAST ( - 76 AS INTEGER ) * - - 16
----
4917

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT 62 - NULLIF ( 85, COUNT( * ) ) * - 30 col0
----
2612

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT 62 - NULLIF ( 85, COUNT ( * ) ) * - 30 col0
----
2612

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + 10 + - 59 + + 16 * - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 10 + - 59 + + 16 * - COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT DISTINCT + COUNT( * ) AS col2, MIN( - 27 ) * 46
----
1
-1242

skipif mysql # not compatible
query II rowsort label-8650
SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( - 27 ) * 46
----
1
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ( 63 ) + + COUNT( DISTINCT + 47 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-8651
SELECT ( 63 ) + + COUNT ( DISTINCT + 47 ) col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8652
SELECT 78 * + + CAST( NULL AS SIGNED ) AS col1, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8652
SELECT 78 * + + CAST ( NULL AS INTEGER ) AS col1, 36
----
NULL
36

query I rowsort
SELECT 21 * - 22 AS col0
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ALL - 49 DIV - - 79 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - 49 / - - 79 * + 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL - CASE 82 WHEN + - 21 THEN NULL WHEN + 8 THEN SUM( ALL + - 53 ) WHEN - - CAST( + + ( - + 97 ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - CASE 82 WHEN + - 21 THEN NULL WHEN + 8 THEN SUM ( ALL + - 53 ) WHEN - - CAST ( + + ( - + 97 ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - 60 + - + 30 - COUNT( DISTINCT + 44 ) - + 48 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 60 + - + 30 - COUNT ( DISTINCT + 44 ) - + 48 AS col1
----
-139

query I rowsort
SELECT ALL - 0 * - 90 AS col0
----
0

query I rowsort
SELECT 1 * + + 54
----
54

query I rowsort
SELECT ALL 33 * - 72 * 75 col1
----
-178200

query I rowsort
SELECT 94 + - 37 * + - 83 + 40
----
3205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT CAST( + - 38 AS SIGNED ) * - 49 - - - COUNT( * ) + + 60 AS col1
----
1921

skipif mysql # not compatible
query I rowsort label-8661
SELECT CAST ( + - 38 AS INTEGER ) * - 49 - - - COUNT ( * ) + + 60 AS col1
----
1921

query I rowsort
SELECT 3 * 83 AS col0
----
249

query I rowsort
SELECT ALL 67 + - 40 AS col2
----
27

query I rowsort
SELECT - 91 * - 93 + - 90 * - 64
----
14223

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - 23 * + - 77 * + COUNT( * ) * + COUNT( * )
----
1771

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - 23 * + - 77 * + COUNT ( * ) * + COUNT ( * )
----
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT - ( - + MAX( ( 54 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - ( - + MAX ( ( 54 ) ) )
----
54

query II rowsort
SELECT 9 * 39 AS col1, 91
----
351
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - CAST( + + 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - CAST ( + + 43 AS INTEGER )
----
-43

query I rowsort
SELECT 57 * 12
----
684

query I rowsort
SELECT 87 + + - 98
----
-11

query I rowsort
SELECT DISTINCT - NULLIF ( 33, + 54 - - - 48 + + + 20 * 93 + + 25 )
----
-33

query II rowsort
SELECT DISTINCT - - 6 - + 58 AS col1, - 22
----
-52
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT 36 * + + 9 col2, COUNT( * ) col2
----
324
1

skipif mysql # not compatible
query II rowsort label-8673
SELECT 36 * + + 9 col2, COUNT ( * ) col2
----
324
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8674
SELECT ALL - 56 * + 3 - + + CAST( NULL AS DECIMAL ) * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - 56 * + 3 - + + CAST ( NULL AS REAL ) * - 51 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT ALL - - 56 DIV + ( - 11 )
----
-5

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL - - 56 / + ( - 11 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL 91 * + 66 + MIN( ALL - 7 ) + 56 AS col1
----
6055

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL 91 * + 66 + MIN ( ALL - 7 ) + 56 AS col1
----
6055

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT - 61 - 43 col0, + COUNT( * )
----
-104
1

skipif mysql # not compatible
query II rowsort label-8677
SELECT - 61 - 43 col0, + COUNT ( * )
----
-104
1

query I rowsort
SELECT 36 * - 40 AS col1
----
-1440

query I rowsort
SELECT ALL - NULLIF ( - 58, - 2 )
----
58

query I rowsort
SELECT 85 * + 35
----
2975

query I rowsort
SELECT ALL - 59 * - 63 * - + NULLIF ( - 66, 68 )
----
245322

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT COUNT( * ) * - 9 col2
----
-9

skipif mysql # not compatible
query I rowsort label-8682
SELECT COUNT ( * ) * - 9 col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT ALL 36 + 91 + 95 + - 27 DIV 91 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 36 + 91 + 95 + - 27 / 91 AS col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT ( - 1 ) + - - 21 + 38 + 43 + - - 76 + - 35 * - 87 DIV - - COUNT( * ) AS col0
----
3222

skipif mysql # not compatible
query I rowsort label-8684
SELECT ( - 1 ) + - - 21 + 38 + 43 + - - 76 + - 35 * - 87 / - - COUNT ( * ) AS col0
----
3222

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT - COUNT( * ) AS col0, NULLIF ( + MAX( + 16 ), - + 25 - 90 ) - - - 68 col1
----
-1
-52

skipif mysql # not compatible
query II rowsort label-8685
SELECT - COUNT ( * ) AS col0, NULLIF ( + MAX ( + 16 ), - + 25 - 90 ) - - - 68 col1
----
-1
-52

query I rowsort
SELECT - 39 * - - 93
----
-3627

query I rowsort
SELECT ALL 45 + + 31
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT + COUNT( * ) DIV + - NULLIF ( + COUNT( * ), + 97 - + - 58 * - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8688
SELECT + COUNT ( * ) / + - NULLIF ( + COUNT ( * ), + 97 - + - 58 * - 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - 9 + - 87 + - + 13 * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 9 + - 87 + - + 13 * - COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL SUM( DISTINCT + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL SUM ( DISTINCT + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL 44 + - COUNT( * ) - + 75 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL 44 + - COUNT ( * ) - + 75 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL + CASE - + 54 WHEN - 8 THEN 39 ELSE COUNT( * ) END + - - 9 col1
----
10

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + CASE - + 54 WHEN - 8 THEN 39 ELSE COUNT ( * ) END + - - 9 col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT - 73 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT - 73 / + 78 AS col1
----
0

query I rowsort
SELECT ALL 37 * + 47
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - 49 * - ( + MAX( DISTINCT - ( + 3 ) ) ) * + + 51 AS col2
----
-7497

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 49 * - ( + MAX ( DISTINCT - ( + 3 ) ) ) * + + 51 AS col2
----
-7497

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT ( MIN( - + 94 ) ), 35 AS col0
----
-94
35

skipif mysql # not compatible
query II rowsort label-8696
SELECT ( MIN ( - + 94 ) ), 35 AS col0
----
-94
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT - 49 DIV - 49 - 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8697
SELECT - 49 / - 49 - 45 AS col1
----
-44

query I rowsort
SELECT - 19 * 11 AS col2
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COALESCE ( 53, + + MAX( ALL + + 39 ), 14 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-8699
SELECT COALESCE ( 53, + + MAX ( ALL + + 39 ), 14 ) col2
----
53

query I rowsort
SELECT - 89 + - 54 AS col2
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 30 AS col2, + 82 AS col2
----
30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - - COUNT( * ) * - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8703
SELECT - - COUNT ( * ) * - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - COUNT( * ) * + + 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - COUNT ( * ) * + + 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - CASE 27 WHEN + 54 THEN - 90 WHEN - 7 * - - 79 * ( - COALESCE ( - 6, + + ( - - 69 ) ) ) * 5 * - 96 * - 16 THEN NULL END - + 98 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT - CASE 27 WHEN + 54 THEN - 90 WHEN - 7 * - - 79 * ( - COALESCE ( - 6, + + ( - - 69 ) ) ) * 5 * - 96 * - 16 THEN NULL END - + 98 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - COALESCE ( 19, + - 25 * - + COALESCE ( + 94, - 22 * - 8 * - - 0, ( 22 ) - 4 ) * + 85 * 75, COUNT( * ) + 83 ) * + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8706
SELECT - COALESCE ( 19, + - 25 * - + COALESCE ( + 94, - 22 * - 8 * - - 0, ( 22 ) - 4 ) * + 85 * 75, COUNT ( * ) + 83 ) * + - COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT - + NULLIF ( 64, - + COUNT( * ) ) * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - + NULLIF ( 64, - + COUNT ( * ) ) * - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT + COUNT( * ) * + COUNT( * ) + - - 96
----
97

skipif mysql # not compatible
query I rowsort label-8708
SELECT + COUNT ( * ) * + COUNT ( * ) + - - 96
----
97

query I rowsort
SELECT - + 44 + + - 2
----
-46

query I rowsort
SELECT ALL - 63 * + 91 + - 67 AS col0
----
-5800

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT + + ( CASE - NULLIF ( - - 68, + 79 ) WHEN + + 66 * + + 69 THEN 54 * + 8 / - NULLIF ( CASE 93 WHEN - - MIN( + ( 12 ) ) / - + 5 + 5 THEN + 80 END, 52 + - 90 * + + COUNT( * ) * - 78 ) ELSE NULL END ) * - 56 + 74 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT + + ( CASE - NULLIF ( - - 68, + 79 ) WHEN + + 66 * + + 69 THEN 54 * + 8 / - NULLIF ( CASE 93 WHEN - - MIN ( + ( 12 ) ) / - + 5 + 5 THEN + 80 END, 52 + - 90 * + + COUNT ( * ) * - 78 ) ELSE NULL END ) * - 56 + 74 * - 82
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8712
SELECT + + 84 AS col1, 51 DIV 74
----
84
0

skipif mysql # not compatible
query II rowsort label-8712
SELECT + + 84 AS col1, 51 / 74
----
84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - 57 * - + 13 * - + COUNT( 17 ) + + ( - 38 ) AS col1
----
-779

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 57 * - + 13 * - + COUNT ( 17 ) + + ( - 38 ) AS col1
----
-779

query I rowsort
SELECT + 8 + + 72
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT + - 11 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT + - 11 / 18
----
0

query I rowsort
SELECT + 98 + - 84
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT ALL 4 + + CAST( 32 AS SIGNED ) + - + 62 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL 4 + + CAST ( 32 AS INTEGER ) + - + 62 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT MAX( ( + 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8718
SELECT MAX ( ( + 83 ) ) AS col2
----
83

query I rowsort
SELECT DISTINCT 39 * 71 col1
----
2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 46 * + 35 * - 94 * + + ( - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 46 * + 35 * - 94 * + + ( - 25 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 3 * - 21
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT + 32 * - - CASE + 3 WHEN + 12 THEN + CAST( NULL AS SIGNED ) + + - 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT + 32 * - - CASE + 3 WHEN + 12 THEN + CAST ( NULL AS INTEGER ) + + - 6 END AS col1
----
NULL

query I rowsort
SELECT + 49 + + + ( 23 )
----
72

query I rowsort
SELECT + 96 * - - 4 * + - 87 AS col1
----
-33408

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - COUNT( * ) * + 68
----
-68

skipif mysql # not compatible
query I rowsort label-8725
SELECT - COUNT ( * ) * + 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + 13 + COALESCE ( - - 18, - 43, - MIN( DISTINCT + 96 ) ) + - 56 + + 50 * + + 27 * + - 74 * - - 42 + 20 * - + 80 * - + ( + 33 ) - 14 + - 63 * + + 71 AS col1
----
-4147512

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 13 + COALESCE ( - - 18, - 43, - MIN ( DISTINCT + 96 ) ) + - 56 + + 50 * + + 27 * + - 74 * - - 42 + 20 * - + 80 * - + ( + 33 ) - 14 + - 63 * + + 71 AS col1
----
-4147512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8727
SELECT DISTINCT ( 9 ) * + COUNT( * ) + + 70 * + - 7 col0, 14 * 79 AS col1, + - 6 + - 8 + - - CAST( - 74 AS SIGNED ) * + COUNT( + 31 )
----
-481
1106
-88

skipif mysql # not compatible
query III rowsort label-8727
SELECT DISTINCT ( 9 ) * + COUNT ( * ) + + 70 * + - 7 col0, 14 * 79 AS col1, + - 6 + - 8 + - - CAST ( - 74 AS INTEGER ) * + COUNT ( + 31 )
----
-481
1106
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT + 90 + + 77 + 48 * + 14 * - 56 DIV + 1 + 77 + + 74 + + 45 AS col0
----
-37269

skipif mysql # not compatible
query I rowsort label-8728
SELECT + 90 + + 77 + 48 * + 14 * - 56 / + 1 + 77 + + 74 + + 45 AS col0
----
-37269

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8729
SELECT ALL + 51 * 11 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + 51 * 11 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT DISTINCT 5 * + + 80 * - + 10 * + COUNT( * ), - ( - 43 ) AS col1
----
-4000
43

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT 5 * + + 80 * - + 10 * + COUNT ( * ), - ( - 43 ) AS col1
----
-4000
43

query I rowsort
SELECT - 85 * - 4 + + 28
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT - 54 DIV - + 64 + + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-8732
SELECT - 54 / - + 64 + + - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL NULLIF ( 88, COUNT( * ) * - 6 * + 42 / - - 42 ) * + 3 - - 77 AS col1
----
341

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL NULLIF ( 88, COUNT ( * ) * - 6 * + 42 / - - 42 ) * + 3 - - 77 AS col1
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + + COUNT( * ) * - 35 + 46 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8734
SELECT + + COUNT ( * ) * - 35 + 46 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8735
SELECT + - 22 DIV - COUNT( * ) + CAST( + MAX( 22 ) AS SIGNED ) + + 49 DIV ( - + 88 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8735
SELECT + - 22 / - COUNT ( * ) + CAST ( + MAX ( 22 ) AS INTEGER ) + + 49 / ( - + 88 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8736
SELECT - + CAST( - 69 AS SIGNED ) + - + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8736
SELECT - + CAST ( - 69 AS INTEGER ) + - + COUNT ( * ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - - CAST( 74 AS SIGNED ) + + 61 + - 13 - - + 23
----
145

skipif mysql # not compatible
query I rowsort label-8737
SELECT - - CAST ( 74 AS INTEGER ) + + 61 + - 13 - - + 23
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT ALL 26 DIV + ( + 12 ) + - MAX( ALL - 99 )
----
101

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL 26 / + ( + 12 ) + - MAX ( ALL - 99 )
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT + - CAST( - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-8739
SELECT + - CAST ( - 16 AS INTEGER )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT + ( + + CAST( 62 AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-8740
SELECT + ( + + CAST ( 62 AS INTEGER ) )
----
62

query I rowsort
SELECT ALL 13 * + 57 + + 76 AS col1
----
817

query I rowsort
SELECT - + NULLIF ( - + 83, - 37 ) * 10 * - - 46
----
38180

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL 34 * + 98 + - + 77 + + COUNT( ALL - 56 ) AS col1
----
3256

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 34 * + 98 + - + 77 + + COUNT ( ALL - 56 ) AS col1
----
3256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT ALL + 21 * ( 6 ) * 65 * - ( CAST( 1 AS SIGNED ) ) + - 0 + + 0 AS col1, - 60
----
-8190
-60

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL + 21 * ( 6 ) * 65 * - ( CAST ( 1 AS INTEGER ) ) + - 0 + + 0 AS col1, - 60
----
-8190
-60

query I rowsort
SELECT 76 + 49
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT CAST( + + ( + 63 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-8746
SELECT CAST ( + + ( + 63 ) AS INTEGER )
----
63

query I rowsort
SELECT 87 - + - 41 AS col1
----
128

query I rowsort
SELECT DISTINCT - 81 + - - 10 col0
----
-71

query I rowsort
SELECT DISTINCT ( - ( COALESCE ( - + 39, - 42 ) ) ) + - 35 + - - 91 + - 76 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL MAX( + CAST( + 6 AS SIGNED ) ) + 89
----
95

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL MAX ( + CAST ( + 6 AS INTEGER ) ) + 89
----
95

query I rowsort
SELECT 96 + - 15 AS col1
----
81

query I rowsort
SELECT 32 - + 45 AS col2
----
-13

query I rowsort
SELECT ALL 90 - 7 * - 89 + - 63
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8754
SELECT 22 + ( - - COALESCE ( + - COUNT( * ), - COALESCE ( - - 38, + 7 * - ( - 14 ) DIV 52 ) ) ) * + 57 DIV 29 + - - 54 AS col0, + 39 * + 15 * COUNT( * )
----
75
585

skipif mysql # not compatible
query II rowsort label-8754
SELECT 22 + ( - - COALESCE ( + - COUNT ( * ), - COALESCE ( - - 38, + 7 * - ( - 14 ) / 52 ) ) ) * + 57 / 29 + - - 54 AS col0, + 39 * + 15 * COUNT ( * )
----
75
585

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8755
SELECT ALL 61 AS col0, + CAST( - 11 AS SIGNED ) AS col1
----
61
-11

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL 61 AS col0, + CAST ( - 11 AS INTEGER ) AS col1
----
61
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - COUNT( + + 50 ) - 66 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - COUNT ( + + 50 ) - 66 AS col1
----
-67

query I rowsort
SELECT DISTINCT + 10 * - 86 AS col0
----
-860

query II rowsort
SELECT DISTINCT 19 AS col2, - 93 AS col2
----
19
-93

query I rowsort
SELECT ALL ( - + 20 ) * + + COALESCE ( + 49, + + 16, + - 18 ) AS col1
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT - SUM( + + 3 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - SUM ( + + 3 ) col1
----
-3

query I rowsort
SELECT 21 * + + 3
----
63

query I rowsort
SELECT + 61 * + - 78
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT CASE - 31 WHEN + ( + 72 ) + - 93 + - 95 THEN - COUNT( * ) * 30 WHEN - 57 + COUNT( * ) * - 58 THEN NULL ELSE - + 95 * NULLIF ( - 50, COUNT( * ) ) * - COUNT( * ) END
----
-4750

skipif mysql # not compatible
query I rowsort label-8763
SELECT CASE - 31 WHEN + ( + 72 ) + - 93 + - 95 THEN - COUNT ( * ) * 30 WHEN - 57 + COUNT ( * ) * - 58 THEN NULL ELSE - + 95 * NULLIF ( - 50, COUNT ( * ) ) * - COUNT ( * ) END
----
-4750

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + ( - COUNT( + + 70 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8764
SELECT + ( - COUNT ( + + 70 ) )
----
-1

query I rowsort
SELECT + 78 * - 39 + + - 99
----
-3141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL - ( - - 74 ) + CAST( NULL AS SIGNED ) + + 55 - + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - ( - - 74 ) + CAST ( NULL AS INTEGER ) + + 55 - + - 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT ( 8 ) + - 66 DIV ( + - COUNT( * ) ) + 88 + + - 68 * 36 - - 94
----
-2192

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT ( 8 ) + - 66 / ( + - COUNT ( * ) ) + 88 + + - 68 * 36 - - 94
----
-2192

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - + COALESCE ( - SUM( ALL 28 ), + + 5 )
----
28

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - + COALESCE ( - SUM ( ALL 28 ), + + 5 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8769
SELECT + 77 + + COUNT( * ) DIV 72 AS col1, + CAST( - 77 AS SIGNED ) AS col2
----
77
-77

skipif mysql # not compatible
query II rowsort label-8769
SELECT + 77 + + COUNT ( * ) / 72 AS col1, + CAST ( - 77 AS INTEGER ) AS col2
----
77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT ALL - 81 + - 41 DIV 32 + + COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - 81 + - 41 / 32 + + COUNT ( * ) col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8771
SELECT + 3 * 12 * + NULLIF ( + - 23, + 40 - + + 28 + NULLIF ( MAX( DISTINCT - 71 ), - 1 / + 53 * 40 + + 10 ) ) * - - COUNT( * ) + 51 + + + 20 * 21 * + 64 * + + 59 * - 69 + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) - + COUNT( * ) * + + 2 / + + 93 + ( 6 + + ( ( + 59 ) + 82 ) * + 7 ) * - COALESCE ( + CAST( NULL AS DECIMAL ), 38, - 49 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 3 * 12 * + NULLIF ( + - 23, + 40 - + + 28 + NULLIF ( MAX ( DISTINCT - 71 ), - 1 / + 53 * 40 + + 10 ) ) * - - COUNT ( * ) + 51 + + + 20 * 21 * + 64 * + + 59 * - 69 + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) - + COUNT ( * ) * + + 2 / + + 93 + ( 6 + + ( ( + 59 ) + 82 ) * + 7 ) * - COALESCE ( + CAST ( NULL AS REAL ), 38, - 49 ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 90 * + + COALESCE ( + + 50, 35 ) * + 73 + + 23
----
328523

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8773
SELECT - NULLIF ( - 38, - - 14 + - 25 + + 21 * 96 * + 69 / + + 6 - - 41 + - 44 / - - 70 + + - 96 - - 59 * - + 98 * 68 ) + + CAST( + 26 AS SIGNED ) * + 66, 67 AS col1
----
1754
67

skipif mysql # not compatible
query II rowsort label-8773
SELECT - NULLIF ( - 38, - - 14 + - 25 + + 21 * 96 * + 69 / + + 6 - - 41 + - 44 / - - 70 + + - 96 - - 59 * - + 98 * 68 ) + + CAST ( + 26 AS INTEGER ) * + 66, 67 AS col1
----
1754
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL - - CAST( + + COUNT( + + 21 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - - CAST ( + + COUNT ( + + 21 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 68 - COALESCE ( - - 25, + 44 + + + 28 * 55 )
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8776
SELECT - 19 * + 48 + - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT - 19 * + 48 + - + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT ALL + MIN( DISTINCT 46 ) - - 10 + + + 37, 62 AS col1
----
93
62

skipif mysql # not compatible
query II rowsort label-8777
SELECT ALL + MIN ( DISTINCT 46 ) - - 10 + + + 37, 62 AS col1
----
93
62

query I rowsort
SELECT 13 * + + 11 AS col1
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8779
SELECT ALL - COUNT( * ) AS col2, + 60 DIV ( COUNT( * ) )
----
-1
60

skipif mysql # not compatible
query II rowsort label-8779
SELECT ALL - COUNT ( * ) AS col2, + 60 / ( COUNT ( * ) )
----
-1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8780
SELECT ALL - 51, ( 28 ) * + 29 + - COALESCE ( + NULLIF ( 72, + CAST( NULL AS SIGNED ) / - - COUNT( * ) + + 68 / - - 11 * - 50 ), + 73 - + 85 ) AS col0
----
-51
740

skipif mysql # not compatible
query II rowsort label-8780
SELECT ALL - 51, ( 28 ) * + 29 + - COALESCE ( + NULLIF ( 72, + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + 68 / - - 11 * - 50 ), + 73 - + 85 ) AS col0
----
-51
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8781
SELECT DISTINCT + NULLIF ( + - 31, - + 41 * COUNT( * ) - + - 67 + CAST( NULL AS SIGNED ) ) - - CASE - - 41 WHEN - + 94 THEN NULL WHEN + ( 72 ) - ( COUNT( * ) ) THEN NULL ELSE - 4 END
----
-35

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + NULLIF ( + - 31, - + 41 * COUNT ( * ) - + - 67 + CAST ( NULL AS INTEGER ) ) - - CASE - - 41 WHEN - + 94 THEN NULL WHEN + ( 72 ) - ( COUNT ( * ) ) THEN NULL ELSE - 4 END
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT ALL COUNT( * ) AS col2, 72 AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-8782
SELECT ALL COUNT ( * ) AS col2, 72 AS col0
----
1
72

query II rowsort
SELECT - 39, 44 * + 86 AS col2
----
-39
3784

query II rowsort
SELECT DISTINCT 40 AS col0, 89 - - 35 - 69 - 3 * + 79 + + - 81 AS col1
----
40
-263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL + 96 * + - ( NULLIF ( - 41, - 92 + - - CAST( NULL AS SIGNED ) * 84 ) ) AS col2
----
3936

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + 96 * + - ( NULLIF ( - 41, - 92 + - - CAST ( NULL AS INTEGER ) * 84 ) ) AS col2
----
3936

query I rowsort
SELECT 41 + - 10 * + 54 AS col0
----
-499

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT - 47, - NULLIF ( - MAX( ALL - 19 ), - 41 + ( + ( 31 ) ) ) AS col2
----
-47
-19

skipif mysql # not compatible
query II rowsort label-8787
SELECT - 47, - NULLIF ( - MAX ( ALL - 19 ), - 41 + ( + ( 31 ) ) ) AS col2
----
-47
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT 18 + + 15 + + CAST( NULL AS SIGNED ) * + - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT 18 + + 15 + + CAST ( NULL AS INTEGER ) * + - 49 AS col0
----
NULL

query I rowsort
SELECT 28 + 64 col0
----
92

query II rowsort
SELECT ALL 56 AS col0, - 14 AS col2
----
56
-14

query I rowsort
SELECT DISTINCT - 78 * + - 65
----
5070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL - 33 / 67 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - 33 / 67 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT 47 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT 47 / 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL COUNT( * ) AS col2, + ( - + 54 )
----
1
-54

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL COUNT ( * ) AS col2, + ( - + 54 )
----
1
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8795
SELECT MAX( CAST( - - 32 AS SIGNED ) ) + - COUNT( * ) AS col1, - COUNT( + 87 ) AS col2
----
31
-1

skipif mysql # not compatible
query II rowsort label-8795
SELECT MAX ( CAST ( - - 32 AS INTEGER ) ) + - COUNT ( * ) AS col1, - COUNT ( + 87 ) AS col2
----
31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL COUNT( - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL COUNT ( - 88 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT ALL - 34 DIV - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - 34 / - COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - 45 + + 78 + - - 17 + + - COUNT( DISTINCT + + 53 )
----
49

skipif mysql # not compatible
query I rowsort label-8798
SELECT - 45 + + 78 + - - 17 + + - COUNT ( DISTINCT + + 53 )
----
49

query II rowsort
SELECT - 84 + - + 24 col1, ( + 98 )
----
-108
98

query I rowsort
SELECT DISTINCT - 95 * + 85 AS col2
----
-8075

query I rowsort
SELECT ALL + 37 + + + 73 AS col1
----
110

query I rowsort
SELECT 67 + 92 + - 49 AS col0
----
110

query I rowsort
SELECT - 67 - ( 64 ) AS col1
----
-131

query II rowsort
SELECT - - 26 AS col2, 34 AS col1
----
26
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT - COUNT( * ) + - 39 + - 1 DIV + COALESCE ( - - 53, - COUNT( * ) * + 18, + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - COUNT ( * ) + - 39 + - 1 / + COALESCE ( - - 53, - COUNT ( * ) * + 18, + COUNT ( * ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - 45 + 85 + + 48 - - CASE + + COALESCE ( 36, - - COUNT( * ), - + AVG ( DISTINCT + 31 ) ) WHEN + 91 - + AVG ( DISTINCT + NULLIF ( + 88, + 51 ) ) + + COUNT( * ) * - + 11 / - COUNT( + 60 ) * ( - - ( + 96 ) ) THEN 92 / - + 37 + 26 - + - 46 * 44 * 60 WHEN + 60 * COALESCE ( + 58, 69 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - 45 + 85 + + 48 - - CASE + + COALESCE ( 36, - - COUNT ( * ), - + AVG ( DISTINCT + 31 ) ) WHEN + 91 - + AVG ( DISTINCT + NULLIF ( + 88, + 51 ) ) + + COUNT ( * ) * - + 11 / - COUNT ( + 60 ) * ( - - ( + 96 ) ) THEN 92 / - + 37 + 26 - + - 46 * 44 * 60 WHEN + 60 * COALESCE ( + 58, 69 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT DISTINCT - COUNT( + - 32 ), 61 AS col0
----
-1
61

skipif mysql # not compatible
query II rowsort label-8807
SELECT DISTINCT - COUNT ( + - 32 ), 61 AS col0
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + ( + 80 ) + + - 66 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8808
SELECT + ( + 80 ) + + - 66 * + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT DISTINCT - 77 AS col2, - COUNT( ALL + - 88 )
----
-77
-1

skipif mysql # not compatible
query II rowsort label-8809
SELECT DISTINCT - 77 AS col2, - COUNT ( ALL + - 88 )
----
-77
-1

query II rowsort
SELECT + COALESCE ( 56, - + 48, - 99 * + ( + 68 ) ) AS col2, + 26 + - + 12 * + + 41 AS col1
----
56
-466

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT + 50 DIV - + 27 + + - 77 * - 17
----
1308

skipif mysql # not compatible
query I rowsort label-8811
SELECT + 50 / - + 27 + + - 77 * - 17
----
1308

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT - 0 * - ( 19 ) DIV - 63 * 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT - 0 * - ( 19 ) / - 63 * 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + 74 + - MAX( + 25 )
----
49

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 74 + - MAX ( + 25 )
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-8814
SELECT 9 col1, 12 DIV - - 65 AS col0
----
9
0

skipif mysql # not compatible
query II rowsort label-8814
SELECT 9 col1, 12 / - - 65 AS col0
----
9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT + 27 DIV + 13 + - - 84 - 43 - + - 96 * + + ( - 27 )
----
-2549

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 27 / + 13 + - - 84 - 43 - + - 96 * + + ( - 27 )
----
-2549

query I rowsort
SELECT + 97 + + + ( - 41 ) AS col2
----
56

query I rowsort
SELECT + + ( + - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8818
SELECT DISTINCT + + CAST( NULL AS SIGNED ), ( COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8818
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT ALL - 0 DIV + 24 + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - 0 / + 24 + 80 AS col0
----
80

query I rowsort
SELECT DISTINCT 80 * - 60 col0
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + COUNT( * ) + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8821
SELECT + COUNT ( * ) + 96 AS col0
----
97

query I rowsort
SELECT - 27 * - + 16 AS col2
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT - NULLIF ( + + 36, - 47 * 92 ) * - CAST( 88 AS SIGNED ) * + CASE 54 WHEN 81 * 75 THEN - ( 88 ) / - 9 + + COALESCE ( + - 54, + COALESCE ( - 62, 49 ) ) + - + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT - NULLIF ( + + 36, - 47 * 92 ) * - CAST ( 88 AS INTEGER ) * + CASE 54 WHEN 81 * 75 THEN - ( 88 ) / - 9 + + COALESCE ( + - 54, + COALESCE ( - 62, 49 ) ) + - + 88 END AS col2
----
NULL

query I rowsort
SELECT + 73 - + + 44 + - - 18
----
47

query I rowsort
SELECT DISTINCT ( 22 ) * + CASE + ( - - 93 ) WHEN - 56 * - + 61 * + 81 * + 92 / 59 THEN - 96 * 84 ELSE NULL END - - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT - 39 * 42 - - COUNT( * ), 7 * + 27 AS col0
----
-1637
189

skipif mysql # not compatible
query II rowsort label-8826
SELECT - 39 * 42 - - COUNT ( * ), 7 * + 27 AS col0
----
-1637
189

query I rowsort
SELECT + 67 * + 46
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT - 47 * COUNT( 6 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT - 47 * COUNT ( 6 ) AS col0
----
-47

query I rowsort
SELECT ALL + 92 + - + 51
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT COUNT( ALL - 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT COUNT ( ALL - 28 ) AS col0
----
1

query I rowsort
SELECT + 31 * 95 AS col2
----
2945

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT - 37 * - + CASE 87 WHEN - 74 THEN 2 * + + 3 * - 43 * - + 61 - 79 * CASE - 38 WHEN - 87 THEN NULL ELSE 46 END * 66 + - - 1 END AS col1, + 11 * MAX( - 47 ) - - + 65 AS col0
----
NULL
-452

skipif mysql # not compatible
query II rowsort label-8832
SELECT - 37 * - + CASE 87 WHEN - 74 THEN 2 * + + 3 * - 43 * - + 61 - 79 * CASE - 38 WHEN - 87 THEN NULL ELSE 46 END * 66 + - - 1 END AS col1, + 11 * MAX ( - 47 ) - - + 65 AS col0
----
NULL
-452

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT - - COUNT( 13 ) * - COUNT( * ) * - 45 * - 27, + 19 AS col2
----
-1215
19

skipif mysql # not compatible
query II rowsort label-8833
SELECT - - COUNT ( 13 ) * - COUNT ( * ) * - 45 * - 27, + 19 AS col2
----
-1215
19

query I rowsort
SELECT DISTINCT 61 + - 67 AS col1
----
-6

query I rowsort
SELECT DISTINCT + + 82 + + 89 + - 72
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT ALL - NULLIF ( 33, + 19 ) + - + ( + 46 ) * - + 85 DIV - + 5
----
-815

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - NULLIF ( 33, + 19 ) + - + ( + 46 ) * - + 85 / - + 5
----
-815

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT ALL + + 7 + + + 7 * + - 61 + - - 86 * - - 9, 89 * + COUNT( * ) * + 93 col2
----
354
8277

skipif mysql # not compatible
query II rowsort label-8837
SELECT ALL + + 7 + + + 7 * + - 61 + - - 86 * - - 9, 89 * + COUNT ( * ) * + 93 col2
----
354
8277

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + - 90 + + 27 - + - COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + - 90 + + 27 - + - COUNT ( * ) AS col0
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8839
SELECT - 76 + - + 5 AS col2, + 43 + CAST( NULL AS DECIMAL ) col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-8839
SELECT - 76 + - + 5 AS col2, + 43 + CAST ( NULL AS REAL ) col2
----
-81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT - 45 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 45 / - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT - + COUNT( * ) * - 66 col0, - 54 col0
----
66
-54

skipif mysql # not compatible
query II rowsort label-8841
SELECT - + COUNT ( * ) * - 66 col0, - 54 col0
----
66
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT ALL 15 DIV - 76 + + ( - 96 ) - - 60 - + 5
----
-41

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL 15 / - 76 + + ( - 96 ) - - 60 - + 5
----
-41

query II rowsort
SELECT + 72 * - 52 col1, + 63 - + 12 col0
----
-3744
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL + COUNT( + 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + COUNT ( + 40 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 9 * 31 * + 86 + - CASE + 87 WHEN - 35 THEN 89 WHEN COUNT( * ) + + + 62 + - 42 * + + 54 THEN - + 40 * + + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT 9 * 31 * + 86 + - CASE + 87 WHEN - 35 THEN 89 WHEN COUNT ( * ) + + + 62 + - 42 * + + 54 THEN - + 40 * + + 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT ALL + + 96 DIV - - 80 - - 59
----
60

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + + 96 / - - 80 - - 59
----
60

query I rowsort
SELECT - 34 * - 86 * + 42
----
122808

query I rowsort
SELECT DISTINCT + + 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL - 95 * COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL - 95 * COUNT ( * ) AS col1
----
-95

query I rowsort
SELECT - 45 * - ( - 17 ) AS col2
----
-765

query II rowsort
SELECT + 11 * - 60 + - + 87, + 63 AS col0
----
-747
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ( - COALESCE ( + COUNT( ALL 15 ), 47 * + - ( 55 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( - COALESCE ( + COUNT ( ALL 15 ), 47 * + - ( 55 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT COUNT( * ) * + 37 DIV + 36 + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8853
SELECT COUNT ( * ) * + 37 / + 36 + 52 AS col0
----
53

query I rowsort
SELECT 32 * + + 15 + + + 49
----
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT + CAST( + ( - - NULLIF ( 56, NULLIF ( - - 24, - 55 ) + + COUNT( * ) + 12 ) ) AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8855
SELECT + CAST ( + ( - - NULLIF ( 56, NULLIF ( - - 24, - 55 ) + + COUNT ( * ) + 12 ) ) AS INTEGER ) AS col1
----
56

query II rowsort
SELECT ALL + 86 AS col0, + 27 AS col2
----
86
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + 73 + COUNT( * ) * + - 81 + + - 45 col1
----
-53

skipif mysql # not compatible
query I rowsort label-8857
SELECT + 73 + COUNT ( * ) * + - 81 + + - 45 col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8858
SELECT DISTINCT + MAX( ALL + - ( + - 43 ) ) AS col0, 32
----
43
32

skipif mysql # not compatible
query II rowsort label-8858
SELECT DISTINCT + MAX ( ALL + - ( + - 43 ) ) AS col0, 32
----
43
32

query I rowsort
SELECT + 50 + + - 8
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT ALL 61 * 92 * 0 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL 61 * 92 * 0 / - 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT DISTINCT + COUNT( * ), 88 * 86 + 23 - - + 97 AS col2
----
1
7688

skipif mysql # not compatible
query II rowsort label-8861
SELECT DISTINCT + COUNT ( * ), 88 * 86 + 23 - - + 97 AS col2
----
1
7688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL COUNT( * ) * - CASE + CASE - 60 WHEN CAST( NULL AS SIGNED ) THEN + CAST( + - COUNT( * ) AS SIGNED ) ELSE NULL END WHEN - 73 - 6 * + 7 - + 22 THEN + AVG ( - 66 ) / + - COUNT( * ) + + 0 ELSE NULL END + + 63 + - AVG ( DISTINCT + - 52 ) * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL COUNT ( * ) * - CASE + CASE - 60 WHEN CAST ( NULL AS INTEGER ) THEN + CAST ( + - COUNT ( * ) AS INTEGER ) ELSE NULL END WHEN - 73 - 6 * + 7 - + 22 THEN + AVG ( - 66 ) / + - COUNT ( * ) + + 0 ELSE NULL END + + 63 + - AVG ( DISTINCT + - 52 ) * - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + 16 * + - 77 * + COALESCE ( - 99, 63 - 41 * - 65 * + + 59, - - COUNT( * ) + 80 ) + + COUNT( * ) + + 41
----
122010

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 16 * + - 77 * + COALESCE ( - 99, 63 - 41 * - 65 * + + 59, - - COUNT ( * ) + 80 ) + + COUNT ( * ) + + 41
----
122010

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT + 31 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 31 / - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT + COUNT( * ) DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT + COUNT ( * ) / + 34 AS col2
----
0

query I rowsort
SELECT + 96 + - 79
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT - NULLIF ( - COUNT( * ), + - 18 ) AS col0, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-8867
SELECT - NULLIF ( - COUNT ( * ), + - 18 ) AS col0, 50
----
1
50

query I rowsort
SELECT + 13 * + + 68 col0
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL 41 * 93 + + - COUNT( * ) AS col0
----
3812

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 41 * 93 + + - COUNT ( * ) AS col0
----
3812

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + SUM( ALL + 28 ) * 42 * + 14 AS col2
----
16464

skipif mysql # not compatible
query I rowsort label-8870
SELECT + SUM ( ALL + 28 ) * 42 * + 14 AS col2
----
16464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT + COUNT( * ) + + + COUNT( - NULLIF ( + ( 19 ), 29 + - COALESCE ( - 95, + 17 ) ) ) + - CAST( + COUNT( * ) AS SIGNED ) + + 8 + COUNT( * ) - COALESCE ( 15, + + 21 ) * 34 AS col1
----
-500

skipif mysql # not compatible
query I rowsort label-8871
SELECT + COUNT ( * ) + + + COUNT ( - NULLIF ( + ( 19 ), 29 + - COALESCE ( - 95, + 17 ) ) ) + - CAST ( + COUNT ( * ) AS INTEGER ) + + 8 + COUNT ( * ) - COALESCE ( 15, + + 21 ) * 34 AS col1
----
-500

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8872
SELECT MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8873
SELECT + - COUNT( * ) + + 90 * + - SUM( DISTINCT + ( + 85 ) ) * - 48 - + 43 * + 7 DIV + COUNT( * ) + + + 90
----
366988

skipif mysql # not compatible
query I rowsort label-8873
SELECT + - COUNT ( * ) + + 90 * + - SUM ( DISTINCT + ( + 85 ) ) * - 48 - + 43 * + 7 / + COUNT ( * ) + + + 90
----
366988

query II rowsort
SELECT ALL + 40 AS col0, 46
----
40
46

query I rowsort
SELECT ALL - 54 * - 90 AS col0
----
4860

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - COUNT( * ) + + ( + - 22 ) + - - 52
----
29

skipif mysql # not compatible
query I rowsort label-8876
SELECT - COUNT ( * ) + + ( + - 22 ) + - - 52
----
29

query I rowsort
SELECT DISTINCT + 43 + 28 + + 21 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + 29 + - - MIN( DISTINCT + 36 ) + - 73 * + - 50 + + 14
----
3729

skipif mysql # not compatible
query I rowsort label-8878
SELECT + 29 + - - MIN ( DISTINCT + 36 ) + - 73 * + - 50 + + 14
----
3729

query I rowsort
SELECT 65 + + 2 * - + 64 * + 76 * - - 85 * 31
----
-25633215

query I rowsort
SELECT ALL - - 75 * 59 * 84
----
371700

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT - - COUNT( + + COALESCE ( 19, + 46 ) ) AS col0, + ( COUNT( * ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8881
SELECT - - COUNT ( + + COALESCE ( 19, + 46 ) ) AS col0, + ( COUNT ( * ) ) AS col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT CASE + 81 WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE + 10 END
----
10

skipif mysql # not compatible
query I rowsort label-8882
SELECT CASE + 81 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 10 END
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT DISTINCT + 60 * 26 + - + 31 AS col0, COUNT( * ) * MIN( - 75 )
----
1529
-75

skipif mysql # not compatible
query II rowsort label-8883
SELECT DISTINCT + 60 * 26 + - + 31 AS col0, COUNT ( * ) * MIN ( - 75 )
----
1529
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL - COUNT( * ) * + COUNT( * ) + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - 37
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + MIN( - - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8885
SELECT + MIN ( - - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL ( 86 ) * - - ( MAX( + 27 ) ) AS col2
----
2322

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL ( 86 ) * - - ( MAX ( + 27 ) ) AS col2
----
2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8887
SELECT - 32 + 6 * + 77 * 21 * - COUNT( * ) * + 65 + + - COUNT( 85 ) * + 18 - + 3 + - - 14 DIV - + 40 - 0, - 63 AS col2
----
-630683
-63

skipif mysql # not compatible
query II rowsort label-8887
SELECT - 32 + 6 * + 77 * 21 * - COUNT ( * ) * + 65 + + - COUNT ( 85 ) * + 18 - + 3 + - - 14 / - + 40 - 0, - 63 AS col2
----
-630683
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-8888
SELECT 97 DIV - 28 + + 40 AS col2, 91 AS col0
----
37
91

skipif mysql # not compatible
query II rowsort label-8888
SELECT 97 / - 28 + + 40 AS col2, 91 AS col0
----
37
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8889
SELECT 6 DIV - 23 AS col1, + COUNT( * ) + COUNT( * ) DIV 75 + 75 AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-8889
SELECT 6 / - 23 AS col1, + COUNT ( * ) + COUNT ( * ) / 75 + 75 AS col2
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( * ) * + 92 * - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( * ) * + 92 * - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT 51 * - 14 col2, - COUNT( * ) AS col1
----
-714
-1

skipif mysql # not compatible
query II rowsort label-8891
SELECT 51 * - 14 col2, - COUNT ( * ) AS col1
----
-714
-1

query I rowsort
SELECT DISTINCT + 19 * 20 * 3 col1
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * + 28 col1
----
28

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * + 28 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT DISTINCT - ( + 79 ) + + + 82 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - ( + 79 ) + + + 82 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT 41 * 4 * COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-8895
SELECT 41 * 4 * COUNT ( * )
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL - 74 + + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - 74 + + COUNT ( * ) AS col1
----
-73

query II rowsort
SELECT DISTINCT - ( 26 ) AS col0, - 71 AS col0
----
-26
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL - MIN( + 87 ) * - + 44
----
3828

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - MIN ( + 87 ) * - + 44
----
3828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8899
SELECT ALL 14 + + 29, MIN( + 1 ) DIV + - COUNT( * ) AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL 14 + + 29, MIN ( + 1 ) / + - COUNT ( * ) AS col1
----
43
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 56 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT 31 + - COUNT( * ) + 70
----
100

skipif mysql # not compatible
query I rowsort label-8901
SELECT 31 + - COUNT ( * ) + 70
----
100

query I rowsort
SELECT ALL + 29 + - - 72 * 67 + - 32 + - 27 col1
----
4794

query I rowsort
SELECT ALL 78 + - - 91 * + + 86 col2
----
7904

query I rowsort
SELECT 47 - + - 35 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8905
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL - 58 + + - 51 AS col0
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT ALL COUNT( 61 ) DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL COUNT ( 61 ) / 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT ( + - 46 ) DIV - 93 + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-8908
SELECT ( + - 46 ) / - 93 + - 26
----
-26

query I rowsort
SELECT - 5 - - + 59
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8910
SELECT DISTINCT 79 * + - 26, - 36 DIV + - COUNT( * ) AS col0
----
-2054
36

skipif mysql # not compatible
query II rowsort label-8910
SELECT DISTINCT 79 * + - 26, - 36 / + - COUNT ( * ) AS col0
----
-2054
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8911
SELECT CAST( NULL AS SIGNED ) * 31 AS col0, 19 + - 76
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-8911
SELECT CAST ( NULL AS INTEGER ) * 31 AS col0, 19 + - 76
----
NULL
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL - 64 - CAST( + + ( + 87 ) AS SIGNED ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL - 64 - CAST ( + + ( + 87 ) AS INTEGER ) AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT MIN( ALL - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8913
SELECT MIN ( ALL - 20 ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL 24 DIV + 14 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 24 / + 14 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8915
SELECT ALL + NULLIF ( + + 18, - 23 * + 92 ) AS col0, - 42 + MAX( ALL - 7 ) * - - COALESCE ( ( + - 5 ), + CASE + 18 WHEN - COUNT( * ) * + 3 + + 59 - + 46 THEN - 61 + 58 + 62 - + 22 * + + NULLIF ( ( - CAST( - CASE - 11 WHEN - COUNT( * ) THEN - 99 END AS SIGNED ) ), + - 37 * 84 ) DIV 13 WHEN COUNT( * ) THEN + COALESCE ( - 83, - 45 - 52 ) END ) AS col0
----
18
-7

skipif mysql # not compatible
query II rowsort label-8915
SELECT ALL + NULLIF ( + + 18, - 23 * + 92 ) AS col0, - 42 + MAX ( ALL - 7 ) * - - COALESCE ( ( + - 5 ), + CASE + 18 WHEN - COUNT ( * ) * + 3 + + 59 - + 46 THEN - 61 + 58 + 62 - + 22 * + + NULLIF ( ( - CAST ( - CASE - 11 WHEN - COUNT ( * ) THEN - 99 END AS INTEGER ) ), + - 37 * 84 ) / 13 WHEN COUNT ( * ) THEN + COALESCE ( - 83, - 45 - 52 ) END ) AS col0
----
18
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT - - MAX( - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8916
SELECT - - MAX ( - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ( - 96 ) + - 37 * - COUNT( - 88 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8917
SELECT ( - 96 ) + - 37 * - COUNT ( - 88 ) AS col0
----
-59

query I rowsort
SELECT ALL - 21 * - - 89
----
-1869

query II rowsort
SELECT ALL - ( - 17 ) AS col2, 25
----
17
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT ( - - CASE + 42 WHEN + 87 THEN NULL WHEN + 38 * 49 + - 44 THEN - COALESCE ( + - 42, - - 9 DIV + + 18, + 93 ) ELSE + 12 - - + COUNT( * ) END ) + + 50
----
63

skipif mysql # not compatible
query I rowsort label-8920
SELECT ( - - CASE + 42 WHEN + 87 THEN NULL WHEN + 38 * 49 + - 44 THEN - COALESCE ( + - 42, - - 9 / + + 18, + 93 ) ELSE + 12 - - + COUNT ( * ) END ) + + 50
----
63

query II rowsort
SELECT 42 * + 13 + - 26, 60 AS col2
----
520
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL + 88 * + 97 + + COUNT( * ) col1
----
8537

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + 88 * + 97 + + COUNT ( * ) col1
----
8537

query I rowsort
SELECT DISTINCT ( - ( - 87 ) ) * 1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8924
SELECT ALL 52 * - - COALESCE ( - + CAST( NULL AS SIGNED ), COUNT( * ) - 3, + 96, COUNT( * ) ) + + 11 + - 38 + - 42 DIV + 26
----
-132

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL 52 * - - COALESCE ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) - 3, + 96, COUNT ( * ) ) + + 11 + - 38 + - 42 / + 26
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - MIN( - - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - MIN ( - - 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT 66 + + - 47 + + + 18 + - + 79 + - - COALESCE ( + 91, 7, 3 * + 30 * 4 * + CAST( NULL AS SIGNED ) + - + NULLIF ( - 72, - 88 ) + ( + 80 ) ) * + 25 col0
----
2233

skipif mysql # not compatible
query I rowsort label-8926
SELECT 66 + + - 47 + + + 18 + - + 79 + - - COALESCE ( + 91, 7, 3 * + 30 * 4 * + CAST ( NULL AS INTEGER ) + - + NULLIF ( - 72, - 88 ) + ( + 80 ) ) * + 25 col0
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT ALL 89 * - + CAST( NULL AS SIGNED ) + + 48 + + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL 89 * - + CAST ( NULL AS INTEGER ) + + 48 + + - 89
----
NULL

query I rowsort
SELECT + ( 3 ) * 79 + + + 3 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + 43 + + + MAX( DISTINCT + 39 )
----
82

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 43 + + + MAX ( DISTINCT + 39 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT ALL - COUNT( * ) AS col1, + 11 * - 96
----
-1
-1056

skipif mysql # not compatible
query II rowsort label-8930
SELECT ALL - COUNT ( * ) AS col1, + 11 * - 96
----
-1
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8931
SELECT 56 + - CAST( NULL AS SIGNED ) + + CAST( + 76 AS SIGNED ) * CASE 17 WHEN - 23 THEN CAST( NULL AS SIGNED ) - + - 37 * 60 END AS col1, - 42 + 93 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8931
SELECT 56 + - CAST ( NULL AS INTEGER ) + + CAST ( + 76 AS INTEGER ) * CASE 17 WHEN - 23 THEN CAST ( NULL AS INTEGER ) - + - 37 * 60 END AS col1, - 42 + 93 AS col1
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - 70 * MAX( - 28 ) * + - 77 + + 81 + - COALESCE ( 77, - CASE + 1 WHEN - COALESCE ( + - ( + 70 ), ( + + 90 ) + - 11 + + 73 ) * + 20 THEN NULL WHEN 68 * - ( COUNT( * ) ) * + 44 THEN + COUNT( * ) END + + 59, - 91 + - 40 )
----
-150916

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - 70 * MAX ( - 28 ) * + - 77 + + 81 + - COALESCE ( 77, - CASE + 1 WHEN - COALESCE ( + - ( + 70 ), ( + + 90 ) + - 11 + + 73 ) * + 20 THEN NULL WHEN 68 * - ( COUNT ( * ) ) * + 44 THEN + COUNT ( * ) END + + 59, - 91 + - 40 )
----
-150916

query I rowsort
SELECT DISTINCT + 16 * ( - 30 ) AS col1
----
-480

query I rowsort
SELECT 66 + 39 AS col0
----
105

query I rowsort
SELECT ALL + 43 - - 48
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8936
SELECT DISTINCT + COUNT( ALL - + CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) col0, 85 * - ( 99 )
----
NULL
-8415

skipif mysql # not compatible
query II rowsort label-8936
SELECT DISTINCT + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) col0, 85 * - ( 99 )
----
NULL
-8415

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL 24 - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL 24 - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT - + 48 + 63 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - ( MAX( - - 40 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8939
SELECT - ( MAX ( - - 40 ) ) AS col0
----
-40

query I rowsort
SELECT DISTINCT + 26 * - - 3
----
78

query I rowsort
SELECT ALL - 68 - 31 AS col1
----
-99

query II rowsort
SELECT - 55 * - - 20 * + 75 AS col0, + 25 * + + 49 AS col2
----
-82500
1225

onlyif mysql # DIV for integer division: 
query II rowsort label-8943
SELECT DISTINCT + 79, 79 DIV 54 * - 39 + - + 19 AS col2
----
79
-58

skipif mysql # not compatible
query II rowsort label-8943
SELECT DISTINCT + 79, 79 / 54 * - 39 + - + 19 AS col2
----
79
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - + ( - COUNT( * ) ) + + MAX( + 76 )
----
77

skipif mysql # not compatible
query I rowsort label-8944
SELECT - + ( - COUNT ( * ) ) + + MAX ( + 76 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - NULLIF ( - 96, - SUM( DISTINCT 50 ) ) col2
----
96

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - NULLIF ( - 96, - SUM ( DISTINCT 50 ) ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT + CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT ALL - 11 * - 20 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL MAX( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL MAX ( - 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT CAST( + 84 AS SIGNED ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8949
SELECT CAST ( + 84 AS INTEGER ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) + + 39 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) + + 39 AS col0
----
40

query I rowsort
SELECT ALL ( - 31 ) * - + 23 * - 77 * NULLIF ( 86, + - 92 ) + - - 44 AS col2
----
-4721442

query I rowsort
SELECT ALL + 92 * - 80 + - 41 * - 91 AS col2
----
-3629

query I rowsort
SELECT + 41 + 91
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT SUM( - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT SUM ( - - 36 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT ALL ( + COALESCE ( + + COUNT( * ), 7 ) ) + 13 + 69 AS col0, - COUNT( * ) + - - 42
----
83
41

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL ( + COALESCE ( + + COUNT ( * ), 7 ) ) + 13 + 69 AS col0, - COUNT ( * ) + - - 42
----
83
41

query I rowsort
SELECT + 94 * - - 30 AS col2
----
2820

query I rowsort
SELECT + 51 * 38 AS col2
----
1938

query I rowsort
SELECT ALL 62 + + ( - 52 ) AS col2
----
10

query II rowsort
SELECT DISTINCT 78 AS col2, 98
----
78
98

query II rowsort
SELECT ( - 79 ) AS col2, 97
----
-79
97

query I rowsort
SELECT + ( - NULLIF ( + 60, 1 - 45 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + MAX( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8962
SELECT + MAX ( 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT DISTINCT - 12 * - ( + NULLIF ( - 96, - + 85 ) ) * 11 + CAST( + + 68 AS SIGNED ) AS col2
----
-12604

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - 12 * - ( + NULLIF ( - 96, - + 85 ) ) * 11 + CAST ( + + 68 AS INTEGER ) AS col2
----
-12604

query I rowsort
SELECT DISTINCT 61 * 32
----
1952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8965
SELECT + CASE + + 31 WHEN + CAST( NULL AS SIGNED ) * - 8 + + 32 + - + 25 THEN NULL WHEN + 66 THEN - 66 END * 0, 3 + + NULLIF ( + + 41, - + 11 ) AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-8965
SELECT + CASE + + 31 WHEN + CAST ( NULL AS INTEGER ) * - 8 + + 32 + - + 25 THEN NULL WHEN + 66 THEN - 66 END * 0, 3 + + NULLIF ( + + 41, - + 11 ) AS col0
----
NULL
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8966
SELECT - CAST( - CASE 41 WHEN 15 * - 25 + 50 - + 68 * - 48 * + - 14 THEN + 43 ELSE NULL END AS SIGNED ) * + - 80 AS col0, 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8966
SELECT - CAST ( - CASE 41 WHEN 15 * - 25 + 50 - + 68 * - 48 * + - 14 THEN + 43 ELSE NULL END AS INTEGER ) * + - 80 AS col0, 70 AS col0
----
NULL
70

query I rowsort
SELECT ALL 96 * - COALESCE ( - - 28, + + 57 )
----
-2688

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT ALL + 21 AS col0, - COUNT( * )
----
21
-1

skipif mysql # not compatible
query II rowsort label-8968
SELECT ALL + 21 AS col0, - COUNT ( * )
----
21
-1

query I rowsort
SELECT + ( + 94 ) AS col1
----
94

query I rowsort
SELECT + ( + - ( 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT CASE COUNT( + 59 ) WHEN - 58 THEN + 94 + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT CASE COUNT ( + 59 ) WHEN - 58 THEN + 94 + - 19 END
----
NULL

query I rowsort
SELECT + 54 * 58
----
3132

query I rowsort
SELECT ALL 60 * 47 AS col2
----
2820

query I rowsort
SELECT COALESCE ( - 9, 47 )
----
-9

query I rowsort
SELECT + 18 * + 62 AS col0
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - 24 + - COUNT( * ) + + 47 + + - 90
----
-68

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 24 + - COUNT ( * ) + + 47 + + - 90
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8977
SELECT ALL + CAST( NULL AS DECIMAL ) * + 40 * + - 76 * - MIN( 28 ) * - + COUNT( * ) - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + CAST ( NULL AS REAL ) * + 40 * + - 76 * - MIN ( 28 ) * - + COUNT ( * ) - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT NULLIF ( - COUNT( * ), 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8978
SELECT NULLIF ( - COUNT ( * ), 14 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT - COUNT( * ) - - 52 + - 10 + - CASE - 1 WHEN - - ( + ( + 79 ) ) THEN - - COUNT( * ) * COUNT( * ) - - 45 * + CASE + + 34 WHEN - 5 THEN + + COUNT( * ) END / - 23 WHEN - CAST( + + 27 AS SIGNED ) * - 86 / - 11 THEN NULL WHEN 18 * - - 18 + 43 THEN NULL ELSE NULL END / - 45 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT - COUNT ( * ) - - 52 + - 10 + - CASE - 1 WHEN - - ( + ( + 79 ) ) THEN - - COUNT ( * ) * COUNT ( * ) - - 45 * + CASE + + 34 WHEN - 5 THEN + + COUNT ( * ) END / - 23 WHEN - CAST ( + + 27 AS INTEGER ) * - 86 / - 11 THEN NULL WHEN 18 * - - 18 + 43 THEN NULL ELSE NULL END / - 45 * 58 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT - 9 DIV - 60 * - 45 - - 92 col0
----
92

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 9 / - 60 * - 45 - - 92 col0
----
92

query I rowsort
SELECT ALL - + 68 * + ( + 31 )
----
-2108

query I rowsort
SELECT - + 0 * + 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8983
SELECT DISTINCT - 73 * 14 + + MIN( - 26 ) AS col0, + 60 AS col1
----
-1048
60

skipif mysql # not compatible
query II rowsort label-8983
SELECT DISTINCT - 73 * 14 + + MIN ( - 26 ) AS col0, + 60 AS col1
----
-1048
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - SUM( - 50 ) + 62 + 23 + + - 76
----
59

skipif mysql # not compatible
query I rowsort label-8984
SELECT - SUM ( - 50 ) + 62 + 23 + + - 76
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT ALL - - 1 DIV - + 20 * + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - - 1 / - + 20 * + 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - ( - MAX( ALL - 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8986
SELECT - ( - MAX ( ALL - 90 ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL + 81 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + 81 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8988
SELECT ALL + CASE 60 WHEN - 29 * + AVG ( - 22 ) THEN NULL WHEN + 51 + - 24 THEN - 39 WHEN - 0 * - 88 + 29 THEN + 40 - + - 6 * - - COUNT( * ) * ( - 30 ) END * - 67, + SUM( + 43 ) * - 16 + COALESCE ( + 26, + 47, - SUM( CAST( NULL AS SIGNED ) ) * - + 54 * + ( + 29 ) ) AS col0
----
NULL
-662

skipif mysql # not compatible
query II rowsort label-8988
SELECT ALL + CASE 60 WHEN - 29 * + AVG ( - 22 ) THEN NULL WHEN + 51 + - 24 THEN - 39 WHEN - 0 * - 88 + 29 THEN + 40 - + - 6 * - - COUNT ( * ) * ( - 30 ) END * - 67, + SUM ( + 43 ) * - 16 + COALESCE ( + 26, + 47, - SUM ( CAST ( NULL AS INTEGER ) ) * - + 54 * + ( + 29 ) ) AS col0
----
NULL
-662

query II rowsort
SELECT DISTINCT - - 26 + - - 47 AS col0, 50 AS col0
----
73
50

query II rowsort
SELECT - 5 AS col2, 47 * + 12 + - 27 * - + 51 * + 49 - - + 9 AS col1
----
-5
68046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT DISTINCT CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT CAST ( 14 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT - + COUNT( DISTINCT + 40 ) * + 27 + 55 * + 85 * + 32 * ( - + 76 )
----
-11369627

skipif mysql # not compatible
query I rowsort label-8992
SELECT - + COUNT ( DISTINCT + 40 ) * + 27 + 55 * + 85 * + 32 * ( - + 76 )
----
-11369627

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT COUNT( * ), - 34 AS col1
----
1
-34

skipif mysql # not compatible
query II rowsort label-8993
SELECT COUNT ( * ), - 34 AS col1
----
1
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + 30 + + COUNT( * ) + - 73
----
-42

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + 30 + + COUNT ( * ) + - 73
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT MAX( DISTINCT 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8995
SELECT MAX ( DISTINCT 39 )
----
39

query I rowsort
SELECT ALL + - 84 + + 66 * + 39 AS col0
----
2490

query II rowsort
SELECT ALL 67 AS col0, 10 AS col1
----
67
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT - + COUNT( * ) DIV + 55 * 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT - + COUNT ( * ) / + 55 * 43 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL 31 + + + MAX( DISTINCT 53 ) * - CASE - COUNT( * ) WHEN + 3 * - 96 THEN - CASE - 85 WHEN 7 THEN + + 59 / + 97 WHEN 45 THEN NULL END WHEN - + MIN( DISTINCT NULLIF ( + - 27, + 89 ) ) * + 8 * - + 56 + - 69 THEN - 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 31 + + + MAX ( DISTINCT 53 ) * - CASE - COUNT ( * ) WHEN + 3 * - 96 THEN - CASE - 85 WHEN 7 THEN + + 59 / + 97 WHEN 45 THEN NULL END WHEN - + MIN ( DISTINCT NULLIF ( + - 27, + 89 ) ) * + 8 * - + 56 + - 69 THEN - 73 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9000
SELECT - MIN( - - 82 ) AS col1, + CAST( - + 39 AS SIGNED ) * + 36 * 50 + - 25 AS col1
----
-82
-70225

skipif mysql # not compatible
query II rowsort label-9000
SELECT - MIN ( - - 82 ) AS col1, + CAST ( - + 39 AS INTEGER ) * + 36 * 50 + - 25 AS col1
----
-82
-70225

query I rowsort
SELECT ALL + 78 + - 60 + 51 + + 33 - + NULLIF ( 21, - AVG ( 37 ) + - 38 ) * - 42 - + - 87 AS col2
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT + COUNT( * ) - - MAX( ALL + 57 )
----
58

skipif mysql # not compatible
query I rowsort label-9002
SELECT + COUNT ( * ) - - MAX ( ALL + 57 )
----
58

query I rowsort
SELECT DISTINCT + ( + ( + 96 ) ) + ( + 10 )
----
106

query I rowsort
SELECT ALL 3 + + 91
----
94

query II rowsort
SELECT DISTINCT 20 * + 20 AS col0, + 31
----
400
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - 85 + + COUNT( * ) + 74 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9006
SELECT - 85 + + COUNT ( * ) + 74 AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT ALL + COUNT( * ) DIV 97 - + 6
----
-6

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + COUNT ( * ) / 97 - + 6
----
-6

query I rowsort
SELECT 16 * - 56 + - 2 AS col1
----
-898

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL 49 - + 88 * 18 - 22 - - - MAX( 44 )
----
-1601

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 49 - + 88 * 18 - 22 - - - MAX ( 44 )
----
-1601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT 52 DIV + 89 * - 6 * - - ( 22 ) + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9010
SELECT 52 / + 89 * - 6 * - - ( 22 ) + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 1 + - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL 7 * + MAX( - 36 )
----
-252

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL 7 * + MAX ( - 36 )
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT + + MAX( - - 40 ), 40
----
40
40

skipif mysql # not compatible
query II rowsort label-9013
SELECT + + MAX ( - - 40 ), 40
----
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL + 66 * CASE + 47 WHEN + 93 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + 66 * CASE + 47 WHEN + 93 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 19 * - 34
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - 33 * + MIN( ALL + + 70 )
----
-2310

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - 33 * + MIN ( ALL + + 70 )
----
-2310

query I rowsort
SELECT ALL + 16 + - + 47
----
-31

query I rowsort
SELECT + 83 * - 27 * + 52
----
-116532

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL - SUM( + 86 ) + + 43 + + + 71
----
28

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL - SUM ( + 86 ) + + 43 + + + 71
----
28

query I rowsort
SELECT ALL + ( - - ( 79 ) ) + + 66
----
145

query I rowsort
SELECT - + CASE - - 46 WHEN + 8 * - - 4 THEN NULL ELSE + 98 END AS col2
----
-98

query I rowsort
SELECT ALL 32 + 40 + - 90 * + + 86 AS col0
----
-7668

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9023
SELECT DISTINCT - 42 + - CAST( NULL AS DECIMAL ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - 42 + - CAST ( NULL AS REAL ) + 3
----
NULL

query I rowsort
SELECT ALL + - 48 + - 21 * - 71 * 86
----
128178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT + 40 + - 61 - - 40 + - 19 * CASE + - 88 WHEN 51 * - 16 + - + 77 THEN - CAST( + 24 AS SIGNED ) WHEN + - 17 * + - 50 + - - 12 + + SUM( + 67 ) / + ( + - COUNT( * ) ) THEN 97 - - 28 - - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + 40 + - 61 - - 40 + - 19 * CASE + - 88 WHEN 51 * - 16 + - + 77 THEN - CAST ( + 24 AS INTEGER ) WHEN + - 17 * + - 50 + - - 12 + + SUM ( + 67 ) / + ( + - COUNT ( * ) ) THEN 97 - - 28 - - 94 END AS col2
----
NULL

query I rowsort
SELECT ALL + 74 + - 50 * - - 22 AS col1
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT ALL - CAST( NULL AS SIGNED ) * + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT 66 + - COUNT( * ) * - - 51, 13 AS col0
----
15
13

skipif mysql # not compatible
query II rowsort label-9028
SELECT 66 + - COUNT ( * ) * - - 51, 13 AS col0
----
15
13

query II rowsort
SELECT 37 * + 90 * + + 33 AS col2, - 86
----
109890
-86

query II rowsort
SELECT ALL 83, 69 * - 64 AS col1
----
83
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - ( + COUNT( * ) ) - + 20 * 80
----
-1601

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - ( + COUNT ( * ) ) - + 20 * 80
----
-1601

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT ALL 40, 26 * + + SUM( - + 17 ) col2
----
40
-442

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL 40, 26 * + + SUM ( - + 17 ) col2
----
40
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL COUNT( * ) - 1 + - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL COUNT ( * ) - 1 + - 40 AS col1
----
-40

query I rowsort
SELECT ALL 8 * + 11
----
88

query I rowsort
SELECT 75 * 56
----
4200

query I rowsort
SELECT DISTINCT 43 * + 7 * + 54
----
16254

query I rowsort
SELECT DISTINCT + 57 * 53
----
3021

query I rowsort
SELECT 65 * - - 21 AS col0
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT 7 * MIN( - 4 )
----
-28

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT 7 * MIN ( - 4 )
----
-28

query I rowsort
SELECT ALL 66 * + 59
----
3894

query I rowsort
SELECT + 22 * 19
----
418

query II rowsort
SELECT ALL - 44 AS col0, 24 + 79
----
-44
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9043
SELECT - COUNT( * ) DIV + + 1 + - 64 - - - 11 AS col0, - 64 * + 29 AS col2
----
-76
-1856

skipif mysql # not compatible
query II rowsort label-9043
SELECT - COUNT ( * ) / + + 1 + - 64 - - - 11 AS col0, - 64 * + 29 AS col2
----
-76
-1856

query I rowsort
SELECT DISTINCT + - 85 + + 25
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9045
SELECT ALL - 90 AS col0, CASE 6 WHEN 78 * + + 17 THEN + CAST( NULL AS SIGNED ) * 89 + - - CAST( 47 AS SIGNED ) - - 59 * - 66 + - - 5 / + 17 ELSE NULL END
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9045
SELECT ALL - 90 AS col0, CASE 6 WHEN 78 * + + 17 THEN + CAST ( NULL AS INTEGER ) * 89 + - - CAST ( 47 AS INTEGER ) - - 59 * - 66 + - - 5 / + 17 ELSE NULL END
----
-90
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT DISTINCT + 56 DIV + 1 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT + 56 / + 1 AS col2
----
56

query I rowsort
SELECT + + COALESCE ( + - 49, - 61 ) AS col0
----
-49

query I rowsort
SELECT DISTINCT - - 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT SUM( ALL 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9049
SELECT SUM ( ALL 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT + 38 + + 68 * 65 * - - 46 * - 98 + 95 AS col1, + COUNT( * ) AS col1
----
-19925227
1

skipif mysql # not compatible
query II rowsort label-9050
SELECT + 38 + + 68 * 65 * - - 46 * - 98 + 95 AS col1, + COUNT ( * ) AS col1
----
-19925227
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9051
SELECT - 47 * - 80 DIV - COALESCE ( + CASE COUNT( ALL 85 ) WHEN - ( + COALESCE ( - + 70, + 52 DIV + + 34 * - + 20 + - 62 ) ) THEN - 22 * 46 WHEN 88 + 80 + + COUNT( * ) THEN - 63 * + COALESCE ( COUNT( * ), + - 92 + + 52, + - 67 + + AVG ( DISTINCT + - 19 ) * + + 46 ) ELSE NULL END, - COUNT( * ) + + 36 + - COUNT( * ) + 60 * + + 16 * + - 95 * 94, - CAST( NULL AS SIGNED ) + 29 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT - 47 * - 80 / - COALESCE ( + CASE COUNT ( ALL 85 ) WHEN - ( + COALESCE ( - + 70, + 52 / + + 34 * - + 20 + - 62 ) ) THEN - 22 * 46 WHEN 88 + 80 + + COUNT ( * ) THEN - 63 * + COALESCE ( COUNT ( * ), + - 92 + + 52, + - 67 + + AVG ( DISTINCT + - 19 ) * + + 46 ) ELSE NULL END, - COUNT ( * ) + + 36 + - COUNT ( * ) + 60 * + + 16 * + - 95 * 94, - CAST ( NULL AS INTEGER ) + 29 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + 51 * + 55 + - 65 * - + CASE + NULLIF ( - + 7, - - 85 ) WHEN - - COUNT( DISTINCT + + 21 ) THEN + 54 * + ( - - 48 ) * - 49 WHEN + ( - 96 ) THEN NULL END * - 95 * COUNT( * ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 51 * + 55 + - 65 * - + CASE + NULLIF ( - + 7, - - 85 ) WHEN - - COUNT ( DISTINCT + + 21 ) THEN + 54 * + ( - - 48 ) * - 49 WHEN + ( - 96 ) THEN NULL END * - 95 * COUNT ( * ) + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + 60 * - 45 + - SUM( DISTINCT + 12 )
----
-2712

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + 60 * - 45 + - SUM ( DISTINCT + 12 )
----
-2712

query I rowsort
SELECT ALL 30 + + + 81 AS col1
----
111

query I rowsort
SELECT DISTINCT - NULLIF ( 20, + 46 + + 36 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL + SUM( DISTINCT + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + SUM ( DISTINCT + 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT 82 * - - COUNT( * ) AS col1, - ( - 62 ) * + + 24 * + - 64 + + 59 AS col0
----
82
-95173

skipif mysql # not compatible
query II rowsort label-9057
SELECT 82 * - - COUNT ( * ) AS col1, - ( - 62 ) * + + 24 * + - 64 + + 59 AS col0
----
82
-95173

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT ALL + 43 - 3 AS col2, + COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL + 43 - 3 AS col2, + COUNT ( * ) AS col1
----
40
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9059
SELECT DISTINCT CAST( - 19 AS SIGNED ) DIV + 45 * - 93 - - 76 + + 11 + - COUNT( * ) * NULLIF ( - 74, + 45 * - 99 ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT CAST ( - 19 AS INTEGER ) / + 45 * - 93 - - 76 + + 11 + - COUNT ( * ) * NULLIF ( - 74, + 45 * - 99 ) AS col2
----
161

query II rowsort
SELECT - ( - 15 ) * 49 + - 58, ( + 20 ) AS col1
----
677
20

query I rowsort
SELECT ALL 20 * - 8 * - 11
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL MIN( - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL MIN ( - 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9063
SELECT - CAST( NULL AS DECIMAL ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT - CAST ( NULL AS REAL ) - - 88 AS col0
----
NULL

query I rowsort
SELECT + 2 + + 31 + 32 * + ( - ( - 66 ) ) * - 89 AS col1
----
-187935

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT + 78 + + + 1 + + - 5 * - 27, COUNT( DISTINCT 27 ) AS col2
----
214
1

skipif mysql # not compatible
query II rowsort label-9065
SELECT + 78 + + + 1 + + - 5 * - 27, COUNT ( DISTINCT 27 ) AS col2
----
214
1

query I rowsort
SELECT - 60 * + - 68 AS col0
----
4080

query I rowsort
SELECT NULLIF ( - 3, + 48 + 70 / + - 80 * 26 + 36 + - 73 + NULLIF ( AVG ( ALL - + 19 ), + - 15 ) )
----
-3

query I rowsort
SELECT DISTINCT 72 * + 22 + + - 20 * - 17 AS col2
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL CASE 7 WHEN 42 THEN - COUNT( * ) END * 13 + - - 8 + + + 73 * 64 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL CASE 7 WHEN 42 THEN - COUNT ( * ) END * 13 + - - 8 + + + 73 * 64 + + 21
----
NULL

query I rowsort
SELECT + NULLIF ( - 30, + - 94 ) AS col2
----
-30

query I rowsort
SELECT - 33 + - + 77 AS col2
----
-110

query I rowsort
SELECT ALL - ( 53 ) * - - 49 + + 16 + + 5 * 60 + + 57 + + - 40
----
-2264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT 63 DIV - + 42 + + 60 + MAX( + 50 ) * + 86 AS col0
----
4359

skipif mysql # not compatible
query I rowsort label-9073
SELECT 63 / - + 42 + + 60 + MAX ( + 50 ) * + 86 AS col0
----
4359

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - NULLIF ( - - 59, + 61 * - 53 * 8 * + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9074
SELECT - NULLIF ( - - 59, + 61 * - 53 * 8 * + COUNT ( * ) )
----
-59

query I rowsort
SELECT + - ( + - 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT COUNT( * ) * - 61 - - + 1 + - 57 * - - 55 * - 96 * - 59 + + 87 + - - COUNT( * ) + + - 56
----
-17756668

skipif mysql # not compatible
query I rowsort label-9076
SELECT COUNT ( * ) * - 61 - - + 1 + - 57 * - - 55 * - 96 * - 59 + + 87 + - - COUNT ( * ) + + - 56
----
-17756668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT - + 78 * - + COALESCE ( + + CAST( NULL AS SIGNED ), + 92 ) * + 57 + 26 * + 51
----
410358

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + 78 * - + COALESCE ( + + CAST ( NULL AS INTEGER ), + 92 ) * + 57 + 26 * + 51
----
410358

query I rowsort
SELECT ALL + - 72 * + + 58 + - 22 * + + 54 AS col0
----
-5364

query I rowsort
SELECT + 92 * COALESCE ( - + 55, 62 + + 19 - - 52 * - NULLIF ( 95, - 9 * - 92 + - 93 ) ) AS col2
----
-5060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT - 36 * - - COUNT( 80 ) + 38 + 43 + + 69 + + + COALESCE ( 34, - COUNT( * ) + + + 85 - 82 * - + 20 * 29 * 72 DIV COUNT( * ) ) * - COUNT( * ) * + 59 AS col1
----
-1892

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 36 * - - COUNT ( 80 ) + 38 + 43 + + 69 + + + COALESCE ( 34, - COUNT ( * ) + + + 85 - 82 * - + 20 * 29 * 72 / COUNT ( * ) ) * - COUNT ( * ) * + 59 AS col1
----
-1892

query I rowsort
SELECT ALL - + 77 * - 14 * + 96
----
103488

query I rowsort
SELECT + - ( + + NULLIF ( 37, + - 15 ) ) * - 76
----
2812

query I rowsort
SELECT ALL 19 * 7 - - 1
----
134

query I rowsort
SELECT + ( - 46 ) col1
----
-46

query I rowsort
SELECT - 38 * + 40 col2
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT SUM( DISTINCT + 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9086
SELECT SUM ( DISTINCT + 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + MIN( + + 69 ) + + 3 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9087
SELECT + MIN ( + + 69 ) + + 3 AS col1
----
72

query II rowsort
SELECT + 44 - 49 + - 31, 55 * + 73 AS col1
----
-36
4015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT DISTINCT ( - CAST( - 17 AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT ( - CAST ( - 17 AS INTEGER ) )
----
17

query I rowsort
SELECT ALL 32 * - 64 AS col2
----
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL 44 * + ( - - MAX( 80 ) )
----
3520

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL 44 * + ( - - MAX ( 80 ) )
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT MIN( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT MIN ( ALL + 49 )
----
49

query I rowsort
SELECT DISTINCT 79 * - + 37 AS col2
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT MIN( ALL + - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT MIN ( ALL + - 99 )
----
-99

query I rowsort
SELECT ALL 96 * + ( + 70 )
----
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT + NULLIF ( + COALESCE ( - 56, + - 23, + - ( + - 32 ) DIV - - 45 DIV 49 DIV + 7 + - + 90 ), - 80 * + 80 ) * 98 + - 54 DIV + 68 - - 10
----
-5478

skipif mysql # not compatible
query I rowsort label-9096
SELECT + NULLIF ( + COALESCE ( - 56, + - 23, + - ( + - 32 ) / - - 45 / 49 / + 7 + - + 90 ), - 80 * + 80 ) * 98 + - 54 / + 68 - - 10
----
-5478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + COUNT( * ) + - 2 * + COALESCE ( + 79, + 40, + + 85 / - 37 ) * + + 82 - + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + COUNT ( * ) + - 2 * + COALESCE ( + 79, + 40, + + 85 / - 37 ) * + + 82 - + - 67
----
NULL

query II rowsort
SELECT ALL 44, + 16 AS col2
----
44
16

query II rowsort
SELECT 63, + 52 + - NULLIF ( - 61, + + ( + + 20 ) ) col1
----
63
113

query I rowsort
SELECT + 84 + - - 13 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - 60 DIV - COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-9101
SELECT - 60 / - COUNT ( * ) col0
----
60

query I rowsort
SELECT ALL 66 + - 70
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT MIN( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT MIN ( + 90 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT DISTINCT 84 DIV 10
----
8

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT 84 / 10
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT 95 + - MIN( ALL - - 13 ) * - 66
----
953

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT 95 + - MIN ( ALL - - 13 ) * - 66
----
953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL CASE - 0 WHEN + 65 + + 15 THEN + COUNT( * ) * 49 / - CAST( NULL AS SIGNED ) * + - 85 + - + 83 - + + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL CASE - 0 WHEN + 65 + + 15 THEN + COUNT ( * ) * 49 / - CAST ( NULL AS INTEGER ) * + - 85 + - + 83 - + + 85 END AS col1
----
NULL

query I rowsort
SELECT ALL - 94 * + 59 col0
----
-5546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT + 24 DIV + - SUM( DISTINCT + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT + 24 / + - SUM ( DISTINCT + 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9109
SELECT ALL 30 + + 19 + 57 + COUNT( * ) + + - 5 * + 88 - 22 DIV + 40 + - 83 + - CAST( - - ( 64 ) AS SIGNED ) col0
----
-480

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL 30 + + 19 + 57 + COUNT ( * ) + + - 5 * + 88 - 22 / + 40 + - 83 + - CAST ( - - ( 64 ) AS INTEGER ) col0
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT ALL - 44 DIV + 54 + + - MIN( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - 44 / + 54 + + - MIN ( + 34 )
----
-34

query I rowsort
SELECT ALL + + ( + ( - 6 ) ) col2
----
-6

query I rowsort
SELECT DISTINCT + 54 * - 2 AS col1
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9113
SELECT DISTINCT - 10 DIV + - SUM( DISTINCT + 46 ) * + 95 + 92 + - 61, + COUNT( * ) col0
----
31
1

skipif mysql # not compatible
query II rowsort label-9113
SELECT DISTINCT - 10 / + - SUM ( DISTINCT + 46 ) * + 95 + 92 + - 61, + COUNT ( * ) col0
----
31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT ALL + 74 DIV + + 25 + - + 57 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + 74 / + + 25 + - + 57 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT + + COALESCE ( ( - COALESCE ( + 26, - - 73, + 50 * + 87 - + 1 ) ), + 46, 50 * + + 0 DIV 77 - + ( + 22 ) + 1 * - 5 * + 82 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9115
SELECT + + COALESCE ( ( - COALESCE ( + 26, - - 73, + 50 * + 87 - + 1 ) ), + 46, 50 * + + 0 / 77 - + ( + 22 ) + 1 * - 5 * + 82 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT NULLIF ( 25, + CAST( + 94 AS SIGNED ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9116
SELECT NULLIF ( 25, + CAST ( + 94 AS INTEGER ) ) AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT ALL + COUNT( DISTINCT - 99 ) DIV 7 + COUNT( * ) * - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + COUNT ( DISTINCT - 99 ) / 7 + COUNT ( * ) * - 97 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT 57 * - - 59 * - CAST( NULL AS SIGNED ) + + + 87 - + - 81 + 43 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT 57 * - - 59 * - CAST ( NULL AS INTEGER ) + + + 87 - + - 81 + 43 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 13
----
1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT - ( ( + 29 ) ) * - COALESCE ( - - 68, + - 6 DIV SUM( ALL 79 ) + + + COUNT( * ) ) AS col1
----
1972

skipif mysql # not compatible
query I rowsort label-9120
SELECT - ( ( + 29 ) ) * - COALESCE ( - - 68, + - 6 / SUM ( ALL 79 ) + + + COUNT ( * ) ) AS col1
----
1972

query II rowsort
SELECT DISTINCT + 91 AS col1, + 59
----
91
59

query I rowsort
SELECT - - 16 - + - 6 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9123
SELECT + 14, COALESCE ( - - ( ( - 31 ) ), - 44 * 57 + - MAX( ALL - 89 ), + 73 * 20 * - 52, - 71 * 21 ) + - + COALESCE ( 95, 42 ) + 88 + 12 + - ( - - 18 ) + + AVG ( 93 ) / CASE + 28 WHEN 2 THEN 94 END + 92 * - - COUNT( * ) + - + 10 / - COUNT( * ) AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-9123
SELECT + 14, COALESCE ( - - ( ( - 31 ) ), - 44 * 57 + - MAX ( ALL - 89 ), + 73 * 20 * - 52, - 71 * 21 ) + - + COALESCE ( 95, 42 ) + 88 + 12 + - ( - - 18 ) + + AVG ( 93 ) / CASE + 28 WHEN 2 THEN 94 END + 92 * - - COUNT ( * ) + - + 10 / - COUNT ( * ) AS col2
----
14
NULL

query I rowsort
SELECT ALL - 61 * - + 48 col2
----
2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT - COUNT( * ) DIV + - NULLIF ( + 44, - 40 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT - COUNT ( * ) / + - NULLIF ( + 44, - 40 ) col2
----
0

query I rowsort
SELECT + 92 * + ( + 36 ) * 27 AS col1
----
89424

query I rowsort
SELECT ALL + + ( ( - - 7 ) ) * 52 AS col2
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT - COUNT( * ) + - 83 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT - COUNT ( * ) + - 83 / - 68 AS col2
----
0

query II rowsort
SELECT ALL - ( 8 ), - 16 col2
----
-8
-16

query I rowsort
SELECT 66 * + 4
----
264

query I rowsort
SELECT ALL + 98 * + 42
----
4116

query II rowsort
SELECT - 81 AS col0, - 28 col0
----
-81
-28

query II rowsort
SELECT DISTINCT 82, - 28 * + 94 AS col1
----
82
-2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT SUM( + CAST( + 10 AS SIGNED ) ) * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-9134
SELECT SUM ( + CAST ( + 10 AS INTEGER ) ) * - COUNT ( * )
----
-10

query I rowsort
SELECT ( - 76 ) * - 28
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT COUNT( + + 27 ) - - COUNT( DISTINCT + NULLIF ( + + 73, + - 27 ) ) - - + 79 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( + + 27 ) - - COUNT ( DISTINCT + NULLIF ( + + 73, + - 27 ) ) - - + 79 AS col0
----
81

query I rowsort
SELECT ALL 43 + - + 86 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT 91 * + MAX( - - 93 ) * - 69
----
-583947

skipif mysql # not compatible
query I rowsort label-9138
SELECT 91 * + MAX ( - - 93 ) * - 69
----
-583947

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9139
SELECT ALL - 53 + + 12 DIV + + 68 - COUNT( * ), - COUNT( * ) + + - 65 + ( - 69 ) AS col2
----
-54
-135

skipif mysql # not compatible
query II rowsort label-9139
SELECT ALL - 53 + + 12 / + + 68 - COUNT ( * ), - COUNT ( * ) + + - 65 + ( - 69 ) AS col2
----
-54
-135

query I rowsort
SELECT DISTINCT 78 + - 29 AS col2
----
49

query I rowsort
SELECT DISTINCT 89 + + - 74 AS col2
----
15

query I rowsort
SELECT ALL 13 + 24
----
37

query II rowsort
SELECT 16 - + 54, - 47 * - 50 * 90 AS col2
----
-38
211500

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COUNT( + 42 ) + + 70 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9144
SELECT COUNT ( + 42 ) + + 70 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT COALESCE ( COALESCE ( 91, + 12 * 61 - + 40 ), + - 90 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT COALESCE ( COALESCE ( 91, + 12 * 61 - + 40 ), + - 90 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL - 66 + CAST( + 60 AS SIGNED ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - 66 + CAST ( + 60 AS INTEGER ) col0
----
-6

query I rowsort
SELECT + 77 + - - 43 col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9148
SELECT COUNT( * ) * 34 + - 54 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT COUNT ( * ) * 34 + - 54 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT - MAX( DISTINCT - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9149
SELECT - MAX ( DISTINCT - 19 ) AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT ALL - 17 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL - 17 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL - 6 - + - COUNT( * ) + + COUNT( * ) + + COUNT( * ) * - 79 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - 6 - + - COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) * - 79 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT 88 * COUNT( * ) * + - ( - - 47 ) AS col1, 70
----
-4136
70

skipif mysql # not compatible
query II rowsort label-9152
SELECT 88 * COUNT ( * ) * + - ( - - 47 ) AS col1, 70
----
-4136
70

query I rowsort
SELECT ALL + NULLIF ( + 45, - 46 + 12 / + + 10 + 38 ) - 21 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT CASE + - CASE - 47 WHEN - + 22 THEN - - 59 END WHEN 24 THEN NULL WHEN + ( - COUNT( + 8 ) ) THEN COALESCE ( 66, COUNT( * ), + 16 - - + 72 * + - 60 ) - + 50 ELSE - COUNT( * ) END * - + 63 * - MIN( + 14 )
----
-882

skipif mysql # not compatible
query I rowsort label-9154
SELECT CASE + - CASE - 47 WHEN - + 22 THEN - - 59 END WHEN 24 THEN NULL WHEN + ( - COUNT ( + 8 ) ) THEN COALESCE ( 66, COUNT ( * ), + 16 - - + 72 * + - 60 ) - + 50 ELSE - COUNT ( * ) END * - + 63 * - MIN ( + 14 )
----
-882

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT + + 83 AS col0, ( NULLIF ( + - 73, + COUNT( * ) ) ) * 45 col1
----
83
-3285

skipif mysql # not compatible
query II rowsort label-9155
SELECT + + 83 AS col0, ( NULLIF ( + - 73, + COUNT ( * ) ) ) * 45 col1
----
83
-3285

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT 27 + - + 19 * - + ( - 62 ) - + - 23 * - + 3 DIV - + 97 * - 49
----
-1151

skipif mysql # not compatible
query I rowsort label-9156
SELECT 27 + - + 19 * - + ( - 62 ) - + - 23 * - + 3 / - + 97 * - 49
----
-1151

query II rowsort
SELECT + 53 AS col0, + 29
----
53
29

query I rowsort
SELECT DISTINCT + 48 * 56
----
2688

query II rowsort
SELECT DISTINCT - - 85 * - - 45 col1, 34 * - 87 col2
----
3825
-2958

query I rowsort
SELECT ALL - + ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - COALESCE ( + 36, - - COUNT( * ), ( 55 ) * + + 51 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - COALESCE ( + 36, - - COUNT ( * ), ( 55 ) * + + 51 ) col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT 76 DIV - 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9162
SELECT 76 / - 28 AS col0
----
-2

query I rowsort
SELECT ALL - COALESCE ( + - 76, + 65 * 2 ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + 84 + + 59 * + COUNT( - 79 ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + 84 + + 59 * + COUNT ( - 79 ) AS col0
----
143

query I rowsort
SELECT 1 * + + 23 * 47
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT - 12 * + 84 * + SUM( - 58 ) AS col0
----
58464

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - 12 * + 84 * + SUM ( - 58 ) AS col0
----
58464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT 81 + + CAST( NULL AS SIGNED ) + - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT 81 + + CAST ( NULL AS INTEGER ) + - - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT 91 + - MAX( + + 62 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9168
SELECT 91 + - MAX ( + + 62 ) AS col0
----
29

query I rowsort
SELECT ALL - 22 + - 72 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL 37 + COALESCE ( - COUNT( * ), - - 94 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL 37 + COALESCE ( - COUNT ( * ), - - 94 ) AS col1
----
36

query I rowsort
SELECT DISTINCT - 49 * - - 84
----
-4116

query I rowsort
SELECT 16 + + - 43 + + 83 * + 98 * + 33
----
268395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT + AVG ( ALL - - 62 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT + AVG ( ALL - - 62 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL NULLIF ( - + 84, ( + 42 ) + + + SUM( - 82 ) ) * + 38 * NULLIF ( - - ( 99 ), + 69 * - 16 - - 66 )
----
-316008

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL NULLIF ( - + 84, ( + 42 ) + + + SUM ( - 82 ) ) * + 38 * NULLIF ( - - ( 99 ), + 69 * - 16 - - 66 )
----
-316008

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT DISTINCT + 88 * + 27 AS col0, MAX( - 73 )
----
2376
-73

skipif mysql # not compatible
query II rowsort label-9175
SELECT DISTINCT + 88 * + 27 AS col0, MAX ( - 73 )
----
2376
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL COUNT( * ) * + 1 * + 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL COUNT ( * ) * + 1 * + 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL - - MIN( DISTINCT + 92 ) * + 8 AS col2
----
736

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - - MIN ( DISTINCT + 92 ) * + 8 AS col2
----
736

query II rowsort
SELECT + ( + + 88 ) AS col1, 21 + 35 AS col2
----
88
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT CAST( + 62 AS SIGNED ) * - ( + + 23 )
----
-1426

skipif mysql # not compatible
query I rowsort label-9179
SELECT CAST ( + 62 AS INTEGER ) * - ( + + 23 )
----
-1426

query I rowsort
SELECT + - 72 * + 7 - - 8 + + 14
----
-482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9181
SELECT ALL 44 DIV - MAX( DISTINCT 97 ) + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL 44 / - MAX ( DISTINCT 97 ) + + 78 AS col2
----
78

query II rowsort
SELECT + 13 * 26 AS col2, - 12 * + 45 * 52
----
338
-28080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT + COALESCE ( + COALESCE ( - 17, - 10, + MIN( ALL + - 78 ) DIV - - 70 ), + + 33, - + 59 ) DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + COALESCE ( + COALESCE ( - 17, - 10, + MIN ( ALL + - 78 ) / - - 70 ), + + 33, - + 59 ) / - + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT + ( + + 27 ) * - 22 + + 72 + - CAST( COUNT( * ) AS SIGNED ) + + ( - - ( + - 84 ) ) + - SUM( DISTINCT + + 4 ) * 27 + - - 91 * + + ( ( + - 35 ) ) + - - 69
----
-3831

skipif mysql # not compatible
query I rowsort label-9184
SELECT + ( + + 27 ) * - 22 + + 72 + - CAST ( COUNT ( * ) AS INTEGER ) + + ( - - ( + - 84 ) ) + - SUM ( DISTINCT + + 4 ) * 27 + - - 91 * + + ( ( + - 35 ) ) + - - 69
----
-3831

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + MAX( 8 ) * 22 * - 52 AS col0
----
-9152

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + MAX ( 8 ) * 22 * - 52 AS col0
----
-9152

query I rowsort
SELECT + 3 * - 9
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT + 9 + + + 72 DIV - 98 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9187
SELECT + 9 + + + 72 / - 98 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT MAX( DISTINCT + 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9188
SELECT MAX ( DISTINCT + 18 ) AS col0
----
18

query II rowsort
SELECT ALL 13 * 59 + 53 AS col2, + ( + 7 ) * 24
----
820
168

query I rowsort
SELECT + 73 * - 19 AS col1
----
-1387

query I rowsort
SELECT DISTINCT 79 + + + 61 col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + CASE - 56 WHEN - 9 THEN - 89 WHEN - + 19 THEN + - 31 + + - MIN( DISTINCT 46 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT + CASE - 56 WHEN - 9 THEN - 89 WHEN - + 19 THEN + - 31 + + - MIN ( DISTINCT 46 ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT + MIN( + + 40 ) + + 40
----
80

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + MIN ( + + 40 ) + + 40
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9194
SELECT ALL - 90 + - NULLIF ( + 70, + 19 ) + - 21 + - - 53 * ( - 79 ) * - + COALESCE ( - 19, + COALESCE ( 85, - - 61 - + 65, - 65 ), + 80 * + + ( + ( - 41 ) ) - 78 + - - ( 65 ) * + 55 + + 91 * MAX( ALL ( - 94 ) ) * + + ( + 76 ), - COUNT( * ) * + 43 DIV + + COUNT( * ) ) * + + 66 - + 88 AS col2, CAST( NULL AS SIGNED ) + + 24 AS col2, + + 39 * 3 * + 23 + + 77
----
-5250767
NULL
2768

skipif mysql # not compatible
query III rowsort label-9194
SELECT ALL - 90 + - NULLIF ( + 70, + 19 ) + - 21 + - - 53 * ( - 79 ) * - + COALESCE ( - 19, + COALESCE ( 85, - - 61 - + 65, - 65 ), + 80 * + + ( + ( - 41 ) ) - 78 + - - ( 65 ) * + 55 + + 91 * MAX ( ALL ( - 94 ) ) * + + ( + 76 ), - COUNT ( * ) * + 43 / + + COUNT ( * ) ) * + + 66 - + 88 AS col2, CAST ( NULL AS INTEGER ) + + 24 AS col2, + + 39 * 3 * + 23 + + 77
----
-5250767
NULL
2768

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9195
SELECT 9 AS col2, 21 + + 66 + NULLIF ( ( - - 50 ), 65 * - 80 * + 49 + + 80 - CAST( NULL AS DECIMAL ) + + CASE COALESCE ( - + 76, 2, + 58 - + - ( - 56 ) ) WHEN + COALESCE ( + 29, - 6 * - 76, - 79 + - 9, + + NULLIF ( - 11, + AVG ( DISTINCT 83 ) + ( 4 ) * + ( + 6 ) * - 85 ) ) THEN - 93 + + 90 ELSE NULL END ) - - - 19 AS col1
----
9
118

skipif mysql # not compatible
query II rowsort label-9195
SELECT 9 AS col2, 21 + + 66 + NULLIF ( ( - - 50 ), 65 * - 80 * + 49 + + 80 - CAST ( NULL AS REAL ) + + CASE COALESCE ( - + 76, 2, + 58 - + - ( - 56 ) ) WHEN + COALESCE ( + 29, - 6 * - 76, - 79 + - 9, + + NULLIF ( - 11, + AVG ( DISTINCT 83 ) + ( 4 ) * + ( + 6 ) * - 85 ) ) THEN - 93 + + 90 ELSE NULL END ) - - - 19 AS col1
----
9
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 66 + - ( - NULLIF ( - 66, + MIN( DISTINCT + 34 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 66 + - ( - NULLIF ( - 66, + MIN ( DISTINCT + 34 ) ) ) AS col2
----
0

query I rowsort
SELECT - 78 * 4
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT 22 AS col0, + SUM( ALL NULLIF ( 64, - 23 * - - 97 ) ) * - 43 col1
----
22
-2752

skipif mysql # not compatible
query II rowsort label-9198
SELECT 22 AS col0, + SUM ( ALL NULLIF ( 64, - 23 * - - 97 ) ) * - 43 col1
----
22
-2752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT ALL + 90 - + COUNT( ALL 10 ) DIV + - COALESCE ( - 27, + 28 - - 45 )
----
90

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + 90 - + COUNT ( ALL 10 ) / + - COALESCE ( - 27, + 28 - - 45 )
----
90

query II rowsort
SELECT - 9, + 43 AS col1
----
-9
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT - 83 - + COALESCE ( 31, + MIN( DISTINCT - 96 ) )
----
-114

skipif mysql # not compatible
query I rowsort label-9201
SELECT - 83 - + COALESCE ( 31, + MIN ( DISTINCT - 96 ) )
----
-114

query I rowsort
SELECT - 42 * + 77 col1
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - COUNT( * ) * + COALESCE ( 90, + CASE - + 53 WHEN 16 THEN NULL WHEN + 34 THEN NULL ELSE + - ( + 80 ) + - 72 END * + - 91 )
----
-90

skipif mysql # not compatible
query I rowsort label-9203
SELECT - COUNT ( * ) * + COALESCE ( 90, + CASE - + 53 WHEN 16 THEN NULL WHEN + 34 THEN NULL ELSE + - ( + 80 ) + - 72 END * + - 91 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL COUNT( - + 75 ) - 9
----
-8

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL COUNT ( - + 75 ) - 9
----
-8

query II rowsort
SELECT ALL 36 AS col1, ( + + NULLIF ( + 67, - - 11 ) )
----
36
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT - CASE 54 WHEN - SUM( ALL 15 ) THEN NULL WHEN - CASE + + 7 WHEN - - 15 + + 4 - + + 4 THEN NULL WHEN - 11 * + - 26 THEN + COUNT( * ) * + 40 + - COALESCE ( - COALESCE ( COALESCE ( 11, - 95, + 59 / + + 63 - + CAST( NULL AS SIGNED ) * - ( 43 ) * + - 30 + + - 86 + - 70 - 68 ), 47 / + - 36, 85 + + - 7 ), - 62 * - 63 * + 61 ) + 38 - + + 72 * - + ( - COUNT( * ) ) * COUNT( * ) + 8 END * + 16 + 1 THEN 71 WHEN - 30 / 13 + 2 THEN NULL ELSE + 60 * - 71 END
----
4260

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - CASE 54 WHEN - SUM ( ALL 15 ) THEN NULL WHEN - CASE + + 7 WHEN - - 15 + + 4 - + + 4 THEN NULL WHEN - 11 * + - 26 THEN + COUNT ( * ) * + 40 + - COALESCE ( - COALESCE ( COALESCE ( 11, - 95, + 59 / + + 63 - + CAST ( NULL AS INTEGER ) * - ( 43 ) * + - 30 + + - 86 + - 70 - 68 ), 47 / + - 36, 85 + + - 7 ), - 62 * - 63 * + 61 ) + 38 - + + 72 * - + ( - COUNT ( * ) ) * COUNT ( * ) + 8 END * + 16 + 1 THEN 71 WHEN - 30 / 13 + 2 THEN NULL ELSE + 60 * - 71 END
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL - + 35 - - 97 + - - 35 * - - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - + 35 - - 97 + - - 35 * - - COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT - CAST( + - 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - CAST ( + - 26 AS INTEGER )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT DISTINCT + 67 DIV 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT + 67 / 16 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - + COUNT( * ) + - 51 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9210
SELECT - + COUNT ( * ) + - 51 AS col0
----
-52

query I rowsort
SELECT - + 3 - 85 - - 2 - + 99 col1
----
-185

query I rowsort
SELECT - - 34 + 1 AS col2
----
35

query I rowsort
SELECT - - 29 - + 25 - + + 18 * + - 8 * + 98 AS col2
----
14116

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ALL + 23 DIV + + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 23 / + + 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT - 62 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT - 62 / 91 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9216
SELECT - - CAST( NULL AS SIGNED ) AS col0, + 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9216
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 99 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - 75 + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-9217
SELECT - 75 + COUNT ( * )
----
-74

query I rowsort
SELECT + 45 * + 84 * + 72 + 21
----
272181

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT + + MAX( - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + + MAX ( - 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT + - CAST( NULL AS SIGNED ) * + 56 + + 60 + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT + - CAST ( NULL AS INTEGER ) * + 56 + + 60 + + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT ALL 80 DIV + + 99 * - COUNT( * ) + 86 + + 99 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 80 / + + 99 * - COUNT ( * ) + 86 + + 99 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT MIN( + 24 ) * 92
----
2208

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT MIN ( + 24 ) * 92
----
2208

query I rowsort
SELECT + - 27 + + 3 + 63 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT + ( - CAST( NULL AS SIGNED ) ) * - 52 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - 52 + + 91
----
NULL

query I rowsort
SELECT + 68 + + + 85
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL CASE MIN( DISTINCT - 25 ) WHEN 80 * + NULLIF ( - - 7, - 65 * - COALESCE ( NULLIF ( + 21, - 88 * + - 95 + - - 52 ), - 78 * + - COALESCE ( - 18, - - 39 + 96 ) + + + 82 ) ) - - 94 * + 10 * - + 39 THEN 71 / + 22 * - NULLIF ( - + 67, - ( 39 ) ) * + + NULLIF ( + - 13, COUNT( * ) ) + COUNT( * ) + - + ( 42 ) WHEN COUNT( * ) + - 90 * - ( + + 74 ) THEN - 98 ELSE NULL END * - 45 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL CASE MIN ( DISTINCT - 25 ) WHEN 80 * + NULLIF ( - - 7, - 65 * - COALESCE ( NULLIF ( + 21, - 88 * + - 95 + - - 52 ), - 78 * + - COALESCE ( - 18, - - 39 + 96 ) + + + 82 ) ) - - 94 * + 10 * - + 39 THEN 71 / + 22 * - NULLIF ( - + 67, - ( 39 ) ) * + + NULLIF ( + - 13, COUNT ( * ) ) + COUNT ( * ) + - + ( 42 ) WHEN COUNT ( * ) + - 90 * - ( + + 74 ) THEN - 98 ELSE NULL END * - 45 + + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT - 90 * COALESCE ( - COUNT( * ), 47 * + 80 ) + - 39 * 20 - ( COALESCE ( + 6, + - CAST( + 26 AS SIGNED ) + + 12 ) ) AS col1
----
-696

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 90 * COALESCE ( - COUNT ( * ), 47 * + 80 ) + - 39 * 20 - ( COALESCE ( + 6, + - CAST ( + 26 AS INTEGER ) + + 12 ) ) AS col1
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT - CASE + 60 WHEN 70 * - 17 + + + COUNT( DISTINCT + - 91 ) * + - 91 THEN NULL WHEN + COALESCE ( COUNT( * ), - + CAST( - ( + 85 ) AS SIGNED ) * + 83 ) + 95 THEN 52 * - + COALESCE ( + 69, + 14 + + ( + + CAST( NULL AS SIGNED ) ) + - - CASE 71 WHEN + - MAX( ALL + - 7 ) * + 62 / + 71 * 26 + - 81 + - 66 / COUNT( * ) THEN 85 ELSE NULL END * - + COUNT( 38 ) - - 83 * 73 * - 60 ) - 42 - - - CAST( - - 40 AS SIGNED ) * 32 ELSE NULL END * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT - CASE + 60 WHEN 70 * - 17 + + + COUNT ( DISTINCT + - 91 ) * + - 91 THEN NULL WHEN + COALESCE ( COUNT ( * ), - + CAST ( - ( + 85 ) AS INTEGER ) * + 83 ) + 95 THEN 52 * - + COALESCE ( + 69, + 14 + + ( + + CAST ( NULL AS INTEGER ) ) + - - CASE 71 WHEN + - MAX ( ALL + - 7 ) * + 62 / + 71 * 26 + - 81 + - 66 / COUNT ( * ) THEN 85 ELSE NULL END * - + COUNT ( 38 ) - - 83 * 73 * - 60 ) - 42 - - - CAST ( - - 40 AS INTEGER ) * 32 ELSE NULL END * + 2 AS col2
----
NULL

query II rowsort
SELECT + ( - 81 ), + 55 AS col1
----
-81
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9230
SELECT + COUNT( + 63 ) * - + CAST( + 48 AS SIGNED ) + + MAX( + 17 ) * - + COUNT( * ) + - ( - + 85 ) * + + 77
----
6480

skipif mysql # not compatible
query I rowsort label-9230
SELECT + COUNT ( + 63 ) * - + CAST ( + 48 AS INTEGER ) + + MAX ( + 17 ) * - + COUNT ( * ) + - ( - + 85 ) * + + 77
----
6480

query I rowsort
SELECT DISTINCT 65 * - 83 + - 67 AS col1
----
-5462

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT + COUNT( * ) + 87 + + 84 * + COUNT( * )
----
172

skipif mysql # not compatible
query I rowsort label-9232
SELECT + COUNT ( * ) + 87 + + 84 * + COUNT ( * )
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT + CAST( NULL AS SIGNED ) / + - COALESCE ( 44, - 71 * + COALESCE ( - + COUNT( * ), + 67 - - 2 - 17 ) / - 85 * - 31 / 32 + 1 + + - 19 + + 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + CAST ( NULL AS INTEGER ) / + - COALESCE ( 44, - 71 * + COALESCE ( - + COUNT ( * ), + 67 - - 2 - 17 ) / - 85 * - 31 / 32 + 1 + + - 19 + + 65 ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 68, + 32 * 7 ) * - + 7 AS col2
----
-476

query II rowsort
SELECT + ( 35 ), + 95 AS col1
----
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + COALESCE ( - - 88, + + SUM( DISTINCT + 90 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9236
SELECT + COALESCE ( - - 88, + + SUM ( DISTINCT + 90 ) ) AS col0
----
88

query I rowsort
SELECT + 19 + + - 70 AS col0
----
-51

query I rowsort
SELECT DISTINCT - 91 * - 25 * - - ( 95 ) - + + 29 AS col1
----
216096

query I rowsort
SELECT + 54 * - 45 * + 6 AS col2
----
-14580

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT - ( - COUNT( * ) ) AS col2, ( - 78 ) AS col2
----
1
-78

skipif mysql # not compatible
query II rowsort label-9240
SELECT - ( - COUNT ( * ) ) AS col2, ( - 78 ) AS col2
----
1
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT COALESCE ( + COALESCE ( - + 86, 16 ), - - 96, + CAST( NULL AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9241
SELECT COALESCE ( + COALESCE ( - + 86, 16 ), - - 96, + CAST ( NULL AS INTEGER ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + 83 + MIN( 19 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9242
SELECT + 83 + MIN ( 19 ) AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - ( - MAX( + - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9243
SELECT - ( - MAX ( + - 46 ) )
----
-46

query I rowsort
SELECT + 60 + - 87 * + 75
----
-6465

query I rowsort
SELECT + 18 - - 51
----
69

query I rowsort
SELECT DISTINCT 36 * + - 61 AS col1
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - - NULLIF ( + 27, 64 * - 9 * + - COUNT( DISTINCT 45 ) * + + 91 ) * + 54 * 18 * 40 * - 5 AS col1
----
-5248800

skipif mysql # not compatible
query I rowsort label-9247
SELECT - - NULLIF ( + 27, 64 * - 9 * + - COUNT ( DISTINCT 45 ) * + + 91 ) * + 54 * 18 * 40 * - 5 AS col1
----
-5248800

query I rowsort
SELECT NULLIF ( 91, - 0 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - COUNT( * ) + - - NULLIF ( + + 97, + ( + 46 ) ) + - - 14
----
110

skipif mysql # not compatible
query I rowsort label-9249
SELECT - COUNT ( * ) + - - NULLIF ( + + 97, + ( + 46 ) ) + - - 14
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + + ( - - ( + - ( - - 49 ) ) ) * + MIN( ALL + + 53 ) * + 60 - - 53 * ( + MIN( DISTINCT - 6 ) ) AS col0
----
-156138

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + + ( - - ( + - ( - - 49 ) ) ) * + MIN ( ALL + + 53 ) * + 60 - - 53 * ( + MIN ( DISTINCT - 6 ) ) AS col0
----
-156138

query I rowsort
SELECT ALL - + 41 + + + 80 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT + 44 + + + COUNT( * ) DIV 97 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + 44 + + + COUNT ( * ) / 97 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + MAX( + 47 ) * 51 * - + 81 AS col0
----
-194157

skipif mysql # not compatible
query I rowsort label-9253
SELECT + MAX ( + 47 ) * 51 * - + 81 AS col0
----
-194157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL CAST( + 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL CAST ( + 96 AS INTEGER ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT - CASE 8 WHEN + - 22 * + - 34 - + COUNT( * ) + 6 THEN NULL WHEN - 32 THEN 7 * + - 56 * - 58 + + - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - CASE 8 WHEN + - 22 * + - 34 - + COUNT ( * ) + 6 THEN NULL WHEN - 32 THEN 7 * + - 56 * - 58 + + - 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL + COUNT( * ) + - MAX( 39 ) * - + 90
----
3511

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL + COUNT ( * ) + - MAX ( 39 ) * - + 90
----
3511

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT SUM( DISTINCT + - 80 ) * 13 * - 32
----
33280

skipif mysql # not compatible
query I rowsort label-9257
SELECT SUM ( DISTINCT + - 80 ) * 13 * - 32
----
33280

query I rowsort
SELECT - 36 * + + 72 + - 5
----
-2597

query I rowsort
SELECT ALL + 8 + - 58
----
-50

query I rowsort
SELECT + 49 * - + 19 - 83 - + 98
----
-1112

query I rowsort
SELECT ALL - NULLIF ( - ( + 39 ), + 65 )
----
39

query I rowsort
SELECT 94 - - ( - 55 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL + COUNT( * ) - + - 69 + NULLIF ( - - MAX( - 61 ), - COUNT( * ) ) - 84 * 14 - + 46 * + 31 * + 17
----
-25409

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + COUNT ( * ) - + - 69 + NULLIF ( - - MAX ( - 61 ), - COUNT ( * ) ) - 84 * 14 - + 46 * + 31 * + 17
----
-25409

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ( + + COUNT( * ) ) * - + 7 * - 98 + 52
----
738

skipif mysql # not compatible
query I rowsort label-9264
SELECT ( + + COUNT ( * ) ) * - + 7 * - 98 + 52
----
738

query I rowsort
SELECT 72 * 95 * - 11 * + 39 - + 21 AS col2
----
-2934381

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL - COUNT( + - ( 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL - COUNT ( + - ( 36 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT - 10 * CASE + 76 WHEN + 51 THEN NULL ELSE + CAST( - 33 AS SIGNED ) * + COALESCE ( - SUM( DISTINCT + 22 ), + 8 * - 85 ) + + CASE - + 5 WHEN 60 THEN + - ( + 48 ) END END - + + COUNT( ALL - 60 ) + + 83 * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT - 10 * CASE + 76 WHEN + 51 THEN NULL ELSE + CAST ( - 33 AS INTEGER ) * + COALESCE ( - SUM ( DISTINCT + 22 ), + 8 * - 85 ) + + CASE - + 5 WHEN 60 THEN + - ( + 48 ) END END - + + COUNT ( ALL - 60 ) + + 83 * 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT ( + + COUNT( * ) ) * 86, ( 6 ) AS col1
----
86
6

skipif mysql # not compatible
query II rowsort label-9268
SELECT ( + + COUNT ( * ) ) * 86, ( 6 ) AS col1
----
86
6

query I rowsort
SELECT 9 * - 27 + 65 * 59 AS col2
----
3592

query I rowsort
SELECT DISTINCT - CASE 95 WHEN - + 74 THEN NULL ELSE - + 78 END
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT DISTINCT 48 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT 48 / 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT 65 * MIN( ALL - 25 ) * + MAX( 62 ) * - - 6 + - 32
----
-604532

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT 65 * MIN ( ALL - 25 ) * + MAX ( 62 ) * - - 6 + - 32
----
-604532

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT DISTINCT 77 DIV - 13
----
-5

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT 77 / - 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - CASE + MAX( ALL - 28 ) WHEN 66 - + 33 THEN COUNT( * ) / - - 20 + + + ( + - 60 ) WHEN + 66 THEN NULL END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT - CASE + MAX ( ALL - 28 ) WHEN 66 - + 33 THEN COUNT ( * ) / - - 20 + + + ( + - 60 ) WHEN + 66 THEN NULL END * - 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9275
SELECT ALL - ( + 53 ) + - 18 + - + 3 DIV COUNT( * ) + 24 AS col1, 11
----
-50
11

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL - ( + 53 ) + - 18 + - + 3 / COUNT ( * ) + 24 AS col1, 11
----
-50
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL + COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + COUNT ( * ) + - + 7
----
-6

query I rowsort
SELECT CASE - 89 WHEN + 41 THEN - 57 - + 85 WHEN - ( + 87 ) THEN - 34 END + - NULLIF ( 40, - 35 ) + 59
----
NULL

query I rowsort
SELECT DISTINCT 36 + - 32
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT ALL 54 + ( + CASE ( 28 ) WHEN 90 * + CAST( NULL AS SIGNED ) * - 18 * COUNT( - 99 ) THEN NULL WHEN - - 84 * 7 THEN - - 20 + 98 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 54 + ( + CASE ( 28 ) WHEN 90 * + CAST ( NULL AS INTEGER ) * - 18 * COUNT ( - 99 ) THEN NULL WHEN - - 84 * 7 THEN - - 20 + 98 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT + 13 + + - 33 - - SUM( 86 )
----
66

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + 13 + + - 33 - - SUM ( 86 )
----
66

query I rowsort
SELECT 50 - - 12 AS col2
----
62

query I rowsort
SELECT 96 + 92 AS col2
----
188

query II rowsort
SELECT + 60 * 51 * - 19, - 13 AS col0
----
-58140
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - ( 21 ) DIV 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - ( 21 ) / 28 AS col1
----
0

query I rowsort
SELECT ALL + + 21 + - + 76 + 89 - - 80
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT COALESCE ( + 86, + SUM( COALESCE ( + + CAST( NULL AS SIGNED ), - 4 ) ), - 70 ) + - 42 + 21 + + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9286
SELECT COALESCE ( + 86, + SUM ( COALESCE ( + + CAST ( NULL AS INTEGER ), - 4 ) ), - 70 ) + - 42 + 21 + + COUNT ( * )
----
66

query I rowsort
SELECT - + ( - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT 85 + - + COUNT( * ) + 99
----
183

skipif mysql # not compatible
query I rowsort label-9288
SELECT 85 + - + COUNT ( * ) + 99
----
183

query I rowsort
SELECT DISTINCT 56 * - + 76
----
-4256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT 13 DIV - - 44 + + 79 + + COUNT( * ) + - 18 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9290
SELECT 13 / - - 44 + + 79 + + COUNT ( * ) + - 18 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT 81 + + COUNT( * ) + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9291
SELECT 81 + + COUNT ( * ) + - COUNT ( * ) AS col0
----
81

query I rowsort
SELECT 20 + ( - - 16 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT COUNT( DISTINCT - - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9293
SELECT COUNT ( DISTINCT - - 99 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT 0 DIV - + 52 DIV + + COALESCE ( 4, + 82 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT 0 / - + 52 / + + COALESCE ( 4, + 82 ) AS col1
----
0

query I rowsort
SELECT 36 * + 41 AS col1
----
1476

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9296
SELECT ALL - COALESCE ( - 38, + 19 * - ( 42 ), + + CAST( + + 79 AS SIGNED ) ) DIV - + COALESCE ( - NULLIF ( 80, 44 * 61 + - 6 DIV - + 43 * 68 * + 78 * - 92 + - ( + + 13 ) + - - 10 + 4 ), + 72 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - COALESCE ( - 38, + 19 * - ( 42 ), + + CAST ( + + 79 AS INTEGER ) ) / - + COALESCE ( - NULLIF ( 80, 44 * 61 + - 6 / - + 43 * 68 * + 78 * - 92 + - ( + + 13 ) + - - 10 + 4 ), + 72 ) col1
----
0

query I rowsort
SELECT 10 * 57 AS col0
----
570

query I rowsort
SELECT NULLIF ( - 16, - 84 ) * + 90 AS col0
----
-1440

query I rowsort
SELECT - 6 * + 6 + - + 45
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT ALL - 41 * COUNT( * ) * COUNT( * ) DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 41 * COUNT ( * ) * COUNT ( * ) / 49
----
0

query I rowsort
SELECT ALL 24 * - 57 AS col2
----
-1368

query I rowsort
SELECT + 61 * + 65 + + + ( + + 26 ) AS col0
----
3991

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - + 62 * - - 49 - COUNT( * ) AS col0
----
-3039

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - + 62 * - - 49 - COUNT ( * ) AS col0
----
-3039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL + + 49 + + COUNT( * ) + 75 - COALESCE ( + 64, - - NULLIF ( + 61, 53 ), - 64 ) + - + 98 * ( + 41 ) + NULLIF ( + COUNT( DISTINCT - 10 ), + CAST( - + ( - + 1 ) AS SIGNED ) ) * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + + 49 + + COUNT ( * ) + 75 - COALESCE ( + 64, - - NULLIF ( + 61, 53 ), - 64 ) + - + 98 * ( + 41 ) + NULLIF ( + COUNT ( DISTINCT - 10 ), + CAST ( - + ( - + 1 ) AS INTEGER ) ) * + 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - + 30 + + 81 - - - SUM( 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + 30 + + 81 - - - SUM ( 50 ) AS col1
----
1

query I rowsort
SELECT ALL - 66 * + 30 + + 7 + 88 AS col2
----
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL MIN( DISTINCT - - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL MIN ( DISTINCT - - 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9308
SELECT - 72 AS col1, - 30 + + 68 + + CASE + + 40 WHEN - 38 * + 4 * - + 10 THEN + + MAX( + 51 ) + + NULLIF ( - COUNT( * ), - NULLIF ( + + 0, - AVG ( - - 57 ) * - 14 + - + MAX( DISTINCT - 15 ) / - + COALESCE ( - 19, + - MAX( - 91 ) * + SUM( DISTINCT + - 69 ) ) ) ) WHEN - CASE ( + ( - 58 ) ) WHEN + CAST( NULL AS DECIMAL ) THEN - 69 * + CAST( - + 28 AS DECIMAL ) WHEN + + 56 THEN + COUNT( DISTINCT + 86 ) WHEN - 88 * 8 + - ( 8 ) + + 49 THEN CASE 94 WHEN - NULLIF ( 0, + 33 ) THEN 75 / 63 ELSE NULL END END - - 62 * - MIN( - 13 ) THEN + 83 * 16 WHEN 40 - - 42 THEN 87 END * MAX( CAST( 34 AS SIGNED ) ) AS col2
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9308
SELECT - 72 AS col1, - 30 + + 68 + + CASE + + 40 WHEN - 38 * + 4 * - + 10 THEN + + MAX ( + 51 ) + + NULLIF ( - COUNT ( * ), - NULLIF ( + + 0, - AVG ( - - 57 ) * - 14 + - + MAX ( DISTINCT - 15 ) / - + COALESCE ( - 19, + - MAX ( - 91 ) * + SUM ( DISTINCT + - 69 ) ) ) ) WHEN - CASE ( + ( - 58 ) ) WHEN + CAST ( NULL AS REAL ) THEN - 69 * + CAST ( - + 28 AS REAL ) WHEN + + 56 THEN + COUNT ( DISTINCT + 86 ) WHEN - 88 * 8 + - ( 8 ) + + 49 THEN CASE 94 WHEN - NULLIF ( 0, + 33 ) THEN 75 / 63 ELSE NULL END END - - 62 * - MIN ( - 13 ) THEN + 83 * 16 WHEN 40 - - 42 THEN 87 END * MAX ( CAST ( 34 AS INTEGER ) ) AS col2
----
-72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL + - 57 + - 43 * 35 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + - 57 + - 43 * 35 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT ALL 99 DIV + 7 - + 2
----
12

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL 99 / + 7 - + 2
----
12

query II rowsort
SELECT - + 88 AS col1, + 44 col0
----
-88
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT - CAST ( NULL AS INTEGER ) * 75
----
NULL

query I rowsort
SELECT + - 15 + 27 * + ( 2 ) * + 76
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL 65 * + 43 + - - COUNT( * ) AS col0
----
2796

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL 65 * + 43 + - - COUNT ( * ) AS col0
----
2796

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT DISTINCT 51 col0, + 66 + + + COUNT( DISTINCT 91 ) + + - 76 * 97 AS col1
----
51
-7305

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT 51 col0, + 66 + + + COUNT ( DISTINCT 91 ) + + - 76 * 97 AS col1
----
51
-7305

query I rowsort
SELECT - + 29 * - - 83 AS col1
----
-2407

query I rowsort
SELECT ALL 15 * + 6 col1
----
90

query I rowsort
SELECT + 27 * + NULLIF ( - 91, - + 75 ) AS col0
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL SUM( ALL + 22 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL SUM ( ALL + 22 ) col2
----
22

query II rowsort
SELECT + 91 * 73 AS col2, - 28
----
6643
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT 99 * + + COUNT( * ) + - 31 * - + 73 * 70
----
158509

skipif mysql # not compatible
query I rowsort label-9321
SELECT 99 * + + COUNT ( * ) + - 31 * - + 73 * 70
----
158509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT 9 * + ( + 82 ) - MAX( + + ( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT 9 * + ( + 82 ) - MAX ( + + ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT + 60 * + 93
----
5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT - 2 DIV + 59 - + + 96 * - NULLIF ( + + 3, + ( + 75 ) + + - 11 * - 91 * - MAX( DISTINCT 53 ) * - 62 - - COUNT( * ) + - 52 ) + - - 23 AS col2
----
311

skipif mysql # not compatible
query I rowsort label-9324
SELECT - 2 / + 59 - + + 96 * - NULLIF ( + + 3, + ( + 75 ) + + - 11 * - 91 * - MAX ( DISTINCT 53 ) * - 62 - - COUNT ( * ) + - 52 ) + - - 23 AS col2
----
311

query I rowsort
SELECT + 95 + + + 73
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9326
SELECT - 13 DIV - 1 AS col2, COUNT( * ) + 42 AS col2
----
13
43

skipif mysql # not compatible
query II rowsort label-9326
SELECT - 13 / - 1 AS col2, COUNT ( * ) + 42 AS col2
----
13
43

query I rowsort
SELECT ALL 70 * 43 + + 11 + - 63 col2
----
2958

query I rowsort
SELECT ALL 95 * + 72 col1
----
6840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9329
SELECT + ( - 67 ) col1, - 74 * - CAST( - - 64 AS SIGNED ) + - 68
----
-67
4668

skipif mysql # not compatible
query II rowsort label-9329
SELECT + ( - 67 ) col1, - 74 * - CAST ( - - 64 AS INTEGER ) + - 68
----
-67
4668

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT NULLIF ( - COUNT( * ), + - 50 + + ( + - CASE - 40 WHEN 90 + 57 THEN 38 * - COUNT( * ) ELSE NULL END ) ) AS col1, 84 AS col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-9330
SELECT NULLIF ( - COUNT ( * ), + - 50 + + ( + - CASE - 40 WHEN 90 + 57 THEN 38 * - COUNT ( * ) ELSE NULL END ) ) AS col1, 84 AS col1
----
-1
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT - MAX( DISTINCT + 52 ) DIV + - SUM( - 44 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9331
SELECT - MAX ( DISTINCT + 52 ) / + - SUM ( - 44 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL + 66 * - + 97 + + - 1 * - + COUNT( - 26 ) + + 59 AS col0
----
-6342

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + 66 * - + 97 + + - 1 * - + COUNT ( - 26 ) + + 59 AS col0
----
-6342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT CASE CAST( NULL AS SIGNED ) WHEN 93 THEN + COUNT( * ) * - 24 / + 65 * + COUNT( 71 ) - + - 59 + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT CASE CAST ( NULL AS INTEGER ) WHEN 93 THEN + COUNT ( * ) * - 24 / + 65 * + COUNT ( 71 ) - + - 59 + 30 END AS col0
----
NULL

query I rowsort
SELECT - - 1 * - 8 * - 90 * + 16 col1
----
11520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT - 51 * - + 68 + - - 25 * + CAST( NULL AS SIGNED ) * 26 + + + 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT - 51 * - + 68 + - - 25 * + CAST ( NULL AS INTEGER ) * 26 + + + 11 col2
----
NULL

query I rowsort
SELECT ALL + 1 * ( 18 ) + - ( + + 8 ) col2
----
10

query I rowsort
SELECT ALL - 55 * - 37 AS col1
----
2035

query I rowsort
SELECT - + 49 + - - 55 - 10
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT + ( MIN( ALL - 5 ) ) col0, + 33
----
-5
33

skipif mysql # not compatible
query II rowsort label-9339
SELECT + ( MIN ( ALL - 5 ) ) col0, + 33
----
-5
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - MAX( + 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9340
SELECT - MAX ( + 82 ) AS col0
----
-82

query I rowsort
SELECT - ( - 44 ) + + 19 AS col2
----
63

query I rowsort
SELECT DISTINCT + 61 * - 24 * - 80 AS col0
----
117120

query I rowsort
SELECT DISTINCT - 6 * 91 - - 69 * + 18 AS col2
----
696

query I rowsort
SELECT + 3 - - + 75 + - + 30
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9345
SELECT ALL CAST( NULL AS SIGNED ), - 40 col1
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL CAST ( NULL AS INTEGER ), - 40 col1
----
NULL
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9346
SELECT ALL + COUNT( * ) DIV + - 27 * 44, 13 * + ( + + 58 ) * - + 12 - CASE - - 57 WHEN + + 23 - COUNT( * ) + SUM( DISTINCT 9 ) DIV + CAST( 52 AS SIGNED ) * - 41 THEN - + ( COUNT( * ) ) WHEN 34 * - 62 - - - 4 THEN COUNT( * ) DIV + 14 + ( 30 ) ELSE + ( 90 ) + + + 19 END AS col2
----
0
-9157

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL + COUNT ( * ) / + - 27 * 44, 13 * + ( + + 58 ) * - + 12 - CASE - - 57 WHEN + + 23 - COUNT ( * ) + SUM ( DISTINCT 9 ) / + CAST ( 52 AS INTEGER ) * - 41 THEN - + ( COUNT ( * ) ) WHEN 34 * - 62 - - - 4 THEN COUNT ( * ) / + 14 + ( 30 ) ELSE + ( 90 ) + + + 19 END AS col2
----
0
-9157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT - ( + 51 ) + + 83 + + + 24 + - MAX( + 83 ) * + COALESCE ( 66, - CAST( 38 AS SIGNED ) ) AS col0
----
-5422

skipif mysql # not compatible
query I rowsort label-9347
SELECT - ( + 51 ) + + 83 + + + 24 + - MAX ( + 83 ) * + COALESCE ( 66, - CAST ( 38 AS INTEGER ) ) AS col0
----
-5422

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT ALL 25 AS col0, + MAX( DISTINCT + 71 ) AS col2
----
25
71

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL 25 AS col0, + MAX ( DISTINCT + 71 ) AS col2
----
25
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + COUNT( * ) + 66 * - 13 + + COUNT( * )
----
-856

skipif mysql # not compatible
query I rowsort label-9349
SELECT + COUNT ( * ) + 66 * - 13 + + COUNT ( * )
----
-856

query I rowsort
SELECT + 43 + - 45 + 3
----
1

query I rowsort
SELECT + 20 + - + ( ( + 11 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + 37 * + ( + MIN( DISTINCT + + 58 ) ) * - + 38 * + 17 * - COALESCE ( - 6, - - 81 )
----
-8317896

skipif mysql # not compatible
query I rowsort label-9352
SELECT + 37 * + ( + MIN ( DISTINCT + + 58 ) ) * - + 38 * + 17 * - COALESCE ( - 6, - - 81 )
----
-8317896

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - NULLIF ( - 32, + 52 * + CASE ( + 0 ) WHEN ( + + MIN( ALL + 20 ) ) + - 34 THEN 49 / COUNT( * ) / - + 62 - - 57 + 86 * - + 19 END ) * - 17 + 87 + + 32 AS col0
----
-425

skipif mysql # not compatible
query I rowsort label-9353
SELECT - NULLIF ( - 32, + 52 * + CASE ( + 0 ) WHEN ( + + MIN ( ALL + 20 ) ) + - 34 THEN 49 / COUNT ( * ) / - + 62 - - 57 + 86 * - + 19 END ) * - 17 + 87 + + 32 AS col0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT MIN( + 99 ) * 81 * - 92
----
-737748

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT MIN ( + 99 ) * 81 * - 92
----
-737748

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT ALL 66 / 33 * - COUNT( * ) * - 63 + - 61 - - 69 * + MAX( 29 ) * CASE 55 WHEN + COUNT( DISTINCT 69 ) THEN - 76 WHEN 6 + + COUNT( * ) * - ( ( - 75 ) ) + + + 5 THEN NULL ELSE NULL END, 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9355
SELECT ALL 66 / 33 * - COUNT ( * ) * - 63 + - 61 - - 69 * + MAX ( 29 ) * CASE 55 WHEN + COUNT ( DISTINCT 69 ) THEN - 76 WHEN 6 + + COUNT ( * ) * - ( ( - 75 ) ) + + + 5 THEN NULL ELSE NULL END, 72 AS col0
----
NULL
72

query II rowsort
SELECT ALL + 80 AS col1, 1 * - 8 + + 37
----
80
29

query I rowsort
SELECT + 1 + 19 AS col2
----
20

query I rowsort
SELECT + NULLIF ( + 33, + ( + 10 ) * + 77 )
----
33

query I rowsort
SELECT + 66 + + + 69 AS col0
----
135

query II rowsort
SELECT + 58, 89 AS col1
----
58
89

query II rowsort
SELECT DISTINCT - 8 + - + 58 * - 34 AS col0, 19 col2
----
1964
19

query I rowsort
SELECT DISTINCT + 28 + + COALESCE ( - 25, - ( 26 ) )
----
3

query I rowsort
SELECT DISTINCT 2 * + 56 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT + ( + + COUNT( * ) ) - 59 + + 66
----
8

skipif mysql # not compatible
query I rowsort label-9364
SELECT + ( + + COUNT ( * ) ) - 59 + + 66
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT ( - COALESCE ( - + CAST( - + 10 AS SIGNED ), + 33 ) ) * + 16 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-9365
SELECT ( - COALESCE ( - + CAST ( - + 10 AS INTEGER ), + 33 ) ) * + 16 AS col2
----
-160

query I rowsort
SELECT ALL + 84 * - 28
----
-2352

query I rowsort
SELECT + COALESCE ( 39, - ( - + 46 ) + - + 48 ) AS col2
----
39

query II rowsort
SELECT ALL - 45, 68 AS col0
----
-45
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9369
SELECT - CAST( NULL AS DECIMAL ) * 24 + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT - CAST ( NULL AS REAL ) * 24 + 66 AS col2
----
NULL

query I rowsort
SELECT 4 * + 48
----
192

query I rowsort
SELECT - 87 + - 54 + + ( - + 6 ) - + 78 AS col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - COUNT( * ) * - 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9372
SELECT - COUNT ( * ) * - 31 AS col0
----
31

query II rowsort
SELECT ALL 64, + 71 AS col0
----
64
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT ( + - COUNT( * ) ) * + - COUNT( * ) AS col2, - 62 AS col1
----
1
-62

skipif mysql # not compatible
query II rowsort label-9374
SELECT ( + - COUNT ( * ) ) * + - COUNT ( * ) AS col2, - 62 AS col1
----
1
-62

query I rowsort
SELECT ALL + 77 * 54 + + + 37 AS col1
----
4195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT 4 + - 20 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT 4 + - 20 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT ALL - CASE - 29 WHEN ( COUNT( * ) ) / + 97 + + 67 * 20 THEN NULLIF ( + COALESCE ( + - 35, - - 87 * + SUM( DISTINCT 80 ) ), + MAX( - 38 ) + - 71 / - 68 ) * - 54 ELSE + CAST( - + 58 AS SIGNED ) END
----
58

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - CASE - 29 WHEN ( COUNT ( * ) ) / + 97 + + 67 * 20 THEN NULLIF ( + COALESCE ( + - 35, - - 87 * + SUM ( DISTINCT 80 ) ), + MAX ( - 38 ) + - 71 / - 68 ) * - 54 ELSE + CAST ( - + 58 AS INTEGER ) END
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT 94 * - MIN( - 16 )
----
1504

skipif mysql # not compatible
query I rowsort label-9378
SELECT 94 * - MIN ( - 16 )
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL + COUNT( * ) * 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + COUNT ( * ) * 77 AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT ALL + 18 + + 54 - + ( - 45 ) + - - 43 + - COUNT( * ) * - - 41 DIV + - 71 + COUNT( + 43 ) - 14 + - 27 + + COALESCE ( + 16, - COALESCE ( + 67, 18 * + + 35 ) * - 83 + + 67, - 80 + + + NULLIF ( - MAX( ALL - 84 ), - + 89 * - 23 ) ) DIV + - 78 DIV + - 81 DIV 75 + - - SUM( DISTINCT + 83 ) * + - 12 AS col0
----
-876

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + 18 + + 54 - + ( - 45 ) + - - 43 + - COUNT ( * ) * - - 41 / + - 71 + COUNT ( + 43 ) - 14 + - 27 + + COALESCE ( + 16, - COALESCE ( + 67, 18 * + + 35 ) * - 83 + + 67, - 80 + + + NULLIF ( - MAX ( ALL - 84 ), - + 89 * - 23 ) ) / + - 78 / + - 81 / 75 + - - SUM ( DISTINCT + 83 ) * + - 12 AS col0
----
-876

query I rowsort
SELECT 19 * 52 * + 99
----
97812

query I rowsort
SELECT ALL + 45 * + 19 col2
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT 26 DIV - 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-9383
SELECT 26 / - 89 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9384
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 84 AS col1, - MAX( 21 ) * - 74
----
NULL
1554

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 84 AS col1, - MAX ( 21 ) * - 74
----
NULL
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL 8 + - 71 * + - 95 - + COUNT( * ) + + + ( - - 87 ) AS col1
----
6839

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL 8 + - 71 * + - 95 - + COUNT ( * ) + + + ( - - 87 ) AS col1
----
6839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT COUNT( * ) / + - SUM( ALL - 22 ) * ( + CAST( NULL AS SIGNED ) ) / 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT COUNT ( * ) / + - SUM ( ALL - 22 ) * ( + CAST ( NULL AS INTEGER ) ) / 92 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT ( - - 75 ) DIV - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9387
SELECT ( - - 75 ) / - 48 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL 48 + - - COUNT( DISTINCT - 54 )
----
49

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL 48 + - - COUNT ( DISTINCT - 54 )
----
49

query I rowsort
SELECT ALL 42 * 51
----
2142

query I rowsort
SELECT ALL 0 + - - 17
----
17

query I rowsort
SELECT ALL - 83 + + 77 + - 97
----
-103

query I rowsort
SELECT DISTINCT - - ( + COALESCE ( - 60, - - 91 - + 60 + - + 94 ) ) AS col0
----
-60

query I rowsort
SELECT ALL 91 * + 83 * - 40 * + - 8 AS col1
----
2416960

query I rowsort
SELECT DISTINCT + 96 - 21 AS col1
----
75

query I rowsort
SELECT + ( + - ( + + 76 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT - COUNT( * ) - - - 89 + + 2 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - COUNT ( * ) - - - 89 + + 2 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - COALESCE ( SUM( ALL + 81 ), + 67 )
----
-81

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - COALESCE ( SUM ( ALL + 81 ), + 67 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT ALL + CAST( NULL AS SIGNED ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL + CAST ( NULL AS INTEGER ) * 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT + 51 * - 58 * 60 + - 38 + - CAST( + 33 AS SIGNED ) col1
----
-177551

skipif mysql # not compatible
query I rowsort label-9399
SELECT + 51 * - 58 * 60 + - 38 + - CAST ( + 33 AS INTEGER ) col1
----
-177551

query I rowsort
SELECT ALL NULLIF ( - 59, 24 ) * - 0 * + 30 AS col1
----
0

query I rowsort
SELECT 29 + - 96 col0
----
-67

query II rowsort
SELECT 75 + - + 71, - 0 + + 21 AS col0
----
4
21

query I rowsort
SELECT 39 * 55 AS col0
----
2145

query I rowsort
SELECT 19 + - 79 AS col0
----
-60

query I rowsort
SELECT ALL 26 + - 69 AS col1
----
-43

query I rowsort
SELECT ALL + 14 + - - 29
----
43

query I rowsort
SELECT 38 + - 49 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL 78 + ( - COUNT( * ) ) + CAST( 72 AS SIGNED )
----
149

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL 78 + ( - COUNT ( * ) ) + CAST ( 72 AS INTEGER )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT 9 + 74 * + MAX( 70 )
----
5189

skipif mysql # not compatible
query I rowsort label-9409
SELECT 9 + 74 * + MAX ( 70 )
----
5189

query I rowsort
SELECT 45 + - 40 AS col0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9411
SELECT CAST( NULL AS DECIMAL ) * 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT CAST ( NULL AS REAL ) * 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9412
SELECT ALL + ( - COALESCE ( - 64, + + COUNT( * ) + - 26, + NULLIF ( - 27, + + ( - + COUNT( * ) ) ) ) ) + + + COUNT( * ) + + + COALESCE ( - COUNT( * ), ( - 69 ) + - + 75 * - 46 * 50, + - 2 ) * COUNT( * ) * - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + ( - COALESCE ( - 64, + + COUNT ( * ) + - 26, + NULLIF ( - 27, + + ( - + COUNT ( * ) ) ) ) ) + + + COUNT ( * ) + + + COALESCE ( - COUNT ( * ), ( - 69 ) + - + 75 * - 46 * 50, + - 2 ) * COUNT ( * ) * - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - NULLIF ( + 8, + 5 * + 15 + - 3 * + - CAST( - CASE - + 15 WHEN 52 + + - 31 / 51 THEN NULL ELSE 16 END AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9413
SELECT - NULLIF ( + 8, + 5 * + 15 + - 3 * + - CAST ( - CASE - + 15 WHEN 52 + + - 31 / 51 THEN NULL ELSE 16 END AS INTEGER ) )
----
-8

query I rowsort
SELECT - 42 + 71 * - 18 * + - 58 AS col1
----
74082

query I rowsort
SELECT DISTINCT + 96 * - 35
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9416
SELECT DISTINCT SUM( + + ( + + 89 ) ) + + 83 DIV - 82 AS col0, + 50 AS col1
----
88
50

skipif mysql # not compatible
query II rowsort label-9416
SELECT DISTINCT SUM ( + + ( + + 89 ) ) + + 83 / - 82 AS col0, + 50 AS col1
----
88
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL CASE ( 47 ) WHEN ( COUNT( * ) ) THEN + COUNT( * ) * + 67 * - 3 + - 95 + 25 WHEN 56 + - - 75 THEN - 79 - + - 73 WHEN - 76 THEN NULL ELSE - COALESCE ( 9, 32, 58 ) * CAST( + 84 AS SIGNED ) END col1
----
-756

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL CASE ( 47 ) WHEN ( COUNT ( * ) ) THEN + COUNT ( * ) * + 67 * - 3 + - 95 + 25 WHEN 56 + - - 75 THEN - 79 - + - 73 WHEN - 76 THEN NULL ELSE - COALESCE ( 9, 32, 58 ) * CAST ( + 84 AS INTEGER ) END col1
----
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT - COUNT( * ) + - COUNT( * ) DIV - 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9418
SELECT - COUNT ( * ) + - COUNT ( * ) / - 61 AS col1
----
-1

query I rowsort
SELECT DISTINCT - ( + 35 ) * - - 29 * 44
----
-44660

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL NULLIF ( - COUNT( * ), MIN( ALL - 82 ) / + 60 * + + 5 + - ( + NULLIF ( AVG ( + 38 ), - COUNT( * ) * - 36 ) ) ) * + ( - 4 ) - - + NULLIF ( + 0, - 68 / - 28 )
----
4

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL NULLIF ( - COUNT ( * ), MIN ( ALL - 82 ) / + 60 * + + 5 + - ( + NULLIF ( AVG ( + 38 ), - COUNT ( * ) * - 36 ) ) ) * + ( - 4 ) - - + NULLIF ( + 0, - 68 / - 28 )
----
4

query I rowsort
SELECT - 0 * 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9422
SELECT ALL + 75 AS col0, CAST( + + 32 AS SIGNED ) AS col1
----
75
32

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL + 75 AS col0, CAST ( + + 32 AS INTEGER ) AS col1
----
75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ( - ( + + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9423
SELECT ( - ( + + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - - COUNT( * ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-9424
SELECT - - COUNT ( * ) + 86
----
87

query II rowsort
SELECT + 36 AS col1, + 38 + - 8
----
36
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9426
SELECT + 33 + CASE + 2 WHEN 63 * + + 38 + 0 + CAST( - + ( - 16 ) AS SIGNED ) - - - ( - + 19 ) + COALESCE ( + + 91, 62 ) THEN 30 + - COUNT( ALL - 27 ) + - + 41 - CASE + MAX( ALL - 64 ) WHEN - 38 * - COALESCE ( + COUNT( * ), NULLIF ( 9, + - 17 ) / - - NULLIF ( - CASE - - 9 WHEN - 2 * - - 27 THEN ( 1 ) END, + + 79 + - 76 ) * - 4 ) + + 53 * - 46 THEN COUNT( * ) + - - NULLIF ( + COUNT( - 86 ), - COALESCE ( + 13, 84 ) ) - 64 WHEN 64 * 67 THEN NULL ELSE 47 END * 52 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 33 + CASE + 2 WHEN 63 * + + 38 + 0 + CAST ( - + ( - 16 ) AS INTEGER ) - - - ( - + 19 ) + COALESCE ( + + 91, 62 ) THEN 30 + - COUNT ( ALL - 27 ) + - + 41 - CASE + MAX ( ALL - 64 ) WHEN - 38 * - COALESCE ( + COUNT ( * ), NULLIF ( 9, + - 17 ) / - - NULLIF ( - CASE - - 9 WHEN - 2 * - - 27 THEN ( 1 ) END, + + 79 + - 76 ) * - 4 ) + + 53 * - 46 THEN COUNT ( * ) + - - NULLIF ( + COUNT ( - 86 ), - COALESCE ( + 13, 84 ) ) - 64 WHEN 64 * 67 THEN NULL ELSE 47 END * 52 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9427
SELECT ALL - + 35 DIV + - CAST( 20 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - + 35 / + - CAST ( 20 AS INTEGER )
----
1

query I rowsort
SELECT - + ( 12 ) * 7 + - + 13 * + 27 AS col1
----
-435

query I rowsort
SELECT + + 56 * 46
----
2576

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT + COUNT( * ), 1 AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9430
SELECT + COUNT ( * ), 1 AS col2
----
1
1

query II rowsort
SELECT ALL + + 25 AS col0, 50
----
25
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + + 16 * ( - 88 ) + + 65 + + COUNT( * ) col1
----
-1342

skipif mysql # not compatible
query I rowsort label-9432
SELECT + + 16 * ( - 88 ) + + 65 + + COUNT ( * ) col1
----
-1342

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ALL - - 43 DIV - 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - - 43 / - 19 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL + - ( - SUM( + + 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + - ( - SUM ( + + 22 ) ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-9435
SELECT DISTINCT + 82 col0, 65 DIV + 83 + 28 AS col1
----
82
28

skipif mysql # not compatible
query II rowsort label-9435
SELECT DISTINCT + 82 col0, 65 / + 83 + 28 AS col1
----
82
28

query II rowsort
SELECT + + 98 AS col2, 9 + + + ( 60 ) * + 32
----
98
1929

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT - + MIN( DISTINCT 95 ) * - 24
----
2280

skipif mysql # not compatible
query I rowsort label-9437
SELECT - + MIN ( DISTINCT 95 ) * - 24
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT SUM( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9438
SELECT SUM ( - 99 )
----
-99

query I rowsort
SELECT + + ( + 24 ) + - + 86 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL - - 77 * SUM( 25 ) + - 25 AS col0
----
1900

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - - 77 * SUM ( 25 ) + - 25 AS col0
----
1900

query I rowsort
SELECT + 24 * - 27 + - 60 + + + 0 AS col0
----
-708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL - 45 + 42 - 82 - + + NULLIF ( + 75, - - ( - COALESCE ( - MIN( DISTINCT - + 71 ), + - 91 + + NULLIF ( + - 41, + NULLIF ( - 91, - 54 ) + - CASE + COUNT( + 49 ) WHEN + - SUM( ALL + 32 ) * + - CAST( NULL AS SIGNED ) + + 44 + + COUNT( * ) + ( + 20 ) + ( - 18 ) THEN NULL WHEN 65 THEN + 20 * + 41 WHEN 59 + + 20 THEN NULL ELSE NULL END ) ) ) ) + 32
----
-128

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - 45 + 42 - 82 - + + NULLIF ( + 75, - - ( - COALESCE ( - MIN ( DISTINCT - + 71 ), + - 91 + + NULLIF ( + - 41, + NULLIF ( - 91, - 54 ) + - CASE + COUNT ( + 49 ) WHEN + - SUM ( ALL + 32 ) * + - CAST ( NULL AS INTEGER ) + + 44 + + COUNT ( * ) + ( + 20 ) + ( - 18 ) THEN NULL WHEN 65 THEN + 20 * + 41 WHEN 59 + + 20 THEN NULL ELSE NULL END ) ) ) ) + 32
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - CASE + COUNT( * ) WHEN COUNT( * ) + - + 33 * - AVG ( DISTINCT + 8 ) THEN NULL WHEN + + 39 THEN + 45 * + - 67 * 60 WHEN + 74 + + 58 + + + NULLIF ( - 33, + 66 ) THEN - + AVG ( + + 11 ) - + + 15 * + 52 * - 32 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT - CASE + COUNT ( * ) WHEN COUNT ( * ) + - + 33 * - AVG ( DISTINCT + 8 ) THEN NULL WHEN + + 39 THEN + 45 * + - 67 * 60 WHEN + 74 + + 58 + + + NULLIF ( - 33, + 66 ) THEN - + AVG ( + + 11 ) - + + 15 * + 52 * - 32 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT + 97 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-9444
SELECT + 97 / - + 55
----
-1

query I rowsort
SELECT DISTINCT 37 + + + 55
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT + 61 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT + 61 / + - 85
----
0

query II rowsort
SELECT + 78 * + 57 AS col2, - 98 AS col2
----
4446
-98

query II rowsort
SELECT 68 AS col2, + ( 26 )
----
68
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT CAST( - - 80 AS SIGNED ) - 23 * + 90
----
-1990

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT CAST ( - - 80 AS INTEGER ) - 23 * + 90
----
-1990

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT - 38 - - 29 + - SUM( - - 91 ) * + 22 AS col0
----
-2011

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - 38 - - 29 + - SUM ( - - 91 ) * + 22 AS col0
----
-2011

query II rowsort
SELECT DISTINCT 1 AS col1, + 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT - 65 * COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - 65 * COUNT ( * ) col1
----
-65

query I rowsort
SELECT + 71 + 62 AS col0
----
133

query I rowsort
SELECT + + 7 + - 85
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT - COUNT( * ) * 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - COUNT ( * ) * 68 AS col2
----
-68

query I rowsort
SELECT + + 16 * 41 col0
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL - + 83 * CASE + MAX( DISTINCT - + 37 ) WHEN 85 / - 98 * - - COUNT( * ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - + 83 * CASE + MAX ( DISTINCT - + 37 ) WHEN 85 / - 98 * - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT 48 * + 26 * + - CASE - 53 WHEN + AVG ( DISTINCT + ( - 84 ) ) THEN - 58 ELSE COUNT( * ) + + 2 END
----
-3744

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT 48 * + 26 * + - CASE - 53 WHEN + AVG ( DISTINCT + ( - 84 ) ) THEN - 58 ELSE COUNT ( * ) + + 2 END
----
-3744

query II rowsort
SELECT ALL + 0 AS col2, - 79
----
0
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT + 77 * COUNT( DISTINCT - 30 )
----
77

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + 77 * COUNT ( DISTINCT - 30 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL + MAX( ALL + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + MAX ( ALL + 74 )
----
74

query I rowsort
SELECT - 6 * + 61
----
-366

query I rowsort
SELECT ALL - ( + 22 ) * - 24 col1
----
528

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT - + 58 DIV + NULLIF ( + 92, - 5 * - ( + + 29 ) + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - + 58 / + NULLIF ( + 92, - 5 * - ( + + 29 ) + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT 41 DIV + COUNT( * ) + 41 * - COUNT( * ) + - - 61 + - - MIN( ALL 63 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT 41 / + COUNT ( * ) + 41 * - COUNT ( * ) + - - 61 + - - MIN ( ALL 63 ) AS col0
----
124

query I rowsort
SELECT + 33 * + 87 + + ( 53 )
----
2924

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT - - 89 DIV 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9467
SELECT - - 89 / 63 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT - - 84 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT - - 84 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 25 * + NULLIF ( - + 23, - 24 ) * + ( - + 76 ) - + 95 col1
----
43605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9470
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + 28 * MAX( DISTINCT - + 40 ) - - 19 AS col0, 73 - + 29 DIV + MAX( + - 92 ) AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9470
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 28 * MAX ( DISTINCT - + 40 ) - - 19 AS col0, 73 - + 29 / + MAX ( + - 92 ) AS col0
----
NULL
73

query II rowsort
SELECT DISTINCT + - 46 * + - 12 * + 68 + - 86 AS col1, 17
----
37450
17

query I rowsort
SELECT ALL - - 68 * 91 * + 55 + + 89
----
340429

query I rowsort
SELECT - 85 + + + 66 * 92 - + 78
----
5909

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + 91 - + COUNT( * ) * - + 6 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9474
SELECT + 91 - + COUNT ( * ) * - + 6 AS col2
----
97

query II rowsort
SELECT 19 + + + 33 AS col2, + 71
----
52
71

query I rowsort
SELECT 28 + - + 85
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT 51 * 40 + + + MAX( ALL - + 34 ) * + + 86
----
-884

skipif mysql # not compatible
query I rowsort label-9477
SELECT 51 * 40 + + + MAX ( ALL - + 34 ) * + + 86
----
-884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9478
SELECT NULLIF ( SUM( + + 69 ), + 20 * COUNT( * ) * + 22 ) + 27 DIV + 6 + + 68 DIV + COUNT( * ) + - 21
----
120

skipif mysql # not compatible
query I rowsort label-9478
SELECT NULLIF ( SUM ( + + 69 ), + 20 * COUNT ( * ) * + 22 ) + 27 / + 6 + + 68 / + COUNT ( * ) + - 21
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT 54 + 92 + - + 41 + 39 DIV + 97
----
105

skipif mysql # not compatible
query I rowsort label-9479
SELECT 54 + 92 + - + 41 + 39 / + 97
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT MAX( + 3 ) * + 49 * + ( + 81 ) + + + 58 AS col2
----
11965

skipif mysql # not compatible
query I rowsort label-9480
SELECT MAX ( + 3 ) * + 49 * + ( + 81 ) + + + 58 AS col2
----
11965

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT ALL 83 * + 25, NULLIF ( - + 63, - + 69 ) - COUNT( * ) * + 93 AS col1
----
2075
-156

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL 83 * + 25, NULLIF ( - + 63, - + 69 ) - COUNT ( * ) * + 93 AS col1
----
2075
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT 89 + + 67 col1, - SUM( 57 )
----
156
-57

skipif mysql # not compatible
query II rowsort label-9482
SELECT 89 + + 67 col1, - SUM ( 57 )
----
156
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT MAX( DISTINCT - 66 ) * 16 * + 87 * + + 71
----
-6522912

skipif mysql # not compatible
query I rowsort label-9483
SELECT MAX ( DISTINCT - 66 ) * 16 * + 87 * + + 71
----
-6522912

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + 15 + + COUNT( * ) * + + 27 + + COALESCE ( + + 8, - + 53 )
----
50

skipif mysql # not compatible
query I rowsort label-9484
SELECT + 15 + + COUNT ( * ) * + + 27 + + COALESCE ( + + 8, - + 53 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT - 24 DIV 13 * ( 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 24 / 13 * ( 65 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT + 18 DIV 46 + + 3 DIV 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + 18 / 46 + + 3 / 46 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9487
SELECT ALL + + 68 DIV + 57, + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9487
SELECT ALL + + 68 / + 57, + COUNT ( * ) col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9488
SELECT + 90 DIV + + 80 + - - 85 * COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9488
SELECT + 90 / + + 80 + - - 85 * COUNT ( * )
----
86

query II rowsort
SELECT ALL + 74 + + 37 AS col0, 68
----
111
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT 93 DIV + 70 + - + 42
----
-41

skipif mysql # not compatible
query I rowsort label-9490
SELECT 93 / + 70 + - + 42
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - + MAX( ALL ( - 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - + MAX ( ALL ( - 26 ) )
----
26

query I rowsort
SELECT + 31 + ( - 99 ) * + 46 * 97 AS col2
----
-441707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9493
SELECT DISTINCT - + COALESCE ( CAST( NULL AS SIGNED ), - + COUNT( * ), + 76 + + 21 ), - 53 AS col1
----
1
-53

skipif mysql # not compatible
query II rowsort label-9493
SELECT DISTINCT - + COALESCE ( CAST ( NULL AS INTEGER ), - + COUNT ( * ), + 76 + + 21 ), - 53 AS col1
----
1
-53

query I rowsort
SELECT ALL - - 63 + - 66 + - 94
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - 97 * - COUNT( * ) * 17 * 48
----
79152

skipif mysql # not compatible
query I rowsort label-9495
SELECT - 97 * - COUNT ( * ) * 17 * 48
----
79152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ALL + CAST( - - 28 AS SIGNED ) + + 27
----
55

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + CAST ( - - 28 AS INTEGER ) + + 27
----
55

query II rowsort
SELECT + 64, 81 AS col2
----
64
81

query I rowsort
SELECT - 15 * + 83 + 74 AS col1
----
-1171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT + CAST( - - 85 AS SIGNED ) + - 52
----
33

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + CAST ( - - 85 AS INTEGER ) + - 52
----
33

query I rowsort
SELECT 28 * 27 AS col2
----
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT 35 DIV - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9501
SELECT 35 / - + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT + 37 - + + CAST( 72 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT + 37 - + + CAST ( 72 AS INTEGER )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT ALL + 56 * - + COUNT( ALL 53 ) AS col0, 11 * 91 AS col1
----
-56
1001

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL + 56 * - + COUNT ( ALL 53 ) AS col0, 11 * 91 AS col1
----
-56
1001

query II rowsort
SELECT ALL 78 * + ( - 74 ), 38 AS col1
----
-5772
38

query II rowsort
SELECT 37, - NULLIF ( 18, 48 * + + 85 ) - + 45 col1
----
37
-63

query I rowsort
SELECT DISTINCT - 83 * - 17
----
1411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9507
SELECT - 96 AS col0, - COALESCE ( + 6, - + 95 * NULLIF ( - COUNT( * ), + 94 * - 74 + - COALESCE ( 17, - AVG ( + 69 ) + COUNT( * ) * - 35 + 32 ) - + 71 * - COUNT( - 11 ) ), - ( + CAST( 92 AS SIGNED ) ) ) AS col2
----
-96
-6

skipif mysql # not compatible
query II rowsort label-9507
SELECT - 96 AS col0, - COALESCE ( + 6, - + 95 * NULLIF ( - COUNT ( * ), + 94 * - 74 + - COALESCE ( 17, - AVG ( + 69 ) + COUNT ( * ) * - 35 + 32 ) - + 71 * - COUNT ( - 11 ) ), - ( + CAST ( 92 AS INTEGER ) ) ) AS col2
----
-96
-6

query I rowsort
SELECT 60 * - 14 AS col1
----
-840

query II rowsort
SELECT ALL 6, - 7 AS col1
----
6
-7

query I rowsort
SELECT 69 - + 3
----
66

query I rowsort
SELECT - COALESCE ( + - 63, + - 40 - + 30 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL + CAST( - + MIN( - + 55 ) AS SIGNED ) * - + 22 * 75
----
-90750

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + CAST ( - + MIN ( - + 55 ) AS INTEGER ) * - + 22 * 75
----
-90750

query II rowsort
SELECT - 21 AS col0, 76
----
-21
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT ALL + 44 + 47 + - COALESCE ( 1, - 26 * + 1 + + COUNT( * ) - + + COUNT( * ), COUNT( * ) * + - 28 * - + 25 * + ( - ( + + 40 ) ) * 58 + - 51 + - COUNT( * ) ) * + COUNT( * ) DIV - + 92 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + 44 + 47 + - COALESCE ( 1, - 26 * + 1 + + COUNT ( * ) - + + COUNT ( * ), COUNT ( * ) * + - 28 * - + 25 * + ( - ( + + 40 ) ) * 58 + - 51 + - COUNT ( * ) ) * + COUNT ( * ) / - + 92 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT MIN( DISTINCT 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT MIN ( DISTINCT 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT - 27 * NULLIF ( 12, - COUNT( ALL + 93 ) )
----
-324

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 27 * NULLIF ( 12, - COUNT ( ALL + 93 ) )
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT 19 + + - SUM( + 50 )
----
-31

skipif mysql # not compatible
query I rowsort label-9517
SELECT 19 + + - SUM ( + 50 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9518
SELECT DISTINCT + 95 + 21 + 39, 96 DIV 32 - - + 9 DIV - COUNT( + 83 ) AS col2
----
155
-6

skipif mysql # not compatible
query II rowsort label-9518
SELECT DISTINCT + 95 + 21 + 39, 96 / 32 - - + 9 / - COUNT ( + 83 ) AS col2
----
155
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT - COUNT( * ) + 1 + - MAX( ALL + 21 ) / + - CAST( NULL AS SIGNED ) - - 53 * + 46 + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT - COUNT ( * ) + 1 + - MAX ( ALL + 21 ) / + - CAST ( NULL AS INTEGER ) - - 53 * + 46 + - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9520
SELECT ALL + + 44 * - + CASE + + 18 WHEN 14 THEN 21 END + - - 21, + MAX( ALL - 44 ) + - + 31 AS col1, - 73 * 13 AS col2
----
NULL
-75
-949

skipif mysql # not compatible
query III rowsort label-9520
SELECT ALL + + 44 * - + CASE + + 18 WHEN 14 THEN 21 END + - - 21, + MAX ( ALL - 44 ) + - + 31 AS col1, - 73 * 13 AS col2
----
NULL
-75
-949

query I rowsort
SELECT ALL - + COALESCE ( - 96, - + 47, 81 ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT DISTINCT 82 * 46 DIV 17 + - + 62 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT 82 * 46 / 17 + - + 62 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - + 88 * - 85 * + - 42 * - - 47 + + + CAST( NULL AS SIGNED ) + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT - + 88 * - 85 * + - 42 * - - 47 + + + CAST ( NULL AS INTEGER ) + 21 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL - 12 DIV 44 DIV + + 82 + - 11 + + 64 * + 38
----
2421

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - 12 / 44 / + + 82 + - 11 + + 64 * + 38
----
2421

query I rowsort
SELECT ALL + - 58 * 60 * 54 * 57 * - 1 + 5
----
10711445

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL - 95 * MAX( DISTINCT 53 ) - 14 * + 71 + - - 59 + + - 54 + 30
----
-5994

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - 95 * MAX ( DISTINCT 53 ) - 14 * + 71 + - - 59 + + - 54 + 30
----
-5994

query I rowsort
SELECT - 18 * + + ( + - 70 )
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT 30 col1, + COUNT( * ) + 52 * - + ( 92 ) + + + NULLIF ( 69, + 11 ) col1
----
30
-4714

skipif mysql # not compatible
query II rowsort label-9528
SELECT 30 col1, + COUNT ( * ) + 52 * - + ( 92 ) + + + NULLIF ( 69, + 11 ) col1
----
30
-4714

query I rowsort
SELECT 69 * + 81 + - 19 * - 18 + - 14 AS col1
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + 14 * - 43 * - ( + - COUNT( * ) ) AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 14 * - 43 * - ( + - COUNT ( * ) ) AS col0
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL CAST( - 59 AS SIGNED ) * 54 AS col0
----
-3186

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL CAST ( - 59 AS INTEGER ) * 54 AS col0
----
-3186

query I rowsort
SELECT ALL + ( - 93 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT + 72 + 68 - + COUNT( * ) + - 87 + - 14 DIV + ( - 78 ) * - 98
----
52

skipif mysql # not compatible
query I rowsort label-9533
SELECT + 72 + 68 - + COUNT ( * ) + - 87 + - 14 / + ( - 78 ) * - 98
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - MAX( 47 ) - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9534
SELECT - MAX ( 47 ) - COUNT ( * ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT - CAST( + - 28 AS SIGNED ) * 77 * - + CASE - 67 WHEN - CAST( NULL AS SIGNED ) + COUNT( * ) * - 39 THEN CASE - CAST( NULL AS SIGNED ) WHEN 79 THEN NULL WHEN - 28 + - ( - + 0 ) * - 35 + + COUNT( * ) * - - 1 + + - 40 THEN - - 4 * + 23 * + + 36 ELSE + 27 + - + AVG ( ALL 68 ) - - + ( - - 19 ) * + 44 END / - - 84 END - + 16 / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT - CAST ( + - 28 AS INTEGER ) * 77 * - + CASE - 67 WHEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 39 THEN CASE - CAST ( NULL AS INTEGER ) WHEN 79 THEN NULL WHEN - 28 + - ( - + 0 ) * - 35 + + COUNT ( * ) * - - 1 + + - 40 THEN - - 4 * + 23 * + + 36 ELSE + 27 + - + AVG ( ALL 68 ) - - + ( - - 19 ) * + 44 END / - - 84 END - + 16 / 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9536
SELECT ALL CASE - 16 WHEN ( - CAST( + - 97 AS DECIMAL ) ) + + 42 + - COUNT( * ) + 37 THEN + + 89 ELSE - - 18 END AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL CASE - 16 WHEN ( - CAST ( + - 97 AS REAL ) ) + + 42 + - COUNT ( * ) + 37 THEN + + 89 ELSE - - 18 END AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + 78 * - COALESCE ( - COUNT( * ), 98 ) + + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9537
SELECT + 78 * - COALESCE ( - COUNT ( * ), 98 ) + + - COUNT ( * )
----
77

query II rowsort
SELECT DISTINCT 65 + + - 43 AS col0, - 52 AS col1
----
22
-52

query I rowsort
SELECT ALL - 89 * + 39 AS col1
----
-3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL + COALESCE ( + CAST( NULLIF ( - + 98, - 40 + + ( + + 32 ) ) AS SIGNED ), + 65 * 8, 66 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL + COALESCE ( + CAST ( NULLIF ( - + 98, - 40 + + ( + + 32 ) ) AS INTEGER ), + 65 * 8, 66 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 97 + 35 col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT DISTINCT - + 34 * + 69 AS col0, ( + 90 ) + SUM( DISTINCT + 13 ) AS col2
----
-2346
103

skipif mysql # not compatible
query II rowsort label-9542
SELECT DISTINCT - + 34 * + 69 AS col0, ( + 90 ) + SUM ( DISTINCT + 13 ) AS col2
----
-2346
103

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT ALL 2 + 66, - COUNT( * ) AS col1
----
68
-1

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL 2 + 66, - COUNT ( * ) AS col1
----
68
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - ( COALESCE ( + SUM( - + 31 ), + 28 ) ) * + - 45 * - 74
----
103230

skipif mysql # not compatible
query I rowsort label-9544
SELECT - ( COALESCE ( + SUM ( - + 31 ), + 28 ) ) * + - 45 * - 74
----
103230

query I rowsort
SELECT - 86 + - 77 col0
----
-163

query I rowsort
SELECT DISTINCT + 66 + - + 10
----
56

query II rowsort
SELECT ALL + + 21 + 31 AS col0, 83 col2
----
52
83

query I rowsort
SELECT - - 27 * - 88 + 65 * + 32 AS col0
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT + 5 + 0 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + 5 + 0 + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT + 83 * + 44 * - 41 AS col1
----
-149732

query I rowsort
SELECT - - 77 * 85 AS col1
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL + 72 - + CASE 99 WHEN - - 37 * NULLIF ( + NULLIF ( - COUNT( * ), + 48 ), - 81 ) + - 11 + - 71 - + 93 THEN NULL ELSE ( - 28 ) + - + 46 END AS col2
----
146

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + 72 - + CASE 99 WHEN - - 37 * NULLIF ( + NULLIF ( - COUNT ( * ), + 48 ), - 81 ) + - 11 + - 71 - + 93 THEN NULL ELSE ( - 28 ) + - + 46 END AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - 32 - COUNT( * ) + + - 42 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 32 - COUNT ( * ) + + - 42 AS col2
----
-75

query I rowsort
SELECT ALL + COALESCE ( - 35, - ( 26 ) - - 43 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT - 46 DIV + ( + - 21 ) + + 94 * - 89 * 96 AS col0
----
-803134

skipif mysql # not compatible
query I rowsort label-9555
SELECT - 46 / + ( + - 21 ) + + 94 * - 89 * 96 AS col0
----
-803134

query I rowsort
SELECT DISTINCT + 89 * ( + - 2 )
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-9557
SELECT + MAX ( 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT + 14 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT + 14 / - 76
----
0

query I rowsort
SELECT ALL - 64 * + - 47 AS col1
----
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT + ( + + COUNT( * ) ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + ( + + COUNT ( * ) ) * + 45
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT DISTINCT 61 DIV CASE 68 WHEN + - 31 * 76 + + + 96 * 48 DIV - + 73 THEN - ( + - 88 ) ELSE - ( + - 93 ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT 61 / CASE 68 WHEN + - 31 * 76 + + + 96 * 48 / - + 73 THEN - ( + - 88 ) ELSE - ( + - 93 ) END AS col2
----
0

query II rowsort
SELECT DISTINCT + 96, + 4 AS col0
----
96
4

query I rowsort
SELECT ALL 96 * + - 57 * + 97 AS col0
----
-530784

query I rowsort
SELECT + 2 + + 23 * + 37 * + 83
----
70635

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9565
SELECT + CAST( + 91 AS SIGNED ) * - 57 + ( 99 ) AS col1, + 37
----
-5088
37

skipif mysql # not compatible
query II rowsort label-9565
SELECT + CAST ( + 91 AS INTEGER ) * - 57 + ( 99 ) AS col1, + 37
----
-5088
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT COALESCE ( - 74, + ( + 81 ) * - - MIN( ALL 61 ) DIV ( + 23 ) + - 10 * + - 61 + 53 + - COUNT( * ) * - 79 ) * - 76 + - + 34 * + 90 col2
----
2564

skipif mysql # not compatible
query I rowsort label-9566
SELECT COALESCE ( - 74, + ( + 81 ) * - - MIN ( ALL 61 ) / ( + 23 ) + - 10 * + - 61 + 53 + - COUNT ( * ) * - 79 ) * - 76 + - + 34 * + 90 col2
----
2564

query I rowsort
SELECT + ( - - ( - CASE 64 WHEN 46 * + 67 + + 7 * - - 91 THEN + 91 * + - 11 + + ( 13 ) ELSE NULL END ) ) * - - 16 - - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT MIN( DISTINCT + 39 ) * + MIN( DISTINCT - - 49 ) + + + 59 * + 80 + - 10 + + + 17 * 54
----
7539

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT MIN ( DISTINCT + 39 ) * + MIN ( DISTINCT - - 49 ) + + + 59 * + 80 + - 10 + + + 17 * 54
----
7539

query I rowsort
SELECT + 94 * - - 54
----
5076

query I rowsort
SELECT ALL 30 * 73 * - + 12 + 13
----
-26267

query I rowsort
SELECT DISTINCT 18 * - 13 AS col2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL MIN( DISTINCT 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL MIN ( DISTINCT 16 ) AS col0
----
16

query I rowsort
SELECT ALL 43 * 28 + - 22
----
1182

query I rowsort
SELECT + 58 * + 0
----
0

query I rowsort
SELECT - 64 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT SUM( ALL ( 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-9576
SELECT SUM ( ALL ( 10 ) )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT ALL + 31 + COUNT( * ) DIV 80
----
31

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + 31 + COUNT ( * ) / 80
----
31

query I rowsort
SELECT + 28 - + 73 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - MAX( DISTINCT 37 ) * + 36
----
-1332

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - MAX ( DISTINCT 37 ) * + 36
----
-1332

query I rowsort
SELECT DISTINCT 52 - 59 * + 59
----
-3429

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL COUNT( * ) - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL COUNT ( * ) - 76 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - ( 26 ) * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - ( 26 ) * COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT + SUM( ALL ( 74 ) ) - 26
----
48

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + SUM ( ALL ( 74 ) ) - 26
----
48

query I rowsort
SELECT ALL - 59 * - 85 AS col2
----
5015

query I rowsort
SELECT 39 * - 48 AS col2
----
-1872

query I rowsort
SELECT 13 + + 46
----
59

query I rowsort
SELECT 55 + 73 * 67
----
4946

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT - MAX( - 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT - MAX ( - 28 ) AS col0
----
28

query I rowsort
SELECT 54 * CASE - 75 WHEN - 46 + NULLIF ( + 69, + 53 ) THEN NULL WHEN + 28 THEN - 89 + 2 * - 28 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 20 * 38
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL - 33 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - 33 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 44 * + 30 AS col1
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT 79 * + MAX( 94 )
----
7426

skipif mysql # not compatible
query I rowsort label-9593
SELECT 79 * + MAX ( 94 )
----
7426

query I rowsort
SELECT DISTINCT - 24 * 94
----
-2256

query I rowsort
SELECT ALL 60 + + 97
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT 98 DIV 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9596
SELECT 98 / 33 AS col0
----
2

query I rowsort
SELECT DISTINCT + 79 + 39 * - ( ( 26 ) - 5 )
----
-740

query I rowsort
SELECT DISTINCT - 16 + 68
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL + 62 + ( + 97 - + COUNT( * ) * - SUM( 46 ) ) AS col0
----
205

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + 62 + ( + 97 - + COUNT ( * ) * - SUM ( 46 ) ) AS col0
----
205

query I rowsort
SELECT ALL - 7 * 79
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL COUNT( * ) + - 64 * - 78 col1
----
4993

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL COUNT ( * ) + - 64 * - 78 col1
----
4993

query I rowsort
SELECT ALL 77 + 32
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT 69 + + 27 DIV + ( - 22 * - 74 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9603
SELECT 69 + + 27 / + ( - 22 * - 74 ) AS col0
----
69

query I rowsort
SELECT 62 * - 21 - - 33 col1
----
-1269

query I rowsort
SELECT 78 + + 51
----
129

query I rowsort
SELECT + ( 8 ) - - 38
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT ALL 24 DIV 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL 24 / 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ( + 45 ) * COUNT( * ) + + 37 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9608
SELECT ( + 45 ) * COUNT ( * ) + + 37 AS col2
----
82

query I rowsort
SELECT DISTINCT - ( + 73 ) - + 41 AS col1
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT ALL 65 * NULLIF ( 85 - - NULLIF ( - COUNT( DISTINCT 60 ), 26 ) DIV 43, 53 ) AS col0
----
5525

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL 65 * NULLIF ( 85 - - NULLIF ( - COUNT ( DISTINCT 60 ), 26 ) / 43, 53 ) AS col0
----
5525

query I rowsort
SELECT 94 + 77
----
171

query I rowsort
SELECT ALL + 5 - 87
----
-82

query I rowsort
SELECT ALL + 25 - 40 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - + MIN( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9614
SELECT - + MIN ( 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT SUM( DISTINCT 19 ) + - 71 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9615
SELECT SUM ( DISTINCT 19 ) + - 71 AS col2
----
-52

query I rowsort
SELECT ALL + 55 * + 22 col1
----
1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT CAST( NULL AS SIGNED ) * 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT CAST ( NULL AS INTEGER ) * 87 col1
----
NULL

query I rowsort
SELECT 4 + 22
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9619
SELECT - 97 + + MIN( DISTINCT - 4 + 43 ) DIV + 26
----
-96

skipif mysql # not compatible
query I rowsort label-9619
SELECT - 97 + + MIN ( DISTINCT - 4 + 43 ) / + 26
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - 6 * - MIN( 98 ) AS col2
----
588

skipif mysql # not compatible
query I rowsort label-9620
SELECT - 6 * - MIN ( 98 ) AS col2
----
588

query I rowsort
SELECT 55 + - 38 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT + CASE 59 WHEN + COUNT( * ) THEN 8 / + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT + CASE 59 WHEN + COUNT ( * ) THEN 8 / + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL MAX( DISTINCT + 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL MAX ( DISTINCT + 63 ) col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ALL 33 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL 33 / 78
----
0

query I rowsort
SELECT 54 * - 56
----
-3024

query I rowsort
SELECT DISTINCT + 92 * + 34
----
3128

query I rowsort
SELECT ALL - 38 * + - 41 * - 73
----
-113734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT COUNT( * ) DIV 78 + - 94 col0
----
-94

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( * ) / 78 + - 94 col0
----
-94

query I rowsort
SELECT ( - - 1 ) - 65
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9630
SELECT ( - - 74 ) DIV CAST( 89 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT ( - - 74 ) / CAST ( 89 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + 23 * - 13 + 41 AS col2
----
-258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9632
SELECT DISTINCT + 93 + - 47 + ( - CASE 96 WHEN COUNT( * ) THEN - CAST( NULL AS DECIMAL ) WHEN + 49 * + 39 + MIN( DISTINCT 74 ) THEN - 82 + COALESCE ( - 15, + 16, - ( 32 ) * 44 ) END ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT + 93 + - 47 + ( - CASE 96 WHEN COUNT ( * ) THEN - CAST ( NULL AS REAL ) WHEN + 49 * + 39 + MIN ( DISTINCT 74 ) THEN - 82 + COALESCE ( - 15, + 16, - ( 32 ) * 44 ) END ) * 30 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL - 38 * 64 / - MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - 38 * 64 / - MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 54 * + ( ( - 97 ) ) col0
----
-5238

query I rowsort
SELECT 89 + - + 2 + + 59 * 93
----
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + 66 + - 9 - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + 66 + - 9 - COUNT ( * )
----
56

query I rowsort
SELECT ALL - 2 + 71
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT 66 DIV + 50 + ( 1 ) * + 15 col1
----
16

skipif mysql # not compatible
query I rowsort label-9638
SELECT 66 / + 50 + ( 1 ) * + 15 col1
----
16

query I rowsort
SELECT ALL - 30 + + 28 * + 99 col2
----
2742

query I rowsort
SELECT 88 + - - 24
----
112

query I rowsort
SELECT 69 * + + ( 1 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT 4 + - 97 - - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-9642
SELECT 4 + - 97 - - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + 85 + - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + 85 + - - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL - COUNT( * ) + - 30 + - 87 * - 90 AS col2
----
7799

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - COUNT ( * ) + - 30 + - 87 * - 90 AS col2
----
7799

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT COUNT( * ) + - ( - 31 ) - + 18 * 78
----
-1372

skipif mysql # not compatible
query I rowsort label-9645
SELECT COUNT ( * ) + - ( - 31 ) - + 18 * 78
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT 70 * + MIN( 23 ) * 64 - + 49 * - 49 AS col0
----
105441

skipif mysql # not compatible
query I rowsort label-9646
SELECT 70 * + MIN ( 23 ) * 64 - + 49 * - 49 AS col0
----
105441

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT - 78 * + - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - 78 * + - COUNT ( * ) AS col2
----
78

query I rowsort
SELECT DISTINCT + - COALESCE ( - - 10, + 48 ) - 56 AS col2
----
-66

query I rowsort
SELECT ALL + 34 - 86 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT - 76 * COUNT( * ) + 30
----
-46

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT - 76 * COUNT ( * ) + 30
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT SUM( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9651
SELECT SUM ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL + ( - - COUNT( 16 ) ) - - 43
----
44

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + ( - - COUNT ( 16 ) ) - - 43
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT DISTINCT - 96 DIV MIN( DISTINCT + 69 ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - 96 / MIN ( DISTINCT + 69 ) * - 56
----
56

query I rowsort
SELECT + - 90 * 7 * + 81 + + NULLIF ( 60 + COALESCE ( 17, 95 ), - 43 ) * 79 AS col2
----
-44947

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + CASE - 51 WHEN - 48 THEN - 41 * + 14 END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT + CASE - 51 WHEN - 48 THEN - 41 * + 14 END / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT DISTINCT + 51 / + - 65 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + 51 / + - 65 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 7 * - - 36 AS col2
----
-252

query I rowsort
SELECT - 12 * 97 AS col1
----
-1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT DISTINCT + CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + CAST ( + 39 AS INTEGER )
----
39

query I rowsort
SELECT ALL 65 * + 81 AS col0
----
5265

query I rowsort
SELECT ALL + 69 + 88 * + 94 AS col2
----
8341

query I rowsort
SELECT + + 63 - + 21 col0
----
42

query I rowsort
SELECT ALL - ( 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT 27 + + COUNT( * ) + + 65 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT 27 + + COUNT ( * ) + + 65 AS col1
----
93

query I rowsort
SELECT ALL ( + NULLIF ( - + 39, - 3 ) ) + ( + 8 - - 0 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT ALL 50 + + 34 DIV + 85 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL 50 + + 34 / + 85 + + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT + 55 + - + 40 col1
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9668
SELECT 91, - 1 DIV - - 10 AS col1
----
91
0

skipif mysql # not compatible
query II rowsort label-9668
SELECT 91, - 1 / - - 10 AS col1
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + COUNT( * ) + ( - 72 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9669
SELECT + COUNT ( * ) + ( - 72 ) AS col0
----
-71

query I rowsort
SELECT - 14 - 5
----
-19

query I rowsort
SELECT ALL 75 * - 21 + + 26
----
-1549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT ALL CAST( NULL AS SIGNED ) * + ( + 57 ) + + NULLIF ( - ( 90 ), 24 ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + 57 ) + + NULLIF ( - ( 90 ), 24 ) * 44
----
NULL

query I rowsort
SELECT + NULLIF ( - 25, 65 ) * - 88 AS col1
----
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT + ( - 85 ) DIV NULLIF ( - 5, 60 )
----
17

skipif mysql # not compatible
query I rowsort label-9674
SELECT + ( - 85 ) / NULLIF ( - 5, 60 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT ( + 68 ) DIV + 88 + - 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9675
SELECT ( + 68 ) / + 88 + - 4 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9676
SELECT ALL + 18 AS col1, CAST( + 30 AS SIGNED )
----
18
30

skipif mysql # not compatible
query II rowsort label-9676
SELECT ALL + 18 AS col1, CAST ( + 30 AS INTEGER )
----
18
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT 42 DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT 42 / - 44 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + COUNT( * ) * - - 79
----
79

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + COUNT ( * ) * - - 79
----
79

query I rowsort
SELECT DISTINCT - 89 * - + 30
----
2670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9680
SELECT + ( ( 40 ) ) + COUNT( * ) DIV 93 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9680
SELECT + ( ( 40 ) ) + COUNT ( * ) / 93 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT - 89 DIV - ( + MAX( 29 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9681
SELECT - 89 / - ( + MAX ( 29 ) ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT SUM( DISTINCT + + 3 ) * 49
----
147

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT SUM ( DISTINCT + + 3 ) * 49
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT CASE 33 WHEN - 57 + COUNT( * ) THEN NULL WHEN 51 / - ( 99 / 52 ) THEN 84 END * - 4 + + 85 / - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT CASE 33 WHEN - 57 + COUNT ( * ) THEN NULL WHEN 51 / - ( 99 / 52 ) THEN 84 END * - 4 + + 85 / - 87 AS col2
----
NULL

query I rowsort
SELECT - 65 * 0 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9685
SELECT ALL + ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 35 * 12
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT CASE WHEN NOT NULL BETWEEN ( NULL ) AND ( NULL ) THEN NULLIF ( - 15, SUM( ALL - CAST( 89 AS SIGNED ) ) ) ELSE NULL END * CAST( NULL AS SIGNED ) - + 45 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT CASE WHEN NOT NULL BETWEEN ( NULL ) AND ( NULL ) THEN NULLIF ( - 15, SUM ( ALL - CAST ( 89 AS INTEGER ) ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) - + 45 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL + MAX( DISTINCT + - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + MAX ( DISTINCT + - 68 ) AS col2
----
-68

query I rowsort
SELECT - 29 - 6 - + + 46
----
-81

query I rowsort
SELECT - + 69 + - 32 col1
----
-101

query I rowsort
SELECT - 25 * + 64
----
-1600

query I rowsort
SELECT - 69 + + 71 AS col0
----
2

query II rowsort
SELECT ALL + 98, + 73 AS col0
----
98
73

query I rowsort
SELECT - 83 + + - 65
----
-148

query I rowsort
SELECT - 52 - - 39
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL + - 70 * - COALESCE ( - - 24, COUNT( * ) )
----
1680

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + - 70 * - COALESCE ( - - 24, COUNT ( * ) )
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT - + CAST( NULL AS SIGNED ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT - + CAST ( NULL AS INTEGER ) * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - 10 * - 11 * + COUNT( * ) + + 39 * - COUNT( * ) col1
----
71

skipif mysql # not compatible
query I rowsort label-9698
SELECT - 10 * - 11 * + COUNT ( * ) + + 39 * - COUNT ( * ) col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9699
SELECT ALL + - MIN( - 52 ) + - CAST( 89 AS SIGNED ) - - 7 DIV - NULLIF ( MAX( 80 ), - 76 )
----
-37

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + - MIN ( - 52 ) + - CAST ( 89 AS INTEGER ) - - 7 / - NULLIF ( MAX ( 80 ), - 76 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT - + 67 + + 37 + + - 24 DIV - ( MIN( + 36 ) ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-9700
SELECT - + 67 + + 37 + + - 24 / - ( MIN ( + 36 ) ) col0
----
-30

query II rowsort
SELECT ALL + 39 AS col0, - 45
----
39
-45

query II rowsort
SELECT ALL 55, + 27 AS col2
----
55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - COUNT( * ) * + COUNT( * ) * - 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9703
SELECT - COUNT ( * ) * + COUNT ( * ) * - 57 AS col0
----
57

query I rowsort
SELECT DISTINCT - - 66 + + 8 + + ( + 96 ) + - 96 * 80 * 58 AS col0
----
-445270

query I rowsort
SELECT ALL + - 3 + + 39 + - + 77 * + 90 AS col0
----
-6894

query I rowsort
SELECT + 59 + - + 68 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT - + 53 + - + 73 * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - + 53 + - + 73 * - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - MAX( + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - MAX ( + 33 ) AS col0
----
-33

query I rowsort
SELECT - 73 + - - 86 col1
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-9710
SELECT - 32 DIV - 40 col2, 20 AS col1
----
0
20

skipif mysql # not compatible
query II rowsort label-9710
SELECT - 32 / - 40 col2, 20 AS col1
----
0
20

query I rowsort
SELECT + 38 + 39 - + + ( - 24 )
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT ALL 44 DIV + MIN( ALL 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 44 / + MIN ( ALL 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT - COUNT( * ) * - 44 AS col1, + COUNT( * ) + SUM( ALL + 0 ) - 20 * - 16 AS col0
----
44
321

skipif mysql # not compatible
query II rowsort label-9713
SELECT - COUNT ( * ) * - 44 AS col1, + COUNT ( * ) + SUM ( ALL + 0 ) - 20 * - 16 AS col0
----
44
321

query I rowsort
SELECT + ( + - 97 ) + - 52 + + 33 * + 73
----
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL 96 + + COUNT( * ) * + 15
----
111

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 96 + + COUNT ( * ) * + 15
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL SUM( 55 ) * 43 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL SUM ( 55 ) * 43 * - 0
----
0

query I rowsort
SELECT + ( + 3 ) + + 82 * - 61 * 70
----
-350137

query I rowsort
SELECT ALL 1 * 46 * 35
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL 60 - - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL 60 - - - COUNT ( * )
----
59

query I rowsort
SELECT - ( + 98 ) - 54 AS col1
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT ALL SUM( ALL 83 ) * COUNT( * ) + 20 DIV - 15
----
82

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL SUM ( ALL 83 ) * COUNT ( * ) + 20 / - 15
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + 42 + + ( - COUNT( * ) ) * + ( + 53 ) + + 16
----
5

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 42 + + ( - COUNT ( * ) ) * + ( + 53 ) + + 16
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT 4 * 43 * + + 78 * CAST( NULL AS SIGNED ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT 4 * 43 * + + 78 * CAST ( NULL AS INTEGER ) + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT DISTINCT 26 DIV + + 31 - 15 DIV - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT 26 / + + 31 - 15 / - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT DISTINCT 41 DIV + COALESCE ( + + 35, + - 44, + 94 * COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT 41 / + COALESCE ( + + 35, + - 44, + 94 * COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9726
SELECT + - MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT + - MIN ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT NULLIF ( - + 5, - - MIN( ALL - 91 ) + + 41 ) + 29 DIV 54 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9727
SELECT NULLIF ( - + 5, - - MIN ( ALL - 91 ) + + 41 ) + 29 / 54 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL + CAST( - 36 AS SIGNED ) * + 50 * - 28 * 0 + - COUNT( * ) * - 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL + CAST ( - 36 AS INTEGER ) * + 50 * - 28 * 0 + - COUNT ( * ) * - 93 AS col1
----
93

query I rowsort
SELECT + 67 * - + 31 col2
----
-2077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT ALL + 93 * + CAST( NULL AS SIGNED ) - - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL + 93 * + CAST ( NULL AS INTEGER ) - - - 47
----
NULL

query I rowsort
SELECT ALL + + 43 * 43 * + 44 + CASE WHEN NOT ( + 78 ) IS NULL THEN + 56 ELSE 1 END + 73 * - 98 col0
----
74258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT ALL - 2 + 87 + + COUNT( * ) - + + 22 DIV 40 * + 68 * - COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - 2 + 87 + + COUNT ( * ) - + + 22 / 40 * + 68 * - COUNT ( * ) AS col1
----
86

query I rowsort
SELECT ALL + 33 * - + 22 AS col0
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL - + 64 + + 25 + + + CASE 52 WHEN + 92 THEN + 98 WHEN MIN( DISTINCT + 55 ) THEN NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - + 64 + + 25 + + + CASE 52 WHEN + 92 THEN + 98 WHEN MIN ( DISTINCT + 55 ) THEN NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + 83 - 16 * COUNT( * ) - + 28 + COALESCE ( 24, - 86 * COUNT( * ), + 94 * 11 )
----
63

skipif mysql # not compatible
query I rowsort label-9735
SELECT + 83 - 16 * COUNT ( * ) - + 28 + COALESCE ( 24, - 86 * COUNT ( * ), + 94 * 11 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9736
SELECT COUNT( * ) + 10 DIV ( 90 ) * - 10
----
1

skipif mysql # not compatible
query I rowsort label-9736
SELECT COUNT ( * ) + 10 / ( 90 ) * - 10
----
1

query II rowsort
SELECT - ( 88 ) AS col0, + 69
----
-88
69

query I rowsort
SELECT DISTINCT + 34 + + 47 AS col1
----
81

query I rowsort
SELECT ALL - 79 + - - 43
----
-36

query I rowsort
SELECT 63 * - 46 * 76
----
-220248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT ALL + COUNT( * ) + 78 + 25 + - - 66 * + - 71 * CAST( - 36 AS SIGNED ) DIV - COUNT( DISTINCT + 33 DIV - 35 )
----
-168592

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + COUNT ( * ) + 78 + 25 + - - 66 * + - 71 * CAST ( - 36 AS INTEGER ) / - COUNT ( DISTINCT + 33 / - 35 )
----
-168592

query II rowsort
SELECT 73 - 79 + 6 AS col0, 16
----
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT + 34 - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + 34 - + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9744
SELECT ALL 21 AS col1, - MAX( + 23 ) - - 42 + + NULLIF ( ( + 97 ), - 59 ) - - ( 61 ) * - 32 * + COUNT( * )
----
21
-1836

skipif mysql # not compatible
query II rowsort label-9744
SELECT ALL 21 AS col1, - MAX ( + 23 ) - - 42 + + NULLIF ( ( + 97 ), - 59 ) - - ( 61 ) * - 32 * + COUNT ( * )
----
21
-1836

query II rowsort
SELECT DISTINCT 72 AS col0, + 94
----
72
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + 16 - - + 98 + + NULLIF ( - 20, + COUNT( * ) * 46 + COUNT( * ) * 21 ) * 84 AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + 16 - - + 98 + + NULLIF ( - 20, + COUNT ( * ) * 46 + COUNT ( * ) * 21 ) * 84 AS col1
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT 72 + + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9747
SELECT 72 + + + COUNT ( * )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT 8 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT 8 / + 78
----
0

query I rowsort
SELECT 79 * - + 78
----
-6162

query I rowsort
SELECT 82 + - + 90 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT NULLIF ( + 32, - + 7 DIV + 96 ) - 31 DIV + 8
----
29

skipif mysql # not compatible
query I rowsort label-9751
SELECT NULLIF ( + 32, - + 7 / + 96 ) - 31 / + 8
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9752
SELECT DISTINCT 89 DIV 2
----
44

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT 89 / 2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT 27 - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9753
SELECT 27 - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL 6 - - - MAX( - 25 )
----
31

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 6 - - - MAX ( - 25 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT 98 DIV 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT 98 / 88 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - + 91 + + 76 + COUNT( * ) * 66 * + 88 col0
----
5793

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - + 91 + + 76 + COUNT ( * ) * 66 * + 88 col0
----
5793

query I rowsort
SELECT DISTINCT 9 + + ( - NULLIF ( + 65, 44 ) )
----
-56

query I rowsort
SELECT DISTINCT - 35 + 19
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + SUM( + 85 ) + ( + 59 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + SUM ( + 85 ) + ( + 59 ) AS col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9760
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL + + 91 + - 76 AS col0
----
15

query I rowsort
SELECT + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT( * ) ) AS col1
----
309838428

skipif mysql # not compatible
query I rowsort label-9763
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT ( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT ( * ) ) AS col1
----
309838428

query II rowsort
SELECT 9 * 78, + 78 * - 37 - - + 45 AS col2
----
702
-2841

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT( * ) - + - 3 AS col2
----
1825
45

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2
----
1825
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST( + 87 AS SIGNED ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST ( + 87 AS INTEGER ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

query I rowsort
SELECT DISTINCT - 60
----
-60

query I rowsort
SELECT ALL 84 - + 80 AS col1
----
4

query I rowsort
SELECT ALL - 35 col2
----
-35

query I rowsort
SELECT DISTINCT - ( + + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT DISTINCT MIN( ALL - - 40 ), COUNT( * ) + - 86 AS col2
----
40
-85

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT MIN ( ALL - - 40 ), COUNT ( * ) + - 86 AS col2
----
40
-85

query II rowsort
SELECT 89 * - 56 * - 8 * 82, - 84 AS col2
----
3269504
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT 24 * + + COUNT( * ) col1
----
24

skipif mysql # not compatible
query I rowsort label-9773
SELECT 24 * + + COUNT ( * ) col1
----
24

query I rowsort
SELECT ALL 83 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT DISTINCT 83 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT 83 / + 74
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT 8 + 44, + COUNT( * ) col0
----
52
1

skipif mysql # not compatible
query II rowsort label-9776
SELECT 8 + 44, + COUNT ( * ) col0
----
52
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9777
SELECT COUNT( * ) DIV - 68, - CAST( + SUM( + 43 ) AS SIGNED ) + 33 + - 92 col1
----
0
-102

skipif mysql # not compatible
query II rowsort label-9777
SELECT COUNT ( * ) / - 68, - CAST ( + SUM ( + 43 ) AS INTEGER ) + 33 + - 92 col1
----
0
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL COUNT( * ) * 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL COUNT ( * ) * 57 col2
----
57

query I rowsort
SELECT 14 * - 46
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT ALL - 38 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL - 38 / + - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL MIN( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL MIN ( DISTINCT 45 ) AS col0
----
45

query I rowsort
SELECT DISTINCT - 29 * - 37 AS col2
----
1073

query I rowsort
SELECT ALL 50 col1
----
50

query I rowsort
SELECT DISTINCT 40 * + - 13
----
-520

query I rowsort
SELECT DISTINCT 57 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT( * ) ), + - 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT ( * ) ), + - 83 ) AS col2
----
1

query I rowsort
SELECT 73 * - 97 AS col0
----
-7081

query I rowsort
SELECT - + 19 AS col0
----
-19

query I rowsort
SELECT DISTINCT - 66 col0
----
-66

query I rowsort
SELECT DISTINCT 45 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT ALL 15 DIV - - 76 + ( 80 ) + + MIN( 40 ) col2
----
120

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL 15 / - - 76 + ( 80 ) + + MIN ( 40 ) col2
----
120

query I rowsort
SELECT ALL + 17 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL 39 * + CAST( NULL AS SIGNED ) + - 85 + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL 39 * + CAST ( NULL AS INTEGER ) + - 85 + 65 AS col2
----
NULL

query I rowsort
SELECT + 12 * + 24
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT + 43 * - 11 + 13 DIV + 44 * 95 + 66
----
-407

skipif mysql # not compatible
query I rowsort label-9797
SELECT + 43 * - 11 + 13 / + 44 * 95 + 66
----
-407

query I rowsort
SELECT 55 col0
----
55

query II rowsort
SELECT ALL + CASE 72 WHEN + - 95 THEN 62 END AS col0, + 18 * 81 + - 95 + + 7
----
NULL
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + - MIN( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9800
SELECT + - MIN ( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT ( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - - 24 * - 16 - + - COUNT( * )
----
-383

skipif mysql # not compatible
query I rowsort label-9801
SELECT - - 24 * - 16 - + - COUNT ( * )
----
-383

query I rowsort
SELECT ALL + - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 67
----
67

query I rowsort
SELECT ALL - ( + 28 ) * - 85 AS col2
----
2380

query I rowsort
SELECT ALL - 54 * 89 - - 82 AS col0
----
-4724

query I rowsort
SELECT DISTINCT - 60 * + - 39
----
2340

query II rowsort
SELECT - 18 + - ( 50 ) AS col2, - 80 AS col0
----
-68
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT - 36 * + - CAST( - 87 AS SIGNED )
----
-3132

skipif mysql # not compatible
query I rowsort label-9808
SELECT - 36 * + - CAST ( - 87 AS INTEGER )
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - COUNT( * ) * - CASE - 93 WHEN - 45 + + COUNT( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - COUNT ( * ) * - CASE - 93 WHEN - 45 + + COUNT ( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

query I rowsort
SELECT - 47 + + 43
----
-4

query I rowsort
SELECT DISTINCT - ( - 39 ) * + 99
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT ( - MAX( - + 56 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT ( - MAX ( - + 56 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL - 43 * + 50 * - COUNT( * )
----
2150

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - 43 * + 50 * - COUNT ( * )
----
2150

query I rowsort
SELECT ALL 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT 44 AS col0, 95 * + COUNT( + 70 ) AS col1
----
44
95

skipif mysql # not compatible
query II rowsort label-9815
SELECT 44 AS col0, 95 * + COUNT ( + 70 ) AS col1
----
44
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM( 38 ) + + - 36 AS col1
----
-13
-88

skipif mysql # not compatible
query II rowsort label-9816
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM ( 38 ) + + - 36 AS col1
----
-13
-88

query I rowsort
SELECT DISTINCT ( 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT ALL 64 DIV - - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 64 / - - COUNT ( * ) AS col0
----
64

query I rowsort
SELECT + 70 * ( - 45 )
----
-3150

query I rowsort
SELECT ALL ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT( * ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-9821
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT ( * ) ) )
----
-89

query I rowsort
SELECT 40 col2
----
40

query I rowsort
SELECT ALL + 62 + - 13 AS col0
----
49

query I rowsort
SELECT + + 81 + - 68 + 33 * COALESCE ( - + 53, + 24 ) + 2 * - 55 AS col1
----
-1846

query I rowsort
SELECT DISTINCT 1 col1
----
1

query I rowsort
SELECT ALL 4 * - 99
----
-396

query I rowsort
SELECT DISTINCT + 68 + 93 + - 99 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL 13 + - 55 + - - 19 + - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 13 + - 55 + - - 19 + - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 57 + + 32 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT ALL + 35 + 42 DIV - + NULLIF ( - 14, 0 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + 35 + 42 / - + NULLIF ( - 14, 0 ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT + CAST( - 40 AS SIGNED ) + 51
----
11

skipif mysql # not compatible
query I rowsort label-9831
SELECT + CAST ( - 40 AS INTEGER ) + 51
----
11

query I rowsort
SELECT + - 55 * 37
----
-2035

query I rowsort
SELECT + - 49 * + 49 AS col0
----
-2401

query I rowsort
SELECT DISTINCT + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL + MIN( ALL + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + MIN ( ALL + 81 )
----
81

query I rowsort
SELECT - ( 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT - + 70 / - + 54 + MIN( - - CAST( NULL AS SIGNED ) ) * + - 48 * - CASE - 43 WHEN - COUNT( * ) + 93 THEN NULL ELSE CASE + + COUNT( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT( * ) + 31 * 90 ELSE + + COUNT( * ) * COUNT( * ) / - 52 / + COUNT( * ) END END * - 97 / + + CAST( NULL AS SIGNED ) + COUNT( * ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT - + 70 / - + 54 + MIN ( - - CAST ( NULL AS INTEGER ) ) * + - 48 * - CASE - 43 WHEN - COUNT ( * ) + 93 THEN NULL ELSE CASE + + COUNT ( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT ( * ) + 31 * 90 ELSE + + COUNT ( * ) * COUNT ( * ) / - 52 / + COUNT ( * ) END END * - 97 / + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 21
----
NULL

query I rowsort
SELECT DISTINCT + 42 AS col1
----
42

query I rowsort
SELECT + 46 * - 57 AS col1
----
-2622

query I rowsort
SELECT DISTINCT + - 15 col0
----
-15

query I rowsort
SELECT + - 47 AS col1
----
-47

query I rowsort
SELECT ( 55 ) AS col1
----
55

query I rowsort
SELECT ALL 72 * 32
----
2304

query I rowsort
SELECT ( 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9845
SELECT ALL + 54, CAST( NULL AS SIGNED ) + + ( - NULLIF ( + 54, + 69 / - CAST( - 13 AS SIGNED ) + - 65 * - SUM( DISTINCT 24 ) ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL + 54, CAST ( NULL AS INTEGER ) + + ( - NULLIF ( + 54, + 69 / - CAST ( - 13 AS INTEGER ) + - 65 * - SUM ( DISTINCT 24 ) ) ) AS col2
----
54
NULL

query I rowsort
SELECT + ( 37 ) AS col1
----
37

query I rowsort
SELECT DISTINCT + 60 col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT - 36 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT - 36 / - 65 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + MIN( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + MIN ( 60 )
----
60

query I rowsort
SELECT + 7 - - 97 AS col0
----
104

query I rowsort
SELECT ( 3 ) col1
----
3

query I rowsort
SELECT + 83 * + + 93 AS col2
----
7719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT ALL + CAST( + 67 AS SIGNED ) / + CAST( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + CAST ( + 67 AS INTEGER ) / + CAST ( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT - 0 DIV 83 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT - 0 / 83 / + + 63 AS col2
----
0

query II rowsort
SELECT ALL + 63 col1, 89
----
63
89

query II rowsort
SELECT + 38, 27 + - 78 col2
----
38
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9857
SELECT DISTINCT - 83 * CAST( + 35 AS SIGNED ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

skipif mysql # not compatible
query II rowsort label-9857
SELECT DISTINCT - 83 * CAST ( + 35 AS INTEGER ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

query II rowsort
SELECT DISTINCT + 75, + 71 col1
----
75
71

query I rowsort
SELECT CASE - 68 WHEN - + 73 * + 76 THEN - - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM( + + 90 ), - 79 ) + + - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-9860
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM ( + + 90 ), - 79 ) + + - COUNT ( * ) )
----
-85

query I rowsort
SELECT ALL ( + + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - COUNT( * ) * - 21
----
21

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( * ) * - 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN( + + 80 )
----
4149

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN ( + + 80 )
----
4149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT ALL 92 * + + MAX( - 93 ) + + - 37 DIV + + 79
----
-8556

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL 92 * + + MAX ( - 93 ) + + - 37 / + + 79
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT - COUNT( * ) * + - 42 + 47
----
89

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - COUNT ( * ) * + - 42 + 47
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT - - CAST( CAST( + - ( - 51 ) AS SIGNED ) AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9866
SELECT - - CAST ( CAST ( + - ( - 51 ) AS INTEGER ) AS INTEGER ) AS col0
----
51

query II rowsort
SELECT DISTINCT + 72 AS col2, 50 AS col1
----
72
50

query II rowsort
SELECT ALL - 46, - ( - 5 ) AS col1
----
-46
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT DISTINCT + - ( - MIN( 17 ) ) + CAST( + 35 AS SIGNED ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + - ( - MIN ( 17 ) ) + CAST ( + 35 AS INTEGER ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

query I rowsort
SELECT ALL - 23 AS col2
----
-23

query I rowsort
SELECT 67 * - 14 col2
----
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT + 80 - + 38, - COUNT( * ) col2
----
42
-1

skipif mysql # not compatible
query II rowsort label-9872
SELECT + 80 - + 38, - COUNT ( * ) col2
----
42
-1

query I rowsort
SELECT 15 * - - 65 + - - 15
----
990

query I rowsort
SELECT - ( - 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT ALL + - 72 DIV + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + - 72 / + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT ( - - 64 ) - - 28 * + 33 + + 5 + 61 + + 63 AS col0
----
1117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT - 7 + + NULLIF ( - + CAST( NULL AS SIGNED ), - 12 * - 5 - 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT - 7 + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 12 * - 5 - 13 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9878
SELECT ALL 42 AS col1, 52 DIV + 11 AS col2
----
42
4

skipif mysql # not compatible
query II rowsort label-9878
SELECT ALL 42 AS col1, 52 / + 11 AS col2
----
42
4

query I rowsort
SELECT DISTINCT 64 col1
----
64

query I rowsort
SELECT ALL 60 - + 54 + + + 30 + + + ( + 65 ) AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST( + 78 AS SIGNED ) WHEN - COUNT( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX ( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST ( + 78 AS INTEGER ) WHEN - COUNT ( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

query I rowsort
SELECT DISTINCT + 96 * 61 AS col2
----
5856

query II rowsort
SELECT ALL - - 87 AS col2, - 50
----
87
-50

query I rowsort
SELECT ALL - 63 - - - ( + ( - 26 ) ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL 31 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 31 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX( - 35 ) / 43 * - + COUNT( * ) ) + - - COUNT( * ) + - 93 * - 37 AS col0
----
3441

skipif mysql # not compatible
query I rowsort label-9886
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX ( - 35 ) / 43 * - + COUNT ( * ) ) + - - COUNT ( * ) + - 93 * - 37 AS col0
----
3441

query I rowsort
SELECT 89 * - + 72
----
-6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT( * ) ) - - - CASE + CAST( NULL AS SIGNED ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT( * ) / MAX( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT ( * ) ) - - - CASE + CAST ( NULL AS INTEGER ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT ( * ) / MAX ( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

query I rowsort
SELECT DISTINCT - 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT COUNT( + 44 ) * + 0 + - - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9890
SELECT COUNT ( + 44 ) * + 0 + - - 48 AS col0
----
48

query I rowsort
SELECT 18 + 83 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT DISTINCT CAST( - 83 AS SIGNED ) * 8
----
-664

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT CAST ( - 83 AS INTEGER ) * 8
----
-664

query I rowsort
SELECT ALL + 79 + - 93 + - 13
----
-27

query I rowsort
SELECT ALL - 25 + 59
----
34

query I rowsort
SELECT ALL - 79 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT + 63 * 29 + + CAST( - - 86 AS SIGNED ) AS col2
----
1913

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 63 * 29 + + CAST ( - - 86 AS INTEGER ) AS col2
----
1913

query I rowsort
SELECT ALL NULLIF ( + 39, + 21 ) + + + 70 + - + 56 - 70 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9898
SELECT COUNT( * ) + COUNT( * ) AS col0, 34
----
2
34

skipif mysql # not compatible
query II rowsort label-9898
SELECT COUNT ( * ) + COUNT ( * ) AS col0, 34
----
2
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT 78 + - 72 DIV + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9899
SELECT 78 + - 72 / + COUNT ( * ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT ALL 16 + 55 * - 78 + - - CAST( NULL AS SIGNED ) - - COUNT( * ) + - ( 90 ) + - COUNT( * ) + COUNT( DISTINCT + 84 ), 59 * - CASE - COUNT( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT( * ), 6 ) + 58 * + COUNT( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT( DISTINCT + 36 ) / - ( 24 ) + - COUNT( * ) THEN + 38 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9900
SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT ( DISTINCT + 36 ) / - ( 24 ) + - COUNT ( * ) THEN + 38 END AS col2
----
NULL
NULL

query I rowsort
SELECT + 19 col0
----
19

query I rowsort
SELECT DISTINCT 63 + 38 AS col0
----
101

query II rowsort
SELECT DISTINCT + 43 + 22 AS col2, - 92 + - 78 * 28 * - 51
----
65
111292

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - + COUNT( * ) * + 91 + + 70
----
-21

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - + COUNT ( * ) * + 91 + + 70
----
-21

query I rowsort
SELECT + 12 + - + 29
----
-17

query I rowsort
SELECT DISTINCT 81 - - - 86
----
-5

query II rowsort
SELECT ALL ( + - 21 ) AS col1, + 6 * - 76 col1
----
-21
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT CASE - MAX( + 8 ) WHEN - - 57 * - CAST( NULL AS SIGNED ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST( - 83 AS SIGNED ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT CASE - MAX ( + 8 ) WHEN - - 57 * - CAST ( NULL AS INTEGER ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST ( - 83 AS INTEGER ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT - CAST( - 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-9909
SELECT - CAST ( - 85 AS INTEGER )
----
85

query I rowsort
SELECT - 78 + - 55 col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT COUNT( * ) * + - 83 + - - 9 * 40 col2
----
277

skipif mysql # not compatible
query I rowsort label-9911
SELECT COUNT ( * ) * + - 83 + - - 9 * 40 col2
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT - MIN( ALL - + ( + 66 ) ) * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9912
SELECT - MIN ( ALL - + ( + 66 ) ) * - COUNT ( * )
----
-66

query I rowsort
SELECT - 61 - - 85 + + 83
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT + - 20 - CAST( NULL AS SIGNED ) - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + - 20 - CAST ( NULL AS INTEGER ) - 73
----
NULL

query I rowsort
SELECT ALL 37 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9916
SELECT - COUNT( * ) * + - 44, + 95 - - 21 * 57 DIV + 95 AS col0
----
44
107

skipif mysql # not compatible
query II rowsort label-9916
SELECT - COUNT ( * ) * + - 44, + 95 - - 21 * 57 / + 95 AS col0
----
44
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED ) * - + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) * - + 80 AS col0
----
80

query II rowsort
SELECT + 28 + 31 AS col1, + 22 - + 53 AS col0
----
59
-31

query I rowsort
SELECT ALL + 67 * - 55 * - - 61 * 24 + 2 AS col0
----
-5394838

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT ALL + SUM( + 7 ), + 52 * 80 col1
----
7
4160

skipif mysql # not compatible
query II rowsort label-9920
SELECT ALL + SUM ( + 7 ), + 52 * 80 col1
----
7
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT NULLIF ( - COUNT( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9921
SELECT NULLIF ( - COUNT ( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

query I rowsort
SELECT ALL + ( + 9 ) AS col0
----
9

query I rowsort
SELECT ALL 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + MAX( DISTINCT - + 92 ) * - 8 AS col1
----
736

skipif mysql # not compatible
query I rowsort label-9924
SELECT + MAX ( DISTINCT - + 92 ) * - 8 AS col1
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + 55 + - ( ( - MIN( - 21 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 55 + - ( ( - MIN ( - 21 ) ) )
----
34

query I rowsort
SELECT - + 63 AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT 7 DIV - MAX( DISTINCT 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT 7 / - MAX ( DISTINCT 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT 15 DIV 60 * - MIN( ALL - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT 15 / 60 * - MIN ( ALL - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN( ALL + 39 ) + - MAX( ALL - + 74 ) - - SUM( - 67 ) + 58 AS col2
----
157452

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN ( ALL + 39 ) + - MAX ( ALL - + 74 ) - - SUM ( - 67 ) + 58 AS col2
----
157452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9930
SELECT ALL + 95 * - 58 + + 40 * CAST( NULL AS SIGNED ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-9930
SELECT ALL + 95 * - 58 + + 40 * CAST ( NULL AS INTEGER ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

query I rowsort
SELECT DISTINCT 54 * - 98
----
-5292

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT 27 DIV - ( 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT 27 / - ( 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL - ( + 6 ) * + - CAST( NULL AS SIGNED ) / + CAST( + MAX( 96 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - ( + 6 ) * + - CAST ( NULL AS INTEGER ) / + CAST ( + MAX ( 96 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT SUM( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9934
SELECT SUM ( - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT MAX( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9935
SELECT MAX ( ALL 68 )
----
68

query I rowsort
SELECT ALL - 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - 29 * + 39 + - COUNT( * ) * 59
----
-1190

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - 29 * + 39 + - COUNT ( * ) * 59
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT COUNT( * ) - + 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9938
SELECT COUNT ( * ) - + 65 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + SUM( + + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9939
SELECT + SUM ( + + 88 ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT 43 - + 75 DIV + 18
----
39

skipif mysql # not compatible
query I rowsort label-9940
SELECT 43 - + 75 / + 18
----
39

query II rowsort
SELECT DISTINCT - 17 AS col0, + 91 AS col0
----
-17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL - ( + 55 ) + + COUNT( * ) - + - 9
----
-45

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - ( + 55 ) + + COUNT ( * ) - + - 9
----
-45

query I rowsort
SELECT DISTINCT + 26
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT ALL + COUNT( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

skipif mysql # not compatible
query II rowsort label-9944
SELECT ALL + COUNT ( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM ( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

query I rowsort
SELECT + 76 * - 55 + 91
----
-4089

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT( DISTINCT - 70 ) ) AS col1, 67
----
90
67

skipif mysql # not compatible
query II rowsort label-9946
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT ( DISTINCT - 70 ) ) AS col1, 67
----
90
67

query I rowsort
SELECT ALL + NULLIF ( + 52, - NULLIF ( 71, - 5 ) * + 37 ) * - 23
----
-1196

query I rowsort
SELECT + 40 * - 5 * - + 88 + 18 * 12 AS col1
----
17816

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT( + - 92 )
----
9
33

skipif mysql # not compatible
query II rowsort label-9949
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT ( + - 92 )
----
9
33

query I rowsort
SELECT ALL 79 * 14
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL MIN( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL MIN ( ALL 40 )
----
40

query I rowsort
SELECT - 81 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT - 36 * - 3 + - 93 + - + 63 DIV - 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9953
SELECT - 36 * - 3 + - 93 + - + 63 / - 1 AS col1
----
78

query I rowsort
SELECT - NULLIF ( - + 96, - - ( + - 0 ) * - 53 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - - COUNT( - - 51 ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9955
SELECT - - COUNT ( - - 51 ) + 54 AS col1
----
55

query II rowsort
SELECT DISTINCT + 56 - + 80 * 54, 31 AS col2
----
-4264
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT DISTINCT 55 * + CAST( NULL AS SIGNED ) * - ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT 55 * + CAST ( NULL AS INTEGER ) * - ( + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL + 87 * COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + 87 * COUNT ( * ) AS col2
----
87

query I rowsort
SELECT DISTINCT - 35 AS col1
----
-35

query II rowsort
SELECT DISTINCT - 96 col0, - 61
----
-96
-61

query I rowsort
SELECT + 83 * - - 35 AS col2
----
2905

query I rowsort
SELECT - 53 * - + 64
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - 71 + - MAX( ALL - ( - 67 ) ) + - 79 AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - 71 + - MAX ( ALL - ( - 67 ) ) + - 79 AS col2
----
-217

query I rowsort
SELECT + 7 + - - 87
----
94

query I rowsort
SELECT ALL - ( 75 ) * + + ( + 13 ) + - 61
----
-1036

query I rowsort
SELECT ALL 89 + - - NULLIF ( + - 78, - - 87 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT COUNT( * ) + - - 27 + - 57
----
-29

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT COUNT ( * ) + - - 27 + - 57
----
-29

query I rowsort
SELECT ALL + ( 8 ) + COALESCE ( 41, - 47 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - 77 - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9969
SELECT - 77 - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - COUNT( ALL + 35 ) * - 86 * + 71
----
6106

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - COUNT ( ALL + 35 ) * - 86 * + 71
----
6106

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT 25 DIV 50 - + - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9971
SELECT 25 / 50 - + - 26 AS col1
----
26

query I rowsort
SELECT ( + ( + - 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT - COUNT( * ) + COUNT( * ), + 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-9973
SELECT - COUNT ( * ) + COUNT ( * ), + 97 AS col0
----
0
97

query I rowsort
SELECT ( 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + MIN( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9975
SELECT + MIN ( - 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ( - SUM( + 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-9976
SELECT ( - SUM ( + 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN( DISTINCT - 6 ), - 81 * 51 )
----
63374

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN ( DISTINCT - 6 ), - 81 * 51 )
----
63374

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 25 * 93 + 33 * + + COUNT( * ) * + 96
----
5493

skipif mysql # not compatible
query I rowsort label-9978
SELECT 25 * 93 + 33 * + + COUNT ( * ) * + 96
----
5493

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT ALL - 53 DIV - - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - 53 / - - 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT - ( - 31 ) DIV + 22 + - 97 + 39
----
-57

skipif mysql # not compatible
query I rowsort label-9980
SELECT - ( - 31 ) / + 22 + - 97 + 39
----
-57

query I rowsort
SELECT ALL + NULLIF ( + 24, + 45 ) * ( - 59 ) - - 67 + 46 AS col1
----
-1303

query II rowsort
SELECT DISTINCT + ( + 65 ) AS col0, + 43 + 83 AS col0
----
65
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9983
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-163
-43

skipif mysql # not compatible
query II rowsort label-9983
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-163
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9984
SELECT - COUNT( * ) * + COUNT( * ) * 36 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT - COUNT ( * ) * + COUNT ( * ) * 36 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL + CAST( NULL AS SIGNED ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + CAST ( NULL AS INTEGER ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - 38 * + - ( - 58 ) - - + MAX( ALL + 75 )
----
-2129

skipif mysql # not compatible
query I rowsort label-9986
SELECT - 38 * + - ( - 58 ) - - + MAX ( ALL + 75 )
----
-2129

query I rowsort
SELECT + COALESCE ( 10, 93 )
----
10

query I rowsort
SELECT - - 71 + + + 43 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT + SUM( ALL - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9989
SELECT + SUM ( ALL - - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - + ( - 32 ) + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-9990
SELECT - + ( - 32 ) + COUNT ( * ) col2
----
33

query I rowsort
SELECT + - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT COUNT( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

skipif mysql # not compatible
query I rowsort label-9992
SELECT COUNT ( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT( * ) + + ( - 96 ) * - - 57 )
----
75

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT ( * ) + + ( - 96 ) * - - 57 )
----
75

query I rowsort
SELECT DISTINCT + 65 AS col2
----
65

query I rowsort
SELECT ALL - 80 col0
----
-80

query I rowsort
SELECT DISTINCT ( + 69 )
----
69

query I rowsort
SELECT - 89 AS col0
----
-89

query I rowsort
SELECT - 11 AS col2
----
-11

query I rowsort
SELECT + 23 + - + 62 * 20 - + + 54 AS col1
----
-1271

