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 ALL 67 + + 26
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT 81 - + MAX( DISTINCT 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1
SELECT 81 - + MAX ( DISTINCT 81 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT CAST( + + COUNT( * ) AS SIGNED ) - + COUNT( * ) + - 39 * + 90 * - 52
----
182520

skipif mysql # not compatible
query I rowsort label-2
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + - 39 * + 90 * - 52
----
182520

query I rowsort
SELECT ALL 31 + + - 4 * 39 + + 54
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT - COUNT( * ) + - 52
----
-53

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - COUNT ( * ) + - 52
----
-53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT 26 - 39 * - - NULLIF ( - COALESCE ( COUNT( - - 85 ), - + 55 DIV - COALESCE ( - 31, - 17 + + 51 ) * 58, 66 + + 32 ), ( + 87 ) + 86 * AVG ( - 90 ) )
----
65

skipif mysql # not compatible
query I rowsort label-6
SELECT 26 - 39 * - - NULLIF ( - COALESCE ( COUNT ( - - 85 ), - + 55 / - COALESCE ( - 31, - 17 + + 51 ) * 58, 66 + + 32 ), ( + 87 ) + 86 * AVG ( - 90 ) )
----
65

query I rowsort
SELECT 35 - + 54 * + 64 AS col1
----
-3421

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT + COUNT( * ) + - 32 + + 87 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8
SELECT + COUNT ( * ) + - 32 + + 87 AS col1
----
56

query I rowsort
SELECT ALL - 76 * - 93 AS col0
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL - 65 * - - SUM( DISTINCT - 94 ) AS col0
----
6110

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - 65 * - - SUM ( DISTINCT - 94 ) AS col0
----
6110

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

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

query I rowsort
SELECT ALL - 16 * 28
----
-448

onlyif mysql # DIV for integer division: 
query II rowsort label-13
SELECT DISTINCT + 94 DIV + + 60, - 91 AS col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT + 94 / + + 60, - 91 AS col0
----
1
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT - 20 DIV - 11
----
1

skipif mysql # not compatible
query I rowsort label-14
SELECT - 20 / - 11
----
1

query I rowsort
SELECT 95 * + - 29
----
-2755

query I rowsort
SELECT + 13 * - + 16 + + 14 col2
----
-194

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT ( - NULLIF ( + COUNT( * ), - 7 + + - 61 + + ( CAST( 74 AS SIGNED ) ) - + - 74 * 13 * + ( - 44 ) ) ) + - 48
----
-49

skipif mysql # not compatible
query I rowsort label-18
SELECT ( - NULLIF ( + COUNT ( * ), - 7 + + - 61 + + ( CAST ( 74 AS INTEGER ) ) - + - 74 * 13 * + ( - 44 ) ) ) + - 48
----
-49

query I rowsort
SELECT 51 * - 80 + 47 AS col1
----
-4033

query I rowsort
SELECT ALL 27 + COALESCE ( 67, 75 )
----
94

query I rowsort
SELECT 42 * COALESCE ( + 70, - 67, + 92 ) - + 6
----
2934

query I rowsort
SELECT ALL + 52 + + 69
----
121

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

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

query I rowsort
SELECT 65 * + + 69
----
4485

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT ( - 40 ) + + COUNT( * ) AS col2, 6
----
-39
6

skipif mysql # not compatible
query II rowsort label-25
SELECT ( - 40 ) + + COUNT ( * ) AS col2, 6
----
-39
6

query II rowsort
SELECT DISTINCT - 52 AS col1, 89 AS col0
----
-52
89

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT COALESCE ( 98, 56 ) * + - 87 + MIN( - + 56 ) AS col2
----
-8582

skipif mysql # not compatible
query I rowsort label-27
SELECT COALESCE ( 98, 56 ) * + - 87 + MIN ( - + 56 ) AS col2
----
-8582

query I rowsort
SELECT 80 * + 98 * 51 - - 53
----
399893

query I rowsort
SELECT ( + + 71 ) + + 44 + - - 64 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL COUNT( * ) - - COALESCE ( + - 77, - 42 * 74 - - 37 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL COUNT ( * ) - - COALESCE ( + - 77, - 42 * 74 - - 37 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL COUNT( * ) - - 89
----
90

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL COUNT ( * ) - - 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - 34 * + 42 + + MAX( + 99 ) AS col0
----
-1329

skipif mysql # not compatible
query I rowsort label-32
SELECT - 34 * + 42 + + MAX ( + 99 ) AS col0
----
-1329

query II rowsort
SELECT ALL 99 AS col1, - 73 AS col2
----
99
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT - NULLIF ( - 37, - - CAST( - 21 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-34
SELECT - NULLIF ( - 37, - - CAST ( - 21 AS INTEGER ) )
----
37

query I rowsort
SELECT COALESCE ( + - 8, - CASE 99 WHEN - 43 THEN 75 END, - 95 * + - 52 ) + - + 23
----
-31

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT + ( + CASE + 41 WHEN ( 51 ) + + 98 * + 64 THEN NULL ELSE - ( + + 82 ) - + + ( NULLIF ( + 13, COUNT( * ) + + 9 ) ) + - 31 DIV - NULLIF ( + COUNT( * ), + 56 + 10 * 95 ) END ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-38
SELECT + ( + CASE + 41 WHEN ( 51 ) + + 98 * + 64 THEN NULL ELSE - ( + + 82 ) - + + ( NULLIF ( + 13, COUNT ( * ) + + 9 ) ) + - 31 / - NULLIF ( + COUNT ( * ), + 56 + 10 * 95 ) END ) AS col1
----
-64

query II rowsort
SELECT ALL - 58, + 77 AS col0
----
-58
77

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT 2 + - - 96 DIV + - 3 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-40
SELECT 2 + - - 96 / + - 3 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT CASE 50 WHEN + 77 * - 34 THEN - NULLIF ( - 10, - 68 * 88 - + 7 ) ELSE + CAST( NULL AS SIGNED ) END / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-41
SELECT CASE 50 WHEN + 77 * - 34 THEN - NULLIF ( - 10, - 68 * 88 - + 7 ) ELSE + CAST ( NULL AS INTEGER ) END / 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-42
SELECT ALL + + SUM( DISTINCT 15 ) DIV + COUNT( * ) + - 27
----
-12

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + + SUM ( DISTINCT 15 ) / + COUNT ( * ) + - 27
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - COUNT( * ) / + - CASE + + 92 WHEN + 39 - - 45 + + CASE + 0 WHEN - 10 + - COALESCE ( + + 47, 35 ) THEN NULL WHEN 85 / + 76 THEN NULL ELSE + 82 END * 66 THEN ( - 55 ) END * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT - COUNT ( * ) / + - CASE + + 92 WHEN + 39 - - 45 + + CASE + 0 WHEN - 10 + - COALESCE ( + + 47, 35 ) THEN NULL WHEN 85 / + 76 THEN NULL ELSE + 82 END * 66 THEN ( - 55 ) END * + 44
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT - - COUNT ( * ) + - 37 + + 90 * - COUNT ( * ) AS col1
----
-126

query I rowsort
SELECT + - ( 61 ) * + 52 AS col2
----
-3172

query I rowsort
SELECT - + 59 + 69 + + - 9 + 72 + + ( + 69 ) AS col0
----
142

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL + CASE 81 WHEN CASE + CASE + + ( - + CAST( NULL AS SIGNED ) ) WHEN - - 80 THEN - 94 ELSE NULL END WHEN 27 THEN - - COUNT( * ) ELSE NULL END THEN NULL ELSE 41 END
----
41

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + CASE 81 WHEN CASE + CASE + + ( - + CAST ( NULL AS INTEGER ) ) WHEN - - 80 THEN - 94 ELSE NULL END WHEN 27 THEN - - COUNT ( * ) ELSE NULL END THEN NULL ELSE 41 END
----
41

query I rowsort
SELECT - + 9 * - 3 AS col0
----
27

query I rowsort
SELECT ALL - + 94 + - 48 + 73 AS col0
----
-69

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

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

query I rowsort
SELECT - COALESCE ( - + 92, + + 28 * 61 ) AS col1
----
92

query I rowsort
SELECT DISTINCT - 71 + - - 23 + + 22
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-55
SELECT ALL - - 82 + - CAST( + 20 AS SIGNED ) AS col1, - 76 + ( - COUNT( * ) )
----
62
-77

skipif mysql # not compatible
query II rowsort label-55
SELECT ALL - - 82 + - CAST ( + 20 AS INTEGER ) AS col1, - 76 + ( - COUNT ( * ) )
----
62
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-56
SELECT DISTINCT - NULLIF ( + CAST( NULL AS DECIMAL ), + 68 / - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS REAL ), + 68 / - 79 )
----
NULL

query II rowsort
SELECT + 29, + 91 AS col0
----
29
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-58
SELECT DISTINCT COUNT( * ) * + + 72 * 50 DIV 76 + ( 33 ), ( + ( + + 51 ) ) + - 80 * - - 51 AS col0
----
80
-4029

skipif mysql # not compatible
query II rowsort label-58
SELECT DISTINCT COUNT ( * ) * + + 72 * 50 / 76 + ( 33 ), ( + ( + + 51 ) ) + - 80 * - - 51 AS col0
----
80
-4029

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

skipif mysql # not compatible
query II rowsort label-59
SELECT + 61 col0, COUNT ( * )
----
61
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-60
SELECT - CAST( + COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), + + 44 ), 85, + 36 ) AS SIGNED ) * 26 + + 76 DIV + MAX( 67 ) AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-60
SELECT - CAST ( + COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), + + 44 ), 85, + 36 ) AS INTEGER ) * 26 + + 76 / + MAX ( 67 ) AS col2
----
-2209

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT - ( - + 66 ) DIV + - 81 * 55
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT - ( - + 66 ) / + - 81 * 55
----
0

query I rowsort
SELECT + 55 + 92 col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT CASE - + SUM( - 73 ) WHEN + 71 * + + 75 + 21 THEN NULL WHEN - 27 THEN + ( 39 ) / + 40 + + - 84 + 11 END * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT CASE - + SUM ( - 73 ) WHEN + 71 * + + 75 + 21 THEN NULL WHEN - 27 THEN + ( 39 ) / + 40 + + - 84 + 11 END * + 62 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 87, 93 AS col2
----
87
93

query I rowsort
SELECT DISTINCT + 3 * + 43 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) * - 52 + NULLIF ( + 6, + 66 * - MIN( DISTINCT - + 27 ) + + COUNT( + - 98 ) + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - 52 + NULLIF ( + 6, + 66 * - MIN ( DISTINCT - + 27 ) + + COUNT ( + - 98 ) + - 77 )
----
NULL

query I rowsort
SELECT ALL + ( 28 ) * + 77 - 60 + 38 + 39 * - + 86
----
-1220

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-70
SELECT + CASE + 33 WHEN 15 * - + 16 + 41 DIV + - 76 THEN NULL ELSE - 47 DIV ( + - COUNT( * ) ) + + ( 96 ) + + 98 * 69 END AS col1
----
6905

skipif mysql # not compatible
query I rowsort label-70
SELECT + CASE + 33 WHEN 15 * - + 16 + 41 / + - 76 THEN NULL ELSE - 47 / ( + - COUNT ( * ) ) + + ( 96 ) + + 98 * 69 END AS col1
----
6905

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + 65 * - CASE - AVG ( 31 ) WHEN - 16 * - COALESCE ( + 44, - - 93, + 88 - - NULLIF ( 90, + 60 ) ) + - 14 THEN NULL WHEN + ( 28 ) THEN + 94 - - 24 WHEN - COUNT( - 19 ) / 36 + + 1 THEN - 42 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT + 65 * - CASE - AVG ( 31 ) WHEN - 16 * - COALESCE ( + 44, - - 93, + 88 - - NULLIF ( 90, + 60 ) ) + - 14 THEN NULL WHEN + ( 28 ) THEN + 94 - - 24 WHEN - COUNT ( - 19 ) / 36 + + 1 THEN - 42 END * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 36 - + 50 + - - 94 - + ( 30 ) * 96 * + 48 col1
----
-138160

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - ( - COUNT( * ) ) * 46 + + 70 + + 48 + 68 col1
----
232

skipif mysql # not compatible
query I rowsort label-73
SELECT - ( - COUNT ( * ) ) * 46 + + 70 + + 48 + 68 col1
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + COALESCE ( - + 57, + COUNT( * ) - 24 + 55, - 51 ) * + - 18 - 7 AS col2
----
1019

skipif mysql # not compatible
query I rowsort label-74
SELECT + COALESCE ( - + 57, + COUNT ( * ) - 24 + 55, - 51 ) * + - 18 - 7 AS col2
----
1019

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT - NULLIF ( + 84, - + COUNT( * ) / + - SUM( ALL 36 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-75
SELECT - NULLIF ( + 84, - + COUNT ( * ) / + - SUM ( ALL 36 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - ( 0 ) + 90 + + - MAX( DISTINCT - 48 ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - ( 0 ) + 90 + + - MAX ( DISTINCT - 48 ) AS col1
----
138

query I rowsort
SELECT + + 5 - 88 AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-78
SELECT + - MAX( DISTINCT 98 ) * + 59 * + + 54, CAST( NULL AS DECIMAL ) * + + 90 col1
----
-312228
NULL

skipif mysql # not compatible
query II rowsort label-78
SELECT + - MAX ( DISTINCT 98 ) * + 59 * + + 54, CAST ( NULL AS REAL ) * + + 90 col1
----
-312228
NULL

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

query I rowsort
SELECT - + CASE 9 WHEN ( 81 ) + + 2 THEN - 98 ELSE + 70 END
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-81
SELECT - + 78 AS col1, + 50 - + - CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 12 )
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-81
SELECT - + 78 AS col1, + 50 - + - CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 12 )
----
-78
NULL

query I rowsort
SELECT ALL 41 + - 93
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + 11 * 53 * + 29 * COALESCE ( - NULLIF ( + NULLIF ( COUNT( * ), - + 91 ), - 69 / + ( - - COALESCE ( - 36, - 39 + 18 ) ) + 79 ), 9 ) AS col0
----
-16907

skipif mysql # not compatible
query I rowsort label-83
SELECT + 11 * 53 * + 29 * COALESCE ( - NULLIF ( + NULLIF ( COUNT ( * ), - + 91 ), - 69 / + ( - - COALESCE ( - 36, - 39 + 18 ) ) + 79 ), 9 ) AS col0
----
-16907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-84
SELECT + COUNT( * ) + + 48 * - NULLIF ( 7, + + CAST( + CASE - 34 WHEN - 88 THEN + CAST( NULL AS SIGNED ) * - 8 * + COUNT( * ) + 82 END AS SIGNED ) * + 75 + + 47 ) * 75 col0
----
-25199

skipif mysql # not compatible
query I rowsort label-84
SELECT + COUNT ( * ) + + 48 * - NULLIF ( 7, + + CAST ( + CASE - 34 WHEN - 88 THEN + CAST ( NULL AS INTEGER ) * - 8 * + COUNT ( * ) + 82 END AS INTEGER ) * + 75 + + 47 ) * 75 col0
----
-25199

query I rowsort
SELECT ALL - ( - 95 ) + + 5
----
100

query II rowsort
SELECT ALL 23, 85 AS col2
----
23
85

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT - - COALESCE ( - 39, 46 * - 97 * - 4, - 78 DIV + 4 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-87
SELECT - - COALESCE ( - 39, 46 * - 97 * - 4, - 78 / + 4 ) AS col0
----
-39

query I rowsort
SELECT - - 86 * + 81 col0
----
6966

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ALL 30 + + 79 * + 25 * 36 DIV - - 4 AS col2
----
17805

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 30 + + 79 * + 25 * 36 / - - 4 AS col2
----
17805

query I rowsort
SELECT + + 17 + 79
----
96

query I rowsort
SELECT + 97 + + 83
----
180

query II rowsort
SELECT - 79 * - + 97, 66 AS col2
----
7663
66

query I rowsort
SELECT + 50 + + 88 AS col2
----
138

query I rowsort
SELECT - 26 + + 86 * + 7
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT ALL - 64 / + 15 / CAST( NULL AS SIGNED ) - COALESCE ( + 55, 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - 64 / + 15 / CAST ( NULL AS INTEGER ) - COALESCE ( + 55, 58 ) AS col0
----
NULL

query I rowsort
SELECT - 43 * + - 22 * - - 45 * - ( 14 )
----
-595980

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT COUNT( * ) * + COALESCE ( - 49, 97 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT COUNT ( * ) * + COALESCE ( - 49, 97 ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-98
SELECT - 72 + + 39 DIV + 16 AS col1, ( 65 )
----
-70
65

skipif mysql # not compatible
query II rowsort label-98
SELECT - 72 + + 39 / + 16 AS col1, ( 65 )
----
-70
65

query I rowsort
SELECT DISTINCT + ( - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT - 42 * + CASE - 91 WHEN MAX( + 48 ) THEN - 46 * + 5 ELSE - + 61 END AS col1
----
2562

skipif mysql # not compatible
query I rowsort label-100
SELECT - 42 * + CASE - 91 WHEN MAX ( + 48 ) THEN - 46 * + 5 ELSE - + 61 END AS col1
----
2562

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

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

query I rowsort
SELECT 63 * 61 + + - 39
----
3804

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-103
SELECT + 45 * + COUNT( * ) - 22 col1, + ( + COUNT( * ) ) DIV 43 AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-103
SELECT + 45 * + COUNT ( * ) - 22 col1, + ( + COUNT ( * ) ) / 43 AS col1
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT - MIN( + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - MIN ( + - 60 ) AS col2
----
60

query I rowsort
SELECT ALL 24 * + 35 AS col0
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-106
SELECT 31 DIV + + COUNT( * ) AS col0, + 92 * - ( + 12 ) AS col1
----
31
-1104

skipif mysql # not compatible
query II rowsort label-106
SELECT 31 / + + COUNT ( * ) AS col0, + 92 * - ( + 12 ) AS col1
----
31
-1104

query I rowsort
SELECT ALL + + 28 + - + 50 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-108
SELECT - CASE - 34 WHEN 61 THEN + + COUNT( * ) + 98 ELSE 67 * + 20 END, - 83 * 65 * - CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2
----
-1340
NULL

skipif mysql # not compatible
query II rowsort label-108
SELECT - CASE - 34 WHEN 61 THEN + + COUNT ( * ) + 98 ELSE 67 * + 20 END, - 83 * 65 * - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2
----
-1340
NULL

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

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - COUNT ( * ) + 38 AS col1
----
37

query I rowsort
SELECT ALL - ( + 89 ) * + + ( 86 ) - + NULLIF ( 19, + 24 )
----
-7673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-111
SELECT - COUNT( * ) DIV + 40, 7 DIV - - COALESCE ( + 42, + 46 ) + CAST( NULL AS SIGNED ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-111
SELECT - COUNT ( * ) / + 40, 7 / - - COALESCE ( + 42, + 46 ) + CAST ( NULL AS INTEGER ) col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + MIN( - 69 ) + 40 col2
----
-29

skipif mysql # not compatible
query I rowsort label-112
SELECT + MIN ( - 69 ) + 40 col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-113
SELECT 80 + - 32 + + + CAST( NULL AS DECIMAL ) * COUNT( * ) + 4 * + COUNT( * ) - - AVG ( DISTINCT + + 4 ) - - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT 80 + - 32 + + + CAST ( NULL AS REAL ) * COUNT ( * ) + 4 * + COUNT ( * ) - - AVG ( DISTINCT + + 4 ) - - 90 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT - MAX( + - 45 ), - NULLIF ( - 77, + 40 * + 36 * - 20 - - 83 - + 59 + - 21 * SUM( 66 ) + + ( - ( 63 ) ) ) - - COUNT( * ) * COUNT( * ) AS col0
----
45
78

skipif mysql # not compatible
query II rowsort label-115
SELECT - MAX ( + - 45 ), - NULLIF ( - 77, + 40 * + 36 * - 20 - - 83 - + 59 + - 21 * SUM ( 66 ) + + ( - ( 63 ) ) ) - - COUNT ( * ) * COUNT ( * ) AS col0
----
45
78

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT ALL MAX( + 63 ) * + - 96 col0, - 80
----
-6048
-80

skipif mysql # not compatible
query II rowsort label-116
SELECT ALL MAX ( + 63 ) * + - 96 col0, - 80
----
-6048
-80

query I rowsort
SELECT - 45 + - - 16 AS col1
----
-29

query I rowsort
SELECT 49 + 99 + 4 col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT 81 DIV + - 11 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-119
SELECT 81 / + - 11 AS col0
----
-7

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

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

query II rowsort
SELECT DISTINCT 66, ( + + CASE 6 WHEN + 55 THEN + ( 25 ) WHEN - 91 THEN NULL WHEN + 8 + 6 THEN 27 / - 31 * - - 32 * - 11 ELSE - 31 END ) AS col2
----
66
-31

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT 19 DIV - 99 * + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT 19 / - 99 * + 3 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT ALL - CAST( - - 53 AS SIGNED ) DIV 17
----
-3

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - CAST ( - - 53 AS INTEGER ) / 17
----
-3

query I rowsort
SELECT DISTINCT - CASE + + 80 WHEN + - 55 THEN NULL ELSE + - 79 END
----
79

query II rowsort
SELECT + 85, NULLIF ( + 50, 81 - + 26 ) AS col0
----
85
50

query I rowsort
SELECT 54 * 45 AS col0
----
2430

query II rowsort
SELECT DISTINCT - 93 AS col0, - 65 AS col1
----
-93
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-130
SELECT ALL + CASE - + 54 WHEN - NULLIF ( - - 23, + - 38 * 4 - + 96 - + 35 + 7 + - - CASE - - COUNT( * ) WHEN - - ( 27 ) THEN NULL WHEN + 36 + COUNT( * ) THEN CAST( NULL AS DECIMAL ) ELSE 17 + - 62 * - NULLIF ( - 31, COUNT( 99 ) ) END ) + + 23 / - COUNT( * ) THEN - 97 END * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + CASE - + 54 WHEN - NULLIF ( - - 23, + - 38 * 4 - + 96 - + 35 + 7 + - - CASE - - COUNT ( * ) WHEN - - ( 27 ) THEN NULL WHEN + 36 + COUNT ( * ) THEN CAST ( NULL AS REAL ) ELSE 17 + - 62 * - NULLIF ( - 31, COUNT ( 99 ) ) END ) + + 23 / - COUNT ( * ) THEN - 97 END * + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL COUNT( * ) + 15 * - 89
----
-1334

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL COUNT ( * ) + 15 * - 89
----
-1334

query I rowsort
SELECT 44 * - + 82 AS col2
----
-3608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL + - 92 + - 69 - - 78 * - COALESCE ( + - 92, + + 82 * + 54 * SUM( ALL - - 97 ) + + - AVG ( DISTINCT 35 ) ) * 90 * + 79 / - ( + CAST( NULL AS SIGNED ) * - COUNT( * ) ) + 93 * 55 + 51 * - ( 70 + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + - 92 + - 69 - - 78 * - COALESCE ( + - 92, + + 82 * + 54 * SUM ( ALL - - 97 ) + + - AVG ( DISTINCT 35 ) ) * 90 * + 79 / - ( + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + 93 * 55 + 51 * - ( 70 + COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT + 13 + - 48 + + 95, - COUNT( ALL 95 ) * 55 + + 35 AS col0
----
60
-20

skipif mysql # not compatible
query II rowsort label-134
SELECT + 13 + - 48 + + 95, - COUNT ( ALL 95 ) * 55 + + 35 AS col0
----
60
-20

query I rowsort
SELECT - 18 * + + 69 * - 66
----
81972

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

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

query I rowsort
SELECT ALL + 8 + + 32
----
40

query I rowsort
SELECT + 70 - + 94 AS col2
----
-24

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

skipif mysql # not compatible
query I rowsort label-139
SELECT + NULLIF ( - COUNT ( * ), + - NULLIF ( + 35, 80 ) )
----
-1

query I rowsort
SELECT + 84 + 29 AS col0
----
113

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

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

query II rowsort
SELECT ALL 7 AS col2, 33 AS col1
----
7
33

query I rowsort
SELECT ALL + 47 + 44 col0
----
91

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

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT - + COUNT ( * ) * 61 AS col1
----
-61

query I rowsort
SELECT DISTINCT + + 58 + - 81 * 83 * - ( + - 10 ) AS col2
----
-67172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-146
SELECT ALL - CAST( - 99 AS DECIMAL ) * + CAST( NULL AS SIGNED ) - CASE 53 WHEN 59 + 10 THEN + ( - - CASE - - COALESCE ( - - 67, COALESCE ( - - 45, + 65, - COUNT( * ) ) - + NULLIF ( 93, - 20 ), 73, COALESCE ( - AVG ( 96 ), - 70 ) * - COUNT( * ) ) WHEN - 33 * - 71 THEN NULL WHEN - 9 - MAX( ALL 23 ) THEN NULL WHEN - ( 38 ) THEN NULL ELSE COUNT( * ) * - ( + COUNT( * ) ) + 85 / CAST( NULL AS SIGNED ) END ) ELSE + 78 / SUM( ALL - 31 ) + - 86 END + + 18 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - CAST ( - 99 AS REAL ) * + CAST ( NULL AS INTEGER ) - CASE 53 WHEN 59 + 10 THEN + ( - - CASE - - COALESCE ( - - 67, COALESCE ( - - 45, + 65, - COUNT ( * ) ) - + NULLIF ( 93, - 20 ), 73, COALESCE ( - AVG ( 96 ), - 70 ) * - COUNT ( * ) ) WHEN - 33 * - 71 THEN NULL WHEN - 9 - MAX ( ALL 23 ) THEN NULL WHEN - ( 38 ) THEN NULL ELSE COUNT ( * ) * - ( + COUNT ( * ) ) + 85 / CAST ( NULL AS INTEGER ) END ) ELSE + 78 / SUM ( ALL - 31 ) + - 86 END + + 18 * 26
----
NULL

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

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

query II rowsort
SELECT - - 74 AS col2, 59 AS col0
----
74
59

query I rowsort
SELECT 33 + 84
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT - 87 * 96 DIV NULLIF ( - 10, COUNT( * ) )
----
835

skipif mysql # not compatible
query I rowsort label-150
SELECT - 87 * 96 / NULLIF ( - 10, COUNT ( * ) )
----
835

query II rowsort
SELECT 64 * + - 17 * + 80, + 78 - - 22 AS col0
----
-87040
100

query I rowsort
SELECT + NULLIF ( - ( - - 36 ), 96 - + AVG ( - + COALESCE ( + ( + 23 ), + 68 ) ) ) * - 21 * + ( 73 ) AS col2
----
55188

query I rowsort
SELECT 94 + - + 45 AS col1
----
49

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

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

query I rowsort
SELECT 10 * 92 AS col2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL 14 * - 0 * - + SUM( + - 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL 14 * - 0 * - + SUM ( + - 3 ) AS col0
----
0

query I rowsort
SELECT 16 - - 94
----
110

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

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

query I rowsort
SELECT ALL 61 * - 76
----
-4636

query I rowsort
SELECT 0 + - 12 * - 41 AS col2
----
492

query I rowsort
SELECT 35 * - - 11 AS col1
----
385

query I rowsort
SELECT 6 + - 95 * + 25
----
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - MIN( + 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-163
SELECT - MIN ( + 25 ) AS col1
----
-25

query I rowsort
SELECT ALL ( - + 44 ) + 42
----
-2

query I rowsort
SELECT ALL - 22 * - 79 + 79 + - 34
----
1783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-166
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) * - MAX( DISTINCT - 49 ) + 21, 45 * 63 AS col1
----
NULL
2835

skipif mysql # not compatible
query II rowsort label-166
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - MAX ( DISTINCT - 49 ) + 21, 45 * 63 AS col1
----
NULL
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT COUNT( * ) * + + 43 * 28 + - 15 AS col0
----
1189

skipif mysql # not compatible
query I rowsort label-167
SELECT COUNT ( * ) * + + 43 * 28 + - 15 AS col0
----
1189

onlyif mysql # aggregate syntax: 
query III rowsort label-168
SELECT ALL 24 * + + 14 + - COUNT( * ) * + 75 AS col2, - COALESCE ( - 39, + 67 ), 89 + + 18 AS col1
----
261
39
107

skipif mysql # not compatible
query III rowsort label-168
SELECT ALL 24 * + + 14 + - COUNT ( * ) * + 75 AS col2, - COALESCE ( - 39, + 67 ), 89 + + 18 AS col1
----
261
39
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-169
SELECT CASE 72 WHEN + 57 * - 74 + + + 96 + + - 31 * - CAST( - 98 AS SIGNED ) THEN NULL ELSE + ( CASE - 83 WHEN CAST( CAST( - CASE 54 WHEN - 22 THEN NULL ELSE + 26 END AS SIGNED ) AS SIGNED ) THEN COUNT( * ) WHEN ( 49 ) * - MAX( + 34 + 1 ) THEN NULL ELSE + 94 - 51 END ) DIV 66 END
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT CASE 72 WHEN + 57 * - 74 + + + 96 + + - 31 * - CAST ( - 98 AS INTEGER ) THEN NULL ELSE + ( CASE - 83 WHEN CAST ( CAST ( - CASE 54 WHEN - 22 THEN NULL ELSE + 26 END AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) WHEN ( 49 ) * - MAX ( + 34 + 1 ) THEN NULL ELSE + 94 - 51 END ) / 66 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT + NULLIF ( - 71, + + 95 ) DIV - 26 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-170
SELECT + NULLIF ( - 71, + + 95 ) / - 26 AS col2
----
2

query I rowsort
SELECT + 2 + + 76
----
78

query I rowsort
SELECT + NULLIF ( - - NULLIF ( + - 92, + 85 ), NULLIF ( 32, - 86 ) ) AS col1
----
-92

query I rowsort
SELECT - COALESCE ( 30, + 88 + + 2, - 80 )
----
-30

query II rowsort
SELECT DISTINCT - + 85 * + ( + ( - + 61 ) ) AS col0, 87
----
5185
87

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT DISTINCT + ( + - 85 ) AS col2, MIN( DISTINCT - - 40 )
----
-85
40

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT + ( + - 85 ) AS col2, MIN ( DISTINCT - - 40 )
----
-85
40

query I rowsort
SELECT 16 * + 49 + 26
----
810

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT - + MAX( DISTINCT - ( + ( - 43 ) ) ) AS col2, + 74 AS col1
----
-43
74

skipif mysql # not compatible
query II rowsort label-177
SELECT - + MAX ( DISTINCT - ( + ( - 43 ) ) ) AS col2, + 74 AS col1
----
-43
74

query I rowsort
SELECT DISTINCT - COALESCE ( + 79, - ( - 59 ), - 78 * + + 27 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-179
SELECT ( + + 52 ) AS col0, 55 - - + 39 * - COALESCE ( + CAST( NULL AS SIGNED ), 56, - COUNT( * ) )
----
52
-2129

skipif mysql # not compatible
query II rowsort label-179
SELECT ( + + 52 ) AS col0, 55 - - + 39 * - COALESCE ( + CAST ( NULL AS INTEGER ), 56, - COUNT ( * ) )
----
52
-2129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-180
SELECT - - COUNT( 73 ) DIV - 1
----
-1

skipif mysql # not compatible
query I rowsort label-180
SELECT - - COUNT ( 73 ) / - 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-181
SELECT - MAX( DISTINCT 23 ) + - 89 + 97 AS col0, ( 49 ) - 80 DIV + 50 AS col2
----
-15
48

skipif mysql # not compatible
query II rowsort label-181
SELECT - MAX ( DISTINCT 23 ) + - 89 + 97 AS col0, ( 49 ) - 80 / + 50 AS col2
----
-15
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT - 7 + - 15 * + 34 + + NULLIF ( - + CAST( + ( + ( COUNT( * ) ) ) AS SIGNED ), - 44 + COALESCE ( + 70, ( - 10 ) ) + 52 )
----
-518

skipif mysql # not compatible
query I rowsort label-182
SELECT - 7 + - 15 * + 34 + + NULLIF ( - + CAST ( + ( + ( COUNT ( * ) ) ) AS INTEGER ), - 44 + COALESCE ( + 70, ( - 10 ) ) + 52 )
----
-518

query I rowsort
SELECT - 3 * + 79 AS col0
----
-237

query I rowsort
SELECT ALL + 57 * + 26 * + 31 AS col2
----
45942

query I rowsort
SELECT - 20 + + ( 64 )
----
44

query I rowsort
SELECT DISTINCT + 85 * - 48 * ( ( + 30 ) )
----
-122400

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT - 67 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-187
SELECT - 67 / 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT - 73 + - 64 + 88 / - + CASE + + 79 WHEN + + NULLIF ( + 57, - CAST( + + SUM( ALL + + 66 ) AS SIGNED ) - ( - 56 ) * - + 40 - 61 - - - CAST( 33 AS SIGNED ) * + 32 ) THEN + 17 END * 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT - 73 + - 64 + 88 / - + CASE + + 79 WHEN + + NULLIF ( + 57, - CAST ( + + SUM ( ALL + + 66 ) AS INTEGER ) - ( - 56 ) * - + 40 - 61 - - - CAST ( 33 AS INTEGER ) * + 32 ) THEN + 17 END * 60 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + 49 + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-189
SELECT + 49 + COUNT ( * ) AS col1
----
50

query I rowsort
SELECT DISTINCT ( + + 63 ) AS col2
----
63

query I rowsort
SELECT - 13 * - 35 col1
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT ALL - 95 + - - CASE 17 WHEN + 24 + ( CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) END - + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - 95 + - - CASE 17 WHEN + 24 + ( CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) END - + - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-193
SELECT DISTINCT + ( - 3 ) + 60 + 7 * NULLIF ( ( + 61 ), + - ( + 18 ) ) DIV + COUNT( + + ( 15 ) )
----
484

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT + ( - 3 ) + 60 + 7 * NULLIF ( ( + 61 ), + - ( + 18 ) ) / + COUNT ( + + ( 15 ) )
----
484

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-194
SELECT ALL 51 DIV - 21 + + 64 + 64 * - COUNT( * ) AS col1, - 94 * + 84 * 22 AS col2
----
-2
-173712

skipif mysql # not compatible
query II rowsort label-194
SELECT ALL 51 / - 21 + + 64 + 64 * - COUNT ( * ) AS col1, - 94 * + 84 * 22 AS col2
----
-2
-173712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT ALL + CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + CAST ( 0 AS INTEGER ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT + COUNT( ALL - - 76 ) * NULLIF ( + 45, - 2 ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-197
SELECT + COUNT ( ALL - - 76 ) * NULLIF ( + 45, - 2 ) * COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT 6 * - - MAX( ALL + 92 ) * + 10
----
5520

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 6 * - - MAX ( ALL + 92 ) * + 10
----
5520

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT ALL ( 78 ) DIV 50 - 0 + 53 * - 28 * - + 93 AS col1
----
138013

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL ( 78 ) / 50 - 0 + 53 * - 28 * - + 93 AS col1
----
138013

query I rowsort
SELECT - NULLIF ( - + 33, + 54 ) AS col2
----
33

query I rowsort
SELECT + 9 * - ( - - 32 ) * - + 16 AS col1
----
4608

onlyif mysql # aggregate syntax: 
query II rowsort label-202
SELECT + 74 AS col0, + 68 * + COUNT( * )
----
74
68

skipif mysql # not compatible
query II rowsort label-202
SELECT + 74 AS col0, + 68 * + COUNT ( * )
----
74
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + - 56 * - + 2 + - MAX( DISTINCT - 92 ) - 65 + - COALESCE ( + 52, + 7 ) * - 2 * - 61 + + - 64 AS col0
----
-6269

skipif mysql # not compatible
query I rowsort label-204
SELECT + - 56 * - + 2 + - MAX ( DISTINCT - 92 ) - 65 + - COALESCE ( + 52, + 7 ) * - 2 * - 61 + + - 64 AS col0
----
-6269

query I rowsort
SELECT + + 34 * + 98
----
3332

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT 81 DIV 13
----
6

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT 81 / 13
----
6

query I rowsort
SELECT + + 95 * + 67 * 84 AS col1
----
534660

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

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

query I rowsort
SELECT + 82 + - 68 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-210
SELECT + CASE - CASE - ( 12 ) WHEN + 88 * + 31 * - AVG ( ALL + - 52 ) * - + 39 + 13 + - + 47 * + 38 THEN 75 WHEN - 83 THEN NULL ELSE - CASE ( - 44 ) WHEN - 2 + 96 THEN ( 51 ) + + 45 WHEN - CASE ( + 64 ) WHEN CAST( NULL AS SIGNED ) * 78 THEN 52 * 18 WHEN - COUNT( 14 ) + 4 / + 65 THEN NULL ELSE + 43 END THEN NULL ELSE NULL END + AVG ( - 12 ) * + 86 END WHEN SUM( - 53 ) THEN - 8 * - 87 WHEN + NULLIF ( 81, - 98 * 5 ) + 84 THEN 52 + COUNT( * ) END * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-210
SELECT + CASE - CASE - ( 12 ) WHEN + 88 * + 31 * - AVG ( ALL + - 52 ) * - + 39 + 13 + - + 47 * + 38 THEN 75 WHEN - 83 THEN NULL ELSE - CASE ( - 44 ) WHEN - 2 + 96 THEN ( 51 ) + + 45 WHEN - CASE ( + 64 ) WHEN CAST ( NULL AS INTEGER ) * 78 THEN 52 * 18 WHEN - COUNT ( 14 ) + 4 / + 65 THEN NULL ELSE + 43 END THEN NULL ELSE NULL END + AVG ( - 12 ) * + 86 END WHEN SUM ( - 53 ) THEN - 8 * - 87 WHEN + NULLIF ( 81, - 98 * 5 ) + 84 THEN 52 + COUNT ( * ) END * 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT DISTINCT - COUNT( DISTINCT - - 3 ) * + 31 AS col2, 52 + - - 94 + + 24 + - - 92 AS col0
----
-31
262

skipif mysql # not compatible
query II rowsort label-211
SELECT DISTINCT - COUNT ( DISTINCT - - 3 ) * + 31 AS col2, 52 + - - 94 + + 24 + - - 92 AS col0
----
-31
262

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL ( - COUNT( - 96 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL ( - COUNT ( - 96 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT MIN( + 37 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-213
SELECT MIN ( + 37 ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL COUNT( DISTINCT - - 23 ) * + 2 * 42 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL COUNT ( DISTINCT - - 23 ) * + 2 * 42 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT COUNT( * ) * - 31 col1
----
-31

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT COUNT ( * ) * - 31 col1
----
-31

query I rowsort
SELECT ALL 79 + + - 61 AS col0
----
18

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

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

query II rowsort
SELECT DISTINCT 72 AS col1, + 60 AS col1
----
72
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT ALL - MAX( DISTINCT - 9 ) + + + COUNT( - 8 ) DIV - 64 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - MAX ( DISTINCT - 9 ) + + + COUNT ( - 8 ) / - 64 AS col0
----
9

query I rowsort
SELECT ALL 43 + + 63 + + 47
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT 35 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT 35 / 61
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-222
SELECT ALL - CAST( NULL AS DECIMAL ) + + ( + CAST( + 83 AS SIGNED ) ) - + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - CAST ( NULL AS REAL ) + + ( + CAST ( + 83 AS INTEGER ) ) - + 19 AS col1
----
NULL

query I rowsort
SELECT 51 - - - 24
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL + ( + + COUNT( * ) ) * + 9 + - ( + + 39 )
----
-30

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + ( + + COUNT ( * ) ) * + 9 + - ( + + 39 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT CAST( NULL AS SIGNED ) + + - ( + + 92 ) * - - 88 + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT CAST ( NULL AS INTEGER ) + + - ( + + 92 ) * - - 88 + - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL - 64 + - 9 + - 70 - + + COUNT( * ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - 64 + - 9 + - 70 - + + COUNT ( * ) AS col2
----
-144

query I rowsort
SELECT 41 + + ( - 68 )
----
-27

query I rowsort
SELECT 44 * 18
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-229
SELECT - 0 AS col0, + 76 DIV - + SUM( ALL + 53 ) + ( 39 ) + 76 AS col1
----
0
114

skipif mysql # not compatible
query II rowsort label-229
SELECT - 0 AS col0, + 76 / - + SUM ( ALL + 53 ) + ( 39 ) + 76 AS col1
----
0
114

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT 64 DIV - ( 64 ) + 41 * - 44 AS col1
----
-1805

skipif mysql # not compatible
query I rowsort label-230
SELECT 64 / - ( 64 ) + 41 * - 44 AS col1
----
-1805

query II rowsort
SELECT DISTINCT - 21 col0, + 80 AS col1
----
-21
80

query I rowsort
SELECT ALL + 9 - - - 81 + - + 75 * 85 + 48
----
-6399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT CAST( - + 36 AS SIGNED ) / + 12 + + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL - 68 - NULLIF ( - - CAST( NULL AS SIGNED ), + + 43 + 53 ) - - 49 - - 94 / 63
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 68 - NULLIF ( - - CAST ( NULL AS INTEGER ), + + 43 + 53 ) - - 49 - - 94 / 63
----
NULL

query I rowsort
SELECT ALL + + ( + 69 ) * + 81 AS col0
----
5589

query I rowsort
SELECT - 39 * + 13 AS col2
----
-507

query I rowsort
SELECT ALL - 77 * - - 85 * - 35 * + - 76
----
-17409700

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + + COALESCE ( ( + - ( - 20 ) ), + NULLIF ( 9, - + 47 ) * + 85 * + COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-238
SELECT + + COALESCE ( ( + - ( - 20 ) ), + NULLIF ( 9, - + 47 ) * + 85 * + COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT DISTINCT - + COUNT( * ) col0, + COUNT( * ) * - COUNT( * ) * + 24 * + ( - 39 )
----
-1
936

skipif mysql # not compatible
query II rowsort label-239
SELECT DISTINCT - + COUNT ( * ) col0, + COUNT ( * ) * - COUNT ( * ) * + 24 * + ( - 39 )
----
-1
936

query I rowsort
SELECT ALL + + 10 * - ( 47 ) AS col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL 42 + COUNT( * ) - - - 10 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 42 + COUNT ( * ) - - - 10 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - COUNT( * ) * + + COALESCE ( - - COUNT( * ), 1, - - 79 * - - 5 ) * 65 * + 77 + + + 39 + - - 93
----
-4873

skipif mysql # not compatible
query I rowsort label-242
SELECT - COUNT ( * ) * + + COALESCE ( - - COUNT ( * ), 1, - - 79 * - - 5 ) * 65 * + 77 + + + 39 + - - 93
----
-4873

query I rowsort
SELECT COALESCE ( - 36, - 80 ) * - 15 AS col0
----
540

query I rowsort
SELECT 39 * 8
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL 38 + COUNT( * ) - + + NULLIF ( 89, - + 9 )
----
-50

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL 38 + COUNT ( * ) - + + NULLIF ( 89, - + 9 )
----
-50

query I rowsort
SELECT ALL 56 + - - AVG ( CASE + + 65 WHEN 85 THEN 18 WHEN - 63 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 16 + + + COUNT( * ) * + 7
----
23

skipif mysql # not compatible
query I rowsort label-247
SELECT 16 + + + COUNT ( * ) * + 7
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT - 31 * + - 82 * - 21 - + 17 + + CAST( + NULLIF ( ( + + 4 ), + + ( ( - + COUNT( * ) ) ) ) AS SIGNED ) AS col1
----
-53395

skipif mysql # not compatible
query I rowsort label-248
SELECT - 31 * + - 82 * - 21 - + 17 + + CAST ( + NULLIF ( ( + + 4 ), + + ( ( - + COUNT ( * ) ) ) ) AS INTEGER ) AS col1
----
-53395

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT NULLIF ( - COUNT( * ), + + 5 ) + 64
----
63

skipif mysql # not compatible
query I rowsort label-249
SELECT NULLIF ( - COUNT ( * ), + + 5 ) + 64
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT ALL COUNT( * ) + - - 55 DIV + 91 + - 10 col1
----
-9

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL COUNT ( * ) + - - 55 / + 91 + - 10 col1
----
-9

query I rowsort
SELECT ALL 25 + - 74
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL 84 * - NULLIF ( + ( COUNT( * ) ), 62 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL 84 * - NULLIF ( + ( COUNT ( * ) ), 62 ) AS col1
----
-84

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

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

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - 25 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL COUNT( - + 56 ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL COUNT ( - + 56 ) + - 80
----
-79

query I rowsort
SELECT 70 + 32 * 87 * - 32 * + - 34 AS col1
----
3029062

query I rowsort
SELECT ( 33 ) * ( 68 ) + - 20 + 30
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 86 + + ( - COUNT( * ) ) * + + 48 col0
----
38

skipif mysql # not compatible
query I rowsort label-258
SELECT 86 + + ( - COUNT ( * ) ) * + + 48 col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT 89 * + ( + NULLIF ( - - 91, + CAST( NULL AS SIGNED ) ) ) AS col1
----
8099

skipif mysql # not compatible
query I rowsort label-259
SELECT 89 * + ( + NULLIF ( - - 91, + CAST ( NULL AS INTEGER ) ) ) AS col1
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL MAX( DISTINCT + - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL MAX ( DISTINCT + - 93 ) AS col2
----
-93

query I rowsort
SELECT DISTINCT - - 79 * + 97 col2
----
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT - + 12 * - - NULLIF ( + + CASE + 87 WHEN ( 15 ) + - 78 THEN - COUNT( 69 ) ELSE + 75 + + 18 END, - 53 * - - 79 * + 96 )
----
-1116

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - + 12 * - - NULLIF ( + + CASE + 87 WHEN ( 15 ) + - 78 THEN - COUNT ( 69 ) ELSE + 75 + + 18 END, - 53 * - - 79 * + 96 )
----
-1116

query I rowsort
SELECT 7 * - + 3 + - + 30 AS col1
----
-51

query II rowsort
SELECT 95 - + - 73, 36 AS col0
----
168
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-265
SELECT MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) * - 19 * + 53 + 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT MIN ( DISTINCT + CAST ( NULL AS REAL ) ) * - 19 * + 53 + 91 col2
----
NULL

query I rowsort
SELECT DISTINCT + - 7 * + + 48
----
-336

query I rowsort
SELECT ALL 95 * + 51 - + 28 + - 81
----
4736

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - + 97 * + 14 + - MAX( + 5 ) AS col0
----
-1363

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - + 97 * + 14 + - MAX ( + 5 ) AS col0
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 99 * + 56 + - COUNT( * ) * - + 4 * + + 34
----
5680

skipif mysql # not compatible
query I rowsort label-269
SELECT + 99 * + 56 + - COUNT ( * ) * - + 4 * + + 34
----
5680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT ALL + CASE + SUM( DISTINCT - 59 ) WHEN + 8 * + 97 * + 5 - + 76 + + ( + + NULLIF ( + 64, - + 53 - 17 * MIN( ALL + 67 ) * - + 15 DIV 94 * 91 ) ) THEN + 75 WHEN + 13 THEN NULL WHEN + 71 + + MIN( DISTINCT + 36 ) * + 84 THEN ( + 16 ) DIV 18 ELSE MIN( DISTINCT 66 ) END + 11
----
77

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL + CASE + SUM ( DISTINCT - 59 ) WHEN + 8 * + 97 * + 5 - + 76 + + ( + + NULLIF ( + 64, - + 53 - 17 * MIN ( ALL + 67 ) * - + 15 / 94 * 91 ) ) THEN + 75 WHEN + 13 THEN NULL WHEN + 71 + + MIN ( DISTINCT + 36 ) * + 84 THEN ( + 16 ) / 18 ELSE MIN ( DISTINCT 66 ) END + 11
----
77

query I rowsort
SELECT ALL - 44 + + - 57 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT ( 29 ) + - NULLIF ( + 11, + COUNT( * ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT ( 29 ) + - NULLIF ( + 11, + COUNT ( * ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL + 8 + + COUNT( * ) + MAX( DISTINCT + 2 ) - - 63 * - 1 col0
----
-52

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + 8 + + COUNT ( * ) + MAX ( DISTINCT + 2 ) - - 63 * - 1 col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT ALL - CAST( NULL AS SIGNED ) * - 51 / 10 * - SUM( DISTINCT + 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - CAST ( NULL AS INTEGER ) * - 51 / 10 * - SUM ( DISTINCT + 16 ) AS col1
----
NULL

query II rowsort
SELECT 67 col0, - 86 * 44 AS col2
----
67
-3784

query II rowsort
SELECT ALL 31 AS col1, - 47 * - 20
----
31
940

query I rowsort
SELECT - 54 * - 17 AS col1
----
918

query I rowsort
SELECT - 72 - - 24 + + - 6 * 4 * - - 95 * + 23
----
-52488

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT DISTINCT 83 DIV - - 8
----
10

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 83 / - - 8
----
10

query I rowsort
SELECT + NULLIF ( - + 70, - 84 ) - - NULLIF ( - 73, + 28 )
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT + CAST( + 90 AS SIGNED ) * 22 AS col0
----
1980

skipif mysql # not compatible
query I rowsort label-281
SELECT + CAST ( + 90 AS INTEGER ) * 22 AS col0
----
1980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-282
SELECT + COUNT( * ) * ( ( MAX( - + NULLIF ( - 60, + ( 82 ) * 82 ) ) ) ) * + 12 + - - COALESCE ( + 4, - COALESCE ( - COUNT( * ), 97 ) * + 51 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT + COUNT ( * ) * ( ( MAX ( - + NULLIF ( - 60, + ( 82 ) * 82 ) ) ) ) * + 12 + - - COALESCE ( + 4, - COALESCE ( - COUNT ( * ), 97 ) * + 51 ) + + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT + - 32 - + 57
----
-89

query I rowsort
SELECT ALL - 27 * 75
----
-2025

query I rowsort
SELECT + + 46 + + + 22
----
68

query I rowsort
SELECT + - 88 * + 46
----
-4048

query I rowsort
SELECT - - 82 * 21 AS col2
----
1722

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + ( - 22 ) * 19 - + + COUNT( * ) * - + 68 + + 63 + - 66
----
-353

skipif mysql # not compatible
query I rowsort label-290
SELECT + ( - 22 ) * 19 - + + COUNT ( * ) * - + 68 + + 63 + - 66
----
-353

query II rowsort
SELECT 31, + 61 * + 56 col1
----
31
3416

query I rowsort
SELECT DISTINCT 5 * + 13 + - 99 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT ALL 42 * 54 + + 41 + + COUNT( * ) * - 21 - ( - + 77 ) * 68 DIV 11 + - 94 + ( + + 23 ) AS col1
----
2693

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL 42 * 54 + + 41 + + COUNT ( * ) * - 21 - ( - + 77 ) * 68 / 11 + - 94 + ( + + 23 ) AS col1
----
2693

query II rowsort
SELECT + - 48 AS col2, 57 col2
----
-48
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-295
SELECT DISTINCT - CAST( 73 AS SIGNED ) * COALESCE ( - COUNT( * ), - MIN( + 73 ) ) - 85 DIV - 31 + + - 31 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT - CAST ( 73 AS INTEGER ) * COALESCE ( - COUNT ( * ), - MIN ( + 73 ) ) - 85 / - 31 + + - 31 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT - 85 + COUNT( * ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-296
SELECT - 85 + COUNT ( * ) col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT DISTINCT + - 59 AS col2, 7 * - - 8 - - + 0 + - + 79 * - COUNT( * ) - - - 24 + + 33 * + 79 * + + 51 col1
----
-59
133068

skipif mysql # not compatible
query II rowsort label-297
SELECT DISTINCT + - 59 AS col2, 7 * - - 8 - - + 0 + - + 79 * - COUNT ( * ) - - - 24 + + 33 * + 79 * + + 51 col1
----
-59
133068

query I rowsort
SELECT DISTINCT + - 22 * - - 64 + + 43
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + MIN( + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-299
SELECT + MIN ( + 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL - - COALESCE ( 1, + 64 ) * CAST( 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - - COALESCE ( 1, + 64 ) * CAST ( 89 AS INTEGER ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL - - 57 * - 63 + - 59 + - 56 + - 52 DIV 15 + + 46
----
-3663

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - - 57 * - 63 + - 59 + - 56 + - 52 / 15 + + 46
----
-3663

query I rowsort
SELECT - - 95 * + - 11
----
-1045

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

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

query I rowsort
SELECT DISTINCT 85 * + + 82 AS col2
----
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - 97 * NULLIF ( + 41, + + 98 + COUNT( * ) ) AS col0
----
-3977

skipif mysql # not compatible
query I rowsort label-305
SELECT - 97 * NULLIF ( + 41, + + 98 + COUNT ( * ) ) AS col0
----
-3977

onlyif mysql # aggregate syntax: 
query II rowsort label-306
SELECT DISTINCT + SUM( 72 ) AS col0, 56
----
72
56

skipif mysql # not compatible
query II rowsort label-306
SELECT DISTINCT + SUM ( 72 ) AS col0, 56
----
72
56

query I rowsort
SELECT ALL - 68 * 79 * + - 36 AS col1
----
193392

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ALL + 19 * 30 - + + 80 DIV + 61
----
569

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + 19 * 30 - + + 80 / + 61
----
569

query I rowsort
SELECT COALESCE ( 31, 41 * - NULLIF ( + 85, - 31 ) ) AS col1
----
31

query I rowsort
SELECT - 84 + + ( + - ( - + 87 ) ) * - 6
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - SUM( ALL - 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-311
SELECT - SUM ( ALL - 57 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - 31 * + + SUM( - 35 ) * + 7 * COUNT( 24 )
----
7595

skipif mysql # not compatible
query I rowsort label-312
SELECT - 31 * + + SUM ( - 35 ) * + 7 * COUNT ( 24 )
----
7595

query I rowsort
SELECT ALL - 5 * - 93 AS col2
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 48 + 40 + - - ( ( - COUNT( 75 ) ) ) - + 43 col1
----
-52

skipif mysql # not compatible
query I rowsort label-314
SELECT - 48 + 40 + - - ( ( - COUNT ( 75 ) ) ) - + 43 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT + 85 * + 20 * 93 - ( - COUNT( * ) ) + - - 76
----
158177

skipif mysql # not compatible
query I rowsort label-315
SELECT + 85 * + 20 * 93 - ( - COUNT ( * ) ) + - - 76
----
158177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT ALL CASE COUNT( * ) WHEN - 49 + - + 18 THEN 49 + - 36 - + + 52 * + - 52 WHEN + 59 DIV - 30 * + 95 THEN NULL ELSE 45 DIV + 87 END
----
0

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL CASE COUNT ( * ) WHEN - 49 + - + 18 THEN 49 + - 36 - + + 52 * + - 52 WHEN + 59 / - 30 * + 95 THEN NULL ELSE 45 / + 87 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT - ( - + 12 ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT - ( - + 12 ) / + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL - 5 * - COALESCE ( + 57, - 10 * + 15 + + 54 + NULLIF ( + 35, - CAST( - COUNT( * ) AS SIGNED ) ) * - - 38 )
----
285

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - 5 * - COALESCE ( + 57, - 10 * + 15 + + 54 + NULLIF ( + 35, - CAST ( - COUNT ( * ) AS INTEGER ) ) * - - 38 )
----
285

query I rowsort
SELECT DISTINCT ( - + 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT - 87 * + 15 DIV COUNT( ALL - 86 ) AS col1
----
-1305

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - 87 * + 15 / COUNT ( ALL - 86 ) AS col1
----
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT - CASE - 32 WHEN + + 5 THEN 35 + - + 80 * + 63 WHEN + 69 THEN - 31 * CAST( NULL AS SIGNED ) + + + ( + - 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT - CASE - 32 WHEN + + 5 THEN 35 + - + 80 * + 63 WHEN + 69 THEN - 31 * CAST ( NULL AS INTEGER ) + + + ( + - 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT - MIN( DISTINCT NULLIF ( - 57, - - 70 ) ) * COALESCE ( 55, - 0 * + MIN( ALL - + 80 ) )
----
3135

skipif mysql # not compatible
query I rowsort label-322
SELECT - MIN ( DISTINCT NULLIF ( - 57, - - 70 ) ) * COALESCE ( 55, - 0 * + MIN ( ALL - + 80 ) )
----
3135

query I rowsort
SELECT - NULLIF ( - + 63, 49 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL COUNT( * ) + ( - + 30 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL COUNT ( * ) + ( - + 30 ) AS col0
----
-29

query I rowsort
SELECT - 6 * - 26 + ( + 55 )
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-326
SELECT + 75 + 75 DIV MIN( 72 ), COUNT( * ) AS col0, - 27 AS col1
----
76
1
-27

skipif mysql # not compatible
query III rowsort label-326
SELECT + 75 + 75 / MIN ( 72 ), COUNT ( * ) AS col0, - 27 AS col1
----
76
1
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT + + ( - COALESCE ( + 90, 56, SUM( ALL 25 ) ) ) + + - 50 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + + ( - COALESCE ( + 90, 56, SUM ( ALL 25 ) ) ) + + - 50 AS col1
----
-140

query I rowsort
SELECT ALL 59 * NULLIF ( + + 65, + + 57 - - + 81 * + - 27 * 22 / 42 )
----
3835

query I rowsort
SELECT ALL + 45 + + 88
----
133

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

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

query I rowsort
SELECT ALL + 65 + - - 12 AS col2
----
77

query I rowsort
SELECT ALL - 54 * - 61 * 3 + - 10 - - 29 AS col0
----
9901

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

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

query I rowsort
SELECT DISTINCT + 21 * - 56
----
-1176

query I rowsort
SELECT DISTINCT - - ( 42 )
----
42

query I rowsort
SELECT ALL - NULLIF ( - 41, - 89 ) + - 16 + + 11 + - + 88 AS col2
----
-52

query I rowsort
SELECT ALL 66 + + + 84 AS col0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT - 49 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-339
SELECT - 49 / 57 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT ALL 9 DIV 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 9 / 48 col1
----
0

query I rowsort
SELECT ALL 79 - - + 53
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL + 81 * - + CAST( NULL AS SIGNED ) * + 74 / - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 81 * - + CAST ( NULL AS INTEGER ) * + 74 / - 80 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT ALL ( + 74 ) DIV - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL ( + 74 ) / - 74 AS col0
----
-1

query I rowsort
SELECT DISTINCT 8 * + - 3 AS col0
----
-24

query I rowsort
SELECT ALL + 82 * + - 92 col2
----
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT ( 93 ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT ( 93 ) / + 97
----
0

query I rowsort
SELECT 80 * 45 * + - 55 AS col1
----
-198000

query I rowsort
SELECT ALL - 19 * 45 * + 18 * 21 AS col0
----
-323190

query I rowsort
SELECT 54 + + 9
----
63

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + COUNT ( * ) / 20 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT 69 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-353
SELECT 69 / + 90 AS col1
----
0

query I rowsort
SELECT ALL 66 * + 57
----
3762

query I rowsort
SELECT 79 * - + 92 AS col2
----
-7268

query II rowsort
SELECT ALL 42 col2, 20
----
42
20

query I rowsort
SELECT 4 * 21 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT ALL + 10 + CAST( + 42 AS SIGNED ) + - 78 * + - 39 * - NULLIF ( - - COUNT( * ), 95 ) + + 82 * - + 18 AS col2
----
-4466

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + 10 + CAST ( + 42 AS INTEGER ) + - 78 * + - 39 * - NULLIF ( - - COUNT ( * ), 95 ) + + 82 * - + 18 AS col2
----
-4466

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - MAX( + - 86 ) + - 49 * + 87
----
-4177

skipif mysql # not compatible
query I rowsort label-360
SELECT - MAX ( + - 86 ) + - 49 * + 87
----
-4177

query I rowsort
SELECT ALL + 60 + 25 + - 38 * - + ( + 62 ) - - + ( + 32 ) AS col0
----
2473

query II rowsort
SELECT 93 * - 96 * - 23, 55 + - 80 AS col1
----
205344
-25

query I rowsort
SELECT ALL + 49 + - 16 AS col2
----
33

query II rowsort
SELECT ALL - + ( 58 ) + - 92 AS col0, + 34 * - 22 AS col0
----
-150
-748

query I rowsort
SELECT + 40 - - 88 + + + 41 + + 92 * 23 * 47 AS col1
----
99621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT CAST( NULL AS SIGNED ) + - 89 + - + 35 * 61 * COALESCE ( - + 92, + NULLIF ( - 21, + 54 + - - 19 + COALESCE ( + + COUNT( * ), - + 34 ) ), + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT CAST ( NULL AS INTEGER ) + - 89 + - + 35 * 61 * COALESCE ( - + 92, + NULLIF ( - 21, + 54 + - - 19 + COALESCE ( + + COUNT ( * ), - + 34 ) ), + 60 ) AS col0
----
NULL

query I rowsort
SELECT 62 + + 25
----
87

query I rowsort
SELECT ALL + + 75 + 12
----
87

query I rowsort
SELECT - ( + + 16 ) + + 93 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-370
SELECT COUNT( * ) * - - MAX( - COALESCE ( + 82, + CASE - 70 WHEN + + CAST( NULL AS DECIMAL ) THEN - 44 END, + 86 ) ) * - 93 * 15
----
114390

skipif mysql # not compatible
query I rowsort label-370
SELECT COUNT ( * ) * - - MAX ( - COALESCE ( + 82, + CASE - 70 WHEN + + CAST ( NULL AS REAL ) THEN - 44 END, + 86 ) ) * - 93 * 15
----
114390

query I rowsort
SELECT 41 + + 44 AS col2
----
85

query I rowsort
SELECT ALL + - 83 - + 52 + - 28 AS col0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-373
SELECT 4 * + 88 + - CASE - 2 WHEN - CAST( NULL AS SIGNED ) + - 75 THEN 34 + 97 ELSE NULL END + - 80 * 48 AS col2, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-373
SELECT 4 * + 88 + - CASE - 2 WHEN - CAST ( NULL AS INTEGER ) + - 75 THEN 34 + 97 ELSE NULL END + - 80 * 48 AS col2, 66
----
NULL
66

query I rowsort
SELECT ALL - 93 - - 91 * 5 AS col0
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT + COUNT( DISTINCT 93 ) * - 61 + - - 45 * - 66 * MAX( 23 ) AS col0
----
-68371

skipif mysql # not compatible
query I rowsort label-375
SELECT + COUNT ( DISTINCT 93 ) * - 61 + - - 45 * - 66 * MAX ( 23 ) AS col0
----
-68371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-376
SELECT ALL - 19 AS col2, + CAST( NULL AS SIGNED )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-376
SELECT ALL - 19 AS col2, + CAST ( NULL AS INTEGER )
----
-19
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 54, 50 + + 96 ) * 44 AS col1
----
2376

query II rowsort
SELECT 42 AS col2, - 43 AS col0
----
42
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-379
SELECT COUNT( * ) * + COALESCE ( - 91, + 96 ), 64 DIV + 19 col0
----
-91
3

skipif mysql # not compatible
query II rowsort label-379
SELECT COUNT ( * ) * + COALESCE ( - 91, + 96 ), 64 / + 19 col0
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT 67 * COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT 67 * COUNT ( * ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-381
SELECT DISTINCT - 12 col0, 63 + - 67 + - + 51 * + COUNT( * ) AS col1
----
-12
-55

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT - 12 col0, 63 + - 67 + - + 51 * + COUNT ( * ) AS col1
----
-12
-55

query II rowsort
SELECT + 71 AS col1, - 92 AS col2
----
71
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-383
SELECT + 77 * + 9 * - 45 + + 11 AS col2, + NULLIF ( - 6, - 0 * + MIN( 48 ) + + 54 ) * 16 - - CAST( NULL AS SIGNED )
----
-31174
NULL

skipif mysql # not compatible
query II rowsort label-383
SELECT + 77 * + 9 * - 45 + + 11 AS col2, + NULLIF ( - 6, - 0 * + MIN ( 48 ) + + 54 ) * 16 - - CAST ( NULL AS INTEGER )
----
-31174
NULL

query II rowsort
SELECT 72, 64 AS col2
----
72
64

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT ALL - 8 col2, + ( SUM( DISTINCT + 47 ) )
----
-8
47

skipif mysql # not compatible
query II rowsort label-385
SELECT ALL - 8 col2, + ( SUM ( DISTINCT + 47 ) )
----
-8
47

query I rowsort
SELECT 53 - - 4 * + + 33 AS col2
----
185

query II rowsort
SELECT ALL - 24 AS col2, 12
----
-24
12

query I rowsort
SELECT DISTINCT 77 + 9 + 91 * + - 62
----
-5556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-389
SELECT 4 DIV CASE + 27 WHEN + 43 THEN NULL WHEN - - COUNT( * ) * 84 THEN - + COUNT( * ) + - - 19 DIV + CAST( - NULLIF ( + 51, + 91 + + 85 ) AS SIGNED ) + + - 75 WHEN + 64 * - MAX( ALL - 1 ) DIV + + SUM( ALL - 29 ) + COALESCE ( 35, + 16, + 27 ) THEN 2 * + COUNT( * ) - 80 * CASE + ( 77 ) WHEN 96 * ( + 56 ) + - MIN( DISTINCT CASE 52 WHEN ( 57 ) + 2 THEN NULL WHEN CASE 14 WHEN + 61 * 57 THEN NULL ELSE 8 END THEN - COALESCE ( 18, 35, 44 ) ELSE NULL END + 69 ) THEN 41 + - 79 DIV 7 END WHEN + 62 THEN - 89 WHEN - 9 THEN + 96 DIV 44 ELSE - 13 END * - 63
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT 4 / CASE + 27 WHEN + 43 THEN NULL WHEN - - COUNT ( * ) * 84 THEN - + COUNT ( * ) + - - 19 / + CAST ( - NULLIF ( + 51, + 91 + + 85 ) AS INTEGER ) + + - 75 WHEN + 64 * - MAX ( ALL - 1 ) / + + SUM ( ALL - 29 ) + COALESCE ( 35, + 16, + 27 ) THEN 2 * + COUNT ( * ) - 80 * CASE + ( 77 ) WHEN 96 * ( + 56 ) + - MIN ( DISTINCT CASE 52 WHEN ( 57 ) + 2 THEN NULL WHEN CASE 14 WHEN + 61 * 57 THEN NULL ELSE 8 END THEN - COALESCE ( 18, 35, 44 ) ELSE NULL END + 69 ) THEN 41 + - 79 / 7 END WHEN + 62 THEN - 89 WHEN - 9 THEN + 96 / 44 ELSE - 13 END * - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL MIN( DISTINCT - + 93 ) + + 29
----
-64

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL MIN ( DISTINCT - + 93 ) + + 29
----
-64

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

skipif mysql # not compatible
query II rowsort label-391
SELECT - COUNT ( * ) AS col0, - 95
----
-1
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-392
SELECT 15 AS col0, CAST( NULL AS SIGNED ) * + - 72 col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-392
SELECT 15 AS col0, CAST ( NULL AS INTEGER ) * + - 72 col0
----
15
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT 15 + - - CAST( - 18 AS SIGNED ) * 45
----
-795

skipif mysql # not compatible
query I rowsort label-393
SELECT 15 + - - CAST ( - 18 AS INTEGER ) * 45
----
-795

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT - SUM( ALL + 83 ) DIV ( COUNT( ALL + + 14 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - SUM ( ALL + 83 ) / ( COUNT ( ALL + + 14 ) ) AS col1
----
-83

query I rowsort
SELECT 38 + 70 AS col2
----
108

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

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

query I rowsort
SELECT - 37 + 16 col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-400
SELECT 25 AS col2, ( 62 ) / + - MIN( ALL 27 ) * - 1 + + CAST( NULL AS SIGNED ) - + - 14 - ( 68 ) + + + 57 AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-400
SELECT 25 AS col2, ( 62 ) / + - MIN ( ALL 27 ) * - 1 + + CAST ( NULL AS INTEGER ) - + - 14 - ( 68 ) + + + 57 AS col1
----
25
NULL

query I rowsort
SELECT ALL - 63 - 49
----
-112

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

skipif mysql # not compatible
query I rowsort label-402
SELECT - COUNT ( DISTINCT 32 ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT - CASE 51 WHEN + - ( CAST( 55 AS SIGNED ) ) THEN - 57 WHEN + 74 THEN + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT - CASE 51 WHEN + - ( CAST ( 55 AS INTEGER ) ) THEN - 57 WHEN + 74 THEN + 42 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + + COUNT ( * ) * + ( + 36 ) AS col0
----
36

query I rowsort
SELECT DISTINCT + 55 * - - 42 col0
----
2310

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT SUM( + + 43 ) AS col0, 3 * + 90 * - 7 + + - 67 * + + ( + MIN( DISTINCT + 42 ) ) AS col0
----
43
-4704

skipif mysql # not compatible
query II rowsort label-406
SELECT SUM ( + + 43 ) AS col0, 3 * + 90 * - 7 + + - 67 * + + ( + MIN ( DISTINCT + 42 ) ) AS col0
----
43
-4704

query I rowsort
SELECT DISTINCT - 69 - 95
----
-164

onlyif mysql # DIV for integer division: 
query II rowsort label-408
SELECT - 56 DIV - 31, 64 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-408
SELECT - 56 / - 31, 64 AS col2
----
1
64

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT + 61 * NULLIF ( - 9, - 92 ) * + - 58 col1, COUNT( * )
----
31842
1

skipif mysql # not compatible
query II rowsort label-409
SELECT + 61 * NULLIF ( - 9, - 92 ) * + - 58 col1, COUNT ( * )
----
31842
1

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

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

query I rowsort
SELECT ALL + NULLIF ( + + 54, + + ( + - 63 ) )
----
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-413
SELECT ALL + ( COALESCE ( ( - COALESCE ( 43, + - 28 DIV - 90 * - - 81 ) ), 92 * - 12 * 36 + - 96 + + 27 + + + COUNT( * ), - + COUNT( * ) + + 44 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + ( COALESCE ( ( - COALESCE ( 43, + - 28 / - 90 * - - 81 ) ), 92 * - 12 * 36 + - 96 + + 27 + + + COUNT ( * ), - + COUNT ( * ) + + 44 ) )
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-414
SELECT - 25 DIV - 41 AS col2, 49
----
0
49

skipif mysql # not compatible
query II rowsort label-414
SELECT - 25 / - 41 AS col2, 49
----
0
49

query I rowsort
SELECT DISTINCT 37 * - 76
----
-2812

onlyif mysql # DIV for integer division: 
query III rowsort label-416
SELECT DISTINCT - 64 DIV - + 55, 32 AS col2, - 2 + - 57 AS col0
----
1
32
-59

skipif mysql # not compatible
query III rowsort label-416
SELECT DISTINCT - 64 / - + 55, 32 AS col2, - 2 + - 57 AS col0
----
1
32
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL 72 * COALESCE ( + - 76, COUNT( * ) * + 4 + + 13 + 40, - - ( + ( - 15 ) ) + - 30 ) AS col0
----
-5472

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL 72 * COALESCE ( + - 76, COUNT ( * ) * + 4 + + 13 + 40, - - ( + ( - 15 ) ) + - 30 ) AS col0
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT + 10 * - 22 * 89 * SUM( DISTINCT + 45 ) + - + 77
----
-881177

skipif mysql # not compatible
query I rowsort label-418
SELECT + 10 * - 22 * 89 * SUM ( DISTINCT + 45 ) + - + 77
----
-881177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT + CAST( + 25 AS SIGNED ) - - MIN( ALL + 26 )
----
51

skipif mysql # not compatible
query I rowsort label-419
SELECT + CAST ( + 25 AS INTEGER ) - - MIN ( ALL + 26 )
----
51

query I rowsort
SELECT DISTINCT ( + - 81 ) * - - 58 * 74 + 68 + - + 68 AS col0
----
-347652

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL 41 * + 63 + - MIN( 36 ) AS col0
----
2547

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 41 * + 63 + - MIN ( 36 ) AS col0
----
2547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT ALL 47 * 36 + - + 78 - 83 + - CAST( NULL AS SIGNED ) * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL 47 * 36 + - + 78 - 83 + - CAST ( NULL AS INTEGER ) * 93 AS col2
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 29 * 21 + - 42 AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL - 62 * - - COUNT( * ) + - 33 + - - 65
----
-30

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - 62 * - - COUNT ( * ) + - 33 + - - 65
----
-30

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

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

query I rowsort
SELECT DISTINCT + ( + 81 ) + 4
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL - COUNT( - 83 ) - + - 64
----
63

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - COUNT ( - 83 ) - + - 64
----
63

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

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

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

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL - ( 50 ) AS col2, COUNT ( * )
----
-50
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-433
SELECT + 2 + - 35 AS col0, COUNT( * ) DIV + 10
----
-33
0

skipif mysql # not compatible
query II rowsort label-433
SELECT + 2 + - 35 AS col0, COUNT ( * ) / + 10
----
-33
0

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

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 79 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-435
SELECT ALL - + 8 DIV 46 AS col1, + NULLIF ( - - 49, - 86 ) + 27 AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-435
SELECT ALL - + 8 / 46 AS col1, + NULLIF ( - - 49, - 86 ) + 27 AS col1
----
0
76

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT - + 83 DIV + 92 * - 88
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT - + 83 / + 92 * - 88
----
0

query II rowsort
SELECT + 68 + + 70 AS col1, + 79
----
138
79

query I rowsort
SELECT - - 71 - + 19 + + ( - + 19 ) AS col2
----
33

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

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

query I rowsort
SELECT + 15 * + 11
----
165

query I rowsort
SELECT - 20 * 10 AS col2
----
-200

query I rowsort
SELECT + 32 + 12 * + - 41 - 65
----
-525

query I rowsort
SELECT ALL - 77 * - 34 * AVG ( 53 ) * 80 + - 58 + - - CASE + 3 WHEN + - 54 * + + ( - 97 ) THEN + + 48 + + 48 / 94 + + + 55 END + 47
----
NULL

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

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

query I rowsort
SELECT ALL - 60 * - - 87 * - 86 AS col0
----
448920

query I rowsort
SELECT NULLIF ( - 56, - - 89 ) * - + 69 + + 46 + 4
----
3914

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT ALL + 50 DIV - 54 * - 61 + 77 * - ( + 8 ) + - - 29 AS col1
----
-587

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL + 50 / - 54 * - 61 + 77 * - ( + 8 ) + - - 29 AS col1
----
-587

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-449
SELECT ALL ( + 74 ) DIV + COUNT( * ) + + 52 + + + 25
----
151

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL ( + 74 ) / + COUNT ( * ) + + 52 + + + 25
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT DISTINCT COUNT( * ) DIV 46 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT COUNT ( * ) / 46 + - 30
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL MAX( + 21 ) / + 89 + 41 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL MAX ( + 21 ) / + 89 + 41 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 * + 97 + + ( 39 ) AS col1
----
5956

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT ALL - 15 DIV 8
----
-1

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL - 15 / 8
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT MAX( 66 ) * - - 82 + - 96
----
5316

skipif mysql # not compatible
query I rowsort label-454
SELECT MAX ( 66 ) * - - 82 + - 96
----
5316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT 37 DIV + COUNT( * ) + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 37 / + COUNT ( * ) + COUNT ( * )
----
38

query I rowsort
SELECT + 30 * + 74 + + + 12
----
2232

query I rowsort
SELECT ALL 11 * 73 * 59 * + 18 + - 33 AS col2
----
852753

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT ALL COUNT( - 47 ) * 85 col0, + 84 AS col1
----
85
84

skipif mysql # not compatible
query II rowsort label-458
SELECT ALL COUNT ( - 47 ) * 85 col0, + 84 AS col1
----
85
84

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT - 88 * - 26 * + COUNT( * ) col2, SUM( ALL - 67 ) AS col0
----
2288
-67

skipif mysql # not compatible
query II rowsort label-459
SELECT - 88 * - 26 * + COUNT ( * ) col2, SUM ( ALL - 67 ) AS col0
----
2288
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-460
SELECT ALL - COUNT( * ) DIV ( + - 84 ) AS col0, + MIN( + - 0 ) * 18
----
0
0

skipif mysql # not compatible
query II rowsort label-460
SELECT ALL - COUNT ( * ) / ( + - 84 ) AS col0, + MIN ( + - 0 ) * 18
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL + CAST( - SUM( DISTINCT + ( - + 93 ) ) AS SIGNED ) * - + ( - - 29 ) - 22 col1
----
-2719

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + CAST ( - SUM ( DISTINCT + ( - + 93 ) ) AS INTEGER ) * - + ( - - 29 ) - 22 col1
----
-2719

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

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

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

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + + COUNT ( DISTINCT + 15 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + MAX( + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-464
SELECT + MAX ( + 85 ) AS col2
----
85

query I rowsort
SELECT - - 37 * + + 13 + ( + 15 ) col2
----
496

query I rowsort
SELECT + ( + + ( 9 ) ) * - - 46 AS col2
----
414

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT 79, + 49 * + COUNT( * ) - - ( - - ( - 10 ) ) AS col1
----
79
39

skipif mysql # not compatible
query II rowsort label-467
SELECT 79, + 49 * + COUNT ( * ) - - ( - - ( - 10 ) ) AS col1
----
79
39

query I rowsort
SELECT + 19 + + 0 - 26 col2
----
-7

query I rowsort
SELECT - 59 + 37
----
-22

query I rowsort
SELECT 47 + - - 87 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL COUNT( 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL COUNT ( 12 ) AS col0
----
1

query I rowsort
SELECT ALL - 77 * - - 0 col2
----
0

query I rowsort
SELECT + 8 + 62 * 27 - + 48 AS col0
----
1634

query I rowsort
SELECT 85 * - 59 * + 60 AS col2
----
-300900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL + CAST( ( - + COALESCE ( - + 16, - COALESCE ( + - 67, 61 * + - ( + + 61 ) + - - 21 ), - - COALESCE ( - + COUNT( * ), + 0 + + - 46 / - + 18 ) * + 62 + 76 * 73 + - 95 ) ) AS SIGNED ) col0
----
16

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + CAST ( ( - + COALESCE ( - + 16, - COALESCE ( + - 67, 61 * + - ( + + 61 ) + - - 21 ), - - COALESCE ( - + COUNT ( * ), + 0 + + - 46 / - + 18 ) * + 62 + 76 * 73 + - 95 ) ) AS INTEGER ) col0
----
16

query I rowsort
SELECT + 35 + - 73 AS col0
----
-38

query I rowsort
SELECT DISTINCT - 61 * 29
----
-1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-478
SELECT 15 col1, CAST( - MIN( + 35 ) AS SIGNED ) * 86 AS col2
----
15
-3010

skipif mysql # not compatible
query II rowsort label-478
SELECT 15 col1, CAST ( - MIN ( + 35 ) AS INTEGER ) * 86 AS col2
----
15
-3010

query I rowsort
SELECT DISTINCT 28 * + 96 + - NULLIF ( - 63, - - 88 ) AS col1
----
2751

query I rowsort
SELECT ALL 3 + 40 col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-481
SELECT DISTINCT + 1 / COUNT( * ) * CAST( NULL AS SIGNED ) * + - 3 * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + 1 / COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 3 * + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 63 * + 95, ( 39 ) col2
----
5985
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT 98 * ( + CAST( ( - 92 ) AS SIGNED ) ) * 86 + - 7
----
-775383

skipif mysql # not compatible
query I rowsort label-483
SELECT 98 * ( + CAST ( ( - 92 ) AS INTEGER ) ) * 86 + - 7
----
-775383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL - CASE - 52 WHEN 76 THEN - - 69 + - CAST( - 5 AS SIGNED ) WHEN 59 + - 7 THEN - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - CASE - 52 WHEN 76 THEN - - 69 + - CAST ( - 5 AS INTEGER ) WHEN 59 + - 7 THEN - 24 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 1 + + 75 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT + 26 DIV + + 76 + - - 44
----
44

skipif mysql # not compatible
query I rowsort label-486
SELECT + 26 / + + 76 + - - 44
----
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT - COUNT( * ) * + ( + 93 ) * - + 64 + + MAX( + 96 ) AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT - COUNT ( * ) * + ( + 93 ) * - + 64 + + MAX ( + 96 ) AS col1
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL 53 * MAX( + - 31 )
----
-1643

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL 53 * MAX ( + - 31 )
----
-1643

query I rowsort
SELECT 14 * + - ( 88 ) * - 56 + - - 37 + + 73
----
69102

query I rowsort
SELECT + 63 * + 33 + + 16 AS col1
----
2095

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

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

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

query I rowsort
SELECT ALL + ( + 93 ) - 17 AS col1
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-495
SELECT - 34 * - - COALESCE ( 35, - 30 ) col0, 83 DIV + - ( + 96 ) AS col2
----
-1190
0

skipif mysql # not compatible
query II rowsort label-495
SELECT - 34 * - - COALESCE ( 35, - 30 ) col0, 83 / + - ( + 96 ) AS col2
----
-1190
0

query I rowsort
SELECT 82 * + ( - ( 75 ) ) AS col1
----
-6150

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

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

query I rowsort
SELECT 31 + - + 50
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - - NULLIF ( - 57, ( + + 12 ) / COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - - NULLIF ( - 57, ( + + 12 ) / COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-500
SELECT ALL + 84 * + COALESCE ( + ( - ( + CASE + NULLIF ( - 28, - COUNT( * ) * + 39 ) WHEN + 12 THEN CAST( - 52 AS SIGNED ) END ) ), 71, 15 DIV - 69 * COUNT( * ) )
----
5964

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + 84 * + COALESCE ( + ( - ( + CASE + NULLIF ( - 28, - COUNT ( * ) * + 39 ) WHEN + 12 THEN CAST ( - 52 AS INTEGER ) END ) ), 71, 15 / - 69 * COUNT ( * ) )
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT DISTINCT COUNT( * ) * + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT COUNT ( * ) * + - 35
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT DISTINCT + + MIN( 66 ) DIV - + 64
----
-1

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + + MIN ( 66 ) / - + 64
----
-1

query I rowsort
SELECT 41 + 13
----
54

query I rowsort
SELECT - 6 * 38
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT - 59 + - MAX( - + 2 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-505
SELECT - 59 + - MAX ( - + 2 ) AS col0
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - SUM( 71 ) + + 3 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-507
SELECT - SUM ( 71 ) + + 3 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT 10 + 93 + 3 DIV ( - ( - - 44 ) ) + 41 * MAX( 20 ) - 85 * 11
----
-12

skipif mysql # not compatible
query I rowsort label-508
SELECT 10 + 93 + 3 / ( - ( - - 44 ) ) + 41 * MAX ( 20 ) - 85 * 11
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT ALL 97 + 10 DIV - - ( + 15 ) - - + 44 * - 30 col2
----
-1223

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL 97 + 10 / - - ( + 15 ) - - + 44 * - 30 col2
----
-1223

query I rowsort
SELECT DISTINCT 14 + 93 + 20 * - 55 + 9
----
-984

query I rowsort
SELECT DISTINCT - 5 + + + 98
----
93

query I rowsort
SELECT 53 + + - 18 col1
----
35

query I rowsort
SELECT 89 + 19 - 0
----
108

query I rowsort
SELECT ALL 61 + - + 81
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT ALL 20 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL 20 / + 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT CASE - + 29 WHEN - ( + - 40 ) - - 6 THEN 73 WHEN + 97 THEN + SUM( 36 ) END + - - CASE CAST( + - COUNT( ALL + 16 ) AS SIGNED ) WHEN 45 THEN 11 WHEN + + 65 * - 6 + - + 94 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT CASE - + 29 WHEN - ( + - 40 ) - - 6 THEN 73 WHEN + 97 THEN + SUM ( 36 ) END + - - CASE CAST ( + - COUNT ( ALL + 16 ) AS INTEGER ) WHEN 45 THEN 11 WHEN + + 65 * - 6 + - + 94 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 13 + - + 30 AS col2
----
-17

query I rowsort
SELECT 79 + - 38
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL COUNT( DISTINCT - + 38 ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL COUNT ( DISTINCT - + 38 ) * 14
----
14

query I rowsort
SELECT DISTINCT 41 * + 79 * CASE 35 WHEN - 44 THEN + + 68 END - ( 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-522
SELECT 62 DIV - 72 * CAST( - + 25 AS SIGNED ) * - - 66 + + 37 + 31 col2
----
68

skipif mysql # not compatible
query I rowsort label-522
SELECT 62 / - 72 * CAST ( - + 25 AS INTEGER ) * - - 66 + + 37 + 31 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - COUNT( * ) + - + COALESCE ( - 92, + + COUNT( * ) + 82 * ( 91 ) * + 36, + - 51 )
----
91

skipif mysql # not compatible
query I rowsort label-523
SELECT - COUNT ( * ) + - + COALESCE ( - 92, + + COUNT ( * ) + 82 * ( 91 ) * + 36, + - 51 )
----
91

query I rowsort
SELECT - + 10 * - 42 AS col2
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-525
SELECT - - CAST( + 86 AS SIGNED ) * - 30 * COUNT( + + 10 ) + 51 * - 8 * - + ( + 6 ) + CAST( 33 AS SIGNED ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-525
SELECT - - CAST ( + 86 AS INTEGER ) * - 30 * COUNT ( + + 10 ) + 51 * - 8 * - + ( + 6 ) + CAST ( 33 AS INTEGER ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT DISTINCT + ( - NULLIF ( - SUM( CAST( + 35 AS SIGNED ) ), - CAST( NULL AS SIGNED ) * - 22 ) ) * 92
----
3220

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + ( - NULLIF ( - SUM ( CAST ( + 35 AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * - 22 ) ) * 92
----
3220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT 24 / + MIN( + 14 ) / + 68 * - CASE + 27 WHEN MIN( DISTINCT - 0 ) THEN - - 41 WHEN + + CAST( - 5 AS SIGNED ) THEN NULL WHEN - + 76 THEN - 62 * + - 3 WHEN COALESCE ( + COALESCE ( - 82, 38 + + MAX( ALL 23 ) + - + ( - 91 ) * - 98 * - - COUNT( * ) / + 17 * ( - 12 * - 14 ) ), COUNT( * ) ) THEN - 77 END + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT 24 / + MIN ( + 14 ) / + 68 * - CASE + 27 WHEN MIN ( DISTINCT - 0 ) THEN - - 41 WHEN + + CAST ( - 5 AS INTEGER ) THEN NULL WHEN - + 76 THEN - 62 * + - 3 WHEN COALESCE ( + COALESCE ( - 82, 38 + + MAX ( ALL 23 ) + - + ( - 91 ) * - 98 * - - COUNT ( * ) / + 17 * ( - 12 * - 14 ) ), COUNT ( * ) ) THEN - 77 END + 59 AS col1
----
NULL

query I rowsort
SELECT - + NULLIF ( + 98, - 34 ) * - 24 - - + 2
----
2354

query I rowsort
SELECT ALL + 38 * + - 93 AS col1
----
-3534

query I rowsort
SELECT - CASE WHEN 27 IS NOT NULL THEN + 47 ELSE + 15 END + 92 AS col0
----
45

query II rowsort
SELECT ALL + 94 * 73 * 62 AS col2, 33 AS col1
----
425444
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-532
SELECT + 34 DIV - 58 + + + CAST( - 27 AS SIGNED ) col2
----
-27

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

query I rowsort
SELECT + 5 * + - 44 + - 89
----
-309

query I rowsort
SELECT ALL - + 9 + - 24
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT - + NULLIF ( - 19, - 95 ) * NULLIF ( 97, - MIN( DISTINCT ( + 96 ) ) * 28 ) + + 27 col2, + 76 AS col2
----
1870
76

skipif mysql # not compatible
query II rowsort label-535
SELECT - + NULLIF ( - 19, - 95 ) * NULLIF ( 97, - MIN ( DISTINCT ( + 96 ) ) * 28 ) + + 27 col2, + 76 AS col2
----
1870
76

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT + + 97 + - - MAX( 77 ) + 91 + + 54 + - 37 AS col1
----
282

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + + 97 + - - MAX ( 77 ) + 91 + + 54 + - 37 AS col1
----
282

query I rowsort
SELECT - - 48 * - 77 + + - ( 31 )
----
-3727

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL - COUNT( * ) + 46
----
45

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - COUNT ( * ) + 46
----
45

query I rowsort
SELECT - 79 + - 69
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-540
SELECT DISTINCT - 19 / 70 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - 19 / 70 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - COUNT( * ) * - 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-541
SELECT - COUNT ( * ) * - 99 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-542
SELECT ALL - 1 * + 22 AS col2, + COALESCE ( + SUM( ALL ( - 16 ) ), 39 + + - 43 DIV + AVG ( ALL + + 83 ) + - - 45, + 13 ) AS col1
----
-22
-16

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - 1 * + 22 AS col2, + COALESCE ( + SUM ( ALL ( - 16 ) ), 39 + + - 43 / + AVG ( ALL + + 83 ) + - - 45, + 13 ) AS col1
----
-22
-16

query I rowsort
SELECT DISTINCT + 47 * + 28 * - 50 * + 63
----
-4145400

query I rowsort
SELECT ALL + 29 * + 98
----
2842

query I rowsort
SELECT ALL NULLIF ( + + 96, - 12 * - + 77 ) AS col0
----
96

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

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT + 11 - 37
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-549
SELECT 26, + MIN( DISTINCT + + 26 ) + + 48 AS col1
----
26
74

skipif mysql # not compatible
query II rowsort label-549
SELECT 26, + MIN ( DISTINCT + + 26 ) + + 48 AS col1
----
26
74

query II rowsort
SELECT 64 AS col0, 35 * - - 17
----
64
595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL CAST( - + MIN( + + 27 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL CAST ( - + MIN ( + + 27 ) AS INTEGER )
----
-27

query I rowsort
SELECT + 59 * - 41 * + 50 * - - 54
----
-6531300

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

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

query I rowsort
SELECT + ( - 94 ) col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL CAST ( NULL AS INTEGER ) * 45 * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT + 6 - MIN( - + 9 )
----
15

skipif mysql # not compatible
query I rowsort label-556
SELECT + 6 - MIN ( - + 9 )
----
15

query II rowsort
SELECT DISTINCT + 81 col0, - 91 AS col1
----
81
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-558
SELECT + + 99, + COUNT( * ) * - 36 DIV + ( - + 65 ) + 7 + + + ( + - CAST( - + 81 AS SIGNED ) ) AS col1
----
99
88

skipif mysql # not compatible
query II rowsort label-558
SELECT + + 99, + COUNT ( * ) * - 36 / + ( - + 65 ) + 7 + + + ( + - CAST ( - + 81 AS INTEGER ) ) AS col1
----
99
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT 95 DIV - 23 + - COUNT( * ) - - 9 + - + COUNT( * ) + + 24 * - - 27 AS col2
----
651

skipif mysql # not compatible
query I rowsort label-559
SELECT 95 / - 23 + - COUNT ( * ) - - 9 + - + COUNT ( * ) + + 24 * - - 27 AS col2
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-560
SELECT ALL ( + 35 ) * - - ( 47 ) + CAST( - + MAX( + - 18 ) AS SIGNED ) + + ( + ( - 83 ) ) * + COALESCE ( + ( - 37 ), 9 ) / CASE + ( - CAST( + 76 AS SIGNED ) ) WHEN 67 THEN - + 68 END + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL ( + 35 ) * - - ( 47 ) + CAST ( - + MAX ( + - 18 ) AS INTEGER ) + + ( + ( - 83 ) ) * + COALESCE ( + ( - 37 ), 9 ) / CASE + ( - CAST ( + 76 AS INTEGER ) ) WHEN 67 THEN - + 68 END + 94 AS col0
----
NULL

query II rowsort
SELECT + 5 * + 75 AS col1, 38 * + 60
----
375
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT + 39, + NULLIF ( + 23, - COUNT( * ) + + 27 ) * + 7 - - 81 AS col2
----
39
242

skipif mysql # not compatible
query II rowsort label-562
SELECT + 39, + NULLIF ( + 23, - COUNT ( * ) + + 27 ) * + 7 - - 81 AS col2
----
39
242

query I rowsort
SELECT + 79 - - 23
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT ALL + - CASE - 38 WHEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL WHEN - + 13 THEN - NULLIF ( - - 84, - CAST( + 51 AS SIGNED ) ) / - - 27 ELSE NULL END * + + 85 + - 69 / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + - CASE - 38 WHEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL WHEN - + 13 THEN - NULLIF ( - - 84, - CAST ( + 51 AS INTEGER ) ) / - - 27 ELSE NULL END * + + 85 + - 69 / 73 AS col1
----
NULL

query I rowsort
SELECT ALL + 80 * + - 50 + + - 85
----
-4085

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

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

query I rowsort
SELECT + + 79 * - 40 + 7 AS col0
----
-3153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL + + CAST( - 2 AS SIGNED ) * - - 87 * + - 78
----
13572

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + + CAST ( - 2 AS INTEGER ) * - - 87 * + - 78
----
13572

query II rowsort
SELECT + + 94 col0, - 55 AS col1
----
94
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-570
SELECT ALL + CASE + 48 WHEN - 2 THEN NULL ELSE + CAST( 23 AS SIGNED ) END * - 53 + - COALESCE ( + COUNT( * ), - 67 + + 85 ) DIV COUNT( * )
----
-1220

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + CASE + 48 WHEN - 2 THEN NULL ELSE + CAST ( 23 AS INTEGER ) END * - 53 + - COALESCE ( + COUNT ( * ), - 67 + + 85 ) / COUNT ( * )
----
-1220

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT + - 40 AS col0, 62 * - - COUNT( * ) * + + 52 AS col2
----
-40
3224

skipif mysql # not compatible
query II rowsort label-571
SELECT + - 40 AS col0, 62 * - - COUNT ( * ) * + + 52 AS col2
----
-40
3224

query II rowsort
SELECT - 63 AS col0, + 29 AS col1
----
-63
29

query I rowsort
SELECT ALL 65 * 86
----
5590

query I rowsort
SELECT - 56 * + - 88
----
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT - NULLIF ( - 42, 89 ) + - + CAST( + - 95 AS SIGNED ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-575
SELECT - NULLIF ( - 42, 89 ) + - + CAST ( + - 95 AS INTEGER ) AS col1
----
137

query I rowsort
SELECT ALL CASE 46 WHEN + 60 THEN + 90 END AS col2
----
NULL

query I rowsort
SELECT + 2 * + + 35 * 69 * - - 36 AS col0
----
173880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-578
SELECT ALL ( - 30 ) col1, CAST( - ( + - ( 19 ) ) AS SIGNED ) * 15 + + + 9
----
-30
294

skipif mysql # not compatible
query II rowsort label-578
SELECT ALL ( - 30 ) col1, CAST ( - ( + - ( 19 ) ) AS INTEGER ) * 15 + + + 9
----
-30
294

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + 20 + + 68 - 20 * + + SUM( - + 34 ) * 23 + + - 77
----
15651

skipif mysql # not compatible
query I rowsort label-579
SELECT + 20 + + 68 - 20 * + + SUM ( - + 34 ) * 23 + + - 77
----
15651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT - ( + CAST( - - 29 AS SIGNED ) ) + - - 44 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-580
SELECT - ( + CAST ( - - 29 AS INTEGER ) ) + - - 44 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT ALL - COUNT( - 78 ) DIV + COALESCE ( - 22, 75 - + 61 ) * + SUM( 31 ) + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - COUNT ( - 78 ) / + COALESCE ( - 22, 75 - + 61 ) * + SUM ( 31 ) + - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT - 72 + + 24 - MIN( ( + 11 ) ) + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-582
SELECT - 72 + + 24 - MIN ( ( + 11 ) ) + - COUNT ( * ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-583
SELECT DISTINCT + 43 - MAX( + 41 ) + 75 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + 43 - MAX ( + 41 ) + 75 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT ALL - 71 DIV ( - COUNT( 44 ) ) * - 20
----
-1420

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 71 / ( - COUNT ( 44 ) ) * - 20
----
-1420

query I rowsort
SELECT 23 + 43 * - + 18 * - 86 + + + 90 * - ( - - 13 ) + 44 AS col2
----
65461

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT 42 + 37 + 84 DIV 3 * - NULLIF ( + + MIN( DISTINCT - 60 ), 73 * - 29 * - + 69 ) + 77
----
1836

skipif mysql # not compatible
query I rowsort label-588
SELECT 42 + 37 + 84 / 3 * - NULLIF ( + + MIN ( DISTINCT - 60 ), 73 * - 29 * - + 69 ) + 77
----
1836

onlyif mysql # aggregate syntax: 
query II rowsort label-589
SELECT 13 + + + COUNT( * ) col2, 56 + 60
----
14
116

skipif mysql # not compatible
query II rowsort label-589
SELECT 13 + + + COUNT ( * ) col2, 56 + 60
----
14
116

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

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

query I rowsort
SELECT DISTINCT - 60 * + - ( 39 ) AS col0
----
2340

query II rowsort
SELECT DISTINCT - 97 + 63, 49 * + + 62 + - - 34 AS col1
----
-34
3072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-593
SELECT ALL 80 + + CAST( - + CASE 53 WHEN - + 92 THEN - 45 END AS DECIMAL ) + - ( 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL 80 + + CAST ( - + CASE 53 WHEN - + 92 THEN - 45 END AS REAL ) + - ( 14 ) AS col2
----
NULL

query II rowsort
SELECT + 38 * + 76 + - 76 AS col0, 42 + + - 20 AS col1
----
2812
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT + SUM( DISTINCT 54 ) DIV + - 60 + + 39 + - 75 * + - ( + 59 ) * - 57 - + 1
----
-252187

skipif mysql # not compatible
query I rowsort label-596
SELECT + SUM ( DISTINCT 54 ) / + - 60 + + 39 + - 75 * + - ( + 59 ) * - 57 - + 1
----
-252187

query II rowsort
SELECT DISTINCT + + 17 + 69 AS col1, 65 AS col2
----
86
65

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT ALL - 3 + 34 + MIN( ALL - 41 ) * + COUNT( * ) * - 79 AS col1
----
3270

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL - 3 + 34 + MIN ( ALL - 41 ) * + COUNT ( * ) * - 79 AS col1
----
3270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + COUNT( * ) * - 49 + + COALESCE ( + 6, - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-600
SELECT + COUNT ( * ) * - 49 + + COALESCE ( + 6, - COUNT ( * ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT + + 25 + + + ( + 26 ) + + NULLIF ( 46, - AVG ( + - 5 ) ) + + - CAST( + + 23 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + + 25 + + + ( + 26 ) + + NULLIF ( 46, - AVG ( + - 5 ) ) + + - CAST ( + + 23 AS INTEGER )
----
74

query I rowsort
SELECT ALL 83 * - 72 AS col1
----
-5976

query I rowsort
SELECT ALL - ( + 66 ) AS col0
----
-66

query II rowsort
SELECT 55 * + - 55 col0, + 75
----
-3025
75

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

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

query I rowsort
SELECT 69 * 46 AS col2
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-607
SELECT 95 AS col0, 75 + - CASE + COALESCE ( - 61, + AVG ( - 2 ) + + 23 * + COUNT( * ), 67 + - - 22 ) WHEN + ( COUNT( * ) ) + NULLIF ( + CAST( - - 62 AS SIGNED ), + 1 * - 2 * - CAST( + 6 AS SIGNED ) * - 12 - + + 82 ) + - 60 * + - 49 / - - ( - 73 ) THEN - 45 END
----
95
NULL

skipif mysql # not compatible
query II rowsort label-607
SELECT 95 AS col0, 75 + - CASE + COALESCE ( - 61, + AVG ( - 2 ) + + 23 * + COUNT ( * ), 67 + - - 22 ) WHEN + ( COUNT ( * ) ) + NULLIF ( + CAST ( - - 62 AS INTEGER ), + 1 * - 2 * - CAST ( + 6 AS INTEGER ) * - 12 - + + 82 ) + - 60 * + - 49 / - - ( - 73 ) THEN - 45 END
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT DISTINCT 73 - - - ( COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 73 - - - ( COUNT ( * ) )
----
72

query II rowsort
SELECT 82 * + ( - 50 ) * 37 AS col1, - 39 + 62 + - + 53 AS col2
----
-151700
-30

query I rowsort
SELECT DISTINCT 25 * + 7
----
175

query II rowsort
SELECT ALL 65 AS col1, 30
----
65
30

query II rowsort
SELECT DISTINCT 67, - COALESCE ( - - 62, 84 ) AS col1
----
67
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL - CASE + 89 WHEN + CAST( + 15 AS SIGNED ) + 3 THEN 32 / - + 16 WHEN + 91 * 45 + - COUNT( * ) THEN 28 * - - 66 * CAST( NULL AS SIGNED ) * + + CASE + - 73 WHEN + 82 THEN + 42 + + 17 ELSE - COUNT( * ) * - 73 END * - CAST( NULL AS SIGNED ) * 33 + 77 + - CASE + NULLIF ( + ( + - 57 ), - + 40 ) WHEN - 93 THEN NULL WHEN + 25 + COUNT( * ) THEN 34 * 26 ELSE NULL END / CAST( NULL AS SIGNED ) ELSE NULL END * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - CASE + 89 WHEN + CAST ( + 15 AS INTEGER ) + 3 THEN 32 / - + 16 WHEN + 91 * 45 + - COUNT ( * ) THEN 28 * - - 66 * CAST ( NULL AS INTEGER ) * + + CASE + - 73 WHEN + 82 THEN + 42 + + 17 ELSE - COUNT ( * ) * - 73 END * - CAST ( NULL AS INTEGER ) * 33 + 77 + - CASE + NULLIF ( + ( + - 57 ), - + 40 ) WHEN - 93 THEN NULL WHEN + 25 + COUNT ( * ) THEN 34 * 26 ELSE NULL END / CAST ( NULL AS INTEGER ) ELSE NULL END * + 4 AS col0
----
NULL

query II rowsort
SELECT ALL 73 AS col1, - 4 * + + 62 * 82 * - + 15 + - - COALESCE ( + - 10, - 75 )
----
73
305030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT 97 * + 95 * + NULLIF ( 79, CAST( - ( + COUNT( * ) ) AS SIGNED ) + 61 ) AS col0
----
727985

skipif mysql # not compatible
query I rowsort label-615
SELECT 97 * + 95 * + NULLIF ( 79, CAST ( - ( + COUNT ( * ) ) AS INTEGER ) + 61 ) AS col0
----
727985

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

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

query I rowsort
SELECT ALL 24 * - + 55 col2
----
-1320

query I rowsort
SELECT 4 - - 85 col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT 39 / + CAST( NULL AS SIGNED ) * 77
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 22 + 25 * - + 48 AS col1
----
-1222

query I rowsort
SELECT ALL + 67 + 6 - 22 * 80 AS col2
----
-1687

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

query I rowsort
SELECT ( - - 81 ) AS col1
----
81

query II rowsort
SELECT - 90 col2, + 7
----
-90
7

query I rowsort
SELECT - 1 * 35 * 34 * - 32 AS col2
----
38080

query I rowsort
SELECT + 19 * + 74 * 12 + + 36 AS col2
----
16908

query I rowsort
SELECT ALL - 15 * - 74 AS col0
----
1110

query I rowsort
SELECT - COALESCE ( - ( + 69 ), + - 2 + - - 48 ) AS col0
----
69

query I rowsort
SELECT ALL + - 49 * - ( - 85 ) + + - 26 + + 2
----
-4189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - + COUNT( * ) * + 36 + - 58
----
-94

skipif mysql # not compatible
query I rowsort label-632
SELECT - + COUNT ( * ) * + 36 + - 58
----
-94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT ALL + + 48 - + NULLIF ( 97, - COUNT( * ) + + 57 * - 6 ) col1, - 40 AS col0
----
-49
-40

skipif mysql # not compatible
query II rowsort label-634
SELECT ALL + + 48 - + NULLIF ( 97, - COUNT ( * ) + + 57 * - 6 ) col1, - 40 AS col0
----
-49
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT 82 + CASE - 8 WHEN + 91 THEN NULL WHEN - - 56 THEN NULL ELSE + + 64 * - COUNT( * ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) END * + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT 82 + CASE - 8 WHEN + 91 THEN NULL WHEN - - 56 THEN NULL ELSE + + 64 * - COUNT ( * ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) END * + - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL 91 * - MIN( DISTINCT + - ( 61 ) )
----
5551

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL 91 * - MIN ( DISTINCT + - ( 61 ) )
----
5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-637
SELECT ALL + 97 DIV + 14 AS col1, 68 + - CAST( NULL AS SIGNED ) * + 99 * - - COUNT( * )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-637
SELECT ALL + 97 / + 14 AS col1, 68 + - CAST ( NULL AS INTEGER ) * + 99 * - - COUNT ( * )
----
6
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-638
SELECT + 49 / + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) * 24 * + 62 AS col0, - 8
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-638
SELECT + 49 / + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 24 * + 62 AS col0, - 8
----
NULL
-8

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

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

query I rowsort
SELECT - CASE - 40 WHEN + ( + 9 ) THEN - AVG ( - - 58 ) END + - 24 * + 68 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + 25 * MIN( - - 37 ) AS col0
----
925

skipif mysql # not compatible
query I rowsort label-641
SELECT + 25 * MIN ( - - 37 ) AS col0
----
925

query I rowsort
SELECT - 37 + - + 66
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT - ( + 68 ) DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT - ( + 68 ) / - 97 AS col2
----
0

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

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

query I rowsort
SELECT + 30 + - - 46 * + - 18 * - 17 AS col1
----
14106

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT DISTINCT + 53 + - 20 DIV 83
----
53

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + 53 + - 20 / 83
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL CAST( + 93 AS SIGNED ) + 26
----
119

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL CAST ( + 93 AS INTEGER ) + 26
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT + 83 + + 61 * + COUNT( - + 78 )
----
144

skipif mysql # not compatible
query I rowsort label-648
SELECT + 83 + + 61 * + COUNT ( - + 78 )
----
144

query I rowsort
SELECT + 59 + - 21 - ( - 3 ) * - 14 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT ALL 71 + 92 AS col0, - CAST( NULL AS SIGNED ) * + + COALESCE ( - 24, - 47 ) AS col0
----
163
NULL

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 71 + 92 AS col0, - CAST ( NULL AS INTEGER ) * + + COALESCE ( - 24, - 47 ) AS col0
----
163
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - CASE 81 WHEN - + 80 THEN 63 ELSE - + COUNT( * ) + + 68 + + + 86 * - + 99 END
----
8447

skipif mysql # not compatible
query I rowsort label-651
SELECT - CASE 81 WHEN - + 80 THEN 63 ELSE - + COUNT ( * ) + + 68 + + + 86 * - + 99 END
----
8447

query II rowsort
SELECT + - 22 * - + 1 * + ( 21 ) col2, + 78 - 97 * + + 8 * 22
----
462
-16994

query I rowsort
SELECT + 32 + - 29
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT ALL COUNT( * ) + + 14 AS col2, + MAX( + - 62 )
----
15
-62

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL COUNT ( * ) + + 14 AS col2, + MAX ( + - 62 )
----
15
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - SUM( + + 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-655
SELECT - SUM ( + + 18 ) AS col2
----
-18

query I rowsort
SELECT - ( + 97 ) + + - 66 AS col0
----
-163

query I rowsort
SELECT ALL COALESCE ( + + 91, 66 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT DISTINCT - COUNT( * ) + 22 AS col0, 52 AS col2
----
21
52

skipif mysql # not compatible
query II rowsort label-658
SELECT DISTINCT - COUNT ( * ) + 22 AS col0, 52 AS col2
----
21
52

query I rowsort
SELECT DISTINCT + 28 - 89
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-660
SELECT - + 89 * - - CAST( 45 AS SIGNED ) * + 81 + 37 * - + COUNT( * ) AS col1
----
-324442

skipif mysql # not compatible
query I rowsort label-660
SELECT - + 89 * - - CAST ( 45 AS INTEGER ) * + 81 + 37 * - + COUNT ( * ) AS col1
----
-324442

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL + + 96 * - COUNT( DISTINCT - - 91 ) + COUNT( * ) * + - 53
----
-149

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + + 96 * - COUNT ( DISTINCT - - 91 ) + COUNT ( * ) * + - 53
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + 1 * NULLIF ( 42, ( - MAX( DISTINCT + 12 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-663
SELECT + 1 * NULLIF ( 42, ( - MAX ( DISTINCT + 12 ) ) )
----
42

query I rowsort
SELECT - 75 + + 60 + + 92 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT + - 45 * 44 * + 61 + + COUNT( * )
----
-120779

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + - 45 * 44 * + 61 + + COUNT ( * )
----
-120779

query I rowsort
SELECT - 75 * - 1 * 8 + + 86 + + ( + 92 ) AS col1
----
778

query I rowsort
SELECT ALL - 11 * + 0
----
0

query I rowsort
SELECT NULLIF ( 97, + 39 )
----
97

query I rowsort
SELECT - 67 + + 30 - + 62 * 96
----
-5989

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - NULLIF ( - 22, + 56 * - - 34 + + + 54 * 30 * + + COUNT( * ) ) * 16
----
352

skipif mysql # not compatible
query I rowsort label-670
SELECT - NULLIF ( - 22, + 56 * - - 34 + + + 54 * 30 * + + COUNT ( * ) ) * 16
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT NULLIF ( + 4, - - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-671
SELECT NULLIF ( + 4, - - COUNT ( * ) )
----
4

query I rowsort
SELECT 39 * 44 + + - 26 AS col2
----
1690

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT DISTINCT + 75, 48 DIV SUM( - ( + 62 ) ) * + 53 * + 93 AS col1
----
75
0

skipif mysql # not compatible
query II rowsort label-673
SELECT DISTINCT + 75, 48 / SUM ( - ( + 62 ) ) * + 53 * + 93 AS col1
----
75
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-674
SELECT ALL - 33 * + - 41 * + 63 * - + 89 + - 78 + - + 52 + - 69 + - 98 DIV - COUNT( * ) - - 65 * 91 AS col1, 34 AS col1
----
-7580457
34

skipif mysql # not compatible
query II rowsort label-674
SELECT ALL - 33 * + - 41 * + 63 * - + 89 + - 78 + - + 52 + - 69 + - 98 / - COUNT ( * ) - - 65 * 91 AS col1, 34 AS col1
----
-7580457
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT - 7 * CASE + 39 WHEN COUNT( * ) * - ( + CAST( - + 85 AS SIGNED ) ) THEN NULLIF ( - 26, - 45 ) ELSE + ( 85 ) END * ( NULLIF ( + 45, COUNT( + 91 ) ) ) + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT - 7 * CASE + 39 WHEN COUNT ( * ) * - ( + CAST ( - + 85 AS INTEGER ) ) THEN NULLIF ( - 26, - 45 ) ELSE + ( 85 ) END * ( NULLIF ( + 45, COUNT ( + 91 ) ) ) + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 89 * - + 78 * + 34 + 57
----
-235971

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT - 0 * - 66 + 37 * - 37 * MAX( - 37 )
----
50653

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - 0 * - 66 + 37 * - 37 * MAX ( - 37 )
----
50653

query I rowsort
SELECT ALL + 17 * 11 + - 33 + + 44 * + 42 * - 22 AS col0
----
-40502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-679
SELECT - 59 DIV + CASE - CASE + 59 WHEN + + 79 THEN + COUNT( * ) + - CASE - - 11 WHEN 20 * + MAX( + 46 ) THEN NULL WHEN + 35 THEN NULL WHEN 9 * + 41 DIV - - 4 THEN - - 21 * - 97 END + - + 61 WHEN + - 23 + - 92 THEN NULL END WHEN NULLIF ( 91, + CASE CAST( + COUNT( * ) AS SIGNED ) WHEN + - AVG ( DISTINCT + 21 ) * - + 1 + + 74 THEN NULL WHEN + - 0 THEN NULL ELSE 34 END - + 46 ) + NULLIF ( COUNT( * ), 41 ) * 76 THEN NULL ELSE - 54 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-679
SELECT - 59 / + CASE - CASE + 59 WHEN + + 79 THEN + COUNT ( * ) + - CASE - - 11 WHEN 20 * + MAX ( + 46 ) THEN NULL WHEN + 35 THEN NULL WHEN 9 * + 41 / - - 4 THEN - - 21 * - 97 END + - + 61 WHEN + - 23 + - 92 THEN NULL END WHEN NULLIF ( 91, + CASE CAST ( + COUNT ( * ) AS INTEGER ) WHEN + - AVG ( DISTINCT + 21 ) * - + 1 + + 74 THEN NULL WHEN + - 0 THEN NULL ELSE 34 END - + 46 ) + NULLIF ( COUNT ( * ), 41 ) * 76 THEN NULL ELSE - 54 END AS col0
----
1

query I rowsort
SELECT ALL 14 * + 64 + + 23 col2
----
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-681
SELECT - SUM( + 99 ) * COUNT( * ) * + 85 + 48 * - 28 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - SUM ( + 99 ) * COUNT ( * ) * + 85 + 48 * - 28 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT - CASE - 35 WHEN + ( - + 27 ) - + ( - 16 ) * - + 3 + + MAX( ALL - 58 ) THEN NULL WHEN 69 * - ( - + 62 ) * + 38 - 31 + 0 / 35 THEN + MAX( ALL 93 ) ELSE NULL END, + CASE AVG ( 99 ) WHEN 36 * + ( - COUNT( * ) ) * - - 46 + 61 - + 66 + - 93 - - + SUM( 38 ) THEN + MAX( DISTINCT - 22 ) * + 50 WHEN 1 - + 73 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-683
SELECT - CASE - 35 WHEN + ( - + 27 ) - + ( - 16 ) * - + 3 + + MAX ( ALL - 58 ) THEN NULL WHEN 69 * - ( - + 62 ) * + 38 - 31 + 0 / 35 THEN + MAX ( ALL 93 ) ELSE NULL END, + CASE AVG ( 99 ) WHEN 36 * + ( - COUNT ( * ) ) * - - 46 + 61 - + 66 + - 93 - - + SUM ( 38 ) THEN + MAX ( DISTINCT - 22 ) * + 50 WHEN 1 - + 73 THEN NULL END AS col1
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-685
SELECT ALL + 90 DIV 14 * - CAST( - 77 AS SIGNED ) * MAX( ALL - 54 ) AS col1
----
-24948

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + 90 / 14 * - CAST ( - 77 AS INTEGER ) * MAX ( ALL - 54 ) AS col1
----
-24948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT - + COALESCE ( - + 60, ( CAST( NULL AS SIGNED ) ) * - SUM( 72 ) + + 25 - CAST( - - 38 AS SIGNED ) * + 20 * + ( ( + 25 ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-686
SELECT - + COALESCE ( - + 60, ( CAST ( NULL AS INTEGER ) ) * - SUM ( 72 ) + + 25 - CAST ( - - 38 AS INTEGER ) * + 20 * + ( ( + 25 ) ) )
----
60

query I rowsort
SELECT ALL 49 - 98 - - 31
----
-18

query II rowsort
SELECT - 63 + 4 - - - NULLIF ( - 47, 6 ) AS col2, - 16
----
-12
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT + NULLIF ( 73, COUNT( * ) / - 29 + + ( - CAST( NULL AS SIGNED ) ) - - 73 ) - - 34 + - 18 * - - 10 * - 99 * 1 * - COUNT( * ) + + 77 * - - 32 + - 30 + - 49 AS col2
----
-15328

skipif mysql # not compatible
query I rowsort label-689
SELECT + NULLIF ( 73, COUNT ( * ) / - 29 + + ( - CAST ( NULL AS INTEGER ) ) - - 73 ) - - 34 + - 18 * - - 10 * - 99 * 1 * - COUNT ( * ) + + 77 * - - 32 + - 30 + - 49 AS col2
----
-15328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT + - COUNT( * ) * CAST( + 99 AS SIGNED ) + - 0 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-690
SELECT + - COUNT ( * ) * CAST ( + 99 AS INTEGER ) + - 0 AS col0
----
-99

query I rowsort
SELECT + 76 + - - 45 * + + 55 * 98 * + 85 + + 72 AS col0
----
20616898

query I rowsort
SELECT ALL - 64 - - - 80 + + - 14 AS col2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT + - MIN( DISTINCT - - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-693
SELECT + - MIN ( DISTINCT - - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-694
SELECT + - SUM( - - 96 ) DIV 10 AS col0, - 23 * COUNT( * )
----
-9
-23

skipif mysql # not compatible
query II rowsort label-694
SELECT + - SUM ( - - 96 ) / 10 AS col0, - 23 * COUNT ( * )
----
-9
-23

query I rowsort
SELECT - - ( - 76 ) * - 71 + - - 25
----
5421

query I rowsort
SELECT DISTINCT 77 * - 23 AS col1
----
-1771

query I rowsort
SELECT ALL + ( 5 ) AS col0
----
5

query I rowsort
SELECT 63 * 22 col1
----
1386

query I rowsort
SELECT DISTINCT + 25 * + + 50
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT - 36 * - 34 * + 5 * + + COUNT( * ) * + ( + 17 ) + + 78 * + - MAX( ALL - + 0 ) * - 65
----
104040

skipif mysql # not compatible
query I rowsort label-700
SELECT - 36 * - 34 * + 5 * + + COUNT ( * ) * + ( + 17 ) + + 78 * + - MAX ( ALL - + 0 ) * - 65
----
104040

onlyif mysql # aggregate syntax: 
query II rowsort label-701
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 14 ) * 96 AS col0, + 39 * + - ( - ( - 77 ) )
----
96
-3003

skipif mysql # not compatible
query II rowsort label-701
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 14 ) * 96 AS col0, + 39 * + - ( - ( - 77 ) )
----
96
-3003

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT + 15, - COUNT( * ) * + 80 - ( 74 ) AS col2
----
15
-154

skipif mysql # not compatible
query II rowsort label-702
SELECT + 15, - COUNT ( * ) * + 80 - ( 74 ) AS col2
----
15
-154

onlyif mysql # DIV for integer division: 
query II rowsort label-703
SELECT ALL - 7 + + + ( + - 25 ) DIV - + 25 + - + 67 * + 46 AS col0, COALESCE ( + + 29, + 80 ) + 48 AS col1
----
-3088
77

skipif mysql # not compatible
query II rowsort label-703
SELECT ALL - 7 + + + ( + - 25 ) / - + 25 + - + 67 * + 46 AS col0, COALESCE ( + + 29, + 80 ) + 48 AS col1
----
-3088
77

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT 13 DIV ( + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT 13 / ( + 43 )
----
0

query I rowsort
SELECT ALL 13 + + 61 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 23 * - SUM( + + 63 ) col0
----
-1449

skipif mysql # not compatible
query I rowsort label-706
SELECT 23 * - SUM ( + + 63 ) col0
----
-1449

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT COALESCE ( COUNT( * ), 99 * - + 53, + + 90 + - 21 ) * + 18 + + 40 * 27 + 40 + - MIN( - 0 ) AS col2
----
1138

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT COALESCE ( COUNT ( * ), 99 * - + 53, + + 90 + - 21 ) * + 18 + + 40 * 27 + 40 + - MIN ( - 0 ) AS col2
----
1138

query I rowsort
SELECT ALL 65 + + 66
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT 39 - - - COUNT( * ) + - 30 + - + MIN( - 43 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-709
SELECT 39 - - - COUNT ( * ) + - 30 + - + MIN ( - 43 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-710
SELECT + 80, CASE + + 7 WHEN - + 97 THEN + - 49 WHEN + COUNT( * ) + ( - 83 ) THEN NULL END AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-710
SELECT + 80, CASE + + 7 WHEN - + 97 THEN + - 49 WHEN + COUNT ( * ) + ( - 83 ) THEN NULL END AS col2
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT CAST( NULL AS SIGNED ) + + SUM( + 1 ) * - 63 - 84 + + COUNT( * ) * - COALESCE ( 73, + 47 - - 96 ) - - 7 + - NULLIF ( + COALESCE ( - 49, - AVG ( DISTINCT - 5 ) / - 16 + COUNT( * ), + ( - - COUNT( ALL + 50 ) ) ), + SUM( - 86 ) * + 47 ) * - 42 * - + 10 * - + 51 * + CAST( - 31 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT CAST ( NULL AS INTEGER ) + + SUM ( + 1 ) * - 63 - 84 + + COUNT ( * ) * - COALESCE ( 73, + 47 - - 96 ) - - 7 + - NULLIF ( + COALESCE ( - 49, - AVG ( DISTINCT - 5 ) / - 16 + COUNT ( * ), + ( - - COUNT ( ALL + 50 ) ) ), + SUM ( - 86 ) * + 47 ) * - 42 * - + 10 * - + 51 * + CAST ( - 31 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + COALESCE ( - - 29, 65 * - - 81 ) + 96 + MAX( ALL 53 ) * - - 65
----
3570

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + COALESCE ( - - 29, 65 * - - 81 ) + 96 + MAX ( ALL 53 ) * - - 65
----
3570

query I rowsort
SELECT 22 + - 43 AS col1
----
-21

query II rowsort
SELECT ALL 90 AS col1, - 21 AS col1
----
90
-21

query I rowsort
SELECT 38 + - 18
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL - COALESCE ( + 51, - COUNT( * ) * 77 )
----
-51

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - COALESCE ( + 51, - COUNT ( * ) * 77 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT 60 + + CAST( - 16 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-717
SELECT 60 + + CAST ( - 16 AS INTEGER )
----
44

query I rowsort
SELECT ALL - - 92 - - 61
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT 6 + SUM( - + 32 )
----
-26

skipif mysql # not compatible
query I rowsort label-719
SELECT 6 + SUM ( - + 32 )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-720
SELECT ALL - 28 - 56 DIV + - MAX( - + 11 )
----
-33

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - 28 - 56 / + - MAX ( - + 11 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT DISTINCT - + 79 * + - COALESCE ( + - 33, + 46 - COUNT( * ) ) AS col2
----
-2607

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT - + 79 * + - COALESCE ( + - 33, + 46 - COUNT ( * ) ) AS col2
----
-2607

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - + CASE - + 17 WHEN - + 19 THEN 44 WHEN - 63 + + - COUNT( * ) THEN NULL WHEN + 23 - + - 35 THEN - 81 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT - + CASE - + 17 WHEN - + 19 THEN 44 WHEN - 63 + + - COUNT ( * ) THEN NULL WHEN + 23 - + - 35 THEN - 81 END col1
----
NULL

query I rowsort
SELECT 98 * 24 + 89
----
2441

query II rowsort
SELECT 46, 60 AS col0
----
46
60

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

query I rowsort
SELECT COALESCE ( - 93, + 64 ) * - - COALESCE ( - + 87, + 93 * + + 26 )
----
8091

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT ( - + 25 ) + - 0 + + - MIN( DISTINCT - - NULLIF ( + 52, - 31 ) ) + - 71 * - - 44 * - 55 * + + COUNT( * ) * + 78 AS col2, 82
----
13401883
82

skipif mysql # not compatible
query II rowsort label-727
SELECT ( - + 25 ) + - 0 + + - MIN ( DISTINCT - - NULLIF ( + 52, - 31 ) ) + - 71 * - - 44 * - 55 * + + COUNT ( * ) * + 78 AS col2, 82
----
13401883
82

query II rowsort
SELECT - 26, 86 AS col1
----
-26
86

query I rowsort
SELECT + 44 + 8 + ( 68 )
----
120

query II rowsort
SELECT + 16 AS col0, 91 * - - 74
----
16
6734

query II rowsort
SELECT ALL - 98 AS col0, 71 * - 31
----
-98
-2201

query I rowsort
SELECT DISTINCT NULLIF ( + 86, - 53 ) AS col2
----
86

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

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - MIN ( ALL 73 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-734
SELECT + MAX( + 23 ) AS col1, ( - 29 ) + 6 * - 10 AS col1
----
23
-89

skipif mysql # not compatible
query II rowsort label-734
SELECT + MAX ( + 23 ) AS col1, ( - 29 ) + 6 * - 10 AS col1
----
23
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT + + 86 DIV 46 + + 26
----
27

skipif mysql # not compatible
query I rowsort label-735
SELECT + + 86 / 46 + + 26
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT 27 * + CASE - ( - - ( ( + - CASE - MAX( - 26 ) WHEN + 31 * - COUNT( DISTINCT 43 ) THEN - 94 * + 88 * + - 75 / - COUNT( * ) * + ( + 78 ) * 30 - - ( + ( + 33 ) ) * - 66 ELSE NULL END ) ) ) WHEN - - COUNT( * ) THEN 51 * 24 WHEN - 3 * NULLIF ( + - ( + ( - CASE + 58 WHEN + 17 THEN 16 WHEN 61 THEN NULL END ) ), + 80 ) + + COUNT( * ) * + 50 + + 96 * 20 THEN NULL ELSE NULL END * ( SUM( ALL + COALESCE ( + 11, + 38 * - 48 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT 27 * + CASE - ( - - ( ( + - CASE - MAX ( - 26 ) WHEN + 31 * - COUNT ( DISTINCT 43 ) THEN - 94 * + 88 * + - 75 / - COUNT ( * ) * + ( + 78 ) * 30 - - ( + ( + 33 ) ) * - 66 ELSE NULL END ) ) ) WHEN - - COUNT ( * ) THEN 51 * 24 WHEN - 3 * NULLIF ( + - ( + ( - CASE + 58 WHEN + 17 THEN 16 WHEN 61 THEN NULL END ) ), + 80 ) + + COUNT ( * ) * + 50 + + 96 * 20 THEN NULL ELSE NULL END * ( SUM ( ALL + COALESCE ( + 11, + 38 * - 48 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT 33 DIV - 18
----
-1

skipif mysql # not compatible
query I rowsort label-737
SELECT 33 / - 18
----
-1

query I rowsort
SELECT - 32 * - - 89 + - 83 col0
----
-2931

query I rowsort
SELECT 17 * + + 41
----
697

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL - MIN( - + ( 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - MIN ( - + ( 67 ) ) AS col0
----
67

query I rowsort
SELECT DISTINCT 24 + + 20 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT 42 * + COALESCE ( + + 48, - + 1 * - COUNT( * ), + 71 )
----
2016

skipif mysql # not compatible
query I rowsort label-743
SELECT 42 * + COALESCE ( + + 48, - + 1 * - COUNT ( * ), + 71 )
----
2016

query I rowsort
SELECT DISTINCT 59 + - - 56 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT + 93 * - + ( - ( - 46 ) ) * + CASE 71 WHEN - 77 THEN NULL ELSE + 90 END + SUM( + + ( 71 ) ) - 82 - NULLIF ( - 34, - 79 + - - 57 ) * CAST( NULL AS SIGNED ) + - - ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT + 93 * - + ( - ( - 46 ) ) * + CASE 71 WHEN - 77 THEN NULL ELSE + 90 END + SUM ( + + ( 71 ) ) - 82 - NULLIF ( - 34, - 79 + - - 57 ) * CAST ( NULL AS INTEGER ) + - - ( + 73 )
----
NULL

query I rowsort
SELECT 32 * 41 AS col0
----
1312

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT 13 * - + COUNT( * ) + - + 53 AS col1, + 46
----
-66
46

skipif mysql # not compatible
query II rowsort label-747
SELECT 13 * - + COUNT ( * ) + - + 53 AS col1, + 46
----
-66
46

query I rowsort
SELECT ALL 12 * - - 79
----
948

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT + MIN( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-749
SELECT + MIN ( DISTINCT + 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT + 4 * - 54 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - SUM( ALL + 45 ) * + + 63 + 53 AS col0
----
-2782

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - SUM ( ALL + 45 ) * + + 63 + 53 AS col0
----
-2782

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

skipif mysql # not compatible
query I rowsort label-752
SELECT COUNT ( DISTINCT - + 20 ) * + 50 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT - ( - 73 ), + 0 col1
----
73
0

query I rowsort
SELECT + 45 * + 74 col1
----
3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT 74 * - 77 DIV COUNT( * ) * + 5
----
-28490

skipif mysql # not compatible
query I rowsort label-755
SELECT 74 * - 77 / COUNT ( * ) * + 5
----
-28490

query I rowsort
SELECT - 67 - + 55 * - 67 AS col1
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT 23 - ( + ( - 4 ) ) + + 83 * - 33 * - COUNT( * ) * 6 AS col2
----
16461

skipif mysql # not compatible
query I rowsort label-757
SELECT 23 - ( + ( - 4 ) ) + + 83 * - 33 * - COUNT ( * ) * 6 AS col2
----
16461

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - - 76 * MIN( - + 29 ) - + - COUNT( * ) AS col0
----
-2203

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - - 76 * MIN ( - + 29 ) - + - COUNT ( * ) AS col0
----
-2203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT - ( - ( 32 ) ) + - ( + 16 ) + - 16 * ( + CAST( + 7 AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - ( - ( 32 ) ) + - ( + 16 ) + - 16 * ( + CAST ( + 7 AS INTEGER ) )
----
-96

query I rowsort
SELECT DISTINCT - + 26 * - 71
----
1846

query I rowsort
SELECT - 8 * 57 AS col2
----
-456

query I rowsort
SELECT ALL - + 9 + 39 * 35 AS col2
----
1356

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - + COUNT( * ) - + - COALESCE ( + 42, + 81 )
----
41

skipif mysql # not compatible
query I rowsort label-763
SELECT - + COUNT ( * ) - + - COALESCE ( + 42, + 81 )
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT - + 34 + CASE 46 WHEN + - 7 * + ( + 10 ) - COALESCE ( + 13, 9 * + 62 + 1 + + + 15 * - 95 - - 93 / 15, + 86 ) THEN NULL ELSE + + MIN( + + 80 ) * - COALESCE ( ( + COUNT( * ) ), + COUNT( * ) * - + 22 ) END * - 36
----
2846

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - + 34 + CASE 46 WHEN + - 7 * + ( + 10 ) - COALESCE ( + 13, 9 * + 62 + 1 + + + 15 * - 95 - - 93 / 15, + 86 ) THEN NULL ELSE + + MIN ( + + 80 ) * - COALESCE ( ( + COUNT ( * ) ), + COUNT ( * ) * - + 22 ) END * - 36
----
2846

query I rowsort
SELECT - + ( - - 28 ) + + - 82
----
-110

query I rowsort
SELECT ALL - 51 * 13 + - + 32 AS col1
----
-695

query I rowsort
SELECT ALL + 68 * - 9 + 17
----
-595

query I rowsort
SELECT NULLIF ( + 70, COALESCE ( - + 16, - 74 ) + - 48 ) col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-770
SELECT COALESCE ( 19, + 10 ) AS col1, 24 * - CAST( - COUNT( * ) AS SIGNED )
----
19
24

skipif mysql # not compatible
query II rowsort label-770
SELECT COALESCE ( 19, + 10 ) AS col1, 24 * - CAST ( - COUNT ( * ) AS INTEGER )
----
19
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-772
SELECT ALL 96 * + 0 DIV + - 48 + - COUNT( * ) * - 35 + + + ( + - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL 96 * + 0 / + - 48 + - COUNT ( * ) * - 35 + + + ( + - COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT COALESCE ( 25, 54, - SUM( ALL - + 35 ) * 96 )
----
25

skipif mysql # not compatible
query I rowsort label-773
SELECT COALESCE ( 25, 54, - SUM ( ALL - + 35 ) * 96 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + 13 + - + SUM( 45 ) * - + 9
----
418

skipif mysql # not compatible
query I rowsort label-774
SELECT + 13 + - + SUM ( 45 ) * - + 9
----
418

query I rowsort
SELECT ALL 18 * 13
----
234

query I rowsort
SELECT + 77 * - 76 AS col1
----
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL - ( - + 14 ) * + 56 + - 97 + + - COUNT( * ) AS col0
----
686

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - ( - + 14 ) * + 56 + - 97 + + - COUNT ( * ) AS col0
----
686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + MIN( DISTINCT + - NULLIF ( - 3, 42 * - 71 + + ( - 75 ) * - - 52 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-779
SELECT + MIN ( DISTINCT + - NULLIF ( - 3, 42 * - 71 + + ( - 75 ) * - - 52 ) ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT + + NULLIF ( - - COUNT( DISTINCT - - CAST( + + 72 AS SIGNED ) ), + - SUM( - - 49 ) + + MIN( ALL ( - 11 ) ) ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-780
SELECT + + NULLIF ( - - COUNT ( DISTINCT - - CAST ( + + 72 AS INTEGER ) ), + - SUM ( - - 49 ) + + MIN ( ALL ( - 11 ) ) ) * + 52
----
52

query I rowsort
SELECT + 99 * - + 81 col1
----
-8019

query I rowsort
SELECT + 42 * + ( 69 ) AS col1
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-783
SELECT + + COUNT( * ) + - 20 * - ( + - CASE - CAST( + - 49 AS SIGNED ) WHEN 92 / 69 + 63 + + 14 + + + NULLIF ( + 40, - 51 ) + + 40 THEN - + 84 * 97 + - CAST( - + 82 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT + + COUNT ( * ) + - 20 * - ( + - CASE - CAST ( + - 49 AS INTEGER ) WHEN 92 / 69 + 63 + + 14 + + + NULLIF ( + 40, - 51 ) + + 40 THEN - + 84 * 97 + - CAST ( - + 82 AS INTEGER ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL + COUNT( * ) + - 61 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + COUNT ( * ) + - 61 AS col0
----
-60

query II rowsort
SELECT + 11 AS col1, + ( 98 ) col2
----
11
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-786
SELECT - - CAST( NULL AS DECIMAL ) + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - - CAST ( NULL AS REAL ) + + 83 AS col1
----
NULL

query I rowsort
SELECT ALL + + 61 + + 59 AS col0
----
120

query I rowsort
SELECT + - 60 * - 31 * 37 * + 22 AS col2
----
1514040

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

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

query II rowsort
SELECT - 84 AS col1, + 70 col0
----
-84
70

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT MIN( DISTINCT 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT MIN ( DISTINCT 74 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT - 43 DIV + - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT - 43 / + - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL + COUNT( * ) - 38 - 74 * + 38 + - 86
----
-2935

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + COUNT ( * ) - 38 - 74 * + 38 + - 86
----
-2935

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - 60 * NULLIF ( + - COUNT( * ), + - COUNT( * ) + 90 )
----
60

skipif mysql # not compatible
query I rowsort label-794
SELECT - 60 * NULLIF ( + - COUNT ( * ), + - COUNT ( * ) + 90 )
----
60

query I rowsort
SELECT DISTINCT + 76 * + 43 col2
----
3268

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

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

query I rowsort
SELECT - 25 * 14 * - 96 AS col0
----
33600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT CAST( - 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-798
SELECT CAST ( - 33 AS INTEGER ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT - 18 + 87 + + 25 * 96 * + 81 * - CAST( + 14 AS SIGNED ) + + - 35 * + + 39 AS col1
----
-2722896

skipif mysql # not compatible
query I rowsort label-799
SELECT - 18 + 87 + + 25 * 96 * + 81 * - CAST ( + 14 AS INTEGER ) + + - 35 * + + 39 AS col1
----
-2722896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT - MAX( + 85 ) DIV - ( + + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-800
SELECT - MAX ( + 85 ) / - ( + + 61 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT - COUNT( * ) * - 38 * + 52 AS col1
----
1976

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT - COUNT ( * ) * - 38 * + 52 AS col1
----
1976

query II rowsort
SELECT - 53 - 70, COALESCE ( 66, + 76, 78 ) * - 1 col2
----
-123
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL + ( - CAST( + 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + ( - CAST ( + 18 AS INTEGER ) )
----
-18

query I rowsort
SELECT ( - ( - 18 ) )
----
18

query I rowsort
SELECT + ( - 64 ) + + 33 AS col0
----
-31

query I rowsort
SELECT + 69 + - - 66 + + + 12 * + - 23 AS col0
----
-141

query I rowsort
SELECT DISTINCT 60 * 8 + + - 0 AS col0
----
480

query II rowsort
SELECT ALL + COALESCE ( 13, - 10 * + 61 ) AS col2, 38 - 52
----
13
-14

query I rowsort
SELECT - 27 * + 18
----
-486

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + - 11 * 8 DIV - 29
----
3

skipif mysql # not compatible
query I rowsort label-811
SELECT + - 11 * 8 / - 29
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT + - MIN( + - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT + - MIN ( + - 49 ) AS col2
----
49

query I rowsort
SELECT DISTINCT 75 * + + 69
----
5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT ALL - ( + + CASE CAST( NULL AS SIGNED ) WHEN - - 41 * - 80 * 25 THEN MAX( 59 ) + - 2 + - 28 - 50 END ) + - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL - ( + + CASE CAST ( NULL AS INTEGER ) WHEN - - 41 * - 80 * 25 THEN MAX ( 59 ) + - 2 + - 28 - 50 END ) + - - 9
----
NULL

query I rowsort
SELECT + 63 * - + 72
----
-4536

query I rowsort
SELECT ALL + 45 + 90 + - 55 AS col0
----
80

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

query I rowsort
SELECT - 99 * - - 20 AS col1
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT - CASE - COUNT( * ) WHEN 21 THEN NULL ELSE 79 END col2
----
-79

skipif mysql # not compatible
query I rowsort label-819
SELECT - CASE - COUNT ( * ) WHEN 21 THEN NULL ELSE 79 END col2
----
-79

query I rowsort
SELECT DISTINCT - 62 + - 50
----
-112

query II rowsort
SELECT ALL - 4 + + 85 AS col2, + 51 + + 74 AS col1
----
81
125

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-822
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col0, - ( 23 ) + - - 62
----
NULL
39

skipif mysql # not compatible
query II rowsort label-822
SELECT - ( + CAST ( NULL AS REAL ) ) AS col0, - ( 23 ) + - - 62
----
NULL
39

query I rowsort
SELECT ALL 5 * + 96 AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT COUNT( * ) - + - 77
----
78

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT COUNT ( * ) - + - 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT COUNT( * ) * - 27 * - 19 * + 36 AS col2
----
18468

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT COUNT ( * ) * - 27 * - 19 * + 36 AS col2
----
18468

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

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

query II rowsort
SELECT 69 AS col2, 98 * 5 AS col0
----
69
490

query I rowsort
SELECT 16 + + 14 AS col0
----
30

query I rowsort
SELECT 52 - - ( - 56 )
----
-4

query II rowsort
SELECT DISTINCT 13 AS col2, + 17 AS col2
----
13
17

query I rowsort
SELECT 68 * - 38 AS col1
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + 81 * + - 28 * - CASE + COUNT( * ) WHEN + 13 / - 78 THEN 58 + ( - - 90 ) ELSE NULL END + - - ( - AVG ( ALL - - 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT + 81 * + - 28 * - CASE + COUNT ( * ) WHEN + 13 / - 78 THEN 58 + ( - - 90 ) ELSE NULL END + - - ( - AVG ( ALL - - 45 ) )
----
NULL

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

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

query I rowsort
SELECT 57 * - + 39 AS col2
----
-2223

query I rowsort
SELECT ALL + 55 * - 51
----
-2805

query I rowsort
SELECT 83 * + 88
----
7304

query I rowsort
SELECT 86 + + 6
----
92

query II rowsort
SELECT - 16 AS col1, 96 * 47 AS col1
----
-16
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + ( + 18 ) DIV + - 10
----
-1

skipif mysql # not compatible
query I rowsort label-839
SELECT + ( + 18 ) / + - 10
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT 85 + - ( COUNT( * ) ) + 56 * COUNT( * ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT 85 + - ( COUNT ( * ) ) + 56 * COUNT ( * ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL + CASE + 74 WHEN - 73 * 35 THEN - 99 + - - CASE - 96 WHEN + + 85 THEN NULL WHEN 86 + + + 14 THEN 50 * - - 47 * CASE - + COUNT( * ) WHEN + + COUNT( * ) / - - 39 / COALESCE ( + - COUNT( * ), + 85 ) THEN - 99 WHEN - 94 THEN NULL END + 30 END WHEN - - 95 THEN + 69 ELSE 86 END + + + 54 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + CASE + 74 WHEN - 73 * 35 THEN - 99 + - - CASE - 96 WHEN + + 85 THEN NULL WHEN 86 + + + 14 THEN 50 * - - 47 * CASE - + COUNT ( * ) WHEN + + COUNT ( * ) / - - 39 / COALESCE ( + - COUNT ( * ), + 85 ) THEN - 99 WHEN - 94 THEN NULL END + 30 END WHEN - - 95 THEN + 69 ELSE 86 END + + + 54 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT 29 + + + ( - - 81 ) - + - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-842
SELECT 29 + + + ( - - 81 ) - + - COUNT ( * )
----
111

query I rowsort
SELECT ALL + + 65 + + 30
----
95

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT - ( - + 92 ) DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-845
SELECT - ( - + 92 ) / - 41
----
-2

query I rowsort
SELECT ALL 86 + 76 + - + 53 + - 17 * + - 70 col0
----
1299

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT COUNT( * ) + - + 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-847
SELECT COUNT ( * ) + - + 31 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT - + ( - 53 ) * 61 - + 39 + - CASE - 48 WHEN - - 57 THEN + + 72 - - 81 ELSE NULL END - - + CAST( + 83 AS SIGNED ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT - + ( - 53 ) * 61 - + 39 + - CASE - 48 WHEN - - 57 THEN + + 72 - - 81 ELSE NULL END - - + CAST ( + 83 AS INTEGER ) * - 99
----
NULL

query I rowsort
SELECT + 13 + 83
----
96

query I rowsort
SELECT ALL + + 90 + + 2 AS col0
----
92

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

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

query I rowsort
SELECT DISTINCT + 5 - - + 43
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT ALL + CAST( 78 AS SIGNED ) * + 72 * - 69 + + + 15 + 72 AS col1
----
-387417

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + CAST ( 78 AS INTEGER ) * + 72 * - 69 + + + 15 + 72 AS col1
----
-387417

query I rowsort
SELECT - 63 + ( - 69 )
----
-132

query I rowsort
SELECT 54 * + 98 + + 77 * + 17
----
6601

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL COUNT( * ) - 50 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL COUNT ( * ) - 50 AS col0
----
-49

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-858
SELECT ( + 67 ) + + AVG ( - 89 ) + - + CAST( NULL AS DECIMAL ) / + COUNT( * ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT ( + 67 ) + + AVG ( - 89 ) + - + CAST ( NULL AS REAL ) / + COUNT ( * ) + 33
----
NULL

query II rowsort
SELECT 41 AS col2, 81
----
41
81

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-861
SELECT 61 + + 16 DIV - CAST( - 17 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-861
SELECT 61 + + 16 / - CAST ( - 17 AS INTEGER )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT 32 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-862
SELECT 32 / + 72
----
0

query II rowsort
SELECT 70, 15 AS col2
----
70
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-864
SELECT DISTINCT 71 AS col2, 62 DIV - - MIN( 88 ), + ( - + 47 ) * 73 + + 4 * + 1 + 78 - - 12 * 36 * 96 + 32 AS col2
----
71
0
38155

skipif mysql # not compatible
query III rowsort label-864
SELECT DISTINCT 71 AS col2, 62 / - - MIN ( 88 ), + ( - + 47 ) * 73 + + 4 * + 1 + 78 - - 12 * 36 * 96 + 32 AS col2
----
71
0
38155

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ( - 45 ) * 16 DIV + 31 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-865
SELECT ( - 45 ) * 16 / + 31 AS col2
----
-23

query I rowsort
SELECT ALL 53 * + 89 AS col0
----
4717

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-869
SELECT COUNT( 13 ) * + 35 + COUNT( * ) + + COUNT( * ) DIV - 31 * + MIN( - ( + 87 ) ), - 5 AS col0
----
36
-5

skipif mysql # not compatible
query II rowsort label-869
SELECT COUNT ( 13 ) * + 35 + COUNT ( * ) + + COUNT ( * ) / - 31 * + MIN ( - ( + 87 ) ), - 5 AS col0
----
36
-5

query I rowsort
SELECT CASE - - 97 WHEN + 4 THEN NULL WHEN - 14 THEN NULL ELSE + + 70 END AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT + 2 * 6 + - COUNT( - 6 )
----
11

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT + 2 * 6 + - COUNT ( - 6 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-872
SELECT ALL + 54, NULLIF ( 33, - 29 + + - CAST( NULL AS SIGNED ) ) col1
----
54
33

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL + 54, NULLIF ( 33, - 29 + + - CAST ( NULL AS INTEGER ) ) col1
----
54
33

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT + - COUNT( * ) * + 0 + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-873
SELECT + - COUNT ( * ) * + 0 + 61 AS col0
----
61

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

onlyif mysql # aggregate syntax: 
query III rowsort label-875
SELECT ALL - 65 * + 23 + ( - 58 ) - - 29 * COUNT( * ) col0, ( 38 ) - + COUNT( * ) col1, 66 AS col0
----
-1524
37
66

skipif mysql # not compatible
query III rowsort label-875
SELECT ALL - 65 * + 23 + ( - 58 ) - - 29 * COUNT ( * ) col0, ( 38 ) - + COUNT ( * ) col1, 66 AS col0
----
-1524
37
66

query I rowsort
SELECT + COALESCE ( + 12, 65 )
----
12

query I rowsort
SELECT 67 * - 97 + + CASE - 65 WHEN + 51 THEN - + COALESCE ( - - 38, + + 42 + 4 + - 55 ) * + ( - + 4 ) + + 95 * 37 * 11 END + + 17 + + NULLIF ( - 55, + 52 )
----
NULL

query I rowsort
SELECT + 20 * - 38
----
-760

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

query II rowsort
SELECT ALL + - 78, + NULLIF ( + 68, + - 66 / + 47 ) AS col2
----
-78
68

query II rowsort
SELECT DISTINCT 81 AS col2, ( + + 19 ) + - 15 col1
----
81
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT DISTINCT + CAST( - COALESCE ( - COUNT( * ), 57, - 45 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + CAST ( - COALESCE ( - COUNT ( * ), 57, - 45 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT ALL + 21 - 3 - + 84 * 58 * - - 71 - - - 49 DIV - 49 * + COUNT( * )
----
-345893

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + 21 - 3 - + 84 * 58 * - - 71 - - - 49 / - 49 * + COUNT ( * )
----
-345893

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - - COALESCE ( + 41, - - 48, - ( COUNT( * ) ) ) * + 91 col1
----
3731

skipif mysql # not compatible
query I rowsort label-884
SELECT - - COALESCE ( + 41, - - 48, - ( COUNT ( * ) ) ) * + 91 col1
----
3731

query I rowsort
SELECT DISTINCT - NULLIF ( + + 28, + 55 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-886
SELECT ALL - - 83 DIV CAST( - + 92 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - - 83 / CAST ( - + 92 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - 8 + - ( 24 ) + - 64 + + + 3 * - ( - - SUM( + - 12 ) ) DIV - 58 * + 34 * + 26 * + + 81 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-887
SELECT - 8 + - ( 24 ) + - 64 + + + 3 * - ( - - SUM ( + - 12 ) ) / - 58 * + 34 * + 26 * + + 81 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT - MIN( + - 31 ) AS col2, 64
----
31
64

skipif mysql # not compatible
query II rowsort label-888
SELECT - MIN ( + - 31 ) AS col2, 64
----
31
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT - 25 * - + CAST( + ( 64 ) AS SIGNED ) AS col2
----
1600

skipif mysql # not compatible
query I rowsort label-889
SELECT - 25 * - + CAST ( + ( 64 ) AS INTEGER ) AS col2
----
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT - SUM( DISTINCT + + 38 ), 46 AS col0
----
-38
46

skipif mysql # not compatible
query II rowsort label-890
SELECT - SUM ( DISTINCT + + 38 ), 46 AS col0
----
-38
46

query II rowsort
SELECT DISTINCT - 72 * - - 92, + 69 AS col0
----
-6624
69

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL COALESCE ( + MAX( DISTINCT - 50 ), + 9 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL COALESCE ( + MAX ( DISTINCT - 50 ), + 9 ) AS col2
----
-50

query II rowsort
SELECT ALL 48 + - 46 AS col0, 62
----
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - SUM( + 73 ) - - 81 * - 28 AS col2
----
-2341

skipif mysql # not compatible
query I rowsort label-894
SELECT - SUM ( + 73 ) - - 81 * - 28 AS col2
----
-2341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-895
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 6 + MIN( ALL + 66 ) * ( + 26 ) * 24 AS col0, 32 * - - ( 68 )
----
NULL
2176

skipif mysql # not compatible
query II rowsort label-895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 6 + MIN ( ALL + 66 ) * ( + 26 ) * 24 AS col0, 32 * - - ( 68 )
----
NULL
2176

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT ALL - 55 * - COUNT( * ), + 0 - - 80 AS col1
----
55
80

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL - 55 * - COUNT ( * ), + 0 - - 80 AS col1
----
55
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-897
SELECT ALL + 0 + SUM( CAST( NULL AS SIGNED ) ) + COUNT( * ) + 7 * 55 * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + 0 + SUM ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + 7 * 55 * 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-898
SELECT - COUNT( * ) + COUNT( * ) * 85 * + 84 + 4 AS col0, COUNT( * ) + - CASE + 91 WHEN + 10 * - 2 + 50 THEN NULL WHEN - 51 / + COUNT( * ) + + 90 + + 87 + + + 18 * CAST( NULL AS DECIMAL ) THEN - CASE - COUNT( * ) WHEN 61 + - 7 THEN NULL ELSE + + 16 + - - ( NULLIF ( + 66, - 34 ) ) * + - 17 END END + + 34 * - 33 * + 91
----
7143
NULL

skipif mysql # not compatible
query II rowsort label-898
SELECT - COUNT ( * ) + COUNT ( * ) * 85 * + 84 + 4 AS col0, COUNT ( * ) + - CASE + 91 WHEN + 10 * - 2 + 50 THEN NULL WHEN - 51 / + COUNT ( * ) + + 90 + + 87 + + + 18 * CAST ( NULL AS REAL ) THEN - CASE - COUNT ( * ) WHEN 61 + - 7 THEN NULL ELSE + + 16 + - - ( NULLIF ( + 66, - 34 ) ) * + - 17 END END + + 34 * - 33 * + 91
----
7143
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - 94 + - - ( 16 ) + - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-899
SELECT - 94 + - - ( 16 ) + - COUNT ( * ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-900
SELECT + 0 - 57 * + + 53 + + + 75 - + 44 DIV CAST( - 22 AS SIGNED ) * + + 54 * + 35
----
834

skipif mysql # not compatible
query I rowsort label-900
SELECT + 0 - 57 * + + 53 + + + 75 - + 44 / CAST ( - 22 AS INTEGER ) * + + 54 * + 35
----
834

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

skipif mysql # not compatible
query I rowsort label-901
SELECT + COUNT ( * ) / - + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-902
SELECT + CAST( + 74 AS SIGNED ) - + 38
----
36

skipif mysql # not compatible
query I rowsort label-902
SELECT + CAST ( + 74 AS INTEGER ) - + 38
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT DISTINCT 72 DIV COUNT( ALL + 63 ) * - + 94 + - COUNT( * ) col2
----
-6769

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT 72 / COUNT ( ALL + 63 ) * - + 94 + - COUNT ( * ) col2
----
-6769

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT ALL - 28 DIV 17
----
-1

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - 28 / 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + - 26 * CASE + + 76 WHEN + + ( COUNT( * ) ) + + COUNT( * ) THEN + 7 + - 42 - + + 17 END + - + COUNT( * ) * + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT + - 26 * CASE + + 76 WHEN + + ( COUNT ( * ) ) + + COUNT ( * ) THEN + 7 + - 42 - + + 17 END + - + COUNT ( * ) * + 21 AS col2
----
NULL

query I rowsort
SELECT + + 63 * 32 * 30 AS col1
----
60480

query I rowsort
SELECT ALL + 57 * 31 AS col1
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - MIN( + - 91 ) + 32
----
123

skipif mysql # not compatible
query I rowsort label-909
SELECT - MIN ( + - 91 ) + 32
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT CAST( + + 28 AS SIGNED ) * - 52 + - 14 AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-910
SELECT CAST ( + + 28 AS INTEGER ) * - 52 + - 14 AS col2
----
-1470

query I rowsort
SELECT + - 46 * - - 63 - - ( - 77 )
----
-2975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT - 14 * - 50 / + 93 + - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - 14 * - 50 / + 93 + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - ( - 21 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT + - 36 + - CAST( - 88 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-914
SELECT + - 36 + - CAST ( - 88 AS INTEGER )
----
52

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

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

query I rowsort
SELECT + 98 + 13
----
111

query I rowsort
SELECT - + 45 * 36 * 98 - - ( + 68 ) * + 24 + + 9 col0
----
-157119

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT + 21 DIV - ( + - 81 ) * 45
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT + 21 / - ( + - 81 ) * 45
----
0

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

skipif mysql # not compatible
query I rowsort label-921
SELECT - ( - 20 ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 44 * - 96 + 19, 46 AS col2
----
-4205
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT - CAST( 41 AS SIGNED ) * + 75 + + + 47 AS col2
----
-3028

skipif mysql # not compatible
query I rowsort label-924
SELECT - CAST ( 41 AS INTEGER ) * + 75 + + + 47 AS col2
----
-3028

query I rowsort
SELECT ALL 43 * + 37 AS col1
----
1591

query I rowsort
SELECT - 54 + + 89 + + 14
----
49

query I rowsort
SELECT DISTINCT 78 + + 51 col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL + COUNT( * ) + 73 + - 35 + + MAX( + 56 )
----
95

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + COUNT ( * ) + 73 + - 35 + + MAX ( + 56 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT - 7 * - 54 * - 12 DIV - COUNT( DISTINCT + + 52 )
----
4536

skipif mysql # not compatible
query I rowsort label-929
SELECT - 7 * - 54 * - 12 / - COUNT ( DISTINCT + + 52 )
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT ALL - 68 + 33 DIV MIN( - 7 ) * 86 AS col2
----
-412

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - 68 + 33 / MIN ( - 7 ) * 86 AS col2
----
-412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT DISTINCT + 14 + 19 * CASE - - COUNT( * ) WHEN COUNT( * ) THEN + COALESCE ( - - ( 11 ), - COUNT( * ), 3 ) * + - CAST( NULL AS SIGNED ) + + 88 + CASE + + 31 WHEN - 22 THEN NULL WHEN + 12 THEN - COUNT( * ) END END * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT + 14 + 19 * CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + COALESCE ( - - ( 11 ), - COUNT ( * ), 3 ) * + - CAST ( NULL AS INTEGER ) + + 88 + CASE + + 31 WHEN - 22 THEN NULL WHEN + 12 THEN - COUNT ( * ) END END * + 83
----
NULL

query I rowsort
SELECT - 36 + 52 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - ( + 42 ) + 39 + - + COUNT( * ) * ( - 53 )
----
50

skipif mysql # not compatible
query I rowsort label-933
SELECT - ( + 42 ) + 39 + - + COUNT ( * ) * ( - 53 )
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT - 77 + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-935
SELECT - 77 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL - 23 * - - CASE - - 65 WHEN 88 + + - 96 THEN 89 WHEN 65 + - - COUNT( * ) THEN NULL WHEN - - 98 / 99 * 48 / - + 39 * 65 + - 41 / 6 + - - 32 + - + 50 THEN - COUNT( * ) * - 82 / 3 + - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - 23 * - - CASE - - 65 WHEN 88 + + - 96 THEN 89 WHEN 65 + - - COUNT ( * ) THEN NULL WHEN - - 98 / 99 * 48 / - + 39 * 65 + - 41 / 6 + - - 32 + - + 50 THEN - COUNT ( * ) * - 82 / 3 + - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT DISTINCT - 42 * + 45 * + 91 * ( - 72 ) * 38 AS col1, + 32 + - 80 + + COUNT( * ) + 70 AS col2
----
470564640
23

skipif mysql # not compatible
query II rowsort label-937
SELECT DISTINCT - 42 * + 45 * + 91 * ( - 72 ) * 38 AS col1, + 32 + - 80 + + COUNT ( * ) + 70 AS col2
----
470564640
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT 86 * + ( - 67 ) AS col0, - 52 + - - 68 DIV 78 DIV + 14 + 17 - + - COUNT( DISTINCT 33 )
----
-5762
-34

skipif mysql # not compatible
query II rowsort label-938
SELECT 86 * + ( - 67 ) AS col0, - 52 + - - 68 / 78 / + 14 + 17 - + - COUNT ( DISTINCT 33 )
----
-5762
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-939
SELECT ALL - 24 * 69 * + ( - 47 ) * - 66 + COUNT( * ) + - 47 + - - 39 DIV + 93 * 9 * + 10 * 87 * - 64, + 69 AS col1
----
-5136958
69

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL - 24 * 69 * + ( - 47 ) * - 66 + COUNT ( * ) + - 47 + - - 39 / + 93 * 9 * + 10 * 87 * - 64, + 69 AS col1
----
-5136958
69

query I rowsort
SELECT ALL + - 96 - ( - 97 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - 30, MAX( DISTINCT - 50 ) AS col2
----
-30
-50

skipif mysql # not compatible
query II rowsort label-941
SELECT - 30, MAX ( DISTINCT - 50 ) AS col2
----
-30
-50

query II rowsort
SELECT + 57 - COALESCE ( 52, - 87 - - 25 ) + + 12 AS col1, 75 + + 91
----
17
166

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT 73 * + 98 * - 62 AS col0, COUNT( * )
----
-443548
1

skipif mysql # not compatible
query II rowsort label-943
SELECT 73 * + 98 * - 62 AS col0, COUNT ( * )
----
-443548
1

query II rowsort
SELECT - 67 * + 86 * 88 + + 74, 21 AS col2
----
-506982
21

query II rowsort
SELECT ALL - 63, 17 AS col0
----
-63
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT 26 DIV - + SUM( DISTINCT + 44 ) + - - 7
----
7

skipif mysql # not compatible
query I rowsort label-946
SELECT 26 / - + SUM ( DISTINCT + 44 ) + - - 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT COUNT( ALL - - ( - 88 ) ) * - - 23 col0
----
23

skipif mysql # not compatible
query I rowsort label-947
SELECT COUNT ( ALL - - ( - 88 ) ) * - - 23 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - - COUNT( DISTINCT 49 ) * 64 * - + 68 * - 95 + + 12 * + 70 AS col1
----
414280

skipif mysql # not compatible
query I rowsort label-948
SELECT - - COUNT ( DISTINCT 49 ) * 64 * - + 68 * - 95 + + 12 * + 70 AS col1
----
414280

query I rowsort
SELECT DISTINCT + 34 - + 43 AS col0
----
-9

query I rowsort
SELECT ALL - 96 * - 37
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT ALL + 85 * - + CASE 48 WHEN + 1 THEN + - 90 END + + MIN( DISTINCT - ( + + 4 ) ) + - + 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL + 85 * - + CASE 48 WHEN + 1 THEN + - 90 END + + MIN ( DISTINCT - ( + + 4 ) ) + - + 10 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT 22 * ( - COUNT( * ) ) * 55 * + SUM( 42 ) * - - COUNT( * )
----
-50820

skipif mysql # not compatible
query I rowsort label-952
SELECT 22 * ( - COUNT ( * ) ) * 55 * + SUM ( 42 ) * - - COUNT ( * )
----
-50820

query I rowsort
SELECT DISTINCT + 52 * + 98 * + 39
----
198744

query II rowsort
SELECT + + 84 * - - 49 + + 83 AS col1, - 32
----
4199
-32

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-956
SELECT + CASE - 50 WHEN 43 * + 58 THEN NULL ELSE + 70 - + 58 END * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT + CASE - 50 WHEN 43 * + 58 THEN NULL ELSE + 70 - + 58 END * + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT CASE 29 WHEN + + 29 + + 45 - - CASE - 47 WHEN + 26 THEN - MIN( DISTINCT - - 83 ) WHEN 79 + 95 THEN NULL END THEN - + COUNT( * ) END + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT CASE 29 WHEN + + 29 + + 45 - - CASE - 47 WHEN + 26 THEN - MIN ( DISTINCT - - 83 ) WHEN 79 + 95 THEN NULL END THEN - + COUNT ( * ) END + 15 AS col1
----
NULL

query I rowsort
SELECT ALL 37 + - 5
----
32

query I rowsort
SELECT DISTINCT 72 + ( 70 ) + + 11 / - 87 + CASE 9 WHEN - 39 * 66 THEN 78 WHEN 63 * - + 85 * + - 88 * + 47 / 15 + - 59 + + 95 + 5 THEN NULL END / - + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL 30 * 12 * + MAX( ALL 21 ) * - COUNT( * ) * + 71
----
-536760

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL 30 * 12 * + MAX ( ALL 21 ) * - COUNT ( * ) * + 71
----
-536760

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

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL 94 * - ( - + COUNT ( * ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL - 37 + - COUNT( * ) - + - 9
----
-29

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - 37 + - COUNT ( * ) - + - 9
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT 76 - - 56 + - 35 * - COUNT( * ) AS col1
----
167

skipif mysql # not compatible
query I rowsort label-964
SELECT 76 - - 56 + - 35 * - COUNT ( * ) AS col1
----
167

query I rowsort
SELECT DISTINCT 29 * 16 AS col0
----
464

query I rowsort
SELECT 92 * - 74 * - 33 AS col2
----
224664

query I rowsort
SELECT 95 + - 5 + - 80 AS col1
----
10

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

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

query I rowsort
SELECT 98 + + 66 + 77 + - - 96 * + 5 * 44 * 67 col2
----
1415281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT 42 DIV MAX( DISTINCT 36 )
----
1

skipif mysql # not compatible
query I rowsort label-970
SELECT 42 / MAX ( DISTINCT 36 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-971
SELECT ALL + ( + + CASE + 9 WHEN 79 * SUM( ALL - 92 ) * 94 THEN COUNT( * ) / - COUNT( * ) WHEN - 6 / - 28 + CASE - - CASE - + 63 WHEN - COUNT( * ) THEN NULL ELSE 1 END WHEN + + 42 + - - 58 * + 29 / - + 19 + 69 * 77 + - ( COUNT( - CAST( NULL AS SIGNED ) ) ) + CAST( NULL AS SIGNED ) * - 14 THEN NULL WHEN - - COUNT( * ) THEN - 50 + + + 94 + + CAST( NULL AS SIGNED ) * + 19 WHEN - COALESCE ( 48, - 32 + - ( + 10 ) ) / 55 - - 80 * 40 THEN NULL END THEN NULL END ) / 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + ( + + CASE + 9 WHEN 79 * SUM ( ALL - 92 ) * 94 THEN COUNT ( * ) / - COUNT ( * ) WHEN - 6 / - 28 + CASE - - CASE - + 63 WHEN - COUNT ( * ) THEN NULL ELSE 1 END WHEN + + 42 + - - 58 * + 29 / - + 19 + 69 * 77 + - ( COUNT ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) * - 14 THEN NULL WHEN - - COUNT ( * ) THEN - 50 + + + 94 + + CAST ( NULL AS INTEGER ) * + 19 WHEN - COALESCE ( 48, - 32 + - ( + 10 ) ) / 55 - - 80 * 40 THEN NULL END THEN NULL END ) / 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT 29 * - ( - MIN( - + 8 ) )
----
-232

skipif mysql # not compatible
query I rowsort label-972
SELECT 29 * - ( - MIN ( - + 8 ) )
----
-232

query I rowsort
SELECT - 55 + + ( 72 ) * - 72 + - 41 AS col2
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT MAX( DISTINCT 3 ) - - - 33 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-974
SELECT MAX ( DISTINCT 3 ) - - - 33 AS col0
----
-30

query I rowsort
SELECT + ( + 91 ) * 33 AS col1
----
3003

query I rowsort
SELECT ALL + - 81 * + 18 AS col0
----
-1458

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT - + 95 * - COUNT( * ) + - 58 + - + 15 AS col1, - 29 AS col2
----
22
-29

skipif mysql # not compatible
query II rowsort label-977
SELECT - + 95 * - COUNT ( * ) + - 58 + - + 15 AS col1, - 29 AS col2
----
22
-29

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

query I rowsort
SELECT DISTINCT - + NULLIF ( + 42, - ( 48 ) / AVG ( 17 ) + - - 46 ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-980
SELECT COUNT( DISTINCT + 58 ) DIV - SUM( 74 ) AS col0, 56 * + COUNT( * ) - - CASE + MIN( ALL + 3 ) WHEN + 56 * - CAST( NULL AS SIGNED ) THEN + 23 + COUNT( * ) WHEN - MAX( 79 ) THEN 97 * - 57 + + COUNT( * ) + + 86 + + 67 * - - 39 * 90 DIV + 68 + + COUNT( * ) ELSE 43 + + ( 52 ) END
----
0
151

skipif mysql # not compatible
query II rowsort label-980
SELECT COUNT ( DISTINCT + 58 ) / - SUM ( 74 ) AS col0, 56 * + COUNT ( * ) - - CASE + MIN ( ALL + 3 ) WHEN + 56 * - CAST ( NULL AS INTEGER ) THEN + 23 + COUNT ( * ) WHEN - MAX ( 79 ) THEN 97 * - 57 + + COUNT ( * ) + + 86 + + 67 * - - 39 * 90 / + 68 + + COUNT ( * ) ELSE 43 + + ( 52 ) END
----
0
151

query I rowsort
SELECT ALL + + 64 + ( ( - - 83 ) ) * - - 24 AS col2
----
2056

query I rowsort
SELECT - 55 * + 13 + 92 AS col1
----
-623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-983
SELECT DISTINCT - - SUM( - - CAST( NULL AS SIGNED ) ), + ( + + 62 ) * - 52 AS col1
----
NULL
-3224

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT - - SUM ( - - CAST ( NULL AS INTEGER ) ), + ( + + 62 ) * - 52 AS col1
----
NULL
-3224

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT 93 DIV - - 96 + - - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-984
SELECT 93 / - - 96 + - - 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL - COALESCE ( + 72, ( + 68 ), COUNT( * ) * + 91 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - COALESCE ( + 72, ( + 68 ), COUNT ( * ) * + 91 ) AS col0
----
-72

query I rowsort
SELECT DISTINCT - 86 + - 73 * 95 * - 62 col0
----
429884

query I rowsort
SELECT 4 * + 97 + + ( - 57 ) + + 41 * - 74
----
-2703

query I rowsort
SELECT DISTINCT + 13 + - 69 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-989
SELECT 41 + - - 73 - 11 + - 47 + CASE WHEN + + 30 IS NOT NULL AND NOT + CAST( + 33 AS SIGNED ) DIV 32 * + 57 - COUNT( * ) >= CASE + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN - - COALESCE ( - 46, + + MIN( - 61 ) * - 54, + 96 ) + 67 + SUM( DISTINCT - 74 ) + - ( 1 ) THEN NULL WHEN - - 96 THEN 76 * 73 ELSE NULL END THEN NULL WHEN CASE + 10 WHEN + 46 + - + CASE + - 41 WHEN - + 60 THEN - 94 END THEN NULL ELSE - ( 9 ) END DIV 29 + 63 IS NOT NULL THEN + 65 WHEN NOT 69 IS NULL THEN + 91 * MAX( DISTINCT - 2 ) + - 27 DIV 28 WHEN 90 - - 1 NOT BETWEEN NULL AND - 83 + 78 * + 73 THEN 29 DIV 38 END + 36
----
157

skipif mysql # not compatible
query I rowsort label-989
SELECT 41 + - - 73 - 11 + - 47 + CASE WHEN + + 30 IS NOT NULL AND NOT + CAST ( + 33 AS INTEGER ) / 32 * + 57 - COUNT ( * ) >= CASE + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) WHEN - - COALESCE ( - 46, + + MIN ( - 61 ) * - 54, + 96 ) + 67 + SUM ( DISTINCT - 74 ) + - ( 1 ) THEN NULL WHEN - - 96 THEN 76 * 73 ELSE NULL END THEN NULL WHEN CASE + 10 WHEN + 46 + - + CASE + - 41 WHEN - + 60 THEN - 94 END THEN NULL ELSE - ( 9 ) END / 29 + 63 IS NOT NULL THEN + 65 WHEN NOT 69 IS NULL THEN + 91 * MAX ( DISTINCT - 2 ) + - 27 / 28 WHEN 90 - - 1 NOT BETWEEN NULL AND - 83 + 78 * + 73 THEN 29 / 38 END + 36
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT 32 * - CASE - 63 WHEN - 76 THEN + + ( 44 ) WHEN CASE 44 WHEN - COUNT( * ) * 35 * COALESCE ( COUNT( * ), + 54 * - 90, - - MAX( DISTINCT 91 ) ) THEN NULL WHEN - COUNT( * ) THEN - 38 * + 78 ELSE 0 * + + 95 - - - NULLIF ( - 64, - 10 ) END + + AVG ( ( 40 ) ) THEN + + 49 ELSE NULL END * + 71 + COUNT( * ) + + CAST( NULL AS SIGNED ) - - ( - 52 ) + ( + 72 ) + + COALESCE ( - - 35, 66 + - 79 + + 62, 15 ) * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT 32 * - CASE - 63 WHEN - 76 THEN + + ( 44 ) WHEN CASE 44 WHEN - COUNT ( * ) * 35 * COALESCE ( COUNT ( * ), + 54 * - 90, - - MAX ( DISTINCT 91 ) ) THEN NULL WHEN - COUNT ( * ) THEN - 38 * + 78 ELSE 0 * + + 95 - - - NULLIF ( - 64, - 10 ) END + + AVG ( ( 40 ) ) THEN + + 49 ELSE NULL END * + 71 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - ( - 52 ) + ( + 72 ) + + COALESCE ( - - 35, 66 + - 79 + + 62, 15 ) * + 32 AS col0
----
NULL

query I rowsort
SELECT ALL 31 * + + 3 AS col0
----
93

query I rowsort
SELECT ALL 89 * - 8 AS col0
----
-712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-993
SELECT DISTINCT 48 + + - ( + 5 ) col1, + COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) - - - COALESCE ( 11, 42 + - - 94 * - 23, - + 88 ) * - + 95 AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-993
SELECT DISTINCT 48 + + - ( + 5 ) col1, + COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) - - - COALESCE ( 11, 42 + - - 94 * - 23, - + 88 ) * - + 95 AS col0
----
43
NULL

query I rowsort
SELECT 96 + - - 67
----
163

query I rowsort
SELECT + 89 + - 68
----
21

query I rowsort
SELECT ALL + 42 * + - 19 AS col2
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + 41 + + ( - 6 ) + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-997
SELECT + 41 + + ( - 6 ) + COUNT ( * ) AS col1
----
36

query I rowsort
SELECT ALL 47 - 4 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-999
SELECT 77, + CAST( - 64 AS SIGNED ) AS col1, - 92 * + CAST( NULL AS SIGNED ) AS col1
----
77
-64
NULL

skipif mysql # not compatible
query III rowsort label-999
SELECT 77, + CAST ( - 64 AS INTEGER ) AS col1, - 92 * + CAST ( NULL AS INTEGER ) AS col1
----
77
-64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT + CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT 47 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT + CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT 47 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT + 11 + + 79 * + SUM( ALL - 99 )
----
-7810

skipif mysql # not compatible
query I rowsort label-1001
SELECT + 11 + + 79 * + SUM ( ALL - 99 )
----
-7810

query I rowsort
SELECT - - 0 + - + 1 AS col0
----
-1

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

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

query I rowsort
SELECT DISTINCT 88 * + 44 AS col1
----
3872

onlyif mysql # DIV for integer division: 
query II rowsort label-1005
SELECT DISTINCT 27 DIV + ( 16 ) AS col2, + 62
----
1
62

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT 27 / + ( 16 ) AS col2, + 62
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - 51 * + 76 * + - 78 * COUNT( * )
----
302328

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - 51 * + 76 * + - 78 * COUNT ( * )
----
302328

query I rowsort
SELECT ALL + 18 * - 97 AS col1
----
-1746

query I rowsort
SELECT + 42 - - 82 + 91 * + 14 AS col1
----
1398

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT - + 74 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT - + 74 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT + + 63 * 28 * - - COUNT( DISTINCT - 41 ) AS col2
----
1764

skipif mysql # not compatible
query I rowsort label-1010
SELECT + + 63 * 28 * - - COUNT ( DISTINCT - 41 ) AS col2
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1011
SELECT 57 * ( - 98 ) + + SUM( DISTINCT 50 ) DIV CASE WHEN - 10 <> + 99 * - + COUNT( * ) * + 37 THEN 16 - + 31 END AS col2, + 10 AS col1
----
-5589
10

skipif mysql # not compatible
query II rowsort label-1011
SELECT 57 * ( - 98 ) + + SUM ( DISTINCT 50 ) / CASE WHEN - 10 <> + 99 * - + COUNT ( * ) * + 37 THEN 16 - + 31 END AS col2, + 10 AS col1
----
-5589
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT + COUNT( * ) * - + 17 + - 8 - - + COUNT( ALL ( + + 29 ) ) * - CAST( NULL AS SIGNED ) + + 74 + 29 * COALESCE ( - 30, + - 7 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT + COUNT ( * ) * - + 17 + - 8 - - + COUNT ( ALL ( + + 29 ) ) * - CAST ( NULL AS INTEGER ) + + 74 + 29 * COALESCE ( - 30, + - 7 + COUNT ( * ) )
----
NULL

query II rowsort
SELECT ( + ( + 13 ) ), 26 AS col1
----
13
26

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

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

query II rowsort
SELECT 33, 48 + + + 48 + 8 + - 56 AS col1
----
33
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1016
SELECT DISTINCT + 13 AS col2, SUM( ALL - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) * - 56 + - - 2 + CAST( + 24 AS SIGNED ) + - + 40 * + ( + - 75 ) * + - ( - 73 )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1016
SELECT DISTINCT + 13 AS col2, SUM ( ALL - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) * - 56 + - - 2 + CAST ( + 24 AS INTEGER ) + - + 40 * + ( + - 75 ) * + - ( - 73 )
----
13
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1017
SELECT DISTINCT - + 42 * + + COUNT( * ) + + 77 col2, + 15 AS col0
----
35
15

skipif mysql # not compatible
query II rowsort label-1017
SELECT DISTINCT - + 42 * + + COUNT ( * ) + + 77 col2, + 15 AS col0
----
35
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT 63 DIV - COALESCE ( 86, COUNT( * ) * + - 70 * - 75 + 53 ) - - - ( - 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1018
SELECT 63 / - COALESCE ( 86, COUNT ( * ) * + - 70 * - 75 + 53 ) - - - ( - 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT - - 43 * - 25 + COUNT( * ) * + 82 AS col1
----
-993

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT - - 43 * - 25 + COUNT ( * ) * + 82 AS col1
----
-993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1020
SELECT ALL + - 77 * - CAST( 26 AS SIGNED ) + MAX( DISTINCT + 35 ) + + 42, 38 AS col2
----
2079
38

skipif mysql # not compatible
query II rowsort label-1020
SELECT ALL + - 77 * - CAST ( 26 AS INTEGER ) + MAX ( DISTINCT + 35 ) + + 42, 38 AS col2
----
2079
38

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

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

query I rowsort
SELECT COALESCE ( - 81, - 20 - + 13 - + 61 * + + 21 )
----
-81

query I rowsort
SELECT DISTINCT + 27 * 81
----
2187

onlyif mysql # aggregate syntax: 
query III rowsort label-1024
SELECT ALL + COUNT( * ), 6 * + + ( - 2 ) AS col0, + + COUNT( * )
----
1
-12
1

skipif mysql # not compatible
query III rowsort label-1024
SELECT ALL + COUNT ( * ), 6 * + + ( - 2 ) AS col0, + + COUNT ( * )
----
1
-12
1

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

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

query I rowsort
SELECT - 84 * 91
----
-7644

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT - 1 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 1 / 58
----
0

query I rowsort
SELECT - 13 * - 56
----
728

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT COALESCE ( + 26, + CAST ( NULL AS INTEGER ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT + COUNT( DISTINCT - + 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT + COUNT ( DISTINCT - + 99 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT COALESCE ( - + 24, 78 + - 60 - + + 14, - - 70 * - NULLIF ( - 26, + 39 * - 89 * + 31 ) + - 77 + - 7 + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-1032
SELECT COALESCE ( - + 24, 78 + - 60 - + + 14, - - 70 * - NULLIF ( - 26, + 39 * - 89 * + 31 ) + - 77 + - 7 + COUNT ( * ) )
----
-24

query I rowsort
SELECT - 48 * + ( + + ( + + 1 ) ) AS col1
----
-48

query I rowsort
SELECT ALL 77 * + 99
----
7623

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT DISTINCT - 83 DIV 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - 83 / 36 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT CASE + ( + COUNT( * ) ) WHEN + - 39 THEN - 38 END * 43 / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT CASE + ( + COUNT ( * ) ) WHEN + - 39 THEN - 38 END * 43 / + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT + 35 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-1037
SELECT + 35 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL - 65 * + MAX( ALL + + 12 ) AS col2
----
-780

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - 65 * + MAX ( ALL + + 12 ) AS col2
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT - ( CAST( NULL AS SIGNED ) ) + - NULLIF ( 63, + 26 + - 29 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT - ( CAST ( NULL AS INTEGER ) ) + - NULLIF ( 63, + 26 + - 29 ) col2
----
NULL

query II rowsort
SELECT - 82 AS col0, + 56
----
-82
56

query I rowsort
SELECT - ( ( 74 ) )
----
-74

query I rowsort
SELECT - ( 96 ) AS col2
----
-96

query I rowsort
SELECT ALL + - 72 * 75 - - - 41 AS col1
----
-5441

query I rowsort
SELECT DISTINCT + - 47 * - 64 - - 94
----
3102

query II rowsort
SELECT ALL - 92 AS col2, 94
----
-92
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT - COUNT( * ) + - + MAX( DISTINCT - + 84 ) + - MIN( ALL - 95 ) * + 26 + - 28 AS col1
----
2525

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT - COUNT ( * ) + - + MAX ( DISTINCT - + 84 ) + - MIN ( ALL - 95 ) * + 26 + - 28 AS col1
----
2525

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

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

query I rowsort
SELECT + + ( 30 ) * - 5
----
-150

query I rowsort
SELECT - - 8 + + 22 + - 94 AS col2
----
-64

query II rowsort
SELECT 11 AS col2, + 33 col1
----
11
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT + + 34 + + + CASE + 36 WHEN + COUNT( * ) * 23 * + 28 + + 36 + - 12 - + + 80 / + 80 THEN 56 ELSE NULL END, + 10 * + - COUNT( * ) * - - 70 + + 84 AS col0
----
NULL
-616

skipif mysql # not compatible
query II rowsort label-1051
SELECT + + 34 + + + CASE + 36 WHEN + COUNT ( * ) * 23 * + 28 + + 36 + - 12 - + + 80 / + 80 THEN 56 ELSE NULL END, + 10 * + - COUNT ( * ) * - - 70 + + 84 AS col0
----
NULL
-616

query I rowsort
SELECT + + 28 - - 14
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT + 49 DIV + 46 - - + 23 + + 5
----
29

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 49 / + 46 - - + 23 + + 5
----
29

query I rowsort
SELECT + 18 * - 60 AS col0
----
-1080

query I rowsort
SELECT DISTINCT 88 + - 16
----
72

query II rowsort
SELECT - - 7 AS col2, 25
----
7
25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1057
SELECT - - 51, - 17 * ( - CAST( NULL AS DECIMAL ) ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-1057
SELECT - - 51, - 17 * ( - CAST ( NULL AS REAL ) ) AS col2
----
51
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1058
SELECT ALL 6 + + CAST( NULL AS DECIMAL ) AS col2, 83 * - - 41 - + 17 + + + 95
----
NULL
3481

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL 6 + + CAST ( NULL AS REAL ) AS col2, 83 * - - 41 - + 17 + + + 95
----
NULL
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT NULLIF ( - 41, - ( + COUNT( * ) ) + - - 29 + + COUNT( * ) - 27 )
----
-41

skipif mysql # not compatible
query I rowsort label-1059
SELECT NULLIF ( - 41, - ( + COUNT ( * ) ) + - - 29 + + COUNT ( * ) - 27 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT + - MIN( + 18 ) DIV - 93 * + ( + 76 ) + + - 58 + - 0
----
-58

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + - MIN ( + 18 ) / - 93 * + ( + 76 ) + + - 58 + - 0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT + 90, NULLIF ( - 6, 82 ) * + COUNT( 80 ) AS col2
----
90
-6

skipif mysql # not compatible
query II rowsort label-1061
SELECT + 90, NULLIF ( - 6, 82 ) * + COUNT ( 80 ) AS col2
----
90
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT ALL + + 99 DIV - 14 + + 51 + - 29 + COUNT( * ) + + ( - 10 ) * + - 6 * 19 + - 38 * - NULLIF ( - 97, + ( + - 10 ) * 86 )
----
-2530

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + + 99 / - 14 + + 51 + - 29 + COUNT ( * ) + + ( - 10 ) * + - 6 * 19 + - 38 * - NULLIF ( - 97, + ( + - 10 ) * 86 )
----
-2530

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT ALL - - 33 DIV - 76 + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL - - 33 / - 76 + - 74
----
-74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT ALL - COALESCE ( - - CAST( NULL AS SIGNED ), + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - COALESCE ( - - CAST ( NULL AS INTEGER ), + 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ( + ( 81 ) ) * + 36 + - 59 * 90 * + - 39 + + COUNT( * )
----
210007

skipif mysql # not compatible
query I rowsort label-1066
SELECT ( + ( 81 ) ) * + 36 + - 59 * 90 * + - 39 + + COUNT ( * )
----
210007

query I rowsort
SELECT ALL 72 - + 66 * + 26 - 1 + 42 AS col2
----
-1603

query I rowsort
SELECT ALL - 78 * - ( + 73 ) col1
----
5694

query I rowsort
SELECT 86 + - + 79
----
7

query I rowsort
SELECT 92 * - - 48
----
4416

query I rowsort
SELECT DISTINCT - 97 * 16 col2
----
-1552

query II rowsort
SELECT 5 * - + 53, + NULLIF ( - + 28, + - 40 ) col2
----
-265
-28

query I rowsort
SELECT ALL - 79 * + + 84
----
-6636

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT DISTINCT - COALESCE ( + 41, 14 DIV - + 68 + - 79 + - ( + 25 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - COALESCE ( + 41, 14 / - + 68 + - 79 + - ( + 25 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( * ) + + - 54 * CASE - 77 WHEN - 53 THEN + 45 ELSE - 98 END AS col0
----
5293

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( * ) + + - 54 * CASE - 77 WHEN - 53 THEN + 45 ELSE - 98 END AS col0
----
5293

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1076
SELECT ALL - ( 38 ) AS col2, + 71 DIV COUNT( * ) + + 19
----
-38
90

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL - ( 38 ) AS col2, + 71 / COUNT ( * ) + + 19
----
-38
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1077
SELECT 95 * - + 96 AS col2, - COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
-9120
0

skipif mysql # not compatible
query II rowsort label-1077
SELECT 95 * - + 96 AS col2, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
-9120
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT 30 + + 15 - + CASE + + 25 WHEN - + 99 - 17 THEN - + 80 WHEN - 63 THEN NULL WHEN - 25 / + - COUNT( * ) * - - 64 THEN NULL ELSE NULL END + - 44 * + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT 30 + + 15 - + CASE + + 25 WHEN - + 99 - 17 THEN - + 80 WHEN - 63 THEN NULL WHEN - 25 / + - COUNT ( * ) * - - 64 THEN NULL ELSE NULL END + - 44 * + - 98
----
NULL

query I rowsort
SELECT 7 * - 46 + + - 73 AS col0
----
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1080
SELECT ALL - ( - - 41 ) DIV + MAX( + 9 ) + - 35 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL - ( - - 41 ) / + MAX ( + 9 ) + - 35 AS col2
----
-39

query I rowsort
SELECT 11 + + 31
----
42

query II rowsort
SELECT ALL - NULLIF ( - - 11, 68 ) AS col1, + ( + - 60 ) AS col0
----
-11
-60

query I rowsort
SELECT ALL - + 74 + 18 - - 68 AS col1
----
12

query I rowsort
SELECT + 57 + + 91 AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1085
SELECT ALL - + 32 + - - 89 - - + 52 + + COALESCE ( + - 19, + - 73 ) + COUNT( * ) DIV NULLIF ( - - 56, - - 81 ) - - 66 DIV + 74 * - 96
----
90

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - + 32 + - - 89 - - + 52 + + COALESCE ( + - 19, + - 73 ) + COUNT ( * ) / NULLIF ( - - 56, - - 81 ) - - 66 / + 74 * - 96
----
90

query I rowsort
SELECT 83 + + ( + - 43 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT - 24 * + - 92 - - - CAST( COUNT( * ) AS SIGNED )
----
2207

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 24 * + - 92 - - - CAST ( COUNT ( * ) AS INTEGER )
----
2207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT AVG ( - NULLIF ( + CAST( NULL AS SIGNED ), + + 18 ) ) / + 45 * + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT AVG ( - NULLIF ( + CAST ( NULL AS INTEGER ), + + 18 ) ) / + 45 * + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT + - 32 + + COUNT( ALL 68 )
----
-31

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + - 32 + + COUNT ( ALL 68 )
----
-31

query I rowsort
SELECT ALL - 77 + + - 74 * 45 AS col0
----
-3407

query I rowsort
SELECT + NULLIF ( + 42, - 8 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT - + 3 * COALESCE ( COUNT( * ), + + ( - 86 ), - ( - + 82 ), 69 )
----
-3

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - + 3 * COALESCE ( COUNT ( * ), + + ( - 86 ), - ( - + 82 ), 69 )
----
-3

query I rowsort
SELECT ALL - 16 * - 20
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT DISTINCT ( 67 ) + - CASE + - COALESCE ( - 53, + + COUNT( * ) * - COUNT( * ) ) WHEN 47 * - - 79 / + CAST( NULL AS SIGNED ) + + 4 + - + 42 THEN NULL WHEN + 28 * + - COUNT( * ) + - - 33 * 22 THEN - + NULLIF ( - - ( + + 65 ), 35 * + 61 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT ( 67 ) + - CASE + - COALESCE ( - 53, + + COUNT ( * ) * - COUNT ( * ) ) WHEN 47 * - - 79 / + CAST ( NULL AS INTEGER ) + + 4 + - + 42 THEN NULL WHEN + 28 * + - COUNT ( * ) + - - 33 * 22 THEN - + NULLIF ( - - ( + + 65 ), 35 * + 61 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 40 - 9 * + 21 AS col0
----
-149

query I rowsort
SELECT 93 - 47 * - 74 + - 76
----
3495

query I rowsort
SELECT ALL 8 - + 23
----
-15

query I rowsort
SELECT ALL 67 * - 47 col1
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT 1 * - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT 1 * - - COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT DISTINCT 13 * - CAST( + 77 AS SIGNED ) * - 31
----
31031

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT 13 * - CAST ( + 77 AS INTEGER ) * - 31
----
31031

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT ALL - 12 AS col1, NULLIF ( 99, + + 37 ) + COUNT( * ) AS col2
----
-12
100

skipif mysql # not compatible
query II rowsort label-1101
SELECT ALL - 12 AS col1, NULLIF ( 99, + + 37 ) + COUNT ( * ) AS col2
----
-12
100

query I rowsort
SELECT ALL 31 * + 89 col0
----
2759

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL - MIN( + 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - MIN ( + 65 ) AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT ( - 34 ) DIV - - 84 + + + 59
----
59

skipif mysql # not compatible
query I rowsort label-1104
SELECT ( - 34 ) / - - 84 + + + 59
----
59

query I rowsort
SELECT CASE + 26 WHEN - 75 THEN NULL WHEN - 91 THEN NULL ELSE + 70 * + - 57 + - + 85 END * + 4
----
-16300

query I rowsort
SELECT ALL 65 + 76 AS col1
----
141

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1107
SELECT 87 AS col2, - CAST( NULL AS DECIMAL ) col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1107
SELECT 87 AS col2, - CAST ( NULL AS REAL ) col0
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT - CASE + 32 WHEN 76 / COUNT( * ) THEN NULL WHEN - - ( - 66 ) + + - 48 THEN - + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - CASE + 32 WHEN 76 / COUNT ( * ) THEN NULL WHEN - - ( - 66 ) + + - 48 THEN - + 15 ELSE NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT 20 + COUNT( * ) + - + 30 - + 99
----
-108

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 20 + COUNT ( * ) + - + 30 - + 99
----
-108

query I rowsort
SELECT ALL 25 + - 94 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - - COUNT( * ) * 61 + + ( 18 ) - - + NULLIF ( + 0, - 3 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1113
SELECT - - COUNT ( * ) * 61 + + ( 18 ) - - + NULLIF ( + 0, - 3 ) AS col1
----
79

query I rowsort
SELECT - 22 + + 44
----
22

query I rowsort
SELECT ALL + - 30 + + - 5 AS col1
----
-35

query II rowsort
SELECT ALL - 77 AS col1, - 54 AS col0
----
-77
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1117
SELECT ( - + 34 ) + - + 28 - - COALESCE ( 26, - 17 * NULLIF ( 92, - - COUNT( * ) * + - 84 + - - 75 ) * - - 71 * - 90 - - 69 - 33 * + 43 DIV - + 35 DIV 82, COUNT( * ) * 45 + + + 94 ) AS col1, COUNT( * )
----
-36
1

skipif mysql # not compatible
query II rowsort label-1117
SELECT ( - + 34 ) + - + 28 - - COALESCE ( 26, - 17 * NULLIF ( 92, - - COUNT ( * ) * + - 84 + - - 75 ) * - - 71 * - 90 - - 69 - 33 * + 43 / - + 35 / 82, COUNT ( * ) * 45 + + + 94 ) AS col1, COUNT ( * )
----
-36
1

query II rowsort
SELECT ALL 79 AS col1, - 57 + - + 2
----
79
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + 71 + COUNT( * ) * + 54 + - 49 - 2
----
74

skipif mysql # not compatible
query I rowsort label-1120
SELECT + 71 + COUNT ( * ) * + 54 + - 49 - 2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT DISTINCT + 12 DIV - + 91 * + + 1 * + COUNT( DISTINCT - 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + 12 / - + 91 * + + 1 * + COUNT ( DISTINCT - 39 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT 59 * + SUM( + - 87 )
----
-5133

skipif mysql # not compatible
query I rowsort label-1122
SELECT 59 * + SUM ( + - 87 )
----
-5133

query I rowsort
SELECT - 38 + ( - 87 ) + + - 67 AS col2
----
-192

query I rowsort
SELECT - 7 - + 67
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - + CASE 75 WHEN + - 62 THEN NULL ELSE - + 43 * 75 * + ( 56 ) * - - AVG ( ALL + 80 ) + CASE - 53 WHEN 92 THEN + 82 WHEN + NULLIF ( 71, + COUNT( * ) * - + 75 * - 7 / + COALESCE ( - COUNT( * ), - - 89 * - 7 - 4 ) + + 52 * + - MIN( 78 ) ) THEN + ( + 30 ) END + - + 54 + - - 17 * - 24 * - ( - SUM( ALL - - 34 ) ) + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT - + CASE 75 WHEN + - 62 THEN NULL ELSE - + 43 * 75 * + ( 56 ) * - - AVG ( ALL + 80 ) + CASE - 53 WHEN 92 THEN + 82 WHEN + NULLIF ( 71, + COUNT ( * ) * - + 75 * - 7 / + COALESCE ( - COUNT ( * ), - - 89 * - 7 - 4 ) + + 52 * + - MIN ( 78 ) ) THEN + ( + 30 ) END + - + 54 + - - 17 * - 24 * - ( - SUM ( ALL - - 34 ) ) + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - - 24 * - + 23 + + + 97 + + 54
----
-401

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT - ( - + 27 ) - - CASE + 23 WHEN + COUNT( * ) + - 24 THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT - ( - + 27 ) - - CASE + 23 WHEN + COUNT ( * ) + - 24 THEN + 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT DISTINCT + 69 - + CAST( - + 66 AS SIGNED )
----
135

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT + 69 - + CAST ( - + 66 AS INTEGER )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + NULLIF ( - ( + 53 ), - 36 + - 82 + - 28 * + 37 ) * + CASE MAX( DISTINCT + 4 ) WHEN - - 75 THEN + 29 / + 40 + + 4 + - - 18 - - + 47 * COUNT( * ) - - 64 + + 37 WHEN - + 64 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT + NULLIF ( - ( + 53 ), - 36 + - 82 + - 28 * + 37 ) * + CASE MAX ( DISTINCT + 4 ) WHEN - - 75 THEN + 29 / + 40 + + 4 + - - 18 - - + 47 * COUNT ( * ) - - 64 + + 37 WHEN - + 64 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 93, + - 79 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT - COUNT( * ) + COUNT( * ) + SUM( DISTINCT - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1131
SELECT - COUNT ( * ) + COUNT ( * ) + SUM ( DISTINCT - 32 ) AS col0
----
-32

query I rowsort
SELECT - 7 + + + 93 * - 55 AS col1
----
-5122

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT CASE COUNT( - 78 ) WHEN - + 40 THEN + + 6 WHEN 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT CASE COUNT ( - 78 ) WHEN - + 40 THEN + + 6 WHEN 8 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT + 89 * + + 81, NULLIF ( - 72, + COUNT( * ) ) col2
----
7209
-72

skipif mysql # not compatible
query II rowsort label-1134
SELECT + 89 * + + 81, NULLIF ( - 72, + COUNT ( * ) ) col2
----
7209
-72

query I rowsort
SELECT DISTINCT + 11 * + 70 + - CASE + + 39 WHEN + 24 THEN NULL WHEN - 11 THEN - 30 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT - 30 * - + CASE - + COUNT ( * ) WHEN - 44 THEN + 26 - - COUNT ( * ) ELSE NULL END + + - 46
----
NULL

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

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

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

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

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

query I rowsort
SELECT + 15 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL + 60 + COALESCE ( - COUNT( * ), + + ( 41 ) * + 13 * - 62 + + - 38 + 9 * + 76 * - 85 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + 60 + COALESCE ( - COUNT ( * ), + + ( 41 ) * + 13 * - 62 + + - 38 + 9 * + 76 * - 85 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT + ( 14 ) - + 83 * + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + ( 14 ) - + 83 * + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT + CASE - + 99 WHEN + 70 + SUM( DISTINCT + 34 ) THEN + CASE + - 53 WHEN + COUNT( * ) THEN NULL WHEN + - 37 THEN - 0 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + CASE - + 99 WHEN + 70 + SUM ( DISTINCT + 34 ) THEN + CASE + - 53 WHEN + COUNT ( * ) THEN NULL WHEN + - 37 THEN - 0 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT COUNT( * ) - + + 67 * - 91 AS col0
----
6098

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT COUNT ( * ) - + + 67 * - 91 AS col0
----
6098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT + + 3 + + - COUNT( * ) DIV COALESCE ( 41, - + ( - 82 ) * - 42 * + - 96 * + NULLIF ( 23, + 46 ) + 45 DIV - 94 + + - 70 ) + + MAX( 14 )
----
17

skipif mysql # not compatible
query I rowsort label-1145
SELECT + + 3 + + - COUNT ( * ) / COALESCE ( 41, - + ( - 82 ) * - 42 * + - 96 * + NULLIF ( 23, + 46 ) + 45 / - 94 + + - 70 ) + + MAX ( 14 )
----
17

query II rowsort
SELECT - - ( 46 ) * + 40 + - 83, 97 AS col1
----
1757
97

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + 34 * NULLIF ( COUNT ( * ), - 95 )
----
34

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT - + 64 + - + COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT SUM( ALL - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT SUM ( ALL - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1150
SELECT DISTINCT - 89 * - CASE 59 WHEN 89 / + 81 THEN 16 WHEN - - 33 + - 70 - - + 61 THEN 80 WHEN + - SUM( - 19 ) * - + 51 THEN NULL END - - 60 + - + CAST( NULL AS SIGNED ), + 4 * + 10 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT - 89 * - CASE 59 WHEN 89 / + 81 THEN 16 WHEN - - 33 + - 70 - - + 61 THEN 80 WHEN + - SUM ( - 19 ) * - + 51 THEN NULL END - - 60 + - + CAST ( NULL AS INTEGER ), + 4 * + 10 AS col1
----
NULL
40

query I rowsort
SELECT ALL NULLIF ( + 28, - 97 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT - 58 DIV - 38 + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 58 / - 38 + - 93
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT - ( + 14 ) + - COALESCE ( - - COUNT( * ), - - CAST( NULL AS SIGNED ) + + MAX( DISTINCT - CAST( 66 AS SIGNED ) ), - COUNT( * ) - - 88 + - MIN( + + 25 ) + - - 11 * - NULLIF ( - 76, + CASE - 35 WHEN + + 59 * - ( - + 82 ) * - + COUNT( * ) + CASE 87 WHEN + + MIN( DISTINCT + 73 ) / + + AVG ( + 25 ) THEN NULL WHEN 60 THEN 3 + 90 END THEN + + 88 WHEN + 64 * - - COUNT( * ) - MAX( DISTINCT + + ( 10 ) ) THEN ( 83 ) ELSE - 31 + + 6 END + - NULLIF ( - 36, - - COUNT( * ) + ( ( CAST( - 25 AS SIGNED ) ) ) + + 75 * 20 * 71 ) ) * + COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1153
SELECT - ( + 14 ) + - COALESCE ( - - COUNT ( * ), - - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - CAST ( 66 AS INTEGER ) ), - COUNT ( * ) - - 88 + - MIN ( + + 25 ) + - - 11 * - NULLIF ( - 76, + CASE - 35 WHEN + + 59 * - ( - + 82 ) * - + COUNT ( * ) + CASE 87 WHEN + + MIN ( DISTINCT + 73 ) / + + AVG ( + 25 ) THEN NULL WHEN 60 THEN 3 + 90 END THEN + + 88 WHEN + 64 * - - COUNT ( * ) - MAX ( DISTINCT + + ( 10 ) ) THEN ( 83 ) ELSE - 31 + + 6 END + - NULLIF ( - 36, - - COUNT ( * ) + ( ( CAST ( - 25 AS INTEGER ) ) ) + + 75 * 20 * 71 ) ) * + COUNT ( * ) ) AS col0
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), + - 49 / - ( - + CAST( NULL AS SIGNED ) ) + 67 + + + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), + - 49 / - ( - + CAST ( NULL AS INTEGER ) ) + 67 + + + 66 )
----
NULL

query I rowsort
SELECT ALL + 19 * 18 AS col0
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL + 47 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + 47 / + 41
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + MIN( ALL + 1 ) - 13 + - 59
----
-71

skipif mysql # not compatible
query I rowsort label-1159
SELECT + MIN ( ALL + 1 ) - 13 + - 59
----
-71

query I rowsort
SELECT - 13 + 87 AS col1
----
74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1162
SELECT ALL + 61 DIV - + 12 + 21 AS col2, - 47 DIV - + 21 + + 64 + + 48 AS col2
----
16
114

skipif mysql # not compatible
query II rowsort label-1162
SELECT ALL + 61 / - + 12 + 21 AS col2, - 47 / - + 21 + + 64 + + 48 AS col2
----
16
114

query I rowsort
SELECT ALL + 57 * + 28
----
1596

query I rowsort
SELECT - 29 * + COALESCE ( + ( - 85 ), - + 96 )
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + MAX( ALL - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + MAX ( ALL - 19 )
----
-19

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

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

query I rowsort
SELECT ALL - 18 * - 58 + 37 * - + 84 * + 71 * - 83
----
18316488

query I rowsort
SELECT DISTINCT + 22 * 2 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL - NULLIF ( CAST( + + 45 AS SIGNED ), + + CAST( NULL AS SIGNED ) ) * 93 - + - 75
----
-4110

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - NULLIF ( CAST ( + + 45 AS INTEGER ), + + CAST ( NULL AS INTEGER ) ) * 93 - + - 75
----
-4110

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT ALL + ( 8 ) DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + ( 8 ) / 56 AS col0
----
0

query II rowsort
SELECT ALL + - 70, - 65 AS col0
----
-70
-65

query I rowsort
SELECT ALL - 29 * + + 2
----
-58

query I rowsort
SELECT + + 18 * + - 72 AS col1
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT + SUM( DISTINCT + + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1174
SELECT + SUM ( DISTINCT + + 7 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT - COALESCE ( 69, - NULLIF ( + COUNT( * ), 2 ) * - CAST( + ( + 7 ) AS SIGNED ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1175
SELECT - COALESCE ( 69, - NULLIF ( + COUNT ( * ), 2 ) * - CAST ( + ( + 7 ) AS INTEGER ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + 87 * - ( + 11 ) + - COUNT( DISTINCT 25 )
----
-958

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 87 * - ( + 11 ) + - COUNT ( DISTINCT 25 )
----
-958

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT - 46 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - 46 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT - COUNT( * ) * + - 33 col0
----
33

skipif mysql # not compatible
query I rowsort label-1178
SELECT - COUNT ( * ) * + - 33 col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT ALL ( - + 82 ) DIV + 23 + - + 5
----
-8

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL ( - + 82 ) / + 23 + - + 5
----
-8

query I rowsort
SELECT - 42 + 2 + - 53 - - 43 * 67 + - - 49 * - 35
----
1073

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1181
SELECT ALL ( 59 ) DIV + + 77 AS col1, ( 78 ) * - COUNT( * ) * - ( - MAX( DISTINCT + 1 ) )
----
0
-78

skipif mysql # not compatible
query II rowsort label-1181
SELECT ALL ( 59 ) / + + 77 AS col1, ( 78 ) * - COUNT ( * ) * - ( - MAX ( DISTINCT + 1 ) )
----
0
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT ALL + + 83 * + - 21 - + 48 DIV - NULLIF ( - 23, - - 30 + COUNT( * ) - + - 77 * - + 36 + + + 8 ) + + 55 AS col2
----
-1690

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + + 83 * + - 21 - + 48 / - NULLIF ( - 23, - - 30 + COUNT ( * ) - + - 77 * - + 36 + + + 8 ) + + 55 AS col2
----
-1690

query I rowsort
SELECT ( + + 74 ) * 25 - + - 62 AS col0
----
1912

query II rowsort
SELECT - 94 AS col2, + 0
----
-94
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT 3 AS col2, - MIN( - 75 ) * 67 - 19 AS col2
----
3
5006

skipif mysql # not compatible
query II rowsort label-1185
SELECT 3 AS col2, - MIN ( - 75 ) * 67 - 19 AS col2
----
3
5006

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL COUNT( * ) * - 96 * + - 75 AS col0
----
7200

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL COUNT ( * ) * - 96 * + - 75 AS col0
----
7200

onlyif mysql # aggregate syntax: 
query II rowsort label-1187
SELECT ALL 50 col0, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-1187
SELECT ALL 50 col0, COUNT ( * )
----
50
1

query II rowsort
SELECT 90, 1 - - 34 AS col0
----
90
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT 83 + 93 + - CAST( - + 7 AS SIGNED ) - 68 * + - 9 + 22 * + 75 * - 93 AS col1
----
-152655

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT 83 + 93 + - CAST ( - + 7 AS INTEGER ) - 68 * + - 9 + 22 * + 75 * - 93 AS col1
----
-152655

query II rowsort
SELECT DISTINCT 11 AS col2, 6 * + 37
----
11
222

query I rowsort
SELECT DISTINCT 0 + + + 23 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL - 89 DIV - - 8 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 89 / - - 8 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT DISTINCT SUM( DISTINCT 44 ) + - 93 col0
----
-49

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT SUM ( DISTINCT 44 ) + - 93 col0
----
-49

query II rowsort
SELECT 84 AS col0, - 49
----
84
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ( + 25 ) + + MAX( ALL - ( 91 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1195
SELECT ( + 25 ) + + MAX ( ALL - ( 91 ) )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT ALL - ( - 23 ) DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - ( - 23 ) / + + 94
----
0

query I rowsort
SELECT 53 * + 99 * - - ( - + 28 ) + + 16 * + NULLIF ( 64, 10 - 11 + 45 ) * + + 91 AS col1
----
-53732

query I rowsort
SELECT 46 - 30
----
16

query I rowsort
SELECT - ( + 9 ) * 14 + + 90 AS col1
----
-36

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

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 49 + + 15
----
NULL

query I rowsort
SELECT - ( + 96 ) * - 72 + 64
----
6976

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL + COUNT( * ) * - 5 * - + 38
----
190

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + COUNT ( * ) * - 5 * - + 38
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL - COALESCE ( CASE 81 WHEN + - 84 THEN NULL ELSE - COUNT( * ) END, + COUNT( * ) * - COUNT( * ) + + 93 * - 6 + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - COALESCE ( CASE 81 WHEN + - 84 THEN NULL ELSE - COUNT ( * ) END, + COUNT ( * ) * - COUNT ( * ) + + 93 * - 6 + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + 40 * + - 26 + - - 37 + 61 col0
----
-942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT 89 * + 32 + - ( + 94 ) * - COUNT( * ) + - 31
----
2911

skipif mysql # not compatible
query I rowsort label-1206
SELECT 89 * + 32 + - ( + 94 ) * - COUNT ( * ) + - 31
----
2911

query I rowsort
SELECT + COALESCE ( - 15, - 85, - NULLIF ( - + 41, + 30 * + 81 ) )
----
-15

query I rowsort
SELECT 14 * NULLIF ( + - 0, 92 * 18 + - ( + 43 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 43 * MIN( ALL - - 45 )
----
1935

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 43 * MIN ( ALL - - 45 )
----
1935

query I rowsort
SELECT + - NULLIF ( 2, 71 ) AS col1
----
-2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1212
SELECT DISTINCT - + 76 DIV - + 29 AS col1, - 79 AS col2
----
2
-79

skipif mysql # not compatible
query II rowsort label-1212
SELECT DISTINCT - + 76 / - + 29 AS col1, - 79 AS col2
----
2
-79

query I rowsort
SELECT DISTINCT + + 14 + 64
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - 49 DIV COUNT( ALL + 12 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1214
SELECT - 49 / COUNT ( ALL + 12 ) AS col0
----
-49

query I rowsort
SELECT DISTINCT - 40 + - 41 + - + 35 * + - 64
----
2159

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT 89 + + 17 + COUNT( * ) + 25 - + - COUNT( * ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT 89 + + 17 + COUNT ( * ) + 25 - + - COUNT ( * ) AS col1
----
133

query II rowsort
SELECT - 66 col1, 79
----
-66
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1218
SELECT 76 DIV MIN( ALL - 56 ), - 26 AS col2
----
-1
-26

skipif mysql # not compatible
query II rowsort label-1218
SELECT 76 / MIN ( ALL - 56 ), - 26 AS col2
----
-1
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT COUNT( * ) + + 72 - - 50 + - 65 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT COUNT ( * ) + + 72 - - 50 + - 65 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL MAX( ALL + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL MAX ( ALL + 81 )
----
81

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

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

query II rowsort
SELECT ALL 59 + 13 AS col0, 63
----
72
63

query I rowsort
SELECT DISTINCT 83 * 73
----
6059

onlyif mysql # aggregate syntax: 
query II rowsort label-1224
SELECT ALL 94 + + ( - 85 ) col2, 94 * - + COUNT( * ) + - + 24
----
9
-118

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL 94 + + ( - 85 ) col2, 94 * - + COUNT ( * ) + - + 24
----
9
-118

query I rowsort
SELECT 1 * - 14 * + + 84
----
-1176

query I rowsort
SELECT 36 + + + 65 AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT COUNT( * ) DIV + + 70 + - - 30
----
30

skipif mysql # not compatible
query I rowsort label-1227
SELECT COUNT ( * ) / + + 70 + - - 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT 26 * - MIN( DISTINCT 39 ) AS col1
----
-1014

skipif mysql # not compatible
query I rowsort label-1228
SELECT 26 * - MIN ( DISTINCT 39 ) AS col1
----
-1014

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT COUNT( * ) * 52 * + + 90 AS col2, - 52 col1
----
4680
-52

skipif mysql # not compatible
query II rowsort label-1229
SELECT COUNT ( * ) * 52 * + + 90 AS col2, - 52 col1
----
4680
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT ALL + 96 DIV + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + 96 / + - 10 AS col2
----
-9

query I rowsort
SELECT ALL + - NULLIF ( 51, - 19 )
----
-51

query I rowsort
SELECT DISTINCT + - 54 * COALESCE ( + 29, - 77 * - 6 ) AS col1
----
-1566

query I rowsort
SELECT ALL + 46 * - 86 AS col2
----
-3956

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT - + 82 * 88 + + + 75 + + 41 DIV - 42 AS col0
----
-7141

skipif mysql # not compatible
query I rowsort label-1234
SELECT - + 82 * 88 + + + 75 + + 41 / - 42 AS col0
----
-7141

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL - + 52 * + SUM( - 95 ) + - COUNT( ALL - 26 ) + + ( + 9 ) * - 80 * + + 31
----
-17381

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - + 52 * + SUM ( - 95 ) + - COUNT ( ALL - 26 ) + + ( + 9 ) * - 80 * + + 31
----
-17381

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL + MAX( ALL 66 ) + - - 36 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + MAX ( ALL 66 ) + - - 36 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT ALL + - CAST( NULL AS SIGNED ) * - 42 - 1 AS col0
----
NULL

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

query II rowsort
SELECT DISTINCT - - 41 + + 81 AS col2, ( + 69 ) AS col1
----
122
69

query I rowsort
SELECT + 77 + - + 97
----
-20

query I rowsort
SELECT ALL - 94 + - 41 * + 30 * - 36 AS col1
----
44186

query I rowsort
SELECT - ( - + 21 ) + + 24 + + + 4
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT - MIN( - - 79 ) + + 69
----
-10

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - MIN ( - - 79 ) + + 69
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT + 72 - COUNT( * ) + CASE - SUM( + + 49 ) WHEN - + COUNT( * ) THEN 9 ELSE - 14 * 76 / NULLIF ( + 38, 3 + + NULLIF ( - - COUNT( * ), - NULLIF ( 96, - 66 ) - - CAST( NULLIF ( - 48, - 15 ) AS SIGNED ) ) * COALESCE ( + 15, - - MIN( 40 ) / CAST( NULL AS SIGNED ), - 11, - + 53 ) * + + 91 ) * CASE - 82 WHEN COUNT( * ) * + - 33 THEN - 14 WHEN + 49 THEN NULL END * - 61 + - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 72 - COUNT ( * ) + CASE - SUM ( + + 49 ) WHEN - + COUNT ( * ) THEN 9 ELSE - 14 * 76 / NULLIF ( + 38, 3 + + NULLIF ( - - COUNT ( * ), - NULLIF ( 96, - 66 ) - - CAST ( NULLIF ( - 48, - 15 ) AS INTEGER ) ) * COALESCE ( + 15, - - MIN ( 40 ) / CAST ( NULL AS INTEGER ), - 11, - + 53 ) * + + 91 ) * CASE - 82 WHEN COUNT ( * ) * + - 33 THEN - 14 WHEN + 49 THEN NULL END * - 61 + - 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT - NULLIF ( + 69, - + 18 ) + COUNT( * ) + - 20 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - NULLIF ( + 69, - + 18 ) + COUNT ( * ) + - 20 AS col1
----
-88

query I rowsort
SELECT DISTINCT - 6 * - 63 col2
----
378

query I rowsort
SELECT DISTINCT - 34 + - 77
----
-111

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

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

query I rowsort
SELECT DISTINCT 7 + + - 12
----
-5

query I rowsort
SELECT ALL - 61 + - 34 AS col0
----
-95

query I rowsort
SELECT DISTINCT 42 - - 15 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + 6 * + MAX( DISTINCT - 14 ) * - 12
----
1008

skipif mysql # not compatible
query I rowsort label-1251
SELECT + 6 * + MAX ( DISTINCT - 14 ) * - 12
----
1008

query I rowsort
SELECT ALL + 89 * - 74 AS col0
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - 18 + 52 * + COUNT( * ) * - 71 AS col0
----
-3710

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 18 + 52 * + COUNT ( * ) * - 71 AS col0
----
-3710

query I rowsort
SELECT DISTINCT 6 - + 21
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1255
SELECT DISTINCT CAST( 80 AS SIGNED ) DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT CAST ( 80 AS INTEGER ) / 32
----
2

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

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

query I rowsort
SELECT ALL 34 * 13 AS col2
----
442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1258
SELECT 11 / - CAST( NULL AS SIGNED ) + - COUNT( * ) / + + 46 + - COALESCE ( + 88, + COUNT( DISTINCT - - 72 ) + + 31 + - - 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT 11 / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + + 46 + - COALESCE ( + 88, + COUNT ( DISTINCT - - 72 ) + + 31 + - - 7 ) AS col0
----
NULL

query I rowsort
SELECT ALL - CASE WHEN NULL IS NULL THEN NULL ELSE - 89 END * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT + - 56 - - MAX( ( - 77 ) ) * 25 AS col2
----
-1981

skipif mysql # not compatible
query I rowsort label-1260
SELECT + - 56 - - MAX ( ( - 77 ) ) * 25 AS col2
----
-1981

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT + 83 AS col2, - 83 * - COUNT( * ) AS col0
----
83
83

skipif mysql # not compatible
query II rowsort label-1261
SELECT + 83 AS col2, - 83 * - COUNT ( * ) AS col0
----
83
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL - - ( MIN( + 93 ) ) * + + SUM( DISTINCT 35 ) + - COUNT( * )
----
3254

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - - ( MIN ( + 93 ) ) * + + SUM ( DISTINCT 35 ) + - COUNT ( * )
----
3254

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL 89 * - COUNT( * ) * - 72 + + COUNT( * ) * 71 * + - 47 - - + 2
----
3073

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL 89 * - COUNT ( * ) * - 72 + + COUNT ( * ) * 71 * + - 47 - - + 2
----
3073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT + 9 + + 29 + CAST( 33 AS SIGNED ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 9 + + 29 + CAST ( 33 AS INTEGER ) AS col0
----
71

query I rowsort
SELECT + 93 * 10 * + 32 + - 53 + - 51
----
29656

query I rowsort
SELECT + + 34 * - - 14
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL 97 * - - 36 * - NULLIF ( + 44, + 87 ) - - COUNT( * ) + + 17
----
-153630

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL 97 * - - 36 * - NULLIF ( + 44, + 87 ) - - COUNT ( * ) + + 17
----
-153630

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT ALL + 90 DIV 94 * + + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 90 / 94 * + + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT ALL + 74 * + 58 * - COUNT( * ), 51 col2
----
-4292
51

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL + 74 * + 58 * - COUNT ( * ), 51 col2
----
-4292
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + MAX( - 68 ) * - - 73 * - - 99 * + 62 * COUNT( * ) + + COUNT( * ) + + - 40 AS col1
----
-30469071

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + MAX ( - 68 ) * - - 73 * - - 99 * + 62 * COUNT ( * ) + + COUNT ( * ) + + - 40 AS col1
----
-30469071

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT - 55 * + MIN( + - 6 ) + - 60 col1
----
270

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 55 * + MIN ( + - 6 ) + - 60 col1
----
270

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT - 13 * - 53 AS col0, + 67 - + COUNT( * ) AS col0
----
689
66

skipif mysql # not compatible
query II rowsort label-1274
SELECT - 13 * - 53 AS col0, + 67 - + COUNT ( * ) AS col0
----
689
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - 74 * - 98 - - COUNT( DISTINCT + 47 ) * - + 69
----
7183

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - 74 * - 98 - - COUNT ( DISTINCT + 47 ) * - + 69
----
7183

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT DISTINCT CASE - + 18 WHEN - 40 / - 57 THEN 16 END AS col0, + COUNT( * ) * - 91
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-1276
SELECT DISTINCT CASE - + 18 WHEN - 40 / - 57 THEN 16 END AS col0, + COUNT ( * ) * - 91
----
NULL
-91

query I rowsort
SELECT + 1 - + 69
----
-68

query I rowsort
SELECT + 18 + - + ( + 28 )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT - 0 + - 23 AS col0, ( - 30 ) * + COUNT( * ) col1
----
-23
-30

skipif mysql # not compatible
query II rowsort label-1279
SELECT - 0 + - 23 AS col0, ( - 30 ) * + COUNT ( * ) col1
----
-23
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT DISTINCT CAST( + 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT CAST ( + 13 AS INTEGER ) AS col0
----
13

query I rowsort
SELECT - COALESCE ( + + 35, - ( - 40 ) ) AS col1
----
-35

query I rowsort
SELECT - 47 * 56
----
-2632

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

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

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

query I rowsort
SELECT - 41 + 26 AS col1
----
-15

query II rowsort
SELECT ALL + 67 * 80 AS col0, + 72
----
5360
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - COALESCE ( NULLIF ( - + CASE COALESCE ( + - 42, 68 ) WHEN - AVG ( 43 ) THEN - 72 + + - 30 ELSE 92 + 82 END, + - 89 ), - 4, - - 99 ) * - COUNT( ALL 85 ) - - + 14 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-1287
SELECT - COALESCE ( NULLIF ( - + CASE COALESCE ( + - 42, 68 ) WHEN - AVG ( 43 ) THEN - 72 + + - 30 ELSE 92 + 82 END, + - 89 ), - 4, - - 99 ) * - COUNT ( ALL 85 ) - - + 14 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT + COUNT( * ) * + ( 99 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT + COUNT ( * ) * + ( 99 ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - NULLIF ( + - MAX( - - 5 ), ( - + 24 ) )
----
5

skipif mysql # not compatible
query I rowsort label-1289
SELECT - NULLIF ( + - MAX ( - - 5 ), ( - + 24 ) )
----
5

query I rowsort
SELECT - 13 + 59 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT 10 / + 40 + + SUM( - 75 ) + + 22 + - - 70 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT 10 / + 40 + + SUM ( - 75 ) + + 22 + - - 70 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 10 + + 28 AS col0
----
38

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

skipif mysql # not compatible
query I rowsort label-1293
SELECT - 79 * - COUNT ( * ) * - COUNT ( * )
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + 46 - + - CASE + 13 WHEN - 43 THEN + COUNT( * ) + 90 * - - 77 * + 79 * 2 WHEN + - 64 * + 0 THEN 17 ELSE - 57 END
----
-11

skipif mysql # not compatible
query I rowsort label-1295
SELECT + 46 - + - CASE + 13 WHEN - 43 THEN + COUNT ( * ) + 90 * - - 77 * + 79 * 2 WHEN + - 64 * + 0 THEN 17 ELSE - 57 END
----
-11

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT - ( - 53 ) * + - 37 * + - CASE 9 WHEN - + 8 THEN + 78 WHEN + CASE 14 WHEN 24 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN - COUNT( * ) * 11 + + 57 * + + 98 + - 73 WHEN + COUNT( * ) THEN 20 ELSE NULL END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT - ( - 53 ) * + - 37 * + - CASE 9 WHEN - + 8 THEN + 78 WHEN + CASE 14 WHEN 24 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * 11 + + 57 * + + 98 + - 73 WHEN + COUNT ( * ) THEN 20 ELSE NULL END THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 45 * - - 11 + - 5
----
490

query I rowsort
SELECT - 95 * + 52 + + + 52 col0
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL - CASE - MAX( 23 ) WHEN - - 82 * - - 44 * + 38 + + - 62 + + 57 THEN 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL - CASE - MAX ( 23 ) WHEN - - 82 * - - 44 * + 38 + + - 62 + + 57 THEN 89 END
----
NULL

query I rowsort
SELECT ALL - CASE + 45 WHEN + + ( 73 ) THEN ( 25 ) END col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT AVG ( DISTINCT + 70 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 4 + - 80
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1306
SELECT 40 - + 32 DIV - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1306
SELECT 40 - + 32 / - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - COUNT( ALL + 98 ) * + 72 + + 11 - - 70 + + + 97 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-1307
SELECT - COUNT ( ALL + 98 ) * + 72 + + 11 - - 70 + + + 97 AS col0
----
106

query I rowsort
SELECT 49 - + 95 AS col0
----
-46

query I rowsort
SELECT DISTINCT - 44 * - - 29 AS col1
----
-1276

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

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

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

query I rowsort
SELECT DISTINCT 70 * + 54 AS col0
----
3780

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

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

query I rowsort
SELECT DISTINCT ( - 64 ) * 19 * + + 80
----
-97280

query I rowsort
SELECT 26 + - 62
----
-36

query II rowsort
SELECT 29, 1 AS col1
----
29
1

query I rowsort
SELECT ALL - 91 + 72
----
-19

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT - 82 + - COUNT ( - 23 ) / + COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT COUNT ( * ) + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT 70 + + COUNT( - ( 7 ) + + 45 )
----
71

skipif mysql # not compatible
query I rowsort label-1320
SELECT 70 + + COUNT ( - ( 7 ) + + 45 )
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1321
SELECT ALL - 91 + CAST( + 3 AS SIGNED ) DIV - 14 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL - 91 + CAST ( + 3 AS INTEGER ) / - 14 AS col1
----
-91

query I rowsort
SELECT 80 + - 78
----
2

query I rowsort
SELECT ALL - 91 + - ( - 98 - + 82 ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL + 64 + - ( - CASE + MAX( - 88 ) WHEN + 28 * COUNT( * ) + MIN( 73 + - 65 ) THEN ( 13 ) / - 45 WHEN - COUNT( 56 ) THEN NULL WHEN + 9 * + 88 THEN NULL END + + MAX( CAST( NULL AS SIGNED ) ) ) / CAST( 1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + 64 + - ( - CASE + MAX ( - 88 ) WHEN + 28 * COUNT ( * ) + MIN ( 73 + - 65 ) THEN ( 13 ) / - 45 WHEN - COUNT ( 56 ) THEN NULL WHEN + 9 * + 88 THEN NULL END + + MAX ( CAST ( NULL AS INTEGER ) ) ) / CAST ( 1 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT + 11 DIV - 97 + - 56 col0
----
-56

skipif mysql # not compatible
query I rowsort label-1325
SELECT + 11 / - 97 + - 56 col0
----
-56

query I rowsort
SELECT 70 + - 11 * + 83
----
-843

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT 28 DIV 13 - + 10
----
-8

skipif mysql # not compatible
query I rowsort label-1327
SELECT 28 / 13 - + 10
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT COUNT( * ) + - 46 * + 19
----
-873

skipif mysql # not compatible
query I rowsort label-1328
SELECT COUNT ( * ) + - 46 * + 19
----
-873

query I rowsort
SELECT DISTINCT - ( - 18 )
----
18

query I rowsort
SELECT DISTINCT + 47 - 63
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT DISTINCT 73 DIV + 19
----
3

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT 73 / + 19
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT COUNT( * ) + - CASE + ( - 39 ) WHEN 17 * + 72 THEN 76 + + 41 WHEN + 37 THEN 12 + 79 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT COUNT ( * ) + - CASE + ( - 39 ) WHEN 17 * + 72 THEN 76 + + 41 WHEN + 37 THEN 12 + 79 END col2
----
NULL

query I rowsort
SELECT ALL - ( COALESCE ( + 54, 3 ) ) AS col1
----
-54

query I rowsort
SELECT 14 + + 2
----
16

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

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

query I rowsort
SELECT 21 * 8
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT DISTINCT - 57 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT - 57 / 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL - CAST( - 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - CAST ( - 42 AS INTEGER ) AS col1
----
42

query I rowsort
SELECT 95 * 48
----
4560

query I rowsort
SELECT ( - 31 ) * 75
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT MAX( 28 ) * - 73 + - 23 * + 42 AS col1
----
-3010

skipif mysql # not compatible
query I rowsort label-1341
SELECT MAX ( 28 ) * - 73 + - 23 * + 42 AS col1
----
-3010

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

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

query I rowsort
SELECT ALL 65 * - 26 AS col0
----
-1690

query I rowsort
SELECT DISTINCT 83 * + 35
----
2905

query I rowsort
SELECT ALL ( 51 ) + 8 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL 82 + COUNT( * ) * - 51 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL 82 + COUNT ( * ) * - 51 AS col1
----
31

query I rowsort
SELECT 4 * 89 - + 92
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT + MIN( + 45 ) - NULLIF ( 17, - 17 * 42 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT + MIN ( + 45 ) - NULLIF ( 17, - 17 * 42 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - 41 ) + - 81 * ( 28 ) col1
----
-2227

query I rowsort
SELECT - 46 * 70 col2
----
-3220

query I rowsort
SELECT ALL 52 * 13 col0
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL + MIN( ALL 44 ) + MIN( + 72 )
----
116

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + MIN ( ALL 44 ) + MIN ( + 72 )
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT DISTINCT 4 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT 4 / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + - 24 - - COUNT( * ) * - MAX( 91 ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-1354
SELECT + - 24 - - COUNT ( * ) * - MAX ( 91 ) AS col1
----
-115

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

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

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

query I rowsort
SELECT ALL 45 + 84 AS col2
----
129

query I rowsort
SELECT - - 41 + - 8 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - - ( + COUNT( * ) ) * MIN( ALL COALESCE ( + 81, 35 + 42, - 92 + 18 * - 9 ) + + 78 * + 56 ) AS col0
----
4449

skipif mysql # not compatible
query I rowsort label-1359
SELECT - - ( + COUNT ( * ) ) * MIN ( ALL COALESCE ( + 81, 35 + 42, - 92 + 18 * - 9 ) + + 78 * + 56 ) AS col0
----
4449

query I rowsort
SELECT ALL - + 90 * 15 AS col2
----
-1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT + 85 * 22 - 28 DIV 49 AS col1
----
1870

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 85 * 22 - 28 / 49 AS col1
----
1870

query I rowsort
SELECT ALL - 95 * - 5 col0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - 41 * - 50 - SUM( ALL 53 )
----
1997

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - 41 * - 50 - SUM ( ALL 53 )
----
1997

query I rowsort
SELECT + + 62 * 25 AS col0
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL - + COUNT( DISTINCT + 51 ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL - + COUNT ( DISTINCT + 51 ) * 73
----
-73

query I rowsort
SELECT 45 * - 76 - + 58 AS col2
----
-3478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - COALESCE ( - + 61, 16 + - MAX( DISTINCT + 76 - 61 ) ) * 30 + 28 * + 55
----
3370

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COALESCE ( - + 61, 16 + - MAX ( DISTINCT + 76 - 61 ) ) * 30 + 28 * + 55
----
3370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT COALESCE ( - + 80, 77, - CAST( NULL AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1369
SELECT COALESCE ( - + 80, 77, - CAST ( NULL AS INTEGER ) )
----
-80

query I rowsort
SELECT - 54 + 46 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT - 72 DIV + 84 * + 60
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 72 / + 84 * + 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT DISTINCT - ( + - CAST( 23 AS SIGNED ) ) * + 73
----
1679

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - ( + - CAST ( 23 AS INTEGER ) ) * + 73
----
1679

query I rowsort
SELECT - 98 * 7 - 26 AS col0
----
-712

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL 36 DIV - - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL 36 / - - 67 AS col0
----
0

query I rowsort
SELECT ALL + 50 * - 15 + 29 AS col0
----
-721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT - 88 + - CAST( + 91 AS SIGNED ) + 92 * - 20
----
-2019

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 88 + - CAST ( + 91 AS INTEGER ) + 92 * - 20
----
-2019

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT SUM ( DISTINCT - - 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT 9 * 48 DIV - 44 + 55
----
46

skipif mysql # not compatible
query I rowsort label-1378
SELECT 9 * 48 / - 44 + 55
----
46

query I rowsort
SELECT + 70 - + - 76 * 32
----
2502

query I rowsort
SELECT ALL 76 * - ( + 40 )
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT COUNT( * ) * + 0 + 20 * - 2 col0
----
-40

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT COUNT ( * ) * + 0 + 20 * - 2 col0
----
-40

query I rowsort
SELECT + ( - 21 ) - 3 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - MIN( ALL 95 ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-1383
SELECT - MIN ( ALL 95 ) col1
----
-95

query I rowsort
SELECT ALL 70 + 58
----
128

query I rowsort
SELECT ALL 28 + + 54
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT MAX( ALL + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1386
SELECT MAX ( ALL + 77 ) AS col0
----
77

query I rowsort
SELECT + 32 * + 32 AS col1
----
1024

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT - 89 * - COUNT( DISTINCT + 25 ) * 52 AS col2
----
4628

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - 89 * - COUNT ( DISTINCT + 25 ) * 52 AS col2
----
4628

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL COUNT( * ) + - + 82 - 83 * - 81
----
6642

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL COUNT ( * ) + - + 82 - 83 * - 81
----
6642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT + + 76 + - 1 + - 28 DIV - COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-1391
SELECT + + 76 + - 1 + - 28 / - COUNT ( * )
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + - 1 + + MAX( ALL 34 ) - 24 * - 86 AS col2
----
2097

skipif mysql # not compatible
query I rowsort label-1393
SELECT + - 1 + + MAX ( ALL 34 ) - 24 * - 86 AS col2
----
2097

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + MAX( - 62 ) + + 26 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1395
SELECT + MAX ( - 62 ) + + 26 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + SUM( ALL 24 ) + + 83 * 72
----
6000

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + SUM ( ALL 24 ) + + 83 * 72
----
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + COUNT( DISTINCT + 20 ) * COUNT( DISTINCT - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1397
SELECT + COUNT ( DISTINCT + 20 ) * COUNT ( DISTINCT - 79 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT + - SUM( ( + 13 ) ) DIV 95 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-1398
SELECT + - SUM ( ( + 13 ) ) / 95 + + 39
----
39

query I rowsort
SELECT - ( - 54 ) * - 91 - 19
----
-4933

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + - 0 + - + MIN( 19 ) * - 54
----
1026

skipif mysql # not compatible
query I rowsort label-1400
SELECT + - 0 + - + MIN ( 19 ) * - 54
----
1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT 94 DIV - 55 + MAX( ALL ( 36 ) ) * - 61 - 33
----
-2230

skipif mysql # not compatible
query I rowsort label-1401
SELECT 94 / - 55 + MAX ( ALL ( 36 ) ) * - 61 - 33
----
-2230

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + 31 * + NULLIF ( COUNT( DISTINCT + ( 94 ) ), + 33 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1402
SELECT + 31 * + NULLIF ( COUNT ( DISTINCT + ( 94 ) ), + 33 ) AS col2
----
31

query I rowsort
SELECT 3 * + 12 + 93 + + 95 * - 47
----
-4336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1404
SELECT ALL - 72 DIV COALESCE ( + + MIN( - 80 ), + 56 + + 18, + 71 * + 16 ) DIV - 16 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 72 / COALESCE ( + + MIN ( - 80 ), + 56 + + 18, + 71 * + 16 ) / - 16 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - COUNT( * ) + + + NULLIF ( 58, - 34 + AVG ( ALL 73 ) * 47 ) + + 56 * ( + 23 * - 36 )
----
-46311

skipif mysql # not compatible
query I rowsort label-1405
SELECT - COUNT ( * ) + + + NULLIF ( 58, - 34 + AVG ( ALL 73 ) * 47 ) + + 56 * ( + 23 * - 36 )
----
-46311

query I rowsort
SELECT - 0 + - 45
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1407
SELECT ALL - 55 DIV + - 50 + + 45 + + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - 55 / + - 50 + + 45 + + COUNT ( * ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-1408
SELECT 21 AS col2, 42 + + 32 + 40 DIV - 51
----
21
74

skipif mysql # not compatible
query II rowsort label-1408
SELECT 21 AS col2, 42 + + 32 + 40 / - 51
----
21
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT NULLIF ( + + 1, + + CAST( NULL AS SIGNED ) ) * 16 + + 77
----
93

skipif mysql # not compatible
query I rowsort label-1409
SELECT NULLIF ( + + 1, + + CAST ( NULL AS INTEGER ) ) * 16 + + 77
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT + 8, - COUNT( * ) + - + ( + 92 ) AS col0
----
8
-93

skipif mysql # not compatible
query II rowsort label-1410
SELECT + 8, - COUNT ( * ) + - + ( + 92 ) AS col0
----
8
-93

query II rowsort
SELECT ALL - 0, + COALESCE ( - 31, - 87 ) - 0 AS col1
----
0
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT DISTINCT + 95 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT + 95 + - COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT ( + 65 ) * 91
----
5915

query I rowsort
SELECT DISTINCT - 32 + - 94 AS col2
----
-126

query I rowsort
SELECT ALL + 77 + - 85 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT DISTINCT + 59 + - 24 + 21 + + MIN( ALL 33 - 42 ) * 13 DIV 78 * - 18
----
74

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + 59 + - 24 + 21 + + MIN ( ALL 33 - 42 ) * 13 / 78 * - 18
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT 33 DIV - ( 10 )
----
-3

skipif mysql # not compatible
query I rowsort label-1418
SELECT 33 / - ( 10 )
----
-3

query I rowsort
SELECT ALL + 2 - + 6 + 95 * - 82
----
-7794

query I rowsort
SELECT 63 * + 5 - - 28 AS col0
----
343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT + 15 * - NULLIF ( - + 19, + 17 ) - CAST( NULL AS SIGNED ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 15 * - NULLIF ( - + 19, + 17 ) - CAST ( NULL AS INTEGER ) * + 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL - CAST( + NULLIF ( 94, - 92 ) AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - CAST ( + NULLIF ( 94, - 92 ) AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT 40 + + + MAX( DISTINCT - + 98 ) + COUNT( * ) * + 26 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1423
SELECT 40 + + + MAX ( DISTINCT - + 98 ) + COUNT ( * ) * + 26 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - + SUM( - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1424
SELECT - + SUM ( - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1425
SELECT DISTINCT - - COUNT( * ) * + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1426
SELECT CAST ( NULL AS REAL ) * + COUNT ( * ) + + 8
----
NULL

query I rowsort
SELECT 89 * 24
----
2136

query I rowsort
SELECT ALL 63 * 58
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT + 28 * - COUNT( * ) - - 93 + + 9 col0
----
74

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + 28 * - COUNT ( * ) - - 93 + + 9 col0
----
74

query I rowsort
SELECT DISTINCT + + 56 * + 33
----
1848

query I rowsort
SELECT 81 - 77 AS col2
----
4

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

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

query I rowsort
SELECT - + NULLIF ( + + 89, + - 78 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT COUNT( DISTINCT + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-1434
SELECT COUNT ( DISTINCT + 31 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1435
SELECT - ( - NULLIF ( - 37, + CAST( - 50 AS DECIMAL ) ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1435
SELECT - ( - NULLIF ( - 37, + CAST ( - 50 AS REAL ) ) ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 89 + + + 40 - - 64 DIV + 29
----
131

skipif mysql # not compatible
query I rowsort label-1436
SELECT 89 + + + 40 - - 64 / + 29
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - COALESCE ( 6, + - MAX( ALL - 80 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - COALESCE ( 6, + - MAX ( ALL - 80 ) )
----
-6

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

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

query I rowsort
SELECT - 96 + + ( + 31 ) + - 71 * 33 AS col1
----
-2408

query I rowsort
SELECT DISTINCT - 1 + - 18 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT COALESCE ( + + 22, + COUNT( * ) DIV + COALESCE ( 6 * COUNT( * ), 71, NULLIF ( 54, + 71 + 21 ), - NULLIF ( - CAST( NULL AS SIGNED ), + 47 + 4 * + 20 ) * - 69 ) - MIN( ( 7 ) ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT COALESCE ( + + 22, + COUNT ( * ) / + COALESCE ( 6 * COUNT ( * ), 71, NULLIF ( 54, + 71 + 21 ), - NULLIF ( - CAST ( NULL AS INTEGER ), + 47 + 4 * + 20 ) * - 69 ) - MIN ( ( 7 ) ) ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT NULLIF ( - ( - 13 ), + ( 53 ) ) DIV - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1442
SELECT NULLIF ( - ( - 13 ), + ( 53 ) ) / - COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT DISTINCT 60 * + 33 AS col0, SUM( + ( + 76 ) ) AS col1
----
1980
76

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT 60 * + 33 AS col0, SUM ( + ( + 76 ) ) AS col1
----
1980
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT ( - 62 ) + - + SUM( - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT ( - 62 ) + - + SUM ( - 63 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL 95 + 46 * - 24 + + 52 + 77 * + CAST( 95 + 91 AS SIGNED ) * 43
----
614889

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL 95 + 46 * - 24 + + 52 + 77 * + CAST ( 95 + 91 AS INTEGER ) * 43
----
614889

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

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

query I rowsort
SELECT NULLIF ( 32, + - 44 ) - 86
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT CASE WHEN NOT COUNT( DISTINCT 31 ) IS NOT NULL THEN + 73 * + COALESCE ( CASE + 21 WHEN 5 THEN 63 ELSE NULL END, - COUNT( * ) ) WHEN NOT NULL <= NULL THEN NULL ELSE + 36 * - ( ( - 44 ) ) + + 83 END * + COUNT( * ) AS col1
----
1667

skipif mysql # not compatible
query I rowsort label-1448
SELECT CASE WHEN NOT COUNT ( DISTINCT 31 ) IS NOT NULL THEN + 73 * + COALESCE ( CASE + 21 WHEN 5 THEN 63 ELSE NULL END, - COUNT ( * ) ) WHEN NOT NULL <= NULL THEN NULL ELSE + 36 * - ( ( - 44 ) ) + + 83 END * + COUNT ( * ) AS col1
----
1667

query I rowsort
SELECT - 90 * - 92 * 86 * - + 77 - 86
----
-54830246

query I rowsort
SELECT 74 * - 42
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT NULLIF ( + 2, 11 * - - 92 / 79 + 46 * + SUM( 92 + 70 ) + - ( + COUNT( * ) ) ) + - 23 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1451
SELECT NULLIF ( + 2, 11 * - - 92 / 79 + 46 * + SUM ( 92 + 70 ) + - ( + COUNT ( * ) ) ) + - 23 AS col1
----
-21

query I rowsort
SELECT ALL 53 + - COALESCE ( + 78, - - 92 ) AS col1
----
-25

query I rowsort
SELECT ALL ( 97 ) * - 62 * 37 - 99 * + 3 AS col0
----
-222815

query I rowsort
SELECT 64 - - 64 AS col1
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1455
SELECT DISTINCT 58 - + + 13 * + ( + + COUNT( * ) ) DIV + 94
----
58

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT 58 - + + 13 * + ( + + COUNT ( * ) ) / + 94
----
58

query I rowsort
SELECT ALL + 73 * - - 14
----
1022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1457
SELECT CAST( + + 0 AS SIGNED ) * - + ( 34 ) + MAX( DISTINCT 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1457
SELECT CAST ( + + 0 AS INTEGER ) * - + ( 34 ) + MAX ( DISTINCT 12 ) AS col2
----
12

query I rowsort
SELECT ALL 93 - - 66
----
159

query I rowsort
SELECT 35 + - 73 * + 73
----
-5294

query II rowsort
SELECT ALL + - 58 * + 22 col1, 71 + + 3
----
-1276
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1461
SELECT + ( - - CASE - + 98 WHEN + NULLIF ( COALESCE ( - 50, + 54 / 98 ), ( CASE + ( COUNT( * ) ) WHEN - 78 THEN NULL ELSE - ( 0 ) END ) * + 5 + - 91 * + CAST( - COALESCE ( 0, CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) THEN NULL WHEN 78 / + 91 THEN - CASE 31 WHEN 29 * + COUNT( * ) THEN NULL WHEN 52 THEN NULL ELSE + 74 + - 9 END END ) * COUNT( * ) + + 0 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT + ( - - CASE - + 98 WHEN + NULLIF ( COALESCE ( - 50, + 54 / 98 ), ( CASE + ( COUNT ( * ) ) WHEN - 78 THEN NULL ELSE - ( 0 ) END ) * + 5 + - 91 * + CAST ( - COALESCE ( 0, CAST ( NULL AS INTEGER ) ) AS REAL ) ) THEN NULL WHEN 78 / + 91 THEN - CASE 31 WHEN 29 * + COUNT ( * ) THEN NULL WHEN 52 THEN NULL ELSE + 74 + - 9 END END ) * COUNT ( * ) + + 0 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT 24 - + 53 - - - 53 DIV + + 97 * 22 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1462
SELECT 24 - + 53 - - - 53 / + + 97 * 22 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT - CASE + + 76 WHEN + COUNT( * ) THEN - - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - CASE + + 76 WHEN + COUNT ( * ) THEN - - 50 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL COALESCE ( + 55, + ( + 44 ), + CAST( NULL AS SIGNED ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL COALESCE ( + 55, + ( + 44 ), + CAST ( NULL AS INTEGER ) ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT ALL - - 83 DIV + 42 + - MAX( + 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - - 83 / + 42 + - MAX ( + 99 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1466
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0, + NULLIF ( NULLIF ( - CAST( NULL AS DECIMAL ), - 79 * + 99 + 73 * + NULLIF ( 30, + 31 ) ), - 97 ) / 76 - - 42 * + 85 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0, + NULLIF ( NULLIF ( - CAST ( NULL AS REAL ), - 79 * + 99 + 73 * + NULLIF ( 30, + 31 ) ), - 97 ) / 76 - - 42 * + 85 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT COUNT( - - ( + 38 ) ) * + 20 * 49 AS col2
----
980

skipif mysql # not compatible
query I rowsort label-1467
SELECT COUNT ( - - ( + 38 ) ) * + 20 * 49 AS col2
----
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1468
SELECT ALL - 63 DIV - 10 + + + SUM( ( - 5 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 63 / - 10 + + + SUM ( ( - 5 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT - 10 + - - 38 + - + COUNT( * ) + COUNT( * ) DIV 1 * ( - 86 )
----
-59

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 10 + - - 38 + - + COUNT ( * ) + COUNT ( * ) / 1 * ( - 86 )
----
-59

query I rowsort
SELECT 3 * + - 83 AS col1
----
-249

query I rowsort
SELECT 6 + + + 11 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - SUM( ALL 98 ) * + 16 * + + 90 * - COALESCE ( 20, + 37 + 9 * 79 )
----
2822400

skipif mysql # not compatible
query I rowsort label-1472
SELECT - SUM ( ALL 98 ) * + 16 * + + 90 * - COALESCE ( 20, + 37 + 9 * 79 )
----
2822400

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT ALL - 3 + + 34 DIV + + 61 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - 3 + + 34 / + + 61 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT MIN( DISTINCT - 40 ) + - - 92
----
52

skipif mysql # not compatible
query I rowsort label-1474
SELECT MIN ( DISTINCT - 40 ) + - - 92
----
52

query I rowsort
SELECT ALL + 40 + - 58
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 1 + + + MIN( + 56 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 1 + + + MIN ( + 56 ) AS col1
----
57

query I rowsort
SELECT - 13 + + - 93 AS col2
----
-106

query II rowsort
SELECT 27 AS col2, 85 AS col0
----
27
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1479
SELECT + COUNT( * ) * - 75 * - 66 - - CAST( - - 93 AS SIGNED ) AS col1
----
5043

skipif mysql # not compatible
query I rowsort label-1479
SELECT + COUNT ( * ) * - 75 * - 66 - - CAST ( - - 93 AS INTEGER ) AS col1
----
5043

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - 23 * + - NULLIF ( + + 87, 29 + + COUNT( * ) ) + 98
----
2099

skipif mysql # not compatible
query I rowsort label-1480
SELECT - 23 * + - NULLIF ( + + 87, 29 + + COUNT ( * ) ) + 98
----
2099

query I rowsort
SELECT + 47 + + 10 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL MIN( DISTINCT 6 ) * + 75 - + 38 * - 19
----
1172

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL MIN ( DISTINCT 6 ) * + 75 - + 38 * - 19
----
1172

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + CASE + 81 WHEN 44 - + + 34 THEN NULL WHEN 46 * 62 THEN NULL WHEN - COUNT( * ) + 31 THEN NULL ELSE - 48 END
----
-48

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + CASE + 81 WHEN 44 - + + 34 THEN NULL WHEN 46 * 62 THEN NULL WHEN - COUNT ( * ) + 31 THEN NULL ELSE - 48 END
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT + 73 / 55 + 33 + CAST( NULL AS SIGNED ) * + 1 * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT + 73 / 55 + 33 + CAST ( NULL AS INTEGER ) * + 1 * 24
----
NULL

query I rowsort
SELECT + 11 + - 63 + + 98
----
46

query I rowsort
SELECT ALL 91 * + 16 - - + 96
----
1552

query I rowsort
SELECT + 29 * - 17 * - 39
----
19227

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT + CASE 87 WHEN + NULLIF ( + 57, - + ( 63 ) ) * 73 + + 81 THEN NULL WHEN - 74 / 14 THEN 18 * + COUNT( * ) ELSE NULL END * - 72 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT + CASE 87 WHEN + NULLIF ( + 57, - + ( 63 ) ) * 73 + + 81 THEN NULL WHEN - 74 / 14 THEN 18 * + COUNT ( * ) ELSE NULL END * - 72 + + 83
----
NULL

query I rowsort
SELECT CASE WHEN NOT NULLIF ( + 25, + 79 ) <= + 16 * 26 THEN - 40 * 40 + + 36 ELSE + 63 + + 48 * + 8 END AS col0
----
447

query II rowsort
SELECT ALL 11 * 45 * + 84 AS col1, 59
----
41580
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ( - 9 ) * 45 + - CASE COUNT( * ) WHEN 65 THEN - COUNT( * ) WHEN - ( + 94 ) THEN NULL WHEN 35 * 63 THEN NULL END * 85 + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT ( - 9 ) * 45 + - CASE COUNT ( * ) WHEN 65 THEN - COUNT ( * ) WHEN - ( + 94 ) THEN NULL WHEN 35 * 63 THEN NULL END * 85 + 81 AS col0
----
NULL

query I rowsort
SELECT + + ( 91 ) * - 53 AS col2
----
-4823

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + NULLIF ( - - ( + - 99 ), + COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-1494
SELECT + NULLIF ( - - ( + - 99 ), + COUNT ( * ) )
----
-99

query II rowsort
SELECT ALL + 70 AS col2, - 79 AS col2
----
70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + - MIN( ALL 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + - MIN ( ALL 18 ) col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT - 22 * 68 + - 43 DIV - 72 + - + ( + 7 ) + CASE 58 WHEN COALESCE ( - 2, + 48 + + 16 ) THEN NULL ELSE + 39 + - 38 END * 65
----
-1438

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 22 * 68 + - 43 / - 72 + - + ( + 7 ) + CASE 58 WHEN COALESCE ( - 2, + 48 + + 16 ) THEN NULL ELSE + 39 + - 38 END * 65
----
-1438

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

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

query I rowsort
SELECT - 42 * - + ( + 46 ) AS col2
----
1932

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

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

query I rowsort
SELECT + 81 * - + 73 col2
----
-5913

query I rowsort
SELECT DISTINCT + 76 + 83 - + - 43
----
202

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

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

query I rowsort
SELECT - - 7 + + 65 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT DISTINCT + 93 AS col0, + 90 * MIN( DISTINCT - 6 ) col1
----
93
-540

skipif mysql # not compatible
query II rowsort label-1505
SELECT DISTINCT + 93 AS col0, + 90 * MIN ( DISTINCT - 6 ) col1
----
93
-540

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1506
SELECT DISTINCT 96 + 7 / CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT 96 + 7 / CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 47 + 48 AS col2
----
95

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

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

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

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

query II rowsort
SELECT 31, 6 + - + 39 AS col1
----
31
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1511
SELECT ALL - CAST( - + ( - 46 ) AS SIGNED ) DIV 30
----
-1

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - CAST ( - + ( - 46 ) AS INTEGER ) / 30
----
-1

query I rowsort
SELECT - 95 * + 69
----
-6555

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT ALL + 8 - 40 + - 10 + 52 + 77 * + 3 * + CASE 74 WHEN - ( + 54 ) / + COUNT( * ) THEN NULL WHEN 2 / + 96 THEN + 87 WHEN CAST( NULL AS SIGNED ) / + CAST( - 2 AS SIGNED ) THEN - 19 END + COUNT( * ) * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 8 - 40 + - 10 + 52 + 77 * + 3 * + CASE 74 WHEN - ( + 54 ) / + COUNT ( * ) THEN NULL WHEN 2 / + 96 THEN + 87 WHEN CAST ( NULL AS INTEGER ) / + CAST ( - 2 AS INTEGER ) THEN - 19 END + COUNT ( * ) * + 92 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 91 * - 25 col0
----
2275

query I rowsort
SELECT DISTINCT + COALESCE ( 50, + + 2, - - 83 - + 80 + + 48 * + 31 ) col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT + 63 DIV - + 99 - + NULLIF ( + + 84, + 33 + 84 ) * COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + 63 / - + 99 - + NULLIF ( + + 84, + 33 + 84 ) * COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1518
SELECT ALL 19 DIV + 45 * + 30 - - 10 col2, - COUNT( * )
----
10
-1

skipif mysql # not compatible
query II rowsort label-1518
SELECT ALL 19 / + 45 * + 30 - - 10 col2, - COUNT ( * )
----
10
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1519
SELECT CAST( NULL AS SIGNED ) AS col2, + 23 * COUNT( * ) + - - 45
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1519
SELECT CAST ( NULL AS INTEGER ) AS col2, + 23 * COUNT ( * ) + - - 45
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - 99 - - CASE - 42 WHEN - + 68 + 95 + 1 + - MIN( ALL 26 + + 27 ) THEN + 53 * COUNT( + 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 99 - - CASE - 42 WHEN - + 68 + 95 + 1 + - MIN ( ALL 26 + + 27 ) THEN + 53 * COUNT ( + 70 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + 5 * 6 DIV + - ( 39 )
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT + 5 * 6 / + - ( 39 )
----
0

query I rowsort
SELECT DISTINCT - 73 * - - 78 * + 43 AS col1
----
-244842

query II rowsort
SELECT ALL + ( + 22 ) AS col1, + 30
----
22
30

query I rowsort
SELECT + ( + + 23 ) * + 97 + 40
----
2271

query I rowsort
SELECT - 69 * ( 24 ) AS col2
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL + COUNT( * ) * + 81 + + + ( - - 39 ) + + 52 * ( 75 ) + 7 AS col1
----
4027

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + COUNT ( * ) * + 81 + + + ( - - 39 ) + + 52 * ( 75 ) + 7 AS col1
----
4027

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - - 57 * 78 - + ( - - COALESCE ( 11, 69 * 29 + 67 ) ) + COUNT( * ) col2
----
4436

skipif mysql # not compatible
query I rowsort label-1527
SELECT - - 57 * 78 - + ( - - COALESCE ( 11, 69 * 29 + 67 ) ) + COUNT ( * ) col2
----
4436

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT + 17 + - SUM( + + 99 ) + 64 AS col1, + 86 * - + 59 + + 47 * - 21 AS col2
----
-18
-6061

skipif mysql # not compatible
query II rowsort label-1528
SELECT + 17 + - SUM ( + + 99 ) + 64 AS col1, + 86 * - + 59 + + 47 * - 21 AS col2
----
-18
-6061

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL + + 78 * + + 61 - + 36 + - COUNT( * ) + 47 * + 96
----
9233

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + + 78 * + + 61 - + 36 + - COUNT ( * ) + 47 * + 96
----
9233

query I rowsort
SELECT - 70 + CASE 61 WHEN - + 67 THEN NULL ELSE - 2 * + + 6 END AS col1
----
-82

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT + 42 * - CASE - 49 WHEN - 52 + + ( - - 41 ) THEN + 91 / - 17 + + COUNT( * ) * + 47 END * - COUNT( * ) + + 41 * + MIN( - 67 ) + + ( 64 ) * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT + 42 * - CASE - 49 WHEN - 52 + + ( - - 41 ) THEN + 91 / - 17 + + COUNT ( * ) * + 47 END * - COUNT ( * ) + + 41 * + MIN ( - 67 ) + + ( 64 ) * 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1535
SELECT + + NULLIF ( - - 19, - + COUNT( * ) + - - 79 ) DIV - + COUNT( * ) + - 13 + - ( 14 + - 55 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1535
SELECT + + NULLIF ( - - 19, - + COUNT ( * ) + - - 79 ) / - + COUNT ( * ) + - 13 + - ( 14 + - 55 ) AS col1
----
9

query I rowsort
SELECT + 15 * - + 93
----
-1395

query I rowsort
SELECT DISTINCT + - 27 * - 0 + ( + + 56 )
----
56

query I rowsort
SELECT DISTINCT ( + 42 ) AS col2
----
42

query I rowsort
SELECT + 81 + 12 AS col0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-1540
SELECT 65 - + 56 DIV - + 79, 45 + 75 + - 91 * - + 89 * 14 + + 28 AS col1
----
65
113534

skipif mysql # not compatible
query II rowsort label-1540
SELECT 65 - + 56 / - + 79, 45 + 75 + - 91 * - + 89 * 14 + + 28 AS col1
----
65
113534

query II rowsort
SELECT 68 * - + 48, 4 AS col0
----
-3264
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT 74 DIV - 10 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1542
SELECT 74 / - 10 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL 77 - 91 + + - 74 * - + 13 * + COUNT( * ) + - + COUNT( * ) AS col0
----
947

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL 77 - 91 + + - 74 * - + 13 * + COUNT ( * ) + - + COUNT ( * ) AS col0
----
947

query I rowsort
SELECT ALL 41 * - ( + 88 ) AS col0
----
-3608

query I rowsort
SELECT 74 + + 76 + 81
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT ( - 79 ) / + CASE COUNT( 54 ) WHEN 76 * - ( 59 ) THEN 74 ELSE NULLIF ( CAST( + ( 22 ) AS SIGNED ), 44 ) * + CASE 32 WHEN + COUNT( * ) + - 98 THEN - 56 / + 31 END END + - CAST( CAST( 66 AS SIGNED ) - + COUNT( * ) AS SIGNED ) * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT ( - 79 ) / + CASE COUNT ( 54 ) WHEN 76 * - ( 59 ) THEN 74 ELSE NULLIF ( CAST ( + ( 22 ) AS INTEGER ), 44 ) * + CASE 32 WHEN + COUNT ( * ) + - 98 THEN - 56 / + 31 END END + - CAST ( CAST ( 66 AS INTEGER ) - + COUNT ( * ) AS INTEGER ) * 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT + 32 DIV 78 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + 32 / 78 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT 73 * + + 80 * - MIN( 73 )
----
-426320

skipif mysql # not compatible
query I rowsort label-1548
SELECT 73 * + + 80 * - MIN ( 73 )
----
-426320

query I rowsort
SELECT 9 + + 67 AS col0
----
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT 80 DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-1551
SELECT 80 / + 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT - COUNT( * ) * 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - COUNT ( * ) * 85 AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL + 88 + - + CAST( + + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + 88 + - + CAST ( + + 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL - MIN( DISTINCT 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL - MIN ( DISTINCT 7 ) AS col0
----
-7

query I rowsort
SELECT - 88 + 30
----
-58

query I rowsort
SELECT DISTINCT - - 47 + - 37
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1557
SELECT + 54 * + COUNT( * ) col2, ( + ( - 5 ) ) DIV - 76 AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-1557
SELECT + 54 * + COUNT ( * ) col2, ( + ( - 5 ) ) / - 76 AS col0
----
54
0

query I rowsort
SELECT ALL + + 5 + - 77 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL 34 + COALESCE ( - - MAX( DISTINCT - + 13 ), 29 * - 47 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL 34 + COALESCE ( - - MAX ( DISTINCT - + 13 ), 29 * - 47 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT ALL - 35 * + 10 + - - 27 * + - CAST( + 85 AS SIGNED ) AS col0
----
-2645

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - 35 * + 10 + - - 27 * + - CAST ( + 85 AS INTEGER ) AS col0
----
-2645

query II rowsort
SELECT 81 + - - 19 AS col2, 81 * + 26 AS col1
----
100
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL + 24 * - + 0 + - 45 AS col2, - 96 - - - COUNT( * ) AS col1
----
-45
-97

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + 24 * - + 0 + - 45 AS col2, - 96 - - - COUNT ( * ) AS col1
----
-45
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT + MAX ( 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT 30 - + 89 + + 93 DIV - 29 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1565
SELECT 30 - + 89 + + 93 / - 29 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + 53 * - 85 + 34 * + 33 * + - COUNT( * ) * - + 26 + 55 col2
----
24722

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 53 * - 85 + 34 * + 33 * + - COUNT ( * ) * - + 26 + 55 col2
----
24722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1567
SELECT MAX( CAST( + 97 AS SIGNED ) ) * + + 24
----
2328

skipif mysql # not compatible
query I rowsort label-1567
SELECT MAX ( CAST ( + 97 AS INTEGER ) ) * + + 24
----
2328

query II rowsort
SELECT ALL 34, NULLIF ( + 19, - - 59 * - - 59 + + - 88 + 24 * - + 24 / - 64 ) col0
----
34
19

query I rowsort
SELECT DISTINCT + 63 * - + 69 AS col2
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT - ( + 99 ) * + 13 * ( 59 ) * - - MAX( - 45 )
----
3416985

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - ( + 99 ) * + 13 * ( 59 ) * - - MAX ( - 45 )
----
3416985

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1572
SELECT 86, CAST( + 50 AS SIGNED ) + 38 + 10 + - 15 + - COUNT( * ) - + 81 DIV 2 DIV + 93 AS col2
----
86
82

skipif mysql # not compatible
query II rowsort label-1572
SELECT 86, CAST ( + 50 AS INTEGER ) + 38 + 10 + - 15 + - COUNT ( * ) - + 81 / 2 / + 93 AS col2
----
86
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT 54 - - NULLIF ( - + COUNT( * ), - ( 14 ) + 32 * + 87 ) + + + 70 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1573
SELECT 54 - - NULLIF ( - + COUNT ( * ), - ( 14 ) + 32 * + 87 ) + + + 70 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT MIN( 92 ) * 29
----
2668

skipif mysql # not compatible
query I rowsort label-1574
SELECT MIN ( 92 ) * 29
----
2668

query I rowsort
SELECT ALL 34 + - + 20
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1576
SELECT 86 AS col2, SUM( 30 ) * NULLIF ( + ( + - 59 ), + + 36 / + - 60 ) AS col2
----
86
-1770

skipif mysql # not compatible
query II rowsort label-1576
SELECT 86 AS col2, SUM ( 30 ) * NULLIF ( + ( + - 59 ), + + 36 / + - 60 ) AS col2
----
86
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL MAX( + + 93 ) * 32
----
2976

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL MAX ( + + 93 ) * 32
----
2976

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

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

query II rowsort
SELECT + COALESCE ( - 55, 16 ) AS col1, 20
----
-55
20

query I rowsort
SELECT 47 - 51 col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT ALL + ( + - 99 ) DIV 64
----
-1

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + ( + - 99 ) / 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT + + SUM( - 68 ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-1582
SELECT + + SUM ( - 68 ) col0
----
-68

query I rowsort
SELECT ALL - 48 * 3 * + COALESCE ( 65, 50 + 42 * 4 ) + 10 AS col0
----
-9350

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT DISTINCT + 12 * + 39 + + COUNT( * ) * + 88 AS col0, 40 * - SUM( 2 ) col0
----
556
-80

skipif mysql # not compatible
query II rowsort label-1584
SELECT DISTINCT + 12 * + 39 + + COUNT ( * ) * + 88 AS col0, 40 * - SUM ( 2 ) col0
----
556
-80

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

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

query II rowsort
SELECT DISTINCT + - 62 AS col1, 95 + 34 AS col1
----
-62
129

query I rowsort
SELECT 75 * - 50 + - 16 AS col2
----
-3766

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1588
SELECT ALL + 93 AS col2, CAST( NULL AS SIGNED ) - - 61
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1588
SELECT ALL + 93 AS col2, CAST ( NULL AS INTEGER ) - - 61
----
93
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT - - SUM( DISTINCT - 72 ) * COUNT( * ) DIV ( - ( 93 ) ) - - SUM( DISTINCT - + 17 ) - + ( 19 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1589
SELECT - - SUM ( DISTINCT - 72 ) * COUNT ( * ) / ( - ( 93 ) ) - - SUM ( DISTINCT - + 17 ) - + ( 19 ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1590
SELECT COALESCE ( - + 22, + 92 DIV - CAST( NULL AS SIGNED ) - + - 55, + - ( - - COUNT( * ) ), + + 87 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1590
SELECT COALESCE ( - + 22, + 92 / - CAST ( NULL AS INTEGER ) - + - 55, + - ( - - COUNT ( * ) ), + + 87 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT + 81 * + - 57 + - + COUNT( ALL - CAST( + + 82 AS SIGNED ) )
----
-4618

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 81 * + - 57 + - + COUNT ( ALL - CAST ( + + 82 AS INTEGER ) )
----
-4618

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT + 14 AS col1, - COUNT( * ) * + 76 + - 50 AS col2
----
14
-126

skipif mysql # not compatible
query II rowsort label-1592
SELECT + 14 AS col1, - COUNT ( * ) * + 76 + - 50 AS col2
----
14
-126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT 89 * - CASE + - COUNT( * ) WHEN - COALESCE ( 3, 55, - + 23, 57 + + 64 * 60 ) + - SUM( DISTINCT + 80 ) THEN + 55 / 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT 89 * - CASE + - COUNT ( * ) WHEN - COALESCE ( 3, 55, - + 23, 57 + + 64 * 60 ) + - SUM ( DISTINCT + 80 ) THEN + 55 / 97 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT - ( - 21 ) DIV 96 DIV + 55 + + - 94 + 14 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1595
SELECT - ( - 21 ) / 96 / + 55 + + - 94 + 14 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT ALL CASE + COUNT( * ) WHEN + 97 * - 70 * - 37 + - - 58 + - - AVG ( + 90 ) + + AVG ( DISTINCT - 92 ) + + MAX( ALL - 38 ) * 87 THEN CAST( + 49 AS SIGNED ) / 12 + - 82 ELSE 69 END AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL CASE + COUNT ( * ) WHEN + 97 * - 70 * - 37 + - - 58 + - - AVG ( + 90 ) + + AVG ( DISTINCT - 92 ) + + MAX ( ALL - 38 ) * 87 THEN CAST ( + 49 AS INTEGER ) / 12 + - 82 ELSE 69 END AS col2
----
69

query I rowsort
SELECT ALL NULLIF ( 39, - + 7 - - 57 ) AS col1
----
39

query I rowsort
SELECT - 0 + - 3 + + 27 + 84 + - + 87
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT + 65 DIV - - 72
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 65 / - - 72
----
0

query I rowsort
SELECT - 76 + - 63 - 61 + + 85 * - + 29 * + - 33
----
81145

query I rowsort
SELECT + 82 - 62
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1602
SELECT DISTINCT 88 * + CAST( NULL AS SIGNED ) AS col1, 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1602
SELECT DISTINCT 88 * + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1
----
NULL
21

query I rowsort
SELECT ALL 47 * - - 87 col1
----
4089

query II rowsort
SELECT DISTINCT ( - + 67 ) AS col1, + 84 + + 75 AS col2
----
-67
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT COUNT( * ) + - CAST( - 49 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT COUNT ( * ) + - CAST ( - 49 AS INTEGER ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1606
SELECT + 75 + - COUNT( * ) * 43 * ( CASE + + COUNT( * ) WHEN + + 69 THEN + 45 * 57 DIV 12 WHEN 76 + 97 THEN NULL ELSE + MAX( + 7 ) + - CASE 4 WHEN + 41 THEN 50 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) + 24 END END ) * 57 - - 71 * 31 AS col1
----
46394

skipif mysql # not compatible
query I rowsort label-1606
SELECT + 75 + - COUNT ( * ) * 43 * ( CASE + + COUNT ( * ) WHEN + + 69 THEN + 45 * 57 / 12 WHEN 76 + 97 THEN NULL ELSE + MAX ( + 7 ) + - CASE 4 WHEN + 41 THEN 50 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) + 24 END END ) * 57 - - 71 * 31 AS col1
----
46394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT - 1 DIV + NULLIF ( + 1, 42 ) + + 21 + + NULLIF ( + COUNT( * ), - 14 )
----
21

skipif mysql # not compatible
query I rowsort label-1607
SELECT - 1 / + NULLIF ( + 1, 42 ) + + 21 + + NULLIF ( + COUNT ( * ), - 14 )
----
21

query I rowsort
SELECT ALL + - CASE + 10 WHEN - 37 * ( + - 46 ) THEN AVG ( ALL - 68 ) WHEN - 16 * + ( + 7 ) THEN 65 * 38 + + 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL 66 * - - COUNT( * ) * + 66 AS col2
----
4356

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL 66 * - - COUNT ( * ) * + 66 AS col2
----
4356

query I rowsort
SELECT + 36 * 13 * 47 AS col1
----
21996

query I rowsort
SELECT - 6 + - 17
----
-23

query I rowsort
SELECT + ( - ( - 92 ) ) col1
----
92

query I rowsort
SELECT ALL - 90 * 82 + - 15 AS col0
----
-7395

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT + NULLIF ( + + 98, - 44 * - COUNT( * ) * 72 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + NULLIF ( + + 98, - 44 * - COUNT ( * ) * 72 ) AS col1
----
98

query I rowsort
SELECT ALL + - CASE 93 WHEN - 26 THEN NULL WHEN - - 89 / + 56 THEN 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - NULLIF ( - COUNT( * ), NULLIF ( 94, 28 * + - 31 + + - ( 25 ) ) ) * + ( + 14 ) + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1616
SELECT - NULLIF ( - COUNT ( * ), NULLIF ( 94, 28 * + - 31 + + - ( 25 ) ) ) * + ( + 14 ) + + COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT 2 * 42 + - 23 + 90 + - + COUNT( * ) + - - CASE - + 82 WHEN CAST( NULL AS SIGNED ) + + 5 THEN + 72 + 46 * + 28 ELSE 69 + - COUNT( * ) END + - 63 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1617
SELECT 2 * 42 + - 23 + 90 + - + COUNT ( * ) + - - CASE - + 82 WHEN CAST ( NULL AS INTEGER ) + + 5 THEN + 72 + 46 * + 28 ELSE 69 + - COUNT ( * ) END + - 63 AS col0
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT - 22 * + 68 AS col0, MIN( - + 39 ) col0
----
-1496
-39

skipif mysql # not compatible
query II rowsort label-1618
SELECT - 22 * + 68 AS col0, MIN ( - + 39 ) col0
----
-1496
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT MIN( DISTINCT 35 ), + 91 AS col0
----
35
91

skipif mysql # not compatible
query II rowsort label-1619
SELECT MIN ( DISTINCT 35 ), + 91 AS col0
----
35
91

query I rowsort
SELECT + - NULLIF ( + 29, ( + 88 ) * 17 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + - MAX( DISTINCT - - 70 ) * - COALESCE ( CASE - 90 WHEN - - 98 - + COUNT( ALL + 54 ) + - 36 / 35 THEN + 93 ELSE ( 38 ) + COUNT( * ) END, + 21 ) col1
----
2730

skipif mysql # not compatible
query I rowsort label-1621
SELECT + - MAX ( DISTINCT - - 70 ) * - COALESCE ( CASE - 90 WHEN - - 98 - + COUNT ( ALL + 54 ) + - 36 / 35 THEN + 93 ELSE ( 38 ) + COUNT ( * ) END, + 21 ) col1
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1622
SELECT ALL - 41 * 78 * - + CASE - 76 WHEN - NULLIF ( + - 9, - - ( + 81 ) * CAST( NULL AS DECIMAL ) + + 21 * 48 ) THEN NULL ELSE + 4 * CAST( COALESCE ( + 92, COUNT( * ) ) * - 90 AS SIGNED ) + 8 END AS col0
----
-105892176

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - 41 * 78 * - + CASE - 76 WHEN - NULLIF ( + - 9, - - ( + 81 ) * CAST ( NULL AS REAL ) + + 21 * 48 ) THEN NULL ELSE + 4 * CAST ( COALESCE ( + 92, COUNT ( * ) ) * - 90 AS INTEGER ) + 8 END AS col0
----
-105892176

query I rowsort
SELECT DISTINCT + 45 * 64 AS col1
----
2880

query I rowsort
SELECT COALESCE ( - ( + - ( - 17 ) ), + + 77 + - - 29 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1625
SELECT - CAST( + 89 AS SIGNED ) * - + 72 * + 64 + MIN( NULLIF ( + + 93, 53 * + 72 * + CAST( NULL AS DECIMAL ) ) ) + - SUM( DISTINCT COALESCE ( - 73, + 39 - - 44, 52 ) )
----
410278

skipif mysql # not compatible
query I rowsort label-1625
SELECT - CAST ( + 89 AS INTEGER ) * - + 72 * + 64 + MIN ( NULLIF ( + + 93, 53 * + 72 * + CAST ( NULL AS REAL ) ) ) + - SUM ( DISTINCT COALESCE ( - 73, + 39 - - 44, 52 ) )
----
410278

query I rowsort
SELECT DISTINCT + 46 * - 97 AS col1
----
-4462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT - CASE - 48 WHEN - + 78 * + + 53 * + 16 + - - 54 + 32 + 93 + + - 80 * - - 59 + 49 * 42 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) END + + 59 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT - CASE - 48 WHEN - + 78 * + + 53 * + 16 + - - 54 + 32 + 93 + + - 80 * - - 59 + 49 * 42 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END + + 59 / - 13
----
NULL

query I rowsort
SELECT DISTINCT - 46 * 49
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1629
SELECT ALL + 55 + - 10 DIV + 98, 33 - COUNT( * ) AS col2
----
55
32

skipif mysql # not compatible
query II rowsort label-1629
SELECT ALL + 55 + - 10 / + 98, 33 - COUNT ( * ) AS col2
----
55
32

query I rowsort
SELECT DISTINCT + 74 + 11 + + 64 + - + 97 * + 17 col2
----
-1500

query I rowsort
SELECT ALL + 56 + COALESCE ( - 20, 60 * 76, + ( 89 ) * - 5 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT - NULLIF ( COUNT( * ), CAST( + 84 AS SIGNED ) ) - - + 44 * 29 AS col2
----
1275

skipif mysql # not compatible
query I rowsort label-1632
SELECT - NULLIF ( COUNT ( * ), CAST ( + 84 AS INTEGER ) ) - - + 44 * 29 AS col2
----
1275

query I rowsort
SELECT - 87 - + - 15
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT - ( - COUNT( * ) ) * 33
----
33

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - ( - COUNT ( * ) ) * 33
----
33

query I rowsort
SELECT + 81 * + 40
----
3240

query I rowsort
SELECT ALL 51 * + 59 AS col1
----
3009

query I rowsort
SELECT - - 58 * - 91
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT - ( - MIN( - 92 ) ) * - 93
----
8556

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - ( - MIN ( - 92 ) ) * - 93
----
8556

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT + 61 * + CAST( + + 88 AS SIGNED )
----
5368

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT + 61 * + CAST ( + + 88 AS INTEGER )
----
5368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL - SUM( - 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - SUM ( - 16 ) col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1644
SELECT + CAST( NULL AS DECIMAL ) - + + SUM( DISTINCT + 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT + CAST ( NULL AS REAL ) - + + SUM ( DISTINCT + 93 ) AS col2
----
NULL

query I rowsort
SELECT 66 * - 96 * + 38 + 41 - - 43 * + 46
----
-238749

query I rowsort
SELECT + 50 + - 88
----
-38

query II rowsort
SELECT ALL 42 * 29 + + 98 AS col1, ( + - 73 )
----
1316
-73

query I rowsort
SELECT DISTINCT 51 * + + 37 + - 18 * + - 40 AS col1
----
2607

query I rowsort
SELECT DISTINCT - 63 + - 65
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1650
SELECT COUNT( ALL 48 ) DIV 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( ALL 48 ) / 8 AS col1
----
0

query I rowsort
SELECT ALL 71 + + - 21 * - + NULLIF ( - 30, - - 0 ) AS col0
----
-559

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT MAX( ALL + + 49 ) * + ( + ( + + 49 ) )
----
2401

skipif mysql # not compatible
query I rowsort label-1652
SELECT MAX ( ALL + + 49 ) * + ( + ( + + 49 ) )
----
2401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT MIN( DISTINCT + 81 ) DIV MAX( ALL + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1653
SELECT MIN ( DISTINCT + 81 ) / MAX ( ALL + 9 ) AS col0
----
9

query I rowsort
SELECT 9 * - - 25
----
225

query I rowsort
SELECT ALL 35 + 13
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + 69 + ( + 77 ) * + 42 * - - COUNT( * )
----
3303

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + 69 + ( + 77 ) * + 42 * - - COUNT ( * )
----
3303

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL 12 DIV - 32 col2
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 12 / - 32 col2
----
0

query I rowsort
SELECT DISTINCT 70 + + + 59 + + 45 * + - 68 AS col0
----
-2931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT ALL - ( 66 ) * 15 / - 53 * + + MAX( CAST( NULL AS SIGNED ) ) * - 56 - + COALESCE ( + 50, 6 + 28 + 58, MIN( - 25 ) + CAST( + CASE + COUNT( * ) WHEN - 43 * 19 THEN 85 * - CASE 2 WHEN COUNT( * ) + - 94 THEN 46 END - - ( + 40 ) WHEN + 5 + + 93 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 49 + 88 * + COUNT( * ) END AS SIGNED ), - COUNT( * ) ) * CASE COUNT( * ) WHEN 86 + 95 * + COUNT( * ) THEN NULLIF ( COUNT( * ), 44 ) / 14 ELSE 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - ( 66 ) * 15 / - 53 * + + MAX ( CAST ( NULL AS INTEGER ) ) * - 56 - + COALESCE ( + 50, 6 + 28 + 58, MIN ( - 25 ) + CAST ( + CASE + COUNT ( * ) WHEN - 43 * 19 THEN 85 * - CASE 2 WHEN COUNT ( * ) + - 94 THEN 46 END - - ( + 40 ) WHEN + 5 + + 93 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 49 + 88 * + COUNT ( * ) END AS INTEGER ), - COUNT ( * ) ) * CASE COUNT ( * ) WHEN 86 + 95 * + COUNT ( * ) THEN NULLIF ( COUNT ( * ), 44 ) / 14 ELSE 0 END
----
NULL

query I rowsort
SELECT 8 * + 35 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL 5 + + MIN( - COALESCE ( - + 57, + - 3 ) )
----
62

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 5 + + MIN ( - COALESCE ( - + 57, + - 3 ) )
----
62

query II rowsort
SELECT - 64, - 3 AS col2
----
-64
-3

query I rowsort
SELECT ( + 79 ) + + 36 AS col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1664
SELECT 98 + + COUNT( * ) - + 42 * + + CAST( NULL AS SIGNED ), - 64 AS col2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-1664
SELECT 98 + + COUNT ( * ) - + 42 * + + CAST ( NULL AS INTEGER ), - 64 AS col2
----
NULL
-64

query I rowsort
SELECT 34 - + 5 AS col1
----
29

query I rowsort
SELECT 8 + - 28 * + 13
----
-356

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1667
SELECT 39 AS col1, 87 DIV ( + + 1 ) + - - MAX( ALL 38 )
----
39
125

skipif mysql # not compatible
query II rowsort label-1667
SELECT 39 AS col1, 87 / ( + + 1 ) + - - MAX ( ALL 38 )
----
39
125

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

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

query II rowsort
SELECT DISTINCT + 30 AS col0, 23
----
30
23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1671
SELECT ALL - 91, NULLIF ( + + 23, + + SUM( ALL - - 1 ) ) * - - 15 * - + MIN( 51 ) + + + 47 + 53 AS col2
----
-91
-17495

skipif mysql # not compatible
query II rowsort label-1671
SELECT ALL - 91, NULLIF ( + + 23, + + SUM ( ALL - - 1 ) ) * - - 15 * - + MIN ( 51 ) + + + 47 + 53 AS col2
----
-91
-17495

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT + NULLIF ( + - 32, - COUNT( * ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + NULLIF ( + - 32, - COUNT ( * ) ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL - ( + COALESCE ( 83, - + 20 * - 81, CAST( MAX( - 8 ) AS SIGNED ) - - 12 ) ) * - 27 * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - ( + COALESCE ( 83, - + 20 * - 81, CAST ( MAX ( - 8 ) AS INTEGER ) - - 12 ) ) * - 27 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - 54 + 33 * - 70 - + + 98 + ( + 61 ) * + 74 * + 92 * + + COUNT( * ) AS col0
----
412826

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 54 + 33 * - 70 - + + 98 + ( + 61 ) * + 74 * + 92 * + + COUNT ( * ) AS col0
----
412826

query I rowsort
SELECT + 63 * + 65
----
4095

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

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - + 21 / + COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - + ( + SUM( DISTINCT - + 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1677
SELECT - + ( + SUM ( DISTINCT - + 13 ) ) AS col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1678
SELECT - - CAST( NULL AS DECIMAL ), - 62 AS col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-1678
SELECT - - CAST ( NULL AS REAL ), - 62 AS col1
----
NULL
-62

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

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

query I rowsort
SELECT CASE - 63 WHEN ( - - 49 ) * - + 97 + - 9 + 14 THEN + 90 WHEN - ( AVG ( ALL - + 41 ) ) THEN 59 END AS col0
----
NULL

query I rowsort
SELECT - 30 * - + 30 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT + MIN( 50 ) col0
----
50

skipif mysql # not compatible
query I rowsort label-1682
SELECT + MIN ( 50 ) col0
----
50

query I rowsort
SELECT DISTINCT + 63 * - 46
----
-2898

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

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

query I rowsort
SELECT ALL - + 91 + - 32
----
-123

query II rowsort
SELECT ALL - 55 * + - 28, - 70 * - - 21 AS col1
----
1540
-1470

query I rowsort
SELECT + 79 * - ( + - 7 ) AS col1
----
553

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT + 72, 63 * + ( - + 84 ) + + + CASE - COUNT( * ) WHEN - 60 THEN - - COUNT( * ) WHEN + 3 THEN NULL ELSE + 44 - - 97 END * MAX( ALL - 17 - - 70 * + 74 ) AS col1
----
72
722691

skipif mysql # not compatible
query II rowsort label-1688
SELECT + 72, 63 * + ( - + 84 ) + + + CASE - COUNT ( * ) WHEN - 60 THEN - - COUNT ( * ) WHEN + 3 THEN NULL ELSE + 44 - - 97 END * MAX ( ALL - 17 - - 70 * + 74 ) AS col1
----
72
722691

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT COUNT( * ) DIV - 13 - + + 90 * + 45 AS col0
----
-4050

skipif mysql # not compatible
query I rowsort label-1690
SELECT COUNT ( * ) / - 13 - + + 90 * + 45 AS col0
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT CASE - + 64 WHEN - 12 THEN COALESCE ( ( + 98 ), + 15 * 2 ) + + MIN( + ( 13 ) ) + + 93 + + MAX( DISTINCT 25 ) * - CASE + 22 * - MIN( 54 ) WHEN - CASE + 89 WHEN - 53 THEN NULL ELSE COUNT( * ) + - 66 / 26 END THEN NULL WHEN 89 THEN COUNT( ALL COALESCE ( 40, 76 ) ) ELSE NULL END ELSE NULL END * 93 + + MIN( ALL + 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT CASE - + 64 WHEN - 12 THEN COALESCE ( ( + 98 ), + 15 * 2 ) + + MIN ( + ( 13 ) ) + + 93 + + MAX ( DISTINCT 25 ) * - CASE + 22 * - MIN ( 54 ) WHEN - CASE + 89 WHEN - 53 THEN NULL ELSE COUNT ( * ) + - 66 / 26 END THEN NULL WHEN 89 THEN COUNT ( ALL COALESCE ( 40, 76 ) ) ELSE NULL END ELSE NULL END * 93 + + MIN ( ALL + 78 ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - + 59, + + 33 ) * + 87 + 35 AS col0
----
5168

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT DISTINCT MIN( - 86 ) + - 31 + 21 * + 69, COALESCE ( - 69, + 89 ) AS col2
----
1332
-69

skipif mysql # not compatible
query II rowsort label-1693
SELECT DISTINCT MIN ( - 86 ) + - 31 + 21 * + 69, COALESCE ( - 69, + 89 ) AS col2
----
1332
-69

query I rowsort
SELECT ALL 24 * ( 12 ) AS col0
----
288

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

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

query I rowsort
SELECT - 69 * - 49 * + + 91 + ( 32 ) - + - 54
----
307757

query I rowsort
SELECT ALL 64 + 99 + 15 AS col2
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT COUNT( * ) * - 56 * - 98 * + COALESCE ( - - SUM( - - 9 ), + 98 + + 31, - - COALESCE ( + 77, - 54, 27 ) ) AS col0
----
49392

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT COUNT ( * ) * - 56 * - 98 * + COALESCE ( - - SUM ( - - 9 ), + 98 + + 31, - - COALESCE ( + 77, - 54, 27 ) ) AS col0
----
49392

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT MIN( - 19 ) * - + 10 * + 9 * + + 78 * 91
----
12137580

skipif mysql # not compatible
query I rowsort label-1699
SELECT MIN ( - 19 ) * - + 10 * + 9 * + + 78 * 91
----
12137580

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - COUNT( ALL - 6 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1700
SELECT - COUNT ( ALL - 6 ) AS col0
----
-1

query I rowsort
SELECT 34 + ( 30 ) * - 40 AS col2
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT 43 + COALESCE ( - 55, + 14 + + COUNT( + 36 ) + + 49 + - - 92 * + 21, + 54 * 40 ) + - 1 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1702
SELECT 43 + COALESCE ( - 55, + 14 + + COUNT ( + 36 ) + + 49 + - - 92 * + 21, + 54 * 40 ) + - 1 AS col1
----
-13

query I rowsort
SELECT ALL 52 - 14 * + 2 + + + 29 + 59 * - - 10
----
643

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

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

query I rowsort
SELECT ( - 66 ) * 68 col1
----
-4488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1706
SELECT + 34 DIV + - 26 AS col2, MIN( + 89 ) AS col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-1706
SELECT + 34 / + - 26 AS col2, MIN ( + 89 ) AS col0
----
-1
89

query I rowsort
SELECT - NULLIF ( 41, - - NULLIF ( 20, - 69 + + 26 ) ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT 90 DIV - COUNT( * ) + + - ( - 25 ) + - + COALESCE ( + 44, 57 ) - 82 DIV SUM( ALL - + 71 ) * + - 90 + + - 26 AS col0
----
-225

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT 90 / - COUNT ( * ) + + - ( - 25 ) + - + COALESCE ( + 44, 57 ) - 82 / SUM ( ALL - + 71 ) * + - 90 + + - 26 AS col0
----
-225

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

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

query I rowsort
SELECT ALL - 11 * 42
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT DISTINCT - - COUNT( + 74 ) * + COALESCE ( AVG ( + 98 ), 75, 16 ) * COUNT( * ) + + ( + 62 ) + - 70 - NULLIF ( CAST( NULL AS SIGNED ), 13 ) / - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT - - COUNT ( + 74 ) * + COALESCE ( AVG ( + 98 ), 75, 16 ) * COUNT ( * ) + + ( + 62 ) + - 70 - NULLIF ( CAST ( NULL AS INTEGER ), 13 ) / - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1712
SELECT + 18 * - - 0 + + + ( 4 ) + + 16, + COALESCE ( - 69, NULLIF ( - + COUNT( * ), - 20 - 46 ) DIV + - 32 ) + ( + 33 + + 84 ) AS col2
----
20
48

skipif mysql # not compatible
query II rowsort label-1712
SELECT + 18 * - - 0 + + + ( 4 ) + + 16, + COALESCE ( - 69, NULLIF ( - + COUNT ( * ), - 20 - 46 ) / + - 32 ) + ( + 33 + + 84 ) AS col2
----
20
48

query I rowsort
SELECT - CASE 1 WHEN - 44 THEN 11 + 98 END
----
NULL

query I rowsort
SELECT ALL 2 + - 26 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + COALESCE ( - 84, 36, + ( 56 ) * COUNT( * ) * - + 95 + 70 ) * + 97 + - + 26 - + - 11 AS col1
----
-8163

skipif mysql # not compatible
query I rowsort label-1715
SELECT + COALESCE ( - 84, 36, + ( 56 ) * COUNT ( * ) * - + 95 + 70 ) * + 97 + - + 26 - + - 11 AS col1
----
-8163

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT ALL AVG ( ALL ( - CAST( NULL AS SIGNED ) ) ) * - - 24 + + 61 * + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL AVG ( ALL ( - CAST ( NULL AS INTEGER ) ) ) * - - 24 + + 61 * + - 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT 5 DIV - 89 + - - 22 + 11
----
33

skipif mysql # not compatible
query I rowsort label-1718
SELECT 5 / - 89 + - - 22 + 11
----
33

query I rowsort
SELECT 69 * 79 - - 65 + + - 35 col0
----
5481

query II rowsort
SELECT + 31 col1, + 84 AS col2
----
31
84

query I rowsort
SELECT + 60 * + 82
----
4920

query I rowsort
SELECT - COALESCE ( 3, + 72 - - - 88 ) * 29 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT 3 * ( ( + - 0 ) ) + 21 * - 25 * + + COUNT( * )
----
-525

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT 3 * ( ( + - 0 ) ) + 21 * - 25 * + + COUNT ( * )
----
-525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT COALESCE ( - + 42, + COALESCE ( 82, + - 76 - + CAST( NULL AS SIGNED ), - + 4 ), 77 * - 15 + + 61 + 74 + + 42 * MIN( - 89 ) - - ( + 47 - 89 * ( 65 * 55 ) ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1724
SELECT COALESCE ( - + 42, + COALESCE ( 82, + - 76 - + CAST ( NULL AS INTEGER ), - + 4 ), 77 * - 15 + + 61 + 74 + + 42 * MIN ( - 89 ) - - ( + 47 - 89 * ( 65 * 55 ) ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT - 64 + - + SUM( DISTINCT 46 ), + 81 AS col2
----
-110
81

skipif mysql # not compatible
query II rowsort label-1725
SELECT - 64 + - + SUM ( DISTINCT 46 ), + 81 AS col2
----
-110
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT DISTINCT + 14 * 64 - - 80 + + + ( - ( + 6 ) ) * + COUNT( 34 ) + + 6 AS col2
----
976

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + 14 * 64 - - 80 + + + ( - ( + 6 ) ) * + COUNT ( 34 ) + + 6 AS col2
----
976

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + NULLIF ( + 88, SUM( DISTINCT - 69 ) * 55 + - 25 * + 31 / - 18 + - + COUNT( DISTINCT + ( + 38 ) ) / 71 )
----
88

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + NULLIF ( + 88, SUM ( DISTINCT - 69 ) * 55 + - 25 * + 31 / - 18 + - + COUNT ( DISTINCT + ( + 38 ) ) / 71 )
----
88

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

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

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

query I rowsort
SELECT DISTINCT 88 * - 63
----
-5544

query I rowsort
SELECT + 36 * 87 + - 54 col1
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + 45 - - - COUNT( * ) + - 33 * - COUNT( * ) + 13 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 45 - - - COUNT ( * ) + - 33 * - COUNT ( * ) + 13 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT ALL - 80 + CAST( NULL AS SIGNED ) * 28 * - 50 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - 80 + CAST ( NULL AS INTEGER ) * 28 * - 50 * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - NULLIF ( NULLIF ( + 48, + 95 * + - 65 ), COUNT( * ) / + AVG ( ALL 76 ) * + 78 )
----
-48

skipif mysql # not compatible
query I rowsort label-1734
SELECT - NULLIF ( NULLIF ( + 48, + 95 * + - 65 ), COUNT ( * ) / + AVG ( ALL 76 ) * + 78 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL + ( ( + CAST( + 69 AS SIGNED ) ) ) + 78 * 84 + - ( - 51 ) - - COUNT( * ) * 25 AS col1
----
6697

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + ( ( + CAST ( + 69 AS INTEGER ) ) ) + 78 * 84 + - ( - 51 ) - - COUNT ( * ) * 25 AS col1
----
6697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT CAST( AVG ( + 86 ) AS SIGNED ) + + 25 + NULLIF ( - 88, - 35 )
----
23

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT CAST ( AVG ( + 86 ) AS INTEGER ) + + 25 + NULLIF ( - 88, - 35 )
----
23

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

query I rowsort
SELECT + - 19 + - + 2 AS col0
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1741
SELECT - - 44 AS col0, 0 DIV 13 * + - COALESCE ( - + 23, + + NULLIF ( - + 91, - + 20 ) * COUNT( * ) * - 68 + + 87 ) * - - 25
----
44
0

skipif mysql # not compatible
query II rowsort label-1741
SELECT - - 44 AS col0, 0 / 13 * + - COALESCE ( - + 23, + + NULLIF ( - + 91, - + 20 ) * COUNT ( * ) * - 68 + + 87 ) * - - 25
----
44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT 31 * 53 * + COUNT( * ) * - - 9 - 67 AS col1
----
14720

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT 31 * 53 * + COUNT ( * ) * - - 9 - 67 AS col1
----
14720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT + 56 AS col0, CAST( + 14 AS SIGNED ) * + 49 AS col2
----
56
686

skipif mysql # not compatible
query II rowsort label-1743
SELECT + 56 AS col0, CAST ( + 14 AS INTEGER ) * + 49 AS col2
----
56
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT + 19 * - - COUNT( * ) / - ( + - 23 ) + - - CAST( NULL AS SIGNED ) * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 19 * - - COUNT ( * ) / - ( + - 23 ) + - - CAST ( NULL AS INTEGER ) * + 31 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + COALESCE ( + 4, COUNT( * ) + + - 12 + + 83 * 41 )
----
4

skipif mysql # not compatible
query I rowsort label-1746
SELECT + COALESCE ( + 4, COUNT ( * ) + + - 12 + + 83 * 41 )
----
4

query I rowsort
SELECT DISTINCT + 62 * + 70 AS col0
----
4340

onlyif mysql # aggregate syntax: 
query II rowsort label-1748
SELECT ALL 95 * 56 AS col2, - NULLIF ( 35, COUNT( * ) )
----
5320
-35

skipif mysql # not compatible
query II rowsort label-1748
SELECT ALL 95 * 56 AS col2, - NULLIF ( 35, COUNT ( * ) )
----
5320
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT COUNT( * ) / + CASE 10 WHEN COUNT( * ) * 28 THEN + 55 * - + 4 - - 34 + 8 * + + 88 / - 7 END * - COUNT( * ) - - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT COUNT ( * ) / + CASE 10 WHEN COUNT ( * ) * 28 THEN + 55 * - + 4 - - 34 + 8 * + + 88 / - 7 END * - COUNT ( * ) - - - 31
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1750
SELECT DISTINCT - 96 DIV - 21 - 45 * + + 82, - 20 AS col2
----
-3686
-20

skipif mysql # not compatible
query II rowsort label-1750
SELECT DISTINCT - 96 / - 21 - 45 * + + 82, - 20 AS col2
----
-3686
-20

query I rowsort
SELECT DISTINCT + NULLIF ( + 8, + 81 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1752
SELECT + CAST( - 81 AS SIGNED ) * + + 92 + - 64 * 56 col0, - 4 / + CAST( NULL AS SIGNED )
----
-11036
NULL

skipif mysql # not compatible
query II rowsort label-1752
SELECT + CAST ( - 81 AS INTEGER ) * + + 92 + - 64 * 56 col0, - 4 / + CAST ( NULL AS INTEGER )
----
-11036
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1753
SELECT - 76 * 0 DIV + 29 * 15 AS col0, + COUNT( - 48 ) * ( + + 29 ) * 33 * + CASE + COUNT( * ) WHEN 32 THEN - 24 + + 68 END + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1753
SELECT - 76 * 0 / + 29 * 15 AS col0, + COUNT ( - 48 ) * ( + + 29 ) * 33 * + CASE + COUNT ( * ) WHEN 32 THEN - 24 + + 68 END + COUNT ( * )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL + MIN( - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + MIN ( - 73 ) AS col0
----
-73

query I rowsort
SELECT - 23 - - 17
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT - 29 DIV - 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1756
SELECT - 29 / - 18 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1757
SELECT ALL - 38 * + CAST( NULL AS SIGNED ) AS col0, + 87 * 7
----
NULL
609

skipif mysql # not compatible
query II rowsort label-1757
SELECT ALL - 38 * + CAST ( NULL AS INTEGER ) AS col0, + 87 * 7
----
NULL
609

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT ALL 46 DIV + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 46 / + 20 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT - MIN( ALL - + 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - MIN ( ALL - + 80 ) col2
----
80

query I rowsort
SELECT ALL - ( 37 ) * + 39 * + 83 AS col2
----
-119769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT 66 * 63 + + + CAST( + 70 AS SIGNED )
----
4228

skipif mysql # not compatible
query I rowsort label-1761
SELECT 66 * 63 + + + CAST ( + 70 AS INTEGER )
----
4228

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

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

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

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

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

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

query I rowsort
SELECT + 43 + - 31
----
12

query II rowsort
SELECT ALL - - 47 + - 38 AS col1, 2
----
9
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT + - SUM( DISTINCT + 81 ) + + + 14 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + - SUM ( DISTINCT + 81 ) + + + 14 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - COUNT( * ) + - MAX( ALL 3 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - COUNT ( * ) + - MAX ( ALL 3 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1769
SELECT - - NULLIF ( - + 60, + CAST( + COUNT( * ) AS DECIMAL ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1769
SELECT - - NULLIF ( - + 60, + CAST ( + COUNT ( * ) AS REAL ) ) AS col1
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - COUNT( ALL + 7 ) * 78 * - - 37 * + 27
----
-77922

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - COUNT ( ALL + 7 ) * 78 * - - 37 * + 27
----
-77922

query I rowsort
SELECT 25 * + 26 + 89 + + ( + 7 ) AS col1
----
746

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1774
SELECT - 76 - + - 56 + 38 DIV ( + COALESCE ( ( - 28 ), - 59 DIV CAST( NULL AS SIGNED ) + - 52 + + 29 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 76 - + - 56 + 38 / ( + COALESCE ( ( - 28 ), - 59 / CAST ( NULL AS INTEGER ) + - 52 + + 29 ) )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT - - CASE + 91 WHEN 18 * + + 24 THEN NULL WHEN + + 46 + - - 64 + - 71 - - 62 * - 23 - - 31 THEN + CAST( + + 78 AS SIGNED ) * + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT - - CASE + 91 WHEN 18 * + + 24 THEN NULL WHEN + + 46 + - - 64 + - 71 - - 62 * - 23 - - 31 THEN + CAST ( + + 78 AS INTEGER ) * + - 58 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL 20 + + 10 DIV + 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 20 + + 10 / + 21 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT ALL + ( - 94 ) - - CASE COUNT( * ) WHEN 90 THEN - - ( + - 56 ) END AS col0, COUNT( * ) + - 78
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-1777
SELECT ALL + ( - 94 ) - - CASE COUNT ( * ) WHEN 90 THEN - - ( + - 56 ) END AS col0, COUNT ( * ) + - 78
----
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT ALL 13 DIV - + 60
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL 13 / - + 60
----
0

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

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

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

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

query I rowsort
SELECT ALL 65 - - 14 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT 83 DIV - + 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT 83 / - + 21 AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL COALESCE ( + ( - 70 ), - 29 - - 72, + 7 * - - 51 ) * COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL COALESCE ( + ( - 70 ), - 29 - - 72, + 7 * - - 51 ) * COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1785
SELECT 28 * - - ( + + 56 ) DIV COUNT( * ) * + 24 AS col1, 20 * 12
----
37632
240

skipif mysql # not compatible
query II rowsort label-1785
SELECT 28 * - - ( + + 56 ) / COUNT ( * ) * + 24 AS col1, 20 * 12
----
37632
240

query I rowsort
SELECT 11 + + - 72 AS col1
----
-61

query I rowsort
SELECT ALL 5 * + 0
----
0

query I rowsort
SELECT DISTINCT 40 * + + 27 AS col2
----
1080

query I rowsort
SELECT ALL 93 + + 81 AS col0
----
174

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

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

query I rowsort
SELECT ( + 86 ) + 49 - 40 col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT ALL - COALESCE ( + 96, - 90 + + 50 + + 34 * - - COUNT( * ) - - COUNT( * ) * SUM( + 41 ) DIV + + 81, 51 + - 21 * - - 59 DIV + + MIN( DISTINCT + + 35 ) ) * + NULLIF ( 82, - 60 + 15 )
----
-7872

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL - COALESCE ( + 96, - 90 + + 50 + + 34 * - - COUNT ( * ) - - COUNT ( * ) * SUM ( + 41 ) / + + 81, 51 + - 21 * - - 59 / + + MIN ( DISTINCT + + 35 ) ) * + NULLIF ( 82, - 60 + 15 )
----
-7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( - + 86, + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( - + 86, + 95 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * - 16 + + - 39 + 53 - + - 51 THEN - - COUNT( * ) + - - 23 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * - 16 + + - 39 + 53 - + - 51 THEN - - COUNT ( * ) + - - 23 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 91 + - 82
----
-173

query I rowsort
SELECT ALL - + 12 + 24 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1797
SELECT DISTINCT - COUNT( * ) * + + SUM( - 40 ) DIV - COALESCE ( 39, + 73 * - - 30 + 34, + 38 * - COUNT( * ) + + + 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - COUNT ( * ) * + + SUM ( - 40 ) / - COALESCE ( 39, + 73 * - - 30 + 34, + 38 * - COUNT ( * ) + + + 73 ) AS col1
----
-1

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

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

query I rowsort
SELECT + 74 + - - 14
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT CAST( + 53 AS SIGNED ) - - CASE 88 WHEN 7 THEN NULL WHEN + 27 THEN 55 END + - COALESCE ( - 82, - 91 * - 28, 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT CAST ( + 53 AS INTEGER ) - - CASE 88 WHEN 7 THEN NULL WHEN + 27 THEN 55 END + - COALESCE ( - 82, - 91 * - 28, 33 ) AS col0
----
NULL

query I rowsort
SELECT 73 + - 20 * 5
----
-27

query I rowsort
SELECT + 57 - + 87 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL ( CAST( - 23 AS SIGNED ) )
----
-23

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL ( CAST ( - 23 AS INTEGER ) )
----
-23

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

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

query I rowsort
SELECT ALL - - 32 - - 59 * - 18 + + + 91
----
-939

query I rowsort
SELECT ALL - + 65 * + 35 AS col1
----
-2275

query I rowsort
SELECT 42 + 5 - + 21 col2
----
26

query I rowsort
SELECT DISTINCT - 65 * - - 66 AS col2
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL CASE 91 WHEN + 54 THEN NULL WHEN COUNT( * ) THEN - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL CASE 91 WHEN + 54 THEN NULL WHEN COUNT ( * ) THEN - 82 END AS col2
----
NULL

query II rowsort
SELECT - 81 col2, - 43
----
-81
-43

query II rowsort
SELECT 64 AS col1, + 39 AS col2
----
64
39

query II rowsort
SELECT 37, + 36 col0
----
37
36

query II rowsort
SELECT 45 AS col1, 7 + 68 + + 87 col0
----
45
162

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

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

query I rowsort
SELECT CASE 47 WHEN ( + 52 ) THEN + 79 / - 61 WHEN + - 86 THEN NULL ELSE - + 10 * - ( 97 ) END AS col2
----
970

query I rowsort
SELECT + 0 * + - 7 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT + 17 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 17 / - + 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1819
SELECT ALL + CASE + ( - - 84 ) WHEN + COALESCE ( COUNT( * ), + NULLIF ( - COUNT( DISTINCT + NULLIF ( + 79, + + 92 + 4 ) ), + 59 ), - + COUNT( * ) + + 35 ) THEN COUNT( * ) + + CAST( 70 AS DECIMAL ) WHEN CAST( - 42 AS SIGNED ) + + 5 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + CASE + ( - - 84 ) WHEN + COALESCE ( COUNT ( * ), + NULLIF ( - COUNT ( DISTINCT + NULLIF ( + 79, + + 92 + 4 ) ), + 59 ), - + COUNT ( * ) + + 35 ) THEN COUNT ( * ) + + CAST ( 70 AS REAL ) WHEN CAST ( - 42 AS INTEGER ) + + 5 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT ALL + 92 AS col2, 9 AS col2
----
92
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT MAX( + 56 ) DIV COUNT( * ) col1
----
56

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT MAX ( + 56 ) / COUNT ( * ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT COALESCE ( 83, + - COUNT( * ) + + COUNT( * ) + + 9 )
----
83

skipif mysql # not compatible
query I rowsort label-1822
SELECT COALESCE ( 83, + - COUNT ( * ) + + COUNT ( * ) + + 9 )
----
83

query I rowsort
SELECT + 87 + + 83 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1824
SELECT ALL + 5 * + CAST( NULL AS DECIMAL ) + - 62 + + COUNT( * ) * + CASE + ( - 24 ) WHEN 43 THEN NULL WHEN - 74 THEN 38 * + - 13 - + + 19 ELSE NULL END + COUNT( + + 2 ) + 4 + - 87 * 92 * + 7 * - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 5 * + CAST ( NULL AS REAL ) + - 62 + + COUNT ( * ) * + CASE + ( - 24 ) WHEN 43 THEN NULL WHEN - 74 THEN 38 * + - 13 - + + 19 ELSE NULL END + COUNT ( + + 2 ) + 4 + - 87 * 92 * + 7 * - 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1825
SELECT + 34 - - 13 + - MAX( ALL 3 ) * - - 45 * + CAST( NULL AS SIGNED ) * + 57 * - SUM( - 73 ), - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1825
SELECT + 34 - - 13 + - MAX ( ALL 3 ) * - - 45 * + CAST ( NULL AS INTEGER ) * + 57 * - SUM ( - 73 ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT 70 * - 40 + - 32 * - 58 * COUNT( * )
----
-944

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT 70 * - 40 + - 32 * - 58 * COUNT ( * )
----
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT + 10 - + 16 DIV + + 52
----
10

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 10 - + 16 / + + 52
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1828
SELECT ALL + - 39 col2, CAST( - + 71 AS SIGNED ) + + ( - 97 )
----
-39
-168

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL + - 39 col2, CAST ( - + 71 AS INTEGER ) + + ( - 97 )
----
-39
-168

query I rowsort
SELECT + + CASE - 23 WHEN - 1 THEN + 47 * 46 WHEN - + 30 + + + 99 * + - 75 THEN NULL END + + + 65 + - 93 * 26 AS col0
----
NULL

query II rowsort
SELECT + - 86 AS col1, + 31 AS col2
----
-86
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1832
SELECT DISTINCT COUNT( * ) * + COUNT( * ) DIV + 64 * 31 + - COUNT( * ) DIV + + 46 * - 89 AS col0, 98 AS col0
----
0
98

skipif mysql # not compatible
query II rowsort label-1832
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) / + 64 * 31 + - COUNT ( * ) / + + 46 * - 89 AS col0, 98 AS col0
----
0
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT 1 AS col0, + MAX( DISTINCT - 18 )
----
1
-18

skipif mysql # not compatible
query II rowsort label-1833
SELECT 1 AS col0, + MAX ( DISTINCT - 18 )
----
1
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT + 58 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT + 58 / + 70
----
0

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

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

query II rowsort
SELECT - 74, - 37 AS col1
----
-74
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1837
SELECT - CAST( NULL AS DECIMAL ) + + - 47 AS col2, 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1837
SELECT - CAST ( NULL AS REAL ) + + - 47 AS col2, 10 AS col1
----
NULL
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT ALL + 85 - + NULLIF ( MIN( + 81 ), - 30 ) + + - 84 DIV ( + ( 60 ) ) - 55 + - COUNT( * ) * - NULLIF ( - 63, 29 - - 22 * 1 * - ( 68 ) + - 96 * 95 )
----
-115

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + 85 - + NULLIF ( MIN ( + 81 ), - 30 ) + + - 84 / ( + ( 60 ) ) - 55 + - COUNT ( * ) * - NULLIF ( - 63, 29 - - 22 * 1 * - ( 68 ) + - 96 * 95 )
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT - + 80 DIV - SUM( + + COALESCE ( + + 38, - 79 * 15, + 44 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1839
SELECT - + 80 / - SUM ( + + COALESCE ( + + 38, - 79 * 15, + 44 ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT + SUM( DISTINCT + 5 ) * + - 95 + - - 50 * + + COUNT( ALL - 88 ) - - 3
----
-422

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + SUM ( DISTINCT + 5 ) * + - 95 + - - 50 * + + COUNT ( ALL - 88 ) - - 3
----
-422

query I rowsort
SELECT - - 5 * - 76 AS col1
----
-380

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

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

query I rowsort
SELECT ALL + 41 * + 98 AS col1
----
4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT - - CAST( - - COUNT( * ) AS SIGNED ) * MAX( + 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - - CAST ( - - COUNT ( * ) AS INTEGER ) * MAX ( + 45 ) AS col0
----
45

query I rowsort
SELECT ALL + + 0 * + + 2 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - 77 * + COUNT( * ) * MAX( DISTINCT + 49 )
----
-3773

skipif mysql # not compatible
query I rowsort label-1847
SELECT - 77 * + COUNT ( * ) * MAX ( DISTINCT + 49 )
----
-3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT DISTINCT COALESCE ( 1, - + CAST( + 62 AS SIGNED ) + + 38, 79 * - 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT COALESCE ( 1, - + CAST ( + 62 AS INTEGER ) + + 38, 79 * - 61 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT - CAST ( NULL AS INTEGER ) - + 76 / + + 13
----
NULL

query I rowsort
SELECT ALL ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT MIN( ALL - - ( 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT MIN ( ALL - - ( 28 ) ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL - CASE + 48 WHEN SUM( DISTINCT + CAST( + 0 AS SIGNED ) ) * + - 1 + - 57 THEN + 52 END + + - 42 + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - CASE + 48 WHEN SUM ( DISTINCT + CAST ( + 0 AS INTEGER ) ) * + - 1 + - 57 THEN + 52 END + + - 42 + + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL NULLIF ( SUM( + - ( + - 57 ) ), COUNT( * ) ) * - + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL NULLIF ( SUM ( + - ( + - 57 ) ), COUNT ( * ) ) * - + COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT DISTINCT + 34 + ( 55 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + 46 + + 65 + - ( + 78 ) * + - 20 + - COUNT( * ) AS col1
----
1670

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 46 + + 65 + - ( + 78 ) * + - 20 + - COUNT ( * ) AS col1
----
1670

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT ALL + 78 DIV - + 30 + 14 * 41 AS col1
----
572

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + 78 / - + 30 + 14 * 41 AS col1
----
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT 98 DIV + COUNT( * ) + - 98 + NULLIF ( + - MIN( DISTINCT + 9 ), - CAST( NULL AS SIGNED ) * - - 9 * - 2 - + 56 ) + 45
----
36

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT 98 / + COUNT ( * ) + - 98 + NULLIF ( + - MIN ( DISTINCT + 9 ), - CAST ( NULL AS INTEGER ) * - - 9 * - 2 - + 56 ) + 45
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - 10 / - - ( - 53 ) * + + 51 * + 79 * - 38 + - - ( 72 ) * + 57 - - CASE - + 35 WHEN - COUNT( - 9 ) * - + ( - + 0 ) THEN 44 * + CASE 44 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 79 END END * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - 10 / - - ( - 53 ) * + + 51 * + 79 * - 38 + - - ( 72 ) * + 57 - - CASE - + 35 WHEN - COUNT ( - 9 ) * - + ( - + 0 ) THEN 44 * + CASE 44 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 79 END END * 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1859
SELECT DISTINCT MIN( - 25 ) DIV - ( - + 86 ) + + 82 AS col2, - CASE - 0 WHEN - - CASE - 24 WHEN + 84 * - 41 THEN NULL ELSE COUNT( + 23 ) END THEN - COUNT( * ) * 49 * - 50 + + 93 WHEN - 72 * 10 THEN NULL ELSE NULL END + + 51
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1859
SELECT DISTINCT MIN ( - 25 ) / - ( - + 86 ) + + 82 AS col2, - CASE - 0 WHEN - - CASE - 24 WHEN + 84 * - 41 THEN NULL ELSE COUNT ( + 23 ) END THEN - COUNT ( * ) * 49 * - 50 + + 93 WHEN - 72 * 10 THEN NULL ELSE NULL END + + 51
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1860
SELECT ALL 41 DIV + 97 + 41 * - - CAST( - - SUM( ALL - 23 ) AS SIGNED )
----
-943

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 41 / + 97 + 41 * - - CAST ( - - SUM ( ALL - 23 ) AS INTEGER )
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1861
SELECT DISTINCT 57 DIV - + 67 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT 57 / - + 67 * + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + - SUM( ALL 6 ) * 98
----
-588

skipif mysql # not compatible
query I rowsort label-1862
SELECT + - SUM ( ALL 6 ) * 98
----
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1863
SELECT ALL - 41 * CAST( - - 65 AS SIGNED ) + 1 * + + MIN( ALL + - 30 ) DIV - 51
----
-2665

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - 41 * CAST ( - - 65 AS INTEGER ) + 1 * + + MIN ( ALL + - 30 ) / - 51
----
-2665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT - - 92 * + 11 - 5 * + 83 / + - CAST( NULL AS SIGNED ) * - - 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT - - 92 * + 11 - 5 * + 83 / + - CAST ( NULL AS INTEGER ) * - - 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + COALESCE ( - + MIN( DISTINCT + 99 ), COALESCE ( COUNT( * ), NULLIF ( - 50, + COUNT( ALL 63 ) ) * 17 + + - 82, - 91 * + ( 73 ) + - 12 + - + 74 ) ) * + 75 col0
----
-7425

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COALESCE ( - + MIN ( DISTINCT + 99 ), COALESCE ( COUNT ( * ), NULLIF ( - 50, + COUNT ( ALL 63 ) ) * 17 + + - 82, - 91 * + ( 73 ) + - 12 + - + 74 ) ) * + 75 col0
----
-7425

query I rowsort
SELECT ALL 73 * + - ( + + 41 )
----
-2993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1867
SELECT + COALESCE ( + + 40, + 36 - 41, 81 * - MIN( - + 83 ) * + CAST( NULL AS SIGNED ) + + + NULLIF ( - 68, - COUNT( ALL - + COALESCE ( - - 74, 62 ) ) ) ) + - 77 col2, 52 col2
----
-37
52

skipif mysql # not compatible
query II rowsort label-1867
SELECT + COALESCE ( + + 40, + 36 - 41, 81 * - MIN ( - + 83 ) * + CAST ( NULL AS INTEGER ) + + + NULLIF ( - 68, - COUNT ( ALL - + COALESCE ( - - 74, 62 ) ) ) ) + - 77 col2, 52 col2
----
-37
52

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

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

query II rowsort
SELECT ALL 86 * 44 col0, 99 - - - 75 col1
----
3784
24

query I rowsort
SELECT + 56 + + + 89 AS col0
----
145

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT ALL - 45 * - - 67 + - 9 + + 69 DIV ( + - 11 ) * - - 17
----
-3126

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - 45 * - - 67 + - 9 + + 69 / ( + - 11 ) * - - 17
----
-3126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT + COUNT( + 4 ) * + - COUNT( * ) + - 53 DIV COUNT( * ) + 52
----
-2

skipif mysql # not compatible
query I rowsort label-1873
SELECT + COUNT ( + 4 ) * + - COUNT ( * ) + - 53 / COUNT ( * ) + 52
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT + 58 + - - CAST( NULL AS SIGNED ) * - MIN( ALL + 82 ) col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1875
SELECT - COALESCE ( CASE - 80 WHEN + + CASE - 30 WHEN + + 49 * - CAST( MIN( ALL 98 ) AS SIGNED ) * - COUNT( * ) - - COUNT( * ) * + 78 THEN NULL WHEN COUNT( * ) + - + 27 THEN + CASE 31 WHEN + 87 THEN 66 * - 54 WHEN + 33 THEN 7 ELSE + ( - 15 ) END WHEN - 73 - + 68 THEN NULL END THEN ( + ( 50 ) ) ELSE NULL END, - 23 + CASE + 92 WHEN 95 + - CASE + 77 + - 83 * 89 WHEN COUNT( * ) + 6 THEN NULL WHEN - 25 + CAST( NULL AS SIGNED ) THEN + 88 * + ( 81 ) WHEN - 51 THEN NULL END THEN COUNT( * ) * + 9 ELSE NULL END, 83 ) DIV - 36 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1875
SELECT - COALESCE ( CASE - 80 WHEN + + CASE - 30 WHEN + + 49 * - CAST ( MIN ( ALL 98 ) AS INTEGER ) * - COUNT ( * ) - - COUNT ( * ) * + 78 THEN NULL WHEN COUNT ( * ) + - + 27 THEN + CASE 31 WHEN + 87 THEN 66 * - 54 WHEN + 33 THEN 7 ELSE + ( - 15 ) END WHEN - 73 - + 68 THEN NULL END THEN ( + ( 50 ) ) ELSE NULL END, - 23 + CASE + 92 WHEN 95 + - CASE + 77 + - 83 * 89 WHEN COUNT ( * ) + 6 THEN NULL WHEN - 25 + CAST ( NULL AS INTEGER ) THEN + 88 * + ( 81 ) WHEN - 51 THEN NULL END THEN COUNT ( * ) * + 9 ELSE NULL END, 83 ) / - 36 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT + 72 + - - 69 DIV - 28 + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 72 + - - 69 / - 28 + - COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - 42 - + COUNT( * ) + COUNT( * ) - - 94 * 23 AS col2
----
2120

skipif mysql # not compatible
query I rowsort label-1877
SELECT - 42 - + COUNT ( * ) + COUNT ( * ) - - 94 * 23 AS col2
----
2120

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT - 13 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 13 / - 29
----
0

query I rowsort
SELECT ALL NULLIF ( - 18, + 94 ) * + 4 + 81
----
9

query I rowsort
SELECT + 24 + - 28 AS col1
----
-4

query I rowsort
SELECT 37 + + + 29 col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT DISTINCT COUNT( * ) DIV 23 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT COUNT ( * ) / 23 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT + ( - COUNT( * ) ) * + 37 * - ( + - 4 )
----
-148

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT + ( - COUNT ( * ) ) * + 37 * - ( + - 4 )
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT 21 DIV + - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT 21 / + - 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT 41 + CAST( - + 65 AS SIGNED ) + + + 1
----
-23

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 41 + CAST ( - + 65 AS INTEGER ) + + + 1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL MIN( + 81 ) + + - MAX( DISTINCT - + 63 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL MIN ( + 81 ) + + - MAX ( DISTINCT - + 63 ) AS col2
----
144

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

skipif mysql # not compatible
query II rowsort label-1887
SELECT 19, + COUNT ( * ) col0
----
19
1

query I rowsort
SELECT 17 * - + 17 AS col0
----
-289

query II rowsort
SELECT 27, 41 * - 92 AS col1
----
27
-3772

query II rowsort
SELECT ALL 2 col1, - 27 AS col1
----
2
-27

query I rowsort
SELECT ALL + 21 + + NULLIF ( 40, - + 8 )
----
61

query I rowsort
SELECT 33 + - ( + 63 ) * 34 AS col0
----
-2109

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

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

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

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - SUM ( - - 27 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1895
SELECT ALL - 78, - 29 DIV + - ( - + COUNT( * ) ) AS col1
----
-78
-29

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL - 78, - 29 / + - ( - + COUNT ( * ) ) AS col1
----
-78
-29

query II rowsort
SELECT ALL + 85 + 41 + + - 14 AS col0, + 54 AS col2
----
112
54

onlyif mysql # DIV for integer division: 
query II rowsort label-1897
SELECT DISTINCT - 20 AS col1, 94 + 1 DIV 65 AS col0
----
-20
94

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT - 20 AS col1, 94 + 1 / 65 AS col0
----
-20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL + 76 * 1 * MIN( DISTINCT + 25 ) AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 76 * 1 * MIN ( DISTINCT + 25 ) AS col1
----
1900

query I rowsort
SELECT DISTINCT + 4 - - 45 AS col2
----
49

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

query I rowsort
SELECT 48 - 59
----
-11

query I rowsort
SELECT ALL - 66 - 20
----
-86

query I rowsort
SELECT DISTINCT + 7 * + 26
----
182

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - MAX ( - - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL - COALESCE ( - + COALESCE ( + 46, + 55, + 46 ), + 47 * + 16 + + - MAX( ALL 43 ) * - 69, ( - 95 ) - + 23 + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL - COALESCE ( - + COALESCE ( + 46, + 55, + 46 ), + 47 * + 16 + + - MAX ( ALL 43 ) * - 69, ( - 95 ) - + 23 + COUNT ( * ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + ( - + MIN( ALL - ( - 74 ) ) ) * + 72
----
-5328

skipif mysql # not compatible
query I rowsort label-1906
SELECT + ( - + MIN ( ALL - ( - 74 ) ) ) * + 72
----
-5328

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL 6 DIV - - 50 + - - 60 + - 7 + + 81 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL 6 / - - 50 + - - 60 + - 7 + + 81 AS col1
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1908
SELECT - 76 + 7 + - + 44, 56 DIV 82 + + 99 * - - 25 * 50 DIV COUNT( * ) + - 79 AS col1
----
-113
123671

skipif mysql # not compatible
query II rowsort label-1908
SELECT - 76 + 7 + - + 44, 56 / 82 + + 99 * - - 25 * 50 / COUNT ( * ) + - 79 AS col1
----
-113
123671

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT COUNT( * ) * - + 72 * 3 * - 44 + - 54 AS col0
----
9450

skipif mysql # not compatible
query I rowsort label-1909
SELECT COUNT ( * ) * - + 72 * 3 * - 44 + - 54 AS col0
----
9450

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT ALL - - 58 DIV 74 * + COALESCE ( + 88, + - 22 ) * - + COUNT( * ) + - 0 + - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - - 58 / 74 * + COALESCE ( + 88, + - 22 ) * - + COUNT ( * ) + - 0 + - + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - 3 * - MAX( ALL 60 )
----
180

skipif mysql # not compatible
query I rowsort label-1913
SELECT - 3 * - MAX ( ALL 60 )
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1914
SELECT - COUNT( * ) * CASE - 85 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + + CAST( NULL AS DECIMAL ) * + COUNT( * ) + + 65 - COUNT( + - 29 ) THEN + + 60 ELSE - COUNT( ALL - - 66 ) * 8 END col0
----
8

skipif mysql # not compatible
query I rowsort label-1914
SELECT - COUNT ( * ) * CASE - 85 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + CAST ( NULL AS REAL ) * + COUNT ( * ) + + 65 - COUNT ( + - 29 ) THEN + + 60 ELSE - COUNT ( ALL - - 66 ) * 8 END col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL ( - ( - + COUNT( * ) ) ) * + 76 + + 10 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL ( - ( - + COUNT ( * ) ) ) * + 76 + + 10 AS col2
----
86

query I rowsort
SELECT ALL + 52 + + + 48 + - + 44 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT CAST( NULL AS SIGNED ) + - SUM( ALL 71 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT ALL 65 + - 37 + - 83 + + 52 DIV + 29
----
-54

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL 65 + - 37 + - 83 + + 52 / + 29
----
-54

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

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

query I rowsort
SELECT ALL ( - + 21 ) + + + 35
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1921
SELECT 17 - - + 70 + + - 56 + - 47 AS col2, CAST( NULL AS SIGNED )
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-1921
SELECT 17 - - + 70 + + - 56 + - 47 AS col2, CAST ( NULL AS INTEGER )
----
-16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT ( + ( + 94 ) ) + + + COUNT( * ) DIV - 44
----
94

skipif mysql # not compatible
query I rowsort label-1922
SELECT ( + ( + 94 ) ) + + + COUNT ( * ) / - 44
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT 62 * - COALESCE ( + 13, - COUNT( * ) ) * + + 99
----
-79794

skipif mysql # not compatible
query I rowsort label-1923
SELECT 62 * - COALESCE ( + 13, - COUNT ( * ) ) * + + 99
----
-79794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT COUNT( * ) + - 7 - - - 37 DIV + 88 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1924
SELECT COUNT ( * ) + - 7 - - - 37 / + 88 AS col0
----
-6

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

skipif mysql # not compatible
query I rowsort label-1925
SELECT - MIN ( + + 54 )
----
-54

query I rowsort
SELECT 46 + + + 1 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1927
SELECT ALL 93 + + ( COALESCE ( ( + 93 ), + 8 * + + 48 + - COUNT( * ), - 46 ) ) - 53 + - 62 * 17 DIV + 41
----
108

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 93 + + ( COALESCE ( ( + 93 ), + 8 * + + 48 + - COUNT ( * ), - 46 ) ) - 53 + - 62 * 17 / + 41
----
108

query I rowsort
SELECT 52 * + 30 * - 32 col2
----
-49920

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT - 45 * COUNT( * ) * + - 69 * COUNT( * ) * - + COUNT( * )
----
-3105

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - 45 * COUNT ( * ) * + - 69 * COUNT ( * ) * - + COUNT ( * )
----
-3105

query I rowsort
SELECT 71 + - 13 * 85 - + 26 - + + 77
----
-1137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1931
SELECT ALL COUNT( * ) * + 9 - 28 * - 53, + AVG ( 93 ) + - - NULLIF ( ( - CAST( + 85 AS SIGNED ) ), + ( - - 85 ) * - COUNT( + 82 ) ) AS col1
----
1493
NULL

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL COUNT ( * ) * + 9 - 28 * - 53, + AVG ( 93 ) + - - NULLIF ( ( - CAST ( + 85 AS INTEGER ) ), + ( - - 85 ) * - COUNT ( + 82 ) ) AS col1
----
1493
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT 22 * - CASE + 39 WHEN - 81 THEN + - CASE - 1 WHEN 76 THEN - + 92 END * - 59 WHEN 6 * + 6 * - MAX( DISTINCT - - 89 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT 22 * - CASE + 39 WHEN - 81 THEN + - CASE - 1 WHEN 76 THEN - + 92 END * - 59 WHEN 6 * + 6 * - MAX ( DISTINCT - - 89 ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 84 + - 40 + 49 * 72 AS col1, 34 AS col0
----
3572
34

query I rowsort
SELECT 75 * 90 + - - 24 - 43 * + 82 AS col0
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT + 85 DIV + 8
----
10

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 85 / + 8
----
10

query I rowsort
SELECT + 24 * + ( - + 32 )
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT MAX( + - 23 ) + - - 94 + - 77 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1937
SELECT MAX ( + - 23 ) + - - 94 + - 77 AS col1
----
-6

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

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

query I rowsort
SELECT 94 * - 82 - 41 AS col2
----
-7749

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + - COUNT( * ) * - 90 * + 42 * + 3 AS col1
----
11340

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + - COUNT ( * ) * - 90 * + 42 * + 3 AS col1
----
11340

query II rowsort
SELECT ALL + - 93 + 11, - 62 + 56 + - 90 + - 92 AS col2
----
-82
-188

query I rowsort
SELECT - COALESCE ( + 89, + 12, + + 32 * 1 - 97 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + 1 * - - 60 + - COUNT( * ) * + 87
----
-27

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 1 * - - 60 + - COUNT ( * ) * + 87
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + COALESCE ( - - 94, - - 46 ) + + COUNT( * ) + + 85
----
180

skipif mysql # not compatible
query I rowsort label-1945
SELECT + COALESCE ( - - 94, - - 46 ) + + COUNT ( * ) + + 85
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT - + MAX( - + 13 ) * 59 * - 21
----
-16107

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - + MAX ( - + 13 ) * 59 * - 21
----
-16107

query I rowsort
SELECT - - 82 + - 81
----
1

query I rowsort
SELECT ALL + 71 + ( 29 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT + 22 * 87 * + + 98 + + - 46 + + + MIN( DISTINCT 21 ) + 51 * - - 31 * - 7 / COUNT( * ) / + NULLIF ( + + 87, + 62 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT + 22 * 87 * + + 98 + + - 46 + + + MIN ( DISTINCT 21 ) + 51 * - - 31 * - 7 / COUNT ( * ) / + NULLIF ( + + 87, + 62 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT DISTINCT 30 DIV + - 19 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT 30 / + - 19 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL ( - COUNT ( * ) ) + - 31 AS col1
----
-32

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

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

query I rowsort
SELECT + 71 + - 93
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - 83 * 89 * - - COUNT( * )
----
-7387

skipif mysql # not compatible
query I rowsort label-1954
SELECT - 83 * 89 * - - COUNT ( * )
----
-7387

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1955
SELECT DISTINCT - CAST( - - 6 AS SIGNED ) DIV - 58 + - 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - CAST ( - - 6 AS INTEGER ) / - 58 + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL + COALESCE ( - 34, + + 80, - 70 ) + 95 - + 48 * - 40 + CASE + 92 WHEN 90 THEN + 80 / - 14 WHEN - COUNT( * ) THEN - + 6 * + - 10 * COUNT( + + 32 ) - + 4 - 89 / + NULLIF ( - 93, - 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + COALESCE ( - 34, + + 80, - 70 ) + 95 - + 48 * - 40 + CASE + 92 WHEN 90 THEN + 80 / - 14 WHEN - COUNT ( * ) THEN - + 6 * + - 10 * COUNT ( + + 32 ) - + 4 - 89 / + NULLIF ( - 93, - 62 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 94 * + 74 * + 12 + 52 AS col0
----
83524

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL NULLIF ( 71, COUNT( * ) * + - 51 ) * - - 62
----
4402

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL NULLIF ( 71, COUNT ( * ) * + - 51 ) * - - 62
----
4402

query I rowsort
SELECT ALL 23 - - - 93 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - MIN( DISTINCT + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1960
SELECT - MIN ( DISTINCT + 39 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT DISTINCT - COALESCE ( - 80, 40 * NULLIF ( - - 40, 13 - + SUM( + - 40 ) - - - ( - + 99 ) ) * - 24 - - 55 DIV - COALESCE ( - CAST( + 80 AS SIGNED ), + 40 ) ) - 69
----
11

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - COALESCE ( - 80, 40 * NULLIF ( - - 40, 13 - + SUM ( + - 40 ) - - - ( - + 99 ) ) * - 24 - - 55 / - COALESCE ( - CAST ( + 80 AS INTEGER ), + 40 ) ) - 69
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1962
SELECT DISTINCT 34 - - - 46 + ( CAST( - COALESCE ( - + 8, 23, 79 ) AS SIGNED ) ) - + - COUNT( * ) * - 11 + + - 54 + - 35 + COUNT( * ) AS col2, + NULLIF ( - COUNT( * ), + CASE - + 80 WHEN - 71 - 91 + - + 98 + + 76 * 39 THEN - 2 - + 65 * + 74 WHEN MAX( ALL 64 ) THEN NULL END ) col2
----
-103
-1

skipif mysql # not compatible
query II rowsort label-1962
SELECT DISTINCT 34 - - - 46 + ( CAST ( - COALESCE ( - + 8, 23, 79 ) AS INTEGER ) ) - + - COUNT ( * ) * - 11 + + - 54 + - 35 + COUNT ( * ) AS col2, + NULLIF ( - COUNT ( * ), + CASE - + 80 WHEN - 71 - 91 + - + 98 + + 76 * 39 THEN - 2 - + 65 * + 74 WHEN MAX ( ALL 64 ) THEN NULL END ) col2
----
-103
-1

query II rowsort
SELECT 81 col1, + 73 AS col1
----
81
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + 34 + + 67 + + 73 - - 19 * + - COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-1964
SELECT + 34 + + 67 + + 73 - - 19 * + - COUNT ( * )
----
155

query I rowsort
SELECT + 45 * + 65 * - + 36 AS col0
----
-105300

query I rowsort
SELECT + 51 * + 65 * + 46 AS col2
----
152490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + COUNT( * ) * + 12 * - - 16
----
192

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + COUNT ( * ) * + 12 * - - 16
----
192

query I rowsort
SELECT ALL - 69 * - + 41 AS col1
----
2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1970
SELECT DISTINCT + COALESCE ( + ( + ( - COUNT( * ) ) ), + + COALESCE ( - 29, - 37 * + + 98 * + + 92 * - 34 DIV MAX( + 62 ), - - CAST( - COUNT( * ) AS SIGNED ) ) + + - SUM( - - 61 ) ) AS col0, 4 + - 56 * + 15
----
-1
-836

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT + COALESCE ( + ( + ( - COUNT ( * ) ) ), + + COALESCE ( - 29, - 37 * + + 98 * + + 92 * - 34 / MAX ( + 62 ), - - CAST ( - COUNT ( * ) AS INTEGER ) ) + + - SUM ( - - 61 ) ) AS col0, 4 + - 56 * + 15
----
-1
-836

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

skipif mysql # not compatible
query II rowsort label-1971
SELECT COUNT ( * ) AS col2, 17
----
1
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL - 17 * ( + - 86 ) * - - MAX( DISTINCT + CAST( 20 AS SIGNED ) ) + + - 63 + + CAST( - MIN( DISTINCT + 7 ) AS SIGNED ) + - NULLIF ( - 14, - - 77 / - 30 + + + 19 ) * + - 85 AS col0
----
27980

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 17 * ( + - 86 ) * - - MAX ( DISTINCT + CAST ( 20 AS INTEGER ) ) + + - 63 + + CAST ( - MIN ( DISTINCT + 7 ) AS INTEGER ) + - NULLIF ( - 14, - - 77 / - 30 + + + 19 ) * + - 85 AS col0
----
27980

query II rowsort
SELECT + 25 * + + 9 + + - 0, + 15 col1
----
225
15

query I rowsort
SELECT + - 28 - - 65 * - 44 * - - 21 * + 73 + 43 * 20 * + 90 AS col1
----
-4307008

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + 38 * - 99 + MIN( + 46 )
----
-3716

skipif mysql # not compatible
query I rowsort label-1975
SELECT + 38 * - 99 + MIN ( + 46 )
----
-3716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1976
SELECT ALL - 23 * + + ( - CASE + 59 WHEN 19 - - 30 THEN 90 + - + SUM( ALL - 84 ) * + CAST( + - 79 AS SIGNED ) DIV CAST( - NULLIF ( + - 25, 33 ) AS SIGNED ) * - 58 + + 63 ELSE ( - 8 ) * - COUNT( * ) END ) + + 0 * 90
----
184

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - 23 * + + ( - CASE + 59 WHEN 19 - - 30 THEN 90 + - + SUM ( ALL - 84 ) * + CAST ( + - 79 AS INTEGER ) / CAST ( - NULLIF ( + - 25, 33 ) AS INTEGER ) * - 58 + + 63 ELSE ( - 8 ) * - COUNT ( * ) END ) + + 0 * 90
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL - - MAX( - CAST( NULL AS SIGNED ) ) * - + 51 + + 36 * - 14 + - 76 + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - - MAX ( - CAST ( NULL AS INTEGER ) ) * - + 51 + + 36 * - 14 + - 76 + 14 AS col0
----
NULL

query I rowsort
SELECT + + 3 col1
----
3

query I rowsort
SELECT - + 45 * + 69
----
-3105

query I rowsort
SELECT DISTINCT - 34 * + 13 * + 27 AS col2
----
-11934

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT - 59 * - COUNT( DISTINCT + - 92 ) * COUNT( * ) AS col0, - COUNT( * ) + + 81 - - MIN( ALL + - 3 ) AS col1
----
59
77

skipif mysql # not compatible
query II rowsort label-1981
SELECT - 59 * - COUNT ( DISTINCT + - 92 ) * COUNT ( * ) AS col0, - COUNT ( * ) + + 81 - - MIN ( ALL + - 3 ) AS col1
----
59
77

query I rowsort
SELECT - 65 * + 20 AS col0
----
-1300

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

skipif mysql # not compatible
query II rowsort label-1983
SELECT - 86, - COUNT ( * ) AS col2
----
-86
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT SUM( ALL - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT SUM ( ALL - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1986
SELECT ALL - COUNT( * ) * + SUM( - 82 ) DIV 68 - + + COUNT( ALL 93 ), 84 AS col2
----
0
84

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL - COUNT ( * ) * + SUM ( - 82 ) / 68 - + + COUNT ( ALL 93 ), 84 AS col2
----
0
84

query I rowsort
SELECT - 29 * ( - - 54 )
----
-1566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1988
SELECT DISTINCT CAST( NULL AS SIGNED ), - 95 * + 84 AS col1
----
NULL
-7980

skipif mysql # not compatible
query II rowsort label-1988
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 95 * + 84 AS col1
----
NULL
-7980

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1989
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) col0, + 20 DIV + 21 * + 99 * + 40 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1989
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) col0, + 20 / + 21 * + 99 * + 40 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT ALL 76 DIV - 2 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL 76 / - 2 AS col2
----
-38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT ALL 93 DIV + COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 93 / + COUNT ( * ) col1
----
93

query I rowsort
SELECT - 52 + 80 * + 68
----
5388

onlyif mysql # aggregate syntax: 
query II rowsort label-1994
SELECT 16, - 63 * COUNT( * ) * + + 32 AS col1
----
16
-2016

skipif mysql # not compatible
query II rowsort label-1994
SELECT 16, - 63 * COUNT ( * ) * + + 32 AS col1
----
16
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1995
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1995
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 63 AS col2
----
NULL
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT ALL + 27 / + + CASE SUM( ALL + - 73 ) WHEN + COUNT( * ) / + 58 * 22 * 14 THEN NULL WHEN 56 - - 15 THEN - 66 + + - CAST( - 40 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL + 27 / + + CASE SUM ( ALL + - 73 ) WHEN + COUNT ( * ) / + 58 * 22 * 14 THEN NULL WHEN 56 - - 15 THEN - 66 + + - CAST ( - 40 AS INTEGER ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - COALESCE ( + 78, - COUNT( * ) ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-1998
SELECT - COALESCE ( + 78, - COUNT ( * ) ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT - 22 + 12 + + 75 + + 85 DIV 8
----
75

skipif mysql # not compatible
query I rowsort label-1999
SELECT - 22 + 12 + + 75 + + 85 / 8
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2000
SELECT - COUNT( * ) AS col1, - 13 + 68 - 71 DIV - 97 col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-2000
SELECT - COUNT ( * ) AS col1, - 13 + 68 - 71 / - 97 col1
----
-1
55

query II rowsort
SELECT DISTINCT ( - 22 ) AS col0, 88 AS col0
----
-22
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT ALL + - COUNT( * ) DIV + 61 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + - COUNT ( * ) / + 61 * + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - 11 + 68 * COUNT( * ) + + ( + 87 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 11 + 68 * COUNT ( * ) + + ( + 87 ) AS col2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL - - COALESCE ( + 66, + 4 DIV 90 ) * - 5 * + 25 AS col1
----
-8250

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - - COALESCE ( + 66, + 4 / 90 ) * - 5 * + 25 AS col1
----
-8250

query I rowsort
SELECT + - 92 - - - 61 + + 49
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + + COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-2006
SELECT + + COUNT ( * ) + - 52
----
-51

query I rowsort
SELECT + 56 * 13 col0
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2008
SELECT ALL - 62 DIV 11 + + COUNT( * ) + 16 AS col0, - 44 * 54 * - + COUNT( - 20 )
----
12
2376

skipif mysql # not compatible
query II rowsort label-2008
SELECT ALL - 62 / 11 + + COUNT ( * ) + 16 AS col0, - 44 * 54 * - + COUNT ( - 20 )
----
12
2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2009
SELECT + 11 AS col0, MIN( ALL + 89 ) DIV - 36 + - COUNT( * ) * - - 96 + 50 * - 55
----
11
-2848

skipif mysql # not compatible
query II rowsort label-2009
SELECT + 11 AS col0, MIN ( ALL + 89 ) / - 36 + - COUNT ( * ) * - - 96 + 50 * - 55
----
11
-2848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT ALL + 35 + - 69 + + 13 + + - 43 + + 20 * 11 + ( + 53 ) DIV + + 71 * + + COALESCE ( + CASE + 63 WHEN + - 58 THEN NULL WHEN + + 60 + - COUNT( ALL + 3 ) - + - COALESCE ( - ( 4 ), + 10 ) + - 41 THEN 36 ELSE CASE - NULLIF ( - 58, - 22 * + 93 ) WHEN 21 THEN - 16 WHEN 7 + 49 THEN NULL ELSE NULL END END, + 51, - 43 * - 84 )
----
156

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + 35 + - 69 + + 13 + + - 43 + + 20 * 11 + ( + 53 ) / + + 71 * + + COALESCE ( + CASE + 63 WHEN + - 58 THEN NULL WHEN + + 60 + - COUNT ( ALL + 3 ) - + - COALESCE ( - ( 4 ), + 10 ) + - 41 THEN 36 ELSE CASE - NULLIF ( - 58, - 22 * + 93 ) WHEN 21 THEN - 16 WHEN 7 + 49 THEN NULL ELSE NULL END END, + 51, - 43 * - 84 )
----
156

query II rowsort
SELECT 60, 58 col0
----
60
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL - 85 DIV 84 + - ( - 96 ) + + 26
----
121

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - 85 / 84 + - ( - 96 ) + + 26
----
121

query I rowsort
SELECT - 67 * + 82 + + + 71 + + 30 + - 95 AS col1
----
-5488

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2015
SELECT + + CAST( NULL AS SIGNED ) col0, - 66 * COUNT( * )
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-2015
SELECT + + CAST ( NULL AS INTEGER ) col0, - 66 * COUNT ( * )
----
NULL
-66

query I rowsort
SELECT ALL 42 + + - 96
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL ( - COALESCE ( + - 64, + 58 + + COUNT( * ) + - + COUNT( * ) + - 64 * - 80 + 4, - 33 ) ) * + 91
----
5824

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL ( - COALESCE ( + - 64, + 58 + + COUNT ( * ) + - + COUNT ( * ) + - 64 * - 80 + 4, - 33 ) ) * + 91
----
5824

query I rowsort
SELECT 62 * 47
----
2914

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2019
SELECT DISTINCT + 12 DIV 76 AS col2, + 74 + 28 + NULLIF ( - + 66, - COUNT( * ) ) * - 42 + + COUNT( * ) - COUNT( * ) - - COUNT( * )
----
0
2875

skipif mysql # not compatible
query II rowsort label-2019
SELECT DISTINCT + 12 / 76 AS col2, + 74 + 28 + NULLIF ( - + 66, - COUNT ( * ) ) * - 42 + + COUNT ( * ) - COUNT ( * ) - - COUNT ( * )
----
0
2875

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT ALL - SUM( - 31 ), COUNT( * ) + - + 9 col0
----
31
-8

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL - SUM ( - 31 ), COUNT ( * ) + - + 9 col0
----
31
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT 71 + COUNT( * ) * - 5 * - 81 * MIN( ALL 44 )
----
17891

skipif mysql # not compatible
query I rowsort label-2021
SELECT 71 + COUNT ( * ) * - 5 * - 81 * MIN ( ALL 44 )
----
17891

onlyif mysql # aggregate syntax: 
query II rowsort label-2022
SELECT COALESCE ( 65, + - MIN( - 71 ) ) * + 58 AS col0, 92 + 60
----
3770
152

skipif mysql # not compatible
query II rowsort label-2022
SELECT COALESCE ( 65, + - MIN ( - 71 ) ) * + 58 AS col0, 92 + 60
----
3770
152

query I rowsort
SELECT 81 + + 57 col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2024
SELECT DISTINCT + 41 * - 82, + SUM( DISTINCT CAST( NULL AS SIGNED ) ) col2
----
-3362
NULL

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT + 41 * - 82, + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col2
----
-3362
NULL

query II rowsort
SELECT 90 * 88, + 54 AS col2
----
7920
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL + 23 * + 97 * CASE + MAX( ALL + 49 ) WHEN - 46 THEN + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + 23 * + 97 * CASE + MAX ( ALL + 49 ) WHEN - 46 THEN + - 29 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 63 * 26 AS col0
----
1638

query I rowsort
SELECT 80 * + 4
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL - 33 + + MAX( - - 34 ) - - 48 - 18
----
31

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL - 33 + + MAX ( - - 34 ) - - 48 - 18
----
31

query I rowsort
SELECT + 62 * - ( 83 ) AS col1
----
-5146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT 38 + + CAST( - 42 AS SIGNED ) + + + ( - - 40 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2031
SELECT 38 + + CAST ( - 42 AS INTEGER ) + + + ( - - 40 ) AS col1
----
36

query I rowsort
SELECT ALL + 41 + + - 73
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2033
SELECT ALL - - 12 + - CASE COUNT( * ) WHEN - 53 THEN NULL WHEN 59 / - 80 - 89 + 0 * - 84 - - 49 * - + ( + 92 ) * + CAST( NULL AS DECIMAL ) + + - 18 THEN - ( 19 ) END - + COUNT( DISTINCT + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - - 12 + - CASE COUNT ( * ) WHEN - 53 THEN NULL WHEN 59 / - 80 - 89 + 0 * - 84 - - 49 * - + ( + 92 ) * + CAST ( NULL AS REAL ) + + - 18 THEN - ( 19 ) END - + COUNT ( DISTINCT + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + 93 + + ( + COUNT( * ) ) * + - 47 + 98
----
144

skipif mysql # not compatible
query I rowsort label-2034
SELECT + 93 + + ( + COUNT ( * ) ) * + - 47 + 98
----
144

query I rowsort
SELECT 17 * + - 69
----
-1173

query I rowsort
SELECT DISTINCT - - 36 * + - 9 * + 27 AS col1
----
-8748

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT - NULLIF ( - 98, - - COUNT( * ) ) * - 38 + - 16 * ( - 58 ) AS col2, + ( - NULLIF ( 31, + - 24 + COUNT( * ) ) ) AS col2
----
-2796
-31

skipif mysql # not compatible
query II rowsort label-2037
SELECT - NULLIF ( - 98, - - COUNT ( * ) ) * - 38 + - 16 * ( - 58 ) AS col2, + ( - NULLIF ( 31, + - 24 + COUNT ( * ) ) ) AS col2
----
-2796
-31

query I rowsort
SELECT DISTINCT - 48 * - - 12 * - 47 AS col0
----
27072

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

query II rowsort
SELECT + + ( + 96 ) AS col2, 33 col0
----
96
33

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

query I rowsort
SELECT 87 * - 19 AS col0
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL + + 94 - COUNT( * ) col0
----
93

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL + + 94 - COUNT ( * ) col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL - + 32 - + COALESCE ( + - 82, + COUNT( * ), - COUNT( * ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - + 32 - + COALESCE ( + - 82, + COUNT ( * ), - COUNT ( * ) ) AS col2
----
50

query I rowsort
SELECT 66 * 5 AS col1
----
330

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT ALL - 92, 23 * + COUNT( * ) + 56 col1
----
-92
79

skipif mysql # not compatible
query II rowsort label-2046
SELECT ALL - 92, 23 * + COUNT ( * ) + 56 col1
----
-92
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT 65 DIV COALESCE ( - - 52, - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT 65 / COALESCE ( - - 52, - 25 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - MAX ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL 59 - - - SUM( - + 54 ) + + 12 * - 92 * SUM( DISTINCT + 94 ) col1
----
-103663

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 59 - - - SUM ( - + 54 ) + + 12 * - 92 * SUM ( DISTINCT + 94 ) col1
----
-103663

query I rowsort
SELECT DISTINCT 17 * + 58 AS col0
----
986

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2052
SELECT CAST( + - 57 AS SIGNED ) DIV - SUM( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-2052
SELECT CAST ( + - 57 AS INTEGER ) / - SUM ( + 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT CAST( + - COALESCE ( + COUNT( * ), + + 85 + - - NULLIF ( + CASE 60 WHEN + + COUNT( * ) THEN 70 ELSE NULL END, - - 98 ) / - + 7 / ( 33 ) * - 82 ) AS SIGNED ) * - 41 + - 98 * COALESCE ( + - 14, + 51 )
----
1413

skipif mysql # not compatible
query I rowsort label-2053
SELECT CAST ( + - COALESCE ( + COUNT ( * ), + + 85 + - - NULLIF ( + CASE 60 WHEN + + COUNT ( * ) THEN 70 ELSE NULL END, - - 98 ) / - + 7 / ( 33 ) * - 82 ) AS INTEGER ) * - 41 + - 98 * COALESCE ( + - 14, + 51 )
----
1413

query I rowsort
SELECT ALL 64 * 33 AS col0
----
2112

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

skipif mysql # not compatible
query I rowsort label-2055
SELECT 91 / 34
----
2

query I rowsort
SELECT 61 * + 25 AS col1
----
1525

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT 87 - MIN( 83 ) AS col0, - COUNT( * )
----
4
-1

skipif mysql # not compatible
query II rowsort label-2058
SELECT 87 - MIN ( 83 ) AS col0, - COUNT ( * )
----
4
-1

query I rowsort
SELECT ALL 57 + + + 79 * + 91
----
7246

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT DISTINCT 15 + - - 7 * 99 col1, - 38 + COUNT( * ) - - 41 * 18 + - 27 + ( + 40 ) * + 39 + + 2 AS col0
----
708
2236

skipif mysql # not compatible
query II rowsort label-2060
SELECT DISTINCT 15 + - - 7 * 99 col1, - 38 + COUNT ( * ) - - 41 * 18 + - 27 + ( + 40 ) * + 39 + + 2 AS col0
----
708
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 63 + COALESCE ( COUNT( * ), + ( - + 20 ) * 31, - 6 * + COUNT( * ) ) * 50
----
113

skipif mysql # not compatible
query I rowsort label-2061
SELECT 63 + COALESCE ( COUNT ( * ), + ( - + 20 ) * 31, - 6 * + COUNT ( * ) ) * 50
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL SUM( DISTINCT - - 30 ) + - - 15 + 73 + - COUNT( * ) * + - 75
----
193

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL SUM ( DISTINCT - - 30 ) + - - 15 + 73 + - COUNT ( * ) * + - 75
----
193

query II rowsort
SELECT + - 90 + + - 71 * - 16 col2, - 46 col1
----
1046
-46

query I rowsort
SELECT ALL + - 47 * + - 94 * + 28 AS col1
----
123704

query I rowsort
SELECT ALL - - 84 + + ( + 77 ) * 74
----
5782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2066
SELECT - - 10 - - 65 + - CAST( NULL AS DECIMAL ) + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT - - 10 - - 65 + - CAST ( NULL AS REAL ) + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT - 23, + NULLIF ( + 33, + - COUNT( * ) ) col0
----
-23
33

skipif mysql # not compatible
query II rowsort label-2067
SELECT - 23, + NULLIF ( + 33, + - COUNT ( * ) ) col0
----
-23
33

query I rowsort
SELECT ALL 74 * + 55
----
4070

query I rowsort
SELECT NULLIF ( 69, 69 + 29 * - - 86 ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT CAST( - + 50 AS SIGNED ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT CAST ( - + 50 AS INTEGER ) col0
----
-50

query I rowsort
SELECT DISTINCT + + 42 - + 13
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2072
SELECT + SUM( DISTINCT - 97 ) * 91 AS col0, + CASE + 83 WHEN + 48 THEN NULL WHEN - - 95 THEN 92 END AS col2
----
-8827
NULL

skipif mysql # not compatible
query II rowsort label-2072
SELECT + SUM ( DISTINCT - 97 ) * 91 AS col0, + CASE + 83 WHEN + 48 THEN NULL WHEN - - 95 THEN 92 END AS col2
----
-8827
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT - + 86, 91 + MIN( - - 54 ) AS col2
----
-86
145

skipif mysql # not compatible
query II rowsort label-2073
SELECT - + 86, 91 + MIN ( - - 54 ) AS col2
----
-86
145

query I rowsort
SELECT - 45 + - 54 + + 72
----
-27

query I rowsort
SELECT ALL + 94 - - 1 AS col0
----
95

query II rowsort
SELECT + 58, 15 * + - 72 AS col2
----
58
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT ALL - 3 DIV + + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL - 3 / + + 57 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT - - 60 / SUM( + ( + CAST( NULL AS SIGNED ) ) ) + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT - - 60 / SUM ( + ( + CAST ( NULL AS INTEGER ) ) ) + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + COALESCE ( + 7, + COUNT( DISTINCT 93 ) + - - 19, - COUNT( * ), + 1 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + COALESCE ( + 7, + COUNT ( DISTINCT 93 ) + - - 19, - COUNT ( * ), + 1 ) AS col0
----
7

query I rowsort
SELECT ALL - 3 * - 62
----
186

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

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

query I rowsort
SELECT ALL 59 * 47 * - - 75 AS col2
----
207975

query II rowsort
SELECT ALL + 40 * 78 col1, + 78 AS col1
----
3120
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - COALESCE ( + 91, - 73, 39 ) + - MIN( - 38 )
----
-53

skipif mysql # not compatible
query I rowsort label-2086
SELECT - COALESCE ( + 91, - 73, 39 ) + - MIN ( - 38 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2087
SELECT + COUNT( * ) * 90 DIV + + 31 - + ( - ( 22 ) ) + + NULLIF ( - MAX( 84 ), - 5 * - NULLIF ( + + ( - 63 ), - 50 DIV + 82 - COUNT( * ) + 18 + - COALESCE ( + SUM( ALL 47 ), 39 * - + ( + AVG ( DISTINCT - CAST( 23 AS DECIMAL ) ) ) * + 35 + 5, + CASE 49 WHEN - 3 THEN + 0 * + COUNT( * ) + 3 * 59 END * + 61 ) + 2 ) * 29 + + 6 * + 47 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2087
SELECT + COUNT ( * ) * 90 / + + 31 - + ( - ( 22 ) ) + + NULLIF ( - MAX ( 84 ), - 5 * - NULLIF ( + + ( - 63 ), - 50 / + 82 - COUNT ( * ) + 18 + - COALESCE ( + SUM ( ALL 47 ), 39 * - + ( + AVG ( DISTINCT - CAST ( 23 AS REAL ) ) ) * + 35 + 5, + CASE 49 WHEN - 3 THEN + 0 * + COUNT ( * ) + 3 * 59 END * + 61 ) + 2 ) * 29 + + 6 * + 47 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL 82 * - + 42 + - ( COUNT( * ) )
----
-3445

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL 82 * - + 42 + - ( COUNT ( * ) )
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - COUNT( * ) + + NULLIF ( 39, 47 )
----
38

skipif mysql # not compatible
query I rowsort label-2089
SELECT - COUNT ( * ) + + NULLIF ( 39, 47 )
----
38

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

skipif mysql # not compatible
query I rowsort label-2090
SELECT MIN ( DISTINCT - 9 )
----
-9

query I rowsort
SELECT ALL NULLIF ( 14, + AVG ( ALL 48 ) ) * - 88 + + 50 + - 58 * 70 AS col2
----
-5242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ), 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2092
SELECT AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ), 55 AS col2
----
NULL
55

query I rowsort
SELECT + 69 + - 53 - - - 51 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL CAST( + 51 AS SIGNED ) * - COUNT( * ) + + 61
----
10

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL CAST ( + 51 AS INTEGER ) * - COUNT ( * ) + + 61
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - SUM( - 11 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-2095
SELECT - SUM ( - 11 ) col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2096
SELECT + 45 + - COUNT( * ) * + COUNT( * ) DIV 31 + + - 41 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2096
SELECT + 45 + - COUNT ( * ) * + COUNT ( * ) / 31 + + - 41 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT MIN( - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-2097
SELECT MIN ( - - 74 )
----
74

query I rowsort
SELECT - 41 * - - 62 * 33 + + 85
----
-83801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT + - 14 * 29 * CASE CAST( - COALESCE ( - + COUNT( * ), - 35, - 79 ) AS SIGNED ) WHEN - + ( + 43 ) THEN NULL WHEN - 23 THEN - 83 END - - + 44 + + - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT + - 14 * 29 * CASE CAST ( - COALESCE ( - + COUNT ( * ), - 35, - 79 ) AS INTEGER ) WHEN - + ( + 43 ) THEN NULL WHEN - 23 THEN - 83 END - - + 44 + + - 93 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT + - COUNT( * ) * COALESCE ( - + 37, + CAST( NULL AS SIGNED ) - - 63 )
----
37

skipif mysql # not compatible
query I rowsort label-2101
SELECT + - COUNT ( * ) * COALESCE ( - + 37, + CAST ( NULL AS INTEGER ) - - 63 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT ALL + + 28 + - 25 DIV - 4 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + + 28 + - 25 / - 4 AS col0
----
34

query I rowsort
SELECT + ( - 6 ) * - 93 * - 78 + 76
----
-43448

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ( ( - NULLIF ( - 12, 52 + + - 2 + + COUNT( * ) ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-2104
SELECT ( ( - NULLIF ( - 12, 52 + + - 2 + + COUNT ( * ) ) ) )
----
12

query I rowsort
SELECT - - 12 * - CASE 9 WHEN - 50 THEN + 96 ELSE + 74 END col1
----
-888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT ALL 8 * + CAST( 56 AS SIGNED ) AS col1
----
448

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL 8 * + CAST ( 56 AS INTEGER ) AS col1
----
448

query I rowsort
SELECT + + 43 - + 98 col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT + MAX( - ( - 61 ) ) + - 38 DIV 7 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2108
SELECT + MAX ( - ( - 61 ) ) + - 38 / 7 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT 54 * 7 DIV - + 82 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT 54 * 7 / - + 82 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT CAST( - 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2110
SELECT CAST ( - 25 AS INTEGER ) AS col0
----
-25

query I rowsort
SELECT - ( - 89 ) + + - 4 - + + 48 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT DISTINCT + COALESCE ( - COUNT( * ), - - 82, - COUNT( * ) * - - CASE + 87 WHEN MIN( + 67 ) THEN NULL WHEN - - 56 + + - 10 * - 91 THEN - COUNT( * ) END DIV 35 + - 87 * - - 51 + - + 30 * 38 * + - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - - 82, - COUNT ( * ) * - - CASE + 87 WHEN MIN ( + 67 ) THEN NULL WHEN - - 56 + + - 10 * - 91 THEN - COUNT ( * ) END / 35 + - 87 * - - 51 + - + 30 * 38 * + - 68 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT ALL COUNT( * ) DIV - + 75 * - 36 + - + ( + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL COUNT ( * ) / - + 75 * - 36 + - + ( + 30 )
----
-30

query I rowsort
SELECT - 47 * - - 88 col2
----
-4136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT ALL 9 DIV - 33 * - - COUNT( * ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL 9 / - 33 * - - COUNT ( * ) + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2116
SELECT DISTINCT ( + 27 ) DIV NULLIF ( 12, + COUNT( * ) * - 89 * 69 ) + + 10
----
12

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT ( + 27 ) / NULLIF ( 12, + COUNT ( * ) * - 89 * 69 ) + + 10
----
12

query I rowsort
SELECT DISTINCT + 55 * + 9 AS col1
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT COUNT( * ) * + - ( - + COUNT( - 92 ) ) + ( - 60 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT COUNT ( * ) * + - ( - + COUNT ( - 92 ) ) + ( - 60 ) AS col0
----
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT + COUNT( ALL - - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2121
SELECT ALL CASE - SUM( - - 52 ) WHEN + CAST( NULL AS SIGNED ) - + 96 * 30 + + - COUNT( * ) + - + ( + CAST( - 19 AS DECIMAL ) ) * + 92 THEN NULL ELSE - COUNT( * ) * + + 12 * 75 DIV + 9 - + - 49 END * 41 * - 43 + + NULLIF ( NULLIF ( - 1, 33 ), - 3 ) + + - 4 AS col1
----
89908

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL CASE - SUM ( - - 52 ) WHEN + CAST ( NULL AS INTEGER ) - + 96 * 30 + + - COUNT ( * ) + - + ( + CAST ( - 19 AS REAL ) ) * + 92 THEN NULL ELSE - COUNT ( * ) * + + 12 * 75 / + 9 - + - 49 END * 41 * - 43 + + NULLIF ( NULLIF ( - 1, 33 ), - 3 ) + + - 4 AS col1
----
89908

query I rowsort
SELECT ALL - 10 * + 45
----
-450

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

query I rowsort
SELECT - 45 * 5 * 48 * + + 16
----
-172800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL + 37 + CAST( - 17 AS SIGNED ) + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 37 + CAST ( - 17 AS INTEGER ) + + COUNT ( * ) AS col0
----
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT DISTINCT ( 72 ) * MIN( - - CAST( NULL AS SIGNED ) ) - 51 * + - SUM( + 11 ) / - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT ( 72 ) * MIN ( - - CAST ( NULL AS INTEGER ) ) - 51 * + - SUM ( + 11 ) / - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT + MIN( ALL + 27 ) - - + 10 - + 96 + - 49 - + 92 * + + COUNT( * )
----
-200

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT + MIN ( ALL + 27 ) - - + 10 - + 96 + - 49 - + 92 * + + COUNT ( * )
----
-200

query I rowsort
SELECT DISTINCT + 96 * + + 10
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL + NULLIF ( - 20, + 84 + - - SUM( - 43 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + NULLIF ( - 20, + 84 + - - SUM ( - 43 ) )
----
-20

query I rowsort
SELECT - - ( - - 19 )
----
19

query I rowsort
SELECT ALL + - 0 - - 28
----
28

query I rowsort
SELECT 95 + - 71
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT 26 DIV - 1 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2134
SELECT 26 / - 1 AS col0
----
-26

query I rowsort
SELECT - NULLIF ( + - 70, - 93 * - 84 + - - 67 ) * 4
----
280

query II rowsort
SELECT DISTINCT 92 * 40 * - 31 + 13 + - 30 col0, + 86 col1
----
-114097
86

query I rowsort
SELECT 72 + - - 10 * 21
----
282

query I rowsort
SELECT - 80 + + 97 + 10
----
27

query I rowsort
SELECT 95 * + 54 col0
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - SUM( + 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - SUM ( + 25 ) AS col1
----
-25

query I rowsort
SELECT ALL - 20 * - 25
----
500

query I rowsort
SELECT ( - - ( - 2 ) ) * + + 82 AS col2
----
-164

query I rowsort
SELECT 65 + - - 27 AS col1
----
92

query I rowsort
SELECT 36 * - 3 * NULLIF ( + + 39, 10 ) AS col2
----
-4212

query I rowsort
SELECT 72 * + 12 AS col1
----
864

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ( + ( + COUNT( * ) ) ) + - + 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2147
SELECT ( + ( + COUNT ( * ) ) ) + - + 73 AS col2
----
-72

query II rowsort
SELECT + 33 AS col0, - 51 AS col2
----
33
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT DISTINCT 35 + 53 DIV - 65
----
35

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT 35 + 53 / - 65
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ALL 5 + + + 7 * - 19 - 46 DIV + - 76 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL 5 + + + 7 * - 19 - 46 / + - 76 AS col2
----
-128

query II rowsort
SELECT ALL - 45 AS col2, 53 AS col1
----
-45
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT CAST( NULL AS SIGNED ) / - 62 - SUM( ALL + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT CAST ( NULL AS INTEGER ) / - 62 - SUM ( ALL + 88 )
----
NULL

query I rowsort
SELECT 96 + + 37 * - ( - 84 ) AS col0
----
3204

query I rowsort
SELECT 0 * + 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2155
SELECT ALL - 35, MIN( - 33 ) * + 92 DIV COUNT( - 30 ) + - - 16 AS col0
----
-35
-3020

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL - 35, MIN ( - 33 ) * + 92 / COUNT ( - 30 ) + - - 16 AS col0
----
-35
-3020

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + 35 * - COUNT( * ) + + 5
----
-30

skipif mysql # not compatible
query I rowsort label-2156
SELECT + 35 * - COUNT ( * ) + + 5
----
-30

query I rowsort
SELECT 86 + 65
----
151

query I rowsort
SELECT 33 * - - 0 - - 88 * - + 77 AS col1
----
-6776

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT 96 + 52 + + - 19 + 42 DIV - 33
----
128

skipif mysql # not compatible
query I rowsort label-2159
SELECT 96 + 52 + + - 19 + 42 / - 33
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT ALL + 33 - - - 40 * SUM( - 48 ) + + 13 DIV 55 + - + 0 col0, 90 AS col0
----
1953
90

skipif mysql # not compatible
query II rowsort label-2160
SELECT ALL + 33 - - - 40 * SUM ( - 48 ) + + 13 / 55 + - + 0 col0, 90 AS col0
----
1953
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT - 81 DIV - ( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - 81 / - ( + 49 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - 57 * 34 * + COALESCE ( 45, - - COALESCE ( + + 57, - - 77 ), + ( + ( + + 38 ) ) * - 98 + + 83 + - MIN( 11 ) + + CASE 28 WHEN COUNT( * ) THEN NULL ELSE - - 83 END * - - 52 ) + + 3
----
-87207

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 57 * 34 * + COALESCE ( 45, - - COALESCE ( + + 57, - - 77 ), + ( + ( + + 38 ) ) * - 98 + + 83 + - MIN ( 11 ) + + CASE 28 WHEN COUNT ( * ) THEN NULL ELSE - - 83 END * - - 52 ) + + 3
----
-87207

query I rowsort
SELECT ALL + 31 * + 59 col2
----
1829

query II rowsort
SELECT ALL - 17, ( - - 30 ) col2
----
-17
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT 61 + 46 + + 95 + - 83 * - 44 + + 60 + + 89 * - COUNT( * ) * 32 * + - 29 + - 80 * 8 * COUNT( * )
----
85866

skipif mysql # not compatible
query I rowsort label-2166
SELECT 61 + 46 + + 95 + - 83 * - 44 + + 60 + + 89 * - COUNT ( * ) * 32 * + - 29 + - 80 * 8 * COUNT ( * )
----
85866

query I rowsort
SELECT 48 * 11 AS col0
----
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2168
SELECT 7 + - 12 + + COUNT( * ) DIV - + 30
----
-5

skipif mysql # not compatible
query I rowsort label-2168
SELECT 7 + - 12 + + COUNT ( * ) / - + 30
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT 12 * - MAX( ALL - 65 ) + + 62 DIV - 82
----
780

skipif mysql # not compatible
query I rowsort label-2169
SELECT 12 * - MAX ( ALL - 65 ) + + 62 / - 82
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2170
SELECT COUNT( * ), + 73 - - - 66 + + + ( + 23 ) + - 54 * - CAST( - COALESCE ( 42, - 58 / 99, + 76 ) AS SIGNED ) * COUNT( * ) + + 81 + COUNT( * ) AS col0
----
1
-2156

skipif mysql # not compatible
query II rowsort label-2170
SELECT COUNT ( * ), + 73 - - - 66 + + + ( + 23 ) + - 54 * - CAST ( - COALESCE ( 42, - 58 / 99, + 76 ) AS INTEGER ) * COUNT ( * ) + + 81 + COUNT ( * ) AS col0
----
1
-2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2171
SELECT ALL COALESCE ( - - COUNT( * ), COUNT( * ) - 2 ) AS col0, + 78 * - - 79 + - 5 + 51 * - COUNT( * ) DIV - 81 + + COALESCE ( 80, - 81 DIV + 2 ) col0
----
1
6237

skipif mysql # not compatible
query II rowsort label-2171
SELECT ALL COALESCE ( - - COUNT ( * ), COUNT ( * ) - 2 ) AS col0, + 78 * - - 79 + - 5 + 51 * - COUNT ( * ) / - 81 + + COALESCE ( 80, - 81 / + 2 ) col0
----
1
6237

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT ALL - 66 + 14 DIV + 64 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - 66 + 14 / + 64 AS col1
----
-66

query I rowsort
SELECT - - NULLIF ( + 26, + + 86 ) AS col2
----
26

query I rowsort
SELECT + 44 * - 93 + + - 22
----
-4114

query II rowsort
SELECT - + 43 col2, 83 * 1 + + 64 + - - 66 * + 46 - 65
----
-43
3118

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT 86 DIV 36 + 72 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2177
SELECT 86 / 36 + 72 AS col1
----
74

query II rowsort
SELECT ALL 0 + 34, 24 AS col1
----
34
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT MAX( - + 69 ) DIV - 7 + - - 98 - - COUNT( + 76 ) + + 96 + + 34 * - 19 + - + 44 + + - 29 AS col1
----
-515

skipif mysql # not compatible
query I rowsort label-2179
SELECT MAX ( - + 69 ) / - 7 + - - 98 - - COUNT ( + 76 ) + + 96 + + 34 * - 19 + - + 44 + + - 29 AS col1
----
-515

query I rowsort
SELECT ALL - 36 + + + 57
----
21

query I rowsort
SELECT ALL + 82 + + + 44 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT ( + - 74 ) DIV + - 5 * + COUNT( * ) + 97
----
111

skipif mysql # not compatible
query I rowsort label-2182
SELECT ( + - 74 ) / + - 5 * + COUNT ( * ) + 97
----
111

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

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

query I rowsort
SELECT DISTINCT + 69 * - + 57 - + 2
----
-3935

query I rowsort
SELECT + 92 + - 54 col2
----
38

query I rowsort
SELECT DISTINCT + CASE - 27 WHEN + 79 THEN 53 WHEN + 32 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + + ( - 9 ) * 41
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL COUNT( * ) * NULLIF ( + 76, - 22 * - 82 ) + - - 8 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL COUNT ( * ) * NULLIF ( + 76, - 22 * - 82 ) + - - 8 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT + CAST( - 92 AS SIGNED ) * + - 9
----
828

skipif mysql # not compatible
query I rowsort label-2189
SELECT + CAST ( - 92 AS INTEGER ) * + - 9
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2190
SELECT + + 5 - 45 AS col1, + 96 + ( + COUNT( * ) ) col2, + COALESCE ( - 90, + - 91 + - + 52 + + COUNT( * ) * 44, + + 79 + - - CAST( NULL AS SIGNED ) + + - COALESCE ( NULLIF ( 16, + COUNT( * ) ), 88, - 12 ) DIV - 97, - - ( 3 ) ) AS col0
----
-40
97
-90

skipif mysql # not compatible
query III rowsort label-2190
SELECT + + 5 - 45 AS col1, + 96 + ( + COUNT ( * ) ) col2, + COALESCE ( - 90, + - 91 + - + 52 + + COUNT ( * ) * 44, + + 79 + - - CAST ( NULL AS INTEGER ) + + - COALESCE ( NULLIF ( 16, + COUNT ( * ) ), 88, - 12 ) / - 97, - - ( 3 ) ) AS col0
----
-40
97
-90

query I rowsort
SELECT + - ( COALESCE ( 19, - + 11 + + 91 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - 96 * 63 + + - 11 * 80 + COUNT( * )
----
-6927

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 96 * 63 + + - 11 * 80 + COUNT ( * )
----
-6927

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2193
SELECT - 37 * - - 1 - + COUNT( * ) * 63 * 0 DIV + ( 1 ) AS col2, 51 * + 39 + MIN( ALL + + 13 )
----
-37
2002

skipif mysql # not compatible
query II rowsort label-2193
SELECT - 37 * - - 1 - + COUNT ( * ) * 63 * 0 / + ( 1 ) AS col2, 51 * + 39 + MIN ( ALL + + 13 )
----
-37
2002

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

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

query I rowsort
SELECT - 58 * + 64 col2
----
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT - - 81 * - + CAST( - - 59 AS SIGNED ) AS col1
----
-4779

skipif mysql # not compatible
query I rowsort label-2196
SELECT - - 81 * - + CAST ( - - 59 AS INTEGER ) AS col1
----
-4779

query I rowsort
SELECT ALL - 75 + - + 40 * + 85 - + 20 AS col0
----
-3495

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - + COUNT( * ) * - + 24 * + 88 * - 2
----
-4224

skipif mysql # not compatible
query I rowsort label-2198
SELECT - + COUNT ( * ) * - + 24 * + 88 * - 2
----
-4224

query I rowsort
SELECT ALL + - 58 + 34
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - 85 - 91 * COUNT( * )
----
-176

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 85 - 91 * COUNT ( * )
----
-176

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

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

query I rowsort
SELECT - 98 - + - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT DISTINCT - CAST( - ( - 67 ) AS SIGNED ) + COALESCE ( - CASE MIN( DISTINCT - 74 ) WHEN + 8 THEN ( + 19 ) WHEN - 36 THEN NULL ELSE NULL END, - 50, - COUNT( * ) ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT - CAST ( - ( - 67 ) AS INTEGER ) + COALESCE ( - CASE MIN ( DISTINCT - 74 ) WHEN + 8 THEN ( + 19 ) WHEN - 36 THEN NULL ELSE NULL END, - 50, - COUNT ( * ) ) AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL ( NULLIF ( + CASE + - ( - - COUNT( * ) ) WHEN 36 - - - 25 THEN NULL WHEN - 35 + - COUNT( * ) / - 98 THEN NULL ELSE + COALESCE ( 39, - - 66, + + COUNT( * ) ) END, - 59 ) )
----
39

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL ( NULLIF ( + CASE + - ( - - COUNT ( * ) ) WHEN 36 - - - 25 THEN NULL WHEN - 35 + - COUNT ( * ) / - 98 THEN NULL ELSE + COALESCE ( 39, - - 66, + + COUNT ( * ) ) END, - 59 ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), - 28 ) - + MAX( DISTINCT + 85 ) + - 42 + 4
----
-151

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), - 28 ) - + MAX ( DISTINCT + 85 ) + - 42 + 4
----
-151

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

skipif mysql # not compatible
query I rowsort label-2206
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 92 + 22
----
NULL

query II rowsort
SELECT - 88 AS col1, + 52
----
-88
52

query I rowsort
SELECT ALL ( + + 0 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT - CAST( NULL AS SIGNED ) * + 79 / 76
----
NULL

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

query I rowsort
SELECT + 22 * + - 61
----
-1342

query II rowsort
SELECT + 52 AS col1, 39 col1
----
52
39

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

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

query I rowsort
SELECT - 86 * - - 92
----
-7912

query II rowsort
SELECT ALL + 76 AS col1, 78 - + 4
----
76
74

query I rowsort
SELECT + 80 - 67 AS col2
----
13

query I rowsort
SELECT - 83 * - 43 - - 22 * + 51 * - 85
----
-91801

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT + + COALESCE ( 63, + + SUM( ALL - 13 ) ) + 57 + + + 61 + - + 74 * 67 AS col0, - 71 * + + 72
----
-4777
-5112

skipif mysql # not compatible
query II rowsort label-2217
SELECT + + COALESCE ( 63, + + SUM ( ALL - 13 ) ) + 57 + + + 61 + - + 74 * 67 AS col0, - 71 * + + 72
----
-4777
-5112

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT ALL + 88, ( - 54 ) * 66 + 90 * + + COUNT( ALL - 60 ) + - 94 AS col2
----
88
-3568

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL + 88, ( - 54 ) * 66 + 90 * + + COUNT ( ALL - 60 ) + - 94 AS col2
----
88
-3568

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT + - MAX( - 24 ) * + 58 * + 91 + 2 AS col2
----
126674

skipif mysql # not compatible
query I rowsort label-2219
SELECT + - MAX ( - 24 ) * + 58 * + 91 + 2 AS col2
----
126674

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL + 68 * 98 + + + 51 * CASE - ( + 2 ) WHEN + 76 * + - 58 THEN NULL ELSE - COUNT( * ) + + 61 END + - 66 AS col2
----
9658

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + 68 * 98 + + + 51 * CASE - ( + 2 ) WHEN + 76 * + - 58 THEN NULL ELSE - COUNT ( * ) + + 61 END + - 66 AS col2
----
9658

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT 56 * COUNT( * ) + + SUM( + - 12 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 56 * COUNT ( * ) + + SUM ( + - 12 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT + CAST( - + 58 AS SIGNED ) * - 13 + - - 75 * - 42
----
-2396

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + CAST ( - + 58 AS INTEGER ) * - 13 + - - 75 * - 42
----
-2396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL + 31 * 16 + - 92 - 55 * + - CASE - NULLIF ( - COUNT( * ), - COUNT( * ) ) WHEN SUM( DISTINCT 82 ) THEN 97 ELSE - 82 END + + CAST( 69 AS SIGNED ) col0
----
-4037

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + 31 * 16 + - 92 - 55 * + - CASE - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) WHEN SUM ( DISTINCT 82 ) THEN 97 ELSE - 82 END + + CAST ( 69 AS INTEGER ) col0
----
-4037

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + + 58 * - COUNT( * ) * - COUNT( * ) - 26 + 18
----
50

skipif mysql # not compatible
query I rowsort label-2224
SELECT + + 58 * - COUNT ( * ) * - COUNT ( * ) - 26 + 18
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT ALL 57 col0, + 75 * COUNT( * ) AS col2
----
57
75

skipif mysql # not compatible
query II rowsort label-2225
SELECT ALL 57 col0, + 75 * COUNT ( * ) AS col2
----
57
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT ALL - + 51 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL - + 51 / + 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT + 62 DIV 21 * + + 18 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-2227
SELECT + 62 / 21 * + + 18 * + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2228
SELECT ALL CAST( NULL AS DECIMAL ) * ( CAST( NULL AS SIGNED ) ) + + 78 + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL CAST ( NULL AS REAL ) * ( CAST ( NULL AS INTEGER ) ) + + 78 + + 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 36 * - - ( + 13 )
----
-468

query I rowsort
SELECT ALL - 18 - - + 44
----
26

query I rowsort
SELECT + 64 * 43 AS col2
----
2752

query II rowsort
SELECT DISTINCT - 37 * + 11, - 6 AS col1
----
-407
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL - 19 - + 29 + + NULLIF ( 7, + COUNT( - 32 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - 19 - + 29 + + NULLIF ( 7, + COUNT ( - 32 ) )
----
-41

query I rowsort
SELECT 90 - + 91 + - - 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT COUNT( * ) * + COALESCE ( + + 42, - 78 - + 75 * + - 84 )
----
42

skipif mysql # not compatible
query I rowsort label-2235
SELECT COUNT ( * ) * + COALESCE ( + + 42, - 78 - + 75 * + - 84 )
----
42

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

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL COUNT ( * ) * - 62 * + 75 * + 44
----
-204600

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT 15 * + COUNT( * ), 82 AS col2
----
15
82

skipif mysql # not compatible
query II rowsort label-2237
SELECT 15 * + COUNT ( * ), 82 AS col2
----
15
82

query I rowsort
SELECT 74 * + + 68 + + 81 AS col1
----
5113

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT - 85 DIV + 20 + + 29
----
25

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 85 / + 20 + + 29
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + COUNT( ALL + 85 ) * + 83 * + + 69
----
5727

skipif mysql # not compatible
query I rowsort label-2241
SELECT + COUNT ( ALL + 85 ) * + 83 * + + 69
----
5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT COALESCE ( - 20, + CAST( 73 AS SIGNED ) ) * + 42 * - 6 + COUNT( * ) AS col2
----
5041

skipif mysql # not compatible
query I rowsort label-2242
SELECT COALESCE ( - 20, + CAST ( 73 AS INTEGER ) ) * + 42 * - 6 + COUNT ( * ) AS col2
----
5041

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT ALL - + ( + + COUNT( * ) ), CASE 4 WHEN - 49 THEN NULL ELSE SUM( - 67 ) END AS col0
----
-1
-67

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL - + ( + + COUNT ( * ) ), CASE 4 WHEN - 49 THEN NULL ELSE SUM ( - 67 ) END AS col0
----
-1
-67

query I rowsort
SELECT ALL - - 79 * + + 39 * + 78 AS col2
----
240318

query I rowsort
SELECT 92 * + 51 col2
----
4692

query I rowsort
SELECT ALL + 28 + + 97
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT 15 * - - COUNT( * ) + 91 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-2247
SELECT 15 * - - COUNT ( * ) + 91 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT + 97 * + + CAST( NULL AS SIGNED ) + + + 92 + - 74 * + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT + 97 * + + CAST ( NULL AS INTEGER ) + + + 92 + - 74 * + + 3 AS col1
----
NULL

query II rowsort
SELECT ALL + - 74 + - 96 AS col0, - 81
----
-170
-81

query I rowsort
SELECT - 90 * NULLIF ( + - NULLIF ( - - 67, + + 86 + 79 * - 82 ), + + 38 - + + 12 ) - + + 63 + - 13 * 59 * + + 89 AS col0
----
-62296

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 84 * + COUNT( ALL 16 )
----
84

skipif mysql # not compatible
query I rowsort label-2251
SELECT 84 * + COUNT ( ALL 16 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT - CASE + ( + NULLIF ( + - 78, - 63 ) ) WHEN + + 49 THEN + CAST( + 64 AS SIGNED ) * COUNT( * ) + - + 58 + + 71 * + ( - 63 ) * + 20 WHEN - 81 THEN - + 64 + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT - CASE + ( + NULLIF ( + - 78, - 63 ) ) WHEN + + 49 THEN + CAST ( + 64 AS INTEGER ) * COUNT ( * ) + - + 58 + + 71 * + ( - 63 ) * + 20 WHEN - 81 THEN - + 64 + 29 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ( - 9 ) - - 22 + SUM( + 47 ) - + 58
----
2

skipif mysql # not compatible
query I rowsort label-2254
SELECT ( - 9 ) - - 22 + SUM ( + 47 ) - + 58
----
2

query II rowsort
SELECT - 75 col0, 19 * + 10 col0
----
-75
190

query I rowsort
SELECT 64 + - + 55
----
9

query II rowsort
SELECT ALL 35 - + + 78 * + 20 AS col0, - 17
----
-1525
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT 71 * CAST( - 32 AS SIGNED ) AS col0
----
-2272

skipif mysql # not compatible
query I rowsort label-2258
SELECT 71 * CAST ( - 32 AS INTEGER ) AS col0
----
-2272

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT COUNT( * ) * - 57 * + + 3 AS col2, 30 AS col1
----
-171
30

skipif mysql # not compatible
query II rowsort label-2259
SELECT COUNT ( * ) * - 57 * + + 3 AS col2, 30 AS col1
----
-171
30

query II rowsort
SELECT 96 AS col0, 58
----
96
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT 25 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT 25 / + 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT CAST( + - 43 AS SIGNED ) + 41 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2262
SELECT CAST ( + - 43 AS INTEGER ) + 41 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT COALESCE ( - + COUNT( * ), SUM( ALL + ( - - 55 ) ) ) DIV + ( + 25 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT COALESCE ( - + COUNT ( * ), SUM ( ALL + ( - - 55 ) ) ) / + ( + 25 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT ALL 69 DIV - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL 69 / - 57 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 25 + COUNT( * ) * - - AVG ( 68 ) + + CASE 75 WHEN + 14 * + + ( + 30 ) + + COUNT( - 86 ) + 58 + 33 THEN NULL WHEN - 85 THEN + NULLIF ( + 99, + + COUNT( 76 ) ) * - + ( - 43 ) * 40 + + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT 25 + COUNT ( * ) * - - AVG ( 68 ) + + CASE 75 WHEN + 14 * + + ( + 30 ) + + COUNT ( - 86 ) + 58 + 33 THEN NULL WHEN - 85 THEN + NULLIF ( + 99, + + COUNT ( 76 ) ) * - + ( - 43 ) * 40 + + 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT ALL COALESCE ( + ( - ( - 79 ) ), - + 45 ) * COUNT( * ) * + 42 DIV - + COUNT( * ) + + - 99 + 28 * - 18
----
-3921

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL COALESCE ( + ( - ( - 79 ) ), - + 45 ) * COUNT ( * ) * + 42 / - + COUNT ( * ) + + - 99 + 28 * - 18
----
-3921

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT 41 DIV 10
----
4

skipif mysql # not compatible
query I rowsort label-2267
SELECT 41 / 10
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL - 46 * + COUNT( * ) + - - 98 col0
----
52

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - 46 * + COUNT ( * ) + - - 98 col0
----
52

query I rowsort
SELECT + 88 + + 34
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT 14 * + - COUNT( * ) + + 4
----
-10

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT 14 * + - COUNT ( * ) + + 4
----
-10

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

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - - MAX ( DISTINCT - 73 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT 51 DIV 39 - - NULLIF ( + COUNT( * ), - + 37 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2272
SELECT 51 / 39 - - NULLIF ( + COUNT ( * ), - + 37 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT DISTINCT - 73 * + 74 * + - CAST( NULL AS SIGNED ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - 73 * + 74 * + - CAST ( NULL AS INTEGER ) + 15
----
NULL

query I rowsort
SELECT + COALESCE ( + - 42, 88 )
----
-42

query I rowsort
SELECT 30 + - 1 + 73 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL - COUNT( * ) * - 58 + 88 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - COUNT ( * ) * - 58 + 88 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT 17 * + 62 * - - COUNT( * ) AS col0, 1
----
1054
1

skipif mysql # not compatible
query II rowsort label-2277
SELECT 17 * + 62 * - - COUNT ( * ) AS col0, 1
----
1054
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - - 66 DIV 18 + 63 + - 81 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2278
SELECT - - 66 / 18 + 63 + - 81 AS col2
----
-15

query I rowsort
SELECT 10 + + 27 + + - 88 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT + + 1 * - 37 + 61 * - - 97 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT + + 1 * - 37 + 61 * - - 97 - - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2281
SELECT + + COUNT ( * ), + 40 col1
----
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT + SUM( 66 ) * + - 74 + 31 AS col0
----
-4853

skipif mysql # not compatible
query I rowsort label-2282
SELECT + SUM ( 66 ) * + - 74 + 31 AS col0
----
-4853

query II rowsort
SELECT 90 + + 72, + 69 AS col1
----
162
69

query II rowsort
SELECT 19, - 95 + 24 AS col1
----
19
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT - COALESCE ( - - 55, - 76 ) * 79 * + COUNT( * ) * 7 + - 47 AS col0
----
-30462

skipif mysql # not compatible
query I rowsort label-2285
SELECT - COALESCE ( - - 55, - 76 ) * 79 * + COUNT ( * ) * 7 + - 47 AS col0
----
-30462

query I rowsort
SELECT + 30 + - 59
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT - COALESCE ( - + 10, - NULLIF ( 8, 30 * - ( + 98 ) + + 91 ) * 72 - + + ( 52 ) ) DIV + 45 * - - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT - COALESCE ( - + 10, - NULLIF ( 8, 30 * - ( + 98 ) + + 91 ) * 72 - + + ( 52 ) ) / + 45 * - - 16 AS col1
----
0

query I rowsort
SELECT 91 * 11 * 94 + - 53
----
94041

query II rowsort
SELECT - 28 AS col1, 71 * - - 18
----
-28
1278

query I rowsort
SELECT + 23 * + + 32
----
736

query II rowsort
SELECT ALL 30 AS col1, - 63 * + 56 AS col0
----
30
-3528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2292
SELECT ALL 81 col1, - CAST( + 91 AS SIGNED ) * + - CAST( 64 AS SIGNED ) - - + 57 + + 90 AS col2
----
81
5971

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL 81 col1, - CAST ( + 91 AS INTEGER ) * + - CAST ( 64 AS INTEGER ) - - + 57 + + 90 AS col2
----
81
5971

query I rowsort
SELECT ALL CASE + + 80 WHEN - ( + 84 ) - + - 34 * - 92 THEN NULL ELSE + 91 END
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT NULLIF ( 71, COUNT( * ) * - - ( + 62 ) )
----
71

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT NULLIF ( 71, COUNT ( * ) * - - ( + 62 ) )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT - COUNT( * ) col1, + 58 * + 88
----
-1
5104

skipif mysql # not compatible
query II rowsort label-2295
SELECT - COUNT ( * ) col1, + 58 * + 88
----
-1
5104

query I rowsort
SELECT ALL 81 * + 97
----
7857

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT + 87 * + + 76 * - ( COUNT( * ) ) AS col1, 26
----
-6612
26

skipif mysql # not compatible
query II rowsort label-2297
SELECT + 87 * + + 76 * - ( COUNT ( * ) ) AS col1, 26
----
-6612
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - CASE 38 WHEN + COUNT( * ) THEN 50 END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT - CASE 38 WHEN + COUNT ( * ) THEN 50 END * - 23
----
NULL

query I rowsort
SELECT + 57 + - 26
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-2300
SELECT ALL 4 AS col0, + 48 * - 49 - - + 31 + 76 * 68 DIV + - 70 AS col0
----
4
-2394

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL 4 AS col0, + 48 * - 49 - - + 31 + 76 * 68 / + - 70 AS col0
----
4
-2394

query II rowsort
SELECT DISTINCT 56 AS col2, - 73 * + 48 AS col2
----
56
-3504

query I rowsort
SELECT + 80 - + ( 9 ) * 71
----
-559

query II rowsort
SELECT ALL 15 AS col1, + 96
----
15
96

query II rowsort
SELECT DISTINCT 67 AS col0, 2 * ( + 36 ) col0
----
67
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT 25 + - + MIN( - 70 ) + - 13 * 69
----
-802

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT 25 + - + MIN ( - 70 ) + - 13 * 69
----
-802

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT ALL - 3 DIV 49 * - + 3
----
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - 3 / 49 * - + 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT ALL + - 52, + 52 + COUNT( * ) AS col0
----
-52
53

skipif mysql # not compatible
query II rowsort label-2307
SELECT ALL + - 52, + 52 + COUNT ( * ) AS col0
----
-52
53

query I rowsort
SELECT 6 * - + 72 + - 1 + 89
----
-344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT + + COUNT( * ) * - - 44 + CAST( - - SUM( + 92 ) AS SIGNED ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-2309
SELECT + + COUNT ( * ) * - - 44 + CAST ( - - SUM ( + 92 ) AS INTEGER ) AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - + ( - 97 ) * MAX( + 22 ) AS col1
----
2134

skipif mysql # not compatible
query I rowsort label-2311
SELECT - + ( - 97 ) * MAX ( + 22 ) AS col1
----
2134

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

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

query II rowsort
SELECT ALL + 14 AS col0, 0 AS col1
----
14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + ( + SUM( DISTINCT - - 89 ) ) col0
----
89

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + ( + SUM ( DISTINCT - - 89 ) ) col0
----
89

query II rowsort
SELECT - 25 col1, + 20
----
-25
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT CASE 33 WHEN 53 THEN NULL WHEN 52 * - + 83 THEN + 47 DIV 47 ELSE - 85 DIV - 77 END
----
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT CASE 33 WHEN 53 THEN NULL WHEN 52 * - + 83 THEN + 47 / 47 ELSE - 85 / - 77 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 6 * - COUNT( * ) * + - 46 * + SUM( ALL + + 54 ) AS col2
----
-14904

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 6 * - COUNT ( * ) * + - 46 * + SUM ( ALL + + 54 ) AS col2
----
-14904

query I rowsort
SELECT - ( 7 ) - - - 73
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2319
SELECT DISTINCT + 33 DIV + - 19, 38 + + 18 * - COALESCE ( ( - - 15 ), 47 + + COUNT( * ) + + 88 * - + 1 * + 14 + ( + 87 ) + + - 74 ) AS col1
----
-1
-232

skipif mysql # not compatible
query II rowsort label-2319
SELECT DISTINCT + 33 / + - 19, 38 + + 18 * - COALESCE ( ( - - 15 ), 47 + + COUNT ( * ) + + 88 * - + 1 * + 14 + ( + 87 ) + + - 74 ) AS col1
----
-1
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2320
SELECT - CAST( - 5 AS SIGNED ) + - 31 DIV COUNT( * ) + 47
----
21

skipif mysql # not compatible
query I rowsort label-2320
SELECT - CAST ( - 5 AS INTEGER ) + - 31 / COUNT ( * ) + 47
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2321
SELECT ALL CAST( + 78 AS SIGNED ) AS col2, - 63
----
78
-63

skipif mysql # not compatible
query II rowsort label-2321
SELECT ALL CAST ( + 78 AS INTEGER ) AS col2, - 63
----
78
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT DISTINCT + COUNT( * ) * 11 AS col0, - 66 * 76
----
11
-5016

skipif mysql # not compatible
query II rowsort label-2322
SELECT DISTINCT + COUNT ( * ) * 11 AS col0, - 66 * 76
----
11
-5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT ALL SUM( 55 ) * - 63 * - + CASE - COUNT( * ) WHEN - + CASE + 84 WHEN + 87 * + - 91 THEN + 20 - + 33 WHEN + 71 * 90 * 72 THEN - 60 END THEN NULL WHEN 53 THEN CAST( NULL AS SIGNED ) + + ( 15 ) END - ( + COUNT( * ) ) + + + 56 * - 56 * 42 + + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL SUM ( 55 ) * - 63 * - + CASE - COUNT ( * ) WHEN - + CASE + 84 WHEN + 87 * + - 91 THEN + 20 - + 33 WHEN + 71 * 90 * 72 THEN - 60 END THEN NULL WHEN 53 THEN CAST ( NULL AS INTEGER ) + + ( 15 ) END - ( + COUNT ( * ) ) + + + 56 * - 56 * 42 + + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT ALL + 16 * - - 49 * 42 + - 64 + - + COALESCE ( 78, - - 11 + - 58 + - + 93 ) + - + 66 - + 41 * + COUNT( * ) + - COALESCE ( - 53, COUNT( * ) * + - 20 - 36 + + COUNT( * ) - CASE - + COUNT( * ) WHEN + - ( 90 ) THEN NULL WHEN - - NULLIF ( - 54, + 8 + + 68 * - - COUNT( * ) * 13 ) * - 44 * + 76 THEN 75 + + + CAST( NULL AS SIGNED ) + 80 END ) * 40 * - 77 * + 15 col1
----
-2415921

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 16 * - - 49 * 42 + - 64 + - + COALESCE ( 78, - - 11 + - 58 + - + 93 ) + - + 66 - + 41 * + COUNT ( * ) + - COALESCE ( - 53, COUNT ( * ) * + - 20 - 36 + + COUNT ( * ) - CASE - + COUNT ( * ) WHEN + - ( 90 ) THEN NULL WHEN - - NULLIF ( - 54, + 8 + + 68 * - - COUNT ( * ) * 13 ) * - 44 * + 76 THEN 75 + + + CAST ( NULL AS INTEGER ) + 80 END ) * 40 * - 77 * + 15 col1
----
-2415921

query I rowsort
SELECT - 40 - - 23 + - 11 + 5
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT CAST( 31 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT CAST ( 31 AS INTEGER ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT - 4 + - - COALESCE ( - COUNT( * ), 18 ) + MIN( ALL + ( 91 ) ) * + CASE + - 65 WHEN 38 * - + 91 * + - 61 THEN + - 41 WHEN + 3 * 9 THEN NULL END / + + 76 - 96, + 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2327
SELECT - 4 + - - COALESCE ( - COUNT ( * ), 18 ) + MIN ( ALL + ( 91 ) ) * + CASE + - 65 WHEN 38 * - + 91 * + - 61 THEN + - 41 WHEN + 3 * 9 THEN NULL END / + + 76 - 96, + 79 AS col0
----
NULL
79

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

skipif mysql # not compatible
query I rowsort label-2328
SELECT - 22 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT ( + COALESCE ( - 79, COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT ( + COALESCE ( - 79, COUNT ( * ) ) )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2330
SELECT ALL + 62 + - CAST( - COUNT( * ) AS SIGNED ) + - 75 - - - 33 DIV 80 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + 62 + - CAST ( - COUNT ( * ) AS INTEGER ) + - 75 - - - 33 / 80 AS col2
----
-12

query II rowsort
SELECT DISTINCT + + 42 - - 88, 59 - - 10 + - + 82 + + - 36 + 38 AS col2
----
130
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2332
SELECT - - 66 + - 12 AS col2, + 2 * + + 29 + - + CAST( NULL AS SIGNED )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2332
SELECT - - 66 + - 12 AS col2, + 2 * + + 29 + - + CAST ( NULL AS INTEGER )
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL CASE - - AVG ( ALL + + 29 ) WHEN - 53 * + - NULLIF ( - 31, + 22 + - 0 ) * - + ( - 24 ) + - COUNT( * ) + + 53 + 7 THEN + 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL CASE - - AVG ( ALL + + 29 ) WHEN - 53 * + - NULLIF ( - 31, + 22 + - 0 ) * - + ( - 24 ) + - COUNT ( * ) + + 53 + 7 THEN + 83 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT - 71 * + 57 * + 77 + - + 85 * 85 AS col0, 71 + COUNT( * ) AS col2
----
-318844
72

skipif mysql # not compatible
query II rowsort label-2334
SELECT - 71 * + 57 * + 77 + - + 85 * 85 AS col0, 71 + COUNT ( * ) AS col2
----
-318844
72

query I rowsort
SELECT + + 43 * + + 44 + - 48
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + - COALESCE ( + - 40, - MAX( - + 58 ) )
----
40

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + - COALESCE ( + - 40, - MAX ( - + 58 ) )
----
40

query I rowsort
SELECT DISTINCT + 97 * 33 * + + 38 * 31
----
3770778

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

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

query I rowsort
SELECT + 27 * - 73 * + 29
----
-57159

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + 36 + + 43 * + + COUNT( * ) + - ( - 90 ) AS col1
----
169

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 36 + + 43 * + + COUNT ( * ) + - ( - 90 ) AS col1
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - - CAST( NULL AS SIGNED ) * - 26 + - 3 / + - CASE + 17 WHEN 69 * 56 THEN - 13 / 51 + - - 48 ELSE NULL END + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - - CAST ( NULL AS INTEGER ) * - 26 + - 3 / + - CASE + 17 WHEN 69 * 56 THEN - 13 / 51 + - - 48 ELSE NULL END + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT + ( + 34 ) * + ( + 41 ) - + 7 * + + COUNT( * ) + COUNT( * ) + - 18 * - 78 + + 67 AS col1, - 89 * - 13 AS col0
----
2859
1157

skipif mysql # not compatible
query II rowsort label-2342
SELECT + ( + 34 ) * + ( + 41 ) - + 7 * + + COUNT ( * ) + COUNT ( * ) + - 18 * - 78 + + 67 AS col1, - 89 * - 13 AS col0
----
2859
1157

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

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

query I rowsort
SELECT ALL + 3 * 78 + - 41 - + 29 col1
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2345
SELECT + ( + 33 ) + COALESCE ( + 99, - 41 * - ( + 99 ) * 42 * - 11 + + + 47 - + + 71 + - 6 * - - ( + 30 ) + - 1, - 6 ) DIV + 76, MAX( DISTINCT + 60 ) AS col2
----
34
60

skipif mysql # not compatible
query II rowsort label-2345
SELECT + ( + 33 ) + COALESCE ( + 99, - 41 * - ( + 99 ) * 42 * - 11 + + + 47 - + + 71 + - 6 * - - ( + 30 ) + - 1, - 6 ) / + 76, MAX ( DISTINCT + 60 ) AS col2
----
34
60

query I rowsort
SELECT ( 71 ) + - 82
----
-11

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

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

query I rowsort
SELECT DISTINCT 17 + - + ( 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL 76 + - - 54 + - - ( COUNT( + - 45 ) )
----
131

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL 76 + - - 54 + - - ( COUNT ( + - 45 ) )
----
131

query I rowsort
SELECT DISTINCT - 47 + + 25
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT DISTINCT 11 + + 59 DIV - 93 * - - MAX( - 95 )
----
11

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT 11 + + 59 / - 93 * - - MAX ( - 95 )
----
11

query II rowsort
SELECT + 35 AS col1, - NULLIF ( - 17, - - 33 ) AS col2
----
35
17

query I rowsort
SELECT 25 + 81 + + 90 * - 20 * - 94
----
169306

query I rowsort
SELECT DISTINCT 4 * + 45 AS col0
----
180

query II rowsort
SELECT DISTINCT 61, - 44 AS col2
----
61
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - COUNT( * ) + + 85 AS col1
----
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + 48 * NULLIF ( 23, - COUNT( DISTINCT - - 46 ) ) + - + 61 + + 15 * - - 91 * 19
----
26978

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 48 * NULLIF ( 23, - COUNT ( DISTINCT - - 46 ) ) + - + 61 + + 15 * - - 91 * 19
----
26978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT ALL - - 28 DIV - + ( COUNT( * ) ) + - 22 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - - 28 / - + ( COUNT ( * ) ) + - 22 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT CAST( 59 AS SIGNED ) * - 97 + COUNT( * ) col1
----
-5722

skipif mysql # not compatible
query I rowsort label-2361
SELECT CAST ( 59 AS INTEGER ) * - 97 + COUNT ( * ) col1
----
-5722

query I rowsort
SELECT - 97 * + - 58
----
5626

query I rowsort
SELECT ALL ( 68 ) AS col1
----
68

query I rowsort
SELECT + 24 - - 90 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL - COUNT( * ) * - COUNT( * ) * 31 * 58 AS col2
----
1798

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 31 * 58 AS col2
----
1798

query II rowsort
SELECT + 33 * 6 + + 80 AS col2, - 37 col2
----
278
-37

query II rowsort
SELECT 98 AS col1, + 43
----
98
43

query I rowsort
SELECT ALL 17 + - 13 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + - 18 + + - ( - ( - COUNT( * ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + - 18 + + - ( - ( - COUNT ( * ) ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT - 15 + + + MIN( + ( 60 ) )
----
45

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - 15 + + + MIN ( + ( 60 ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT 9 DIV 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT 9 / 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL 59 + + + CASE + - 35 WHEN ( 67 ) * + - 25 + + 11 THEN 84 ELSE NULL END * COUNT( * ) * - - 4 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL 59 + + + CASE + - 35 WHEN ( 67 ) * + - 25 + + 11 THEN 84 ELSE NULL END * COUNT ( * ) * - - 4 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT 15 * - + 4, + COUNT( * ) AS col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-2373
SELECT 15 * - + 4, + COUNT ( * ) AS col0
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT MAX( DISTINCT - 99 ) + - + 63
----
-162

skipif mysql # not compatible
query I rowsort label-2374
SELECT MAX ( DISTINCT - 99 ) + - + 63
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL 5 DIV + MAX( DISTINCT 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 5 / + MAX ( DISTINCT 26 ) AS col2
----
0

query I rowsort
SELECT 5 * 51
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL CAST( + 70 AS SIGNED ) + + ( + 94 ) + + + ( 90 ) AS col2
----
254

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL CAST ( + 70 AS INTEGER ) + + ( + 94 ) + + + ( 90 ) AS col2
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - 22 * + COUNT( * ) * + - 17 - + 93 - + 31 AS col1
----
250

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 22 * + COUNT ( * ) * + - 17 - + 93 - + 31 AS col1
----
250

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

skipif mysql # not compatible
query I rowsort label-2379
SELECT CAST ( NULL AS INTEGER ) + - - 27 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2380
SELECT ALL 63 - 97 * + + COUNT( * ) + - CAST( - ( - + 27 ) AS SIGNED ) + - 61 * - - 43 + - 14 * 70 DIV + 83
----
-2695

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL 63 - 97 * + + COUNT ( * ) + - CAST ( - ( - + 27 ) AS INTEGER ) + - 61 * - - 43 + - 14 * 70 / + 83
----
-2695

query I rowsort
SELECT ALL + 98 - + 72 * - - 83 * + 38 AS col1
----
-226990

query I rowsort
SELECT 24 + - 37 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT 59 - - + COUNT( * ) + - - 97 + COUNT( * ) * - + CAST( - + 80 AS SIGNED ) * + - 51 * ( + 11 ) * 68 * 61 AS col1
----
-186162083

skipif mysql # not compatible
query I rowsort label-2383
SELECT 59 - - + COUNT ( * ) + - - 97 + COUNT ( * ) * - + CAST ( - + 80 AS INTEGER ) * + - 51 * ( + 11 ) * 68 * 61 AS col1
----
-186162083

query II rowsort
SELECT 30 * 28 AS col1, 52 * 76 + - + NULLIF ( + 8, + 85 ) + + 77 AS col1
----
840
4021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT COALESCE ( - NULLIF ( - - 71, - ( + CAST( NULL AS SIGNED ) ) ), + 94, + + 97 ) + - 91 col2
----
-162

skipif mysql # not compatible
query I rowsort label-2385
SELECT COALESCE ( - NULLIF ( - - 71, - ( + CAST ( NULL AS INTEGER ) ) ), + 94, + + 97 ) + - 91 col2
----
-162

query I rowsort
SELECT ( + + ( 29 ) ) + - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - 80 * + COUNT( * ) * - + CASE - - 19 WHEN 6 * 7 THEN NULL ELSE - + COUNT( * ) + - 36 END + 23
----
-2937

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - 80 * + COUNT ( * ) * - + CASE - - 19 WHEN 6 * 7 THEN NULL ELSE - + COUNT ( * ) + - 36 END + 23
----
-2937

query I rowsort
SELECT - 45 + ( - - ( 98 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - COALESCE ( + + 87, - 17, - - COUNT( * ) ) * + + 1 * - + 2
----
174

skipif mysql # not compatible
query I rowsort label-2389
SELECT - COALESCE ( + + 87, - 17, - - COUNT ( * ) ) * + + 1 * - + 2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT MAX( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT MAX ( 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - 30 * + 50 + + COUNT( * )
----
-1499

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - 30 * + 50 + + COUNT ( * )
----
-1499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL NULLIF ( - + 39, 52 * - CASE + - 96 WHEN 40 THEN 58 WHEN ( 8 ) * - + 3 / - 3 * 32 + - + 93 + - COUNT( * ) THEN NULL WHEN - 74 * - - 78 - - CAST( NULL AS SIGNED ) THEN NULL END - - 33 ) * - 63 - - COUNT( * )
----
2458

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL NULLIF ( - + 39, 52 * - CASE + - 96 WHEN 40 THEN 58 WHEN ( 8 ) * - + 3 / - 3 * 32 + - + 93 + - COUNT ( * ) THEN NULL WHEN - 74 * - - 78 - - CAST ( NULL AS INTEGER ) THEN NULL END - - 33 ) * - 63 - - COUNT ( * )
----
2458

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT DISTINCT - COUNT( DISTINCT + - 74 ) * + ( + + 75 ) AS col1, - 79 AS col1
----
-75
-79

skipif mysql # not compatible
query II rowsort label-2393
SELECT DISTINCT - COUNT ( DISTINCT + - 74 ) * + ( + + 75 ) AS col1, - 79 AS col1
----
-75
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT ALL COALESCE ( + - COUNT( ALL + - 79 ), COUNT( * ) DIV 82, 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL COALESCE ( + - COUNT ( ALL + - 79 ), COUNT ( * ) / 82, 18 ) AS col0
----
-1

query I rowsort
SELECT + 34 + + 13 col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2396
SELECT + NULLIF ( - 67, CASE COUNT( * ) WHEN - + 21 * + + 69 * - 27 THEN 15 END * - CASE CAST( NULL AS SIGNED ) WHEN - 18 THEN NULL ELSE - 79 END + - - 6 ) DIV - + CASE + 69 WHEN 75 DIV + 56 + - + 29 THEN NULL ELSE 55 * + 63 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT + NULLIF ( - 67, CASE COUNT ( * ) WHEN - + 21 * + + 69 * - 27 THEN 15 END * - CASE CAST ( NULL AS INTEGER ) WHEN - 18 THEN NULL ELSE - 79 END + - - 6 ) / - + CASE + 69 WHEN 75 / + 56 + - + 29 THEN NULL ELSE 55 * + 63 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - COUNT( * ) + + - 93 + 30
----
-64

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - COUNT ( * ) + + - 93 + 30
----
-64

query I rowsort
SELECT - 31 * - 96 AS col2
----
2976

query I rowsort
SELECT - + 56 + + 82 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT DISTINCT 79 * - - COUNT( * ) + - 73 + + 43 + - - ( - CAST( + 38 AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT 79 * - - COUNT ( * ) + - 73 + + 43 + - - ( - CAST ( + 38 AS INTEGER ) )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2401
SELECT ALL + MAX( 3 ) AS col2, - 21 + + 11 + + 63 * - + 22 * + ( - 83 ) AS col1
----
3
115028

skipif mysql # not compatible
query II rowsort label-2401
SELECT ALL + MAX ( 3 ) AS col2, - 21 + + 11 + + 63 * - + 22 * + ( - 83 ) AS col1
----
3
115028

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT + COUNT( * ) * 11 + - + 7
----
4

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + COUNT ( * ) * 11 + - + 7
----
4

query II rowsort
SELECT DISTINCT + 41 AS col0, 71
----
41
71

query I rowsort
SELECT ALL + 50 * + - 36 * - - 63 + - 22 AS col1
----
-113422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2405
SELECT - ( - 65 ) DIV - ( + + COUNT( + 94 ) ) + + COUNT( * ) + 99 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2405
SELECT - ( - 65 ) / - ( + + COUNT ( + 94 ) ) + + COUNT ( * ) + 99 AS col2
----
35

query I rowsort
SELECT ALL - 73 * 89 + - 11 + ( - 54 ) * + ( + - 41 ) col0
----
-4294

query I rowsort
SELECT NULLIF ( + 68, - 6 + + + 62 + - - 48 + - + 51 )
----
68

query I rowsort
SELECT - 5 + - 42 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT + 11 * + NULLIF ( - CAST( - 25 AS SIGNED ), 33 ) * 59 * + + 32 * + 79, + 4 * NULLIF ( + + COUNT( * ), + - 48 ) * + 24 + - 36 AS col0
----
41016800
60

skipif mysql # not compatible
query II rowsort label-2409
SELECT + 11 * + NULLIF ( - CAST ( - 25 AS INTEGER ), 33 ) * 59 * + + 32 * + 79, + 4 * NULLIF ( + + COUNT ( * ), + - 48 ) * + 24 + - 36 AS col0
----
41016800
60

query I rowsort
SELECT ALL + ( + + 76 ) col2
----
76

query I rowsort
SELECT + 75 * + 39 AS col1
----
2925

query I rowsort
SELECT 30 * + 72 + NULLIF ( - + 46, + 18 + + - 82 ) AS col1
----
2114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2413
SELECT + COUNT( * ) + - + 4 + 50 col2, - 26 / MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2413
SELECT + COUNT ( * ) + - + 4 + 50 col2, - 26 / MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
47
NULL

query I rowsort
SELECT - 39 * - + ( - 22 ) AS col0
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT + COUNT( * ) * - - 14 * + 17 * - - 41 * 10 * 5
----
487900

skipif mysql # not compatible
query I rowsort label-2415
SELECT + COUNT ( * ) * - - 14 * + 17 * - - 41 * 10 * 5
----
487900

query I rowsort
SELECT DISTINCT 51 * 62
----
3162

query I rowsort
SELECT + 15 * + CASE 22 WHEN + 1 THEN NULL WHEN + 38 THEN NULL ELSE + + 13 END AS col2
----
195

query I rowsort
SELECT + CASE - + 14 WHEN - 4 * - 27 * + 46 THEN NULL WHEN 10 THEN NULL WHEN COALESCE ( + - 0, + ( + 52 ) + 66 * + 11 ) THEN 16 / - + 67 + - 37 END * + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL - 92 * - MIN( + 32 ) AS col0
----
2944

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - 92 * - MIN ( + 32 ) AS col0
----
2944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT + - CASE - 61 WHEN - + COUNT( DISTINCT 11 ) THEN - - 95 WHEN 55 THEN NULL ELSE - + 25 + 35 - 55 - 75 + + 3 + 31 DIV + 74 DIV COUNT( * ) * - COUNT( * ) END * 28 - - - ( - + 5 ) + + ( - - COUNT( * ) ) + + 73 - + 4 * ( - COUNT( * ) )
----
3359

skipif mysql # not compatible
query I rowsort label-2420
SELECT + - CASE - 61 WHEN - + COUNT ( DISTINCT 11 ) THEN - - 95 WHEN 55 THEN NULL ELSE - + 25 + 35 - 55 - 75 + + 3 + 31 / + 74 / COUNT ( * ) * - COUNT ( * ) END * 28 - - - ( - + 5 ) + + ( - - COUNT ( * ) ) + + 73 - + 4 * ( - COUNT ( * ) )
----
3359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT DISTINCT 31 * - - COUNT( * ) * + CAST( - ( + + COALESCE ( 47, + 60 * + 65 ) ) AS SIGNED )
----
-1457

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 31 * - - COUNT ( * ) * + CAST ( - ( + + COALESCE ( 47, + 60 * + 65 ) ) AS INTEGER )
----
-1457

query I rowsort
SELECT DISTINCT + CASE - + 14 WHEN + CASE 41 WHEN - - ( + ( + NULLIF ( - 41, + + 24 * + 79 ) ) ) THEN NULL WHEN - 88 THEN + + 64 ELSE NULL END THEN - + 88 END
----
NULL

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

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

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

query I rowsort
SELECT ALL + 66 + + 53
----
119

query I rowsort
SELECT - - 96 * + 69 AS col0
----
6624

query I rowsort
SELECT + - 85 * + - 69
----
5865

query I rowsort
SELECT + 59 - - 96 col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL + COUNT( * ) + - 59 + + - 22 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + COUNT ( * ) + - 59 + + - 22 AS col0
----
-80

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

query I rowsort
SELECT ALL + + 80 + + 3
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT ALL - SUM( DISTINCT ( 4 ) ) DIV - 29 * 42 + - + ( + 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - SUM ( DISTINCT ( 4 ) ) / - 29 * 42 + - + ( + 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT ALL - NULLIF ( 76, + + 3 - + COUNT( * ) * - - 39 ) DIV + 76 + - 66 + - 97 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - NULLIF ( 76, + + 3 - + COUNT ( * ) * - - 39 ) / + 76 + - 66 + - 97 AS col0
----
-164

query II rowsort
SELECT - 88 * 26 * + 15 * + 87 col1, 8 AS col1
----
-2985840
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT - 5 DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 5 / + 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT + 25 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + 25 / - 76
----
0

query II rowsort
SELECT ALL + 89 AS col0, - 89 + - 92 AS col2
----
89
-181

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT + 32, 89 + 11 + + COUNT( * ) - + SUM( ALL + - 57 ) AS col0
----
32
158

skipif mysql # not compatible
query II rowsort label-2439
SELECT + 32, 89 + 11 + + COUNT ( * ) - + SUM ( ALL + - 57 ) AS col0
----
32
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL ( + CASE + 54 WHEN - - 13 / - + 35 THEN - 41 + 63 WHEN - - 71 THEN - - MIN( 32 ) END ) / 47 + - - 94 - + 40 + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL ( + CASE + 54 WHEN - - 13 / - + 35 THEN - 41 + 63 WHEN - - 71 THEN - - MIN ( 32 ) END ) / 47 + - - 94 - + 40 + + 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 40 ) AS col2
----
-40

query I rowsort
SELECT - 51 * - 21 AS col2
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL + CAST( + COUNT( 86 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + CAST ( + COUNT ( 86 ) AS INTEGER ) AS col1
----
1

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

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

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

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

query I rowsort
SELECT - 15 * + 63 AS col1
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT + COUNT( * ) * + NULLIF ( + 92, + 22 ), - 22 + + + 58 AS col0
----
92
36

skipif mysql # not compatible
query II rowsort label-2447
SELECT + COUNT ( * ) * + NULLIF ( + 92, + 22 ), - 22 + + + 58 AS col0
----
92
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + 50 * - + 50 + 53 + + - MAX( DISTINCT + 85 ) * + 20 + + + CASE - COALESCE ( - 22, + COALESCE ( + 1, + 74, COALESCE ( - - 1, 25 ), COUNT( + + 70 ) + - 66 + + + 72 ) ) WHEN 39 * COUNT( * ) + + 46 THEN NULL WHEN + 44 THEN + 13 END + 77 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT + 50 * - + 50 + 53 + + - MAX ( DISTINCT + 85 ) * + 20 + + + CASE - COALESCE ( - 22, + COALESCE ( + 1, + 74, COALESCE ( - - 1, 25 ), COUNT ( + + 70 ) + - 66 + + + 72 ) ) WHEN 39 * COUNT ( * ) + + 46 THEN NULL WHEN + 44 THEN + 13 END + 77 * + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT ALL + CAST( - 19 AS SIGNED ) * + + 73
----
-1387

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + CAST ( - 19 AS INTEGER ) * + + 73
----
-1387

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT - - SUM( ALL 45 ) + - - 42 * - + 71 AS col0, + 16
----
-2937
16

skipif mysql # not compatible
query II rowsort label-2451
SELECT - - SUM ( ALL 45 ) + - - 42 * - + 71 AS col0, + 16
----
-2937
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL + MAX( ALL - 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + MAX ( ALL - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL + 3 + 43
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT 60 - + 53 * + 20 * + - CASE + + NULLIF ( + + COUNT( * ), - 44 ) WHEN - - ( + + 55 ) * - 25 / 93 THEN NULL WHEN - 91 - - ( + COUNT( * ) ) * 12 THEN - ( + 91 ) * + + 7 - + SUM( ALL 10 ) + + - 75 ELSE - 93 * - 73 END
----
7196400

skipif mysql # not compatible
query I rowsort label-2454
SELECT 60 - + 53 * + 20 * + - CASE + + NULLIF ( + + COUNT ( * ), - 44 ) WHEN - - ( + + 55 ) * - 25 / 93 THEN NULL WHEN - 91 - - ( + COUNT ( * ) ) * 12 THEN - ( + 91 ) * + + 7 - + SUM ( ALL 10 ) + + - 75 ELSE - 93 * - 73 END
----
7196400

query I rowsort
SELECT 62 + + + 11
----
73

query I rowsort
SELECT ALL - ( 6 ) + 66 + - 79 * + + 74 col0
----
-5786

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + 44 + 86 * + 14 * + MIN( ALL - + 92 ) AS col1
----
-110724

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 44 + 86 * + 14 * + MIN ( ALL - + 92 ) AS col1
----
-110724

query I rowsort
SELECT ALL - ( - 11 ) * - 19 AS col2
----
-209

query I rowsort
SELECT - 53 * 59 col1
----
-3127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2460
SELECT DISTINCT - + 37 + + COUNT( * ) + + - COUNT( * ) DIV - - 21
----
-36

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - + 37 + + COUNT ( * ) + + - COUNT ( * ) / - - 21
----
-36

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

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

query I rowsort
SELECT ALL 49 * + - 89
----
-4361

query II rowsort
SELECT 29 col0, ( + 97 ) + 16 col0
----
29
113

query I rowsort
SELECT DISTINCT - 93 - - + 20 AS col1
----
-73

query I rowsort
SELECT 15 + + ( 23 ) AS col1
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL ( 91 ) * 74 * - 92 + - - COUNT( * )
----
-619527

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL ( 91 ) * 74 * - 92 + - - COUNT ( * )
----
-619527

query I rowsort
SELECT ALL + 12 * 29
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT CAST( NULL AS SIGNED ) * CASE + - 68 WHEN - 34 * - 38 + 60 + - 16 THEN + 38 * 69 ELSE - + MAX( ALL - 76 ) + - ( + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT CAST ( NULL AS INTEGER ) * CASE + - 68 WHEN - 34 * - 38 + 60 + - 16 THEN + 38 * 69 ELSE - + MAX ( ALL - 76 ) + - ( + 78 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT ALL ( - - NULLIF ( COUNT( * ), + + 58 ) ) * + COUNT( * ), NULLIF ( ( + 82 ), - 28 ) AS col0
----
1
82

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL ( - - NULLIF ( COUNT ( * ), + + 58 ) ) * + COUNT ( * ), NULLIF ( ( + 82 ), - 28 ) AS col0
----
1
82

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

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

query I rowsort
SELECT + 71 * + 12 + 53 + - + 89 + - - 5 AS col2
----
821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT 75 DIV - 13 * COUNT( ALL + - 8 )
----
-5

skipif mysql # not compatible
query I rowsort label-2473
SELECT 75 / - 13 * COUNT ( ALL + - 8 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT + ( - 17 ) DIV + + 19 + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2474
SELECT + ( - 17 ) / + + 19 + 54 AS col0
----
54

query II rowsort
SELECT 59 * - - 49 AS col0, + 95 + + ( + 21 )
----
2891
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL - - 27 + MAX( 31 )
----
58

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - - 27 + MAX ( 31 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT DISTINCT + + 64 + 93 + + COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT + + 64 + 93 + + COUNT ( * )
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT ALL + - 14 + + 49 - + - COUNT( * ) DIV COUNT( ALL - 44 ) DIV 71 + + 67 + MAX( - + 16 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + - 14 + + 49 - + - COUNT ( * ) / COUNT ( ALL - 44 ) / 71 + + 67 + MAX ( - + 16 ) AS col0
----
86

query I rowsort
SELECT + - CASE 24 WHEN NULLIF ( CASE + + 95 WHEN - 15 * + 76 THEN AVG ( - 50 ) END, + 71 ) * + + ( + ( + 73 ) ) + + 56 + - 58 THEN NULL ELSE - 26 END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT COUNT( ALL + 82 ) * - 25
----
-25

skipif mysql # not compatible
query I rowsort label-2480
SELECT COUNT ( ALL + 82 ) * - 25
----
-25

query I rowsort
SELECT 54 * 82
----
4428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT ALL + + CAST( NULL AS SIGNED ) * + - 33 + - + 71 + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - 33 + - + 71 + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT MAX( ALL - - 12 ) + - 82
----
-70

skipif mysql # not compatible
query I rowsort label-2483
SELECT MAX ( ALL - - 12 ) + - 82
----
-70

query I rowsort
SELECT DISTINCT + 47 * - - 85 * COALESCE ( 58, + 98 ) AS col0
----
231710

query I rowsort
SELECT ALL 94 + + 2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT DISTINCT - 55 + + CAST( 69 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - 55 + + CAST ( 69 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT - 97 - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - 97 - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - ( MAX( + ( 50 ) ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2488
SELECT - ( MAX ( + ( 50 ) ) ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT CAST( 81 AS SIGNED ) + - + 86 * ( COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2489
SELECT CAST ( 81 AS INTEGER ) + - + 86 * ( COUNT ( * ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT DISTINCT + + 9 - + 46 col0, MAX( DISTINCT - + 92 )
----
-37
-92

skipif mysql # not compatible
query II rowsort label-2490
SELECT DISTINCT + + 9 - + 46 col0, MAX ( DISTINCT - + 92 )
----
-37
-92

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

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

query I rowsort
SELECT - 0 + 0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT 59 * COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT 59 * COUNT ( * ) AS col2
----
59

query I rowsort
SELECT 18 - ( - 34 ) * - 98
----
-3314

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

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - COUNT ( * ) / - 22
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT DISTINCT ( 47 ) * - CAST( NULL AS SIGNED ) * + + 35 - 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT ( 47 ) * - CAST ( NULL AS INTEGER ) * + + 35 - 73 col1
----
NULL

query I rowsort
SELECT DISTINCT 94 - 38 * 39 col1
----
-1388

query I rowsort
SELECT DISTINCT - 25 * + + 5 col1
----
-125

onlyif mysql # DIV for integer division: 
query II rowsort label-2500
SELECT 44 DIV - 53 * - 58 * - - 3 AS col0, 75 col2
----
0
75

skipif mysql # not compatible
query II rowsort label-2500
SELECT 44 / - 53 * - 58 * - - 3 AS col0, 75 col2
----
0
75

query I rowsort
SELECT DISTINCT ( + + 5 ) * 33 * - 42
----
-6930

query II rowsort
SELECT DISTINCT 32 col2, - 32 AS col0
----
32
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2503
SELECT 35 * - 19 * - + COALESCE ( + + 85, + - 50 + - + COUNT( ALL + - ( 51 ) ) DIV + - 83 + - 8 - CAST( NULL AS SIGNED ) + - + 40 * 76 ) - - + MAX( DISTINCT - + 97 ) * 85 + + NULLIF ( + + ( - 27 ), - - 20 + COUNT( * ) )
----
48253

skipif mysql # not compatible
query I rowsort label-2503
SELECT 35 * - 19 * - + COALESCE ( + + 85, + - 50 + - + COUNT ( ALL + - ( 51 ) ) / + - 83 + - 8 - CAST ( NULL AS INTEGER ) + - + 40 * 76 ) - - + MAX ( DISTINCT - + 97 ) * 85 + + NULLIF ( + + ( - 27 ), - - 20 + COUNT ( * ) )
----
48253

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2504
SELECT ( + NULLIF ( + + 50, + 92 ) ) * + ( - NULLIF ( + 92, - - ( 86 ) ) ), - CASE + CAST( NULL AS SIGNED ) WHEN + 34 THEN - ( + + 87 ) END / - + 78 AS col0
----
-4600
NULL

skipif mysql # not compatible
query II rowsort label-2504
SELECT ( + NULLIF ( + + 50, + 92 ) ) * + ( - NULLIF ( + 92, - - ( 86 ) ) ), - CASE + CAST ( NULL AS INTEGER ) WHEN + 34 THEN - ( + + 87 ) END / - + 78 AS col0
----
-4600
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2505
SELECT ALL 17 * - 95 * - 83 * - 81 + 30 DIV - 12 + - CAST( + 73 AS SIGNED ) * 40 + 27 AS col0
----
-10860540

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL 17 * - 95 * - 83 * - 81 + 30 / - 12 + - CAST ( + 73 AS INTEGER ) * 40 + 27 AS col0
----
-10860540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2506
SELECT ALL - 88 AS col2, MAX( ALL + ( - - 56 ) ) DIV 61 AS col0
----
-88
0

skipif mysql # not compatible
query II rowsort label-2506
SELECT ALL - 88 AS col2, MAX ( ALL + ( - - 56 ) ) / 61 AS col0
----
-88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT MIN( DISTINCT 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2507
SELECT MIN ( DISTINCT 79 ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT ( 54 ) * - - ( + CAST( + - 97 AS SIGNED ) ) + 27 * - 31 col1
----
-6075

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT ( 54 ) * - - ( + CAST ( + - 97 AS INTEGER ) ) + 27 * - 31 col1
----
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + CASE + 45 WHEN + + 65 / + 6 THEN 49 WHEN - NULLIF ( - + 53, + SUM( DISTINCT + 70 ) / + 17 * + 72 ) THEN NULL ELSE - 54 END
----
-54

skipif mysql # not compatible
query I rowsort label-2509
SELECT + CASE + 45 WHEN + + 65 / + 6 THEN 49 WHEN - NULLIF ( - + 53, + SUM ( DISTINCT + 70 ) / + 17 * + 72 ) THEN NULL ELSE - 54 END
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL 60 * 78 * - 80 + - 27 * - COUNT( 75 )
----
-374373

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL 60 * 78 * - 80 + - 27 * - COUNT ( 75 )
----
-374373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT - + 75 * + + 64 DIV + - COUNT( * )
----
4800

skipif mysql # not compatible
query I rowsort label-2511
SELECT - + 75 * + + 64 / + - COUNT ( * )
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL - NULLIF ( + 5, - - 88 + - + AVG ( - 29 ) * - COUNT( * ) * + - 26 ) * - 65 + 97
----
422

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - NULLIF ( + 5, - - 88 + - + AVG ( - 29 ) * - COUNT ( * ) * + - 26 ) * - 65 + 97
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 14 * + 95 + - + COUNT( * )
----
1329

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

query I rowsort
SELECT - 39 + - + 27 - + 99 * - + 61 AS col1
----
5973

query I rowsort
SELECT ALL - 59 - + + 36
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - - SUM( ALL - 9 ) * - COALESCE ( + 57, - + 72 )
----
513

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - - SUM ( ALL - 9 ) * - COALESCE ( + 57, - + 72 )
----
513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT - - ( - 66 ) + 73 + + 94 + - 16 + - 12 * + 56 + CAST( NULL AS SIGNED ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - - ( - 66 ) + 73 + + 94 + - 16 + - 12 * + 56 + CAST ( NULL AS INTEGER ) + + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2518
SELECT - CAST( NULL AS DECIMAL ) * + 87 + - + 20 + + 40 + + + 8 * - - 68 + - 66 + + - 73 + - CAST( + + MIN( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT - CAST ( NULL AS REAL ) * + 87 + - + 20 + + 40 + + + 8 * - - 68 + - 66 + + - 73 + - CAST ( + + MIN ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) + 32
----
NULL

query I rowsort
SELECT DISTINCT - + 44 * - 97 + + 45 col1
----
4313

query II rowsort
SELECT ALL 97, - 27 col1
----
97
-27

query I rowsort
SELECT - 28 * + 88
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT - 98 * NULLIF ( - - 34, + + NULLIF ( - - COUNT( * ), NULLIF ( - COUNT( * ), 13 / + + 83 ) ) - - CAST( 57 AS SIGNED ) + - - ( 22 ) * - ( - CAST( + - 25 AS SIGNED ) ) - COUNT( * ) + NULLIF ( 30, - 82 ) ) col2
----
-3332

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 98 * NULLIF ( - - 34, + + NULLIF ( - - COUNT ( * ), NULLIF ( - COUNT ( * ), 13 / + + 83 ) ) - - CAST ( 57 AS INTEGER ) + - - ( 22 ) * - ( - CAST ( + - 25 AS INTEGER ) ) - COUNT ( * ) + NULLIF ( 30, - 82 ) ) col2
----
-3332

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2524
SELECT 58 AS col2, - COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT 58 AS col2, - COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
58
NULL

query I rowsort
SELECT DISTINCT - 57 * - 8 AS col0
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT - 41 + MIN( ALL + - 30 ) + 15 + + + 50 DIV 19 + + - ( 55 )
----
-109

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 41 + MIN ( ALL + - 30 ) + 15 + + + 50 / 19 + + - ( 55 )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL ( COUNT( * ) ) col2, + ( - 48 )
----
1
-48

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL ( COUNT ( * ) ) col2, + ( - 48 )
----
1
-48

query I rowsort
SELECT - 59 * + 50 AS col0
----
-2950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT - 23 + + CAST( - 5 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 23 + + CAST ( - 5 AS INTEGER )
----
-28

query I rowsort
SELECT + 28 * - ( + 94 )
----
-2632

query I rowsort
SELECT ALL + 39 + - 22 AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL 87 + - ( COUNT ( * ) ) * - 55 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT - 92 + SUM( - 76 ) + + - 27 AS col1, + 56 AS col2
----
-195
56

skipif mysql # not compatible
query II rowsort label-2533
SELECT - 92 + SUM ( - 76 ) + + - 27 AS col1, + 56 AS col2
----
-195
56

query II rowsort
SELECT DISTINCT 4 * + 38, - 10 AS col2
----
152
-10

query I rowsort
SELECT DISTINCT - 94 + - - 74 - + 87 * + 86 + - NULLIF ( - 28, - 36 ) + + 72 AS col0
----
-7402

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL 88 DIV - - 54 + - 63 + + - NULLIF ( ( - ( - + 12 ) ), - ( - 63 ) ) * + 70 * + 67
----
-56342

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL 88 / - - 54 + - 63 + + - NULLIF ( ( - ( - + 12 ) ), - ( - 63 ) ) * + 70 * + 67
----
-56342

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

skipif mysql # not compatible
query I rowsort label-2537
SELECT COUNT ( * ) / - 20 + + 68 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT DISTINCT 50 DIV 45 + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT 50 / 45 + - 38
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2539
SELECT ALL 0 DIV - - 3 + - + 9 - SUM( + 62 ) DIV - 91 * - 9 * - 24 * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 0 / - - 3 + - + 9 - SUM ( + 62 ) / - 91 * - 9 * - 24 * - 9
----
-9

query I rowsort
SELECT + 39 + 95
----
134

query I rowsort
SELECT + ( ( + + 27 ) ) + ( 25 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + - NULLIF ( COUNT( * ), 3 * + 55 * + ( - + 89 ) + - + 99 - - 24 + - + COALESCE ( + CASE - COUNT( * ) WHEN - - 87 THEN NULL ELSE - - 80 END, - SUM( + 68 ) ) * - NULLIF ( + 93, - 0 / MIN( ALL 35 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + - NULLIF ( COUNT ( * ), 3 * + 55 * + ( - + 89 ) + - + 99 - - 24 + - + COALESCE ( + CASE - COUNT ( * ) WHEN - - 87 THEN NULL ELSE - - 80 END, - SUM ( + 68 ) ) * - NULLIF ( + 93, - 0 / MIN ( ALL 35 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT + ( + MAX( ALL 58 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + ( + MAX ( ALL 58 ) ) AS col0
----
58

query II rowsort
SELECT ALL 47 * - + 80 - + - 22 + + 76 col0, - 31 * 11 AS col2
----
-3662
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + 57 + + SUM( DISTINCT + 99 ) + - + 86 * - 20 AS col0
----
1876

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 57 + + SUM ( DISTINCT + 99 ) + - + 86 * - 20 AS col0
----
1876

query I rowsort
SELECT ALL 43 * - 89 * + 11 + + 81
----
-42016

query I rowsort
SELECT ALL - 58 * 34
----
-1972

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT + COUNT( + 63 ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2548
SELECT + COUNT ( + 63 ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT COUNT( * ) * 70 - - 37
----
107

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT COUNT ( * ) * 70 - - 37
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT + 98 * - - 10 - 82 * - + 90 - - COUNT( * ) AS col1
----
8361

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT + 98 * - - 10 - 82 * - + 90 - - COUNT ( * ) AS col1
----
8361

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + + NULLIF ( - COUNT( * ), + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + + NULLIF ( - COUNT ( * ), + 43 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT + COUNT( * ) / 6 * - + NULLIF ( - - 17, ( - 13 ) * 88 * - 9 * 63 + + 46 ) * - 80 + 12 * - AVG ( + + NULLIF ( - - CAST( NULL AS SIGNED ), 38 + - 61 + - CASE - + 32 WHEN - 42 THEN + + 75 WHEN - 66 THEN NULL ELSE NULL END + 16 / 54 * 41 ) ) + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT + COUNT ( * ) / 6 * - + NULLIF ( - - 17, ( - 13 ) * 88 * - 9 * 63 + + 46 ) * - 80 + 12 * - AVG ( + + NULLIF ( - - CAST ( NULL AS INTEGER ), 38 + - 61 + - CASE - + 32 WHEN - 42 THEN + + 75 WHEN - 66 THEN NULL ELSE NULL END + 16 / 54 * 41 ) ) + 69 AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT ALL + 81 DIV + 32 + - 48 - + - COUNT( * ) * + 97 + 60 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + 81 / + 32 + - 48 - + - COUNT ( * ) * + 97 + 60 AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2556
SELECT + - SUM( - 15 ) DIV 19 * 85 DIV + CAST( 34 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT + - SUM ( - 15 ) / 19 * 85 / + CAST ( 34 AS INTEGER )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2558
SELECT DISTINCT CASE - - COUNT( * ) WHEN + + COUNT( ALL + 37 ) * - 49 THEN NULL WHEN + 63 * - CAST( 75 AS SIGNED ) THEN - 6 ELSE - 76 END DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + + COUNT ( ALL + 37 ) * - 49 THEN NULL WHEN + 63 * - CAST ( 75 AS INTEGER ) THEN - 6 ELSE - 76 END / 98
----
0

query I rowsort
SELECT DISTINCT - ( - 49 ) + 11 + - - 93 * + 16 + + + 44 + + - 97 AS col0
----
1495

query I rowsort
SELECT + 99 * - + 64
----
-6336

query I rowsort
SELECT - 5 + - - 41 + - 97
----
-61

query I rowsort
SELECT ALL - 8 + + 86 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - SUM( DISTINCT - + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2563
SELECT - SUM ( DISTINCT - + 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT - 90 + 97 - + - ( + 16 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT - 52 + + 22 + + COUNT( * ) * - COUNT( * ) DIV - + SUM( + 94 )
----
-30

skipif mysql # not compatible
query I rowsort label-2565
SELECT - 52 + + 22 + + COUNT ( * ) * - COUNT ( * ) / - + SUM ( + 94 )
----
-30

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

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

query I rowsort
SELECT - 69 * + 85
----
-5865

query II rowsort
SELECT 23 AS col2, - CASE + 93 WHEN AVG ( DISTINCT NULLIF ( 32, + 15 ) ) THEN + 5 END
----
23
NULL

query I rowsort
SELECT ALL + 45 + 79 + - 53
----
71

query I rowsort
SELECT DISTINCT - 90 + 31
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT + 63 + 86 - + - 42 * - MAX( + 5 ) - + + 80
----
-141

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + 63 + 86 - + - 42 * - MAX ( + 5 ) - + + 80
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + COUNT( * ) + - 45 * - + MAX( - 37 )
----
-1664

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + COUNT ( * ) + - 45 * - + MAX ( - 37 )
----
-1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT + 77 * - SUM( DISTINCT 23 ) * + 91 + - SUM( ALL - ( - 15 ) ) + CAST( NULL AS SIGNED ) + + - 35 - + 27 + + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT + 77 * - SUM ( DISTINCT 23 ) * + 91 + - SUM ( ALL - ( - 15 ) ) + CAST ( NULL AS INTEGER ) + + - 35 - + 27 + + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + NULLIF ( + 51, COUNT( * ) * 4 + 61 + + COUNT( * ) - - 58 - + ( 87 ) + 1 + 59 * - 16 * - COUNT( * ) - 61 * - 1 ) * - 61 + + 84
----
-3027

skipif mysql # not compatible
query I rowsort label-2574
SELECT + NULLIF ( + 51, COUNT ( * ) * 4 + 61 + + COUNT ( * ) - - 58 - + ( 87 ) + 1 + 59 * - 16 * - COUNT ( * ) - 61 * - 1 ) * - 61 + + 84
----
-3027

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT ALL + - 40 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + - 40 / + 85
----
0

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

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

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

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

query I rowsort
SELECT ALL + - ( 27 ) - + 53 * - 91 AS col1
----
4796

query I rowsort
SELECT - 3 * + + 0 * + 12
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT ALL - - 3 * + COALESCE ( + + ( 87 ), - + MIN( 97 ) ) DIV COUNT( * ) AS col1
----
261

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - - 3 * + COALESCE ( + + ( 87 ), - + MIN ( 97 ) ) / COUNT ( * ) AS col1
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT + + 23 DIV 90 + 78 * - 81 AS col1
----
-6318

skipif mysql # not compatible
query I rowsort label-2581
SELECT + + 23 / 90 + 78 * - 81 AS col1
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - 23 * - 92 * 96 - + 50 + 4 * + COUNT( * ) AS col0
----
203090

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 23 * - 92 * 96 - + 50 + 4 * + COUNT ( * ) AS col0
----
203090

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2583
SELECT + NULLIF ( - - 22, - CAST( NULL AS SIGNED ) + - AVG ( + 32 ) ), + CAST( - 35 AS SIGNED ) AS col1
----
22
-35

skipif mysql # not compatible
query II rowsort label-2583
SELECT + NULLIF ( - - 22, - CAST ( NULL AS INTEGER ) + - AVG ( + 32 ) ), + CAST ( - 35 AS INTEGER ) AS col1
----
22
-35

query I rowsort
SELECT 31 + 73 * + - 61 AS col2
----
-4422

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT ( + 33 ) * + + 15 + + - 36 + - - 44 + + - CAST( 33 AS SIGNED ) AS col0
----
470

skipif mysql # not compatible
query I rowsort label-2586
SELECT ( + 33 ) * + + 15 + + - 36 + - - 44 + + - CAST ( 33 AS INTEGER ) AS col0
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT + 53 * 74 * - 65 DIV COUNT( * ) AS col2
----
-254930

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 53 * 74 * - 65 / COUNT ( * ) AS col2
----
-254930

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT 8 + 83 - 12 DIV - 70
----
91

skipif mysql # not compatible
query I rowsort label-2588
SELECT 8 + 83 - 12 / - 70
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT + CASE 71 WHEN COUNT( * ) THEN - + 74 + + + COUNT( * ) * + 16 + + + 31 ELSE + - SUM( + + 74 ) DIV - - 65 END * - 45 * - ( + 98 ) + + 38
----
-4372

skipif mysql # not compatible
query I rowsort label-2589
SELECT + CASE 71 WHEN COUNT ( * ) THEN - + 74 + + + COUNT ( * ) * + 16 + + + 31 ELSE + - SUM ( + + 74 ) / - - 65 END * - 45 * - ( + 98 ) + + 38
----
-4372

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + 44 * COUNT( * ) + + SUM( DISTINCT - - NULLIF ( 84, + 68 ) ) * - 93 AS col0
----
-7768

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 44 * COUNT ( * ) + + SUM ( DISTINCT - - NULLIF ( 84, + 68 ) ) * - 93 AS col0
----
-7768

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT COUNT( * ) + - + 75 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2591
SELECT COUNT ( * ) + - + 75 AS col1
----
-74

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

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

query I rowsort
SELECT 53 + - 9 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2594
SELECT ALL 15 AS col1, + COUNT( DISTINCT + 72 ) + COUNT( * ) * + 40 * - CAST( - 0 AS SIGNED ) + 66 DIV - 88 col0
----
15
1

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL 15 AS col1, + COUNT ( DISTINCT + 72 ) + COUNT ( * ) * + 40 * - CAST ( - 0 AS INTEGER ) + 66 / - 88 col0
----
15
1

query I rowsort
SELECT ALL 70 + + + 41 AS col1
----
111

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

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

query I rowsort
SELECT ( + 76 ) * - + 95 AS col0
----
-7220

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT ( - - 53 ) DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT ( - - 53 ) / - 61 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL CAST( - 91 AS SIGNED ) + 76 * - 69 * ( + 12 ) * - 76 * + + NULLIF ( - - COUNT( + - 12 ), + 65 + 63 )
----
4782437

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL CAST ( - 91 AS INTEGER ) + 76 * - 69 * ( + 12 ) * - 76 * + + NULLIF ( - - COUNT ( + - 12 ), + 65 + 63 )
----
4782437

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

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

query I rowsort
SELECT ALL - 77 + 83 col1
----
6

query I rowsort
SELECT ALL + 22 + 34
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT ALL 28 DIV COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 28 / COUNT ( * )
----
28

query I rowsort
SELECT ( - 30 ) + - 28 AS col1
----
-58

query I rowsort
SELECT 85 - - ( + 23 ) AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT ALL 21 + + MIN( DISTINCT + 36 ) + - COALESCE ( - 52, + - 64, + - NULLIF ( - COUNT( * ), + + 92 ) * + 11 + 51 * - + 59 * - ( + - COUNT( * ) ) ) - + COUNT( * ) + + 54 * - COUNT( * ) DIV 69 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL 21 + + MIN ( DISTINCT + 36 ) + - COALESCE ( - 52, + - 64, + - NULLIF ( - COUNT ( * ), + + 92 ) * + 11 + 51 * - + 59 * - ( + - COUNT ( * ) ) ) - + COUNT ( * ) + + 54 * - COUNT ( * ) / 69 AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT 87, 41 * - + CASE - 67 WHEN COUNT( * ) THEN NULL WHEN + 23 THEN NULL ELSE + - 37 * + + COUNT( ALL - 76 ) END * - - COUNT( * ) AS col1
----
87
1517

skipif mysql # not compatible
query II rowsort label-2608
SELECT 87, 41 * - + CASE - 67 WHEN COUNT ( * ) THEN NULL WHEN + 23 THEN NULL ELSE + - 37 * + + COUNT ( ALL - 76 ) END * - - COUNT ( * ) AS col1
----
87
1517

query I rowsort
SELECT 74 + - 7
----
67

query II rowsort
SELECT 95 AS col0, 54
----
95
54

query II rowsort
SELECT 30 AS col2, - 25
----
30
-25

query I rowsort
SELECT 84 + - 92 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 91 * + 71 * + + 29 * - ( - 22 ) AS col2
----
4122118

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT - 78 + + SUM( + 34 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2614
SELECT - 78 + + SUM ( + 34 ) AS col2
----
-44

query II rowsort
SELECT DISTINCT + 63 * + 72, - 53 - - 78 + - 32 * 71 * - + 47 col1
----
4536
106809

query II rowsort
SELECT + 86, + 72 AS col2
----
86
72

query II rowsort
SELECT ALL - 8, ( ( + 8 ) ) AS col2
----
-8
8

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

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

query II rowsort
SELECT + 58 AS col2, - ( 89 ) + - 24
----
58
-113

query II rowsort
SELECT 3 col0, 86 + + - 35
----
3
51

query II rowsort
SELECT DISTINCT - 64, 15 AS col1
----
-64
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + - 87 * - CASE - CASE - 21 WHEN 72 / - 26 THEN + 18 / 22 END WHEN - 31 THEN NULL ELSE - 55 * + COUNT( * ) + - 45 END
----
-8700

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + - 87 * - CASE - CASE - 21 WHEN 72 / - 26 THEN + 18 / 22 END WHEN - 31 THEN NULL ELSE - 55 * + COUNT ( * ) + - 45 END
----
-8700

query I rowsort
SELECT DISTINCT + 98 * + + 53 AS col1
----
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT DISTINCT + 87 * 23 + + - 83 * + 49 * - 77 * 37 * COUNT( * ) + + + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
11588885

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + 87 * 23 + + - 83 * + 49 * - 77 * 37 * COUNT ( * ) + + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
11588885

query II rowsort
SELECT DISTINCT - 74 AS col2, 46 - + 6 AS col2
----
-74
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL - + 95 * 44 * 10 + + COUNT( + 12 ) col2
----
-41799

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - + 95 * 44 * 10 + + COUNT ( + 12 ) col2
----
-41799

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2628
SELECT - COUNT( * ) AS col0, + 63 - - - CAST( - + 68 AS SIGNED )
----
-1
131

skipif mysql # not compatible
query II rowsort label-2628
SELECT - COUNT ( * ) AS col0, + 63 - - - CAST ( - + 68 AS INTEGER )
----
-1
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2629
SELECT 89 col2, CAST( NULL AS SIGNED ) + - 39 + + 7 + - - 55 * + + 88 + 79 AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-2629
SELECT 89 col2, CAST ( NULL AS INTEGER ) + - 39 + + 7 + - - 55 * + + 88 + 79 AS col1
----
89
NULL

query I rowsort
SELECT 23 + + - 27 - + 64 * - 37
----
2364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT DISTINCT + COUNT( * ) + - - 42 + 32 + - 4 * 56 / + + 63 + + - 63 / + COUNT( * ) * - 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + COUNT ( * ) + - - 42 + 32 + - 4 * 56 / + + 63 + + - 63 / + COUNT ( * ) * - 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT ALL 70 + - 53 DIV 28 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL 70 + - 53 / 28 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT + SUM( ALL - 74 ) AS col0, - 99
----
-74
-99

skipif mysql # not compatible
query II rowsort label-2633
SELECT + SUM ( ALL - 74 ) AS col0, - 99
----
-74
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT + CAST( NULL AS SIGNED ) + AVG ( - 78 ) * - + MAX( - 13 ) - - 38 * - CAST( NULL AS SIGNED ) + - + 70 * CASE - + 39 WHEN + - CASE 66 WHEN - ( 0 ) THEN NULL ELSE - 4 / + 16 + - 83 + - COUNT( * ) * + 3 / - COUNT( * ) - - 87 * + 88 * 59 / + SUM( + 63 ) END * + - 69 THEN SUM( ALL - 36 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + AVG ( - 78 ) * - + MAX ( - 13 ) - - 38 * - CAST ( NULL AS INTEGER ) + - + 70 * CASE - + 39 WHEN + - CASE 66 WHEN - ( 0 ) THEN NULL ELSE - 4 / + 16 + - 83 + - COUNT ( * ) * + 3 / - COUNT ( * ) - - 87 * + 88 * 59 / + SUM ( + 63 ) END * + - 69 THEN SUM ( ALL - 36 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL + MAX( ALL - 54 ) + 48
----
-6

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + MAX ( ALL - 54 ) + 48
----
-6

query I rowsort
SELECT DISTINCT NULLIF ( 67, + 15 )
----
67

query I rowsort
SELECT ALL 16 + + 6 * - ( - + 35 )
----
226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT MAX( + + 66 ) * 61 * - CASE - 81 WHEN - CAST( NULL AS SIGNED ) THEN - + ( + + 3 ) * - COUNT( * ) * - 42 WHEN - NULLIF ( + + 28, + - 86 + - 96 ) / + COALESCE ( + COUNT( * ), + 76 / - + 9 * + 67 / - 43, - COUNT( * ) ) + + 91 / + + 39 * - 80 THEN - 52 ELSE NULL END * - 65 / - - ( 2 ) + - + 35 + - 94 - + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT MAX ( + + 66 ) * 61 * - CASE - 81 WHEN - CAST ( NULL AS INTEGER ) THEN - + ( + + 3 ) * - COUNT ( * ) * - 42 WHEN - NULLIF ( + + 28, + - 86 + - 96 ) / + COALESCE ( + COUNT ( * ), + 76 / - + 9 * + 67 / - 43, - COUNT ( * ) ) + + 91 / + + 39 * - 80 THEN - 52 ELSE NULL END * - 65 / - - ( 2 ) + - + 35 + - 94 - + + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2639
SELECT DISTINCT 87 * - + 1 AS col0, CAST( - 92 AS SIGNED ) + 40 AS col2
----
-87
-52

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT 87 * - + 1 AS col0, CAST ( - 92 AS INTEGER ) + 40 AS col2
----
-87
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2640
SELECT ALL 22 - 82 col0, 53 * - + CAST( - + 6 AS SIGNED ) AS col2
----
-60
318

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL 22 - 82 col0, 53 * - + CAST ( - + 6 AS INTEGER ) AS col2
----
-60
318

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL MAX( DISTINCT 2 ) - - 43
----
45

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL MAX ( DISTINCT 2 ) - - 43
----
45

query II rowsort
SELECT ALL 86 - - + 61 AS col0, - 13 + - 74
----
147
-87

query I rowsort
SELECT ALL 21 - - ( - 83 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + - ( - 71 ) * + 71 * 34 - - MIN( 50 ) * - 57 col2, 75 * - 36 AS col0
----
168544
-2700

skipif mysql # not compatible
query II rowsort label-2644
SELECT + - ( - 71 ) * + 71 * 34 - - MIN ( 50 ) * - 57 col2, 75 * - 36 AS col0
----
168544
-2700

onlyif mysql # DIV for integer division: 
query II rowsort label-2645
SELECT ALL - + 40 DIV - 78, + ( - 21 ) + - + 76 AS col1
----
0
-97

skipif mysql # not compatible
query II rowsort label-2645
SELECT ALL - + 40 / - 78, + ( - 21 ) + - + 76 AS col1
----
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT DISTINCT 64 DIV - 3 + - 43 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT 64 / - 3 + - 43 AS col0
----
-64

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

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

query I rowsort
SELECT NULLIF ( - + 19, - 92 * + 61 )
----
-19

query I rowsort
SELECT - 52 * 9 * - 90 - - - ( 76 ) AS col0
----
42044

query I rowsort
SELECT COALESCE ( - 66, + COALESCE ( 9, + 31 + - - 19 ) )
----
-66

query II rowsort
SELECT DISTINCT + - 35 * 66 AS col0, + 12 AS col0
----
-2310
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT ALL + 85 * + - COUNT( * ) + - - ( - + 8 ) + + 96 + - - COUNT( * ) + 82 + - 53 DIV - ( - 7 )
----
79

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + 85 * + - COUNT ( * ) + - - ( - + 8 ) + + 96 + - - COUNT ( * ) + 82 + - 53 / - ( - 7 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT ALL - + COUNT( * ) * 36 DIV - COUNT( * ) + - 48 + 99 + + + 58
----
145

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - + COUNT ( * ) * 36 / - COUNT ( * ) + - 48 + 99 + + + 58
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 58 * + COUNT( + 0 )
----
58

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 58 * + COUNT ( + 0 )
----
58

query I rowsort
SELECT ALL - ( 6 ) * - - 15 + - 35
----
-125

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2657
SELECT + + 19 + + SUM( 50 ) + + COUNT( * ) DIV 19 + - - COALESCE ( - COUNT( * ), - 38, CAST( NULL AS SIGNED ) * 82 ) * + 42 + + 27, + CAST( NULL AS SIGNED ) col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2657
SELECT + + 19 + + SUM ( 50 ) + + COUNT ( * ) / 19 + - - COALESCE ( - COUNT ( * ), - 38, CAST ( NULL AS INTEGER ) * 82 ) * + 42 + + 27, + CAST ( NULL AS INTEGER ) col2
----
54
NULL

query I rowsort
SELECT + - COALESCE ( - - 87, + 78 + + 58 ) + 63
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT + 89 DIV 97 - - - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 89 / 97 - - - 99 AS col2
----
-99

query I rowsort
SELECT ALL + 63 * + 68 + 14 AS col0
----
4298

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT COUNT( * ) * 81 * ( ( - 41 ) ) + - 65 + - 56 AS col0
----
-3442

skipif mysql # not compatible
query I rowsort label-2661
SELECT COUNT ( * ) * 81 * ( ( - 41 ) ) + - 65 + - 56 AS col0
----
-3442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2662
SELECT + COUNT( * ) * + 95 DIV - - 42 + + 93 AS col1, 73 + 50 - 0 - - + 94 + - 20 * 65 * + CASE - 27 WHEN + + CAST( NULL AS DECIMAL ) + CAST( - - 7 AS DECIMAL ) * 27 * CASE + 2 WHEN + 2 THEN NULL WHEN - 52 + + + 34 THEN - ( + - ( + - 10 ) ) WHEN + 33 THEN 37 * 3 * + 86 + - - CAST( + - 11 AS SIGNED ) * CAST( + 11 AS SIGNED ) END THEN SUM( + 15 ) DIV 27 WHEN AVG ( - + 91 ) + - 23 THEN NULL ELSE + + 36 DIV - 91 END
----
95
217

skipif mysql # not compatible
query II rowsort label-2662
SELECT + COUNT ( * ) * + 95 / - - 42 + + 93 AS col1, 73 + 50 - 0 - - + 94 + - 20 * 65 * + CASE - 27 WHEN + + CAST ( NULL AS REAL ) + CAST ( - - 7 AS REAL ) * 27 * CASE + 2 WHEN + 2 THEN NULL WHEN - 52 + + + 34 THEN - ( + - ( + - 10 ) ) WHEN + 33 THEN 37 * 3 * + 86 + - - CAST ( + - 11 AS INTEGER ) * CAST ( + 11 AS INTEGER ) END THEN SUM ( + 15 ) / 27 WHEN AVG ( - + 91 ) + - 23 THEN NULL ELSE + + 36 / - 91 END
----
95
217

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL + 68 * + 65 + + COUNT( * ) + 43 + + 24 AS col1
----
4488

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + 68 * + 65 + + COUNT ( * ) + 43 + + 24 AS col1
----
4488

query I rowsort
SELECT DISTINCT - 31 * 54 AS col0
----
-1674

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

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - COUNT ( * ) * + - COUNT ( CAST ( 45 AS INTEGER ) ) + - COUNT ( DISTINCT - - ( - + 74 ) ) AS col2
----
0

query I rowsort
SELECT - 46 * + - 81 AS col0
----
3726

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL - 49 * + - 52 * + COUNT( DISTINCT + ( + ( + + 83 ) ) ) AS col0, + 55 * ( - - 9 ) AS col1
----
2548
495

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL - 49 * + - 52 * + COUNT ( DISTINCT + ( + ( + + 83 ) ) ) AS col0, + 55 * ( - - 9 ) AS col1
----
2548
495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - COUNT( * ) + - 37 - - ( - 39 )
----
-77

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COUNT ( * ) + - 37 - - ( - 39 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2670
SELECT - MIN( ALL - - 71 ) + COUNT( * ) + 77 DIV 56 * 1 col0, - 37
----
-69
-37

skipif mysql # not compatible
query II rowsort label-2670
SELECT - MIN ( ALL - - 71 ) + COUNT ( * ) + 77 / 56 * 1 col0, - 37
----
-69
-37

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

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

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

query II rowsort
SELECT DISTINCT 52 AS col0, 12
----
52
12

query II rowsort
SELECT 55 AS col0, - 9
----
55
-9

query I rowsort
SELECT + - 36 * + ( 25 )
----
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT ALL CAST( CASE - CASE 98 WHEN - 4 - - + MAX( - 32 ) THEN - 25 WHEN 84 THEN NULL ELSE NULL END WHEN - ( - + MIN( ALL - ( + 17 ) ) ) THEN NULL WHEN + 71 THEN + + 51 END AS SIGNED ) * + 36 + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL CAST ( CASE - CASE 98 WHEN - 4 - - + MAX ( - 32 ) THEN - 25 WHEN 84 THEN NULL ELSE NULL END WHEN - ( - + MIN ( ALL - ( + 17 ) ) ) THEN NULL WHEN + 71 THEN + + 51 END AS INTEGER ) * + 36 + + 81 AS col0
----
NULL

query I rowsort
SELECT + 97 + + 63
----
160

query I rowsort
SELECT - + 33 + - - 75 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2679
SELECT + 10 * - - 29 - + 62 + 69 * 93 * + - 10 * 36 * COALESCE ( COUNT( * ), - - 20 - - 16 * + 18 * - 25 - - - 75 + 31 * + 99 * + 44, 99 ) * - COUNT( * ) + + - ( COUNT( * ) ) col2, 26 * - 49 + - 3 + - CAST( NULL AS SIGNED ) * - 85 + - 76 / + + 65 - + + 77 AS col0
----
2310347
NULL

skipif mysql # not compatible
query II rowsort label-2679
SELECT + 10 * - - 29 - + 62 + 69 * 93 * + - 10 * 36 * COALESCE ( COUNT ( * ), - - 20 - - 16 * + 18 * - 25 - - - 75 + 31 * + 99 * + 44, 99 ) * - COUNT ( * ) + + - ( COUNT ( * ) ) col2, 26 * - 49 + - 3 + - CAST ( NULL AS INTEGER ) * - 85 + - 76 / + + 65 - + + 77 AS col0
----
2310347
NULL

query I rowsort
SELECT + - 59 + - 43 col2
----
-102

query I rowsort
SELECT ALL - 89 + + 92
----
3

query I rowsort
SELECT ALL + - 16 + 6 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT ALL + 45 DIV + + COUNT( * ) + ( + COUNT( DISTINCT + 97 ) ) + 78 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + 45 / + + COUNT ( * ) + ( + COUNT ( DISTINCT + 97 ) ) + 78 AS col2
----
124

query I rowsort
SELECT + 13 + - 35 + - 34 * 3
----
-124

query I rowsort
SELECT + 56 * + 91 col0
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + - MIN( DISTINCT - - 92 ) * + 0 + - 2 + 17 - 60
----
-45

skipif mysql # not compatible
query I rowsort label-2686
SELECT + - MIN ( DISTINCT - - 92 ) * + 0 + - 2 + 17 - 60
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-2687
SELECT ALL + + 33 DIV 3 + 83 AS col0, 45 * 52 AS col2
----
94
2340

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL + + 33 / 3 + 83 AS col0, 45 * 52 AS col2
----
94
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL - ( COALESCE ( + + ( - - 96 ), - NULLIF ( - COALESCE ( 85, + 29 ), + - 81 ), + COUNT( * ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - ( COALESCE ( + + ( - - 96 ), - NULLIF ( - COALESCE ( 85, + 29 ), + - 81 ), + COUNT ( * ) ) )
----
-96

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

query I rowsort
SELECT 53 * - 96 * 63 AS col0
----
-320544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT ALL 59 + - 37 + 48 + - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) / - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL 59 + - 37 + 48 + - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / - 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 44 - - 73 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL + 90 - ( - 35 ) DIV + + COUNT( * ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + 90 - ( - 35 ) / + + COUNT ( * ) AS col0
----
125

query I rowsort
SELECT 78 * + 57 * 66
----
293436

query I rowsort
SELECT 94 + - + 98 col0
----
-4

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

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - 27 - + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT COUNT( ALL - 75 ) * - + 34 * - - 64 + + - COUNT( * ) + 22 AS col1
----
-2155

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( ALL - 75 ) * - + 34 * - - 64 + + - COUNT ( * ) + 22 AS col1
----
-2155

query I rowsort
SELECT 94 * + 43 AS col0
----
4042

query I rowsort
SELECT ALL + 28 * - - 43 * - 37 AS col2
----
-44548

query I rowsort
SELECT DISTINCT + ( - - 68 ) * + 74 AS col0
----
5032

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT 13 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT 13 / + 45 AS col1
----
0

query II rowsort
SELECT 84 * + 24, + 49 AS col2
----
2016
49

query I rowsort
SELECT 19 + - 9 AS col2
----
10

query I rowsort
SELECT DISTINCT + 83 * - - 64 AS col0
----
5312

query I rowsort
SELECT - 11 * + 36
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2706
SELECT + COUNT( ALL - 29 ) DIV 80 * + 84 AS col1, 41
----
0
41

skipif mysql # not compatible
query II rowsort label-2706
SELECT + COUNT ( ALL - 29 ) / 80 * + 84 AS col1, 41
----
0
41

query I rowsort
SELECT ALL + 93 + + 2 * - + ( - ( + + 37 ) ) AS col0
----
167

query I rowsort
SELECT ALL - + 93 + 27 AS col2
----
-66

query II rowsort
SELECT + 47 * 29 AS col2, 92 * + 25
----
1363
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COALESCE ( + - COUNT( * ), + 82 + - + 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COALESCE ( + - COUNT ( * ), + 82 + - + 27 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 52 + - 89 * - + 21 AS col1
----
1921

onlyif mysql # aggregate syntax: 
query III rowsort label-2712
SELECT ALL NULLIF ( + 21, + 22 ) + - + 73 AS col0, - 35 * 86 + + - 42, - 23 * - + 82 + COUNT( * ) AS col0
----
-52
-3052
1887

skipif mysql # not compatible
query III rowsort label-2712
SELECT ALL NULLIF ( + 21, + 22 ) + - + 73 AS col0, - 35 * 86 + + - 42, - 23 * - + 82 + COUNT ( * ) AS col0
----
-52
-3052
1887

query I rowsort
SELECT ALL - 69 * 14 * 26
----
-25116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2714
SELECT DISTINCT + MAX( + + 93 ) + + MIN( ALL - 83 ) DIV 75 * + CAST( - 70 AS SIGNED ), - ( + 37 ) AS col0
----
163
-37

skipif mysql # not compatible
query II rowsort label-2714
SELECT DISTINCT + MAX ( + + 93 ) + + MIN ( ALL - 83 ) / 75 * + CAST ( - 70 AS INTEGER ), - ( + 37 ) AS col0
----
163
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COALESCE ( - 34, COUNT( * ) * COUNT( 94 ) + 89, 86 + - 48 - + - 59 ) + + ( - 84 ) * + ( - 56 ) + ( + 19 ) * 69 * - 26 * + 39
----
-1324616

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COALESCE ( - 34, COUNT ( * ) * COUNT ( 94 ) + 89, 86 + - 48 - + - 59 ) + + ( - 84 ) * + ( - 56 ) + ( + 19 ) * 69 * - 26 * + 39
----
-1324616

query I rowsort
SELECT ALL + 66 + 59 + 93 * + - 30 AS col1
----
-2665

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT ALL 71 * 22 DIV 51 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL 71 * 22 / 51 AS col0
----
30

query I rowsort
SELECT + 10 * - 40 AS col1
----
-400

query I rowsort
SELECT DISTINCT 89 * + 13 AS col2
----
1157

query I rowsort
SELECT DISTINCT - ( - - ( + + 28 ) ) AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT + COALESCE ( - + ( 6 ), - + 66 DIV + 68 DIV - - 5 ) * - + ( + COALESCE ( + 98, + + 50 ) )
----
588

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT + COALESCE ( - + ( 6 ), - + 66 / + 68 / - - 5 ) * - + ( + COALESCE ( + 98, + + 50 ) )
----
588

query I rowsort
SELECT ALL 41 - - 93
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT DISTINCT 0 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT 0 / + 15
----
0

query I rowsort
SELECT DISTINCT 70 - - 83 + - 18 - + - 29 * - 27 * - - 6 + 69
----
-4494

query I rowsort
SELECT 52 + 21
----
73

query II rowsort
SELECT + 22 AS col2, - 80 AS col1
----
22
-80

query I rowsort
SELECT ( 51 ) - 92 col2
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL COUNT( + 80 ) * + 78 + + 47
----
125

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL COUNT ( + 80 ) * + 78 + + 47
----
125

query I rowsort
SELECT ALL 57 * 8 AS col1
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT + 88 * + 57 + - + 94 DIV + + 57
----
5015

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 88 * + 57 + - + 94 / + + 57
----
5015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL - CASE - 85 WHEN 68 * + 42 / 66 * 13 THEN - + 84 WHEN - 32 / + + CASE + 6 WHEN - 20 - - 78 * + - CAST( - 35 AS SIGNED ) + 21 THEN - - 52 WHEN + - MIN( 56 ) + + 87 / - + COALESCE ( - 26, + CAST( NULL AS SIGNED ) * - 42 ) * - 59 * 34 THEN NULL ELSE - ( - + 32 ) + - + AVG ( 31 ) * 64 END THEN + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - CASE - 85 WHEN 68 * + 42 / 66 * 13 THEN - + 84 WHEN - 32 / + + CASE + 6 WHEN - 20 - - 78 * + - CAST ( - 35 AS INTEGER ) + 21 THEN - - 52 WHEN + - MIN ( 56 ) + + 87 / - + COALESCE ( - 26, + CAST ( NULL AS INTEGER ) * - 42 ) * - 59 * 34 THEN NULL ELSE - ( - + 32 ) + - + AVG ( 31 ) * 64 END THEN + 0 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT + COUNT( ALL + NULLIF ( + 23, - - ( - ( + - CAST( NULL AS SIGNED ) ) ) * 12 + 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2733
SELECT + COUNT ( ALL + NULLIF ( + 23, - - ( - ( + - CAST ( NULL AS INTEGER ) ) ) * 12 + 99 ) )
----
1

query II rowsort
SELECT ALL - 29 AS col2, - 43
----
-29
-43

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

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

query I rowsort
SELECT DISTINCT 56 * 24
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + 63 * - CASE + 93 WHEN 9 THEN NULL WHEN - 94 THEN + + COUNT( * ) WHEN COALESCE ( - CASE COALESCE ( 3, + 91 + - + 67 ) WHEN 36 * - 1 THEN - 88 / - 13 * - COALESCE ( - - 8, + 72 ) WHEN - 0 * - 4 - - + 84 - - 38 / COUNT( * ) / 53 + + - 95 * ( - NULLIF ( 56, + 89 ) ) THEN + + MAX( ALL 66 ) END, - MIN( + + 62 ), 38 * - 55 + - COALESCE ( + 54, - - ( - + 3 ), + - 6 + - 15 ) + + 80 * + 23 ) * - 9 / + ( 92 * - 71 ) THEN NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT + 63 * - CASE + 93 WHEN 9 THEN NULL WHEN - 94 THEN + + COUNT ( * ) WHEN COALESCE ( - CASE COALESCE ( 3, + 91 + - + 67 ) WHEN 36 * - 1 THEN - 88 / - 13 * - COALESCE ( - - 8, + 72 ) WHEN - 0 * - 4 - - + 84 - - 38 / COUNT ( * ) / 53 + + - 95 * ( - NULLIF ( 56, + 89 ) ) THEN + + MAX ( ALL 66 ) END, - MIN ( + + 62 ), 38 * - 55 + - COALESCE ( + 54, - - ( - + 3 ), + - 6 + - 15 ) + + 80 * + 23 ) * - 9 / + ( 92 * - 71 ) THEN NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - COUNT( * ) * + COALESCE ( - 5, - + 34 + 87 ) + 49 + ( - 86 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-2738
SELECT - COUNT ( * ) * + COALESCE ( - 5, - + 34 + 87 ) + 49 + ( - 86 ) col2
----
-32

query II rowsort
SELECT DISTINCT 88 AS col0, + 50
----
88
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - 22 + COALESCE ( + - 36, COUNT( * ) - + COUNT( * ) + - 44 )
----
-58

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - 22 + COALESCE ( + - 36, COUNT ( * ) - + COUNT ( * ) + - 44 )
----
-58

query I rowsort
SELECT - 18 + - 86
----
-104

query I rowsort
SELECT DISTINCT 88 + 11 AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT 97 + SUM( ALL + - 94 ), - 97 AS col0
----
3
-97

skipif mysql # not compatible
query II rowsort label-2743
SELECT 97 + SUM ( ALL + - 94 ), - 97 AS col0
----
3
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + + 29 + 77 * - COUNT( * ) * + - 80 AS col1
----
6189

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + + 29 + 77 * - COUNT ( * ) * + - 80 AS col1
----
6189

query I rowsort
SELECT - 45 + - 89 * + 9
----
-846

query I rowsort
SELECT ALL 15 + - + 81 AS col0
----
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL + + CAST( 63 AS SIGNED ) + 9
----
72

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + + CAST ( 63 AS INTEGER ) + 9
----
72

query I rowsort
SELECT DISTINCT + 70 * 24
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT COUNT( + NULLIF ( + 35, 21 * ( 6 ) * + 38 / 84 ) ) + - 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2750
SELECT COUNT ( + NULLIF ( + 35, 21 * ( 6 ) * + 38 / 84 ) ) + - 47 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT ALL - - NULLIF ( - - 30, - + CAST( NULL AS SIGNED ) ) + - + 90 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - - NULLIF ( - - 30, - + CAST ( NULL AS INTEGER ) ) + - + 90 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL - COALESCE ( - - 63, - MAX( 95 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - COALESCE ( - - 63, - MAX ( 95 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + 95 + + + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 95 + + + COUNT ( * ) AS col0
----
96

query I rowsort
SELECT - 34 + 29
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2755
SELECT ALL - + 57 * + CAST( - 20 AS SIGNED ) / - CAST( NULL AS DECIMAL ) - - 80 + + MIN( ALL + 47 ) - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - + 57 * + CAST ( - 20 AS INTEGER ) / - CAST ( NULL AS REAL ) - - 80 + + MIN ( ALL + 47 ) - - 28
----
NULL

query I rowsort
SELECT - 61 + + 26 + + 39 * - 94 AS col2
----
-3701

query I rowsort
SELECT - - ( + 74 ) * 34
----
2516

query I rowsort
SELECT DISTINCT - 63 * + 16 AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT NULLIF ( - - COUNT( * ), - MIN( - + ( + ( - 98 ) ) ) * - 84 * + - 67 * + 55 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2759
SELECT NULLIF ( - - COUNT ( * ), - MIN ( - + ( + ( - 98 ) ) ) * - 84 * + - 67 * + 55 ) col2
----
1

query I rowsort
SELECT ALL 85 * - 2 - - 82 - + 57
----
-145

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

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

query II rowsort
SELECT + 17 AS col1, + 39 col0
----
17
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT CAST( NULL AS SIGNED ) * 54 + - 43 * + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT CAST ( NULL AS INTEGER ) * 54 + - 43 * + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT + 20 AS col0, + MIN( + 40 )
----
20
40

skipif mysql # not compatible
query II rowsort label-2764
SELECT + 20 AS col0, + MIN ( + 40 )
----
20
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT CASE + AVG ( ALL 26 ) WHEN + + MIN( + + ( + - CAST( 9 AS SIGNED ) ) ) + + 9 * - 58 + 17 + + 74 THEN - ( - 49 ) * - + 90 WHEN - 60 / + ( 98 ) + COUNT( 46 ) * - 66 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT CASE + AVG ( ALL 26 ) WHEN + + MIN ( + + ( + - CAST ( 9 AS INTEGER ) ) ) + + 9 * - 58 + 17 + + 74 THEN - ( - 49 ) * - + 90 WHEN - 60 / + ( 98 ) + COUNT ( 46 ) * - 66 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 27 * - 84
----
-2268

query II rowsort
SELECT DISTINCT + 16, ( ( 26 ) ) AS col2
----
16
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT CASE + COUNT( * ) WHEN - 69 THEN - + NULLIF ( + - ( - 90 ), + COUNT( * ) + COUNT( * ) ) * + 61 ELSE NULL END col1, + 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2768
SELECT CASE + COUNT ( * ) WHEN - 69 THEN - + NULLIF ( + - ( - 90 ), + COUNT ( * ) + COUNT ( * ) ) * + 61 ELSE NULL END col1, + 31 AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT CASE 30 WHEN - ( + COUNT( * ) ) THEN NULL WHEN 12 + 88 * - 95 * ( - CASE + COUNT( * ) WHEN + 8 THEN - 20 ELSE + - 43 END ) THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE - - 68 END AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2769
SELECT CASE 30 WHEN - ( + COUNT ( * ) ) THEN NULL WHEN 12 + 88 * - 95 * ( - CASE + COUNT ( * ) WHEN + 8 THEN - 20 ELSE + - 43 END ) THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE - - 68 END AS col0
----
68

query I rowsort
SELECT ALL + 0 * 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT + NULLIF ( 79, + 77 + - ( + + 92 ) * + CASE 58 WHEN + 16 / - 47 THEN 20 WHEN - - COUNT( * ) THEN NULL ELSE + 85 / - 95 END * - COUNT( * ) + - COALESCE ( - 20, 1 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2771
SELECT + NULLIF ( 79, + 77 + - ( + + 92 ) * + CASE 58 WHEN + 16 / - 47 THEN 20 WHEN - - COUNT ( * ) THEN NULL ELSE + 85 / - 95 END * - COUNT ( * ) + - COALESCE ( - 20, 1 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - COUNT( * ) * + + SUM( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2772
SELECT - COUNT ( * ) * + + SUM ( + 94 ) AS col1
----
-94

query I rowsort
SELECT + 86 * 92
----
7912

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + COUNT( * ) + 36 + - COALESCE ( - - 12, - 9 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2774
SELECT + COUNT ( * ) + 36 + - COALESCE ( - - 12, - 9 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT - 11 * 0 DIV 41 * + 74 + + ( + 34 ) * 99 AS col2
----
3366

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - 11 * 0 / 41 * + 74 + + ( + 34 ) * 99 AS col2
----
3366

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

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

query I rowsort
SELECT ALL + 61 * - + 44 * - 64 + + 98 AS col2
----
171874

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - COUNT( - - ( 61 ) ) * - 77 + - + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - COUNT ( - - ( 61 ) ) * - 77 + - + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT + 50 - - + 24 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT - - CASE + - CAST( NULL AS SIGNED ) WHEN + 42 THEN - - 74 ELSE NULL END * + - 92 + SUM( DISTINCT - - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - - CASE + - CAST ( NULL AS INTEGER ) WHEN + 42 THEN - - 74 ELSE NULL END * + - 92 + SUM ( DISTINCT - - 71 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + COUNT( * ) - + 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2781
SELECT + COUNT ( * ) - + 31 AS col0
----
-30

query I rowsort
SELECT ALL 3 + 57 AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT - COUNT( * ) AS col0, - 93 * 75
----
-1
-6975

skipif mysql # not compatible
query II rowsort label-2783
SELECT - COUNT ( * ) AS col0, - 93 * 75
----
-1
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + + NULLIF ( 61, + NULLIF ( + 11, ( - 99 ) ) ) + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2784
SELECT + + NULLIF ( 61, + NULLIF ( + 11, ( - 99 ) ) ) + - COUNT ( * ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT - - COALESCE ( + + 80, - 31, - 71 DIV + + 7 + + 53 - - - 22 )
----
80

skipif mysql # not compatible
query I rowsort label-2785
SELECT - - COALESCE ( + + 80, - 31, - 71 / + + 7 + + 53 - - - 22 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT ALL + 41 * 37 * 50 * 43, + NULLIF ( - - COUNT( * ), 76 ) AS col0
----
3261550
1

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL + 41 * 37 * 50 * 43, + NULLIF ( - - COUNT ( * ), 76 ) AS col0
----
3261550
1

query I rowsort
SELECT - 65 + 82
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT ALL - MIN( ALL - + 24 ), 77 * - 10 AS col0
----
24
-770

skipif mysql # not compatible
query II rowsort label-2788
SELECT ALL - MIN ( ALL - + 24 ), 77 * - 10 AS col0
----
24
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - + NULLIF ( 92, MIN( + + 95 ) * + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-2789
SELECT - + NULLIF ( 92, MIN ( + + 95 ) * + - 92 )
----
-92

query II rowsort
SELECT ALL 49 - 92 AS col1, - 2
----
-43
-2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN - 46 THEN - COUNT( * ) * - 33 + 53 + + + COUNT( ALL + 72 ) + + + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN - 46 THEN - COUNT ( * ) * - 33 + 53 + + + COUNT ( ALL + 72 ) + + + 77 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 78 col2, + 75
----
-78
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT COUNT( * ) - COUNT( * ) + - 84 + - COUNT( * ) - + ( + + 55 ) * + MIN( - 31 ) AS col0
----
1620

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) + - 84 + - COUNT ( * ) - + ( + + 55 ) * + MIN ( - 31 ) AS col0
----
1620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2796
SELECT - 81 AS col1, CAST( + 60 AS SIGNED )
----
-81
60

skipif mysql # not compatible
query II rowsort label-2796
SELECT - 81 AS col1, CAST ( + 60 AS INTEGER )
----
-81
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT + - 34 + + - ( + + 0 ) + + 37 DIV - 79 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2797
SELECT + - 34 + + - ( + + 0 ) + + 37 / - 79 AS col1
----
-34

query I rowsort
SELECT ALL - 65 * + 52 AS col1
----
-3380

query I rowsort
SELECT + + 59 + + + 68
----
127

query II rowsort
SELECT - 64, + 28 AS col0
----
-64
28

onlyif mysql # DIV for integer division: 
query II rowsort label-2801
SELECT + 11 DIV - 81 AS col0, 51
----
0
51

skipif mysql # not compatible
query II rowsort label-2801
SELECT + 11 / - 81 AS col0, 51
----
0
51

query I rowsort
SELECT ALL + 31 * - 1 * - + 47
----
1457

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT - 93 * - 52 AS col0, 38 * - 4 - + COUNT( * ) AS col2
----
4836
-153

skipif mysql # not compatible
query II rowsort label-2803
SELECT - 93 * - 52 AS col0, 38 * - 4 - + COUNT ( * ) AS col2
----
4836
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT NULLIF ( - 63, + CAST( NULL AS SIGNED ) ) * - 12 - + - 49
----
805

skipif mysql # not compatible
query I rowsort label-2804
SELECT NULLIF ( - 63, + CAST ( NULL AS INTEGER ) ) * - 12 - + - 49
----
805

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2805
SELECT - CAST( ( + + 66 ) AS SIGNED ) * + 11 + 88 * + + 18 + - + 79, 58 AS col2
----
779
58

skipif mysql # not compatible
query II rowsort label-2805
SELECT - CAST ( ( + + 66 ) AS INTEGER ) * + 11 + 88 * + + 18 + - + 79, 58 AS col2
----
779
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT + COALESCE ( - - 13, - + SUM( ALL 49 ) * - + 92 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT + COALESCE ( - - 13, - + SUM ( ALL 49 ) * - + 92 ) AS col2
----
13

query II rowsort
SELECT - 92 * + 99, 33 AS col1
----
-9108
33

query I rowsort
SELECT - 92 * + + 9 * + - 87 - ( - 66 ) - + + 17 AS col0
----
72085

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT + COUNT( DISTINCT - + 59 ) * + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + COUNT ( DISTINCT - + 59 ) * + 15 AS col1
----
15

query I rowsort
SELECT + 92 * - 74 + + + 66
----
-6742

query I rowsort
SELECT ( + 51 ) col0
----
51

query I rowsort
SELECT ALL - 34 * - + 4 + + 85 AS col2
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - COUNT( * ) * NULLIF ( - 90, + 1 - 18 ) + - + 70 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COUNT ( * ) * NULLIF ( - 90, + 1 - 18 ) + - + 70 AS col1
----
20

query I rowsort
SELECT DISTINCT + 90 * + 66 * - 7 + + 20 col1
----
-41560

query I rowsort
SELECT - 66 + + 45 + - 39 + 22 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2817
SELECT - - 81 DIV + 49 + + + 28 + + 23 - - COUNT( * ) * - 50
----
2

skipif mysql # not compatible
query I rowsort label-2817
SELECT - - 81 / + 49 + + + 28 + + 23 - - COUNT ( * ) * - 50
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT + - AVG ( + + 23 ) * + CAST( NULL AS SIGNED ) * + COALESCE ( - 27, - 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT + - AVG ( + + 23 ) * + CAST ( NULL AS INTEGER ) * + COALESCE ( - 27, - 88 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + 15 * + 2 + + NULLIF ( - COUNT( * ), + 94 ) + - MIN( - CASE - + 33 WHEN - 60 THEN ( + 55 ) WHEN + - 59 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT + 15 * + 2 + + NULLIF ( - COUNT ( * ), + 94 ) + - MIN ( - CASE - + 33 WHEN - 60 THEN ( + 55 ) WHEN + - 59 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT - 37 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - 37 / - 89 AS col0
----
0

query I rowsort
SELECT ALL 37 - + ( + 24 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2822
SELECT + CAST( NULL AS DECIMAL ) + - 41 - + CAST( NULL AS SIGNED ) AS col2, 3 * - 47 + - - 86 DIV MIN( - + 16 )
----
NULL
-146

skipif mysql # not compatible
query II rowsort label-2822
SELECT + CAST ( NULL AS REAL ) + - 41 - + CAST ( NULL AS INTEGER ) AS col2, 3 * - 47 + - - 86 / MIN ( - + 16 )
----
NULL
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + 30 + SUM( ( - + 25 ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-2823
SELECT + 30 + SUM ( ( - + 25 ) ) col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL CASE SUM( 85 ) WHEN - + 55 + + COUNT( * ) * CAST( - 70 AS SIGNED ) + - 77 THEN NULL ELSE + 30 END
----
30

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL CASE SUM ( 85 ) WHEN - + 55 + + COUNT ( * ) * CAST ( - 70 AS INTEGER ) + - 77 THEN NULL ELSE + 30 END
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT - 85 * + COUNT( * ) * + 90
----
-7650

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - 85 * + COUNT ( * ) * + 90
----
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT - MIN( ALL + 63 ) + 74 + - - 63 + 85 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-2826
SELECT - MIN ( ALL + 63 ) + 74 + - - 63 + 85 AS col0
----
159

query I rowsort
SELECT - 23 * 53 * - 78 * + ( + 85 )
----
8081970

query I rowsort
SELECT 44 + - 82
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 68 + + COUNT( * ) * 25 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2830
SELECT 68 + + COUNT ( * ) * 25 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT CASE 38 WHEN - - 98 * + 95 * 63 - + + 99 * 35 * 8 * ( - COALESCE ( - 9, + COUNT( * ) ) ) THEN 9 END + + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT CASE 38 WHEN - - 98 * + 95 * 63 - + + 99 * 35 * 8 * ( - COALESCE ( - 9, + COUNT ( * ) ) ) THEN 9 END + + - 9
----
NULL

query I rowsort
SELECT 87 + + + 66 AS col0
----
153

query I rowsort
SELECT ALL 46 + 50 AS col1
----
96

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

query II rowsort
SELECT + 82 col0, 93
----
82
93

query II rowsort
SELECT 91, - 21 col2
----
91
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT 74 * + SUM( DISTINCT + + 38 ) + - + 35 + + 2 * + 32
----
2841

skipif mysql # not compatible
query I rowsort label-2837
SELECT 74 * + SUM ( DISTINCT + + 38 ) + - + 35 + + 2 * + 32
----
2841

query I rowsort
SELECT ALL - NULLIF ( 40, 19 + 66 ) + + 26 * + + 94 + - + 88
----
2316

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL COUNT( * ) * + MAX( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL COUNT ( * ) * + MAX ( 49 )
----
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT 19 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT 19 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT CASE + ( + 11 ) WHEN + + 54 * + + SUM( DISTINCT + 31 ) THEN NULL ELSE 1 * - 76 * COUNT( - 57 ) - 52 END + - ( - - 83 )
----
-211

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT CASE + ( + 11 ) WHEN + + 54 * + + SUM ( DISTINCT + 31 ) THEN NULL ELSE 1 * - 76 * COUNT ( - 57 ) - 52 END + - ( - - 83 )
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT + CASE + + 84 WHEN - - AVG ( + 82 ) THEN + - COUNT( * ) WHEN + ( + 81 ) / ( + + 5 ) THEN NULL END + - - 26 / 81 / - - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT + CASE + + 84 WHEN - - AVG ( + 82 ) THEN + - COUNT ( * ) WHEN + ( + 81 ) / ( + + 5 ) THEN NULL END + - - 26 / 81 / - - 98 col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2846
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + COUNT ( * ) + - + 19
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT COUNT( * ) AS col0, 93 + - ( + + 70 ) + + COUNT( * ) * - 28 col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-2847
SELECT COUNT ( * ) AS col0, 93 + - ( + + 70 ) + + COUNT ( * ) * - 28 col1
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - COUNT( * ) * 58 + - 74 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-2848
SELECT - COUNT ( * ) * 58 + - 74 AS col1
----
-132

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

skipif mysql # not compatible
query I rowsort label-2849
SELECT SUM ( + 33 ) * - ( COUNT ( * ) ) AS col2
----
-33

query I rowsort
SELECT + 47 + + + 17 AS col2
----
64

query II rowsort
SELECT + - 21 AS col1, + 89 AS col0
----
-21
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT - CASE 78 WHEN + 93 THEN - - 21 WHEN - + 85 THEN + 88 WHEN - 22 * - - 85 * - 26 THEN - 16 END / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - CASE 78 WHEN + 93 THEN - - 21 WHEN - + 85 THEN + 88 WHEN - 22 * - - 85 * - 26 THEN - 16 END / + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 67 * 35
----
-2345

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + ( - MIN( + - 37 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2854
SELECT + ( - MIN ( + - 37 ) ) AS col1
----
37

query II rowsort
SELECT ALL 65, + 48 AS col1
----
65
48

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

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

query I rowsort
SELECT 90 * - 61
----
-5490

query I rowsort
SELECT - 80 * + + 83
----
-6640

query I rowsort
SELECT 82 - + 70 * + - 49 col2
----
3512

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT 69 DIV - 45 + 79 DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT 69 / - 45 + 79 / - - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT 13 * - + COUNT( * ) * - 94 + 78
----
1300

skipif mysql # not compatible
query I rowsort label-2861
SELECT 13 * - + COUNT ( * ) * - 94 + 78
----
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-2862
SELECT DISTINCT + + 33 + + 22 + + COUNT( * ) col2, 37 AS col0
----
56
37

skipif mysql # not compatible
query II rowsort label-2862
SELECT DISTINCT + + 33 + + 22 + + COUNT ( * ) col2, 37 AS col0
----
56
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT MIN( - 93 ) DIV 45 DIV + 10 * + + ( - + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT MIN ( - 93 ) / 45 / + 10 * + + ( - + 11 )
----
0

query I rowsort
SELECT ALL + 68 + - 99
----
-31

query I rowsort
SELECT 97 * - 91 AS col0
----
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL 28 + ( - MIN( DISTINCT - 16 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 28 + ( - MIN ( DISTINCT - 16 ) )
----
44

query II rowsort
SELECT DISTINCT 40 * + - 15, + 67 AS col1
----
-600
67

query I rowsort
SELECT 87 + + 84 * - + ( 43 ) col1
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 22 * - MAX( + COALESCE ( - 17, - 7, 60, - 8 * 52 ) ) * - 26
----
-9724

skipif mysql # not compatible
query I rowsort label-2869
SELECT 22 * - MAX ( + COALESCE ( - 17, - 7, 60, - 8 * 52 ) ) * - 26
----
-9724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL 93 + - 50 - - ( + CAST( NULL AS SIGNED ) ) * + ( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL 93 + - 50 - - ( + CAST ( NULL AS INTEGER ) ) * + ( + 91 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2871
SELECT COALESCE ( + - ( + - 49 ), - ( + - 26 ) + - 69 + 29 - - 73 DIV - 99, 78 * + + 44 * - COUNT( + 61 ) + 11 ) - - + COUNT( * ) * - 31
----
18

skipif mysql # not compatible
query I rowsort label-2871
SELECT COALESCE ( + - ( + - 49 ), - ( + - 26 ) + - 69 + 29 - - 73 / - 99, 78 * + + 44 * - COUNT ( + 61 ) + 11 ) - - + COUNT ( * ) * - 31
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT DISTINCT - COUNT( ALL - 42 ) AS col2, + 8 AS col0
----
-1
8

skipif mysql # not compatible
query II rowsort label-2872
SELECT DISTINCT - COUNT ( ALL - 42 ) AS col2, + 8 AS col0
----
-1
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT 34 * + CAST( - + 72 AS SIGNED ) * + - 85 * + - CAST( NULL AS SIGNED ) * + 37 + - - ( 13 ) + + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT 34 * + CAST ( - + 72 AS INTEGER ) * + - 85 * + - CAST ( NULL AS INTEGER ) * + 37 + - - ( 13 ) + + 3 AS col2
----
NULL

query I rowsort
SELECT ALL - 18 * 87 - + - 43 col1
----
-1523

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT 79 * COALESCE ( 25, 30 * + + ( COUNT( * ) ), - 47 * - MAX( ALL + + 21 ) + + + 27 + 20 ) + + SUM( 71 ) col0
----
2046

skipif mysql # not compatible
query I rowsort label-2876
SELECT 79 * COALESCE ( 25, 30 * + + ( COUNT ( * ) ), - 47 * - MAX ( ALL + + 21 ) + + + 27 + 20 ) + + SUM ( 71 ) col0
----
2046

query I rowsort
SELECT ALL 27 * - 41 - + + 15 col2
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2878
SELECT ALL COUNT( * ) DIV 99 AS col0, 12 * - 35 * + NULLIF ( 60, - 86 )
----
0
-25200

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL COUNT ( * ) / 99 AS col0, 12 * - 35 * + NULLIF ( 60, - 86 )
----
0
-25200

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT 43 DIV 51 + + - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2879
SELECT 43 / 51 + + - 65 AS col1
----
-65

query I rowsort
SELECT - 53 + - 47 + 80 AS col0
----
-20

query I rowsort
SELECT ALL - 54 * + 38 * + + 53 AS col2
----
-108756

query II rowsort
SELECT - - 84 + 23 AS col1, - 75 * + ( 36 )
----
107
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2883
SELECT + + ( - - 75 ) * - - 41 * + - CASE - 39 WHEN + ( - 25 ) * 21 THEN - ( + - 14 ) WHEN COALESCE ( + NULLIF ( + 87, CAST( - COUNT( * ) AS SIGNED ) ), + 93, + 51 * - + 14 + - - CAST( + 45 AS DECIMAL ) - - + 77 + + 78 ) + - - SUM( DISTINCT + 79 ) THEN NULL WHEN 59 * 32 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT + + ( - - 75 ) * - - 41 * + - CASE - 39 WHEN + ( - 25 ) * 21 THEN - ( + - 14 ) WHEN COALESCE ( + NULLIF ( + 87, CAST ( - COUNT ( * ) AS INTEGER ) ), + 93, + 51 * - + 14 + - - CAST ( + 45 AS REAL ) - - + 77 + + 78 ) + - - SUM ( DISTINCT + 79 ) THEN NULL WHEN 59 * 32 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 54 * + 32
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT - COUNT( + + ( CASE 75 WHEN - + 1 THEN NULL WHEN - 3 THEN 94 END ) ) * + - 94 * - + ( - 83 ) * + 82 * 54 / + + NULLIF ( + + 29, - - COALESCE ( + COUNT( * ), + 10 ) ) / - 34 / + - CASE - CAST( NULL AS SIGNED ) WHEN - 91 THEN + + ( 85 ) END + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT - COUNT ( + + ( CASE 75 WHEN - + 1 THEN NULL WHEN - 3 THEN 94 END ) ) * + - 94 * - + ( - 83 ) * + 82 * 54 / + + NULLIF ( + + 29, - - COALESCE ( + COUNT ( * ), + 10 ) ) / - 34 / + - CASE - CAST ( NULL AS INTEGER ) WHEN - 91 THEN + + ( 85 ) END + 54
----
NULL

query I rowsort
SELECT - + 24 + 33 * + + 77 AS col2
----
2517

query I rowsort
SELECT ALL 72 * - 42 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + + SUM( DISTINCT + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + + SUM ( DISTINCT + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + + COUNT( * ) + + COALESCE ( + 89, - - 5, - - 18 * + + 44 * - COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2889
SELECT + + COUNT ( * ) + + COALESCE ( + 89, - - 5, - - 18 * + + 44 * - COUNT ( * ) ) AS col0
----
90

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

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

query I rowsort
SELECT + - NULLIF ( - + 39, - - 2 * - 77 - + 69 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT CAST( NULL AS SIGNED ) * NULLIF ( 25, ( + 38 ) ) + + 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( 25, ( + 38 ) ) + + 26 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - MAX( DISTINCT - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - MAX ( DISTINCT - 73 )
----
73

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

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

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

query I rowsort
SELECT ALL + + ( + 27 ) + + 89 + + 35 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - NULLIF ( + - COUNT( * ), - 25 ) + + + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2897
SELECT - NULLIF ( + - COUNT ( * ), - 25 ) + + + 18 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL COUNT( * ) + + + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL COUNT ( * ) + + + 98 AS col0
----
99

query I rowsort
SELECT - 35 + - - 59
----
24

query I rowsort
SELECT DISTINCT + 55 + 28
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT + 70 * - 29 * 40 col1, SUM( - - 76 ) AS col2
----
-81200
76

skipif mysql # not compatible
query II rowsort label-2901
SELECT + 70 * - 29 * 40 col1, SUM ( - - 76 ) AS col2
----
-81200
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT - 69 AS col2, 84 + 11 + - + MAX( DISTINCT 6 )
----
-69
89

skipif mysql # not compatible
query II rowsort label-2902
SELECT - 69 AS col2, 84 + 11 + - + MAX ( DISTINCT 6 )
----
-69
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT - ( - 82 ) * - 38, MIN( - 72 ) AS col1
----
-3116
-72

skipif mysql # not compatible
query II rowsort label-2903
SELECT - ( - 82 ) * - 38, MIN ( - 72 ) AS col1
----
-3116
-72

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

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

query I rowsort
SELECT + 63 + 83 - - - 43 * + 44
----
-1746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT - 34 * + - CAST( ( + 50 ) AS SIGNED )
----
1700

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 34 * + - CAST ( ( + 50 ) AS INTEGER )
----
1700

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL + 38 - - 4 + - + 44 * SUM( ( + 0 ) ) - + + 87 + + + 76 AS col1, 80
----
31
80

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL + 38 - - 4 + - + 44 * SUM ( ( + 0 ) ) - + + 87 + + + 76 AS col1, 80
----
31
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT DISTINCT CAST( - 77 AS SIGNED ) * - 66 * - - COUNT( 23 ) AS col1, - COUNT( * ) col1
----
5082
-1

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT CAST ( - 77 AS INTEGER ) * - 66 * - - COUNT ( 23 ) AS col1, - COUNT ( * ) col1
----
5082
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL COUNT( * ) * 22 * + 97 col1, + 72 AS col1
----
2134
72

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL COUNT ( * ) * 22 * + 97 col1, + 72 AS col1
----
2134
72

query I rowsort
SELECT DISTINCT ( 82 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL MIN( + 22 ) * + - 32 - + + 75 * 67 AS col0
----
-5729

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL MIN ( + 22 ) * + - 32 - + + 75 * 67 AS col0
----
-5729

query I rowsort
SELECT - 9 * + 32 AS col0
----
-288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2914
SELECT COUNT( * ) * - 60 DIV - 60 + + 5 DIV - ( + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-2914
SELECT COUNT ( * ) * - 60 / - 60 + + 5 / - ( + 72 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2915
SELECT ALL + ( SUM( DISTINCT + 1 ) ) DIV + 31 - - 22, + 8 AS col0
----
22
8

skipif mysql # not compatible
query II rowsort label-2915
SELECT ALL + ( SUM ( DISTINCT + 1 ) ) / + 31 - - 22, + 8 AS col0
----
22
8

query I rowsort
SELECT + 44 * + 37 AS col1
----
1628

query I rowsort
SELECT + 85 * + 9 + 35 AS col1
----
800

query I rowsort
SELECT + 61 * - 60
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + 55 + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 55 + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT ALL 25 * - 26
----
-650

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2922
SELECT CASE COALESCE ( 40, ( 49 ) + + 83 ) WHEN 54 * 79 + CAST( - 76 AS DECIMAL ) THEN 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT CASE COALESCE ( 40, ( 49 ) + + 83 ) WHEN 54 * 79 + CAST ( - 76 AS REAL ) THEN 91 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + MIN( ALL + 76 ) + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2923
SELECT + MIN ( ALL + 76 ) + - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT + CASE ( COUNT( 34 ) ) WHEN COUNT( * ) DIV 78 THEN NULL ELSE + 14 * 33 END DIV 90 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2924
SELECT + CASE ( COUNT ( 34 ) ) WHEN COUNT ( * ) / 78 THEN NULL ELSE + 14 * 33 END / 90 AS col0
----
5

query I rowsort
SELECT + 9 * - 91 + 29 * + 82 AS col2
----
1559

query I rowsort
SELECT DISTINCT 24 * + 11
----
264

query I rowsort
SELECT ALL 34 * 15 + 22
----
532

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

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

query I rowsort
SELECT ALL 30 * 42 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT + 67 * MIN( ALL 14 ) + + 65 * + 64 AS col2
----
5098

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + 67 * MIN ( ALL 14 ) + + 65 * + 64 AS col2
----
5098

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL - 14 DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL - 14 / 56 AS col1
----
0

query I rowsort
SELECT ALL 71 * 55 + 28
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + NULLIF ( 48, - COUNT( DISTINCT + 89 ) ) * 96 AS col2
----
4608

skipif mysql # not compatible
query I rowsort label-2933
SELECT + NULLIF ( 48, - COUNT ( DISTINCT + 89 ) ) * 96 AS col2
----
4608

query I rowsort
SELECT DISTINCT 14 * 63 + + ( + 35 )
----
917

query I rowsort
SELECT DISTINCT + 24 - + ( - 67 )
----
91

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

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + 51 * COUNT ( * ) AS col0
----
51

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

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - MIN( ALL + 66 ) * SUM( ALL 74 * ( 83 ) - 99 )
----
-398838

skipif mysql # not compatible
query I rowsort label-2939
SELECT - MIN ( ALL + 66 ) * SUM ( ALL 74 * ( 83 ) - 99 )
----
-398838

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

skipif mysql # not compatible
query I rowsort label-2940
SELECT - MIN ( ALL 76 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL CAST( - MIN( - 93 ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL CAST ( - MIN ( - 93 ) AS INTEGER )
----
93

query I rowsort
SELECT - 68 + + 65 AS col2
----
-3

query I rowsort
SELECT 66 * - 40
----
-2640

query I rowsort
SELECT 37 + 44
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) + 11 * - 28 AS col1
----
-307

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) + 11 * - 28 AS col1
----
-307

query I rowsort
SELECT ALL + 71 * + 75
----
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT 50 DIV + NULLIF ( NULLIF ( 4, ( + 63 ) ), - 96 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2947
SELECT 50 / + NULLIF ( NULLIF ( 4, ( + 63 ) ), - 96 ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - COUNT( DISTINCT - 99 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2949
SELECT - COUNT ( DISTINCT - 99 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT 16 * + 75 + - COUNT( 76 - - CAST( NULL AS SIGNED ) )
----
1200

skipif mysql # not compatible
query I rowsort label-2950
SELECT 16 * + 75 + - COUNT ( 76 - - CAST ( NULL AS INTEGER ) )
----
1200

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

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

query I rowsort
SELECT ALL - ( + 61 ) + - 81 * 46
----
-3787

query I rowsort
SELECT DISTINCT + 8 + 73
----
81

query I rowsort
SELECT + CASE - 62 WHEN - 49 * - 98 THEN 99 WHEN - 49 THEN 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2955
SELECT + + CAST( NULL AS DECIMAL ) * + 89 + 3 * + MAX( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT + + CAST ( NULL AS REAL ) * + 89 + 3 * + MAX ( 61 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT - 1 + CAST( 81 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 1 + CAST ( 81 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - MIN( - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-2957
SELECT - MIN ( - 26 )
----
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT ALL + 25 + + CAST( 17 + 68 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + 25 + + CAST ( 17 + 68 AS INTEGER )
----
110

query I rowsort
SELECT 47 * - 71
----
-3337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT + 23 * ( CAST( 89 AS SIGNED ) + 42 * 27 )
----
28129

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 23 * ( CAST ( 89 AS INTEGER ) + 42 * 27 )
----
28129

query I rowsort
SELECT 78 + - 12 AS col1
----
66

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

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 32 / + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT COUNT( * ) - + 13 * - 93 AS col1
----
1210

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT COUNT ( * ) - + 13 * - 93 AS col1
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT + COUNT( * ) * - - 28 * - 68 + CAST( - 6 + 7 * 59 AS SIGNED ) AS col1
----
-1497

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) * - - 28 * - 68 + CAST ( - 6 + 7 * 59 AS INTEGER ) AS col1
----
-1497

query I rowsort
SELECT 55 * 99 + 89 AS col1
----
5534

query I rowsort
SELECT 97 * + 82 * - 47
----
-373838

query I rowsort
SELECT ALL 70 * 19 AS col2
----
1330

query I rowsort
SELECT 3 + + 65 + + 61 * ( 87 ) AS col2
----
5375

query I rowsort
SELECT DISTINCT 81 * 97
----
7857

query I rowsort
SELECT COALESCE ( + 48, 95 + - 49 ) + - 88
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT 16 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-2972
SELECT 16 / 16
----
1

query I rowsort
SELECT ALL 16 * - 9 col0
----
-144

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

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

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

skipif mysql # not compatible
query I rowsort label-2975
SELECT CAST ( NULL AS INTEGER ) + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2976
SELECT 47 + CASE - COUNT( * ) WHEN + ( CASE CAST( NULL AS DECIMAL ) WHEN - 19 THEN + 90 - + COUNT( * ) * 21 WHEN 23 + - 66 THEN ( COUNT( * ) ) + - 84 ELSE NULL END ) THEN NULL ELSE ( 99 ) END
----
146

skipif mysql # not compatible
query I rowsort label-2976
SELECT 47 + CASE - COUNT ( * ) WHEN + ( CASE CAST ( NULL AS REAL ) WHEN - 19 THEN + 90 - + COUNT ( * ) * 21 WHEN 23 + - 66 THEN ( COUNT ( * ) ) + - 84 ELSE NULL END ) THEN NULL ELSE ( 99 ) END
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT 57 + + + NULLIF ( + 30, - COALESCE ( 83, CAST( NULL AS SIGNED ) * 41 ) ) * + CASE - COUNT( * ) - 39 WHEN COUNT( * ) THEN NULL WHEN 17 THEN 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT 57 + + + NULLIF ( + 30, - COALESCE ( 83, CAST ( NULL AS INTEGER ) * 41 ) ) * + CASE - COUNT ( * ) - 39 WHEN COUNT ( * ) THEN NULL WHEN 17 THEN 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT 67 + - NULLIF ( + 57, 78 * AVG ( ALL 98 ) ) + - 41 DIV COUNT( * ) * + 18
----
-728

skipif mysql # not compatible
query I rowsort label-2978
SELECT 67 + - NULLIF ( + 57, 78 * AVG ( ALL 98 ) ) + - 41 / COUNT ( * ) * + 18
----
-728

query I rowsort
SELECT ALL - 76 * - 80 AS col2
----
6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT + CASE - + SUM( ALL 17 ) WHEN CAST( NULL AS SIGNED ) THEN + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + CASE - + SUM ( ALL 17 ) WHEN CAST ( NULL AS INTEGER ) THEN + 68 END AS col1
----
NULL

query I rowsort
SELECT ( - - 99 ) * 1
----
99

query I rowsort
SELECT ALL - + 41 + - - 44 + 86 AS col1
----
89

query I rowsort
SELECT 21 * - 62 * 23
----
-29946

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT 13 DIV + 23 + 12 * + 10
----
120

skipif mysql # not compatible
query I rowsort label-2986
SELECT 13 / + 23 + 12 * + 10
----
120

query I rowsort
SELECT - 5 * - - 52 AS col1
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT - - COUNT( * ) + + 2 DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - - COUNT ( * ) + + 2 / - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2989
SELECT ALL + - CAST( + + 90 AS SIGNED ) + COALESCE ( + COUNT( * ), + 46, - 8 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + - CAST ( + + 90 AS INTEGER ) + COALESCE ( + COUNT ( * ), + 46, - 8 ) AS col1
----
-89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT + 71 * 34 * + CAST( NULL AS SIGNED ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 71 * 34 * + CAST ( NULL AS INTEGER ) + + 6 AS col0
----
NULL

query I rowsort
SELECT ALL + 99 * 72 - 0 AS col2
----
7128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT DISTINCT - - COALESCE ( + 56, + ( - 86 ) * CASE + 7 WHEN COUNT( * ) / COUNT( * ) + + 37 THEN NULL ELSE + CASE ( + 97 ) WHEN 46 THEN + 48 - - COALESCE ( - 46, SUM( 30 ) + 46 * - 37 ) WHEN + 91 * 98 + 25 * CAST( NULL AS SIGNED ) THEN + 18 WHEN 67 THEN 44 END END ) + - 74
----
-18

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT - - COALESCE ( + 56, + ( - 86 ) * CASE + 7 WHEN COUNT ( * ) / COUNT ( * ) + + 37 THEN NULL ELSE + CASE ( + 97 ) WHEN 46 THEN + 48 - - COALESCE ( - 46, SUM ( 30 ) + 46 * - 37 ) WHEN + 91 * 98 + 25 * CAST ( NULL AS INTEGER ) THEN + 18 WHEN 67 THEN 44 END END ) + - 74
----
-18

query I rowsort
SELECT DISTINCT - 66 * - + 82 AS col2
----
5412

query I rowsort
SELECT - 38 + + 37 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + + ( - - ( COUNT( * ) ) ) * - 50 + + 84 * 66 AS col0
----
5494

skipif mysql # not compatible
query I rowsort label-2996
SELECT + + ( - - ( COUNT ( * ) ) ) * - 50 + + 84 * 66 AS col0
----
5494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2997
SELECT - 21 * + 5 - ( COALESCE ( - MAX( 86 ), + COUNT( + CAST( 25 AS DECIMAL ) ), + CASE ( 79 ) WHEN 25 THEN 0 WHEN - 0 THEN + 3 + 84 END ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2997
SELECT - 21 * + 5 - ( COALESCE ( - MAX ( 86 ), + COUNT ( + CAST ( 25 AS REAL ) ), + CASE ( 79 ) WHEN 25 THEN 0 WHEN - 0 THEN + 3 + 84 END ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + CASE - 33 WHEN - 45 + + ( COALESCE ( 3, + 1 + 41 * 76 ) ) / - COUNT( * ) THEN ( 78 ) WHEN 60 + - 23 * + 60 THEN 98 END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + CASE - 33 WHEN - 45 + + ( COALESCE ( 3, + 1 + 41 * 76 ) ) / - COUNT ( * ) THEN ( 78 ) WHEN 60 + - 23 * + 60 THEN 98 END * + 38
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2999
SELECT + 54 AS col1, 44 DIV + - 54 * ( - 72 ) + + 28 * - 7
----
54
-196

skipif mysql # not compatible
query II rowsort label-2999
SELECT + 54 AS col1, 44 / + - 54 * ( - 72 ) + + 28 * - 7
----
54
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL 29 - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 29 - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT 6 * + 58 * COUNT( * )
----
348

skipif mysql # not compatible
query I rowsort label-3001
SELECT 6 * + 58 * COUNT ( * )
----
348

query I rowsort
SELECT ALL - 51 * + CASE - + 69 WHEN - ( + 10 ) + + ( - 32 + - 89 ) THEN 28 WHEN + 66 - 15 THEN NULL ELSE - 41 END
----
2091

query II rowsort
SELECT + 12, 70 * + 96 col0
----
12
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT COUNT( * ) - + + 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3004
SELECT COUNT ( * ) - + + 97 AS col2
----
-96

query I rowsort
SELECT ALL CASE + 79 WHEN + 82 + ( - 93 ) THEN + 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 32 * MAX( + - 18 ) AS col0
----
-576

skipif mysql # not compatible
query I rowsort label-3006
SELECT 32 * MAX ( + - 18 ) AS col0
----
-576

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

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

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

skipif mysql # not compatible
query I rowsort label-3008
SELECT - MIN ( DISTINCT - - 98 )
----
-98

query I rowsort
SELECT ALL 63 * - - 19 AS col0
----
1197

query I rowsort
SELECT + 74 * + 37 AS col2
----
2738

query II rowsort
SELECT 96 AS col1, 26
----
96
26

query I rowsort
SELECT ALL 56 + - - ( - 47 ) + + ( - 2 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + COUNT( DISTINCT + + 64 ) - - 90 + + 57
----
148

skipif mysql # not compatible
query I rowsort label-3013
SELECT + COUNT ( DISTINCT + + 64 ) - - 90 + + 57
----
148

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

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

query I rowsort
SELECT + 38 * ( + 91 )
----
3458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT ALL 9 + - - COUNT( * ) DIV - + 57 col1
----
9

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL 9 + - - COUNT ( * ) / - + 57 col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3017
SELECT + COUNT( + - CAST( 94 AS DECIMAL ) ) DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT + COUNT ( + - CAST ( 94 AS REAL ) ) / - 53 AS col2
----
0

query II rowsort
SELECT - - 48 AS col1, + 44
----
48
44

query I rowsort
SELECT + 6 + + 34 AS col2
----
40

query II rowsort
SELECT - - 79 col2, 78 * - + 40
----
79
-3120

query I rowsort
SELECT + NULLIF ( - - 70, + 32 ) + 78 col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + MAX( DISTINCT - 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-3022
SELECT + MAX ( DISTINCT - 38 ) col2
----
-38

query I rowsort
SELECT - - 25 * 84 + - 12
----
2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT ALL - 19 + + 34 + COUNT( * ) + + COALESCE ( - 33, + ( 1 ) * + COUNT( * ) ) DIV + COALESCE ( - ( 73 ) + + 59 * 81, COALESCE ( 67, - MAX( DISTINCT 2 ), COALESCE ( 46, 13 ) ), 58 DIV 68 )
----
16

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - 19 + + 34 + COUNT ( * ) + + COALESCE ( - 33, + ( 1 ) * + COUNT ( * ) ) / + COALESCE ( - ( 73 ) + + 59 * 81, COALESCE ( 67, - MAX ( DISTINCT 2 ), COALESCE ( 46, 13 ) ), 58 / 68 )
----
16

query I rowsort
SELECT + - 14 + + CASE + 91 WHEN 66 + - 62 THEN - 29 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - 73 * COUNT( * ) - 54 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 73 * COUNT ( * ) - 54 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT - ( - COUNT( * ) ) * COUNT( * ) DIV 21 - ( - 17 + 14 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3027
SELECT - ( - COUNT ( * ) ) * COUNT ( * ) / 21 - ( - 17 + 14 ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT + 30 * - CASE 78 WHEN + 66 DIV + 66 THEN NULL WHEN COALESCE ( - CAST( + 83 AS SIGNED ), + 23 ) DIV - 17 + + 44 * 83 THEN - COALESCE ( + 35, + 25 ) ELSE - 64 END * SUM( + 57 * ( ( 85 ) DIV 43 ) ) - + 41 * 99 AS col1
----
105381

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + 30 * - CASE 78 WHEN + 66 / + 66 THEN NULL WHEN COALESCE ( - CAST ( + 83 AS INTEGER ), + 23 ) / - 17 + + 44 * 83 THEN - COALESCE ( + 35, + 25 ) ELSE - 64 END * SUM ( + 57 * ( ( 85 ) / 43 ) ) - + 41 * 99 AS col1
----
105381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT + 30 * + COALESCE ( + - COUNT( * ), 12 * - SUM( - 53 ), - 57 DIV - 70, 13 * + 31 ) + 37 * - 45
----
-1695

skipif mysql # not compatible
query I rowsort label-3029
SELECT + 30 * + COALESCE ( + - COUNT ( * ), 12 * - SUM ( - 53 ), - 57 / - 70, 13 * + 31 ) + 37 * - 45
----
-1695

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT + - 87 * COALESCE ( - + 90, + 1, 65 ) DIV + 77
----
101

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - 87 * COALESCE ( - + 90, + 1, 65 ) / + 77
----
101

query I rowsort
SELECT - - 23 + - 65 AS col0
----
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT - - COUNT( * ) DIV + 85 * + 3 * COALESCE ( 2, + MAX( - 0 ) * ( 7 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT - - COUNT ( * ) / + 85 * + 3 * COALESCE ( 2, + MAX ( - 0 ) * ( 7 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT COALESCE ( + - 33, COUNT( * ), 87 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-3034
SELECT COALESCE ( + - 33, COUNT ( * ), 87 ) col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT + CAST( + 42 AS SIGNED ) * - + 43
----
-1806

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + CAST ( + 42 AS INTEGER ) * - + 43
----
-1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT ALL + ( + + 0 ) DIV COUNT( * ) + - 18 * + 13
----
-234

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + ( + + 0 ) / COUNT ( * ) + - 18 * + 13
----
-234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3037
SELECT - 5 DIV - 5, - ( + - 99 ) * CAST( NULL AS SIGNED ) + 2 * CAST( + 77 DIV 31 AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3037
SELECT - 5 / - 5, - ( + - 99 ) * CAST ( NULL AS INTEGER ) + 2 * CAST ( + 77 / 31 AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT - 16 + + 55
----
39

query I rowsort
SELECT DISTINCT + 74 * + 29 AS col1
----
2146

query I rowsort
SELECT 84 * - 54 + + 1 + 45 * 19 AS col1
----
-3680

query I rowsort
SELECT + 98 - 41 * - ( 96 ) col2
----
4034

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT DISTINCT - 65 * + 85 + - + ( 21 ) DIV + 98
----
-5525

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - 65 * + 85 + - + ( 21 ) / + 98
----
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL + 82 * 61 + + NULLIF ( 88, COUNT( * ) - + 30 * + 24 ) * + 66 AS col0
----
10810

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL + 82 * 61 + + NULLIF ( 88, COUNT ( * ) - + 30 * + 24 ) * + 66 AS col0
----
10810

query I rowsort
SELECT - 45 * + + 25
----
-1125

query I rowsort
SELECT + 51 * 27
----
1377

query I rowsort
SELECT - 62 + 15
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - MIN( + - 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3047
SELECT - MIN ( + - 38 ) AS col0
----
38

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

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

query I rowsort
SELECT ALL - 85 + + 21 AS col0
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT + CAST( NULL AS SIGNED ) + - 73 + - 69 + - CASE - CAST( + 96 AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + 56 THEN + 90 ELSE NULL END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT + CAST ( NULL AS INTEGER ) + - 73 + - 69 + - CASE - CAST ( + 96 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + 56 THEN + 90 ELSE NULL END * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - 79 / CASE - + 4 WHEN 94 * - MIN( DISTINCT 39 ) THEN 68 - + 77 WHEN 47 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 79 / CASE - + 4 WHEN 94 * - MIN ( DISTINCT 39 ) THEN 68 - + 77 WHEN 47 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + + COUNT( * ) + + + MIN( DISTINCT - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-3053
SELECT + + COUNT ( * ) + + + MIN ( DISTINCT - 53 )
----
-52

query I rowsort
SELECT DISTINCT 39 + - + ( 17 ) col1
----
22

query I rowsort
SELECT ALL 43 + + + 33 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3056
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) DIV - - 47 * 88 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3056
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) / - - 47 * 88 AS col0
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT ALL 23 - + - 81 DIV 61 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL 23 - + - 81 / 61 AS col0
----
24

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

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

query I rowsort
SELECT - 12 * 50 * + 49 AS col1
----
-29400

query I rowsort
SELECT + 56 - - 16 * 4 AS col2
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT - + SUM( ALL + + 93 ) DIV + 23 * + + COUNT( * ) + 44 * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3061
SELECT - + SUM ( ALL + + 93 ) / + 23 * + + COUNT ( * ) + 44 * COUNT ( * ) AS col0
----
40

query II rowsort
SELECT + 5, 9 AS col1
----
5
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT + 75 + 60 * + 28 AS col0, + 52 + COUNT( * ) * - COUNT( * ) col2
----
1755
51

skipif mysql # not compatible
query II rowsort label-3063
SELECT + 75 + 60 * + 28 AS col0, + 52 + COUNT ( * ) * - COUNT ( * ) col2
----
1755
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT COALESCE ( 19, - 45 ) * - + MIN( - 15 ) AS col0
----
285

skipif mysql # not compatible
query I rowsort label-3064
SELECT COALESCE ( 19, - 45 ) * - + MIN ( - 15 ) AS col0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3065
SELECT - 10 * - - 43 DIV + COUNT( * ) + - COALESCE ( 56, CAST( NULL AS SIGNED ), + ( 26 ) * + 14 ) AS col0
----
-486

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 10 * - - 43 / + COUNT ( * ) + - COALESCE ( 56, CAST ( NULL AS INTEGER ), + ( 26 ) * + 14 ) AS col0
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT 57 + - + 97 + COALESCE ( + 67, + 29 * - COUNT( * ), 19 - - NULLIF ( 6, + 24 / 39 + 55 ) ) + 20 * 97 * COALESCE ( 3, 34 + + ( 54 ), - 11 )
----
5847

skipif mysql # not compatible
query I rowsort label-3066
SELECT 57 + - + 97 + COALESCE ( + 67, + 29 * - COUNT ( * ), 19 - - NULLIF ( 6, + 24 / 39 + 55 ) ) + 20 * 97 * COALESCE ( 3, 34 + + ( 54 ), - 11 )
----
5847

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3068
SELECT ALL - CASE 71 WHEN - - COUNT( * ) - + CAST( - + 56 AS SIGNED ) THEN 57 + 31 WHEN + 75 THEN + COUNT( * ) ELSE - 51 * + 24 END
----
1224

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL - CASE 71 WHEN - - COUNT ( * ) - + CAST ( - + 56 AS INTEGER ) THEN 57 + 31 WHEN + 75 THEN + COUNT ( * ) ELSE - 51 * + 24 END
----
1224

query I rowsort
SELECT DISTINCT 10 + - + 45 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL - 89 + COUNT( 87 )
----
-88

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - 89 + COUNT ( 87 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL 45 + + 97 + + COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 45 + + 97 + + COUNT ( * )
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 57 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-3072
SELECT 57 / 52
----
1

query I rowsort
SELECT ALL + 17 + - - 81
----
98

query I rowsort
SELECT ALL + 26 * - - 28
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT ALL + 54 - - CASE 48 WHEN 24 DIV - 51 - 49 DIV 36 THEN 29 ELSE 59 DIV 27 END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + 54 - - CASE 48 WHEN 24 / - 51 - 49 / 36 THEN 29 ELSE 59 / 27 END AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT 50 - + 34 - CASE + + CAST( - + 29 AS SIGNED ) WHEN 6 THEN + COUNT( * ) * 30 WHEN 11 THEN - CAST( CAST( + 55 AS SIGNED ) AS SIGNED ) ELSE NULL END * - 96 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT 50 - + 34 - CASE + + CAST ( - + 29 AS INTEGER ) WHEN 6 THEN + COUNT ( * ) * 30 WHEN 11 THEN - CAST ( CAST ( + 55 AS INTEGER ) AS INTEGER ) ELSE NULL END * - 96 col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 80 - - - 37 - - 88
----
-29

query II rowsort
SELECT ALL 96 AS col1, + 71 + - + 44 AS col1
----
96
27

query I rowsort
SELECT DISTINCT - 60 col1
----
-60

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

query I rowsort
SELECT - 60 - 93
----
-153

query I rowsort
SELECT - 74 - 73
----
-147

query II rowsort
SELECT 13, + ( 13 ) AS col2
----
13
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3086
SELECT - COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( * ) / - 34
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3087
SELECT ALL + + ( 68 ) DIV 58 AS col2, - 48 + + 8 * - 94 AS col2
----
1
-800

skipif mysql # not compatible
query II rowsort label-3087
SELECT ALL + + ( 68 ) / 58 AS col2, - 48 + + 8 * - 94 AS col2
----
1
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT DISTINCT + 48 DIV 3 - 87 DIV + 81 + + 50
----
65

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + 48 / 3 - 87 / + 81 + + 50
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT - 71 / - CAST( NULL AS SIGNED ) + - COUNT( ALL - - 78 ) + AVG ( DISTINCT 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 71 / - CAST ( NULL AS INTEGER ) + - COUNT ( ALL - - 78 ) + AVG ( DISTINCT 38 ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 63 * 2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT - MAX( ALL - ( - - 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - MAX ( ALL - ( - - 30 ) )
----
30

query I rowsort
SELECT + 67 + - - 66 * ( + 5 ) col2
----
397

query I rowsort
SELECT + 76 * + 36
----
2736

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

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL COUNT ( * ) * MAX ( + - 70 ) AS col1
----
-70

query I rowsort
SELECT 6 * - + 98
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ( + COUNT( * ) ) * + 78 * ( + 99 ) - - + COUNT( * ) AS col1
----
7723

skipif mysql # not compatible
query I rowsort label-3096
SELECT ( + COUNT ( * ) ) * + 78 * ( + 99 ) - - + COUNT ( * ) AS col1
----
7723

query I rowsort
SELECT 60 + + 46
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL 40 + 95 - CASE + 96 WHEN - 46 * + + 25 + 26 THEN MAX( - 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL 40 + 95 - CASE + 96 WHEN - 46 * + + 25 + 26 THEN MAX ( - 36 ) END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 63, + 42 * + - 52 + + 33 * + 69 + 57 * 95 ) + - 32
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT 69 + - 94 * + COUNT( * ) * 78 * + - 93 * + - 36 * 14
----
-343665435

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT 69 + - 94 * + COUNT ( * ) * 78 * + - 93 * + - 36 * 14
----
-343665435

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 33 * + + SUM( ALL - + NULLIF ( + - ( + 45 ), 92 ) )
----
1485

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 33 * + + SUM ( ALL - + NULLIF ( + - ( + 45 ), 92 ) )
----
1485

query I rowsort
SELECT - 80 * 81 + 73
----
-6407

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL ( - CASE - 48 WHEN - ( + 85 ) * - + COUNT( * ) - + 8 * - 79 THEN + 14 WHEN + 69 THEN NULL END ) + - 85 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL ( - CASE - 48 WHEN - ( + 85 ) * - + COUNT ( * ) - + 8 * - 79 THEN + 14 WHEN + 69 THEN NULL END ) + - 85 * 78
----
NULL

query II rowsort
SELECT DISTINCT - 89 AS col1, + 24 AS col0
----
-89
24

query I rowsort
SELECT ALL - 85 + 26
----
-59

query I rowsort
SELECT ALL + 30 * + - 25 * - 77
----
57750

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ( - - ( 95 ) ) + + CASE 55 WHEN - 55 THEN NULL WHEN NULLIF ( 80, 87 * 79 ) - + 80 * - 99 THEN MAX( ALL + 74 ) END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ( - - ( 95 ) ) + + CASE 55 WHEN - 55 THEN NULL WHEN NULLIF ( 80, 87 * 79 ) - + 80 * - 99 THEN MAX ( ALL + 74 ) END * + 48
----
NULL

query I rowsort
SELECT 73 - - 42 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT 82 - 32 - - COUNT( * ) col2
----
51

skipif mysql # not compatible
query I rowsort label-3109
SELECT 82 - 32 - - COUNT ( * ) col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT + ( + CAST( + - 5 AS SIGNED ) ) * - 55 + - - MAX( - 58 ) + + 20 * 22 AS col0
----
657

skipif mysql # not compatible
query I rowsort label-3110
SELECT + ( + CAST ( + - 5 AS INTEGER ) ) * - 55 + - - MAX ( - 58 ) + + 20 * 22 AS col0
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL - 95 - - 26 + - 13 * 92 DIV + 52 + 30
----
-62

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL - 95 - - 26 + - 13 * 92 / + 52 + 30
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT ALL - + 7 DIV 7 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - + 7 / 7 AS col0
----
-1

query I rowsort
SELECT + 8 + - 42 col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT ALL + COALESCE ( 46, - - 87 ) - + - COUNT( * ) + - 7 * 6 + - 22 DIV 55 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + COALESCE ( 46, - - 87 ) - + - COUNT ( * ) + - 7 * 6 + - 22 / 55 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN NOT COUNT( * ) NOT IN ( - ( COUNT( - 89 ) ) ) THEN + 22 * - COALESCE ( 44, - 77, + 91 / - 97 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN NOT COUNT ( * ) NOT IN ( - ( COUNT ( - 89 ) ) ) THEN + 22 * - COALESCE ( 44, - 77, + 91 / - 97 ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 8 AS col1, + 65 AS col0
----
8
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT - COUNT( * ) * COUNT( * ) - - 99 * - 76, + ( + 91 ) AS col0
----
-7525
91

skipif mysql # not compatible
query II rowsort label-3117
SELECT - COUNT ( * ) * COUNT ( * ) - - 99 * - 76, + ( + 91 ) AS col0
----
-7525
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT + 86 AS col0, NULLIF ( + 21, - NULLIF ( 82, + COALESCE ( 20, + 37 * + 39 ) * 38 ) ) * + 87 + + COUNT( DISTINCT - 39 ) AS col1
----
86
1828

skipif mysql # not compatible
query II rowsort label-3119
SELECT + 86 AS col0, NULLIF ( + 21, - NULLIF ( 82, + COALESCE ( 20, + 37 * + 39 ) * 38 ) ) * + 87 + + COUNT ( DISTINCT - 39 ) AS col1
----
86
1828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT + 49 * - CAST( - 16 AS SIGNED ) AS col0
----
784

skipif mysql # not compatible
query I rowsort label-3120
SELECT + 49 * - CAST ( - 16 AS INTEGER ) AS col0
----
784

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

query I rowsort
SELECT ALL + - 2 * + 87 + - 78 + + 57 AS col0
----
-195

query II rowsort
SELECT - 87 AS col0, 58
----
-87
58

query I rowsort
SELECT - 72 + + 66 - + + 88 + + 22 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT - 16 * COUNT( ALL - - 61 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-3125
SELECT - 16 * COUNT ( ALL - - 61 ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL - MIN( - 75 ) + + CASE - - ( COUNT( ALL + 35 ) ) WHEN + CASE 46 WHEN + 99 THEN NULL WHEN - 0 THEN NULL ELSE 65 * 99 END THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - MIN ( - 75 ) + + CASE - - ( COUNT ( ALL + 35 ) ) WHEN + CASE 46 WHEN + 99 THEN NULL WHEN - 0 THEN NULL ELSE 65 * 99 END THEN 45 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT ALL NULLIF ( CASE - 97 WHEN + NULLIF ( + 2, + ( CAST( + 73 AS SIGNED ) ) ) * 90 THEN NULL WHEN + 78 THEN NULL ELSE 68 END, 84 * - 94 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL NULLIF ( CASE - 97 WHEN + NULLIF ( + 2, + ( CAST ( + 73 AS INTEGER ) ) ) * 90 THEN NULL WHEN + 78 THEN NULL ELSE 68 END, 84 * - 94 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - + 98 + 22 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT CASE - 30 WHEN - - ( + 59 ) * - COUNT( * ) / + 2 * + ( CAST( + CASE + 28 WHEN 34 + ( 21 ) THEN - MIN( ALL + 95 ) / NULLIF ( ( + 46 ), ( 51 ) * 13 ) WHEN 19 + + MAX( DISTINCT 72 + 74 ) THEN NULL END AS SIGNED ) ) THEN NULL WHEN + 65 * 78 THEN NULL WHEN 51 * + 28 - 31 * - COUNT( * ) THEN 36 * + ( 99 / 93 ) + 85 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT CASE - 30 WHEN - - ( + 59 ) * - COUNT ( * ) / + 2 * + ( CAST ( + CASE + 28 WHEN 34 + ( 21 ) THEN - MIN ( ALL + 95 ) / NULLIF ( ( + 46 ), ( 51 ) * 13 ) WHEN 19 + + MAX ( DISTINCT 72 + 74 ) THEN NULL END AS INTEGER ) ) THEN NULL WHEN + 65 * 78 THEN NULL WHEN 51 * + 28 - 31 * - COUNT ( * ) THEN 36 * + ( 99 / 93 ) + 85 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT - COUNT( * ) - - + 50 * - COUNT( 60 ) * + COUNT( * ) + - - CAST( NULL AS SIGNED ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - COUNT ( * ) - - + 50 * - COUNT ( 60 ) * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT COALESCE ( - 78, - 0, + - NULLIF ( - 11, + - COUNT( * ) * 63 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3131
SELECT COALESCE ( - 78, - 0, + - NULLIF ( - 11, + - COUNT ( * ) * 63 ) ) AS col2
----
-78

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

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

query I rowsort
SELECT - 52 * 38 AS col1
----
-1976

onlyif mysql # DIV for integer division: 
query II rowsort label-3134
SELECT + 58 * - 48 AS col1, - 45 * 79 DIV + ( - 16 ) AS col0
----
-2784
222

skipif mysql # not compatible
query II rowsort label-3134
SELECT + 58 * - 48 AS col1, - 45 * 79 / + ( - 16 ) AS col0
----
-2784
222

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

skipif mysql # not compatible
query I rowsort label-3135
SELECT + 75 / + + COUNT ( * ) / + COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT + 23 * - - 52 + - + 8 col1
----
1188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3137
SELECT ALL - 62 DIV - + 74 AS col1, AVG ( + 9 ) * 81 DIV ( CAST( NULL AS SIGNED ) ) * 85 - 60 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3137
SELECT ALL - 62 / - + 74 AS col1, AVG ( + 9 ) * 81 / ( CAST ( NULL AS INTEGER ) ) * 85 - 60 AS col0
----
0
NULL

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( COALESCE ( + ( + - 67 ), + - 54 * + 73 + - 39 ), 19 ) * - 86 AS col1
----
-5762

query II rowsort
SELECT ALL + ( - + 72 ) AS col1, - 18
----
-72
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - MAX( + 19 ) + + - ( + - COUNT( * ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3142
SELECT - MAX ( + 19 ) + + - ( + - COUNT ( * ) ) AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT + CAST( - 60 AS SIGNED ) * - + 36 * 67 + - 63 * + 86 + + + 21 AS col0
----
139323

skipif mysql # not compatible
query I rowsort label-3143
SELECT + CAST ( - 60 AS INTEGER ) * - + 36 * 67 + - 63 * + 86 + + + 21 AS col0
----
139323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT ALL 50 DIV - + COALESCE ( - + 65, - 34 + + + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 50 / - + COALESCE ( - + 65, - 34 + + + COUNT ( * ) )
----
0

query II rowsort
SELECT + 56 * + - 73 col1, 53
----
-4088
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT + ( - - 37 ) * - COUNT( - ( + - 43 ) ) AS col0, - NULLIF ( + COUNT( * ), 1 ) * 31
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-3146
SELECT + ( - - 37 ) * - COUNT ( - ( + - 43 ) ) AS col0, - NULLIF ( + COUNT ( * ), 1 ) * 31
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT COUNT( * ) * + 41 - 38 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT COUNT ( * ) * + 41 - 38 + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - 6 * - 18 - COUNT( * ) - - MAX( - - 35 )
----
142

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - 6 * - 18 - COUNT ( * ) - - MAX ( - - 35 )
----
142

query I rowsort
SELECT + + ( 57 ) * + - ( + 97 ) + 8 AS col0
----
-5521

query I rowsort
SELECT - 33 * 25 * - + 89 - + 28
----
73397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT ALL - 9 * + - CAST( - 23 AS SIGNED )
----
-207

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - 9 * + - CAST ( - 23 AS INTEGER )
----
-207

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

skipif mysql # not compatible
query I rowsort label-3152
SELECT MIN ( DISTINCT - - ( - 20 ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT + + CAST( NULL AS SIGNED ) - - 48, 97 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3153
SELECT + + CAST ( NULL AS INTEGER ) - - 48, 97 AS col0
----
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT + + 70 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT + + 70 / - 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT + - 54 - - 11 DIV - COUNT( DISTINCT - COALESCE ( + 31, + 49 ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3155
SELECT + - 54 - - 11 / - COUNT ( DISTINCT - COALESCE ( + 31, + 49 ) ) AS col1
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - ( + SUM( + 97 ) ) + + 37
----
-60

skipif mysql # not compatible
query I rowsort label-3157
SELECT - ( + SUM ( + 97 ) ) + + 37
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3158
SELECT ALL 6 + - + CAST( NULL AS DECIMAL ) / + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 6 + - + CAST ( NULL AS REAL ) / + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT - NULLIF ( - 33, COUNT( * ) * CASE + + 10 WHEN - 70 THEN NULL WHEN 2 + CAST( NULL AS SIGNED ) THEN - ( + 84 ) WHEN 5 / 90 THEN NULL ELSE + ( 33 ) * COUNT( * ) END + - 56 * + 71 ) * 43 AS col1
----
1419

skipif mysql # not compatible
query I rowsort label-3159
SELECT - NULLIF ( - 33, COUNT ( * ) * CASE + + 10 WHEN - 70 THEN NULL WHEN 2 + CAST ( NULL AS INTEGER ) THEN - ( + 84 ) WHEN 5 / 90 THEN NULL ELSE + ( 33 ) * COUNT ( * ) END + - 56 * + 71 ) * 43 AS col1
----
1419

query I rowsort
SELECT ALL + - 8 + + CASE - + 77 WHEN - 5 THEN NULL ELSE + 9 END AS col1
----
1

query I rowsort
SELECT + 89 + + COALESCE ( - + 37, + + 90 )
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + NULLIF ( - + 3, 37 * 82 + + + COUNT( * ) ) + 7 - 4 * - 43
----
176

skipif mysql # not compatible
query I rowsort label-3163
SELECT + NULLIF ( - + 3, 37 * 82 + + + COUNT ( * ) ) + 7 - 4 * - 43
----
176

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

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

query II rowsort
SELECT ALL - + 95 * - ( 53 ) + - ( 42 ), - 16 AS col0
----
4993
-16

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

skipif mysql # not compatible
query I rowsort label-3166
SELECT ( + COALESCE ( + COUNT ( * ), - 32 + - + 2 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT - 34 * + 23 / + - NULLIF ( - - CAST( NULL AS SIGNED ), 16 + + MAX( 96 ) + + COUNT( * ) * 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 34 * + 23 / + - NULLIF ( - - CAST ( NULL AS INTEGER ), 16 + + MAX ( 96 ) + + COUNT ( * ) * 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT MIN( + + 61 ) + - COUNT( * ) + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT MIN ( + + 61 ) + - COUNT ( * ) + + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT ALL - 57 * + 47
----
-2679

query II rowsort
SELECT ALL + 2 + - + 74 * + - 87 AS col1, - 53 col1
----
6440
-53

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

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 10 ) * - 6 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT - 99 + + 32 + CAST( - 20 AS SIGNED ) * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 99 + + 32 + CAST ( - 20 AS INTEGER ) * + COUNT ( * )
----
-87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3175
SELECT ALL + 96 DIV - ( - MAX( 47 ) ) - - 89 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + 96 / - ( - MAX ( 47 ) ) - - 89 AS col2
----
91

query II rowsort
SELECT + 69, 2 AS col1
----
69
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3177
SELECT - 72 * + 84 + COUNT( * ) AS col2, + CASE + 83 WHEN - CAST( + 30 AS SIGNED ) * + ( 5 ) THEN ( + 71 ) + + 53 END AS col2
----
-6047
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT - 72 * + 84 + COUNT ( * ) AS col2, + CASE + 83 WHEN - CAST ( + 30 AS INTEGER ) * + ( 5 ) THEN ( + 71 ) + + 53 END AS col2
----
-6047
NULL

query II rowsort
SELECT + 27, + 37 AS col2
----
27
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT CAST( ( 59 ) AS SIGNED ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3179
SELECT CAST ( ( 59 ) AS INTEGER ) AS col2
----
59

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

query I rowsort
SELECT - 50 + - 44
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT - 22 DIV - MIN( DISTINCT + - 3 )
----
-7

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - 22 / - MIN ( DISTINCT + - 3 )
----
-7

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

query I rowsort
SELECT DISTINCT - 13 * + 59
----
-767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3185
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT CAST( - 50 AS SIGNED ) ) * + ( + + CASE + + 87 WHEN - + COUNT( * ) THEN NULL WHEN COUNT( * ) * + 94 THEN ( 12 ) DIV COUNT( * ) ELSE 43 END ) + + 80
----
NULL
-2070

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT CAST ( - 50 AS INTEGER ) ) * + ( + + CASE + + 87 WHEN - + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 94 THEN ( 12 ) / COUNT ( * ) ELSE 43 END ) + + 80
----
NULL
-2070

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

query I rowsort
SELECT ALL - 41 * + 34
----
-1394

query I rowsort
SELECT - ( + + 5 ) * - 86
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT COALESCE ( - + COUNT( * ), - 17 * + + 83 * + 55 * 5 * 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3189
SELECT COALESCE ( - + COUNT ( * ), - 17 * + + 83 * + 55 * 5 * 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - + 24 + COUNT( * ) + + 61 + - - 69 * 84 - 81 * 25
----
3809

skipif mysql # not compatible
query I rowsort label-3190
SELECT - + 24 + COUNT ( * ) + + 61 + - - 69 * 84 - 81 * 25
----
3809

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT + - 18 - - 73 + + 84 + - + 3 - - + 96 + + MAX( - - CASE - + 35 WHEN - COALESCE ( - 83, ( - 53 ) + 19 * + 74, ( 11 ), 96 * 58 ) THEN + NULLIF ( 93, 75 + 49 ) ELSE NULL END ) + - 11 / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT + - 18 - - 73 + + 84 + - + 3 - - + 96 + + MAX ( - - CASE - + 35 WHEN - COALESCE ( - 83, ( - 53 ) + 19 * + 74, ( 11 ), 96 * 58 ) THEN + NULLIF ( 93, 75 + 49 ) ELSE NULL END ) + - 11 / + 20
----
NULL

query I rowsort
SELECT + + 30 * + 73 + - - CASE - + ( 62 ) WHEN - 51 - - 33 THEN - - 16 ELSE 33 END
----
2223

query I rowsort
SELECT + + 43 + - 30
----
13

query I rowsort
SELECT - + 74 * - 99
----
7326

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT 69 * MAX( ALL - 69 ) + - 44
----
-4805

skipif mysql # not compatible
query I rowsort label-3195
SELECT 69 * MAX ( ALL - 69 ) + - 44
----
-4805

query I rowsort
SELECT ALL - NULLIF ( - 73, + 68 * - COALESCE ( - 93, - 5 * 19 * + 87 ) + + 66 * - 72 ) * ( + 44 + - 82 ) + 56
----
-2718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT + CAST( + 48 AS SIGNED ) + + 30 - - + 67 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-3197
SELECT + CAST ( + 48 AS INTEGER ) + + 30 - - + 67 AS col2
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT ALL 94, COUNT( * ) + - + COALESCE ( - 37, + - 86 * - 80 + + 62 ) - + COUNT( * ) AS col1
----
94
37

skipif mysql # not compatible
query II rowsort label-3198
SELECT ALL 94, COUNT ( * ) + - + COALESCE ( - 37, + - 86 * - 80 + + 62 ) - + COUNT ( * ) AS col1
----
94
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT DISTINCT + 15 * + + CAST( + 70 AS SIGNED ) + - COUNT( * ) + - 26
----
1023

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT + 15 * + + CAST ( + 70 AS INTEGER ) + - COUNT ( * ) + - 26
----
1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3200
SELECT DISTINCT 94 + + - COUNT( DISTINCT + 42 ) * - + ( + 10 ) DIV - - 36
----
94

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT 94 + + - COUNT ( DISTINCT + 42 ) * - + ( + 10 ) / - - 36
----
94

query I rowsort
SELECT DISTINCT ( + 53 ) + - 59
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT 12 + - + 95 * - - COUNT( * ) * - + 99 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT 12 + - + 95 * - - COUNT ( * ) * - + 99 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 82 AS col2, 49 * + + 11 col1
----
82
539

query I rowsort
SELECT ALL 79 * + 31
----
2449

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT ALL + 98 DIV - - 33
----
2

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + 98 / - - 33
----
2

query I rowsort
SELECT ( - - 63 ) * 3 * - + 32 * + 5 * - + 69 * - 64 AS col2
----
-133539840

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL + 99 * - 89 * - COUNT( * ) AS col0
----
8811

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + 99 * - 89 * - COUNT ( * ) AS col0
----
8811

query I rowsort
SELECT ( ( 47 ) ) * - - 92 * + ( + + 14 ) + - 73
----
60463

query I rowsort
SELECT DISTINCT + 81 * - 18
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT - 26 * - 47 * + CASE + COALESCE ( - - 0, 77 * - 84, 78 * - MIN( DISTINCT + 73 ) + - ( - 24 ) * - 98 ) WHEN 93 THEN 58 ELSE - 65 * - 70 END AS col0
----
5560100

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT - 26 * - 47 * + CASE + COALESCE ( - - 0, 77 * - 84, 78 * - MIN ( DISTINCT + 73 ) + - ( - 24 ) * - 98 ) WHEN 93 THEN 58 ELSE - 65 * - 70 END AS col0
----
5560100

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT MIN( ALL + + 7 ) - - - 47 * + 78 - + - 82
----
-3577

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT MIN ( ALL + + 7 ) - - - 47 * + 78 - + - 82
----
-3577

query III rowsort
SELECT ALL - 8 * 40 AS col2, + 14 * - + NULLIF ( - + 4, 28 ) * - - 63 col1, + - 19
----
-320
3528
-19

query I rowsort
SELECT 75 - 97 - - + 79 col0
----
57

query I rowsort
SELECT ALL 15 * 94 col1
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + 30 * - 50 - - - MAX( + 60 ) * - + 47
----
1320

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 30 * - 50 - - - MAX ( + 60 ) * - + 47
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT - MIN( ALL - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - MIN ( ALL - 73 ) AS col1
----
73

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

query I rowsort
SELECT 27 * 6 * + 80 * 58 + + - 0 + + - 90 + + 95 col2
----
751685

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT 1 - 78 + - + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3219
SELECT 1 - 78 + - + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT 32 * 37 AS col1
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL - COUNT( * ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - COUNT ( * ) + - 77
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT ALL + - 29 DIV - ( 65 )
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL + - 29 / - ( 65 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3223
SELECT DISTINCT - - CASE + 55 WHEN + 73 THEN + 78 + - 68 - + + 63 * - 50 + + 34 END + - - CAST( NULL AS DECIMAL ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - - CASE + 55 WHEN + 73 THEN + 78 + - 68 - + + 63 * - 50 + + 34 END + - - CAST ( NULL AS REAL ) + - 42
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL + COUNT ( * ) + - MIN ( - 2 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT 57 * + ( ( 84 ) ) AS col0, + 56 + - COUNT( * ) + - + 64 + 35 * - 39
----
4788
-1374

skipif mysql # not compatible
query II rowsort label-3225
SELECT 57 * + ( ( 84 ) ) AS col0, + 56 + - COUNT ( * ) + - + 64 + 35 * - 39
----
4788
-1374

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL - - COUNT( * ) + 3 + + COALESCE ( - 14, - + 98 ) + + 59
----
49

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - - COUNT ( * ) + 3 + + COALESCE ( - 14, - + 98 ) + + 59
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT 90 + 4 * COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3227
SELECT 90 + 4 * COUNT ( * ) AS col0
----
94

query II rowsort
SELECT 37 + + 38 AS col0, 45
----
75
45

query I rowsort
SELECT - 93 - + 24
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT ALL - SUM( 53 ) col0, 9
----
-53
9

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL - SUM ( 53 ) col0, 9
----
-53
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT CASE + 37 WHEN 67 THEN - COUNT( * ) WHEN - 84 THEN NULL END - - + 94 + 13 * 50 * - + AVG ( DISTINCT 46 ) + 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT CASE + 37 WHEN 67 THEN - COUNT ( * ) WHEN - 84 THEN NULL END - - + 94 + 13 * 50 * - + AVG ( DISTINCT 46 ) + 47 col1
----
NULL

query I rowsort
SELECT 50 + - 60 * + ( - + 84 ) col2
----
5090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - 3 - - - CAST( + 46 AS SIGNED ) + - 55 + COUNT( * ) * - - 15
----
-89

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - 3 - - - CAST ( + 46 AS INTEGER ) + - 55 + COUNT ( * ) * - - 15
----
-89

query I rowsort
SELECT ALL 70 * + 66 col2
----
4620

onlyif mysql # aggregate syntax: 
query III rowsort label-3235
SELECT 71 AS col2, - 47 + + COUNT( * ) AS col1, + NULLIF ( + 25, + 0 )
----
71
-46
25

skipif mysql # not compatible
query III rowsort label-3235
SELECT 71 AS col2, - 47 + + COUNT ( * ) AS col1, + NULLIF ( + 25, + 0 )
----
71
-46
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT 31 + - COUNT( DISTINCT CAST( - 68 AS SIGNED ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3236
SELECT 31 + - COUNT ( DISTINCT CAST ( - 68 AS INTEGER ) ) AS col1
----
30

query I rowsort
SELECT ALL 99 * - 4
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 76 - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3238
SELECT 76 - COUNT ( * ) AS col1
----
75

query I rowsort
SELECT CASE + 53 WHEN - - 14 THEN NULL ELSE 47 + - 71 END * + 74 col0
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ( MIN( DISTINCT 78 ) ) * + MAX( - - 95 ) col2
----
7410

skipif mysql # not compatible
query I rowsort label-3240
SELECT ( MIN ( DISTINCT 78 ) ) * + MAX ( - - 95 ) col2
----
7410

query II rowsort
SELECT DISTINCT 70, 4 AS col2
----
70
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT DISTINCT CAST( - - 69 AS SIGNED ) * - MAX( ALL 75 ) AS col1
----
-5175

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT CAST ( - - 69 AS INTEGER ) * - MAX ( ALL 75 ) AS col1
----
-5175

query I rowsort
SELECT ( - - 69 ) + + 57 col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + COUNT( * ) * 91 * + 80 + + COALESCE ( 22, 64 )
----
7302

skipif mysql # not compatible
query I rowsort label-3244
SELECT + COUNT ( * ) * 91 * + 80 + + COALESCE ( 22, 64 )
----
7302

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL + - 56 * + + COUNT( * ) * - + COALESCE ( MAX( ALL 16 ), - + COUNT( ( + 39 ) ) + COUNT( + 40 ) ) * - COUNT( * ) + - COUNT( - 13 ) AS col0
----
-897

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + - 56 * + + COUNT ( * ) * - + COALESCE ( MAX ( ALL 16 ), - + COUNT ( ( + 39 ) ) + COUNT ( + 40 ) ) * - COUNT ( * ) + - COUNT ( - 13 ) AS col0
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL - + ( + + 21 ) * + - 51 * + ( - 93 ) - - + COUNT( * ) + - - 72
----
-99530

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - + ( + + 21 ) * + - 51 * + ( - 93 ) - - + COUNT ( * ) + - - 72
----
-99530

query II rowsort
SELECT ALL - 36, - 75 col2
----
-36
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT ALL - MAX( + + 78 ) * + 45 + 97 * 14 + - 70 * + - 11 * + - 45 AS col2, 8
----
-36802
8

skipif mysql # not compatible
query II rowsort label-3248
SELECT ALL - MAX ( + + 78 ) * + 45 + 97 * 14 + - 70 * + - 11 * + - 45 AS col2, 8
----
-36802
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + COUNT( * ) + NULLIF ( + - 94, 16 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3249
SELECT + COUNT ( * ) + NULLIF ( + - 94, 16 ) AS col1
----
-93

query I rowsort
SELECT - 11 + 78
----
67

query I rowsort
SELECT ALL - - 88 - + ( + 82 )
----
6

query I rowsort
SELECT - 82 * - + 90 AS col2
----
7380

query I rowsort
SELECT DISTINCT + - 76 * + 54 * - 17
----
69768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT DISTINCT + - SUM( DISTINCT + 64 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + - SUM ( DISTINCT + 64 ) / + 73
----
0

query I rowsort
SELECT ALL ( - NULLIF ( 49, - 79 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3256
SELECT DISTINCT + 26 * ( - MAX( ALL 73 ) ) * COUNT( ALL 32 ) + + 60 * - + 87 AS col0, - 9 AS col0
----
-7118
-9

skipif mysql # not compatible
query II rowsort label-3256
SELECT DISTINCT + 26 * ( - MAX ( ALL 73 ) ) * COUNT ( ALL 32 ) + + 60 * - + 87 AS col0, - 9 AS col0
----
-7118
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT - - NULLIF ( 12, COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-3257
SELECT - - NULLIF ( 12, COUNT ( * ) )
----
12

query II rowsort
SELECT 10, ( + + 28 ) AS col1
----
10
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3259
SELECT - 93 DIV + 15, + ( + 69 ) AS col2, NULLIF ( 69, + CAST( - ( 15 ) AS SIGNED ) * 82 + + 78 ) - COUNT( * ) AS col1
----
-6
69
68

skipif mysql # not compatible
query III rowsort label-3259
SELECT - 93 / + 15, + ( + 69 ) AS col2, NULLIF ( 69, + CAST ( - ( 15 ) AS INTEGER ) * 82 + + 78 ) - COUNT ( * ) AS col1
----
-6
69
68

query I rowsort
SELECT ALL + 44 * 83
----
3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3261
SELECT + CASE + 45 WHEN 58 THEN NULL WHEN + COALESCE ( + 47, + 94 ) + - + 99 + + - 82 THEN - + 2 ELSE - CASE - - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) WHEN + CASE + 68 WHEN 40 THEN COUNT( * ) WHEN COUNT( * ) DIV 27 THEN NULL END * + 29 THEN - 69 * CAST( NULL AS SIGNED ) ELSE 26 + 30 END END + 88 DIV + 47 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3261
SELECT + CASE + 45 WHEN 58 THEN NULL WHEN + COALESCE ( + 47, + 94 ) + - + 99 + + - 82 THEN - + 2 ELSE - CASE - - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) WHEN + CASE + 68 WHEN 40 THEN COUNT ( * ) WHEN COUNT ( * ) / 27 THEN NULL END * + 29 THEN - 69 * CAST ( NULL AS INTEGER ) ELSE 26 + 30 END END + 88 / + 47 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT 24 AS col2, SUM( - 92 ) * 71 AS col0
----
24
-6532

skipif mysql # not compatible
query II rowsort label-3262
SELECT 24 AS col2, SUM ( - 92 ) * 71 AS col0
----
24
-6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3263
SELECT + 46 + - - CAST( NULL AS SIGNED ) AS col0, - 56 + SUM( - - 35 )
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3263
SELECT + 46 + - - CAST ( NULL AS INTEGER ) AS col0, - 56 + SUM ( - - 35 )
----
NULL
-21

query I rowsort
SELECT ALL ( + + 91 ) AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT - 57 DIV 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3265
SELECT - 57 / 48 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3266
SELECT + 63 DIV + - 64 AS col2, ( COALESCE ( - 25, - 45, + 63 * + - 81 * - + 63 + + COUNT( * ) ) ) AS col0
----
0
-25

skipif mysql # not compatible
query II rowsort label-3266
SELECT + 63 / + - 64 AS col2, ( COALESCE ( - 25, - 45, + 63 * + - 81 * - + 63 + + COUNT ( * ) ) ) AS col0
----
0
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT 40 AS col2, - COUNT( * ) * + CASE - 93 WHEN 57 + + 44 + + - MAX( - 95 ) * + - COUNT( * ) + 58 * - - 51 * + 31 THEN 92 ELSE NULL END * + 44
----
40
NULL

skipif mysql # not compatible
query II rowsort label-3267
SELECT 40 AS col2, - COUNT ( * ) * + CASE - 93 WHEN 57 + + 44 + + - MAX ( - 95 ) * + - COUNT ( * ) + 58 * - - 51 * + 31 THEN 92 ELSE NULL END * + 44
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT DISTINCT CASE MAX( - 88 ) WHEN + + 42 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT CASE MAX ( - 88 ) WHEN + + 42 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 27 + 95
----
122

query I rowsort
SELECT DISTINCT - 63 + + 16 + 37 AS col0
----
-10

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

query I rowsort
SELECT - NULLIF ( - - 63, + 25 * + 20 - 27 + - 55 ) AS col2
----
-63

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

skipif mysql # not compatible
query II rowsort label-3273
SELECT 40, CAST ( NULL AS INTEGER ) col0
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - ( 47 ) - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3274
SELECT - ( 47 ) - COUNT ( * )
----
-48

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

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

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

query I rowsort
SELECT + 49 + + 13 + - 65 + + 65
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL - 6 DIV 68 + + COALESCE ( + 83, 55 )
----
83

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - 6 / 68 + + COALESCE ( + 83, 55 )
----
83

query II rowsort
SELECT DISTINCT + 68 AS col0, 44 + + 88 col1
----
68
132

query I rowsort
SELECT DISTINCT 74 * - + 81 + 33 + 60
----
-5901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT 12 * COUNT( * ) + + COUNT( * ) + + + ( + + 89 ) * CAST( - + 37 AS SIGNED )
----
-3280

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT 12 * COUNT ( * ) + + COUNT ( * ) + + + ( + + 89 ) * CAST ( - + 37 AS INTEGER )
----
-3280

query I rowsort
SELECT ALL - 17 * + 23 + + + 41
----
-350

query II rowsort
SELECT DISTINCT + + 38 AS col0, - 16 + - 94 AS col2
----
38
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3284
SELECT + ( - + CAST( 89 AS SIGNED ) ) DIV + 73 + + + 0 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3284
SELECT + ( - + CAST ( 89 AS INTEGER ) ) / + 73 + + + 0 * - COUNT ( * )
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-3286
SELECT MAX ( + ( - 19 ) )
----
-19

query I rowsort
SELECT - COALESCE ( + - 0, - 91 * - 46 + - - 29 + - 68 * 58 ) * 75 * + 94 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT SUM( ALL + + ( COALESCE ( + - ( 15 ), + 80 * - 62 DIV + 80 - + 69, - ( - 21 ) ) ) ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-3288
SELECT SUM ( ALL + + ( COALESCE ( + - ( 15 ), + 80 * - 62 / + 80 - + 69, - ( - 21 ) ) ) ) col2
----
-15

query I rowsort
SELECT ALL + - 30 * 13 - + 66 * + 12
----
-1182

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT + 24, 58 * ( + COUNT( * ) ) * 75 + ( - 13 ) * + + 50 AS col0
----
24
3700

skipif mysql # not compatible
query II rowsort label-3290
SELECT + 24, 58 * ( + COUNT ( * ) ) * 75 + ( - 13 ) * + + 50 AS col0
----
24
3700

query II rowsort
SELECT ALL + + 23 AS col1, NULLIF ( + + 67, 4 * - + 28 ) * + 94 + 51
----
23
6349

onlyif mysql # DIV for integer division: 
query II rowsort label-3292
SELECT + + COALESCE ( 71, - 10 ) * - + 80 AS col0, + 74 - - 14 DIV 10
----
-5680
75

skipif mysql # not compatible
query II rowsort label-3292
SELECT + + COALESCE ( 71, - 10 ) * - + 80 AS col0, + 74 - - 14 / 10
----
-5680
75

query I rowsort
SELECT ALL + 5 * + - 48 * 38
----
-9120

query I rowsort
SELECT ALL ( - - 53 ) * - - 95 * ( 19 )
----
95665

query I rowsort
SELECT DISTINCT - 97 * 43 AS col2
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT COUNT( * ) * - + 54 * - 21 + + 36 - + - 94
----
1264

skipif mysql # not compatible
query I rowsort label-3296
SELECT COUNT ( * ) * - + 54 * - 21 + + 36 - + - 94
----
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + 40 + COUNT( * ) + 50 * 69 * - 20 * MIN( + + 80 )
----
-5519959

skipif mysql # not compatible
query I rowsort label-3297
SELECT + 40 + COUNT ( * ) + 50 * 69 * - 20 * MIN ( + + 80 )
----
-5519959

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

query I rowsort
SELECT - 16 * 5
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT - 67 * - MIN( + - 49 ) AS col0
----
-3283

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT - 67 * - MIN ( + - 49 ) AS col0
----
-3283

query I rowsort
SELECT DISTINCT - 95 + 22 + - - 53 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - 86 + MIN( 48 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 86 + MIN ( 48 ) AS col2
----
-38

query I rowsort
SELECT ALL - 77 + + - COALESCE ( ( + 43 ), 27 ) + 60 * + - 68
----
-4200

onlyif mysql # DIV for integer division: 
query II rowsort label-3304
SELECT DISTINCT ( 6 ), + 95 DIV - - 45 AS col2
----
6
2

skipif mysql # not compatible
query II rowsort label-3304
SELECT DISTINCT ( 6 ), + 95 / - - 45 AS col2
----
6
2

query I rowsort
SELECT DISTINCT - 68 + - 21 + - - 99 * 7 * 73 * + - 19 AS col0
----
-961280

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL - 50 + - COALESCE ( + 4, + SUM( + + 19 ) + - NULLIF ( + ( + + 4 ), + 66 * 7 ) + - - 87 + + 80 + + 47 * 51, 46 )
----
-54

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - 50 + - COALESCE ( + 4, + SUM ( + + 19 ) + - NULLIF ( + ( + + 4 ), + 66 * 7 ) + - - 87 + + 80 + + 47 * 51, 46 )
----
-54

query I rowsort
SELECT - 50 + + 65
----
15

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

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

query II rowsort
SELECT + 32 - 26, + 37 AS col1
----
6
37

query I rowsort
SELECT ALL - 50 + 57 * + 26 + - - 59 AS col2
----
1491

query II rowsort
SELECT - 20 * + 99 AS col0, 32 AS col1
----
-1980
32

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT + + CASE + COUNT( * ) WHEN - CAST( NULLIF ( 63, + 28 ) AS SIGNED ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + + CASE + COUNT ( * ) WHEN - CAST ( NULLIF ( 63, + 28 ) AS INTEGER ) THEN - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT CASE + 89 WHEN + + 36 THEN 75 WHEN + COUNT( * ) - + 10 / - 57 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT CASE + 89 WHEN + + 36 THEN 75 WHEN + COUNT ( * ) - + 10 / - 57 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3316
SELECT DISTINCT 49 - - + 50 * + MIN( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT 49 - - + 50 * + MIN ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - 13 / + MAX( - CASE + + 8 WHEN + - 10 / - 51 THEN NULL WHEN + ( 13 ) + 10 THEN - 14 END ) * - 77 + 10 + 93 * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT - 13 / + MAX ( - CASE + + 8 WHEN + - 10 / - 51 THEN NULL WHEN + ( 13 ) + 10 THEN - 14 END ) * - 77 + 10 + 93 * 3 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - - 17 * + 60 col0
----
1020

query I rowsort
SELECT - 46 + 79
----
33

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

query I rowsort
SELECT DISTINCT - + 67 * + - ( 95 )
----
6365

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT - ( - - 21 ) DIV + 27 + - + 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3323
SELECT - ( - - 21 ) / + 27 + - + 44 AS col0
----
-44

query I rowsort
SELECT ALL 34 * - 64 AS col1
----
-2176

query I rowsort
SELECT 48 * 95 + + 43 + + + 19 AS col2
----
4622

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

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - COALESCE ( + ( + - ( 40 ) ), ( + ( - COUNT ( * ) ) ) )
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + + 12 * 89 + + - 53 + - 49 + + + 15 - + - COUNT( * ) + - + 97 * - COALESCE ( - 67, - - 34 )
----
-5517

skipif mysql # not compatible
query I rowsort label-3328
SELECT + + 12 * 89 + + - 53 + - 49 + + + 15 - + - COUNT ( * ) + - + 97 * - COALESCE ( - 67, - - 34 )
----
-5517

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT 4 DIV 60 * - 78 * + 18 + + - 81, + 74 col1
----
-81
74

skipif mysql # not compatible
query II rowsort label-3329
SELECT 4 / 60 * - 78 * + 18 + + - 81, + 74 col1
----
-81
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT NULLIF ( + 0, + - 49 ) + + MAX( - + 20 ) + 31
----
11

skipif mysql # not compatible
query I rowsort label-3330
SELECT NULLIF ( + 0, + - 49 ) + + MAX ( - + 20 ) + 31
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL CASE + 22 WHEN 77 + + COALESCE ( + 99, - + COUNT( * ) * 72 + + CASE - 68 WHEN 84 + - 18 + - - MAX( COALESCE ( + 96, - 4, ( 10 ) * + ( 23 ) ) ) + + COALESCE ( COUNT( 42 ), - 79 * + 78 ) THEN MIN( + 68 ) + 52 END + - 7 ) THEN 11 END / + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL CASE + 22 WHEN 77 + + COALESCE ( + 99, - + COUNT ( * ) * 72 + + CASE - 68 WHEN 84 + - 18 + - - MAX ( COALESCE ( + 96, - 4, ( 10 ) * + ( 23 ) ) ) + + COALESCE ( COUNT ( 42 ), - 79 * + 78 ) THEN MIN ( + 68 ) + 52 END + - 7 ) THEN 11 END / + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT ALL COALESCE ( + COUNT( + ( + - 10 ) ), 68, - 71 ) + - ( 11 ) + MAX( + 3 ) - - 93 AS col0, + COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL COALESCE ( + COUNT ( + ( + - 10 ) ), 68, - 71 ) + - ( 11 ) + MAX ( + 3 ) - - 93 AS col0, + COUNT ( * ) AS col2
----
86
1

query I rowsort
SELECT DISTINCT 46 * 73 AS col2
----
3358

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

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

query I rowsort
SELECT 75 + ( + 81 ) AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ( - NULLIF ( 41, 20 ) ) + - - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3336
SELECT ( - NULLIF ( 41, 20 ) ) + - - COUNT ( * ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3337
SELECT ALL + COALESCE ( 27, - 16 / + CAST( NULL AS DECIMAL ), - - 54 - + 0 * + 15 - - 27 ) + + CASE - COUNT( 61 ) WHEN - CAST( NULL AS SIGNED ) THEN - 58 WHEN - 72 THEN + 25 / - 72 WHEN - 66 + 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + COALESCE ( 27, - 16 / + CAST ( NULL AS REAL ), - - 54 - + 0 * + 15 - - 27 ) + + CASE - COUNT ( 61 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 58 WHEN - 72 THEN + 25 / - 72 WHEN - 66 + 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL COUNT( * ) + - - NULLIF ( + - 33, + 53 )
----
-32

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL COUNT ( * ) + - - NULLIF ( + - 33, + 53 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3339
SELECT - 74 AS col2, + CAST( + 57 AS SIGNED ) * + CAST( - + 64 AS SIGNED )
----
-74
-3648

skipif mysql # not compatible
query II rowsort label-3339
SELECT - 74 AS col2, + CAST ( + 57 AS INTEGER ) * + CAST ( - + 64 AS INTEGER )
----
-74
-3648

query I rowsort
SELECT 84 * - 78 AS col1
----
-6552

query I rowsort
SELECT 20 + + 9 + - 48 * - 31 AS col1
----
1517

query I rowsort
SELECT ALL - 46 + - 70 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT - 31 AS col0, 55 * + COUNT( * ) * - - 8 * - 42 AS col1
----
-31
-18480

skipif mysql # not compatible
query II rowsort label-3343
SELECT - 31 AS col0, 55 * + COUNT ( * ) * - - 8 * - 42 AS col1
----
-31
-18480

query II rowsort
SELECT ALL 32, - 22 AS col2
----
32
-22

query I rowsort
SELECT ALL 9 + + 73 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT 67 + + - 99 * - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 78 * 4 + + + 39 / + 11 * + 36 + - - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT 67 + + - 99 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 78 * 4 + + + 39 / + 11 * + 36 + - - 81 col0
----
NULL

query II rowsort
SELECT ALL 88 AS col1, 13
----
88
13

query I rowsort
SELECT ALL - ( + 73 ) + 55 * - + 32 * + 95 AS col0
----
-167273

query I rowsort
SELECT 10 * + + 81
----
810

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT DISTINCT 92, SUM( + - 74 ) AS col0
----
92
-74

skipif mysql # not compatible
query II rowsort label-3350
SELECT DISTINCT 92, SUM ( + - 74 ) AS col0
----
92
-74

query II rowsort
SELECT ALL 96 AS col1, + 10 AS col0
----
96
10

query I rowsort
SELECT ALL + + 95 * - + 33 AS col1
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + 85 - + COUNT( - 31 )
----
84

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 85 - + COUNT ( - 31 )
----
84

query I rowsort
SELECT DISTINCT - 40 * + 87 AS col2
----
-3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3355
SELECT COUNT( - + CAST( + 28 AS SIGNED ) ) + - COUNT( * ) + NULLIF ( - COALESCE ( - CAST( + 67 AS SIGNED ), COUNT( * ) - + 2, COUNT( DISTINCT - 38 ) * - 3 - 90, - COUNT( * ) * MAX( DISTINCT 3 DIV 73 ) + 12 ), - 65 )
----
67

skipif mysql # not compatible
query I rowsort label-3355
SELECT COUNT ( - + CAST ( + 28 AS INTEGER ) ) + - COUNT ( * ) + NULLIF ( - COALESCE ( - CAST ( + 67 AS INTEGER ), COUNT ( * ) - + 2, COUNT ( DISTINCT - 38 ) * - 3 - 90, - COUNT ( * ) * MAX ( DISTINCT 3 / 73 ) + 12 ), - 65 )
----
67

query I rowsort
SELECT - CASE + 33 WHEN 78 THEN + + ( + + 69 ) + 99 ELSE NULL END + + + ( 97 )
----
NULL

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

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

query I rowsort
SELECT ALL + 38 * + 13 AS col0
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3359
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * NULLIF ( - 65, 7 - - - 72 * - COUNT( * ) * - ( + 39 ) * - 97 * - CASE + CAST( NULL AS DECIMAL ) WHEN - - 68 THEN NULL ELSE + CASE 91 WHEN 56 THEN - 62 + 90 * 73 WHEN + 93 THEN SUM( - 45 ) - 26 * + NULLIF ( + 69 * 12, 99 + - 97 / + 88 ) WHEN ( ( - SUM( - CAST( - 96 AS SIGNED ) ) ) ) THEN NULL END END * 92 ) + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * NULLIF ( - 65, 7 - - - 72 * - COUNT ( * ) * - ( + 39 ) * - 97 * - CASE + CAST ( NULL AS REAL ) WHEN - - 68 THEN NULL ELSE + CASE 91 WHEN 56 THEN - 62 + 90 * 73 WHEN + 93 THEN SUM ( - 45 ) - 26 * + NULLIF ( + 69 * 12, 99 + - 97 / + 88 ) WHEN ( ( - SUM ( - CAST ( - 96 AS INTEGER ) ) ) ) THEN NULL END END * 92 ) + - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + - 53 - - COUNT( * ) * + 8 * CASE - 1 WHEN + 47 THEN NULL WHEN + 97 - - - 65 THEN + 29 ELSE NULL END * - ( + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + - 53 - - COUNT ( * ) * + 8 * CASE - 1 WHEN + 47 THEN NULL WHEN + 97 - - - 65 THEN + 29 ELSE NULL END * - ( + 24 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + NULLIF ( + 17, 40 + + + COUNT( * ) ) col0
----
17

skipif mysql # not compatible
query I rowsort label-3361
SELECT + NULLIF ( + 17, 40 + + + COUNT ( * ) ) col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 6 + + - 98 - ( COUNT( * ) ) - COUNT( * ) * - SUM( 21 ) ) * + 83 - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 6 + + - 98 - ( COUNT ( * ) ) - COUNT ( * ) * - SUM ( 21 ) ) * + 83 - + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT ALL - - COALESCE ( - COALESCE ( + 5, - + CASE - + COUNT( * ) WHEN + COUNT( * ) THEN + 47 * - COALESCE ( + 62, - - 38, 62 * 89 ) + 5 * 88 ELSE + CAST( NULL AS SIGNED ) + 89 DIV COALESCE ( 6, - 61 + 56 * + COUNT( * ) ) END + + 77 ), + 13 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - - COALESCE ( - COALESCE ( + 5, - + CASE - + COUNT ( * ) WHEN + COUNT ( * ) THEN + 47 * - COALESCE ( + 62, - - 38, 62 * 89 ) + 5 * 88 ELSE + CAST ( NULL AS INTEGER ) + 89 / COALESCE ( 6, - 61 + 56 * + COUNT ( * ) ) END + + 77 ), + 13 ) AS col1
----
-5

query I rowsort
SELECT + 1 * 83 * NULLIF ( - 63, 22 )
----
-5229

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3366
SELECT + + COUNT( * ), - 70 * - + 43 * + 24 + - + 32 AS col1
----
1
72208

skipif mysql # not compatible
query II rowsort label-3366
SELECT + + COUNT ( * ), - 70 * - + 43 * + 24 + - + 32 AS col1
----
1
72208

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3367
SELECT COUNT( * ) + + 14 + - 59 * 34 * - - ( + + 96 ) * + AVG ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT COUNT ( * ) + + 14 + - 59 * 34 * - - ( + + 96 ) * + AVG ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3368
SELECT + + CASE + + MAX( DISTINCT + 45 ) WHEN + - 45 * - 45 - + + 83 THEN NULL WHEN - 69 + - CAST( 81 AS SIGNED ) * + 87 + + 20 THEN 34 - - COALESCE ( 8, 82 * - CAST( NULL AS SIGNED ) + 20 * 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT + + CASE + + MAX ( DISTINCT + 45 ) WHEN + - 45 * - 45 - + + 83 THEN NULL WHEN - 69 + - CAST ( 81 AS INTEGER ) * + 87 + + 20 THEN 34 - - COALESCE ( 8, 82 * - CAST ( NULL AS INTEGER ) + 20 * 5 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - - COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - - COUNT ( * ) * 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL - COUNT( * ) * + 34 + + 31 + - 21
----
-24

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - COUNT ( * ) * + 34 + + 31 + - 21
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT 49 * 34 + MAX( 57 )
----
1723

skipif mysql # not compatible
query I rowsort label-3371
SELECT 49 * 34 + MAX ( 57 )
----
1723

query II rowsort
SELECT + 93 AS col0, + ( - 48 ) * 17
----
93
-816

query I rowsort
SELECT DISTINCT - 3 + + 90
----
87

query I rowsort
SELECT ALL 5 + + 11
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT AVG ( 36 ) * + + 79 + - COUNT( * ) * 48 + + CASE - 21 WHEN + 55 * + 4 - - 67 * + 32 THEN + 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT AVG ( 36 ) * + + 79 + - COUNT ( * ) * 48 + + CASE - 21 WHEN + 55 * + 4 - - 67 * + 32 THEN + 5 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 67 + + 36 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT ALL 98 + 89 DIV + COUNT( * )
----
187

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 98 + 89 / + COUNT ( * )
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + COUNT( DISTINCT 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT + COUNT ( DISTINCT 0 )
----
1

query I rowsort
SELECT ALL 69 + - - 19 * - - 57
----
1152

query I rowsort
SELECT + 97 * + 18 + ( + 25 ) * + + 94
----
4096

query I rowsort
SELECT 75 + 46 AS col0
----
121

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

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL COUNT ( * ) / 47 * + 20
----
0

query I rowsort
SELECT ALL 15 + - + 9 AS col0
----
6

query I rowsort
SELECT ( + 44 ) + 30 - + 91 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL COUNT( * ) - 5 + - 63 + + 8 + + 66 * - 12 * 42 * - 76 AS col0
----
2528005

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL COUNT ( * ) - 5 + - 63 + + 8 + + 66 * - 12 * 42 * - 76 AS col0
----
2528005

query I rowsort
SELECT + 14 * - 62
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT NULLIF ( ( 14 ), + COUNT( + 48 ) ) * + 21
----
294

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT NULLIF ( ( 14 ), + COUNT ( + 48 ) ) * + 21
----
294

query I rowsort
SELECT + 61 + - - 23 * 56 AS col1
----
1349

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

skipif mysql # not compatible
query I rowsort label-3389
SELECT - 53 - - CAST ( NULL AS INTEGER ) + - 8
----
NULL

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

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

query II rowsort
SELECT + - 98 + - 30 * - 76 * - 61 AS col2, 31
----
-139178
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - SUM( ( - + 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - SUM ( ( - + 30 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - - COUNT( * ) + - - NULLIF ( + - COUNT( ALL 58 ), COALESCE ( - COUNT( * ), + 44 ) / + 10 - + + COUNT( * ) * + 39 ) * + 56 + + ( NULLIF ( + - 25, + 78 * + COUNT( * ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3393
SELECT - - COUNT ( * ) + - - NULLIF ( + - COUNT ( ALL 58 ), COALESCE ( - COUNT ( * ), + 44 ) / + 10 - + + COUNT ( * ) * + 39 ) * + 56 + + ( NULLIF ( + - 25, + 78 * + COUNT ( * ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT + + ( - NULLIF ( 84, 76 ) ) AS col2, 54 * - COUNT( * ) AS col0
----
-84
-54

skipif mysql # not compatible
query II rowsort label-3394
SELECT + + ( - NULLIF ( 84, 76 ) ) AS col2, 54 * - COUNT ( * ) AS col0
----
-84
-54

query I rowsort
SELECT ALL + - 50 * - 25 - + - 19
----
1269

query I rowsort
SELECT - + 60 * + 17 * 28 + + 37 + - + 79 * - 44
----
-25047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3397
SELECT + + ( CASE 90 WHEN - 53 * + COUNT( * ) - + 73 + - 82 THEN + - 77 + - - NULLIF ( + - ( + + 53 ), - - ( - 55 ) + - - 98 ) * CAST( - 50 * 14 AS SIGNED ) ELSE 73 END ) DIV - 28 + + 80 * + 2
----
158

skipif mysql # not compatible
query I rowsort label-3397
SELECT + + ( CASE 90 WHEN - 53 * + COUNT ( * ) - + 73 + - 82 THEN + - 77 + - - NULLIF ( + - ( + + 53 ), - - ( - 55 ) + - - 98 ) * CAST ( - 50 * 14 AS INTEGER ) ELSE 73 END ) / - 28 + + 80 * + 2
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT - CAST( NULL AS SIGNED ) / 25 + CASE 34 WHEN - 77 + + + 9 * + ( + 34 ) THEN NULL WHEN + 72 * - - 77 * + ( - - 73 ) * - 52 / + + COUNT( * ) - 63 THEN 77 * 16 + 15 WHEN 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT - CAST ( NULL AS INTEGER ) / 25 + CASE 34 WHEN - 77 + + + 9 * + ( + 34 ) THEN NULL WHEN + 72 * - - 77 * + ( - - 73 ) * - 52 / + + COUNT ( * ) - 63 THEN 77 * 16 + 15 WHEN 75 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - - 66 * + + COUNT( + - 72 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3399
SELECT - - 66 * + + COUNT ( + - 72 ) AS col2
----
66

query I rowsort
SELECT - 96 + + + COALESCE ( - - 36, + 11 * + 20 * 10, - 22 )
----
-60

query I rowsort
SELECT - + 80 + + 39 - 45 * 39 col0
----
-1796

query I rowsort
SELECT + + 60 * 67 * 77 + + - ( - + 37 ) * - 54 + 59
----
307601

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3403
SELECT ALL CAST( NULL AS DECIMAL ) * + ( + 76 ) + + 96 * - CAST( NULL AS SIGNED ) + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL CAST ( NULL AS REAL ) * + ( + 76 ) + + 96 * - CAST ( NULL AS INTEGER ) + - + 40
----
NULL

query I rowsort
SELECT NULLIF ( - 44, + + 99 * - 97 * - 98 ) AS col0
----
-44

query II rowsort
SELECT 45 * 21 * + 17 + COALESCE ( + 23, + + 14 ), 82 AS col0
----
16088
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - CASE CASE 64 WHEN + + 37 + + SUM( DISTINCT - + 65 ) THEN + COUNT( * ) END WHEN CASE - 10 WHEN COUNT( * ) THEN 90 WHEN + 25 THEN NULL END / 18 THEN 58 WHEN + - SUM( 71 ) - MAX( 67 ) THEN NULL ELSE 29 END * - 22 AS col2
----
638

skipif mysql # not compatible
query I rowsort label-3406
SELECT - CASE CASE 64 WHEN + + 37 + + SUM ( DISTINCT - + 65 ) THEN + COUNT ( * ) END WHEN CASE - 10 WHEN COUNT ( * ) THEN 90 WHEN + 25 THEN NULL END / 18 THEN 58 WHEN + - SUM ( 71 ) - MAX ( 67 ) THEN NULL ELSE 29 END * - 22 AS col2
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT + COUNT( * ) * + COALESCE ( - 14, 19, - MIN( + 53 ) - + 86, - + 25 * 88 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( - 14, 19, - MIN ( + 53 ) - + 86, - + 25 * 88 ) col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT DISTINCT + 46 * 30 - + COUNT( * ) AS col2, 86
----
1379
86

skipif mysql # not compatible
query II rowsort label-3408
SELECT DISTINCT + 46 * 30 - + COUNT ( * ) AS col2, 86
----
1379
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3409
SELECT DISTINCT + 96 * - + COUNT( * ) - 82 + + 40 * 59, 74 - + + ( + + ( + 47 ) ) AS col0
----
2182
27

skipif mysql # not compatible
query II rowsort label-3409
SELECT DISTINCT + 96 * - + COUNT ( * ) - 82 + + 40 * 59, 74 - + + ( + + ( + 47 ) ) AS col0
----
2182
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3411
SELECT - CAST( + 72 AS SIGNED ) * + 55 AS col1, COUNT( * ) * 67 * + - CAST( - 76 AS SIGNED )
----
-3960
5092

skipif mysql # not compatible
query II rowsort label-3411
SELECT - CAST ( + 72 AS INTEGER ) * + 55 AS col1, COUNT ( * ) * 67 * + - CAST ( - 76 AS INTEGER )
----
-3960
5092

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT DISTINCT ( - 70 ) - + MIN( ALL + 74 ) * 21 AS col0, + 66 + + 35 + - - 67
----
-1624
168

skipif mysql # not compatible
query II rowsort label-3412
SELECT DISTINCT ( - 70 ) - + MIN ( ALL + 74 ) * 21 AS col0, + 66 + + 35 + - - 67
----
-1624
168

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

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

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

skipif mysql # not compatible
query II rowsort label-3414
SELECT - COUNT ( * ) AS col0, - 26
----
-1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + 51 + 29 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3415
SELECT + 51 + 29 + - COUNT ( * )
----
79

query II rowsort
SELECT DISTINCT - 23 AS col2, 6 AS col2
----
-23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + COUNT( * ) * 78 + 93 * 54
----
5100

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + COUNT ( * ) * 78 + 93 * 54
----
5100

query I rowsort
SELECT DISTINCT 38 * + 66
----
2508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT ( - CAST( - + 11 AS SIGNED ) ) + + 21 col0
----
32

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT ( - CAST ( - + 11 AS INTEGER ) ) + + 21 col0
----
32

query I rowsort
SELECT ALL 0 * - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL 14 + + 95 + - 68 * - - COUNT( * ) * - 62
----
4325

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL 14 + + 95 + - 68 * - - COUNT ( * ) * - 62
----
4325

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + CASE - 77 WHEN + 5 * - 41 THEN - 30 WHEN + + 98 THEN - COUNT( * ) WHEN + + AVG ( 37 ) THEN + 64 ELSE - - 76 END - - - ( 78 ) * SUM( ALL + 85 ) * + 10 - 14
----
-66238

skipif mysql # not compatible
query I rowsort label-3422
SELECT + CASE - 77 WHEN + 5 * - 41 THEN - 30 WHEN + + 98 THEN - COUNT ( * ) WHEN + + AVG ( 37 ) THEN + 64 ELSE - - 76 END - - - ( 78 ) * SUM ( ALL + 85 ) * + 10 - 14
----
-66238

query I rowsort
SELECT + 97 + - 64 AS col1
----
33

query II rowsort
SELECT + 5 AS col1, - 79 + + - 56 + - - 83 * + 62
----
5
5011

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT ALL + 70 DIV + + ( + COUNT( * ) ) + - + 94 + - 7 * + + 52 * - COUNT( * ) AS col0
----
340

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + 70 / + + ( + COUNT ( * ) ) + - + 94 + - 7 * + + 52 * - COUNT ( * ) AS col0
----
340

query II rowsort
SELECT + 29 * 81 * - 91, - 44 AS col1
----
-213759
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT DISTINCT + 56 DIV - 94 + - 35 col2
----
-35

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT + 56 / - 94 + - 35 col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT - ( + + COUNT( * ) ) / - + NULLIF ( 67, - + 42 / 9 + + - 56 + + + 13 + 78 * 19 * 89 ) * + COUNT( * ) + + CASE + 57 WHEN - - 72 THEN + ( ( + 56 ) ) ELSE COUNT( * ) + - CASE + 96 WHEN - 25 THEN - COUNT( * ) WHEN 5 * - COUNT( * ) THEN NULL WHEN + CAST( NULL AS SIGNED ) * - 51 + + ( 23 - 21 ) THEN CASE 42 WHEN 21 * COUNT( 83 / 73 ) THEN NULL ELSE + 34 END * + ( - 68 ) WHEN + 2 + + 8 THEN NULL ELSE NULL END END + - COALESCE ( + CAST( - ( 45 ) AS SIGNED ), + AVG ( 54 ) * 1 ) * + 86 * 35 + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - ( + + COUNT ( * ) ) / - + NULLIF ( 67, - + 42 / 9 + + - 56 + + + 13 + 78 * 19 * 89 ) * + COUNT ( * ) + + CASE + 57 WHEN - - 72 THEN + ( ( + 56 ) ) ELSE COUNT ( * ) + - CASE + 96 WHEN - 25 THEN - COUNT ( * ) WHEN 5 * - COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - 51 + + ( 23 - 21 ) THEN CASE 42 WHEN 21 * COUNT ( 83 / 73 ) THEN NULL ELSE + 34 END * + ( - 68 ) WHEN + 2 + + 8 THEN NULL ELSE NULL END END + - COALESCE ( + CAST ( - ( 45 ) AS INTEGER ), + AVG ( 54 ) * 1 ) * + 86 * 35 + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT ALL + ( COUNT( * ) ) * + 15 AS col2, 55 AS col0
----
15
55

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL + ( COUNT ( * ) ) * + 15 AS col2, 55 AS col0
----
15
55

query I rowsort
SELECT + + 84 * 92 - - 61 AS col1
----
7789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT CAST( - + 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3431
SELECT CAST ( - + 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3432
SELECT + 48 AS col0, - 4 + - 6 + - 27 / COUNT( * ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3432
SELECT + 48 AS col0, - 4 + - 6 + - 27 / COUNT ( * ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
48
NULL

query I rowsort
SELECT + 34 + 82 col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT - 40 * - + COALESCE ( + SUM( DISTINCT + 57 ), + 90 * 33 ) AS col1, + 92 * + + 85 AS col1
----
2280
7820

skipif mysql # not compatible
query II rowsort label-3434
SELECT - 40 * - + COALESCE ( + SUM ( DISTINCT + 57 ), + 90 * 33 ) AS col1, + 92 * + + 85 AS col1
----
2280
7820

query I rowsort
SELECT ALL - 22 * - 43 AS col1
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT CAST( + 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3436
SELECT CAST ( + 76 AS INTEGER ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT - 57 / + 77 / + CAST( NULL AS SIGNED ) * 42 * + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 57 / + 77 / + CAST ( NULL AS INTEGER ) * 42 * + + 94
----
NULL

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

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

query I rowsort
SELECT - 4 * + + 43 AS col1
----
-172

onlyif mysql # DIV for integer division: 
query II rowsort label-3440
SELECT - 21 DIV - 13, + 16 AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-3440
SELECT - 21 / - 13, + 16 AS col0
----
1
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT DISTINCT - 78 DIV ( 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - 78 / ( 60 )
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3443
SELECT ALL - ( + + 42 ) DIV - - MIN( ALL - 22 ) - - + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - ( + + 42 ) / - - MIN ( ALL - 22 ) - - + 67 AS col1
----
68

query I rowsort
SELECT 20 * - + 21
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT 26 DIV - + 90 * - 77 * + 3
----
0

skipif mysql # not compatible
query I rowsort label-3445
SELECT 26 / - + 90 * - 77 * + 3
----
0

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

query II rowsort
SELECT - 37, + 95 AS col0
----
-37
95

query I rowsort
SELECT ALL + 88 * + 80
----
7040

query I rowsort
SELECT ALL - + ( - - 83 ) * - - 90 * - - 17 col2
----
-126990

query I rowsort
SELECT DISTINCT + + 46 + + 4 AS col0
----
50

query I rowsort
SELECT 86 * - 61 * - + 19 + - - 69 * + + 35
----
102089

query I rowsort
SELECT DISTINCT - 59 + - 18 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT ALL + - 96 + - 78 + + 10 * - - 33 * - ( 65 ) AS col0, COALESCE ( - + COUNT( * ), - 16 ) * - 75 * + 22 AS col1
----
-21624
1650

skipif mysql # not compatible
query II rowsort label-3453
SELECT ALL + - 96 + - 78 + + 10 * - - 33 * - ( 65 ) AS col0, COALESCE ( - + COUNT ( * ), - 16 ) * - 75 * + 22 AS col1
----
-21624
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - + MIN( DISTINCT 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3454
SELECT - + MIN ( DISTINCT 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3455
SELECT + MAX( - COALESCE ( + - 84, - - 17 * - - CAST( NULL AS SIGNED ) * - + 59 / + 27 ) ), + MAX( - 51 ) AS col1
----
84
-51

skipif mysql # not compatible
query II rowsort label-3455
SELECT + MAX ( - COALESCE ( + - 84, - - 17 * - - CAST ( NULL AS INTEGER ) * - + 59 / + 27 ) ), + MAX ( - 51 ) AS col1
----
84
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT + 68 + + - COALESCE ( - + COUNT( * ), NULLIF ( NULLIF ( + 90, 91 ), - 32 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT + 68 + + - COALESCE ( - + COUNT ( * ), NULLIF ( NULLIF ( + 90, 91 ), - 32 ) ) AS col1
----
69

query I rowsort
SELECT + ( - 36 ) + + 69 + + - 78 - - - 47
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT - NULLIF ( 94, + - 51 * - 92 * 32 / + COUNT( * ) ), + MAX( ALL - 72 ) * - 6 * + - 82 + - 3 + + 79 + 94 * - 83 + - 14 col0
----
-94
-43164

skipif mysql # not compatible
query II rowsort label-3458
SELECT - NULLIF ( 94, + - 51 * - 92 * 32 / + COUNT ( * ) ), + MAX ( ALL - 72 ) * - 6 * + - 82 + - 3 + + 79 + 94 * - 83 + - 14 col0
----
-94
-43164

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + 60 + MIN( - + 15 )
----
45

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + 60 + MIN ( - + 15 )
----
45

query II rowsort
SELECT ALL 72, + 21 AS col1
----
72
21

query I rowsort
SELECT 4 + 73 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL SUM( ALL - 49 ) * + 36
----
-1764

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL SUM ( ALL - 49 ) * + 36
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT 35 * ( - 82 ) + + + 67 + COUNT( DISTINCT + 26 ) AS col2
----
-2802

skipif mysql # not compatible
query I rowsort label-3463
SELECT 35 * ( - 82 ) + + + 67 + COUNT ( DISTINCT + 26 ) AS col2
----
-2802

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT ALL - 83 + + 75 DIV - 78
----
-83

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - 83 + + 75 / - 78
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT - 66 * - + 79 * - COUNT( DISTINCT 39 ) AS col0
----
-5214

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - 66 * - + 79 * - COUNT ( DISTINCT 39 ) AS col0
----
-5214

query II rowsort
SELECT + 95 * 4 + - 44 + + + 26, ( - + 41 ) AS col0
----
362
-41

query I rowsort
SELECT DISTINCT 32 * + ( + 77 )
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3468
SELECT NULLIF ( - + COUNT( * ), - - COUNT( * ) * + COUNT( * ) * + 55 + - + 58 - - - 53 + - COALESCE ( - 80, - 48, 68 * - 86 + - MAX( 25 ) ) * - - CAST( NULL AS SIGNED ) + + 48 + 47 * ( 1 * - 9 ) ) + COUNT( * ) DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT NULLIF ( - + COUNT ( * ), - - COUNT ( * ) * + COUNT ( * ) * + 55 + - + 58 - - - 53 + - COALESCE ( - 80, - 48, 68 * - 86 + - MAX ( 25 ) ) * - - CAST ( NULL AS INTEGER ) + + 48 + 47 * ( 1 * - 9 ) ) + COUNT ( * ) / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 4 * + + 37 * + + 87
----
12876

query II rowsort
SELECT ALL - ( - 96 ) * - - 26 AS col0, - 2 AS col0
----
2496
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT - ( - 62 ) * - + CAST( COUNT( * ) AS SIGNED ) * + 49 + - 4 * + 71 col0
----
-3322

skipif mysql # not compatible
query I rowsort label-3471
SELECT - ( - 62 ) * - + CAST ( COUNT ( * ) AS INTEGER ) * + 49 + - 4 * + 71 col0
----
-3322

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT DISTINCT 39 DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT 39 / 63 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT 94 * + 49 / + CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3474
SELECT 29 * - 41, SUM( + 40 ) DIV - NULLIF ( 5, NULLIF ( 81, + + 12 + + 48 + + MAX( DISTINCT + + 90 ) * - 64 ) + NULLIF ( + 88, - 30 * - - 67 + 10 DIV 7 ) ) + 60 AS col0
----
-1189
52

skipif mysql # not compatible
query II rowsort label-3474
SELECT 29 * - 41, SUM ( + 40 ) / - NULLIF ( 5, NULLIF ( 81, + + 12 + + 48 + + MAX ( DISTINCT + + 90 ) * - 64 ) + NULLIF ( + 88, - 30 * - - 67 + 10 / 7 ) ) + 60 AS col0
----
-1189
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT 35 + - MIN( + 37 ) + 28 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3475
SELECT 35 + - MIN ( + 37 ) + 28 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT DISTINCT 73 * - CAST( - - 73 AS SIGNED ) AS col1
----
-5329

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT 73 * - CAST ( - - 73 AS INTEGER ) AS col1
----
-5329

query I rowsort
SELECT DISTINCT - ( + 8 ) * 52
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT COUNT( * ) * MAX( + 89 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-3478
SELECT COUNT ( * ) * MAX ( + 89 ) col1
----
89

query I rowsort
SELECT ALL - 29 + - - 12 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL + MIN( - + COALESCE ( + - 62, 71, - 50 ) )
----
62

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + MIN ( - + COALESCE ( + - 62, 71, - 50 ) )
----
62

query I rowsort
SELECT - ( - CASE 16 WHEN + 63 THEN NULL WHEN 80 THEN NULL ELSE + 21 * + COALESCE ( + 45, - 88 ) - + + 98 END )
----
847

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3482
SELECT 70 * - + CAST( + + 6 AS SIGNED ) + + - 62 * 9, 89 AS col1
----
-978
89

skipif mysql # not compatible
query II rowsort label-3482
SELECT 70 * - + CAST ( + + 6 AS INTEGER ) + + - 62 * 9, 89 AS col1
----
-978
89

query I rowsort
SELECT ALL - 30 + - 88 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT + 38 - + 69, + 58 + - SUM( ALL - - 70 ) * 16 AS col0
----
-31
-1062

skipif mysql # not compatible
query II rowsort label-3484
SELECT + 38 - + 69, + 58 + - SUM ( ALL - - 70 ) * 16 AS col0
----
-31
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT CASE - 75 WHEN 76 * + 47 THEN + + CAST( NULL AS SIGNED ) WHEN 8 - + + 45 + - + 75 * + - COUNT( * ) * - + 69 + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT CASE - 75 WHEN 76 * + 47 THEN + + CAST ( NULL AS INTEGER ) WHEN 8 - + + 45 + - + 75 * + - COUNT ( * ) * - + 69 + 21 THEN NULL END
----
NULL

query I rowsort
SELECT 49 * + NULLIF ( + COALESCE ( + - 77, + 90 ), + 63 + 32 ) + 91 + - 73 * - - 43 - ( + 11 )
----
-6832

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + 89 + - SUM( - 50 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + 89 + - SUM ( - 50 ) AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT - 31 * - 13 - + COUNT( * )
----
402

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - 31 * - 13 - + COUNT ( * )
----
402

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT + 11 + - 85 * - + NULLIF ( 61, - 5 / - 63 + - - 72 ) AS col1, 6 + COUNT( * ) AS col2
----
5196
7

skipif mysql # not compatible
query II rowsort label-3489
SELECT + 11 + - 85 * - + NULLIF ( 61, - 5 / - 63 + - - 72 ) AS col1, 6 + COUNT ( * ) AS col2
----
5196
7

query I rowsort
SELECT ALL + COALESCE ( 55, NULLIF ( - 86, 41 + - 6 ) ) + + 16
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT + CASE + 56 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN 15 * + - 25 THEN 22 * - 6 - + - ( 7 ) + - CAST( NULL AS SIGNED ) + - 2 END * 9 * - - 53 - + + 22 + - 60 * + + 7 + - CASE + 15 WHEN + 53 + - 97 THEN - 11 WHEN + 87 THEN 97 / - 96 END / 53 * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT + CASE + 56 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 15 * + - 25 THEN 22 * - 6 - + - ( 7 ) + - CAST ( NULL AS INTEGER ) + - 2 END * 9 * - - 53 - + + 22 + - 60 * + + 7 + - CASE + 15 WHEN + 53 + - 97 THEN - 11 WHEN + 87 THEN 97 / - 96 END / 53 * 38 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT + 38 * + 75 + - CASE + 2 WHEN + 65 + + 32 THEN - 79 WHEN + 92 THEN 70 * - + 75 DIV - COUNT( * ) + + 36 + - 55 + 98 DIV - 75 * + + 36 ELSE 54 END AS col2
----
2796

skipif mysql # not compatible
query I rowsort label-3492
SELECT + 38 * + 75 + - CASE + 2 WHEN + 65 + + 32 THEN - 79 WHEN + 92 THEN 70 * - + 75 / - COUNT ( * ) + + 36 + - 55 + 98 / - 75 * + + 36 ELSE 54 END AS col2
----
2796

query I rowsort
SELECT - ( + 71 ) + + 20
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT ALL 40 DIV - - ( + 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL 40 / - - ( + 62 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT ALL + 64 * - CAST( 35 AS SIGNED ) - 47
----
-2287

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + 64 * - CAST ( 35 AS INTEGER ) - 47
----
-2287

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT SUM( DISTINCT 35 ) * CASE - 66 WHEN + 99 THEN + 74 END + - 37 - 52 + - - 38 * - 73 + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT SUM ( DISTINCT 35 ) * CASE - 66 WHEN + 99 THEN + 74 END + - 37 - 52 + - - 38 * - 73 + 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT + 5 DIV 38 * + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + 5 / 38 * + 43 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT + 81 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 81 / 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL + 87 DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 87 / + 29
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3500
SELECT CAST( - - 83 AS SIGNED ) * 89 * + SUM( DISTINCT 88 ) - 97 DIV - + 11 AS col1
----
650064

skipif mysql # not compatible
query I rowsort label-3500
SELECT CAST ( - - 83 AS INTEGER ) * 89 * + SUM ( DISTINCT 88 ) - 97 / - + 11 AS col1
----
650064

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

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

query I rowsort
SELECT - 62 * + 16
----
-992

query I rowsort
SELECT + CASE + 65 WHEN - 59 + - 31 THEN NULL WHEN + 23 THEN + 7 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL 33 * + + CAST( - ( - 77 ) AS SIGNED ) * + - 35 * - 19
----
1689765

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 33 * + + CAST ( - ( - 77 ) AS INTEGER ) * + - 35 * - 19
----
1689765

query II rowsort
SELECT ALL - 4 * + + 50 + - 70, 44 AS col2
----
-270
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT + MIN( - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + MIN ( - 98 ) AS col2
----
-98

query I rowsort
SELECT DISTINCT + 60 * - - 72 + + 78 + - 73 * 66 AS col2
----
-420

query II rowsort
SELECT DISTINCT + 6, + 98 col1
----
6
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( - + NULLIF ( 11, 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( - + NULLIF ( 11, 83 ) )
----
1

query I rowsort
SELECT ALL + 27 * 60 + - 95
----
1525

query I rowsort
SELECT + 61 * + 12 * + 8
----
5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT - 8 * - 15 - + + ( - 35 ) + + + 28 + 68 * - - 22 * - 36 + - 50 + CASE + - CAST( - - 91 AS SIGNED ) WHEN 25 THEN NULL ELSE - COUNT( * ) - - - 61 * + MAX( ALL - 78 ) END * + 44 col1
----
155585

skipif mysql # not compatible
query I rowsort label-3512
SELECT - 8 * - 15 - + + ( - 35 ) + + + 28 + 68 * - - 22 * - 36 + - 50 + CASE + - CAST ( - - 91 AS INTEGER ) WHEN 25 THEN NULL ELSE - COUNT ( * ) - - - 61 * + MAX ( ALL - 78 ) END * + 44 col1
----
155585

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT DISTINCT 62 * - COUNT( DISTINCT + 35 ) AS col0, 67
----
-62
67

skipif mysql # not compatible
query II rowsort label-3514
SELECT DISTINCT 62 * - COUNT ( DISTINCT + 35 ) AS col0, 67
----
-62
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3515
SELECT ALL - + 5 * 57 + - 92 * - - 35 + 45 + 19 * + 61 * 1 + + + 13 + - - 45 - + 80 + + 74 * - 78 - - 66 * + 77 * - COALESCE ( + 70, + - 76 + - 76 DIV CAST( NULLIF ( + 98, 65 ) + + 35 AS SIGNED ), + 14 ) + + 40 * 24 col2
----
-362875

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - + 5 * 57 + - 92 * - - 35 + 45 + 19 * + 61 * 1 + + + 13 + - - 45 - + 80 + + 74 * - 78 - - 66 * + 77 * - COALESCE ( + 70, + - 76 + - 76 / CAST ( NULLIF ( + 98, 65 ) + + 35 AS INTEGER ), + 14 ) + + 40 * 24 col2
----
-362875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT 79 * - 85 DIV COUNT( * ) + + + 23 DIV 72
----
-6715

skipif mysql # not compatible
query I rowsort label-3516
SELECT 79 * - 85 / COUNT ( * ) + + + 23 / 72
----
-6715

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

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

query I rowsort
SELECT ALL 89 + + + 6
----
95

query I rowsort
SELECT DISTINCT - 82 * + 17
----
-1394

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + 58 - + - ( - 88 ) + + COUNT( * ) + + 53 - - SUM( 76 ) * COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + 58 - + - ( - 88 ) + + COUNT ( * ) + + 53 - - SUM ( 76 ) * COUNT ( * )
----
100

query I rowsort
SELECT - - 88 + + 88 AS col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT + - 77 DIV - 2 + - COUNT( * ) + - 67 + + 2 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3524
SELECT + - 77 / - 2 + - COUNT ( * ) + - 67 + + 2 AS col1
----
-28

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

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

query III rowsort
SELECT + ( 8 ) * + 24 AS col0, - 62 col2, 42
----
192
-62
42

query I rowsort
SELECT - 35 * - - 77 AS col2
----
-2695

query I rowsort
SELECT - - 36 * + 97
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - 91 * + + ( - + ( + CASE 31 WHEN - 27 * - 5 - + 70 THEN 97 * - 75 / CASE - 77 WHEN + ( - 44 ) THEN + 98 WHEN 54 / + COUNT( * ) THEN - 72 END - COUNT( * ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 91 * + + ( - + ( + CASE 31 WHEN - 27 * - 5 - + 70 THEN 97 * - 75 / CASE - 77 WHEN + ( - 44 ) THEN + 98 WHEN 54 / + COUNT ( * ) THEN - 72 END - COUNT ( * ) END ) )
----
NULL

query I rowsort
SELECT - 22 + 89 * 98 * + - 80 - - 13 AS col1
----
-697769

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT - 18 * NULLIF ( - + 17, - ( + + SUM( - NULLIF ( - 21, - NULLIF ( - 51, - - 55 ) ) ) ) - - 50 )
----
306

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - 18 * NULLIF ( - + 17, - ( + + SUM ( - NULLIF ( - 21, - NULLIF ( - 51, - - 55 ) ) ) ) - - 50 )
----
306

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT CAST( CASE 43 WHEN - + 46 * - 54 * - 55 / - - CASE + 97 WHEN - - 99 THEN - + 47 * - + COUNT( * ) - 2 - + 89 + 55 * - COUNT( * ) WHEN 89 THEN NULL END THEN NULL ELSE + COUNT( + 58 ) END AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT CAST ( CASE 43 WHEN - + 46 * - 54 * - 55 / - - CASE + 97 WHEN - - 99 THEN - + 47 * - + COUNT ( * ) - 2 - + 89 + 55 * - COUNT ( * ) WHEN 89 THEN NULL END THEN NULL ELSE + COUNT ( + 58 ) END AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + COUNT( * ) * - 15 * - 23
----
345

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + COUNT ( * ) * - 15 * - 23
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT COALESCE ( 7, + - MIN( DISTINCT + 4 ), + + 8 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT COALESCE ( 7, + - MIN ( DISTINCT + 4 ), + + 8 ) col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3536
SELECT - 39 DIV + 99 * + COUNT( * ) + - NULLIF ( + 71, + 71 * - COUNT( * ) - + 20 + 35 + - + 34 ) * - 55
----
3905

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 39 / + 99 * + COUNT ( * ) + - NULLIF ( + 71, + 71 * - COUNT ( * ) - + 20 + 35 + - + 34 ) * - 55
----
3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3537
SELECT 38 DIV + 61 * MIN( - 37 ) DIV 46 + CAST( - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-3537
SELECT 38 / + 61 * MIN ( - 37 ) / 46 + CAST ( - 57 AS INTEGER )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3538
SELECT ALL - 49 DIV + - 83 + 16 + + SUM( 57 ) * + - CAST( - + 79 AS SIGNED ) * - 81 * + 84
----
-30638396

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - 49 / + - 83 + 16 + + SUM ( 57 ) * + - CAST ( - + 79 AS INTEGER ) * - 81 * + 84
----
-30638396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3539
SELECT - 32 + CASE 46 WHEN 60 + + SUM( + 94 ) THEN NULL WHEN - 22 THEN NULL WHEN 88 THEN 68 * - - 77 + + 44 + - 64 + - MAX( - 6 ) * - CAST( - + 99 AS SIGNED ) * + 42 * ( - SUM( ALL 32 ) ) * + ( + 22 * 76 ) + - 80 / CAST( NULL AS DECIMAL ) + - COALESCE ( - 50, NULLIF ( 94, - 89 + - 96 ) ) ELSE NULL END * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 32 + CASE 46 WHEN 60 + + SUM ( + 94 ) THEN NULL WHEN - 22 THEN NULL WHEN 88 THEN 68 * - - 77 + + 44 + - 64 + - MAX ( - 6 ) * - CAST ( - + 99 AS INTEGER ) * + 42 * ( - SUM ( ALL 32 ) ) * + ( + 22 * 76 ) + - 80 / CAST ( NULL AS REAL ) + - COALESCE ( - 50, NULLIF ( 94, - 89 + - 96 ) ) ELSE NULL END * + 4
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT ALL 76 DIV 79 * + MIN( ALL 3 ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 76 / 79 * + MIN ( ALL 3 ) + - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT - 9 + 40 DIV + 94 * 53 * - - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 9 + 40 / + 94 * 53 * - - COUNT ( * ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT ALL - 33 DIV - + 16 + - - 79 * + CASE 3 WHEN - + 95 + + - ( - 87 ) THEN NULL ELSE - - 38 + + 88 + - - ( - + 27 ) + - 58 * 86 * + 81 END AS col2
----
-31910389

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - 33 / - + 16 + - - 79 * + CASE 3 WHEN - + 95 + + - ( - 87 ) THEN NULL ELSE - - 38 + + 88 + - - ( - + 27 ) + - 58 * 86 * + 81 END AS col2
----
-31910389

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT COUNT( * ) * + COUNT( * ) * + 71 * + + 4 + - + 53
----
231

skipif mysql # not compatible
query I rowsort label-3544
SELECT COUNT ( * ) * + COUNT ( * ) * + 71 * + + 4 + - + 53
----
231

query I rowsort
SELECT - 73 * - + 97
----
7081

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL - 84 * + + 96 + CAST( NULL AS SIGNED ) + 88 * + 28 - + - COUNT( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL - 84 * + + 96 + CAST ( NULL AS INTEGER ) + 88 * + 28 - + - COUNT ( + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - 49 * COALESCE ( - COUNT( * ), 36 * - + 15, - - 63 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 49 * COALESCE ( - COUNT ( * ), 36 * - + 15, - - 63 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + 90 + - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3549
SELECT + 90 + - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL + 32 * + + COUNT( * ) + - + 50 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + 32 * + + COUNT ( * ) + - + 50 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3551
SELECT DISTINCT + CAST( 54 AS SIGNED ) AS col0, 95
----
54
95

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT + CAST ( 54 AS INTEGER ) AS col0, 95
----
54
95

query I rowsort
SELECT ALL + 53 * + 89 * 86
----
405662

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + - COUNT( * ) * + + 27 + 94 col0
----
67

skipif mysql # not compatible
query I rowsort label-3553
SELECT + - COUNT ( * ) * + + 27 + 94 col0
----
67

query I rowsort
SELECT DISTINCT 51 * - + CASE 9 WHEN - 42 THEN 98 END - - 33
----
NULL

query I rowsort
SELECT ALL 23 * + + ( - 25 ) col0
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + 36 - - MAX( - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT + 36 - - MAX ( - 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL MAX( + - 21 ) * + 87
----
-1827

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL MAX ( + - 21 ) * + 87
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT + + COUNT( * ) * + 27 AS col0, + ( - 69 ) col2
----
27
-69

skipif mysql # not compatible
query II rowsort label-3558
SELECT + + COUNT ( * ) * + 27 AS col0, + ( - 69 ) col2
----
27
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT - COALESCE ( 15, + 98 DIV + 59, + + ( - - 25 ) + + CAST( NULL AS SIGNED ) ) * 61 AS col2
----
-915

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - COALESCE ( 15, + 98 / + 59, + + ( - - 25 ) + + CAST ( NULL AS INTEGER ) ) * 61 AS col2
----
-915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT ( + COALESCE ( + 9, - ( 67 ), - 28 * + - CASE - 66 WHEN + 77 + + - 93 + + + 84 THEN COUNT( * ) * - + 0 END ) ) DIV - + 59 * 52 + + 32 * - 10
----
-320

skipif mysql # not compatible
query I rowsort label-3560
SELECT ( + COALESCE ( + 9, - ( 67 ), - 28 * + - CASE - 66 WHEN + 77 + + - 93 + + + 84 THEN COUNT ( * ) * - + 0 END ) ) / - + 59 * 52 + + 32 * - 10
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3561
SELECT COALESCE ( - 7, - - COUNT( * ) * - COUNT( * ), + + 90 * 74 * + CASE + - 91 WHEN 10 THEN - 79 - + + CAST( NULL AS SIGNED ) * + 43 END + 78 ) + - 77 DIV - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3561
SELECT COALESCE ( - 7, - - COUNT ( * ) * - COUNT ( * ), + + 90 * 74 * + CASE + - 91 WHEN 10 THEN - 79 - + + CAST ( NULL AS INTEGER ) * + 43 END + 78 ) + - 77 / - + COUNT ( * )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT 20 DIV + - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3562
SELECT 20 / + - 35 AS col2
----
0

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

query II rowsort
SELECT ALL 55 col1, + 90
----
55
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3565
SELECT 82 AS col1, - CASE - MIN( DISTINCT - + 36 ) WHEN AVG ( - 4 ) THEN NULL ELSE + + COUNT( * ) * - + 7 + ( - CAST( - COUNT( * ) AS SIGNED ) ) * 54 END AS col2
----
82
-47

skipif mysql # not compatible
query II rowsort label-3565
SELECT 82 AS col1, - CASE - MIN ( DISTINCT - + 36 ) WHEN AVG ( - 4 ) THEN NULL ELSE + + COUNT ( * ) * - + 7 + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * 54 END AS col2
----
82
-47

query I rowsort
SELECT 3 + 75
----
78

query I rowsort
SELECT 45 + + + 6
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT - COUNT( * ) + - 28 * + 3 + + NULLIF ( + + 24, - CAST( - COUNT( * ) AS SIGNED ) * - - 89 )
----
-61

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - COUNT ( * ) + - 28 * + 3 + + NULLIF ( + + 24, - CAST ( - COUNT ( * ) AS INTEGER ) * - - 89 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3569
SELECT ALL 64 AS col1, + CAST( - 9 AS SIGNED ) AS col0
----
64
-9

skipif mysql # not compatible
query II rowsort label-3569
SELECT ALL 64 AS col1, + CAST ( - 9 AS INTEGER ) AS col0
----
64
-9

query II rowsort
SELECT DISTINCT - ( 79 ) + + 48 AS col1, + 9 AS col2
----
-31
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT DISTINCT 80 + - 27 + 41 col1, + 29 / - + 10 * - CASE - + COUNT( * ) WHEN + + 83 * + 15 THEN + NULLIF ( - 57, 24 / + + 41 ) + - 30 + - - 77 WHEN 1 THEN NULL ELSE NULL END * - 59 - + MIN( DISTINCT + 64 ) * - AVG ( 10 ) AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-3571
SELECT DISTINCT 80 + - 27 + 41 col1, + 29 / - + 10 * - CASE - + COUNT ( * ) WHEN + + 83 * + 15 THEN + NULLIF ( - 57, 24 / + + 41 ) + - 30 + - - 77 WHEN 1 THEN NULL ELSE NULL END * - 59 - + MIN ( DISTINCT + 64 ) * - AVG ( 10 ) AS col0
----
94
NULL

query II rowsort
SELECT + 20, + 76 * - - 35 * - 45 col0
----
20
-119700

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT ALL - 97 + 25 + + CASE - 59 WHEN SUM( DISTINCT + 76 ) + + 60 + - - COUNT( * ) * - + 61 THEN 52 ELSE NULL END / + + 62 - - - 24 + - 78, - COALESCE ( + 24, COUNT( * ) ) - - 98 AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3573
SELECT ALL - 97 + 25 + + CASE - 59 WHEN SUM ( DISTINCT + 76 ) + + 60 + - - COUNT ( * ) * - + 61 THEN 52 ELSE NULL END / + + 62 - - - 24 + - 78, - COALESCE ( + 24, COUNT ( * ) ) - - 98 AS col0
----
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3574
SELECT 38 + + CAST( + 26 AS SIGNED ), 16 AS col0
----
64
16

skipif mysql # not compatible
query II rowsort label-3574
SELECT 38 + + CAST ( + 26 AS INTEGER ), 16 AS col0
----
64
16

query I rowsort
SELECT 45 * + - 91
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + 25 + 58 - - - 80 - COUNT( * ) + - 90 * - - 28
----
-2518

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + 25 + 58 - - - 80 - COUNT ( * ) + - 90 * - - 28
----
-2518

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL - ( - 94 ) + + 83 DIV - 14 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - ( - 94 ) + + 83 / - 14 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL - ( - - ( SUM( 16 ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - ( - - ( SUM ( 16 ) ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3579
SELECT MIN( DISTINCT 32 ) * 32 AS col0, CAST( NULL AS SIGNED ) * - ( + + 79 )
----
1024
NULL

skipif mysql # not compatible
query II rowsort label-3579
SELECT MIN ( DISTINCT 32 ) * 32 AS col0, CAST ( NULL AS INTEGER ) * - ( + + 79 )
----
1024
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT - ( - - NULLIF ( - 83, + ( - - ( + 4 ) ) * - COUNT( * ) + 76 ) )
----
83

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - ( - - NULLIF ( - 83, + ( - - ( + 4 ) ) * - COUNT ( * ) + 76 ) )
----
83

query I rowsort
SELECT ALL - 51 - - 74 AS col2
----
23

query I rowsort
SELECT DISTINCT - + 95 - ( + - 9 ) * + 84
----
661

query I rowsort
SELECT DISTINCT - 60 * 47 - - 96 * + 23 - - 25 AS col0
----
-587

query I rowsort
SELECT ALL + 91 - - 1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3585
SELECT ALL - - 82 DIV COUNT( * ) * 44 AS col2, + CAST( + 91 AS SIGNED ) AS col0
----
3608
91

skipif mysql # not compatible
query II rowsort label-3585
SELECT ALL - - 82 / COUNT ( * ) * 44 AS col2, + CAST ( + 91 AS INTEGER ) AS col0
----
3608
91

query I rowsort
SELECT DISTINCT + 69 * + ( - + 13 ) * + 76 col0
----
-68172

query I rowsort
SELECT 55 * - 99 * - + 39 AS col2
----
212355

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT DISTINCT - CASE + 95 WHEN - 75 * + MAX( ALL - 37 ) - + COUNT( + 13 ) THEN - 73 ELSE - COUNT( * ) * 52 END * - COUNT( * ) + COUNT( * ) + + 77 col1, - 61 AS col2
----
26
-61

skipif mysql # not compatible
query II rowsort label-3588
SELECT DISTINCT - CASE + 95 WHEN - 75 * + MAX ( ALL - 37 ) - + COUNT ( + 13 ) THEN - 73 ELSE - COUNT ( * ) * 52 END * - COUNT ( * ) + COUNT ( * ) + + 77 col1, - 61 AS col2
----
26
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + - 77 * + + ( + 70 ) + + 53 + CASE - 4 WHEN - 78 THEN - COUNT( * ) ELSE + CASE AVG ( + 23 ) WHEN - - 55 + + + 18 + - COALESCE ( 34, - 29 ) THEN NULL WHEN - 69 * NULLIF ( - 21, + COUNT( * ) ) + 60 THEN NULL ELSE 71 END END
----
-5266

skipif mysql # not compatible
query I rowsort label-3589
SELECT + - 77 * + + ( + 70 ) + + 53 + CASE - 4 WHEN - 78 THEN - COUNT ( * ) ELSE + CASE AVG ( + 23 ) WHEN - - 55 + + + 18 + - COALESCE ( 34, - 29 ) THEN NULL WHEN - 69 * NULLIF ( - 21, + COUNT ( * ) ) + 60 THEN NULL ELSE 71 END END
----
-5266

query I rowsort
SELECT + 90 * - 80 * - 24
----
172800

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COUNT( * ) * + 63 * ( + + 53 ) - + 1
----
3338

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) * + 63 * ( + + 53 ) - + 1
----
3338

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT + COUNT( * ) + - NULLIF ( + 43, + 9 + - 91 ) DIV 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( * ) + - NULLIF ( + 43, + 9 + - 91 ) / 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT ALL 81, 97 * - COUNT( * ) * - 86 * + + 10 AS col1
----
81
83420

skipif mysql # not compatible
query II rowsort label-3594
SELECT ALL 81, 97 * - COUNT ( * ) * - 86 * + + 10 AS col1
----
81
83420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT - CAST( - 2 AS SIGNED ) * + 40 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3595
SELECT - CAST ( - 2 AS INTEGER ) * + 40 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT 96 + + + COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-3596
SELECT 96 + + + COUNT ( * ) col1
----
97

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

query I rowsort
SELECT 73 + + 60 AS col0
----
133

query I rowsort
SELECT DISTINCT NULLIF ( - + COALESCE ( - 23, - 52 ), 0 * 46 + 2 * + 15 - - 80 + 23 * ( - + 62 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT CASE 45 WHEN - + ( + 93 ) THEN + NULLIF ( + 97, - 51 - COUNT( * ) ) + MIN( ALL 22 ) * COUNT( * ) ELSE - - 3 * - + COUNT( * ) - - - 90 END col2
----
-93

skipif mysql # not compatible
query I rowsort label-3600
SELECT CASE 45 WHEN - + ( + 93 ) THEN + NULLIF ( + 97, - 51 - COUNT ( * ) ) + MIN ( ALL 22 ) * COUNT ( * ) ELSE - - 3 * - + COUNT ( * ) - - - 90 END col2
----
-93

query I rowsort
SELECT ALL 81 + + ( + 64 ) col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL COALESCE ( - MAX( - + 24 ), + 65, - 58 ) + - + 41 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL COALESCE ( - MAX ( - + 24 ), + 65, - 58 ) + - + 41 AS col2
----
-17

query II rowsort
SELECT 54 AS col2, + 41 col0
----
54
41

query II rowsort
SELECT ALL 53 AS col2, - ( + - 64 )
----
53
64

query II rowsort
SELECT - 54, + 14 * + 51 col1
----
-54
714

query I rowsort
SELECT 48 + - 88 + + + 31 + + - 78 AS col0
----
-87

query I rowsort
SELECT ALL 10 * - 92
----
-920

query II rowsort
SELECT DISTINCT 59 col1, 91 * + 14
----
59
1274

query I rowsort
SELECT ALL 27 + + + 32
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT NULLIF ( 7, + 58 - 72 + - 60 / CAST( NULL AS SIGNED ) ) + + 7 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3610
SELECT NULLIF ( 7, + 58 - 72 + - 60 / CAST ( NULL AS INTEGER ) ) + + 7 AS col0
----
14

query II rowsort
SELECT 38 * + 15 AS col1, - 67 + + 44 * - 46 + - 72
----
570
-2163

query I rowsort
SELECT ALL 74 * 4
----
296

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

query II rowsort
SELECT ALL 76 AS col2, 52
----
76
52

query I rowsort
SELECT 28 * 9 * + 81 AS col0
----
20412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3616
SELECT 64 * CASE + + 79 WHEN MAX( - 34 ) * - + 50 + + + COUNT( * ) * 1 THEN NULL ELSE NULLIF ( 51, - 5 ) * + 24 + + 92 - - 59 END DIV - 37 AS col2
----
-2378

skipif mysql # not compatible
query I rowsort label-3616
SELECT 64 * CASE + + 79 WHEN MAX ( - 34 ) * - + 50 + + + COUNT ( * ) * 1 THEN NULL ELSE NULLIF ( 51, - 5 ) * + 24 + + 92 - - 59 END / - 37 AS col2
----
-2378

query I rowsort
SELECT 66 * - 63 + + 37 AS col2
----
-4121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT 70 - - + CAST( - 92 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3618
SELECT 70 - - + CAST ( - 92 AS INTEGER ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT ALL - COUNT( * ), - 27 AS col2
----
-1
-27

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL - COUNT ( * ), - 27 AS col2
----
-1
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3620
SELECT - 92 DIV - - 88 + + 58 + - 29 + + CAST( + 80 AS SIGNED ), + CAST( + 17 AS SIGNED ) col0
----
108
17

skipif mysql # not compatible
query II rowsort label-3620
SELECT - 92 / - - 88 + + 58 + - 29 + + CAST ( + 80 AS INTEGER ), + CAST ( + 17 AS INTEGER ) col0
----
108
17

query I rowsort
SELECT + 5 * + + 49 + + ( - + 62 )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT + COUNT( * ) * + 15 - + + 28 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + COUNT ( * ) * + 15 - + + 28 AS col2
----
-13

query I rowsort
SELECT ALL + - 22 * + 10
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT - NULLIF ( + 29, + 43 DIV - COALESCE ( 11, + 43 ) + - 46 - + - 32 ) + 65 - + - 25 + - - 4 * - + COALESCE ( - 94, 24 * + 69 * 21 DIV + - 4 - + + NULLIF ( - 70, COUNT( * ) ) - - 74, - 59 ) * + 80 AS col0
----
30141

skipif mysql # not compatible
query I rowsort label-3624
SELECT - NULLIF ( + 29, + 43 / - COALESCE ( 11, + 43 ) + - 46 - + - 32 ) + 65 - + - 25 + - - 4 * - + COALESCE ( - 94, 24 * + 69 * 21 / + - 4 - + + NULLIF ( - 70, COUNT ( * ) ) - - 74, - 59 ) * + 80 AS col0
----
30141

query I rowsort
SELECT DISTINCT - 14 * - 81 col0
----
1134

query I rowsort
SELECT DISTINCT - 3 * - 91 * - + 1 - CASE - NULLIF ( - - 67, - - 20 ) WHEN + 81 THEN NULL WHEN + + 38 THEN - 90 - - - 9 ELSE 7 + - ( + 22 ) * + 46 END AS col2
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT - CAST( + 59 AS SIGNED ) * - 86
----
5074

skipif mysql # not compatible
query I rowsort label-3627
SELECT - CAST ( + 59 AS INTEGER ) * - 86
----
5074

query II rowsort
SELECT COALESCE ( - + 42, - + 67 * - - 34 - + 55 ) + 13, 66 + 51 AS col0
----
-29
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL - MAX( ALL 78 ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - MAX ( ALL 78 ) * 0 AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 57, 95 ) col0
----
-57

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

skipif mysql # not compatible
query I rowsort label-3631
SELECT - COALESCE ( + COUNT ( * ), 67 ) AS col2
----
-1

query I rowsort
SELECT + 88 + - 98 AS col1
----
-10

query I rowsort
SELECT 19 * - 77 AS col0
----
-1463

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT 62 + 12, + NULLIF ( + ( - ( + NULLIF ( + COUNT( * ), 25 ) ) ), - 55 ) + - 0 AS col2
----
74
-1

skipif mysql # not compatible
query II rowsort label-3634
SELECT 62 + 12, + NULLIF ( + ( - ( + NULLIF ( + COUNT ( * ), 25 ) ) ), - 55 ) + - 0 AS col2
----
74
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT 49 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT 49 / - 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3636
SELECT - 98 AS col1, - 98 - CAST( + 34 AS SIGNED ) + - + 69 * 51
----
-98
-3651

skipif mysql # not compatible
query II rowsort label-3636
SELECT - 98 AS col1, - 98 - CAST ( + 34 AS INTEGER ) + - + 69 * 51
----
-98
-3651

query I rowsort
SELECT ALL - - 29 * - 86
----
-2494

query II rowsort
SELECT - + 75, - ( + 30 ) AS col1
----
-75
-30

query II rowsort
SELECT - - 18 AS col1, + 25
----
18
25

query I rowsort
SELECT - 22 - 17 * + 26 AS col2
----
-464

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 85 + - - 45 * 85 + CAST( NULL AS SIGNED ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 85 + - - 45 * 85 + CAST ( NULL AS INTEGER ) + - 1 AS col2
----
NULL

query I rowsort
SELECT + 4 * 57
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3644
SELECT ALL 86 + - 16 col2, 74 DIV - + COUNT( * ) + 92 AS col1
----
70
18

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL 86 + - 16 col2, 74 / - + COUNT ( * ) + 92 AS col1
----
70
18

query I rowsort
SELECT ALL - ( - 36 ) * + 69 AS col1
----
2484

query II rowsort
SELECT ALL 62 + + 68 AS col1, + COALESCE ( - 65, - 90, - 74 )
----
130
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT COALESCE ( - - NULLIF ( + 19, - + 51 * + - 70 * + + 18 / + + CASE WHEN NOT ( 66 ) IS NOT NULL THEN + 71 * - 82 WHEN 43 * COUNT( * ) NOT IN ( - 71 + CAST( NULL AS SIGNED ) + + + NULLIF ( MAX( DISTINCT + 30 ), - COUNT( * ) + - 52 ) + 5 + - 65 * - COUNT( * ) ) THEN NULL END ), - COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT COALESCE ( - - NULLIF ( + 19, - + 51 * + - 70 * + + 18 / + + CASE WHEN NOT ( 66 ) IS NOT NULL THEN + 71 * - 82 WHEN 43 * COUNT ( * ) NOT IN ( - 71 + CAST ( NULL AS INTEGER ) + + + NULLIF ( MAX ( DISTINCT + 30 ), - COUNT ( * ) + - 52 ) + 5 + - 65 * - COUNT ( * ) ) THEN NULL END ), - COUNT ( * ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT ALL + CAST( + SUM( ALL - 24 ) AS SIGNED ) + ( - + 4 )
----
-28

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + CAST ( + SUM ( ALL - 24 ) AS INTEGER ) + ( - + 4 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT - 32 + - - 72 + + - 17 * + CAST( NULL AS SIGNED ) - - COUNT( * ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 32 + - - 72 + + - 17 * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - CASE + 20 WHEN + + 3 * - 88 THEN COUNT( ALL 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT - CASE + 20 WHEN + + 3 * - 88 THEN COUNT ( ALL 50 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL 20 * MAX( CASE + - ( + 80 ) WHEN ( 4 ) THEN NULL WHEN - - 11 THEN + 64 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL 20 * MAX ( CASE + - ( + 80 ) WHEN ( 4 ) THEN NULL WHEN - - 11 THEN + 64 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT - MIN( 13 ), - 93 AS col0
----
-13
-93

skipif mysql # not compatible
query II rowsort label-3652
SELECT - MIN ( 13 ), - 93 AS col0
----
-13
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - CASE 87 WHEN 75 * + - AVG ( + 4 ) * ( - - COUNT( * ) ) - + + 94 THEN NULL WHEN + 81 THEN NULL WHEN - 25 THEN + 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT - CASE 87 WHEN 75 * + - AVG ( + 4 ) * ( - - COUNT ( * ) ) - + + 94 THEN NULL WHEN + 81 THEN NULL WHEN - 25 THEN + 8 END AS col2
----
NULL

query I rowsort
SELECT + 78 * + ( + 16 )
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + COALESCE ( MIN( ALL - + 32 ), - 0, + ( - SUM( + 10 ) ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3655
SELECT + COALESCE ( MIN ( ALL - + 32 ), - 0, + ( - SUM ( + 10 ) ) ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT ALL + COALESCE ( + COALESCE ( COUNT( * ), 14, - 96 ), - + 43, - + 0 * - ( - CAST( + 45 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + COALESCE ( + COALESCE ( COUNT ( * ), 14, - 96 ), - + 43, - + 0 * - ( - CAST ( + 45 AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + CASE + 23 WHEN - SUM( DISTINCT ( - 43 ) ) * + - CASE COUNT( * ) WHEN - 88 THEN + 48 + - 55 ELSE - - 18 END * - - NULLIF ( + 67, - COUNT( * ) - - 82 - - + COUNT( * ) ) / + 24 * - ( + + AVG ( ALL 89 ) ) + + + 97 - + 84 + + 40 * - 98 THEN + 9 / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT + CASE + 23 WHEN - SUM ( DISTINCT ( - 43 ) ) * + - CASE COUNT ( * ) WHEN - 88 THEN + 48 + - 55 ELSE - - 18 END * - - NULLIF ( + 67, - COUNT ( * ) - - 82 - - + COUNT ( * ) ) / + 24 * - ( + + AVG ( ALL 89 ) ) + + + 97 - + 84 + + 40 * - 98 THEN + 9 / - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT + CASE + - 64 WHEN CAST( - 93 AS SIGNED ) * 7 * + + NULLIF ( 60, - + 13 ) - 96 THEN NULL WHEN + + COALESCE ( + - 31, - ( COUNT( * ) ) + - 17 * + 58 + + 51 - - 74 ) * COUNT( * ) / + 30 THEN 87 * - + 92 ELSE - - 12 * - 51 END * + 65 - + 54 * + MIN( - 27 + + 93 * + 19 )
----
-133740

skipif mysql # not compatible
query I rowsort label-3658
SELECT + CASE + - 64 WHEN CAST ( - 93 AS INTEGER ) * 7 * + + NULLIF ( 60, - + 13 ) - 96 THEN NULL WHEN + + COALESCE ( + - 31, - ( COUNT ( * ) ) + - 17 * + 58 + + 51 - - 74 ) * COUNT ( * ) / + 30 THEN 87 * - + 92 ELSE - - 12 * - 51 END * + 65 - + 54 * + MIN ( - 27 + + 93 * + 19 )
----
-133740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT + - NULLIF ( - + 63, - 54 ) DIV - COALESCE ( + + 18, - 4, COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3659
SELECT + - NULLIF ( - + 63, - 54 ) / - COALESCE ( + + 18, - 4, COUNT ( * ) )
----
-3

query I rowsort
SELECT + - 5 * + 75 AS col2
----
-375

query II rowsort
SELECT + + 36 * - 27 AS col1, + 8 AS col2
----
-972
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + + COUNT( * ) * 78 + + 4 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3662
SELECT + + COUNT ( * ) * 78 + + 4 AS col1
----
82

query II rowsort
SELECT + 3 + - - 46 AS col2, - 21 AS col2
----
49
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT - - 55 DIV 41 * 31 + + 74 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-3664
SELECT - - 55 / 41 * 31 + + 74 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + 30 * - - 59 * COUNT( * )
----
1770

skipif mysql # not compatible
query I rowsort label-3665
SELECT + 30 * - - 59 * COUNT ( * )
----
1770

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3666
SELECT ALL + NULLIF ( + ( + 1 ), - ( - - ( - COUNT( * ) ) ) + CAST( NULL AS DECIMAL ) - 46 * - + 55 * - NULLIF ( - 49, + 89 / + 33 + - + 64 ) / COUNT( * ) + + - 54 + - 36 + - - 46 * + 47 * - SUM( 78 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + NULLIF ( + ( + 1 ), - ( - - ( - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) - 46 * - + 55 * - NULLIF ( - 49, + 89 / + 33 + - + 64 ) / COUNT ( * ) + + - 54 + - 36 + - - 46 * + 47 * - SUM ( 78 ) ) AS col0
----
1

query I rowsort
SELECT ALL 23 * - - ( - NULLIF ( ( 8 ), 60 ) ) + - 18 * + 95
----
-1894

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - COUNT( * ) * - 56 + - - 62 - + - COUNT( * ) + - 64 * + 62 AS col0
----
-3849

skipif mysql # not compatible
query I rowsort label-3668
SELECT - COUNT ( * ) * - 56 + - - 62 - + - COUNT ( * ) + - 64 * + 62 AS col0
----
-3849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL + - 20 * CASE - - 82 WHEN + 0 THEN 92 + 28 WHEN + ( + 19 ) THEN NULL WHEN - SUM( ALL 19 ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) END + + COALESCE ( - 52, + 53, + CAST( NULL AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + - 20 * CASE - - 82 WHEN + 0 THEN 92 + 28 WHEN + ( + 19 ) THEN NULL WHEN - SUM ( ALL 19 ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) END + + COALESCE ( - 52, + 53, + CAST ( NULL AS INTEGER ) )
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3671
SELECT ALL COUNT( * ) * 99 + - + ( MAX( ALL + + ( - + 19 ) ) ) + - CAST( NULL AS DECIMAL ) + - + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COUNT ( * ) * 99 + - + ( MAX ( ALL + + ( - + 19 ) ) ) + - CAST ( NULL AS REAL ) + - + 17 col0
----
NULL

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

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

query II rowsort
SELECT + 32 + + 69 AS col0, + 18
----
101
18

query I rowsort
SELECT DISTINCT 63 * + - 87
----
-5481

onlyif mysql # DIV for integer division: 
query II rowsort label-3675
SELECT ALL + 1 * + 51 + - + 57 AS col0, - 83 DIV - 93
----
-6
0

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + 1 * + 51 + - + 57 AS col0, - 83 / - 93
----
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - 92 + + 50 * + ( 76 ) * + MAX( - 83 ) - - 37 AS col0
----
-315455

skipif mysql # not compatible
query I rowsort label-3676
SELECT - 92 + + 50 * + ( 76 ) * + MAX ( - 83 ) - - 37 AS col0
----
-315455

query I rowsort
SELECT 11 * + 23 + + 73 * + 25 AS col0
----
2078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT ALL CAST( NULL AS SIGNED ), + 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL CAST ( NULL AS INTEGER ), + 58 AS col2
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT + 84 * - + NULLIF ( - + COALESCE ( COUNT( * ), - - COUNT( * ) - 26 ), - COALESCE ( 97, + 51 ) * + COUNT( ALL - + 22 ) )
----
84

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + 84 * - + NULLIF ( - + COALESCE ( COUNT ( * ), - - COUNT ( * ) - 26 ), - COALESCE ( 97, + 51 ) * + COUNT ( ALL - + 22 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - COUNT( * ) + - 69 * 54 AS col2
----
-3727

skipif mysql # not compatible
query I rowsort label-3680
SELECT - COUNT ( * ) + - 69 * 54 AS col2
----
-3727

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + COUNT( * ) - + - 94
----
95

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) - + - 94
----
95

query I rowsort
SELECT - 56 * + 63 AS col0
----
-3528

query I rowsort
SELECT - 50 + 44 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3684
SELECT + NULLIF ( - + MIN( - - ( - COALESCE ( + 26, + 99 ) ) ), - 71 + + CASE + + 42 WHEN COUNT( * ) THEN + 21 - COUNT( * ) WHEN 71 + - - 43 THEN + 99 ELSE NULL END - - CAST( NULL AS SIGNED ) ) + + 66 - - 6 AS col0, 19 * - + 80
----
98
-1520

skipif mysql # not compatible
query II rowsort label-3684
SELECT + NULLIF ( - + MIN ( - - ( - COALESCE ( + 26, + 99 ) ) ), - 71 + + CASE + + 42 WHEN COUNT ( * ) THEN + 21 - COUNT ( * ) WHEN 71 + - - 43 THEN + 99 ELSE NULL END - - CAST ( NULL AS INTEGER ) ) + + 66 - - 6 AS col0, 19 * - + 80
----
98
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3685
SELECT - COUNT( * ) * 29 * CASE + + 50 WHEN - - 37 THEN + 66 * + 47 + + ( - CAST( + - 80 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) WHEN + 79 THEN NULL END * - 16 / + COUNT( * ) + + 78 * - - 68, 62 + + 95 AS col2
----
NULL
157

skipif mysql # not compatible
query II rowsort label-3685
SELECT - COUNT ( * ) * 29 * CASE + + 50 WHEN - - 37 THEN + 66 * + 47 + + ( - CAST ( + - 80 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) WHEN + 79 THEN NULL END * - 16 / + COUNT ( * ) + + 78 * - - 68, 62 + + 95 AS col2
----
NULL
157

query I rowsort
SELECT - CASE - 88 WHEN - 77 * + 43 * + 55 THEN + 96 WHEN 84 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL COALESCE ( CASE + - 40 WHEN + - COUNT( * ) THEN + 7 END, + + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL COALESCE ( CASE + - 40 WHEN + - COUNT ( * ) THEN + 7 END, + + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - SUM( ALL - - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3688
SELECT - SUM ( ALL - - 10 ) AS col1
----
-10

query I rowsort
SELECT DISTINCT - 21 * - 25 AS col2
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - 74 + ( CASE - 52 WHEN + COUNT( DISTINCT + 89 ) + + 52 - - 24 * ( - + NULLIF ( + 44, - + CASE + AVG ( ( + - 31 ) ) WHEN 45 THEN ( - 29 ) END * + + 84 ) ) * - COUNT( * ) THEN NULL WHEN 18 * + - 54 * + NULLIF ( 68, + 76 ) THEN - COUNT( * ) / 77 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 74 + ( CASE - 52 WHEN + COUNT ( DISTINCT + 89 ) + + 52 - - 24 * ( - + NULLIF ( + 44, - + CASE + AVG ( ( + - 31 ) ) WHEN 45 THEN ( - 29 ) END * + + 84 ) ) * - COUNT ( * ) THEN NULL WHEN 18 * + - 54 * + NULLIF ( 68, + 76 ) THEN - COUNT ( * ) / 77 END ) AS col2
----
NULL

query II rowsort
SELECT + 43 col2, 72 AS col0
----
43
72

query I rowsort
SELECT + 48 * + - 66 * + + 73
----
-231264

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL + - COALESCE ( - ( - + SUM( - 31 ) ), - 26, + 15 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + - COALESCE ( - ( - + SUM ( - 31 ) ), - 26, + 15 ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT COUNT( * ) DIV 38 - + 24
----
-24

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) / 38 - + 24
----
-24

query I rowsort
SELECT 33 + - 53
----
-20

query I rowsort
SELECT - 79 * - 69 + - 62 * 8
----
4955

query I rowsort
SELECT ALL 20 + - + 34 col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT 12 * - + ( + - CAST( NULL AS SIGNED ) ) + - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT 12 * - + ( + - CAST ( NULL AS INTEGER ) ) + - 89 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT + - COALESCE ( - COALESCE ( + MIN( ALL - 30 ), - + 59, 48 * - - 28, - CASE + - CAST( NULL AS SIGNED ) WHEN COALESCE ( 28, + 43 ) THEN 59 + + 64 * 85 END ), + - ( COUNT( 49 ) ), 56 * COUNT( * ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3699
SELECT + - COALESCE ( - COALESCE ( + MIN ( ALL - 30 ), - + 59, 48 * - - 28, - CASE + - CAST ( NULL AS INTEGER ) WHEN COALESCE ( 28, + 43 ) THEN 59 + + 64 * 85 END ), + - ( COUNT ( 49 ) ), 56 * COUNT ( * ) ) AS col2
----
-30

query II rowsort
SELECT ALL - + 42, 11 AS col1
----
-42
11

query II rowsort
SELECT ALL - 61, - 46 AS col2
----
-61
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN 60 THEN NULL WHEN 30 THEN + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN 60 THEN NULL WHEN 30 THEN + 3 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3703
SELECT + 18 AS col2, + CASE + - COUNT( * ) WHEN + CASE - 47 WHEN - + COUNT( * ) THEN - + 52 WHEN + 26 / + 78 THEN NULL ELSE - 1 END * - 0 THEN - 1 * + 18 * 13 - + NULLIF ( + 18, - - 37 * COUNT( * ) * - - 76 ) * - 95 / + 64 ELSE NULL END * CAST( NULL AS SIGNED ) * COUNT( DISTINCT 89 ) * - 47
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3703
SELECT + 18 AS col2, + CASE + - COUNT ( * ) WHEN + CASE - 47 WHEN - + COUNT ( * ) THEN - + 52 WHEN + 26 / + 78 THEN NULL ELSE - 1 END * - 0 THEN - 1 * + 18 * 13 - + NULLIF ( + 18, - - 37 * COUNT ( * ) * - - 76 ) * - 95 / + 64 ELSE NULL END * CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 89 ) * - 47
----
18
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT - NULLIF ( ( + - 82 ), COUNT( * ) ) * 45 + + - 80 AS col1
----
3610

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - NULLIF ( ( + - 82 ), COUNT ( * ) ) * 45 + + - 80 AS col1
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - NULLIF ( + NULLIF ( 51, - 95 * + 37 + + - 56 ), - COUNT( * ) * - + 67 + + 7 * + - 57 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - NULLIF ( + NULLIF ( 51, - 95 * + 37 + + - 56 ), - COUNT ( * ) * - + 67 + + 7 * + - 57 ) AS col1
----
-51

query I rowsort
SELECT ALL + 6 * + 73 AS col2
----
438

query I rowsort
SELECT ALL 51 - + + 86 AS col2
----
-35

query I rowsort
SELECT NULLIF ( - - 81, 24 * 56 ) - - 78
----
159

query I rowsort
SELECT 64 * + 74 * + - NULLIF ( - - 82, + - 32 / - - ( + + 69 ) * + 19 * - 40 ) AS col2
----
-388352

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL ( COUNT( * ) ) * - - 37 AS col0
----
37

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3713
SELECT DISTINCT + 62 DIV + CAST( + + NULLIF ( - 58, + 6 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + 62 / + CAST ( + + NULLIF ( - 58, + 6 ) AS INTEGER )
----
-1

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

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

query I rowsort
SELECT 79 * - 2 col2
----
-158

query I rowsort
SELECT 82 - - 60
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT + 63 DIV + + MAX( + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + 63 / + + MAX ( + 67 )
----
0

query I rowsort
SELECT 63 + 99 + 71 AS col2
----
233

query I rowsort
SELECT ALL + 83 * ( - 57 )
----
-4731

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT + 41 + + 3 AS col2, + 56 * + - ( + ( + COUNT( * ) ) )
----
44
-56

skipif mysql # not compatible
query II rowsort label-3720
SELECT + 41 + + 3 AS col2, + 56 * + - ( + ( + COUNT ( * ) ) )
----
44
-56

query II rowsort
SELECT ALL + 91 + - 35, - 96 AS col2
----
56
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL - 22 + + + ( COUNT( + 31 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 22 + + + ( COUNT ( + 31 ) )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT DISTINCT - MIN( 94 ) AS col0, 88 + - 75 + + 28 * 17 col2
----
-94
489

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT - MIN ( 94 ) AS col0, 88 + - 75 + + 28 * 17 col2
----
-94
489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT + ( - CAST( NULL AS SIGNED ) ) / - ( - 80 ) * 78 + - 55 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT + ( - CAST ( NULL AS INTEGER ) ) / - ( - 80 ) * 78 + - 55 + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ( + 38 ) + 48 * + + 45 + + + COALESCE ( CASE + 44 WHEN - COUNT( * ) THEN + 37 WHEN + 0 * + ( + 56 ) + - 69 + - - ( - 34 ) * - 28 + - 17 + + - 90 + 97 THEN NULL ELSE NULL END, + 41 ) AS col1
----
2239

skipif mysql # not compatible
query I rowsort label-3725
SELECT ( + 38 ) + 48 * + + 45 + + + COALESCE ( CASE + 44 WHEN - COUNT ( * ) THEN + 37 WHEN + 0 * + ( + 56 ) + - 69 + - - ( - 34 ) * - 28 + - 17 + + - 90 + 97 THEN NULL ELSE NULL END, + 41 ) AS col1
----
2239

query I rowsort
SELECT ALL + 15 - - ( 65 )
----
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT COUNT( * ) * 10 - - 63 + - + 63 * 74 * + 57 col0
----
-265661

skipif mysql # not compatible
query I rowsort label-3728
SELECT COUNT ( * ) * 10 - - 63 + - + 63 * 74 * + 57 col0
----
-265661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL - - ( - MAX( ALL CAST( 75 AS SIGNED ) ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - - ( - MAX ( ALL CAST ( 75 AS INTEGER ) ) ) AS col1
----
-75

query I rowsort
SELECT ALL + NULLIF ( + 27, + 55 ) - + COALESCE ( + ( - ( - 26 ) ), - - NULLIF ( + + 30, - 52 / + 40 ) ) + + 86 + + 63 * 44
----
2859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT COUNT( * ) + + CAST( 68 AS SIGNED ) + 75 - - 83 * + + 38 * - - 16 * - CASE - 57 WHEN COALESCE ( - MIN( ALL 21 ), + MIN( 68 ) ) * - 17 THEN - + 9 * + - 28 + + - COUNT( * ) - - 59 + 41 * + SUM( ALL - 91 ) END / COUNT( * ) * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( * ) + + CAST ( 68 AS INTEGER ) + 75 - - 83 * + + 38 * - - 16 * - CASE - 57 WHEN COALESCE ( - MIN ( ALL 21 ), + MIN ( 68 ) ) * - 17 THEN - + 9 * + - 28 + + - COUNT ( * ) - - 59 + 41 * + SUM ( ALL - 91 ) END / COUNT ( * ) * - 97 AS col1
----
NULL

query I rowsort
SELECT 58 * - 8 col1
----
-464

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT 64 DIV + 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT 64 / + 75 col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT + 77 * - + 21 - NULLIF ( 23, + + 49 ) + - 96 DIV + 57 AS col2
----
-1641

skipif mysql # not compatible
query I rowsort label-3735
SELECT + 77 * - + 21 - NULLIF ( 23, + + 49 ) + - 96 / + 57 AS col2
----
-1641

query I rowsort
SELECT 47 + + + 89
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT 54 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT 54 / - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL 9 DIV - + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 9 / - + 25 AS col0
----
0

query I rowsort
SELECT ALL 91 * - + 40
----
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT CAST( 24 AS SIGNED ) * 41 * - 83 * - 40 * + 59 AS col2
----
192745920

skipif mysql # not compatible
query I rowsort label-3740
SELECT CAST ( 24 AS INTEGER ) * 41 * - 83 * - 40 * + 59 AS col2
----
192745920

query I rowsort
SELECT ALL 55 + + + 86 + 90 * - 8 * 29 AS col0
----
-20739

query I rowsort
SELECT ( 51 ) + - 36 + + - 68 + 7 * - 96 AS col2
----
-725

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT MAX( DISTINCT 88 ) + + 78, COUNT( * ) col2
----
166
1

skipif mysql # not compatible
query II rowsort label-3743
SELECT MAX ( DISTINCT 88 ) + + 78, COUNT ( * ) col2
----
166
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3744
SELECT CAST( - + 63 AS DECIMAL ) * - CASE - - 9 WHEN + 40 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + + 62 THEN - + 87 * + 50 * - 87 - + CAST( AVG ( ALL 30 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT CAST ( - + 63 AS REAL ) * - CASE - - 9 WHEN + 40 THEN NULL WHEN - CAST ( NULL AS REAL ) + + 62 THEN - + 87 * + 50 * - 87 - + CAST ( AVG ( ALL 30 ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - 1 + - COUNT( + - 71 ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 1 + - COUNT ( + - 71 ) * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + MAX( DISTINCT 36 ) + + 84
----
120

skipif mysql # not compatible
query I rowsort label-3746
SELECT + MAX ( DISTINCT 36 ) + + 84
----
120

query II rowsort
SELECT ALL - 83 AS col0, 62 col0
----
-83
62

query I rowsort
SELECT - + 65 + - 39
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT - - 91 + - 73 DIV - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-3749
SELECT - - 91 + - 73 / - COUNT ( * )
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - 8 DIV + 74 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 8 / + 74 + + 22
----
22

query I rowsort
SELECT - + 12 * - 29 + - + 56
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3752
SELECT DISTINCT + + 47, 26 * - 1 + - 30 + + - CAST( NULL AS SIGNED ) / COUNT( * ) / - 37 * + 98 * - - 55 AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT + + 47, 26 * - 1 + - 30 + + - CAST ( NULL AS INTEGER ) / COUNT ( * ) / - 37 * + 98 * - - 55 AS col2
----
47
NULL

query II rowsort
SELECT ALL + - 65 AS col1, CASE 21 WHEN - + 58 THEN - 42 * 9 WHEN + 24 THEN - - 39 END AS col1
----
-65
NULL

query I rowsort
SELECT - 57 * + 98
----
-5586

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL + MAX( DISTINCT - 28 ), + 43 * 99 AS col2
----
-28
4257

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL + MAX ( DISTINCT - 28 ), + 43 * 99 AS col2
----
-28
4257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT NULLIF ( - 49, + + CASE 40 WHEN - 21 * + 42 * 92 + 25 - - + COUNT( * ) + ( - - 89 ) / 24 THEN - + COUNT( * ) WHEN - 90 * + 6 * - + 72 * - CAST( NULLIF ( - COALESCE ( - - COUNT( * ), + 37 + - + 36 + - + 58, - - 78 ), - ( 46 ) + CASE 76 WHEN NULLIF ( 55, - 0 ) + CAST( NULL AS SIGNED ) THEN NULL ELSE 77 END * + 50 ) AS SIGNED ) THEN NULL END ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3757
SELECT NULLIF ( - 49, + + CASE 40 WHEN - 21 * + 42 * 92 + 25 - - + COUNT ( * ) + ( - - 89 ) / 24 THEN - + COUNT ( * ) WHEN - 90 * + 6 * - + 72 * - CAST ( NULLIF ( - COALESCE ( - - COUNT ( * ), + 37 + - + 36 + - + 58, - - 78 ), - ( 46 ) + CASE 76 WHEN NULLIF ( 55, - 0 ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE 77 END * + 50 ) AS INTEGER ) THEN NULL END ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + COUNT( * ) + - + 43 / + + CASE - CASE + 81 WHEN - 68 - - NULLIF ( 17, + 53 * + + 88 ) THEN + + 66 WHEN - 92 * - 24 / + - 88 THEN - + 2 END WHEN + + ( - - 86 ) THEN - + 32 / 17 + - MAX( ALL 27 ) * - + 8 - + + COUNT( ALL - 49 ) ELSE NULL END + - 34 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT + COUNT ( * ) + - + 43 / + + CASE - CASE + 81 WHEN - 68 - - NULLIF ( 17, + 53 * + + 88 ) THEN + + 66 WHEN - 92 * - 24 / + - 88 THEN - + 2 END WHEN + + ( - - 86 ) THEN - + 32 / 17 + - MAX ( ALL 27 ) * - + 8 - + + COUNT ( ALL - 49 ) ELSE NULL END + - 34 + + 50
----
NULL

query I rowsort
SELECT ALL - 80 * 41 AS col1
----
-3280

query I rowsort
SELECT DISTINCT 56 * + + 50
----
2800

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT ALL - ( + 91 ) DIV - 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - ( + 91 ) / - 9 AS col1
----
10

query I rowsort
SELECT DISTINCT + CASE - 28 WHEN 45 THEN ( - + 37 ) + 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL COALESCE ( + - 52, + 98 ) * - COUNT( * ) + 10
----
62

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL COALESCE ( + - 52, + 98 ) * - COUNT ( * ) + 10
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-3764
SELECT + SUM( DISTINCT - 73 ) col2, 53 * 40, - - 52 AS col2
----
-73
2120
52

skipif mysql # not compatible
query III rowsort label-3764
SELECT + SUM ( DISTINCT - 73 ) col2, 53 * 40, - - 52 AS col2
----
-73
2120
52

query I rowsort
SELECT DISTINCT - 62 * + 81 col1
----
-5022

query I rowsort
SELECT + 32 * + - 41 AS col2
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3767
SELECT - COALESCE ( - CASE + 39 WHEN + 57 * - CAST( NULL AS SIGNED ) THEN NULL ELSE - ( - COUNT( ALL + + CAST( NULL AS SIGNED ) ) ) END, - 2 - 71 * + + 79 ), + COUNT( CAST( NULL AS DECIMAL ) ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3767
SELECT - COALESCE ( - CASE + 39 WHEN + 57 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE - ( - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) ) END, - 2 - 71 * + + 79 ), + COUNT ( CAST ( NULL AS REAL ) ) AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL 14 + + 63 + 42 * + + NULLIF ( 62, 38 ) + + COUNT( * )
----
2682

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL 14 + + 63 + 42 * + + NULLIF ( 62, 38 ) + + COUNT ( * )
----
2682

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT SUM( ALL 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3769
SELECT SUM ( ALL 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - NULLIF ( 66, - COUNT( * ) - + - 26 / + + 94 * 33 * ( + 32 ) / - 86 * 83 ) * - 63 * + + COUNT( * ) AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-3770
SELECT - NULLIF ( 66, - COUNT ( * ) - + - 26 / + + 94 * 33 * ( + 32 ) / - 86 * 83 ) * - 63 * + + COUNT ( * ) AS col1
----
4158

query I rowsort
SELECT + 2 * - + 2 AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3772
SELECT ALL 8 DIV + COUNT( * ), + 55 AS col0
----
8
55

skipif mysql # not compatible
query II rowsort label-3772
SELECT ALL 8 / + COUNT ( * ), + 55 AS col0
----
8
55

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

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

query I rowsort
SELECT ALL + 75 + + 10 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT + MAX( + 0 ) + + 83 col0
----
83

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + MAX ( + 0 ) + + 83 col0
----
83

query I rowsort
SELECT + 94 - - 19
----
113

query I rowsort
SELECT - + 70 * - 49
----
3430

query I rowsort
SELECT DISTINCT 9 - + 55 + + 64 col2
----
18

query II rowsort
SELECT ALL + 13, - 92 + + 61 AS col1
----
13
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3780
SELECT + 97 * 7, ( + 99 ) * - CAST( NULL AS SIGNED ) + 33 - + 25 - + 7 AS col0
----
679
NULL

skipif mysql # not compatible
query II rowsort label-3780
SELECT + 97 * 7, ( + 99 ) * - CAST ( NULL AS INTEGER ) + 33 - + 25 - + 7 AS col0
----
679
NULL

query I rowsort
SELECT DISTINCT - ( - 15 ) - - - 64 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3782
SELECT DISTINCT - + COUNT( * ) DIV - COUNT( ALL - 64 ) - 90
----
-89

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - + COUNT ( * ) / - COUNT ( ALL - 64 ) - 90
----
-89

query I rowsort
SELECT - - 43 * - 16 AS col1
----
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3784
SELECT - COUNT( * ) DIV - CAST( - - 57 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT - COUNT ( * ) / - CAST ( - - 57 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + CASE + - 74 WHEN 22 THEN NULL WHEN 78 THEN + - AVG ( + 18 ) * - 81 + 62 + - ( + 83 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT ALL + 15, COUNT( * ) * 89 * 7 AS col2
----
15
623

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL + 15, COUNT ( * ) * 89 * 7 AS col2
----
15
623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT - COUNT( * ) DIV - 9 * + - 4 + + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3787
SELECT - COUNT ( * ) / - 9 * + - 4 + + + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT - COUNT( ALL - COALESCE ( + + 41, 13 ) ) DIV + COUNT( ALL 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( ALL - COALESCE ( + + 41, 13 ) ) / + COUNT ( ALL 50 )
----
-1

query I rowsort
SELECT ALL - 48 * + 60
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT + 27 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT + 27 / + 87 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3791
SELECT DISTINCT COUNT( * ) DIV + + 31 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT COUNT ( * ) / + + 31 * - 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT ALL 56 DIV + 48 + COUNT( * ) + - ( + + 52 ) - 57 * - 32 AS col2
----
1774

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL 56 / + 48 + COUNT ( * ) + - ( + + 52 ) - 57 * - 32 AS col2
----
1774

query I rowsort
SELECT + ( 58 ) * + + 34 - + - 42
----
2014

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3794
SELECT ALL + CAST( NULL AS SIGNED ) * - ( - 67 ) * - - 69 / 13 AS col1, + 77 AS col2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3794
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( - 67 ) * - - 69 / 13 AS col1, + 77 AS col2
----
NULL
77

query I rowsort
SELECT - 73 * 71
----
-5183

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT DISTINCT ( + 80 ) * - - 17 + + ( + 10 ), - 40 + + + ( + COUNT( * ) ) AS col0
----
1370
-39

skipif mysql # not compatible
query II rowsort label-3796
SELECT DISTINCT ( + 80 ) * - - 17 + + ( + 10 ), - 40 + + + ( + COUNT ( * ) ) AS col0
----
1370
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + COUNT( * ) * + COUNT( - + 20 ) + + + 74
----
75

skipif mysql # not compatible
query I rowsort label-3797
SELECT + COUNT ( * ) * + COUNT ( - + 20 ) + + + 74
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT ALL 99 * - + 4 + + 30 + + - NULLIF ( 61, + 93 - SUM( 61 ) + + 29 + - 55 * - + 96 * 13 ) AS col0, - 15 AS col2
----
-427
-15

skipif mysql # not compatible
query II rowsort label-3798
SELECT ALL 99 * - + 4 + + 30 + + - NULLIF ( 61, + 93 - SUM ( 61 ) + + 29 + - 55 * - + 96 * 13 ) AS col0, - 15 AS col2
----
-427
-15

query I rowsort
SELECT + COALESCE ( + 15, - + 20 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT 72 + - COUNT( * ) * - - 1 * 60
----
12

skipif mysql # not compatible
query I rowsort label-3800
SELECT 72 + - COUNT ( * ) * - - 1 * 60
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 30 * + 60 - - 4 + - COUNT( ALL + 99 ) - + 49
----
-1846

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 30 * + 60 - - 4 + - COUNT ( ALL + 99 ) - + 49
----
-1846

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3803
SELECT 82 + - 13 DIV + 46 col0, - 91 * 45 + + 86 AS col1
----
82
-4009

skipif mysql # not compatible
query II rowsort label-3803
SELECT 82 + - 13 / + 46 col0, - 91 * 45 + + 86 AS col1
----
82
-4009

query I rowsort
SELECT ALL - 59 + - 74
----
-133

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

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

query I rowsort
SELECT + 18 * - + 57 * + 56 AS col2
----
-57456

onlyif mysql # DIV for integer division: 
query II rowsort label-3807
SELECT ALL - 43 * 0, 53 DIV + 7 AS col2
----
0
7

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL - 43 * 0, 53 / + 7 AS col2
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT - 45 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT - 45 / 72
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3810
SELECT ALL - COUNT( - - 7 ) AS col0, 7 + - SUM( DISTINCT - 71 ) + 13 * - ( + 91 ) + - + COUNT( * ) DIV + 15 AS col2
----
-1
-1105

skipif mysql # not compatible
query II rowsort label-3810
SELECT ALL - COUNT ( - - 7 ) AS col0, 7 + - SUM ( DISTINCT - 71 ) + 13 * - ( + 91 ) + - + COUNT ( * ) / + 15 AS col2
----
-1
-1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT 2 DIV + + COUNT( * ) + - 96
----
-94

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT 2 / + + COUNT ( * ) + - 96
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT COUNT( 84 ) * + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3812
SELECT COUNT ( 84 ) * + + 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT + 17 - + SUM( ALL + + 23 )
----
-6

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + 17 - + SUM ( ALL + + 23 )
----
-6

query I rowsort
SELECT - 3 + + + 31 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT - COALESCE ( + + CAST( - 58 AS SIGNED ), + 64, + ( 7 ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - COALESCE ( + + CAST ( - 58 AS INTEGER ), + 64, + ( 7 ) ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + 52 * - + COUNT( * ) + + + 12 + 33
----
-7

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 52 * - + COUNT ( * ) + + + 12 + 33
----
-7

query I rowsort
SELECT DISTINCT 39 + + 48 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3818
SELECT DISTINCT - 86 AS col2, CAST( - 92 AS SIGNED ) AS col1
----
-86
-92

skipif mysql # not compatible
query II rowsort label-3818
SELECT DISTINCT - 86 AS col2, CAST ( - 92 AS INTEGER ) AS col1
----
-86
-92

query I rowsort
SELECT ALL + 89 + + - ( - 3 ) + - + 62
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3820
SELECT 64 + - + COALESCE ( + 6, - + CAST( NULL AS SIGNED ), 1 ) * + + 4 * - ( + COUNT( * ) ) + + 55
----
143

skipif mysql # not compatible
query I rowsort label-3820
SELECT 64 + - + COALESCE ( + 6, - + CAST ( NULL AS INTEGER ), 1 ) * + + 4 * - ( + COUNT ( * ) ) + + 55
----
143

query II rowsort
SELECT ALL - 99 AS col1, 71 * 4 AS col0
----
-99
284

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3822
SELECT DISTINCT 80 + AVG ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 80 + AVG ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 38 + - 57 AS col1
----
-19

query I rowsort
SELECT 98 + - + 73 + - + 56 AS col2
----
-31

query II rowsort
SELECT + 20 AS col1, + 55 col2
----
20
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT + MAX( 84 ) * 95 * COUNT( * )
----
7980

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + MAX ( 84 ) * 95 * COUNT ( * )
----
7980

query I rowsort
SELECT DISTINCT - 45 + + - 30
----
-75

query I rowsort
SELECT DISTINCT 37 + + ( + - 55 ) AS col2
----
-18

query I rowsort
SELECT ALL 72 * - + 43 AS col2
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT 7 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT 7 / + 78
----
0

query I rowsort
SELECT ALL - 14 - - + 71 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT - 15 * NULLIF ( + 39, MIN( + 34 ) ) * COALESCE ( + - 65, 59 * CAST( NULL AS SIGNED ) )
----
38025

skipif mysql # not compatible
query I rowsort label-3833
SELECT - 15 * NULLIF ( + 39, MIN ( + 34 ) ) * COALESCE ( + - 65, 59 * CAST ( NULL AS INTEGER ) )
----
38025

query I rowsort
SELECT 12 * + 19 + + 23
----
251

query I rowsort
SELECT ALL - 54 - 93 AS col1
----
-147

query I rowsort
SELECT + ( - + ( + - 22 ) ) * + ( - - ( - 81 ) )
----
-1782

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT - + 70 AS col0, + 49 - - + COUNT( * ) AS col2
----
-70
50

skipif mysql # not compatible
query II rowsort label-3837
SELECT - + 70 AS col0, + 49 - - + COUNT ( * ) AS col2
----
-70
50

query I rowsort
SELECT ( + 94 ) - + + 76 * - + 71
----
5490

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL + - NULLIF ( + 19, + - 44 * - 5 + - - COUNT( * ) * - COALESCE ( + - NULLIF ( - + 33, + COUNT( * ) * + + 67 + AVG ( + - 3 ) + - 70 * - + 26 - + 58 * ( 21 ) ), + 96 ) ) * + 51
----
-969

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + - NULLIF ( + 19, + - 44 * - 5 + - - COUNT ( * ) * - COALESCE ( + - NULLIF ( - + 33, + COUNT ( * ) * + + 67 + AVG ( + - 3 ) + - 70 * - + 26 - + 58 * ( 21 ) ), + 96 ) ) * + 51
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT MIN( ALL 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT MIN ( ALL 63 )
----
63

query II rowsort
SELECT + 92 - - 39 + 50, 51 AS col0
----
181
51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT - + CASE ( + ( - - CASE - 50 WHEN - + 22 THEN COUNT( * ) * + ( + - 1 ) + ( 48 ) END ) ) WHEN + 60 THEN - 36 ELSE NULL END AS col2, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3843
SELECT - + CASE ( + ( - - CASE - 50 WHEN - + 22 THEN COUNT ( * ) * + ( + - 1 ) + ( 48 ) END ) ) WHEN + 60 THEN - 36 ELSE NULL END AS col2, 68
----
NULL
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT - 15 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 15 / 76 AS col2
----
0

query I rowsort
SELECT 96 * - + 18
----
-1728

query I rowsort
SELECT - 59 + 31
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT + 81 DIV - CAST( 60 AS SIGNED ) + - + COUNT( + + 41 )
----
-2

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 81 / - CAST ( 60 AS INTEGER ) + - + COUNT ( + + 41 )
----
-2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3849
SELECT ALL + 30 DIV + 67, 0 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL + 30 / + 67, 0 AS col2
----
0
0

query I rowsort
SELECT DISTINCT 73 * - + ( 93 ) * - - 17 + + 0 + + - 95 AS col2
----
-115508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT 44 * + - CAST( NULL AS SIGNED ) * + 21
----
NULL

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

query I rowsort
SELECT ALL 48 * 42 + + 13 * + COALESCE ( + 26, - ( - - 2 ) - - - 47 ) AS col1
----
2354

query I rowsort
SELECT + 60 * - ( - + 40 ) + + - 85 AS col2
----
2315

query I rowsort
SELECT - 21 + - - 4 * - + 69
----
-297

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT CASE + + 50 WHEN + 13 THEN - 47 ELSE NULL END AS col2, 38 - + 6 * + COUNT( * ) * - 75 + 75 col1
----
NULL
563

skipif mysql # not compatible
query II rowsort label-3855
SELECT CASE + + 50 WHEN + 13 THEN - 47 ELSE NULL END AS col2, 38 - + 6 * + COUNT ( * ) * - 75 + 75 col1
----
NULL
563

query I rowsort
SELECT ALL 91 * + 34
----
3094

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT + CASE WHEN NOT ( NULL ) IS NULL THEN - 30 END + - ( + - 77 ) * + SUM( - 51 ) * COUNT( 40 ) + - - 45 + - - 0, - ( - + 23 ) AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-3857
SELECT + CASE WHEN NOT ( NULL ) IS NULL THEN - 30 END + - ( + - 77 ) * + SUM ( - 51 ) * COUNT ( 40 ) + - - 45 + - - 0, - ( - + 23 ) AS col2
----
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT ( + 69 ) * - 40 + 68 DIV + + 73 + + 57
----
-2703

skipif mysql # not compatible
query I rowsort label-3858
SELECT ( + 69 ) * - 40 + 68 / + + 73 + + 57
----
-2703

query I rowsort
SELECT ALL + 1 * + 63 - + + 5
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT + COUNT( * ) * + 72 + - 74 * ( - 62 ) col1, COUNT( * )
----
4660
1

skipif mysql # not compatible
query II rowsort label-3861
SELECT + COUNT ( * ) * + 72 + - 74 * ( - 62 ) col1, COUNT ( * )
----
4660
1

query I rowsort
SELECT + 43 + - 25 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + 59 * - + 69 + COUNT( * )
----
-4070

skipif mysql # not compatible
query I rowsort label-3863
SELECT + 59 * - + 69 + COUNT ( * )
----
-4070

query I rowsort
SELECT - 37 * + 79 * - 54 AS col0
----
157842

query I rowsort
SELECT + - 63 + + + 93 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + NULLIF ( 95, - - SUM( ALL + 60 ) + - 67 )
----
95

skipif mysql # not compatible
query I rowsort label-3866
SELECT + NULLIF ( 95, - - SUM ( ALL + 60 ) + - 67 )
----
95

query I rowsort
SELECT + + 88 + + + 80
----
168

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3868
SELECT ALL + CAST( + 42 AS SIGNED ) DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + CAST ( + 42 AS INTEGER ) / + - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT + 36 * + 98 * + COALESCE ( + - 56, + 23 ) * + COALESCE ( - COALESCE ( - 34, + 28 DIV + AVG ( 14 ) ), - 48, - 84 ) * 58
----
-389604096

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 36 * + 98 * + COALESCE ( + - 56, + 23 ) * + COALESCE ( - COALESCE ( - 34, + 28 / + AVG ( 14 ) ), - 48, - 84 ) * 58
----
-389604096

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT DISTINCT - MIN( + + 3 ) * + MAX( ALL - 49 ) * 68 AS col1, 55 AS col0
----
9996
55

skipif mysql # not compatible
query II rowsort label-3870
SELECT DISTINCT - MIN ( + + 3 ) * + MAX ( ALL - 49 ) * 68 AS col1, 55 AS col0
----
9996
55

query II rowsort
SELECT ALL + + 82 * + + 65 AS col1, 46
----
5330
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + 49 * + - COUNT( * ) * + - 34
----
1666

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 49 * + - COUNT ( * ) * + - 34
----
1666

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( * ) * - - 79 + 5 + 87
----
171

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) * - - 79 + 5 + 87
----
171

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

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

query I rowsort
SELECT - - 31 * + 90
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT - NULLIF ( - CASE + - AVG ( + 16 ) WHEN - 7 * 97 * - NULLIF ( - CAST( + 79 AS SIGNED ), 11 ) THEN NULL WHEN + COUNT( * ) * - 54 + 31 + 89 * - - 78 / + 52 * - 22 * - + NULLIF ( 32, + - 10 + 35 ) - + 3 + 70 + 94 THEN - 11 END, + 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT - NULLIF ( - CASE + - AVG ( + 16 ) WHEN - 7 * 97 * - NULLIF ( - CAST ( + 79 AS INTEGER ), 11 ) THEN NULL WHEN + COUNT ( * ) * - 54 + 31 + 89 * - - 78 / + 52 * - 22 * - + NULLIF ( 32, + - 10 + 35 ) - + 3 + 70 + 94 THEN - 11 END, + 24 ) AS col2
----
NULL

query I rowsort
SELECT + + 45 + - 26 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL COALESCE ( - + CASE + 76 WHEN MAX( + 5 ) THEN NULL ELSE 63 + - COUNT( * ) END, - 85, - - 92 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL COALESCE ( - + CASE + 76 WHEN MAX ( + 5 ) THEN NULL ELSE 63 + - COUNT ( * ) END, - 85, - - 92 ) AS col1
----
-62

query I rowsort
SELECT - 52 + 70 + + 0 * 38 + + - 59 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - 21 * + - 90 + + + CASE - NULLIF ( COALESCE ( - COUNT( - - ( - 18 ) ), 5 ), + 46 ) WHEN + 63 * - 43 * 81 THEN - 50 WHEN - + 75 * 87 THEN 48 END + - 65 + + 77 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 21 * + - 90 + + + CASE - NULLIF ( COALESCE ( - COUNT ( - - ( - 18 ) ), 5 ), + 46 ) WHEN + 63 * - 43 * 81 THEN - 50 WHEN - + 75 * 87 THEN 48 END + - 65 + + 77 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT COUNT( + + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT COUNT ( + + 63 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3883
SELECT ALL - - 77 + - CASE + COUNT( * ) WHEN + 90 THEN NULL WHEN CAST( + 80 AS SIGNED ) THEN - - 41 END col1, CAST( NULL AS SIGNED ) + + + 28
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3883
SELECT ALL - - 77 + - CASE + COUNT ( * ) WHEN + 90 THEN NULL WHEN CAST ( + 80 AS INTEGER ) THEN - - 41 END col1, CAST ( NULL AS INTEGER ) + + + 28
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL + 26 + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + 26 + COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT DISTINCT - + COUNT( * ) + + - 77 AS col1, 34 * 45 col2
----
-78
1530

skipif mysql # not compatible
query II rowsort label-3885
SELECT DISTINCT - + COUNT ( * ) + + - 77 AS col1, 34 * 45 col2
----
-78
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT + COUNT( * ) * + + 84 * - ( - 17 ) * - - 15 + - + 12 + + 1 col2
----
21409

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + COUNT ( * ) * + + 84 * - ( - 17 ) * - - 15 + - + 12 + + 1 col2
----
21409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - MAX( ALL - 23 ) + - 4 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3888
SELECT - MAX ( ALL - 23 ) + - 4 AS col0
----
19

query I rowsort
SELECT ALL - 89 + - 46
----
-135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - COALESCE ( - - MIN( DISTINCT - 80 ), - 21 * - MIN( DISTINCT 22 ) ) * - + MAX( DISTINCT - + 24 ) * + 83 AS col0
----
159360

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COALESCE ( - - MIN ( DISTINCT - 80 ), - 21 * - MIN ( DISTINCT 22 ) ) * - + MAX ( DISTINCT - + 24 ) * + 83 AS col0
----
159360

query I rowsort
SELECT DISTINCT - 17 * + 23 AS col2
----
-391

query I rowsort
SELECT + 86 * 75
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT + COALESCE ( - NULLIF ( + 50, 20 ), + - CASE 17 WHEN - 24 THEN - 28 WHEN + 52 * - COUNT( * ) THEN 48 END )
----
-50

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT + COALESCE ( - NULLIF ( + 50, 20 ), + - CASE 17 WHEN - 24 THEN - 28 WHEN + 52 * - COUNT ( * ) THEN 48 END )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL + 57 DIV 22 - + 29 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + 57 / 22 - + 29 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT 44 DIV + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 44 / + 20 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - 50 * COUNT( + 30 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 50 * COUNT ( + 30 ) col0
----
-50

query I rowsort
SELECT ALL 79 * + + 54 col2
----
4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3899
SELECT DISTINCT - COUNT( ALL - 75 ) DIV - 27 - + - 40 * + + 38
----
1520

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - COUNT ( ALL - 75 ) / - 27 - + - 40 * + + 38
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3900
SELECT - ( - 25 ) * - CASE - CAST( COUNT( * ) AS SIGNED ) WHEN ( - 43 ) * + - 71 - + ( 93 ) + - NULLIF ( - NULLIF ( - - NULLIF ( - + 18, 94 ), - CAST( NULL AS DECIMAL ) + - 6 ), - 37 * + - 14 / + + 1 ) * - 61 THEN NULL WHEN + 64 * 37 + + 98 / - 70 + 20 + - - 20 THEN + 30 * + ( - SUM( ALL + 49 ) ) - - 20 * 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT - ( - 25 ) * - CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN ( - 43 ) * + - 71 - + ( 93 ) + - NULLIF ( - NULLIF ( - - NULLIF ( - + 18, 94 ), - CAST ( NULL AS REAL ) + - 6 ), - 37 * + - 14 / + + 1 ) * - 61 THEN NULL WHEN + 64 * 37 + + 98 / - 70 + 20 + - - 20 THEN + 30 * + ( - SUM ( ALL + 49 ) ) - - 20 * 81 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + ( + - CASE + 66 WHEN ( COUNT( * ) ) + + 43 + + 73 THEN NULL WHEN 27 THEN + - 49 WHEN 13 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT + ( + - CASE + 66 WHEN ( COUNT ( * ) ) + + 43 + + 73 THEN NULL WHEN 27 THEN + - 49 WHEN 13 THEN NULL END )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + COUNT( - 21 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT + COUNT ( - 21 ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 25 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + CASE 7 WHEN - + 17 THEN NULL ELSE + ( - 13 ) END * 73 AS col2
----
-949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT + NULLIF ( + 72, - 19 * + + 81 * - + CAST( NULL AS SIGNED ) * - 28 * - 78 - + 31 + + + 20 + - COUNT( * ) ) * + 71 + + + 15 * + 3 + - MIN( ALL - - 49 ) + + + 78 + - 92
----
5094

skipif mysql # not compatible
query I rowsort label-3907
SELECT + NULLIF ( + 72, - 19 * + + 81 * - + CAST ( NULL AS INTEGER ) * - 28 * - 78 - + 31 + + + 20 + - COUNT ( * ) ) * + 71 + + + 15 * + 3 + - MIN ( ALL - - 49 ) + + + 78 + - 92
----
5094

query I rowsort
SELECT ALL + 21 * 59 AS col0
----
1239

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT + 48 * COUNT( * ) * 34 + NULLIF ( + 18, - 89 ) AS col2
----
1650

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + 48 * COUNT ( * ) * 34 + NULLIF ( + 18, - 89 ) AS col2
----
1650

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3911
SELECT + + 60 DIV - 95 * - - CAST( + - 62 AS SIGNED ) + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3911
SELECT + + 60 / - 95 * - - CAST ( + - 62 AS INTEGER ) + + 62 AS col1
----
62

query II rowsort
SELECT ALL - + 33 * + 12 + - 60 AS col2, - 40 AS col2
----
-456
-40

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

skipif mysql # not compatible
query I rowsort label-3913
SELECT + - 16 + + CAST ( NULL AS INTEGER ) + - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT + ( + NULLIF ( + COUNT( * ), + + 30 + - - SUM( 75 ) - + 9 DIV - - COUNT( * ) ) ) DIV - + 94 * 94
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT + ( + NULLIF ( + COUNT ( * ), + + 30 + - - SUM ( 75 ) - + 9 / - - COUNT ( * ) ) ) / - + 94 * 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT - 77 DIV - 95 * MIN( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 77 / - 95 * MIN ( 86 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3916
SELECT ALL + 5 * 67 * + CAST( - COUNT( * ) AS DECIMAL ) + - CAST( NULL AS SIGNED ) * 63 + + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + 5 * 67 * + CAST ( - COUNT ( * ) AS REAL ) + - CAST ( NULL AS INTEGER ) * 63 + + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - 28 + + ( - NULLIF ( - 23, COUNT( * ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - 28 + + ( - NULLIF ( - 23, COUNT ( * ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - + MIN( DISTINCT - 24 ) * + 12 - - NULLIF ( 38, - 85 )
----
326

skipif mysql # not compatible
query I rowsort label-3918
SELECT - + MIN ( DISTINCT - 24 ) * + 12 - - NULLIF ( 38, - 85 )
----
326

query II rowsort
SELECT + 28 * + - 63 col0, 59 AS col0
----
-1764
59

query II rowsort
SELECT 82 AS col0, - 48
----
82
-48

query II rowsort
SELECT - 95 AS col2, + 39 + - + 62 * + 84 col1
----
-95
-5169

query I rowsort
SELECT ALL + 58 - - + 30 col0
----
88

query I rowsort
SELECT DISTINCT - 86 * - 59
----
5074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3924
SELECT - 63 col2, + 69 DIV + 9 + COUNT( * )
----
-63
8

skipif mysql # not compatible
query II rowsort label-3924
SELECT - 63 col2, + 69 / + 9 + COUNT ( * )
----
-63
8

query I rowsort
SELECT ALL - 95 * - 61 * + 73
----
423035

query I rowsort
SELECT 78 * + + 7
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT - CASE - 54 WHEN + + COUNT( * ) THEN NULL WHEN 84 * - + 33 THEN 67 WHEN - COUNT( * ) THEN - 27 * MIN( ALL - 92 ) ELSE - + MIN( - 32 ) * - - 44 END
----
-1408

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - CASE - 54 WHEN + + COUNT ( * ) THEN NULL WHEN 84 * - + 33 THEN 67 WHEN - COUNT ( * ) THEN - 27 * MIN ( ALL - 92 ) ELSE - + MIN ( - 32 ) * - - 44 END
----
-1408

query I rowsort
SELECT ALL - 68 * 47 AS col2
----
-3196

query I rowsort
SELECT 98 + - 0
----
98

query I rowsort
SELECT 96 * + 30 - - 81
----
2961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT - ( - 57 ) * COUNT( * ) + - 23 DIV + + 42 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3931
SELECT - ( - 57 ) * COUNT ( * ) + - 23 / + + 42 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT ALL - CAST( - ( - 50 ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - CAST ( - ( - 50 ) AS INTEGER )
----
-50

query I rowsort
SELECT 13 * 38 AS col2
----
494

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT DISTINCT - 44 DIV - 5 + 73 + - + 65
----
16

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - 44 / - 5 + 73 + - + 65
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - 33 + + - CAST( NULL AS SIGNED ) + - + AVG ( ALL - 49 ) * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - 33 + + - CAST ( NULL AS INTEGER ) + - + AVG ( ALL - 49 ) * + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT ALL - + 1 col2, + SUM( 80 ) + 46 col2
----
-1
126

skipif mysql # not compatible
query II rowsort label-3936
SELECT ALL - + 1 col2, + SUM ( 80 ) + 46 col2
----
-1
126

query I rowsort
SELECT ALL + + 10 + 47 * 16 + - 6 AS col2
----
756

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL - - NULLIF ( 87, + 59 * - - COUNT( * ) * - - 93 * COUNT( DISTINCT - 73 ) + + 25 - + 33 )
----
87

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - - NULLIF ( 87, + 59 * - - COUNT ( * ) * - - 93 * COUNT ( DISTINCT - 73 ) + + 25 - + 33 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3940
SELECT ALL ( CASE + AVG ( - + 79 ) WHEN ( + + 3 ) * 98 THEN ( - 78 ) WHEN + 77 - + - COUNT( * ) THEN NULL WHEN + MIN( 5 ) THEN NULL END ) + - 33, - 99 col1
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-3940
SELECT ALL ( CASE + AVG ( - + 79 ) WHEN ( + + 3 ) * 98 THEN ( - 78 ) WHEN + 77 - + - COUNT ( * ) THEN NULL WHEN + MIN ( 5 ) THEN NULL END ) + - 33, - 99 col1
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL MIN( - 43 ) * - 7
----
301

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL MIN ( - 43 ) * - 7
----
301

query I rowsort
SELECT ALL - 48 * 94
----
-4512

query I rowsort
SELECT ALL + 90 + - 86 + 74
----
78

query I rowsort
SELECT DISTINCT - + 56 + - + 49
----
-105

query I rowsort
SELECT DISTINCT + - 93 + - 47 + - - NULLIF ( - 38, - + 38 ) * + - ( + 12 ) - 59 * - + ( + - 28 )
----
NULL

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

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

query II rowsort
SELECT 5 AS col0, + 90 * 51 + + ( 51 )
----
5
4641

query I rowsort
SELECT 57 * 64
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT MAX( 15 ) - - - 80 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3949
SELECT MAX ( 15 ) - - - 80 AS col1
----
-65

query I rowsort
SELECT ( - 58 ) + - 28
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-3951
SELECT ALL 80 DIV + 8, + 2 DIV + 71 AS col2
----
10
0

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL 80 / + 8, + 2 / + 71 AS col2
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT COUNT( * ) * - MIN( - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT COUNT ( * ) * - MIN ( - 54 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT NULLIF ( - 26, + 9 + - 4 + + + 60 DIV + 15 ) DIV + 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3953
SELECT NULLIF ( - 26, + 9 + - 4 + + + 60 / + 15 ) / + 23 AS col2
----
-1

query I rowsort
SELECT ALL 32 * + - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT MAX( - NULLIF ( - - 78, + 6 ) ) * - 34 * + 52 + + - 57 + - 49 * - - 54 * + ( + CASE - NULLIF ( + - 12, - CAST( NULL AS SIGNED ) * - COALESCE ( COUNT( * ), 15 ) / + 56 + + 19 * + 18 ) WHEN 34 THEN - 7 + + + 58 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT MAX ( - NULLIF ( - - 78, + 6 ) ) * - 34 * + 52 + + - 57 + - 49 * - - 54 * + ( + CASE - NULLIF ( + - 12, - CAST ( NULL AS INTEGER ) * - COALESCE ( COUNT ( * ), 15 ) / + 56 + + 19 * + 18 ) WHEN 34 THEN - 7 + + + 58 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT ( + 64 ) + COUNT( * ) + - 67 DIV - 6 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3956
SELECT ( + 64 ) + COUNT ( * ) + - 67 / - 6 AS col1
----
76

query I rowsort
SELECT ALL 8 * + 85 * 24
----
16320

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT 17 + + COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3958
SELECT 17 + + COUNT ( * ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT 33 + - 21, CASE NULLIF ( - 59, - 16 ) WHEN 15 + 56 THEN NULL WHEN + ( 55 ) / - 51 + - 12 + 26 - 38 THEN + COUNT( * ) * 37 + - - 55 ELSE NULL END + 11 AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3959
SELECT 33 + - 21, CASE NULLIF ( - 59, - 16 ) WHEN 15 + 56 THEN NULL WHEN + ( 55 ) / - 51 + - 12 + 26 - 38 THEN + COUNT ( * ) * 37 + - - 55 ELSE NULL END + 11 AS col2
----
12
NULL

query I rowsort
SELECT 36 * - + CASE - 41 WHEN + 0 THEN + AVG ( DISTINCT 50 ) * + - 54 + + 76 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3961
SELECT 7 * - + 97 AS col0, - ( 67 ) DIV + 51 AS col0
----
-679
-1

skipif mysql # not compatible
query II rowsort label-3961
SELECT 7 * - + 97 AS col0, - ( 67 ) / + 51 AS col0
----
-679
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - CASE - 0 WHEN + COUNT( * ) THEN 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - CASE - 0 WHEN + COUNT ( * ) THEN 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT COUNT( - - ( - 96 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3963
SELECT COUNT ( - - ( - 96 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL - 26 * + COUNT( * ) / + 55 + + 34 / - CASE + + 33 WHEN - CASE + 97 WHEN - 84 + + + NULLIF ( - MAX( ALL - ( - + 33 ) ), - 73 / - + CASE + 52 WHEN - 15 THEN + 66 / + 88 * + 33 + + 89 * 23 END ) + 56 THEN NULL WHEN - - COUNT( * ) + - 39 / - - 47 * + - NULLIF ( 35, + 95 ) THEN + + 29 ELSE NULL END THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - 26 * + COUNT ( * ) / + 55 + + 34 / - CASE + + 33 WHEN - CASE + 97 WHEN - 84 + + + NULLIF ( - MAX ( ALL - ( - + 33 ) ), - 73 / - + CASE + 52 WHEN - 15 THEN + 66 / + 88 * + 33 + + 89 * 23 END ) + 56 THEN NULL WHEN - - COUNT ( * ) + - 39 / - - 47 * + - NULLIF ( 35, + 95 ) THEN + + 29 ELSE NULL END THEN - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT 40 - 48 + 89 * 6 + + + COUNT( * ) - 17
----
510

skipif mysql # not compatible
query I rowsort label-3965
SELECT 40 - 48 + 89 * 6 + + + COUNT ( * ) - 17
----
510

query I rowsort
SELECT ALL - - 96 + - - 11
----
107

query I rowsort
SELECT DISTINCT - CASE + 0 WHEN - NULLIF ( - 10, - 91 / 68 ) * - 13 * 25 + - - 43 * - 95 + + 20 * + - 73 THEN - 58 END + - - 95
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + 88 + + - COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - - 4 + + 68 + - ( + MAX( - ( - 88 ) ) ) * 22 * - 6 * - - 23 * 33 + 72
----
8816688

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - - 4 + + 68 + - ( + MAX ( - ( - 88 ) ) ) * 22 * - 6 * - - 23 * 33 + 72
----
8816688

query I rowsort
SELECT ALL + 39 + + + 13 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT MIN( 45 ) + COALESCE ( + 1, + ( + + 36 ) ) col1
----
46

skipif mysql # not compatible
query I rowsort label-3971
SELECT MIN ( 45 ) + COALESCE ( + 1, + ( + + 36 ) ) col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - 59 * - + 61 * + COUNT( * ) * - 40
----
-143960

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 59 * - + 61 * + COUNT ( * ) * - 40
----
-143960

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT DISTINCT + 95 DIV + 54 + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + 95 / + 54 + 44 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL + + COUNT( * ) - 88 * - CAST( 82 AS SIGNED ) AS col0
----
7217

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + + COUNT ( * ) - 88 * - CAST ( 82 AS INTEGER ) AS col0
----
7217

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT - 12 + + COUNT( * ) AS col2, + 81
----
-11
81

skipif mysql # not compatible
query II rowsort label-3975
SELECT - 12 + + COUNT ( * ) AS col2, + 81
----
-11
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT + + ( - 72 ) * + 82 AS col0, + 85 * - MAX( - - 78 ) AS col2
----
-5904
-6630

skipif mysql # not compatible
query II rowsort label-3976
SELECT + + ( - 72 ) * + 82 AS col0, + 85 * - MAX ( - - 78 ) AS col2
----
-5904
-6630

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

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

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - 13 * - COUNT ( * ) AS col1
----
13

query I rowsort
SELECT DISTINCT CASE + 66 WHEN - 26 THEN NULL WHEN + 64 THEN NULL WHEN + + 80 THEN - 46 * + 49 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT + 95 * + CAST( + 43 AS SIGNED ) AS col2
----
4085

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT + 95 * + CAST ( + 43 AS INTEGER ) AS col2
----
4085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL NULLIF ( + 1, 41 - + ( CAST( NULL AS SIGNED ) ) * + MIN( ALL 82 ) * 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL NULLIF ( + 1, 41 - + ( CAST ( NULL AS INTEGER ) ) * + MIN ( ALL 82 ) * 5 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT CASE + + 76 WHEN - 42 * COUNT( * ) / + 67 + + 39 THEN - 38 - + 31 / 32 * + + 14 * + 43 WHEN - - 41 * + MIN( + 51 ) * CAST( - - MAX( DISTINCT + ( 51 ) ) AS SIGNED ) * - - 91 + + 60 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT CASE + + 76 WHEN - 42 * COUNT ( * ) / + 67 + + 39 THEN - 38 - + 31 / 32 * + + 14 * + 43 WHEN - - 41 * + MIN ( + 51 ) * CAST ( - - MAX ( DISTINCT + ( 51 ) ) AS INTEGER ) * - - 91 + + 60 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - NULLIF ( - ( - COUNT( * ) ), ( 24 ) + - 42 - - ( + 31 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT - NULLIF ( - ( - COUNT ( * ) ), ( 24 ) + - 42 - - ( + 31 ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT + 20 * - 33
----
-660

query II rowsort
SELECT ALL 60 AS col1, + 13 AS col0
----
60
13

query I rowsort
SELECT - NULLIF ( - 79, + 22 ) - + 97
----
-18

query II rowsort
SELECT - NULLIF ( 77, - 62 ), + 45 AS col2
----
-77
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + COUNT( - COALESCE ( - 60, - 20 ) ) + + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + COUNT ( - COALESCE ( - 60, - 20 ) ) + + - 78
----
-77

query I rowsort
SELECT DISTINCT ( 78 ) + - 62
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3991
SELECT DISTINCT COALESCE ( - 43, CASE + 60 WHEN - 24 * 72 + - - MIN( - 56 ) THEN + - 12 DIV - 37 + COUNT( - ( 21 ) ) WHEN COUNT( * ) DIV 86 * - 17 THEN NULL END * 11 * + 11 ) + - 58 * COUNT( + + 58 ) AS col2, - 48 + - 4 * - ( + + 25 )
----
-101
52

skipif mysql # not compatible
query II rowsort label-3991
SELECT DISTINCT COALESCE ( - 43, CASE + 60 WHEN - 24 * 72 + - - MIN ( - 56 ) THEN + - 12 / - 37 + COUNT ( - ( 21 ) ) WHEN COUNT ( * ) / 86 * - 17 THEN NULL END * 11 * + 11 ) + - 58 * COUNT ( + + 58 ) AS col2, - 48 + - 4 * - ( + + 25 )
----
-101
52

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

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

query I rowsort
SELECT DISTINCT 7 + - 52 + 4 * - 88 col1
----
-397

query II rowsort
SELECT ALL 34 AS col0, + 16 * + 15 * - 19 AS col0
----
34
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 42 * COUNT( * ) + - + 9 * + 64
----
-534

skipif mysql # not compatible
query I rowsort label-3995
SELECT 42 * COUNT ( * ) + - + 9 * + 64
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + ( - + COALESCE ( - + ( + 73 ), - 57 + + COUNT( * ) + - 78 ) ) * 69
----
5037

skipif mysql # not compatible
query I rowsort label-3996
SELECT + ( - + COALESCE ( - + ( + 73 ), - 57 + + COUNT ( * ) + - 78 ) ) * 69
----
5037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL - + 34 * - + 83 + + - MAX( ALL + 68 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - + 34 * - + 83 + + - MAX ( ALL + 68 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT - COALESCE ( + 4, + - NULLIF ( - 98, - 18 ), + 58 * - 44 ) DIV + + 55 + - 84 * COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3998
SELECT - COALESCE ( + 4, + - NULLIF ( - 98, - 18 ), + 58 * - 44 ) / + + 55 + - 84 * COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT CASE - 57 WHEN + + COALESCE ( 66, - - 75 + 18 / 95 ) THEN COUNT( * ) END / NULLIF ( + + 17, 6 ) - - ( 9 ) - - 83 + + 13 * 49 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT CASE - 57 WHEN + + COALESCE ( 66, - - 75 + 18 / 95 ) THEN COUNT ( * ) END / NULLIF ( + + 17, 6 ) - - ( 9 ) - - 83 + + 13 * 49 * + 12
----
NULL

query I rowsort
SELECT DISTINCT 59 * - 94 * - ( 58 ) * - - 79 + + 96 * - + ( 70 )
----
25405052

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4002
SELECT - COUNT( * ) + COUNT( 50 ) + NULLIF ( + 49, + 48 ) * + - ( - 67 ) + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( * ) + COUNT ( 50 ) + NULLIF ( + 49, + 48 ) * + - ( - 67 ) + - - CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + MIN( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4004
SELECT + MIN ( 24 ) AS col0
----
24

query I rowsort
SELECT - + 91 * + 79 + - 62 AS col1
----
-7251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT - 18 * 93 DIV + COUNT( * ) + 44
----
-1630

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 18 * 93 / + COUNT ( * ) + 44
----
-1630

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT ALL + COUNT( ALL - + 13 ) AS col1, - 17 - - - 17 col0
----
1
-34

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + COUNT ( ALL - + 13 ) AS col1, - 17 - - - 17 col0
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT - CAST( + - 64 AS SIGNED ) DIV - ( - + COUNT( * ) ) + + 16
----
80

skipif mysql # not compatible
query I rowsort label-4010
SELECT - CAST ( + - 64 AS INTEGER ) / - ( - + COUNT ( * ) ) + + 16
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL CASE + + 93 WHEN - 98 + 34 * ( COALESCE ( + + COALESCE ( - 13, + 66, - CASE 95 WHEN + - 54 THEN + 57 + - 44 WHEN - 66 THEN NULL END * 35 + - 38 + - + NULLIF ( - 58, - 60 * - 79 + 25 + - 62 + - - COALESCE ( 92, + MIN( ALL + - ( ( - 59 ) ) ) - - COALESCE ( + + COUNT( * ), 31 + 57, ( 22 ), - CAST( 97 AS SIGNED ) / 95 ) ) - 19 / + 20 ) ), + 40, + 36 ) ) + + COUNT( * ) THEN + 16 WHEN 14 * CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL CASE + + 93 WHEN - 98 + 34 * ( COALESCE ( + + COALESCE ( - 13, + 66, - CASE 95 WHEN + - 54 THEN + 57 + - 44 WHEN - 66 THEN NULL END * 35 + - 38 + - + NULLIF ( - 58, - 60 * - 79 + 25 + - 62 + - - COALESCE ( 92, + MIN ( ALL + - ( ( - 59 ) ) ) - - COALESCE ( + + COUNT ( * ), 31 + 57, ( 22 ), - CAST ( 97 AS INTEGER ) / 95 ) ) - 19 / + 20 ) ), + 40, + 36 ) ) + + COUNT ( * ) THEN + 16 WHEN 14 * CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT + COALESCE ( + + 91, - - 4 - - - 14 + + + CAST( NULL AS SIGNED ), 70 ) / CAST( NULL AS SIGNED ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + COALESCE ( + + 91, - - 4 - - - 14 + + + CAST ( NULL AS INTEGER ), 70 ) / CAST ( NULL AS INTEGER ) + 95
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL NULLIF ( + 32, + COUNT( * ) + + CAST( + 94 AS SIGNED ) * + - 67 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL NULLIF ( + 32, + COUNT ( * ) + + CAST ( + 94 AS INTEGER ) * + - 67 ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4015
SELECT - 15 DIV COUNT( * ), 75 AS col1
----
-15
75

skipif mysql # not compatible
query II rowsort label-4015
SELECT - 15 / COUNT ( * ), 75 AS col1
----
-15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - 36 + + - COUNT( * ) * - 40 col0
----
4

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - 36 + + - COUNT ( * ) * - 40 col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT - 27 * + COALESCE ( + - 39, + 97 ) * - + COUNT( * ) * - COALESCE ( + 42, + 19 * - 78 + + - 18 * - 22, + CAST( NULL AS SIGNED ) ) AS col2
----
44226

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - 27 * + COALESCE ( + - 39, + 97 ) * - + COUNT ( * ) * - COALESCE ( + 42, + 19 * - 78 + + - 18 * - 22, + CAST ( NULL AS INTEGER ) ) AS col2
----
44226

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

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

query I rowsort
SELECT + 14 - + 46
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT CASE - 18 WHEN - - COUNT( * ) THEN + - 28 WHEN 48 - - + ( - - 55 ) - - 90 * + - 93 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT CASE - 18 WHEN - - COUNT ( * ) THEN + - 28 WHEN 48 - - + ( - - 55 ) - - 90 * + - 93 THEN - COUNT ( * ) END
----
NULL

query II rowsort
SELECT DISTINCT + 82 + - CASE + 16 WHEN + - 25 THEN + NULLIF ( - 93, + + 37 ) ELSE NULL END / - + 71 - - + 42, 34 * - 93 AS col0
----
NULL
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT 14 + - 58 * - MIN( - 84 ) + 24
----
-4834

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT 14 + - 58 * - MIN ( - 84 ) + 24
----
-4834

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL ( - 45 ) + - - MAX( ALL + 40 )
----
-5

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL ( - 45 ) + - - MAX ( ALL + 40 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT ALL ( - - 47 ) AS col2, COUNT( ALL - 6 ) AS col1
----
47
1

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL ( - - 47 ) AS col2, COUNT ( ALL - 6 ) AS col1
----
47
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4025
SELECT - 55 + - 29 - 82 * 29 - + + COUNT( * ) * CAST( + 94 AS SIGNED )
----
-2556

skipif mysql # not compatible
query I rowsort label-4025
SELECT - 55 + - 29 - 82 * 29 - + + COUNT ( * ) * CAST ( + 94 AS INTEGER )
----
-2556

query I rowsort
SELECT ALL + 47 * ( - 60 )
----
-2820

query I rowsort
SELECT DISTINCT - ( 27 ) + - 27 AS col0
----
-54

query I rowsort
SELECT - 42 * + 2 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT + 7 + CASE - 31 WHEN - + 28 + - 65 THEN + 45 / + + 79 * + + CAST( NULL AS SIGNED ) * 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 7 + CASE - 31 WHEN - + 28 + - 65 THEN + 45 / + + 79 * + + CAST ( NULL AS INTEGER ) * 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL COUNT( * ) + - 73 * 98 + 4 * + 8 DIV + 62
----
-7153

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COUNT ( * ) + - 73 * 98 + 4 * + 8 / + 62
----
-7153

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + MAX( + - ( 53 ) ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-4031
SELECT + MAX ( + - ( 53 ) ) col0
----
-53

query II rowsort
SELECT + NULLIF ( + + 57, 50 ) + 71 AS col0, 13 AS col2
----
128
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT ALL 3 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 3 / + 67
----
0

query II rowsort
SELECT + - 66 * - 27 AS col2, - 94 AS col0
----
1782
-94

query I rowsort
SELECT + + 91 * 33
----
3003

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4037
SELECT ALL - CAST( NULL AS SIGNED ) * 69 - + COUNT( * ) - + MIN( ALL 45 ) + - COUNT( * ) / 12 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - CAST ( NULL AS INTEGER ) * 69 - + COUNT ( * ) - + MIN ( ALL 45 ) + - COUNT ( * ) / 12 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT MAX( + ( - 36 ) ) * 55 - 12
----
-1992

skipif mysql # not compatible
query I rowsort label-4038
SELECT MAX ( + ( - 36 ) ) * 55 - 12
----
-1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT ALL + 36 * - 93 DIV + COUNT( * )
----
-3348

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + 36 * - 93 / + COUNT ( * )
----
-3348

query I rowsort
SELECT 15 * - 4 AS col0
----
-60

query II rowsort
SELECT DISTINCT - - ( - 84 ) AS col2, 49 col0
----
-84
49

query I rowsort
SELECT ALL 77 * - 17
----
-1309

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

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - + MIN ( DISTINCT - 86 ) AS col2
----
86

query II rowsort
SELECT ALL - 27 AS col2, + ( 69 ) * 13 AS col2
----
-27
897

query I rowsort
SELECT ( + 94 ) * + 31 * + - 84 + - ( + NULLIF ( - + 23, ( - + 55 ) ) ) AS col1
----
-244753

query I rowsort
SELECT 8 * + 37 AS col1
----
296

query I rowsort
SELECT 91 + - + 47
----
44

query I rowsort
SELECT ALL - 41 * 61
----
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT - COUNT( * ) + + 31 col2
----
30

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - COUNT ( * ) + + 31 col2
----
30

query I rowsort
SELECT ALL 50 + - 52 AS col1
----
-2

query I rowsort
SELECT ALL - ( - + 61 ) + 66
----
127

query I rowsort
SELECT 23 * + - 38
----
-874

query I rowsort
SELECT DISTINCT 85 + + 56
----
141

query I rowsort
SELECT DISTINCT - 24 + - 2
----
-26

query I rowsort
SELECT 36 + + 24 + - 98 - - - 75 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - COUNT( * ) + + 68 col1
----
67

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - COUNT ( * ) + + 68 col1
----
67

query I rowsort
SELECT 23 - + 4 + - 78 * - - 45 * + + 20 AS col2
----
-70181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4058
SELECT - 81 AS col1, - CASE 91 WHEN CASE - - 15 WHEN - + 4 THEN + + 93 + - + 28 * + + 5 / + 98 * + ( - 87 ) * + + 78 + MAX( DISTINCT + 91 ) * + 77 WHEN + 23 * + 60 * - - 6 + + 12 THEN NULL WHEN - + 32 THEN - 33 END + - - 89 + + 96 * + + 52 * - - 18 THEN NULL WHEN + CAST( + - 57 AS SIGNED ) * + + AVG ( ALL + 0 ) THEN - COUNT( * ) END
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-4058
SELECT - 81 AS col1, - CASE 91 WHEN CASE - - 15 WHEN - + 4 THEN + + 93 + - + 28 * + + 5 / + 98 * + ( - 87 ) * + + 78 + MAX ( DISTINCT + 91 ) * + 77 WHEN + 23 * + 60 * - - 6 + + 12 THEN NULL WHEN - + 32 THEN - 33 END + - - 89 + + 96 * + + 52 * - - 18 THEN NULL WHEN + CAST ( + - 57 AS INTEGER ) * + + AVG ( ALL + 0 ) THEN - COUNT ( * ) END
----
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT 61 * - + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4059
SELECT 61 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT 35 DIV - SUM( - 31 ) + - COUNT( * ) + + 30 - + 92 * + ( + 6 ) * + + 8
----
-4386

skipif mysql # not compatible
query I rowsort label-4060
SELECT 35 / - SUM ( - 31 ) + - COUNT ( * ) + + 30 - + 92 * + ( + 6 ) * + + 8
----
-4386

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT - + 38 col1, 31 * - + COUNT( * ) * - + 5 + - MIN( ALL - 83 )
----
-38
238

skipif mysql # not compatible
query II rowsort label-4061
SELECT - + 38 col1, 31 * - + COUNT ( * ) * - + 5 + - MIN ( ALL - 83 )
----
-38
238

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL - MAX( DISTINCT 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - MAX ( DISTINCT 58 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT - 89 * 12 DIV + 77
----
-13

skipif mysql # not compatible
query I rowsort label-4063
SELECT - 89 * 12 / + 77
----
-13

query I rowsort
SELECT ALL + + 97 * + 25
----
2425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + 55 * - NULLIF ( COALESCE ( 67, 88 + + COUNT( * ) + + 57 * 84 * + COUNT( * ) ), - COUNT( * ) - MIN( ALL + - 81 ) )
----
-3685

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 55 * - NULLIF ( COALESCE ( 67, 88 + + COUNT ( * ) + + 57 * 84 * + COUNT ( * ) ), - COUNT ( * ) - MIN ( ALL + - 81 ) )
----
-3685

query I rowsort
SELECT 53 * 33 AS col1
----
1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT 60 / - - 30 + + 74 + + - CAST( NULL AS SIGNED ) / - 1 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT 60 / - - 30 + + 74 + + - CAST ( NULL AS INTEGER ) / - 1 * - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 84 DIV 84 + 69 - + 89
----
-19

skipif mysql # not compatible
query I rowsort label-4069
SELECT 84 / 84 + 69 - + 89
----
-19

query I rowsort
SELECT + NULLIF ( + + 28, + + 66 - + - ( - - 59 ) ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4071
SELECT COUNT( * ) * - CAST( - - 75 AS SIGNED ) * - 49 + + COUNT( * ) DIV - NULLIF ( - 58, + 73 * - - 84 ) + CAST( ( + + 32 ) AS SIGNED ) + 75 - - 74 + + 35 col0, 17 AS col1
----
3891
17

skipif mysql # not compatible
query II rowsort label-4071
SELECT COUNT ( * ) * - CAST ( - - 75 AS INTEGER ) * - 49 + + COUNT ( * ) / - NULLIF ( - 58, + 73 * - - 84 ) + CAST ( ( + + 32 ) AS INTEGER ) + 75 - - 74 + + 35 col0, 17 AS col1
----
3891
17

query I rowsort
SELECT ALL + 99 * - 37 AS col0
----
-3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT + 0 * + 76 * - NULLIF ( - 0, 55 * - + 16 + NULLIF ( + 47, - 37 ) - - - NULLIF ( - SUM( + 60 ), - COUNT( * ) ) - - CAST( - + 60 AS SIGNED ) * 46 + + CASE - 22 WHEN + 36 + - - 26 THEN NULL WHEN - 87 THEN + 38 + - - 58 ELSE 8 / + COUNT( * ) + + - 60 END ) + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 0 * + 76 * - NULLIF ( - 0, 55 * - + 16 + NULLIF ( + 47, - 37 ) - - - NULLIF ( - SUM ( + 60 ), - COUNT ( * ) ) - - CAST ( - + 60 AS INTEGER ) * 46 + + CASE - 22 WHEN + 36 + - - 26 THEN NULL WHEN - 87 THEN + 38 + - - 58 ELSE 8 / + COUNT ( * ) + + - 60 END ) + - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - ( - COUNT( * ) ) * - + 72 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT - ( - COUNT ( * ) ) * - + 72 * - COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT 8 DIV 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT 8 / 75 AS col1
----
0

query I rowsort
SELECT DISTINCT 51 + 52
----
103

query II rowsort
SELECT + 89 AS col0, + 69 AS col2
----
89
69

query I rowsort
SELECT 91 * + - 4 AS col0
----
-364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT 98 DIV ( + - ( - + COUNT( - 44 ) ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4079
SELECT 98 / ( + - ( - + COUNT ( - 44 ) ) ) AS col0
----
98

query I rowsort
SELECT ALL + 82 + + 43
----
125

query I rowsort
SELECT ALL 32 + + - 35 + 33 AS col0
----
30

query I rowsort
SELECT DISTINCT 61 + - 11 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT - MIN( - + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4083
SELECT - MIN ( - + 42 ) AS col1
----
42

query I rowsort
SELECT ALL 96 + - 16 + 56 AS col1
----
136

query I rowsort
SELECT 23 + 63
----
86

query II rowsort
SELECT - 76 col0, + 56
----
-76
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4087
SELECT ( - - COUNT( ALL + 52 ) ) + - - 80 AS col0, CAST( NULL AS DECIMAL ) * COUNT( * ) + - 57
----
81
NULL

skipif mysql # not compatible
query II rowsort label-4087
SELECT ( - - COUNT ( ALL + 52 ) ) + - - 80 AS col0, CAST ( NULL AS REAL ) * COUNT ( * ) + - 57
----
81
NULL

query II rowsort
SELECT 90, 70 AS col1
----
90
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4089
SELECT ALL + CASE - COUNT( + + 72 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 59 THEN - 21 ELSE NULL END AS col0, 36 + - 84 col1
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-4089
SELECT ALL + CASE - COUNT ( + + 72 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 59 THEN - 21 ELSE NULL END AS col0, 36 + - 84 col1
----
NULL
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4090
SELECT ALL 74, 58 * COALESCE ( + 42, COUNT( * ), + 77 * - + 64 DIV + 35 * - 22 + + 51 * 94 * - 20 ) AS col1
----
74
2436

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL 74, 58 * COALESCE ( + 42, COUNT ( * ), + 77 * - + 64 / + 35 * - 22 + + 51 * 94 * - 20 ) AS col1
----
74
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT ALL - CAST( + COALESCE ( - MAX( ALL + - 52 ), - 43 ) AS SIGNED ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - CAST ( + COALESCE ( - MAX ( ALL + - 52 ), - 43 ) AS INTEGER ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - 69 + 86 + + COUNT( * ) + - 67 col1
----
-49

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 69 + 86 + + COUNT ( * ) + - 67 col1
----
-49

query I rowsort
SELECT 99 * + + 75 + 10 + ( - - 1 )
----
7436

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT 29 + + + 26 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4094
SELECT 29 + + + 26 * COUNT ( * )
----
55

query II rowsort
SELECT ALL 80 AS col0, 35
----
80
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT + 22 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT + 22 / 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT - 96 + - - 77 * COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 96 + - - 77 * COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT - - 84 + 50 AS col0
----
134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4099
SELECT ALL + CAST( 8 AS SIGNED ) DIV - - 8 + ( - COALESCE ( 86, + 77 ) ) + - - 21
----
-64

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + CAST ( 8 AS INTEGER ) / - - 8 + ( - COALESCE ( 86, + 77 ) ) + - - 21
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT ALL + 11 AS col1, + COUNT( * ) * + 41
----
11
41

skipif mysql # not compatible
query II rowsort label-4100
SELECT ALL + 11 AS col1, + COUNT ( * ) * + 41
----
11
41

query II rowsort
SELECT DISTINCT + 61 * 88 AS col1, - 42 + + 73 AS col2
----
5368
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT 36 DIV + - 18 + + 18 + - 37 * + 59 AS col1
----
-2167

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT 36 / + - 18 + + 18 + - 37 * + 59 AS col1
----
-2167

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT DISTINCT + - 50 AS col2, 43 * COUNT( * ) * - 21
----
-50
-903

skipif mysql # not compatible
query II rowsort label-4103
SELECT DISTINCT + - 50 AS col2, 43 * COUNT ( * ) * - 21
----
-50
-903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT - - COUNT( ALL CAST( ( - + 6 ) AS SIGNED ) ) * + + CASE + - AVG ( 97 ) WHEN 80 THEN NULL WHEN 82 * + 86 * 6 THEN - - 71 ELSE 18 END AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - COUNT ( ALL CAST ( ( - + 6 ) AS INTEGER ) ) * + + CASE + - AVG ( 97 ) WHEN 80 THEN NULL WHEN 82 * + 86 * 6 THEN - - 71 ELSE 18 END AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL + NULLIF ( + 3, + + CASE + 28 WHEN + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), + 86 ) * - 47 THEN - + 54 END * - - 96 + - + 62 + + 36 ) * + 76 + - - COUNT( * )
----
229

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + NULLIF ( + 3, + + CASE + 28 WHEN + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), + 86 ) * - 47 THEN - + 54 END * - - 96 + - + 62 + + 36 ) * + 76 + - - COUNT ( * )
----
229

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT + 49, 29 - 46 + COUNT( * ) AS col1
----
49
-16

skipif mysql # not compatible
query II rowsort label-4106
SELECT + 49, 29 - 46 + COUNT ( * ) AS col1
----
49
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT - 99 col2, - COUNT( * ) AS col0
----
-99
-1

skipif mysql # not compatible
query II rowsort label-4107
SELECT - 99 col2, - COUNT ( * ) AS col0
----
-99
-1

query I rowsort
SELECT ALL - 22 * - 18 + 39 + + 55
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL + CAST( 93 AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + CAST ( 93 AS INTEGER ) AS col2
----
93

query I rowsort
SELECT COALESCE ( + 54, + 48 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT 96 * + + COUNT( * ) + - + 7 * 58 + + COUNT( * ) - - + 70 * + - COUNT( * ) * - + MAX( ALL 60 )
----
3891

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT 96 * + + COUNT ( * ) + - + 7 * 58 + + COUNT ( * ) - - + 70 * + - COUNT ( * ) * - + MAX ( ALL 60 )
----
3891

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT - 6 * 55 + 87 DIV 37 * 69 + 26 + 62
----
-104

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - 6 * 55 + 87 / 37 * 69 + 26 + 62
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT + ( COUNT( - 66 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + ( COUNT ( - 66 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT COUNT( * ) * + 9 * 78 AS col1
----
702

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT COUNT ( * ) * + 9 * 78 AS col1
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT + MAX( + 55 ) DIV ( - - 19 )
----
2

skipif mysql # not compatible
query I rowsort label-4115
SELECT + MAX ( + 55 ) / ( - - 19 )
----
2

query I rowsort
SELECT - 2 * - 39
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + COUNT( * ) * - 18 * 79
----
-1422

skipif mysql # not compatible
query I rowsort label-4117
SELECT + COUNT ( * ) * - 18 * 79
----
-1422

query I rowsort
SELECT - 78 + 23 * + 10
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT MAX( DISTINCT ( + 10 ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4119
SELECT MAX ( DISTINCT ( + 10 ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT MAX( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4120
SELECT MAX ( 6 )
----
6

query II rowsort
SELECT ALL - 43 * + 35 AS col1, 2 + 82 AS col1
----
-1505
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT 7 - - + COALESCE ( + 17, + 47 * + NULLIF ( + + 6, + - 70 + CASE + + 99 WHEN + - 39 * + 26 THEN 85 END + + + 0 * + SUM( DISTINCT - 50 ) / 73 ) + - 55 + + - 61, 67 * 57 - + - 46 + + COALESCE ( + 35, + 84 ) * + + 0 * - - 27 + + 98 )
----
24

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT 7 - - + COALESCE ( + 17, + 47 * + NULLIF ( + + 6, + - 70 + CASE + + 99 WHEN + - 39 * + 26 THEN 85 END + + + 0 * + SUM ( DISTINCT - 50 ) / 73 ) + - 55 + + - 61, 67 * 57 - + - 46 + + COALESCE ( + 35, + 84 ) * + + 0 * - - 27 + + 98 )
----
24

query I rowsort
SELECT - COALESCE ( + + 43, + 36 + + - 54 ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4124
SELECT DISTINCT + COALESCE ( + 70, + - 78 + + - 24, + CASE + 96 WHEN - CAST( NULL AS DECIMAL ) * - 95 * 24 THEN NULL WHEN - 62 THEN COUNT( * ) * + CASE - - 33 WHEN + + COUNT( * ) - + 16 * + - COALESCE ( + + 15, - COUNT( * ) + + SUM( - 77 ) ) + + + CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + CASE 47 WHEN 43 THEN NULL ELSE 87 END + + + CAST( + COUNT( + 59 ) AS SIGNED ) + - 33 * + - 25 - + + 32 * - 3 * 54 THEN NULL WHEN ( - CAST( CASE 29 WHEN COUNT( * ) * 77 THEN + 92 + + 97 WHEN 58 + 33 THEN NULL ELSE NULL END AS SIGNED ) ) THEN 81 ELSE NULL END THEN + 22 ELSE NULL END + ( + 47 + 93 ) * + MAX( ALL - 62 ) END )
----
70

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + COALESCE ( + 70, + - 78 + + - 24, + CASE + 96 WHEN - CAST ( NULL AS REAL ) * - 95 * 24 THEN NULL WHEN - 62 THEN COUNT ( * ) * + CASE - - 33 WHEN + + COUNT ( * ) - + 16 * + - COALESCE ( + + 15, - COUNT ( * ) + + SUM ( - 77 ) ) + + + CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + CASE 47 WHEN 43 THEN NULL ELSE 87 END + + + CAST ( + COUNT ( + 59 ) AS INTEGER ) + - 33 * + - 25 - + + 32 * - 3 * 54 THEN NULL WHEN ( - CAST ( CASE 29 WHEN COUNT ( * ) * 77 THEN + 92 + + 97 WHEN 58 + 33 THEN NULL ELSE NULL END AS INTEGER ) ) THEN 81 ELSE NULL END THEN + 22 ELSE NULL END + ( + 47 + 93 ) * + MAX ( ALL - 62 ) END )
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4125
SELECT + 10 * 33 DIV + + 18 col2, 22
----
18
22

skipif mysql # not compatible
query II rowsort label-4125
SELECT + 10 * 33 / + + 18 col2, 22
----
18
22

query I rowsort
SELECT + + 93 - + 97 * + 4
----
-295

query I rowsort
SELECT + - 18 + - 53
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT - MAX( 51 ) AS col2, + 9
----
-51
9

skipif mysql # not compatible
query II rowsort label-4128
SELECT - MAX ( 51 ) AS col2, + 9
----
-51
9

query I rowsort
SELECT - + 54 * + 46 + 37
----
-2447

query I rowsort
SELECT ALL + ( + 32 ) * - 27 AS col1
----
-864

query I rowsort
SELECT + + 43 + - + 62 + + 92 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL - 38 * 68 + - CASE - 36 WHEN - COALESCE ( COALESCE ( + 47, + 61 - - + 21 ), + 89, + CAST( NULL AS SIGNED ) ) + + - 80 THEN ( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - 38 * 68 + - CASE - 36 WHEN - COALESCE ( COALESCE ( + 47, + 61 - - + 21 ), + 89, + CAST ( NULL AS INTEGER ) ) + + - 80 THEN ( 75 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL 86 * CAST( - MAX( 95 ) AS SIGNED ) col2
----
-8170

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL 86 * CAST ( - MAX ( 95 ) AS INTEGER ) col2
----
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - + CASE + 19 WHEN - - 59 / 84 + + + 88 + + COUNT( * ) + COUNT( * ) + MAX( - + 19 ) + 28 THEN + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT - + CASE + 19 WHEN - - 59 / 84 + + + 88 + + COUNT ( * ) + COUNT ( * ) + MAX ( - + 19 ) + 28 THEN + 82 END AS col0
----
NULL

query I rowsort
SELECT ALL - + ( 72 ) + - 87 + + - 88
----
-247

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT + + 94 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-4136
SELECT + + 94 / - 42
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT DISTINCT - COUNT( * ) + + SUM( 75 ) AS col2, 51 AS col2
----
74
51

skipif mysql # not compatible
query II rowsort label-4137
SELECT DISTINCT - COUNT ( * ) + + SUM ( 75 ) AS col2, 51 AS col2
----
74
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + COUNT( * ) + - - 99 + + 71
----
171

skipif mysql # not compatible
query I rowsort label-4138
SELECT + COUNT ( * ) + - - 99 + + 71
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4139
SELECT ALL COUNT( 82 ) + 2 * + COALESCE ( - - 39, 28, 51 ) + - + 85 - + + 87 * + 53 * - 89 * + + 80 + - 48 * 56 DIV 59 AS col1, - 11 * CAST( - - 2 AS SIGNED ) + - + 54 * - 37 * + - 86
----
32830269
-171850

skipif mysql # not compatible
query II rowsort label-4139
SELECT ALL COUNT ( 82 ) + 2 * + COALESCE ( - - 39, 28, 51 ) + - + 85 - + + 87 * + 53 * - 89 * + + 80 + - 48 * 56 / 59 AS col1, - 11 * CAST ( - - 2 AS INTEGER ) + - + 54 * - 37 * + - 86
----
32830269
-171850

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT - 10 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT - 10 / - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT + 29 * + 39 + + COUNT( * ) AS col2
----
1132

skipif mysql # not compatible
query I rowsort label-4141
SELECT + 29 * + 39 + + COUNT ( * ) AS col2
----
1132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT + - 12 DIV - 35 - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + - 12 / - 35 - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT ALL + - COUNT( * ) DIV - 95 + NULLIF ( - 2, 0 + + - 5 * + - 35 * + 76 ) + - - 40 * + 19 AS col2
----
758

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + - COUNT ( * ) / - 95 + NULLIF ( - 2, 0 + + - 5 * + - 35 * + 76 ) + - - 40 * + 19 AS col2
----
758

query I rowsort
SELECT 36 * + 58 - 84 AS col0
----
2004

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + SUM( + 26 ) * + 17 * + COUNT( * )
----
442

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + SUM ( + 26 ) * + 17 * + COUNT ( * )
----
442

query I rowsort
SELECT + 68 + + 94 * - - 50 * 28
----
131668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL 92 / + 8 + - 32 + - + 80 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 92 / + 8 + - 32 + - + 80 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - 32 ) * + 88 * + - 17 AS col0
----
47872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT CAST( NULL AS SIGNED ) AS col2, ( - 93 )
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-4149
SELECT CAST ( NULL AS INTEGER ) AS col2, ( - 93 )
----
NULL
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4150
SELECT CAST( NULL AS SIGNED ) AS col1, + 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-4150
SELECT CAST ( NULL AS INTEGER ) AS col1, + 77
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT - ( - + NULLIF ( COUNT( * ), COUNT( * ) ) ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - ( - + NULLIF ( COUNT ( * ), COUNT ( * ) ) ) * + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT + 84 DIV + - 93 * + COUNT( * ) - + 79 - - 78 DIV 28
----
-77

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT + 84 / + - 93 * + COUNT ( * ) - + 79 - - 78 / 28
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + ( - + CASE + 65 WHEN + CAST( 86 AS SIGNED ) THEN NULL ELSE SUM( ALL - 2 ) END ) / - 60 - - + 41 - + + NULLIF ( 99, 80 ) * - + 15 + 57 - - 74 + 12 + - CASE 47 WHEN + + COUNT( * ) * + 69 THEN NULL WHEN 79 + + COUNT( * ) THEN + + 56 END / - 8 * - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + ( - + CASE + 65 WHEN + CAST ( 86 AS INTEGER ) THEN NULL ELSE SUM ( ALL - 2 ) END ) / - 60 - - + 41 - + + NULLIF ( 99, 80 ) * - + 15 + 57 - - 74 + 12 + - CASE 47 WHEN + + COUNT ( * ) * + 69 THEN NULL WHEN 79 + + COUNT ( * ) THEN + + 56 END / - 8 * - 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT ALL - 51 DIV - 77 - + + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - 51 / - 77 - + + 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT 10 * 20 + - + 79 + - COUNT( * ) + - 52
----
68

skipif mysql # not compatible
query I rowsort label-4155
SELECT 10 * 20 + - + 79 + - COUNT ( * ) + - 52
----
68

query I rowsort
SELECT ( - + 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL + COALESCE ( - - SUM( - 49 ), COUNT( * ), + 63 ) * - 19 * ( - 11 ) - + - ( 39 )
----
-10202

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + COALESCE ( - - SUM ( - 49 ), COUNT ( * ), + 63 ) * - 19 * ( - 11 ) - + - ( 39 )
----
-10202

query I rowsort
SELECT NULLIF ( 27, + - 83 ) AS col0
----
27

query II rowsort
SELECT ALL + 77 AS col1, 55 AS col2
----
77
55

query I rowsort
SELECT ALL 60 * - 81 * + 57
----
-277020

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT DISTINCT + ( - + 21 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + ( - + 21 ) / 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT 67 + + 76 + - ( - CAST( - 13 AS SIGNED ) ) + - 77 + 20
----
73

skipif mysql # not compatible
query I rowsort label-4162
SELECT 67 + + 76 + - ( - CAST ( - 13 AS INTEGER ) ) + - 77 + 20
----
73

query II rowsort
SELECT 52 AS col2, + 66 + 26 + + - 58
----
52
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL + 44 * - 53 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + 44 * - 53 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 64 * NULLIF ( - 16, 46 * + - CASE + 78 WHEN - - 47 / - 7 + 49 THEN - 53 WHEN 80 THEN + 20 END / 18 + - - 57 ) AS col2
----
-1024

query I rowsort
SELECT NULLIF ( + + 35, + 42 * 68 + + 80 * - 59 ) + 92 * + 51 AS col0
----
4727

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT - + NULLIF ( - - 54, - + 86 ), + COUNT( * ) AS col1
----
-54
1

skipif mysql # not compatible
query II rowsort label-4167
SELECT - + NULLIF ( - - 54, - + 86 ), + COUNT ( * ) AS col1
----
-54
1

query I rowsort
SELECT ALL + 53 * - + 51
----
-2703

query I rowsort
SELECT 89 - - - 78 * - 34 AS col2
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - COALESCE ( - + COUNT( * ), + 76 ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-4170
SELECT - COALESCE ( - + COUNT ( * ), + 76 ) + + 8
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT ALL + + 11 * - - COUNT( * ) DIV - 54 * 85 + 84 col1
----
84

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + + 11 * - - COUNT ( * ) / - 54 * 85 + 84 col1
----
84

query II rowsort
SELECT - 55 AS col0, 61 - - 35 * - ( + 75 )
----
-55
-2564

query I rowsort
SELECT ALL - - 98 + + + 80 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT COALESCE ( SUM( ALL - + 36 ), + 35, - 58, + 9 ) + + 9 * - CASE - + COUNT( + - 15 ) WHEN 79 * - - COUNT( * ) THEN NULL WHEN + 46 THEN 14 + - - MIN( ALL - - 67 ) + 28 + + + 79 / - - 61 * 19 / + 10 * + 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT COALESCE ( SUM ( ALL - + 36 ), + 35, - 58, + 9 ) + + 9 * - CASE - + COUNT ( + - 15 ) WHEN 79 * - - COUNT ( * ) THEN NULL WHEN + 46 THEN 14 + - - MIN ( ALL - - 67 ) + 28 + + + 79 / - - 61 * 19 / + 10 * + 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT - 5, - 17 - + COUNT( * ) AS col0
----
-5
-18

skipif mysql # not compatible
query II rowsort label-4175
SELECT - 5, - 17 - + COUNT ( * ) AS col0
----
-5
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT 18 * COUNT( - 41 ) col1, - 95 col2
----
18
-95

skipif mysql # not compatible
query II rowsort label-4176
SELECT 18 * COUNT ( - 41 ) col1, - 95 col2
----
18
-95

query I rowsort
SELECT + 80 + + 21 AS col1
----
101

query I rowsort
SELECT ALL + 26 + + - 50
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT ALL + COUNT( * ) AS col2, 7 col0
----
1
7

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + COUNT ( * ) AS col2, 7 col0
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + SUM( - 99 ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-4180
SELECT + SUM ( - 99 ) col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ( - 90 ) + - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-4181
SELECT ( - 90 ) + - COUNT ( * ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) + - 40 - 70 - - - 62 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) + - 40 - 70 - - - 62 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - 47 * - + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4183
SELECT - 47 * - + COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - ( - COUNT( * ) ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-4184
SELECT - ( - COUNT ( * ) ) + - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT - COALESCE ( + NULLIF ( + 45, - - 16 / - MAX( ALL - + 25 ) ), - + CASE - + CASE + 14 WHEN - 22 THEN + - ( + COUNT( * ) ) END WHEN - 66 THEN + - 87 * + COUNT( * ) WHEN 86 THEN NULL WHEN 28 THEN 28 END ) + + 94
----
49

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT - COALESCE ( + NULLIF ( + 45, - - 16 / - MAX ( ALL - + 25 ) ), - + CASE - + CASE + 14 WHEN - 22 THEN + - ( + COUNT ( * ) ) END WHEN - 66 THEN + - 87 * + COUNT ( * ) WHEN 86 THEN NULL WHEN 28 THEN 28 END ) + + 94
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL 0 + + - 86 DIV - + 3
----
28

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 0 + + - 86 / - + 3
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL MAX( - 7 ) + - - 3 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL MAX ( - 7 ) + - - 3 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT CASE + COUNT( * ) WHEN 31 * + 23 * 58 + - - NULLIF ( 41, - 52 * + CAST( NULL AS SIGNED ) * - - 34 + 92 ) THEN NULL WHEN 99 + - COUNT( * ) THEN 80 + + + COUNT( * ) / + 98 * + - NULLIF ( - CAST( ( - ( - + 60 ) ) AS SIGNED ), + 52 * 20 ) + + - 83 END - + - 67 + + 53 + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT CASE + COUNT ( * ) WHEN 31 * + 23 * 58 + - - NULLIF ( 41, - 52 * + CAST ( NULL AS INTEGER ) * - - 34 + 92 ) THEN NULL WHEN 99 + - COUNT ( * ) THEN 80 + + + COUNT ( * ) / + 98 * + - NULLIF ( - CAST ( ( - ( - + 60 ) ) AS INTEGER ), + 52 * 20 ) + + - 83 END - + - 67 + + 53 + + 31
----
NULL

query I rowsort
SELECT ALL ( + + 47 ) - - 30 + - COALESCE ( ( 54 ), + 33 )
----
23

query I rowsort
SELECT ( + 1 ) * + + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4191
SELECT 42 * 83 AS col2, - 7 - 89 * + - COALESCE ( - - 41, + COALESCE ( 36, 70 ) * - 40 * + 89 DIV - 89 * CAST( NULL AS SIGNED ) + - 87, - CAST( + + COUNT( * ) AS SIGNED ) )
----
3486
3642

skipif mysql # not compatible
query II rowsort label-4191
SELECT 42 * 83 AS col2, - 7 - 89 * + - COALESCE ( - - 41, + COALESCE ( 36, 70 ) * - 40 * + 89 / - 89 * CAST ( NULL AS INTEGER ) + - 87, - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
3486
3642

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - MAX( ALL 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - MAX ( ALL 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT COUNT( * ) - + - 13 + - + 73 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) - + - 13 + - + 73 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT ALL 73 DIV + 32 col1
----
2

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 73 / + 32 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT 61 DIV + + 77 * - 99 * - - 46 * 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT 61 / + + 77 * - 99 * - - 46 * 1 AS col1
----
0

query I rowsort
SELECT 32 * - + 78 * 32
----
-79872

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - COUNT( * ) * + - 25 - + 70
----
-45

skipif mysql # not compatible
query I rowsort label-4197
SELECT - COUNT ( * ) * + - 25 - + 70
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT 20 / + 80 * - - CASE + - 63 WHEN MAX( DISTINCT - 39 ) - 25 THEN - + 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT 20 / + 80 * - - CASE + - 63 WHEN MAX ( DISTINCT - 39 ) - 25 THEN - + 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT - 34 * - COUNT( * ) * + 53 * - 33
----
-59466

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - 34 * - COUNT ( * ) * + 53 * - 33
----
-59466

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT ALL 37 DIV - + ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL 37 / - + ( 95 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4201
SELECT DISTINCT - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2, 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2, 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL + 61 * - 96 * + 15 * - 50 * - COUNT( * ) * - - 89
----
-390888000

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + 61 * - 96 * + 15 * - 50 * - COUNT ( * ) * - - 89
----
-390888000

query I rowsort
SELECT 61 - - 41
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4204
SELECT ALL CAST( NULL AS DECIMAL ) * + ( + - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL CAST ( NULL AS REAL ) * + ( + - 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT 61 * + 31 * - 79 - + COALESCE ( - 23, 90 * + COUNT( * ) ) + + 31 AS col2
----
-149335

skipif mysql # not compatible
query I rowsort label-4205
SELECT 61 * + 31 * - 79 - + COALESCE ( - 23, 90 * + COUNT ( * ) ) + + 31 AS col2
----
-149335

query I rowsort
SELECT - 62 * - 52
----
3224

query I rowsort
SELECT 15 * + 68 col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + 6 + - + COUNT( * ) + - 14 * + + 97 * 31 AS col0
----
-42093

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 6 + - + COUNT ( * ) + - 14 * + + 97 * 31 AS col0
----
-42093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT - CAST( 1 AS SIGNED ) + CASE - 96 WHEN 20 * - + ( + + 38 ) + + CAST( NULL AS SIGNED ) + + 19 * + ( - 17 ) * COUNT( * ) - - 30 + 14 + + + COUNT( * ) + - - ( 32 ) THEN NULL ELSE 49 END
----
48

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - CAST ( 1 AS INTEGER ) + CASE - 96 WHEN 20 * - + ( + + 38 ) + + CAST ( NULL AS INTEGER ) + + 19 * + ( - 17 ) * COUNT ( * ) - - 30 + 14 + + + COUNT ( * ) + - - ( 32 ) THEN NULL ELSE 49 END
----
48

query I rowsort
SELECT DISTINCT - 91 + + 42 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT - 29 DIV MIN( + - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 29 / MIN ( + - 49 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT ALL + + 46 + + 78 AS col0, COUNT( DISTINCT + 49 )
----
124
1

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL + + 46 + + 78 AS col0, COUNT ( DISTINCT + 49 )
----
124
1

query I rowsort
SELECT DISTINCT - + 83 + + 40
----
-43

query II rowsort
SELECT DISTINCT - 99 * + 89 AS col0, - 40
----
-8811
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT DISTINCT 86 + COUNT( 7 ) + - COUNT( * ) - - 59 * 82 DIV + 50
----
182

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT 86 + COUNT ( 7 ) + - COUNT ( * ) - - 59 * 82 / + 50
----
182

query I rowsort
SELECT - 4 * - - 50
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 63 - - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4217
SELECT 63 - - + COUNT ( * )
----
64

query I rowsort
SELECT + ( 74 ) * + 84 + 8
----
6224

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL - COUNT( * ) * + + 51 + - ( 55 ) - COUNT( * ) * + 34 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - COUNT ( * ) * + + 51 + - ( 55 ) - COUNT ( * ) * + 34 AS col0
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT 53 * + COUNT( * ) * + - 83 + - 18 DIV - 78 * - + 84
----
-4399

skipif mysql # not compatible
query I rowsort label-4220
SELECT 53 * + COUNT ( * ) * + - 83 + - 18 / - 78 * - + 84
----
-4399

query I rowsort
SELECT DISTINCT - + 29 * - 92 + 4
----
2672

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL + COUNT( * ) - - - 21 + + 4 * - + 89 * - 83
----
29528

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + COUNT ( * ) - - - 21 + + 4 * - + 89 * - 83
----
29528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT CAST( 79 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4223
SELECT CAST ( 79 AS INTEGER ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT + 87 - + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT + 87 - + + COUNT ( * ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT 6 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT 6 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL SUM( + 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL SUM ( + 95 ) col1
----
95

query I rowsort
SELECT 1 + - - 72 AS col2
----
73

query I rowsort
SELECT 36 + + 55 AS col1
----
91

query II rowsort
SELECT DISTINCT 91 AS col2, - ( + 71 )
----
91
-71

query II rowsort
SELECT - 92, - 25 AS col2
----
-92
-25

query I rowsort
SELECT ( - 18 ) + - NULLIF ( + ( + 75 ), - 32 ) AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT - 21 DIV - 71 DIV + 3 + - - 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 21 / - 71 / + 3 + - - 18 AS col1
----
18

query II rowsort
SELECT ALL - 91 AS col1, + 11
----
-91
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT 26 + ( - 4 ) DIV 86 * + 14 + 4
----
30

skipif mysql # not compatible
query I rowsort label-4234
SELECT 26 + ( - 4 ) / 86 * + 14 + 4
----
30

query I rowsort
SELECT ALL 67 * + - 31
----
-2077

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT 42 * - + COALESCE ( + ( + - 39 ), + + NULLIF ( - + 58, + 46 - - 49 ) ) DIV 35 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT 42 * - + COALESCE ( + ( + - 39 ), + + NULLIF ( - + 58, + 46 - - 49 ) ) / 35 / - 78 AS col2
----
0

query I rowsort
SELECT DISTINCT 96 * - 55 AS col1
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT 93 DIV + + COUNT( * ) + + - NULLIF ( SUM( + 77 ), + 0 )
----
16

skipif mysql # not compatible
query I rowsort label-4238
SELECT 93 / + + COUNT ( * ) + + - NULLIF ( SUM ( + 77 ), + 0 )
----
16

query I rowsort
SELECT ALL 31 * + + 81 * 31
----
77841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + 37 DIV + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4240
SELECT + 37 / + COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT + 43 * - - NULLIF ( - 15, - CAST( NULL AS SIGNED ) - - - 3 + - 9 )
----
-645

skipif mysql # not compatible
query I rowsort label-4241
SELECT + 43 * - - NULLIF ( - 15, - CAST ( NULL AS INTEGER ) - - - 3 + - 9 )
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT SUM( + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-4242
SELECT SUM ( + + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT SUM( ALL + + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4243
SELECT SUM ( ALL + + 36 ) AS col0
----
36

query I rowsort
SELECT 85 * - - 46 + + 31 AS col2
----
3941

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT COUNT( DISTINCT ( + - 29 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4245
SELECT COUNT ( DISTINCT ( + - 29 ) ) AS col2
----
1

query I rowsort
SELECT ALL + + NULLIF ( + 7, + 37 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT + COUNT( * ) * - + 33 * 75 + - 68 * + + 0 DIV + 62 - + 68 AS col2
----
-2543

skipif mysql # not compatible
query I rowsort label-4247
SELECT + COUNT ( * ) * - + 33 * 75 + - 68 * + + 0 / + 62 - + 68 AS col2
----
-2543

query II rowsort
SELECT ALL + 13 * 74 + 6 col1, 48 AS col2
----
968
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT MAX( ALL 2 ) DIV - 35 * - - 42 * COALESCE ( + NULLIF ( + 57, - 56 ), ( - 77 ) + - + 65 + 83 ) * - 34 + + 33 * + 66 + - COUNT( * ) + + 43 AS col2
----
2220

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT MAX ( ALL 2 ) / - 35 * - - 42 * COALESCE ( + NULLIF ( + 57, - 56 ), ( - 77 ) + - + 65 + 83 ) * - 34 + + 33 * + 66 + - COUNT ( * ) + + 43 AS col2
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL + - NULLIF ( - 19, - 86 + - 39 ) + - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + - NULLIF ( - 19, - 86 + - 39 ) + - - COUNT ( * )
----
20

query I rowsort
SELECT - 35 + - 8 + - 89 col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT 5 + COUNT( * ) * + 19 * + 1 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 5 + COUNT ( * ) * + 19 * + 1 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT - 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - 43 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 28 ) AS col2
----
-28

query I rowsort
SELECT + - 4 + + 73 AS col0
----
69

query I rowsort
SELECT + + 29 + + 79 AS col2
----
108

query I rowsort
SELECT - + 24 + + 36 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT DISTINCT SUM( ALL - - CAST( + 2 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT SUM ( ALL - - CAST ( + 2 AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - ( SUM( - 72 ) ) * - MAX( 4 ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - ( SUM ( - 72 ) ) * - MAX ( 4 ) AS col0
----
-288

query I rowsort
SELECT - 51 + + 47 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - - 5 * - COALESCE ( - + 39, + - 70, - SUM( DISTINCT - 35 ) - + 16 + 61 )
----
195

skipif mysql # not compatible
query I rowsort label-4261
SELECT - - 5 * - COALESCE ( - + 39, + - 70, - SUM ( DISTINCT - 35 ) - + 16 + 61 )
----
195

query I rowsort
SELECT ALL - 94 * 90
----
-8460

query I rowsort
SELECT - 65 + + - 69 col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL - + COUNT( * ) - + MIN( + 37 ) - + - 26 * - - 1 * 75 AS col0
----
1912

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - + COUNT ( * ) - + MIN ( + 37 ) - + - 26 * - - 1 * 75 AS col0
----
1912

query I rowsort
SELECT - 86 * ( + 65 )
----
-5590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL - CAST( + 21 AS SIGNED ) * + - 85
----
1785

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - CAST ( + 21 AS INTEGER ) * + - 85
----
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT DISTINCT ( + + COALESCE ( - + 89, - 16 * 77 - - + COUNT( * ) ) ), 68 AS col1
----
-89
68

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT ( + + COALESCE ( - + 89, - 16 * 77 - - + COUNT ( * ) ) ), 68 AS col1
----
-89
68

query II rowsort
SELECT - 93, 76 col2
----
-93
76

query I rowsort
SELECT + ( 39 ) + - 53 + COALESCE ( + 82, - - 42 * - 38 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT ALL - CASE - 43 WHEN 48 * + ( - 2 ) * - - 72 * + 1 THEN - CASE + + 21 WHEN + AVG ( - 25 ) THEN NULL ELSE - 14 END * + CASE - - ( - 53 ) WHEN 95 THEN - + 71 * 86 / + + COUNT( * ) * 13 * + - 2 ELSE NULL END - + 23 * + 27 END * - CASE + 47 WHEN - 18 THEN 98 * - - CAST( NULL AS SIGNED ) ELSE 90 / - 44 + 45 + - 86 / - + 64 * MAX( - + 42 ) + - - 90 * - 69 + + - ( + - 37 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - CASE - 43 WHEN 48 * + ( - 2 ) * - - 72 * + 1 THEN - CASE + + 21 WHEN + AVG ( - 25 ) THEN NULL ELSE - 14 END * + CASE - - ( - 53 ) WHEN 95 THEN - + 71 * 86 / + + COUNT ( * ) * 13 * + - 2 ELSE NULL END - + 23 * + 27 END * - CASE + 47 WHEN - 18 THEN 98 * - - CAST ( NULL AS INTEGER ) ELSE 90 / - 44 + 45 + - 86 / - + 64 * MAX ( - + 42 ) + - - 90 * - 69 + + - ( + - 37 ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL 97 DIV - 41 + - + 58 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 97 / - 41 + - + 58 AS col0
----
-60

query I rowsort
SELECT ALL + CASE + 88 WHEN 97 THEN - - 9 + - - 30 END AS col1
----
NULL

query I rowsort
SELECT - 96 + - 93 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + 19 * + - ( + COUNT( * ) ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-4274
SELECT + 19 * + - ( + COUNT ( * ) ) col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL 66 DIV + 96 + + - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 66 / + 96 + + - 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + ( ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4276
SELECT + ( ( COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT MIN( DISTINCT + 11 ) * + - CAST( + 86 AS SIGNED ) - 30 AS col1
----
-976

skipif mysql # not compatible
query I rowsort label-4277
SELECT MIN ( DISTINCT + 11 ) * + - CAST ( + 86 AS INTEGER ) - 30 AS col1
----
-976

query I rowsort
SELECT DISTINCT 47 * 93 + + 66
----
4437

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT + 59 DIV + 52 + - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4279
SELECT + 59 / + 52 + - 68 AS col0
----
-67

query I rowsort
SELECT ALL - 58 * + + 1 + + 7 AS col0
----
-51

query I rowsort
SELECT + 20 * + 53 AS col1
----
1060

onlyif mysql # aggregate syntax: 
query II rowsort label-4282
SELECT ALL + - ( - COUNT( * ) ) col1, 41 AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL + - ( - COUNT ( * ) ) col1, 41 AS col1
----
1
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT ALL 66 * - 29 * + 56 + + 93 DIV 79
----
-107183

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL 66 * - 29 * + 56 + + 93 / 79
----
-107183

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + MIN( DISTINCT 53 ) * - 18 + 66 * - + 30 AS col1
----
-2934

skipif mysql # not compatible
query I rowsort label-4284
SELECT + MIN ( DISTINCT 53 ) * - 18 + 66 * - + 30 AS col1
----
-2934

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT + + 33 DIV - 13 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4285
SELECT + + 33 / - 13 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4286
SELECT + 96, CAST( NULL AS SIGNED ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-4286
SELECT + 96, CAST ( NULL AS INTEGER ) AS col0
----
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT ( COUNT( * ) ) * 31 + + - COUNT( + 33 ) + COUNT( * ) * 80 * - 36 * - COUNT( * ) + + 35 - + 27 DIV - 46
----
2945

skipif mysql # not compatible
query I rowsort label-4287
SELECT ( COUNT ( * ) ) * 31 + + - COUNT ( + 33 ) + COUNT ( * ) * 80 * - 36 * - COUNT ( * ) + + 35 - + 27 / - 46
----
2945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT DISTINCT - COUNT( - 10 ) * + 82 - CAST( NULL AS SIGNED ) * + 73 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - COUNT ( - 10 ) * + 82 - CAST ( NULL AS INTEGER ) * + 73 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT ALL + 89 DIV 1
----
89

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + 89 / 1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT 89 AS col2, COUNT( * ) AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-4290
SELECT 89 AS col2, COUNT ( * ) AS col1
----
89
1

query I rowsort
SELECT ALL + 93 * ( - 81 ) - 57
----
-7590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT - CAST( - + 99 AS SIGNED ) * - 66 * - + 20 * + 64 + - + CAST( - 73 AS SIGNED )
----
8363593

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - CAST ( - + 99 AS INTEGER ) * - 66 * - + 20 * + 64 + - + CAST ( - 73 AS INTEGER )
----
8363593

query I rowsort
SELECT + 93 + 74 AS col2
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT + + 32 - + 61 DIV 52 col1
----
31

skipif mysql # not compatible
query I rowsort label-4294
SELECT + + 32 - + 61 / 52 col1
----
31

query II rowsort
SELECT - + 8 AS col2, 40 AS col0
----
-8
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL CASE WHEN NOT CAST( + - 13 AS SIGNED ) IS NOT NULL THEN - COUNT( * ) * 28 * 31 * 23 / + COUNT( * ) WHEN NOT NULL NOT BETWEEN NULL AND ( NULL ) THEN + + 32 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL CASE WHEN NOT CAST ( + - 13 AS INTEGER ) IS NOT NULL THEN - COUNT ( * ) * 28 * 31 * 23 / + COUNT ( * ) WHEN NOT NULL NOT BETWEEN NULL AND ( NULL ) THEN + + 32 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4297
SELECT + 4 + 67 DIV - CAST( + - 86 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 4 + 67 / - CAST ( + - 86 AS INTEGER ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + 62 * - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 62 * - COUNT ( * ) AS col2
----
-62

query I rowsort
SELECT - 68 * + 84 * 27 AS col2
----
-154224

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + 80 + - - NULLIF ( + 87, - + COUNT( * ) * + - ( - COUNT( * ) ) ) col1
----
167

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 80 + - - NULLIF ( + 87, - + COUNT ( * ) * + - ( - COUNT ( * ) ) ) col1
----
167

query II rowsort
SELECT ALL ( 26 ) col1, - 14 * - 80 + + - 14 * 17
----
26
882

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - SUM( ALL - 43 ) + 5 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4302
SELECT - SUM ( ALL - 43 ) + 5 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT COUNT( * ) * + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT COUNT ( * ) * + + 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT - 32 + - - SUM( DISTINCT - 89 )
----
-121

skipif mysql # not compatible
query I rowsort label-4304
SELECT - 32 + - - SUM ( DISTINCT - 89 )
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL - 29 + CAST( + - 65 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - 29 + CAST ( + - 65 AS INTEGER )
----
-94

query I rowsort
SELECT ALL - 2 + - 26 col0
----
-28

query I rowsort
SELECT 61 + 49
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT COALESCE ( - + COUNT( * ), + + 15, - 86 * - 13 ) * + NULLIF ( + 55, + - 48 ) - + ( - 27 ) + + 35 / - CASE + ( 40 ) WHEN + 21 + + 95 * - 76 THEN COUNT( * ) - - - 61 WHEN - + AVG ( - 54 ) THEN NULL END + + 51 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT COALESCE ( - + COUNT ( * ), + + 15, - 86 * - 13 ) * + NULLIF ( + 55, + - 48 ) - + ( - 27 ) + + 35 / - CASE + ( 40 ) WHEN + 21 + + 95 * - 76 THEN COUNT ( * ) - - - 61 WHEN - + AVG ( - 54 ) THEN NULL END + + 51 + + 49
----
NULL

query I rowsort
SELECT 71 + 53 AS col1
----
124

query I rowsort
SELECT 80 + + 83
----
163

query I rowsort
SELECT ALL - 66 + - + 41 * - 43 * + 38 + + 2 + + 51 * 55
----
69735

query I rowsort
SELECT 60 + 3 * - 24
----
-12

query II rowsort
SELECT ALL - ( - 15 ) AS col2, 88 * + 82 + - 73 AS col1
----
15
7143

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL - 67 + MAX( - 0 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - 67 + MAX ( - 0 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT + 12 * - - 99 * 61 * + 28 AS col0
----
2029104

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL COUNT( * ) + - - 64 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL COUNT ( * ) + - - 64 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT MAX( 29 ) * - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4317
SELECT MAX ( 29 ) * - COUNT ( * ) AS col1
----
-29

query III rowsort
SELECT - ( 37 ) AS col2, ( - 85 ) * + 51 AS col0, 14
----
-37
-4335
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT + CASE + - MIN( ALL - CAST( + 2 AS SIGNED ) ) WHEN - - 78 THEN - 84 * + + 95 * + 73 WHEN + 86 + + 10 * + - 78 * - CAST( 4 AS SIGNED ) THEN + 29 * - 71 * - + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT + CASE + - MIN ( ALL - CAST ( + 2 AS INTEGER ) ) WHEN - - 78 THEN - 84 * + + 95 * + 73 WHEN + 86 + + 10 * + - 78 * - CAST ( 4 AS INTEGER ) THEN + 29 * - 71 * - + 80 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + CASE - 4 WHEN - 70 THEN 57 - + + 36 WHEN - 3 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL - 9 - + - 86 * 45 + - + COUNT( - 86 ) AS col2
----
3860

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - 9 - + - 86 * 45 + - + COUNT ( - 86 ) AS col2
----
3860

query I rowsort
SELECT NULLIF ( 22, + 94 ) * - + 74 * 42 * + 14 AS col1
----
-957264

query I rowsort
SELECT ALL - + COALESCE ( + - 87, 96 - 78 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL + - MAX( ALL + + 20 ) - + 55 + - 69 + 78 + - - 19 * - 46 + + 83 + ( + 75 ) AS col0
----
-782

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + - MAX ( ALL + + 20 ) - + 55 + - 69 + 78 + - - 19 * - 46 + + 83 + ( + 75 ) AS col0
----
-782

query II rowsort
SELECT ALL 50 * 91 AS col2, 76
----
4550
76

query I rowsort
SELECT ALL COALESCE ( - 19, 4 ) AS col0
----
-19

query I rowsort
SELECT ( + 46 ) col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT - ( CAST( 46 AS SIGNED ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - ( CAST ( 46 AS INTEGER ) )
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-4329
SELECT + 74 DIV + COALESCE ( - - 89, + - 52 - - 75, + - 51 DIV - + 38 - - - 95 ) AS col2, - 20
----
0
-20

skipif mysql # not compatible
query II rowsort label-4329
SELECT + 74 / + COALESCE ( - - 89, + - 52 - - 75, + - 51 / - + 38 - - - 95 ) AS col2, - 20
----
0
-20

query I rowsort
SELECT - 13 * + 54
----
-702

query II rowsort
SELECT ALL 34, - 40 * + 63 col2
----
34
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT CAST( - SUM( ALL - 89 ) AS SIGNED ) + 79
----
168

skipif mysql # not compatible
query I rowsort label-4332
SELECT CAST ( - SUM ( ALL - 89 ) AS INTEGER ) + 79
----
168

query II rowsort
SELECT - 44 AS col0, 84
----
-44
84

query II rowsort
SELECT 64, + ( ( - 88 ) ) + + 12 AS col2
----
64
-76

query I rowsort
SELECT 71 + + 88 AS col1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4336
SELECT ALL 8 + 57 - + 87 * - 15 + + + 33 + 90 * + ( + CASE - + 96 WHEN + MAX( ALL - + 93 ) THEN NULL WHEN + - COUNT( * ) THEN + - 96 / - + COUNT( * ) END ) * - + 29 * + 97 + + 82 / - ( + 40 ) * - SUM( 70 ), + 81 + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4336
SELECT ALL 8 + 57 - + 87 * - 15 + + + 33 + 90 * + ( + CASE - + 96 WHEN + MAX ( ALL - + 93 ) THEN NULL WHEN + - COUNT ( * ) THEN + - 96 / - + COUNT ( * ) END ) * - + 29 * + 97 + + 82 / - ( + 40 ) * - SUM ( 70 ), + 81 + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4337
SELECT 80 * + 73 * + + 72 AS col1, - 8 DIV 14 * - + MAX( ALL + 68 ) + - + 10 AS col0
----
420480
-10

skipif mysql # not compatible
query II rowsort label-4337
SELECT 80 * + 73 * + + 72 AS col1, - 8 / 14 * - + MAX ( ALL + 68 ) + - + 10 AS col0
----
420480
-10

query I rowsort
SELECT ALL 2 * + 5 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT ALL - 71 + - ( - ( 14 ) ) DIV - 43 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL - 71 + - ( - ( 14 ) ) / - 43 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - SUM( DISTINCT - 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-4340
SELECT - SUM ( DISTINCT - 9 ) col0
----
9

query I rowsort
SELECT ALL - 23 * - 28 - + 62
----
582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT DISTINCT + CASE - + 16 WHEN + 79 THEN - 68 + + + 78 ELSE + 69 END DIV - MIN( - 49 ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + CASE - + 16 WHEN + 79 THEN - 68 + + + 78 ELSE + 69 END / - MIN ( - 49 ) / COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT + 51 DIV - 64 + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4343
SELECT + 51 / - 64 + 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT 95 * 87 * + COUNT( * )
----
8265

skipif mysql # not compatible
query I rowsort label-4344
SELECT 95 * 87 * + COUNT ( * )
----
8265

query I rowsort
SELECT + 32 * - 66 * - 21 * + - 19 + - + 17 col0
----
-842705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT + + CASE + 28 WHEN - + MAX( DISTINCT - CAST( - + 57 AS SIGNED ) ) THEN - - 24 WHEN - 93 THEN NULL ELSE NULL END * ( COUNT( * ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + + CASE + 28 WHEN - + MAX ( DISTINCT - CAST ( - + 57 AS INTEGER ) ) THEN - - 24 WHEN - 93 THEN NULL ELSE NULL END * ( COUNT ( * ) ) * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL + COUNT( * ) * + 25 * - + 17 * + 46 AS col0
----
-19550

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + COUNT ( * ) * + 25 * - + 17 * + 46 AS col0
----
-19550

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT + 11 DIV - - 18
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + 11 / - - 18
----
0

query II rowsort
SELECT DISTINCT - 2, 58 AS col2
----
-2
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT - CAST( - ( 89 ) AS SIGNED ) / - 15 + 32 + - 48 * CASE - + 45 WHEN + + 44 - - - 15 * + COALESCE ( - AVG ( ALL + - 85 ), - - 83 ) * - + 62 THEN + ( + + 82 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - CAST ( - ( 89 ) AS INTEGER ) / - 15 + 32 + - 48 * CASE - + 45 WHEN + + 44 - - - 15 * + COALESCE ( - AVG ( ALL + - 85 ), - - 83 ) * - + 62 THEN + ( + + 82 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT 76 DIV + + 63
----
1

skipif mysql # not compatible
query I rowsort label-4351
SELECT 76 / + + 63
----
1

query I rowsort
SELECT ALL - - ( - + 18 ) AS col0
----
-18

query I rowsort
SELECT NULLIF ( 25, + 63 * 93 - - 29 ) * + 93
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - - SUM( + + 92 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - - SUM ( + + 92 ) col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) / - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / - + 11 AS col0
----
NULL

query I rowsort
SELECT 45 * - 53 AS col2
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL - - 44 + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL - - 44 + + COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT COALESCE ( + 6, - 48 DIV COUNT( * ) + - 38 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4358
SELECT COALESCE ( + 6, - 48 / COUNT ( * ) + - 38 ) AS col0
----
6

query I rowsort
SELECT ALL - 35 + + 52 - - 64 AS col0
----
81

query II rowsort
SELECT ALL - - 72 AS col0, + 43 AS col0
----
72
43

query I rowsort
SELECT 24 * - 22 AS col0
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL 68 + - - SUM( 73 )
----
141

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL 68 + - - SUM ( 73 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT SUM( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT SUM ( DISTINCT 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT 3 + COUNT( * ) + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT 3 + COUNT ( * ) + + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL 21 + - - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL 21 + - - COUNT ( * ) AS col2
----
22

query I rowsort
SELECT + COALESCE ( + 33, - - 69 ) * + - ( + 44 ) * + ( + 7 ) * - 47 AS col0
----
477708

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + COUNT( * ) + - - 62 + 29
----
92

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + COUNT ( * ) + - - 62 + 29
----
92

query I rowsort
SELECT - 14 + + - 72
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - COUNT( ALL - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-4369
SELECT - COUNT ( ALL - 94 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT - 91 + COUNT( * ) AS col2, + 77 col2
----
-90
77

skipif mysql # not compatible
query II rowsort label-4370
SELECT - 91 + COUNT ( * ) AS col2, + 77 col2
----
-90
77

query I rowsort
SELECT + 96 * - 56 * 94 * 36
----
-18192384

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT DISTINCT COALESCE ( 73, + - 1 * - 81 DIV - NULLIF ( ( - - 9 ), 23 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT COALESCE ( 73, + - 1 * - 81 / - NULLIF ( ( - - 9 ), 23 ) )
----
73

query I rowsort
SELECT ALL 55 - + + 90 * - 53 * 61 + - 13 col0
----
291012

query I rowsort
SELECT + 60 * + 58 AS col2
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + COALESCE ( - + COUNT( * ), - 44 ) + - + ( - + ( - 27 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4375
SELECT + COALESCE ( - + COUNT ( * ), - 44 ) + - + ( - + ( - 27 ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT + ( + - 91 ) + - 86 DIV + + 63 col2
----
-92

skipif mysql # not compatible
query I rowsort label-4376
SELECT + ( + - 91 ) + - 86 / + + 63 col2
----
-92

query II rowsort
SELECT + 13 + 55 AS col2, - 41 * + 96 col2
----
68
-3936

query II rowsort
SELECT ALL 19 * - + 85 AS col2, - 44 * - + 30 AS col2
----
-1615
1320

query I rowsort
SELECT + 25 * 8
----
200

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT - SUM( DISTINCT 37 ), - 37 + - 35 + 69 AS col1
----
-37
-3

skipif mysql # not compatible
query II rowsort label-4380
SELECT - SUM ( DISTINCT 37 ), - 37 + - 35 + 69 AS col1
----
-37
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT + 89 + - 56 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT + 89 + - 56 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT 69 * 58 + + - 27 + COUNT( * ) AS col2
----
3976

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT 69 * 58 + + - 27 + COUNT ( * ) AS col2
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT + 57 + - MIN( ALL - - 55 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 57 + - MIN ( ALL - - 55 ) AS col0
----
2

query I rowsort
SELECT ALL 27 * + 75 AS col1
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + - ( - - 64 ) * 25 * - 99 + + COUNT( * ) AS col2
----
158401

skipif mysql # not compatible
query I rowsort label-4385
SELECT + - ( - - 64 ) * 25 * - 99 + + COUNT ( * ) AS col2
----
158401

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COUNT( - 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( - 65 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - + 84 * + + COUNT( * ) + + + 90
----
6

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - + 84 * + + COUNT ( * ) + + + 90
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 2 * MAX( DISTINCT - 24 )
----
48

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 2 * MAX ( DISTINCT - 24 )
----
48

query I rowsort
SELECT - - 72 + - ( + 67 ) AS col0
----
5

query I rowsort
SELECT + - 44 + 67 + 8
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4391
SELECT - ( - NULLIF ( + 62, + - ( + + COALESCE ( - 19, - 58 ) ) * + 88 + + CAST( NULL AS DECIMAL ) * - 21 * - + COUNT( * ) * - 24 + + - ( - 8 ) ) ) * 84 + + - MAX( + 9 ) col0
----
5199

skipif mysql # not compatible
query I rowsort label-4391
SELECT - ( - NULLIF ( + 62, + - ( + + COALESCE ( - 19, - 58 ) ) * + 88 + + CAST ( NULL AS REAL ) * - 21 * - + COUNT ( * ) * - 24 + + - ( - 8 ) ) ) * 84 + + - MAX ( + 9 ) col0
----
5199

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL 56 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL 56 / - 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL - CAST( - ( - CASE - 10 WHEN - COUNT( * ) + + 62 THEN - 9 ELSE NULL END ) AS SIGNED ) * 38 + - 71 + + + 72 + - 78 / - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - CAST ( - ( - CASE - 10 WHEN - COUNT ( * ) + + 62 THEN - 9 ELSE NULL END ) AS INTEGER ) * 38 + - 71 + + + 72 + - 78 / - 90 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT + 21 DIV - 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4394
SELECT + 21 / - 17 AS col1
----
-1

query I rowsort
SELECT - 27 + 83 AS col0
----
56

query I rowsort
SELECT ALL + ( - - 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + COUNT( DISTINCT + 14 ) + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-4397
SELECT + COUNT ( DISTINCT + 14 ) + - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT COUNT( DISTINCT 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4398
SELECT COUNT ( DISTINCT 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - 98 * - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - 98 * - + COUNT ( * )
----
98

query I rowsort
SELECT DISTINCT NULLIF ( + 99, - 41 * - + 52 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( DISTINCT - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( DISTINCT - 92 )
----
92

query I rowsort
SELECT ALL - 8 * - + 17 AS col0
----
136

query II rowsort
SELECT - 65 AS col0, 24 * + 46 AS col1
----
-65
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + 35 - - CASE - 61 WHEN - SUM( 59 ) THEN + COUNT( ALL - 26 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + 35 - - CASE - 61 WHEN - SUM ( 59 ) THEN + COUNT ( ALL - 26 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - 81 * - 43 * + + ( - COUNT( * ) ) * + 34 * - 23 - + MAX( DISTINCT 9 )
----
2723697

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 81 * - 43 * + + ( - COUNT ( * ) ) * + 34 * - 23 - + MAX ( DISTINCT 9 )
----
2723697

query II rowsort
SELECT 27, - NULLIF ( - 70, + 3 ) AS col0
----
27
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT - NULLIF ( + 14, - + 40 * - - 23 + - 64 - - ( + MIN( 35 ) ) + 69 * + - CAST( - COUNT( * ) AS SIGNED ) + 41 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4407
SELECT - NULLIF ( + 14, - + 40 * - - 23 + - 64 - - ( + MIN ( 35 ) ) + 69 * + - CAST ( - COUNT ( * ) AS INTEGER ) + 41 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT - 1 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 1 / - 83 AS col1
----
0

query I rowsort
SELECT + 7 * + 25 * 11
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - - NULLIF ( - ( + COUNT( * ) ), - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-4410
SELECT - - NULLIF ( - ( + COUNT ( * ) ), - 57 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT ALL + 6 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 6 / 24
----
0

query I rowsort
SELECT ALL ( 91 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT + 64 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 64 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - 17 DIV - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 17 / - 44 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4415
SELECT + - ( - + 61 ) DIV - - MIN( ALL - 64 ) + COUNT( * ) * - 31 + + 28 - + - 55 AS col0, - SUM( ALL + 31 ) * - 38 col2
----
52
1178

skipif mysql # not compatible
query II rowsort label-4415
SELECT + - ( - + 61 ) / - - MIN ( ALL - 64 ) + COUNT ( * ) * - 31 + + 28 - + - 55 AS col0, - SUM ( ALL + 31 ) * - 38 col2
----
52
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + - SUM( DISTINCT - 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + - SUM ( DISTINCT - 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT + COUNT( * ) * NULLIF ( + - 55, - 25 )
----
-55

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + COUNT ( * ) * NULLIF ( + - 55, - 25 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4418
SELECT + - 82, - SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4418
SELECT + - 82, - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
-82
NULL

query I rowsort
SELECT + 81 * - 55 + + 33 - 72 + + - 1 + - - 53 AS col0
----
-4442

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + - 98 * - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4420
SELECT + - 98 * - + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT + - ( + 81 ) AS col2
----
-81

query II rowsort
SELECT DISTINCT - + 28 AS col2, - 9
----
-28
-9

query I rowsort
SELECT DISTINCT + ( - 27 ) + 19 AS col0
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-4424
SELECT NULLIF ( - 54, + 42 ) * - + 65 * 36 - + 44 * + + 8 - + + 13 * + 41 - - 90 + - + 31 DIV + 44 * - + 60 * - 62 AS col0, 60
----
125565
60

skipif mysql # not compatible
query II rowsort label-4424
SELECT NULLIF ( - 54, + 42 ) * - + 65 * 36 - + 44 * + + 8 - + + 13 * + 41 - - 90 + - + 31 / + 44 * - + 60 * - 62 AS col0, 60
----
125565
60

query II rowsort
SELECT ALL - 0 AS col0, 94
----
0
94

query II rowsort
SELECT 80 AS col0, + 48 * + 35
----
80
1680

query II rowsort
SELECT + 87 col1, + 92 + 84 AS col2
----
87
176

query I rowsort
SELECT ALL - COALESCE ( + 32, - 28, + 25 )
----
-32

query I rowsort
SELECT DISTINCT - 84 - 12
----
-96

query I rowsort
SELECT 90 * - 26 AS col0
----
-2340

onlyif mysql # DIV for integer division: 
query II rowsort label-4431
SELECT ALL - 66 - - 70, - 74 + 0 DIV 54 AS col2
----
4
-74

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL - 66 - - 70, - 74 + 0 / 54 AS col2
----
4
-74

query I rowsort
SELECT ALL - ( 66 ) col2
----
-66

query I rowsort
SELECT 80 * 2
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT ALL 54 AS col0, 35 - - COUNT( * )
----
54
36

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL 54 AS col0, 35 - - COUNT ( * )
----
54
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT + 39 * 80 * + - 50 * NULLIF ( + - 14, + + 81 - + + 85 + + 94 + - 34 * - - 18 * - 19 ) - - + 99 * + CAST( - AVG ( - 23 ) AS SIGNED ) * - 30 * - CAST( NULL AS SIGNED ) + - - 59 + - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 39 * 80 * + - 50 * NULLIF ( + - 14, + + 81 - + + 85 + + 94 + - 34 * - - 18 * - 19 ) - - + 99 * + CAST ( - AVG ( - 23 ) AS INTEGER ) * - 30 * - CAST ( NULL AS INTEGER ) + - - 59 + - 50 col0
----
NULL

query I rowsort
SELECT ALL + 67 * - + 76 * + 54 * + 28
----
-7699104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT 60 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT 60 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT 66 * - SUM( DISTINCT - 72 ) * + - ( 60 )
----
-285120

skipif mysql # not compatible
query I rowsort label-4438
SELECT 66 * - SUM ( DISTINCT - 72 ) * + - ( 60 )
----
-285120

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT 76 + - MAX( ALL + - 44 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-4439
SELECT 76 + - MAX ( ALL + - 44 ) AS col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT 11 DIV + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4440
SELECT 11 / + COUNT ( * )
----
11

query I rowsort
SELECT 86 + + + CASE - + 7 WHEN 16 THEN + 4 ELSE 22 END
----
108

query II rowsort
SELECT 21 - + 96 AS col1, - 10 * + 80
----
-75
-800

query I rowsort
SELECT 95 + + 0 * 60 AS col0
----
95

query II rowsort
SELECT ALL 77 AS col0, 89 AS col1
----
77
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT CAST( - 93 AS SIGNED ) + + 94 * - 44
----
-4229

skipif mysql # not compatible
query I rowsort label-4445
SELECT CAST ( - 93 AS INTEGER ) + + 94 * - 44
----
-4229

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT COUNT( * ) * ( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4446
SELECT COUNT ( * ) * ( + - 86 )
----
-86

query I rowsort
SELECT - 75 + - + 81 - - 16 AS col1
----
-140

query II rowsort
SELECT DISTINCT + 33, ( 23 ) AS col1
----
33
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - - COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) * CAST( + - ( + 6 ) AS SIGNED ) + - 74 + - 76 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * CAST ( + - ( + 6 ) AS INTEGER ) + - 74 + - 76 ) + + COUNT ( * )
----
2

query I rowsort
SELECT - - ( 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT + 2 + - 65 + + CASE + + 10 WHEN + + 69 THEN - 26 END AS col0, + COUNT( * ) + 73
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4451
SELECT + 2 + - 65 + + CASE + + 10 WHEN + + 69 THEN - 26 END AS col0, + COUNT ( * ) + 73
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4452
SELECT ALL + 50 + - ( + 99 ) + + 16 col1, 0 + + 61 * + - 9 * COUNT( * ) * 90 * 16 + 85 + 47 + CAST( NULL AS SIGNED ) + + 46 - 54 * + NULLIF ( - 71, + 35 - - 90 ) + 44 AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL + 50 + - ( + 99 ) + + 16 col1, 0 + + 61 * + - 9 * COUNT ( * ) * 90 * 16 + 85 + 47 + CAST ( NULL AS INTEGER ) + + 46 - 54 * + NULLIF ( - 71, + 35 - - 90 ) + 44 AS col2
----
-33
NULL

query II rowsort
SELECT DISTINCT - + 16 col0, + 69 + + - 32 + + 52
----
-16
89

query II rowsort
SELECT 87 col2, ( + 2 )
----
87
2

query II rowsort
SELECT ALL - 87 AS col1, 90 * - 32 + CASE 2 WHEN + 50 THEN NULL ELSE + 99 END
----
-87
-2781

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT - 0 DIV - + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - 0 / - + 84 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT + 69 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT + 69 / + 87 AS col1
----
0

query III rowsort
SELECT 30 col2, 21 col1, 80 col0
----
30
21
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL + 67 * CAST( + 45 AS SIGNED ) + 31 AS col0
----
3046

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + 67 * CAST ( + 45 AS INTEGER ) + 31 AS col0
----
3046

query I rowsort
SELECT ALL 21 + 71 + + + 99 * - 44 AS col2
----
-4264

query II rowsort
SELECT + 1 AS col1, - 99
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - COUNT( * ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - COUNT ( * ) * 80
----
-80

query I rowsort
SELECT DISTINCT 3 * - 19 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT + 17 * - ( - 77 ) + + 68 * - - 99 * COUNT( * ) AS col1
----
8041

skipif mysql # not compatible
query I rowsort label-4464
SELECT + 17 * - ( - 77 ) + + 68 * - - 99 * COUNT ( * ) AS col1
----
8041

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT ALL - CASE - + 15 WHEN COUNT( * ) THEN 85 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col0, - 91
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL - CASE - + 15 WHEN COUNT ( * ) THEN 85 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col0, - 91
----
NULL
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT CAST( - 10 AS SIGNED ) + - 68 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4466
SELECT CAST ( - 10 AS INTEGER ) + - 68 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT + 73 * + 76 + - + COALESCE ( - 14, + 38 + 79 - + - CAST( NULL AS SIGNED ) * + + 69 + - 76 - + - 22 ) AS col0
----
5562

skipif mysql # not compatible
query I rowsort label-4467
SELECT + 73 * + 76 + - + COALESCE ( - 14, + 38 + 79 - + - CAST ( NULL AS INTEGER ) * + + 69 + - 76 - + - 22 ) AS col0
----
5562

query I rowsort
SELECT 45 * + + 29 + 2
----
1307

query II rowsort
SELECT 15 * + + 9 col2, NULLIF ( + + 65, - 6 * 50 * + + 14 ) AS col0
----
135
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL + 18 * CAST( + 25 AS SIGNED ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + 18 * CAST ( + 25 AS INTEGER ) AS col2
----
450

query I rowsort
SELECT ( + 38 ) * - 35 AS col1
----
-1330

query I rowsort
SELECT 14 * 55 * + 78 AS col0
----
60060

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col0, ( - + 0 )
----
0
0

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col0, ( - + 0 )
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4474
SELECT ALL - 3 * + - 6 AS col1, 59 DIV + + ( NULLIF ( - + 91, + 82 ) ) AS col1
----
18
0

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL - 3 * + - 6 AS col1, 59 / + + ( NULLIF ( - + 91, + 82 ) ) AS col1
----
18
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4475
SELECT COALESCE ( + 18, - 81 DIV + 61, 76 ) * NULLIF ( 9, - + CAST( ( COUNT( * ) ) AS SIGNED ) ) col2
----
162

skipif mysql # not compatible
query I rowsort label-4475
SELECT COALESCE ( + 18, - 81 / + 61, 76 ) * NULLIF ( 9, - + CAST ( ( COUNT ( * ) ) AS INTEGER ) ) col2
----
162

query II rowsort
SELECT - ( - 74 ) AS col0, + 15 AS col1
----
74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT 45 * CAST( NULL AS SIGNED ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT 45 * CAST ( NULL AS INTEGER ) * + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT DISTINCT - + 48 + + 35 + - - 8 / 61 * - - 92 * - 16 + + MAX( + - CAST( NULL AS SIGNED ) ) / + ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - + 48 + + 35 + - - 8 / 61 * - - 92 * - 16 + + MAX ( + - CAST ( NULL AS INTEGER ) ) / + ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - + MIN( DISTINCT + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4479
SELECT - + MIN ( DISTINCT + 74 ) AS col0
----
-74

query I rowsort
SELECT DISTINCT + + ( - - 41 ) + - + 41 - + 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + - 22 - - 23 + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + - 22 - - 23 + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - + ( + ( 49 ) ) - 85
----
-134

query I rowsort
SELECT + ( - ( + + 6 ) )
----
-6

query II rowsort
SELECT - 84 + 99 AS col2, + 77 * - 50 * + 95 * 81 AS col0
----
15
-29625750

query I rowsort
SELECT + - CASE + + 77 WHEN 96 + + ( 2 ) + + 51 THEN + + 16 WHEN + - NULLIF ( + 1, - - 61 ) + + + 6 THEN + AVG ( DISTINCT + + 98 ) WHEN + + 28 THEN 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL NULLIF ( - COUNT( * ), + - 85 + - + 62 / + - 59 - - - 74 ) * + 54 - 3 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL NULLIF ( - COUNT ( * ), + - 85 + - + 62 / + - 59 - - - 74 ) * + 54 - 3 AS col0
----
-57

query I rowsort
SELECT - ( + ( + 37 ) ) * - 23
----
851

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT 97 * 60 - - 85 DIV - - 82 + 62 - + 80 + + - 7 AS col0
----
5796

skipif mysql # not compatible
query I rowsort label-4488
SELECT 97 * 60 - - 85 / - - 82 + 62 - + 80 + + - 7 AS col0
----
5796

query I rowsort
SELECT DISTINCT + 93 * + - 70
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - ( - + 77 ) * + COUNT( * ) * - COUNT( DISTINCT - NULLIF ( + + ( + 98 ), 89 * - 23 ) ) * COALESCE ( - 63, - - 55 - 87, - - COUNT( * ) ) + MIN( ALL 34 ) + + 87 * - 22 + + 55 + + 6 AS col1
----
3032

skipif mysql # not compatible
query I rowsort label-4490
SELECT - ( - + 77 ) * + COUNT ( * ) * - COUNT ( DISTINCT - NULLIF ( + + ( + 98 ), 89 * - 23 ) ) * COALESCE ( - 63, - - 55 - 87, - - COUNT ( * ) ) + MIN ( ALL 34 ) + + 87 * - 22 + + 55 + + 6 AS col1
----
3032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4491
SELECT ALL MAX( DISTINCT - 86 ) DIV + - 30 AS col0, - 91 - - + 92
----
2
1

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL MAX ( DISTINCT - 86 ) / + - 30 AS col0, - 91 - - + 92
----
2
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4492
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 16 * + 60 + 62 DIV - - 91 col0
----
NULL
960

skipif mysql # not compatible
query II rowsort label-4492
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 16 * + 60 + 62 / - - 91 col0
----
NULL
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL CASE 11 WHEN + COUNT( 33 ) THEN MAX( ALL 88 ) END * 82 * - SUM( DISTINCT - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL CASE 11 WHEN + COUNT ( 33 ) THEN MAX ( ALL 88 ) END * 82 * - SUM ( DISTINCT - 6 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT ALL + 49 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + 49 / - 56 AS col1
----
0

query I rowsort
SELECT - ( ( + 48 ) ) * 71
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - MIN( ALL + 6 ) * + 55 col2
----
-330

skipif mysql # not compatible
query I rowsort label-4496
SELECT - MIN ( ALL + 6 ) * + 55 col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT MIN( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4497
SELECT MIN ( - 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT COUNT( * ), 84 + 2 + - + CASE 87 WHEN 95 THEN - 97 ELSE - 55 END AS col1
----
1
141

skipif mysql # not compatible
query II rowsort label-4498
SELECT COUNT ( * ), 84 + 2 + - + CASE 87 WHEN 95 THEN - 97 ELSE - 55 END AS col1
----
1
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT + 66 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT + 66 / - 87 AS col1
----
0

query I rowsort
SELECT - 78 - + CASE - 30 WHEN + ( + 59 ) + - 82 THEN 82 END + + + 81 + - 93 - + + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL COUNT( * ) * - - 2
----
2

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL COUNT ( * ) * - - 2
----
2

query I rowsort
SELECT + NULLIF ( 2, - 9 ) col1
----
2

query I rowsort
SELECT + 48 - 85 * - + 25 - 11 + - 7
----
2155

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4504
SELECT ALL ( - - 82 ) + ( - COALESCE ( - CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) - - - 89, + + CAST( NULL AS DECIMAL ) * 86 + + - 76 - + 97 * + + 47 ) ) + - - ( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL ( - - 82 ) + ( - COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) - - - 89, + + CAST ( NULL AS REAL ) * 86 + + - 76 - + 97 * + + 47 ) ) + - - ( + 6 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4505
SELECT - 93 * + - COUNT( * ) * + CAST( NULL AS DECIMAL ) - - + 18 * - COALESCE ( 7, + 43 + - 61, 54, 41 - 15 * COALESCE ( + - NULLIF ( - 93, + 38 ), - COUNT( * ) * - 96 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT - 93 * + - COUNT ( * ) * + CAST ( NULL AS REAL ) - - + 18 * - COALESCE ( 7, + 43 + - 61, 54, 41 - 15 * COALESCE ( + - NULLIF ( - 93, + 38 ), - COUNT ( * ) * - 96 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT MAX( CAST( + 92 AS SIGNED ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4506
SELECT MAX ( CAST ( + 92 AS INTEGER ) ) AS col1
----
92

query I rowsort
SELECT + 95 + + ( + 44 ) * 98 - + + 98
----
4309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT + SUM( DISTINCT 63 ) + - COALESCE ( 60, 35 + 35 ) DIV 96
----
63

skipif mysql # not compatible
query I rowsort label-4508
SELECT + SUM ( DISTINCT 63 ) + - COALESCE ( 60, 35 + 35 ) / 96
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT COUNT( * ), + 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-4509
SELECT COUNT ( * ), + 23 AS col2
----
1
23

query II rowsort
SELECT - + 3 AS col2, 81 AS col1
----
-3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + COUNT( * ) + + + NULLIF ( 92, + - 40 - - 63 )
----
93

skipif mysql # not compatible
query I rowsort label-4511
SELECT + COUNT ( * ) + + + NULLIF ( 92, + - 40 - - 63 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - MIN( ALL 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - MIN ( ALL 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL CAST( + + 58 AS SIGNED ) * ( - + 80 )
----
-4640

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL CAST ( + + 58 AS INTEGER ) * ( - + 80 )
----
-4640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4514
SELECT + COUNT( * ) + + 22 + CAST( NULL AS DECIMAL ) + - - 17 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT + COUNT ( * ) + + 22 + CAST ( NULL AS REAL ) + - - 17 * - 16
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4515
SELECT ALL - CAST( NULL AS DECIMAL ) + - 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - CAST ( NULL AS REAL ) + - 20 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + COUNT( * ) + + 9 * - SUM( - 71 ) + + 34 - - 47 + - 27 + - - 90 + - - MIN( DISTINCT - 50 ) + - 64 * ( + 69 ) + + + SUM( DISTINCT 59 )
----
-3623

skipif mysql # not compatible
query I rowsort label-4516
SELECT + COUNT ( * ) + + 9 * - SUM ( - 71 ) + + 34 - - 47 + - 27 + - - 90 + - - MIN ( DISTINCT - 50 ) + - 64 * ( + 69 ) + + + SUM ( DISTINCT 59 )
----
-3623

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL MIN( + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL MIN ( + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - 67 - CASE COUNT( * ) WHEN - 56 THEN + MAX( - + 21 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - 67 - CASE COUNT ( * ) WHEN - 56 THEN + MAX ( - + 21 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - - SUM( ALL - 54 ) + 68 * - 4
----
-326

skipif mysql # not compatible
query I rowsort label-4519
SELECT - - SUM ( ALL - 54 ) + 68 * - 4
----
-326

query I rowsort
SELECT + 99 * + - 61
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT MAX( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT MAX ( + 99 ) AS col2
----
99

query II rowsort
SELECT - 13, + 15 AS col0
----
-13
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - 87 + + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 87 + + COUNT ( * )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4524
SELECT + 26 DIV + CAST( - COUNT( + 86 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-4524
SELECT + 26 / + CAST ( - COUNT ( + 86 ) AS INTEGER )
----
-26

query I rowsort
SELECT ALL + 53 * - + 27
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - ( + 52 ) * + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4526
SELECT - ( + 52 ) * + - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL + NULLIF ( + COUNT( * ), + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + NULLIF ( + COUNT ( * ), + 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL + COUNT( DISTINCT + + 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + COUNT ( DISTINCT + + 63 ) AS col0
----
1

query I rowsort
SELECT - ( + 20 ) * + 75
----
-1500

query I rowsort
SELECT - 91 * - + 92
----
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + 36 * - 64 * COALESCE ( 80, + CASE - - 51 WHEN - + 53 * - 33 * - 7 THEN NULL WHEN - COUNT( * ) THEN + COUNT( * ) ELSE NULL END, - + 46 + + 35 )
----
-184320

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + 36 * - 64 * COALESCE ( 80, + CASE - - 51 WHEN - + 53 * - 33 * - 7 THEN NULL WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END, - + 46 + + 35 )
----
-184320

query I rowsort
SELECT ( NULLIF ( - 7, - ( - 68 ) ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL 83 * - COUNT( * ) + 20 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 83 * - COUNT ( * ) + 20 AS col2
----
-63

query II rowsort
SELECT ( - 8 ) AS col2, + 88
----
-8
88

query I rowsort
SELECT ALL - 5 * 46 + - + ( + + 74 ) AS col2
----
-304

query I rowsort
SELECT - 25 + 83
----
58

query I rowsort
SELECT COALESCE ( 99, 16 * + + 73 ) AS col2
----
99

query I rowsort
SELECT - 26 * + - 98 + - 2
----
2546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL - 89 * + 59 + + 79 + + 29 * - CAST( + + 93 AS SIGNED ) AS col1
----
-7869

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - 89 * + 59 + + 79 + + 29 * - CAST ( + + 93 AS INTEGER ) AS col1
----
-7869

query I rowsort
SELECT NULLIF ( + - 2, 79 - + - 62 + 83 ) AS col0
----
-2

query I rowsort
SELECT + 77 + 54 AS col2
----
131

query I rowsort
SELECT - + 6 * + 85
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT NULLIF ( 60, + MAX( DISTINCT - + 43 ) ) - + - 89 * + 42 * + + 45
----
168270

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT NULLIF ( 60, + MAX ( DISTINCT - + 43 ) ) - + - 89 * + 42 * + + 45
----
168270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT + + CAST( - COUNT( * ) AS SIGNED ) * - 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + + CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4545
SELECT ALL 61 - + 45 AS col1, 41 / + NULLIF ( + + 27, + 10 + - 22 ) - + - ( - CAST( NULL AS SIGNED ) )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4545
SELECT ALL 61 - + 45 AS col1, 41 / + NULLIF ( + + 27, + 10 + - 22 ) - + - ( - CAST ( NULL AS INTEGER ) )
----
16
NULL

query I rowsort
SELECT 82 * + 28
----
2296

query I rowsort
SELECT ALL + 60 * + 81 * + - 90 AS col1
----
-437400

query II rowsort
SELECT ALL + ( - - 30 ) AS col1, - 28 AS col0
----
30
-28

query II rowsort
SELECT ALL 27 - 4 AS col0, 13 AS col1
----
23
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( + 88 ) * - - 70
----
70

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( + 88 ) * - - 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT COALESCE ( + 7, + - 28, - COUNT( * ) ) * 18
----
126

skipif mysql # not compatible
query I rowsort label-4551
SELECT COALESCE ( + 7, + - 28, - COUNT ( * ) ) * 18
----
126

query I rowsort
SELECT - 84 * + + 50 + - 35
----
-4235

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT MAX( DISTINCT - 2 ) - + + 53 + + 9 AS col2, 62 AS col1
----
-46
62

skipif mysql # not compatible
query II rowsort label-4553
SELECT MAX ( DISTINCT - 2 ) - + + 53 + + 9 AS col2, 62 AS col1
----
-46
62

query I rowsort
SELECT ALL 27 * - 98 AS col1
----
-2646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT CAST( - 69 AS SIGNED ) - 86
----
-155

skipif mysql # not compatible
query I rowsort label-4555
SELECT CAST ( - 69 AS INTEGER ) - 86
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4556
SELECT 96 + + CAST( NULL AS SIGNED ) + CAST( - - ( + 97 ) AS SIGNED ) AS col1, + NULLIF ( - ( ( + 30 ) ), + 72 ) - - - 83 * - ( - + ( 7 ) ) AS col0
----
NULL
-611

skipif mysql # not compatible
query II rowsort label-4556
SELECT 96 + + CAST ( NULL AS INTEGER ) + CAST ( - - ( + 97 ) AS INTEGER ) AS col1, + NULLIF ( - ( ( + 30 ) ), + 72 ) - - - 83 * - ( - + ( 7 ) ) AS col0
----
NULL
-611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT DISTINCT 21 + + ( ( - + CASE - + COUNT( * ) WHEN + + NULLIF ( + - 91, + 76 + + + 52 * 16 ) * + - 55 THEN + CASE + + 82 WHEN + 67 THEN ( ( 66 ) ) * 91 * + + 72 END END ) ) * 82 * + + 70 + - COALESCE ( + NULLIF ( - 16, - CAST( NULL AS SIGNED ) ), - - CASE + MAX( + 44 ) WHEN 68 / + + 70 THEN - 24 END + - CAST( - COUNT( ALL 21 ) AS SIGNED ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT 21 + + ( ( - + CASE - + COUNT ( * ) WHEN + + NULLIF ( + - 91, + 76 + + + 52 * 16 ) * + - 55 THEN + CASE + + 82 WHEN + 67 THEN ( ( 66 ) ) * 91 * + + 72 END END ) ) * 82 * + + 70 + - COALESCE ( + NULLIF ( - 16, - CAST ( NULL AS INTEGER ) ), - - CASE + MAX ( + 44 ) WHEN 68 / + + 70 THEN - 24 END + - CAST ( - COUNT ( ALL 21 ) AS INTEGER ), + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT 5 / - CASE - 46 WHEN - 64 * - CAST( NULL AS SIGNED ) THEN + - 27 WHEN 84 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 5 / - CASE - 46 WHEN - 64 * - CAST ( NULL AS INTEGER ) THEN + - 27 WHEN 84 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT + 93, + MIN( ALL + 71 ) AS col0
----
93
71

skipif mysql # not compatible
query II rowsort label-4559
SELECT + 93, + MIN ( ALL + 71 ) AS col0
----
93
71

query I rowsort
SELECT DISTINCT 85 + 58 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4561
SELECT DISTINCT + CASE CASE + 96 WHEN + CASE + 13 WHEN + ( ( - 46 ) ) / + 84 * - 9 * + 14 * 2 THEN NULL ELSE + + 96 + + COUNT( * ) + - 19 END THEN NULL ELSE + COUNT( * ) + COUNT( * ) + + COUNT( * ) * + 47 + 97 + + + COUNT( * ) + 22 + + SUM( - 88 ) / + CAST( NULL AS DECIMAL ) + 72 + + + CAST( - + ( 28 ) AS SIGNED ) + - 52 * + - 78 * - - 20 END WHEN - 48 THEN NULL WHEN - 23 THEN - 72 END + + - SUM( + 11 ) + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + CASE CASE + 96 WHEN + CASE + 13 WHEN + ( ( - 46 ) ) / + 84 * - 9 * + 14 * 2 THEN NULL ELSE + + 96 + + COUNT ( * ) + - 19 END THEN NULL ELSE + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) * + 47 + 97 + + + COUNT ( * ) + 22 + + SUM ( - 88 ) / + CAST ( NULL AS REAL ) + 72 + + + CAST ( - + ( 28 ) AS INTEGER ) + - 52 * + - 78 * - - 20 END WHEN - 48 THEN NULL WHEN - 23 THEN - 72 END + + - SUM ( + 11 ) + - 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 + - + 57
----
15

query I rowsort
SELECT 30 * 77
----
2310

query I rowsort
SELECT ALL - 14 + + + 49 col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT + 70, 36 * - - 54 * 20 * + COUNT( * ) AS col0
----
70
38880

skipif mysql # not compatible
query II rowsort label-4565
SELECT + 70, 36 * - - 54 * 20 * + COUNT ( * ) AS col0
----
70
38880

query I rowsort
SELECT - 84 * + 56 - + - CASE - 67 WHEN 75 THEN + 79 WHEN - 53 + + 46 THEN NULL END + + 32 * - - 33
----
NULL

query I rowsort
SELECT 14 * + 31
----
434

query I rowsort
SELECT ALL 71 - + 74 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL - MAX( DISTINCT - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - MAX ( DISTINCT - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT - CASE - 95 WHEN ( 42 ) THEN NULL ELSE 0 END AS col0
----
0

query I rowsort
SELECT 46 - COALESCE ( + 59 + 65 * - 96, ( - 74 ) )
----
6227

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT 47 DIV 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT 47 / 38 col1
----
1

query I rowsort
SELECT 20 + 58
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT 29 + CAST( - NULLIF ( + MAX( - 62 ), - MAX( DISTINCT + CAST( + 48 AS SIGNED ) ) + 98 ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4574
SELECT 29 + CAST ( - NULLIF ( + MAX ( - 62 ), - MAX ( DISTINCT + CAST ( + 48 AS INTEGER ) ) + 98 ) AS INTEGER )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4575
SELECT 65 - 7 DIV COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4575
SELECT 65 - 7 / COUNT ( * )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL - 52 DIV - 39 col0
----
1

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - 52 / - 39 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT 35 DIV - 30 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4577
SELECT 35 / - 30 AS col0
----
-1

query I rowsort
SELECT 45 + + 25 * + NULLIF ( COALESCE ( 57, 73 ) * + 3, + 86 + 47 * - 38 )
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT 80 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT 80 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL + CASE NULLIF ( + 24, + COUNT( * ) ) WHEN - 61 * 13 THEN 68 WHEN - 96 * 37 THEN NULL END / + 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + CASE NULLIF ( + 24, + COUNT ( * ) ) WHEN - 61 * 13 THEN 68 WHEN - 96 * 37 THEN NULL END / + 54 col2
----
NULL

query I rowsort
SELECT 64 + + 9
----
73

query I rowsort
SELECT DISTINCT - 80 * 0 col0
----
0

query I rowsort
SELECT ALL - 62 + 44
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT 89 + + 24 DIV 86 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4584
SELECT 89 + + 24 / 86 AS col0
----
89

query I rowsort
SELECT 96 * ( + 88 ) AS col0
----
8448

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4586
SELECT 9 + + CAST( - CASE COALESCE ( 82, 44, + 51 ) WHEN 44 THEN 88 / 54 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 9 + + CAST ( - CASE COALESCE ( 82, 44, + 51 ) WHEN 44 THEN 88 / 54 ELSE NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT 86 + 10 * COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4587
SELECT 86 + 10 * COUNT ( * ) AS col2
----
96

query I rowsort
SELECT DISTINCT - 45 + 2 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL MAX( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL MAX ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT MIN( - 72 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-4590
SELECT MIN ( - 72 ) col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT 18 DIV - 31 + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4591
SELECT 18 / - 31 + - 90 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT 82 * - ( + 93 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT 82 * - ( + 93 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT 11 + - 1 DIV 59
----
11

skipif mysql # not compatible
query I rowsort label-4593
SELECT 11 + - 1 / 59
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT NULLIF ( CASE MAX( DISTINCT + 87 ) WHEN COUNT( * ) THEN 92 - - 97 WHEN 51 + + 76 * - 50 THEN NULL ELSE NULL END, - 98 ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT NULLIF ( CASE MAX ( DISTINCT + 87 ) WHEN COUNT ( * ) THEN 92 - - 97 WHEN 51 + + 76 * - 50 THEN NULL ELSE NULL END, - 98 ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT 49 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT 49 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - SUM( ALL - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - SUM ( ALL - 11 )
----
11

query I rowsort
SELECT ALL + 24 * 35 - - 75 col1
----
915

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT 56 DIV 76 + - 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4598
SELECT 56 / 76 + - 64 AS col0
----
-64

query I rowsort
SELECT ALL 39 * - 66 - 21 * + 57 col2
----
-3771

query I rowsort
SELECT - - 24 + - 28
----
-4

query I rowsort
SELECT - 3 * + 29
----
-87

query I rowsort
SELECT - + 49 + - 3
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL - 43 - + MAX( ALL - 0 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - 43 - + MAX ( ALL - 0 ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT CAST( - NULLIF ( - 1, 82 + + 10 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT CAST ( - NULLIF ( - 1, 82 + + 10 ) AS INTEGER )
----
1

query I rowsort
SELECT + 68 * + 24 + - 35 * - 62
----
3802

query I rowsort
SELECT ALL - + 97 * 36 AS col0
----
-3492

query I rowsort
SELECT + + 5 * - 66 col0
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT - + 99 + + 44 DIV 73 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4608
SELECT - + 99 + + 44 / 73 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COALESCE ( + 59, COUNT( * ), - 81 + + 68 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COALESCE ( + 59, COUNT ( * ), - 81 + + 68 ) col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT SUM( ( 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT SUM ( ( 26 ) ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT - CASE 65 WHEN ( COUNT( * ) ) * 2 THEN - CAST( 27 AS SIGNED ) WHEN 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT - CASE 65 WHEN ( COUNT ( * ) ) * 2 THEN - CAST ( 27 AS INTEGER ) WHEN 41 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 55 * 47 col0
----
-2585

query I rowsort
SELECT DISTINCT - 36 + - 19 * + 1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + - 78 - - CASE + ( - CASE 69 WHEN - 61 THEN 46 WHEN 62 THEN NULL END ) WHEN - MIN( - ( - 62 ) ) THEN NULL ELSE 33 + + COUNT( * ) END AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4614
SELECT + - 78 - - CASE + ( - CASE 69 WHEN - 61 THEN 46 WHEN 62 THEN NULL END ) WHEN - MIN ( - ( - 62 ) ) THEN NULL ELSE 33 + + COUNT ( * ) END AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + 72
----
70

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + 72
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - COUNT( * ) - 4
----
-5

skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( * ) - 4
----
-5

query I rowsort
SELECT ALL - 58 + 48 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT DISTINCT + 4 DIV + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + 4 / + 29 AS col2
----
0

query I rowsort
SELECT DISTINCT - 49 + 11 * 84 AS col2
----
875

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + 84 - + - 51 DIV 25
----
86

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 84 - + - 51 / 25
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT - 77 DIV - + 80 - 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4621
SELECT - 77 / - + 80 - 12 AS col0
----
-12

query I rowsort
SELECT - 72 * - 90 AS col2
----
6480

query I rowsort
SELECT ALL + ( + ( 88 ) )
----
88

query I rowsort
SELECT ALL + ( - + ( 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + NULLIF ( + 28, COUNT( * ) ) col0
----
28

skipif mysql # not compatible
query I rowsort label-4625
SELECT + NULLIF ( + 28, COUNT ( * ) ) col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT 48 DIV - 93 * 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 48 / - 93 * 1 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT + - 94 * + CASE 88 WHEN + 83 THEN + NULLIF ( 32, 83 * 85 + - COUNT( * ) ) + - 92 / COUNT( DISTINCT - 12 + - 66 * ( + 97 * CAST( NULL AS SIGNED ) ) ) WHEN - 84 * 19 THEN + 83 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT + - 94 * + CASE 88 WHEN + 83 THEN + NULLIF ( 32, 83 * 85 + - COUNT ( * ) ) + - 92 / COUNT ( DISTINCT - 12 + - 66 * ( + 97 * CAST ( NULL AS INTEGER ) ) ) WHEN - 84 * 19 THEN + 83 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - - 83 + 18 + 26 * + MIN( ALL 85 )
----
2311

skipif mysql # not compatible
query I rowsort label-4628
SELECT - - 83 + 18 + 26 * + MIN ( ALL 85 )
----
2311

query I rowsort
SELECT + 77 + + 3 + + 65
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT + - 53 * + 9 * COALESCE ( 56, 40 DIV - CASE 0 WHEN - 89 * - NULLIF ( - COALESCE ( + 78, 35, 74 ) * + 24, + 82 DIV + 6 + + 76 * 70 ) THEN NULL WHEN - NULLIF ( + 23, + 77 + - 71 ) THEN 69 * + 17 + COALESCE ( - 43, COUNT( * ) ) ELSE + 78 END + 61 ) + - 76 * + 11 AS col1
----
-27548

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + - 53 * + 9 * COALESCE ( 56, 40 / - CASE 0 WHEN - 89 * - NULLIF ( - COALESCE ( + 78, 35, 74 ) * + 24, + 82 / + 6 + + 76 * 70 ) THEN NULL WHEN - NULLIF ( + 23, + 77 + - 71 ) THEN 69 * + 17 + COALESCE ( - 43, COUNT ( * ) ) ELSE + 78 END + 61 ) + - 76 * + 11 AS col1
----
-27548

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL COUNT( * ) * + 98 * 32 + 15 AS col0
----
3151

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL COUNT ( * ) * + 98 * 32 + 15 AS col0
----
3151

query I rowsort
SELECT + - 93 * + - 77 + 8 * - 9 AS col2
----
7089

query I rowsort
SELECT DISTINCT 90 * 51 + 36 col1
----
4626

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + + COALESCE ( - - COUNT( * ), + 52 * COUNT( * ) ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4634
SELECT + + COALESCE ( - - COUNT ( * ), + 52 * COUNT ( * ) ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT + + 32 + 67 * - 36
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT COALESCE ( - NULLIF ( COUNT( * ), 54 + + 36 ), 6 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4636
SELECT COALESCE ( - NULLIF ( COUNT ( * ), 54 + + 36 ), 6 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + 5 * CASE 3 WHEN 16 * - 68 THEN NULL WHEN + SUM( 52 ) THEN + CASE 19 WHEN + 85 * + 20 THEN 27 + 72 END + 57 ELSE 15 END * 56
----
4200

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 5 * CASE 3 WHEN 16 * - 68 THEN NULL WHEN + SUM ( 52 ) THEN + CASE 19 WHEN + 85 * + 20 THEN 27 + 72 END + 57 ELSE 15 END * 56
----
4200

query I rowsort
SELECT ALL - 46 + - - 91 - - 17
----
62

query I rowsort
SELECT + 93 + - 74 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL 27 * + 49 * COUNT( * ) * + 83
----
109809

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 27 * + 49 * COUNT ( * ) * + 83
----
109809

query I rowsort
SELECT DISTINCT 62 * 5 AS col0
----
310

query I rowsort
SELECT ALL 20 + + 55 * - 1 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 91 + - - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 91 + - - COUNT ( * ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL AVG ( DISTINCT COALESCE ( 96, 43, ( - 35 ) * - 47 ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL AVG ( DISTINCT COALESCE ( 96, 43, ( - 35 ) * - 47 ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 45 - + 65
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT + CAST( NULL AS SIGNED ) + + 2 + 73 * 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT + CAST ( NULL AS INTEGER ) + + 2 + 73 * 33 AS col1
----
NULL

query II rowsort
SELECT 97, + ( - + 85 ) AS col2
----
97
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - 78 * - - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 78 * - - COUNT ( * ) AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT ALL - ( ( + + 39 ) ) DIV + 5 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - ( ( + + 39 ) ) / + 5 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT - 73 DIV 41 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - 73 / 41 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT + CAST( 75 AS SIGNED ) - + 87 DIV + 2
----
32

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + CAST ( 75 AS INTEGER ) - + 87 / + 2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT ALL - COUNT( * ) * + 37 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - COUNT ( * ) * + 37 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL - COUNT( ALL 41 ) * - 86 * 20 col2
----
1720

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - COUNT ( ALL 41 ) * - 86 * 20 col2
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 39 * + ( - + COUNT( DISTINCT - 19 ) ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-4654
SELECT 39 * + ( - + COUNT ( DISTINCT - 19 ) ) col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT + - 18 AS col1, 97 * + CAST( NULL AS SIGNED ) * 28 AS col1
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-4655
SELECT + - 18 AS col1, 97 * + CAST ( NULL AS INTEGER ) * 28 AS col1
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT 5 * 5 + + SUM( DISTINCT ( 38 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4656
SELECT 5 * 5 + + SUM ( DISTINCT ( 38 ) ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4657
SELECT + COUNT( - 35 ) DIV + 98 * ( - 54 ) + COUNT( 85 + + 77 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( - 35 ) / + 98 * ( - 54 ) + COUNT ( 85 + + 77 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - COUNT( - 65 ) + - 96 * 8 col0
----
-769

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - COUNT ( - 65 ) + - 96 * 8 col0
----
-769

query I rowsort
SELECT + 47 + ( + 40 ) * + 20 AS col2
----
847

query I rowsort
SELECT DISTINCT - + 50 + 91 + COALESCE ( 98, + 84 )
----
139

query I rowsort
SELECT DISTINCT + 50 + - + 62 AS col0
----
-12

query I rowsort
SELECT ALL - 91 + 39 AS col0
----
-52

query I rowsort
SELECT DISTINCT + - 38 + + 87
----
49

query I rowsort
SELECT ALL 27 + 78
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4665
SELECT - 97 + + CAST( NULL AS DECIMAL ) + + + 51 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT - 97 + + CAST ( NULL AS REAL ) + + + 51 * + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT - ( COUNT( * ) ) * - 93 * + COUNT( * ) + 94
----
187

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - ( COUNT ( * ) ) * - 93 * + COUNT ( * ) + 94
----
187

query I rowsort
SELECT - ( ( + 41 ) ) + - 44 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT + 5, - MIN( ALL - 41 ) AS col1
----
5
41

skipif mysql # not compatible
query II rowsort label-4668
SELECT + 5, - MIN ( ALL - 41 ) AS col1
----
5
41

query I rowsort
SELECT + 63 * - 27 * - 61
----
103761

query I rowsort
SELECT ALL + 76 + - 61 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT NULLIF ( + + ( - - 64 ), COALESCE ( COUNT( * ), 74 * + ( 88 * + 82 ), 40 * 81, - MAX( - 25 ) ) / + CAST( + 52 AS SIGNED ) ) + - ( ( 40 ) + 46 )
----
-22

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT NULLIF ( + + ( - - 64 ), COALESCE ( COUNT ( * ), 74 * + ( 88 * + 82 ), 40 * 81, - MAX ( - 25 ) ) / + CAST ( + 52 AS INTEGER ) ) + - ( ( 40 ) + 46 )
----
-22

query I rowsort
SELECT ALL - 6 * + 10 + + ( 53 ) * 76 AS col1
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT DISTINCT + COUNT( * ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + COUNT ( * ) + - 46
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT ALL + 84 DIV - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + 84 / - COUNT ( * ) AS col0
----
-84

query II rowsort
SELECT ALL 21 - + 7 AS col2, - 65 AS col2
----
14
-65

query II rowsort
SELECT ALL - 32 - - 98 AS col0, - COALESCE ( 20, 52 )
----
66
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL CAST( NULL AS SIGNED ) * - 26 * - + SUM( - ( ( 62 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL CAST ( NULL AS INTEGER ) * - 26 * - + SUM ( - ( ( 62 ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT CAST( NULL AS SIGNED ) - - 14 + - ( + - CASE 89 WHEN + SUM( ALL 81 ) THEN NULL ELSE 27 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT CAST ( NULL AS INTEGER ) - - 14 + - ( + - CASE 89 WHEN + SUM ( ALL 81 ) THEN NULL ELSE 27 END )
----
NULL

query II rowsort
SELECT 33 + - - 24 col2, 87
----
57
87

query I rowsort
SELECT ALL 7 * + - 62
----
-434

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT 39 * 61 DIV + 9
----
264

skipif mysql # not compatible
query I rowsort label-4681
SELECT 39 * 61 / + 9
----
264

query I rowsort
SELECT 23 + + 62
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4683
SELECT 29 DIV + + ( COALESCE ( + - CAST( NULL AS SIGNED ), 80 * 8 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT 29 / + + ( COALESCE ( + - CAST ( NULL AS INTEGER ), 80 * 8 ) ) AS col2
----
0

query I rowsort
SELECT 65 * + - 71 AS col1
----
-4615

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT ALL - 24 + - 29 AS col1, 34 * 84 DIV 33
----
-53
86

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL - 24 + - 29 AS col1, 34 * 84 / 33
----
-53
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT + - CAST( + 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - CAST ( + 69 AS INTEGER ) AS col0
----
-69

query I rowsort
SELECT ALL 15 + - + ( - 26 ) * + + 80 AS col2
----
2095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL + + 60 + - + CAST( NULL AS SIGNED ) - + - 26 * + + CASE CASE + 78 WHEN 62 THEN NULL WHEN + 49 * - 73 THEN - 42 WHEN + 7 THEN NULL END WHEN - CASE + NULLIF ( 61, + 52 ) WHEN + 22 THEN - 52 WHEN + 24 THEN CASE + NULLIF ( + ( NULLIF ( 31, 48 * + 8 ) ), 72 + CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) - + 50 THEN COUNT( * ) WHEN + 95 THEN 17 * COUNT( * ) + + 63 * AVG ( DISTINCT 16 ) END + - 41 END * + 67 + - 67 THEN NULL WHEN - ( - 12 ) * + 74 - 1 THEN NULL ELSE ( - 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + + 60 + - + CAST ( NULL AS INTEGER ) - + - 26 * + + CASE CASE + 78 WHEN 62 THEN NULL WHEN + 49 * - 73 THEN - 42 WHEN + 7 THEN NULL END WHEN - CASE + NULLIF ( 61, + 52 ) WHEN + 22 THEN - 52 WHEN + 24 THEN CASE + NULLIF ( + ( NULLIF ( 31, 48 * + 8 ) ), 72 + CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) - + 50 THEN COUNT ( * ) WHEN + 95 THEN 17 * COUNT ( * ) + + 63 * AVG ( DISTINCT 16 ) END + - 41 END * + 67 + - 67 THEN NULL WHEN - ( - 12 ) * + 74 - 1 THEN NULL ELSE ( - 65 ) END
----
NULL

query I rowsort
SELECT ALL - 62 + + + 13 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL - + 65 + - - COUNT( * ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - + 65 + - - COUNT ( * ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT COUNT( * ) * - - ( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4691
SELECT COUNT ( * ) * - - ( 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4692
SELECT ALL + CASE 68 WHEN CAST( NULL AS DECIMAL ) - - COUNT( * ) * + 62 THEN + COUNT( * ) WHEN 40 THEN 60 WHEN + 35 / + 91 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + CASE 68 WHEN CAST ( NULL AS REAL ) - - COUNT ( * ) * + 62 THEN + COUNT ( * ) WHEN 40 THEN 60 WHEN + 35 / + 91 THEN NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 19 - - - 27 AS col2
----
-8

query I rowsort
SELECT ALL - 55 * 6
----
-330

query I rowsort
SELECT 38 + + 65 * - 35
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT DISTINCT + + COALESCE ( + 50, ( - CASE - 91 WHEN + ( COUNT( * ) ) * ( - COUNT( * ) + + 74 ) THEN - 3 * + SUM( + 27 ) ELSE + 11 END ), - COUNT( * ) * - 24 ) - 86 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + + COALESCE ( + 50, ( - CASE - 91 WHEN + ( COUNT ( * ) ) * ( - COUNT ( * ) + + 74 ) THEN - 3 * + SUM ( + 27 ) ELSE + 11 END ), - COUNT ( * ) * - 24 ) - 86 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - 47 * - 80 * - - ( + - 54 ) - COALESCE ( - 51, - 41, - COUNT( * ) ) AS col0
----
-202989

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 47 * - 80 * - - ( + - 54 ) - COALESCE ( - 51, - 41, - COUNT ( * ) ) AS col0
----
-202989

query I rowsort
SELECT 89 + 19 AS col0
----
108

query I rowsort
SELECT 24 - + + 16 AS col0
----
8

query I rowsort
SELECT 95 * - + 22 AS col2
----
-2090

query I rowsort
SELECT DISTINCT 8 * - - 41
----
328

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4702
SELECT 79 AS col0, + NULLIF ( - 3, CAST( - 97 AS SIGNED ) * + 52 ) DIV 99 - + 83 * ( - 17 )
----
79
1411

skipif mysql # not compatible
query II rowsort label-4702
SELECT 79 AS col0, + NULLIF ( - 3, CAST ( - 97 AS INTEGER ) * + 52 ) / 99 - + 83 * ( - 17 )
----
79
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + 37 * + COUNT( + 1 )
----
37

skipif mysql # not compatible
query I rowsort label-4703
SELECT + 37 * + COUNT ( + 1 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + 49 + 68 + 48 + - - SUM( DISTINCT + 62 )
----
227

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 49 + 68 + 48 + - - SUM ( DISTINCT + 62 )
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT + 10 * - + CAST( + + 72 AS SIGNED )
----
-720

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + 10 * - + CAST ( + + 72 AS INTEGER )
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + 1 * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 1 * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT CASE + NULLIF ( + - ( - 40 ), + 47 ) WHEN 74 * - CASE 52 WHEN 22 / - 4 THEN + COUNT( * ) * - COUNT( 66 ) WHEN 18 THEN + 0 WHEN 64 THEN 86 END THEN + 84 WHEN COUNT( * ) THEN NULL END / 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT CASE + NULLIF ( + - ( - 40 ), + 47 ) WHEN 74 * - CASE 52 WHEN 22 / - 4 THEN + COUNT ( * ) * - COUNT ( 66 ) WHEN 18 THEN + 0 WHEN 64 THEN 86 END THEN + 84 WHEN COUNT ( * ) THEN NULL END / 26 AS col2
----
NULL

query I rowsort
SELECT + 2 + 22
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT + 19 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 19 / - 39
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT - NULLIF ( CAST( - 35 AS SIGNED ), 23 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4710
SELECT - NULLIF ( CAST ( - 35 AS INTEGER ), 23 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT + 7 + + CAST( NULL AS SIGNED ) - + + CAST( COALESCE ( - 12, CASE AVG ( - 52 ) WHEN 81 + - CAST( + ( 27 ) + 13 * + COALESCE ( 5 - 56, 36 ) AS SIGNED ) THEN NULL WHEN MIN( 35 ) + MIN( DISTINCT 72 ) THEN COUNT( * ) * + 46 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 7 + + CAST ( NULL AS INTEGER ) - + + CAST ( COALESCE ( - 12, CASE AVG ( - 52 ) WHEN 81 + - CAST ( + ( 27 ) + 13 * + COALESCE ( 5 - 56, 36 ) AS INTEGER ) THEN NULL WHEN MIN ( 35 ) + MIN ( DISTINCT 72 ) THEN COUNT ( * ) * + 46 END ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT 19 + - 71 + + 39 * CAST( NULL AS SIGNED ) * + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 19 + - 71 + + 39 * CAST ( NULL AS INTEGER ) * + + 28 AS col1
----
NULL

query I rowsort
SELECT - CASE WHEN NOT ( ( NULL ) < - 99 ) THEN 85 + 49 * 21 WHEN - NULLIF ( - 30, 44 * 42 ) + 61 IS NOT NULL THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 95 + - - 93
----
188

query I rowsort
SELECT ALL 53 + - 87 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - MAX( + ( 24 ) ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-4716
SELECT - MAX ( + ( 24 ) ) col0
----
-24

query I rowsort
SELECT DISTINCT 99 + + - 27 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL 4 * - + COUNT( * ) * 77 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 4 * - + COUNT ( * ) * 77 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 43 + - 69 + + 83 AS col0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4720
SELECT DISTINCT + 25 * + CAST( NULL AS DECIMAL ) / - 76 + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + 25 * + CAST ( NULL AS REAL ) / - 76 + + 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - 38 AS col2
----
-1254

query I rowsort
SELECT + 0 - + 4
----
-4

query I rowsort
SELECT + + CASE - 10 WHEN - 13 THEN - - 17 + + - 75 + + 82 / 10 ELSE 0 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT - ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - 35 / 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT - ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - 35 / 1 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 96 * - 17 + - 5 + + 67 + + - 3 col0
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COUNT( * ) + 9 col2
----
10

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COUNT ( * ) + 9 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + + COUNT( * ) * + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-4727
SELECT + + COUNT ( * ) * + - 25
----
-25

query I rowsort
SELECT - + 39 + 10 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4729
SELECT + 37 * + CAST( + + CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) + - 88 DIV 28
----
34

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 37 * + CAST ( + + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) + - 88 / 28
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT + 17 * 50 * COALESCE ( + MAX( - + 29 ), 67 * 33 ) AS col1
----
-24650

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + 17 * 50 * COALESCE ( + MAX ( - + 29 ), 67 * 33 ) AS col1
----
-24650

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT - 6 DIV + 14 - 66 + 14
----
-52

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - 6 / + 14 - 66 + 14
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT ALL 33 DIV + 18 col0
----
1

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 33 / + 18 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL - COUNT( ALL + 44 ) * 34 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - COUNT ( ALL + 44 ) * 34 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT - - MAX( - 5 ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT - - MAX ( - 5 ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT + MAX( DISTINCT 33 ) * - 53 + + + 45 AS col2
----
-1704

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + MAX ( DISTINCT 33 ) * - 53 + + + 45 AS col2
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + MIN( DISTINCT + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + MIN ( DISTINCT + 56 ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT - 0 DIV - 10 - + - 5 + + 2 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 0 / - 10 - + - 5 + + 2 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT + CAST( - + 73 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4738
SELECT + CAST ( - + 73 AS INTEGER ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT COUNT( * ), + 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-4739
SELECT COUNT ( * ), + 66 AS col1
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT 5 * + ( - + COUNT( * ) ) + + ( NULLIF ( + - 80, 67 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-4740
SELECT 5 * + ( - + COUNT ( * ) ) + + ( NULLIF ( + - 80, 67 ) )
----
-85

query II rowsort
SELECT DISTINCT + ( 22 ) AS col0, 57 col2
----
22
57

query I rowsort
SELECT ALL ( + 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT DISTINCT CASE - CASE + + 15 WHEN + + 87 + - COUNT( * ) THEN NULL ELSE - 17 * 32 END WHEN + 21 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT CASE - CASE + + 15 WHEN + + 87 + - COUNT ( * ) THEN NULL ELSE - 17 * 32 END WHEN + 21 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT 55 * - 49 AS col1
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT - 78 * - COALESCE ( COUNT( * ), - 99 + - 73 + 63 * + NULLIF ( MIN( ALL 17 ) - + ( 49 ), 3 * - 9 ) )
----
78

skipif mysql # not compatible
query I rowsort label-4745
SELECT - 78 * - COALESCE ( COUNT ( * ), - 99 + - 73 + 63 * + NULLIF ( MIN ( ALL 17 ) - + ( 49 ), 3 * - 9 ) )
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT ALL + ( 70 ) + + 63 * 0 col2, + 12 * 83 DIV + 78 + - 78 * - 5 AS col2
----
70
402

skipif mysql # not compatible
query II rowsort label-4746
SELECT ALL + ( 70 ) + + 63 * 0 col2, + 12 * 83 / + 78 + - 78 * - 5 AS col2
----
70
402

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - 90 + - SUM( DISTINCT - 58 )
----
-32

skipif mysql # not compatible
query I rowsort label-4747
SELECT - 90 + - SUM ( DISTINCT - 58 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT - 7 DIV + + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT - 7 / + + 48 AS col0
----
0

query I rowsort
SELECT - 66 + + + 52 AS col0
----
-14

query I rowsort
SELECT - COALESCE ( 13, - 24 ) AS col2
----
-13

query II rowsort
SELECT + 89 + 63, - 92 col2
----
152
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT DISTINCT + ( CASE COUNT( * ) WHEN - - CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN 47 THEN 96 ELSE NULL END ) + SUM( DISTINCT NULLIF ( 12, - 16 * 18 ) ) * - ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + ( CASE COUNT ( * ) WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 47 THEN 96 ELSE NULL END ) + SUM ( DISTINCT NULLIF ( 12, - 16 * 18 ) ) * - ( 34 )
----
NULL

query I rowsort
SELECT + 53 * + + ( 61 )
----
3233

query I rowsort
SELECT ALL + 7 + + 19
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT - - COUNT( * ) * - NULLIF ( - + 76, 83 * - 56 + - 55 * 19 + COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - - COUNT ( * ) * - NULLIF ( - + 76, 83 * - 56 + - 55 * 19 + COUNT ( * ) )
----
76

query I rowsort
SELECT DISTINCT ( 9 ) + 82
----
91

query I rowsort
SELECT - + 40 + - 66 col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + - COUNT( * ) * NULLIF ( 79, + - 49 ) + - COUNT( * ) + + + 56 * 30
----
1600

skipif mysql # not compatible
query I rowsort label-4758
SELECT + - COUNT ( * ) * NULLIF ( 79, + - 49 ) + - COUNT ( * ) + + + 56 * 30
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT 33 - SUM( ALL - 35 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT 33 - SUM ( ALL - 35 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - CASE - + 26 WHEN - COUNT( * ) + - - 8 + NULLIF ( + COUNT( * ), 11 + 5 * + 20 ) * 97 THEN COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - CASE - + 26 WHEN - COUNT ( * ) + - - 8 + NULLIF ( + COUNT ( * ), 11 + 5 * + 20 ) * 97 THEN COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4761
SELECT ALL COUNT( * ) DIV + COUNT( ALL - + 82 ) - - CAST( + COUNT( * ) AS SIGNED ) * + + 72 * - 15
----
-1079

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL COUNT ( * ) / + COUNT ( ALL - + 82 ) - - CAST ( + COUNT ( * ) AS INTEGER ) * + + 72 * - 15
----
-1079

query III rowsort
SELECT - 24 AS col0, + 85 * - 0 * 86, - 6 AS col1
----
-24
0
-6

query II rowsort
SELECT + + 96 AS col2, 89
----
96
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT + CASE - 73 WHEN + 23 - - 67 + - 7 - - AVG ( + 12 ) * NULLIF ( + CAST( - 50 AS SIGNED ), + 51 * + 51 + 44 ) THEN - COUNT( 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CASE - 73 WHEN + 23 - - 67 + - 7 - - AVG ( + 12 ) * NULLIF ( + CAST ( - 50 AS INTEGER ), + 51 * + 51 + 44 ) THEN - COUNT ( 90 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL CAST( 63 AS SIGNED ) * + 46 AS col1
----
2898

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL CAST ( 63 AS INTEGER ) * + 46 AS col1
----
2898

query I rowsort
SELECT DISTINCT 22 * + - 4 * - + 36 + + 83 * ( + 0 ) AS col0
----
3168

query I rowsort
SELECT ALL + CASE - - 80 WHEN + + 27 * + 27 THEN NULL ELSE 75 END AS col0
----
75

query I rowsort
SELECT + - 33 * + 22 AS col1
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL - 28 * - MIN( DISTINCT - 10 ) col0
----
-280

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL - 28 * - MIN ( DISTINCT - 10 ) col0
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT + 42 * - ( 80 ) * + 6 + - + CAST( - 46 AS SIGNED ) + + 51 * 18 + 92 AS col2
----
-19104

skipif mysql # not compatible
query I rowsort label-4770
SELECT + 42 * - ( 80 ) * + 6 + - + CAST ( - 46 AS INTEGER ) + + 51 * 18 + 92 AS col2
----
-19104

query II rowsort
SELECT 34 * + - 48 col0, - CASE ( - 32 ) WHEN - 80 * - 7 THEN + 28 WHEN ( 74 ) * ( 71 + + 9 ) + 41 THEN COALESCE ( + 15, 68 ) * + 3 END * NULLIF ( 75 - 14 * + 60, + 38 + 19 / + 32 ) AS col1
----
-1632
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - 38 * - + COUNT( * ) + - CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 38 * - + COUNT ( * ) + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT DISTINCT + ( COUNT( * ) ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT + ( COUNT ( * ) ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT 14 + MAX( 81 )
----
95

skipif mysql # not compatible
query I rowsort label-4774
SELECT 14 + MAX ( 81 )
----
95

query I rowsort
SELECT ALL + 10 * + 87 AS col2
----
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CAST( NULL AS SIGNED ) + + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( NULL AS INTEGER ) + + 70 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4777
SELECT DISTINCT ( + 81 ) DIV - 59 + 47 * CAST( + + 51 AS SIGNED ) + - 29 col1
----
2367

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT ( + 81 ) / - 59 + 47 * CAST ( + + 51 AS INTEGER ) + - 29 col1
----
2367

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL + ( + + 79 ) + CASE - ( + ( + 13 ) ) WHEN - + SUM( + 44 ) * 14 THEN + 98 * + 14 + 47 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + ( + + 79 ) + CASE - ( + ( + 13 ) ) WHEN - + SUM ( + 44 ) * 14 THEN + 98 * + 14 + 47 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT - COUNT( * ) * - - ( - COALESCE ( + + 98, 77 * CAST( 19 AS SIGNED ), 11 ) ) - + 36
----
62

skipif mysql # not compatible
query I rowsort label-4779
SELECT - COUNT ( * ) * - - ( - COALESCE ( + + 98, 77 * CAST ( 19 AS INTEGER ), 11 ) ) - + 36
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT COALESCE ( + 73, 59 DIV + 82 + 25 * - 58, 90 - - 91 * - 53 ) + MIN( - 45 ) * 34
----
-1457

skipif mysql # not compatible
query I rowsort label-4780
SELECT COALESCE ( + 73, 59 / + 82 + 25 * - 58, 90 - - 91 * - 53 ) + MIN ( - 45 ) * 34
----
-1457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL + CAST( NULL AS SIGNED ) + + 28 - 44 * + 77 * + COALESCE ( 58, + CASE - ( + 28 ) WHEN 70 THEN COUNT( * ) WHEN SUM( - 64 ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + CAST ( NULL AS INTEGER ) + + 28 - 44 * + 77 * + COALESCE ( 58, + CASE - ( + 28 ) WHEN 70 THEN COUNT ( * ) WHEN SUM ( - 64 ) THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT 68 + - 49 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 78 + - 26 + + + ( ( - 48 ) ) + - 28 - 45 * 49 * ( + MIN( - 75 ) + 83 )
----
-17664

skipif mysql # not compatible
query I rowsort label-4783
SELECT 78 + - 26 + + + ( ( - 48 ) ) + - 28 - 45 * 49 * ( + MIN ( - 75 ) + 83 )
----
-17664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4784
SELECT ALL NULLIF ( + 66, - CAST( NULL AS DECIMAL ) ) * + 4 * - + 79
----
-20856

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL NULLIF ( + 66, - CAST ( NULL AS REAL ) ) * + 4 * - + 79
----
-20856

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - 48 + - - ( - - MAX( ALL - + 17 ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 48 + - - ( - - MAX ( ALL - + 17 ) ) col2
----
-65

query I rowsort
SELECT 58 + - 79 AS col2
----
-21

query I rowsort
SELECT ALL - 75 + + 83 AS col0
----
8

query I rowsort
SELECT 68 + - + 98 + + 55 * ( - 44 ) * + 80 + - 64 - + 9 AS col0
----
-193703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL 0 + - ( + 4 ) + - CAST( NULL AS SIGNED ) * 7 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL 0 + - ( + 4 ) + - CAST ( NULL AS INTEGER ) * 7 * + 46
----
NULL

query I rowsort
SELECT DISTINCT + + 29 - - 47 - - 24 / CASE + 37 WHEN + + 53 THEN - 74 END / 34 * 7 col1
----
NULL

query I rowsort
SELECT 28 + + 71 * 71 AS col1
----
5069

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT 87 + COUNT( * ) * + + 67 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-4792
SELECT 87 + COUNT ( * ) * + + 67 AS col1
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + 83 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + 83 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 33 + - NULLIF ( 84, - 17 + ( - + 54 ) / + + 80 ) AS col2
----
-51

query I rowsort
SELECT DISTINCT + + 28 * + 37 AS col0
----
1036

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + + 66, 25 ) ) * 55
----
3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT - CAST( 1 AS SIGNED ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - CAST ( 1 AS INTEGER ) - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT CASE + + ( - + ( + + 41 ) ) WHEN AVG ( - + 9 ) + - 47 THEN 85 WHEN - 25 * 54 THEN + 42 ELSE NULL END + 87 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT CASE + + ( - + ( + + 41 ) ) WHEN AVG ( - + 9 ) + - 47 THEN 85 WHEN - 25 * 54 THEN + 42 ELSE NULL END + 87 * COUNT ( * )
----
NULL

query I rowsort
SELECT 44 + - - 15 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MAX( - 92 ) * 5 * 65 * - 53 + + COUNT( * ) - + 55 + + 61 * - 77
----
-1589451

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MAX ( - 92 ) * 5 * 65 * - 53 + + COUNT ( * ) - + 55 + + 61 * - 77
----
-1589451

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT DISTINCT - + MIN( - 15 ) col0, COUNT( * ) * + 75 * COUNT( * ) AS col1
----
15
75

skipif mysql # not compatible
query II rowsort label-4801
SELECT DISTINCT - + MIN ( - 15 ) col0, COUNT ( * ) * + 75 * COUNT ( * ) AS col1
----
15
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4802
SELECT - COUNT( * ) + 42, COALESCE ( CAST( NULL AS SIGNED ), - ( - 37 ) * - 58 * 99, + 6 ) col0
----
41
-212454

skipif mysql # not compatible
query II rowsort label-4802
SELECT - COUNT ( * ) + 42, COALESCE ( CAST ( NULL AS INTEGER ), - ( - 37 ) * - 58 * 99, + 6 ) col0
----
41
-212454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT CAST( - 30 AS SIGNED ) + ( - CASE CAST( + - 78 AS SIGNED ) WHEN + + 66 + + 91 + 47 * CASE - 67 WHEN - 74 * 12 + 35 THEN ( + ( + CAST( NULL AS SIGNED ) ) ) + SUM( ALL + ( - 58 ) ) WHEN - 66 THEN NULL WHEN - 71 + 68 THEN NULL ELSE + 43 * + 56 END THEN + 17 DIV - 43 WHEN + 60 * - 64 THEN NULL ELSE - COALESCE ( 70, 13 ) DIV + COALESCE ( 13 * - COUNT( * ) + - 55 * + 21, 30 * - 65 ) END ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT CAST ( - 30 AS INTEGER ) + ( - CASE CAST ( + - 78 AS INTEGER ) WHEN + + 66 + + 91 + 47 * CASE - 67 WHEN - 74 * 12 + 35 THEN ( + ( + CAST ( NULL AS INTEGER ) ) ) + SUM ( ALL + ( - 58 ) ) WHEN - 66 THEN NULL WHEN - 71 + 68 THEN NULL ELSE + 43 * + 56 END THEN + 17 / - 43 WHEN + 60 * - 64 THEN NULL ELSE - COALESCE ( 70, 13 ) / + COALESCE ( 13 * - COUNT ( * ) + - 55 * + 21, 30 * - 65 ) END ) AS col2
----
-30

query I rowsort
SELECT ALL CASE - + 77 WHEN + 80 + 15 THEN - - 2 ELSE 89 + - 33 END * - 83 AS col0
----
-4648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT ( ( + 77 ) ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ( ( + 77 ) ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 69 ) + - 6 col0
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4807
SELECT 84, ( 88 ) DIV + ( + 12 ) AS col1
----
84
7

skipif mysql # not compatible
query II rowsort label-4807
SELECT 84, ( 88 ) / + ( + 12 ) AS col1
----
84
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4808
SELECT ALL SUM( 71 ) + MAX( - 61 ) AS col1, + 21 DIV 77
----
10
0

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL SUM ( 71 ) + MAX ( - 61 ) AS col1, + 21 / 77
----
10
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 64 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 64 + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + COUNT( * ) * + NULLIF ( 0, + - 70 + - 91 ) + - CASE COUNT( * ) WHEN + 78 THEN + 59 * + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT + COUNT ( * ) * + NULLIF ( 0, + - 70 + - 91 ) + - CASE COUNT ( * ) WHEN + 78 THEN + 59 * + 38 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT 96 + + + 97 + - MIN( - 97 ) + + + 12 DIV - 9 AS col2
----
289

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT 96 + + + 97 + - MIN ( - 97 ) + + + 12 / - 9 AS col2
----
289

query II rowsort
SELECT 76 AS col0, - 48 * - 89
----
76
4272

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT + 51 AS col2, - CASE 56 WHEN - 54 THEN NULL WHEN ( 25 ) THEN NULL ELSE - - COUNT( * ) END * + 50
----
51
-50

skipif mysql # not compatible
query II rowsort label-4813
SELECT + 51 AS col2, - CASE 56 WHEN - 54 THEN NULL WHEN ( 25 ) THEN NULL ELSE - - COUNT ( * ) END * + 50
----
51
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT DISTINCT - 10 AS col0, + 9 * - + 73 * + - SUM( + + 21 ) * 69
----
-10
951993

skipif mysql # not compatible
query II rowsort label-4814
SELECT DISTINCT - 10 AS col0, + 9 * - + 73 * + - SUM ( + + 21 ) * 69
----
-10
951993

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + 25 + MIN( - 10 )
----
15

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + 25 + MIN ( - 10 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - MIN( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4816
SELECT - MIN ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT 74 * 35 * - COUNT( DISTINCT 83 ) col2
----
-2590

skipif mysql # not compatible
query I rowsort label-4817
SELECT 74 * 35 * - COUNT ( DISTINCT 83 ) col2
----
-2590

query I rowsort
SELECT 83 * - - 39
----
3237

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL 92 * - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL 92 * - COUNT ( * ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT 12 + - - COUNT( * ) + + 76 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4820
SELECT 12 + - - COUNT ( * ) + + 76 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT - COUNT( * ) / CASE COUNT( - 7 ) WHEN 69 THEN NULL WHEN + - 6 - + 0 + - 1 * 87 * 24 THEN - CASE WHEN NOT + 62 NOT BETWEEN CAST( NULL AS SIGNED ) + COUNT( * ) AND ( + 43 * 86 ) THEN NULLIF ( 32, - 39 / 71 ) + - ( + ( - 81 ) + 14 / COUNT( * ) ) / 11 ELSE NULL END WHEN + 66 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT - COUNT ( * ) / CASE COUNT ( - 7 ) WHEN 69 THEN NULL WHEN + - 6 - + 0 + - 1 * 87 * 24 THEN - CASE WHEN NOT + 62 NOT BETWEEN CAST ( NULL AS INTEGER ) + COUNT ( * ) AND ( + 43 * 86 ) THEN NULLIF ( 32, - 39 / 71 ) + - ( + ( - 81 ) + 14 / COUNT ( * ) ) / 11 ELSE NULL END WHEN + 66 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT - - COALESCE ( + 5, - - SUM( ALL - 39 ) DIV - 8 + 19, + COALESCE ( + - COUNT( * ), - 63 * + 29 - + 36 DIV - COUNT( * ), 82 ), - 6 )
----
5

skipif mysql # not compatible
query I rowsort label-4822
SELECT - - COALESCE ( + 5, - - SUM ( ALL - 39 ) / - 8 + 19, + COALESCE ( + - COUNT ( * ), - 63 * + 29 - + 36 / - COUNT ( * ), 82 ), - 6 )
----
5

query I rowsort
SELECT - + ( 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT 89 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT 89 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 1 - 3 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT DISTINCT - CAST( 12 AS SIGNED ) * - 15 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - CAST ( 12 AS INTEGER ) * - 15 AS col1
----
180

query I rowsort
SELECT 81 + - 37 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 12 * 48 * COUNT( ( + 94 ) )
----
576

skipif mysql # not compatible
query I rowsort label-4828
SELECT 12 * 48 * COUNT ( ( + 94 ) )
----
576

query II rowsort
SELECT ALL 81 col1, - 64
----
81
-64

query I rowsort
SELECT DISTINCT + 39 * 39 col1
----
1521

query II rowsort
SELECT 61 + + ( - 75 ) col2, 29
----
-14
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT ALL - - 59 DIV + 1 col1
----
59

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - - 59 / + 1 col1
----
59

query I rowsort
SELECT CASE - 69 WHEN + ( - - 25 ) * + 64 THEN - 0 * + 76 + + - 51 + + 62 / - 72 * + 2 END * - 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT - 66 - - COALESCE ( - ( + MIN( - 1 ) ), + ( - 98 ) * - - CASE + 62 WHEN - CAST( + 95 AS SIGNED ) + + NULLIF ( - 67 + + ( + 63 ), 85 ) / - 65 THEN NULLIF ( + 15, 58 * 82 ) - 6 END ) + 11 * - 13 AS col0
----
-208

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 66 - - COALESCE ( - ( + MIN ( - 1 ) ), + ( - 98 ) * - - CASE + 62 WHEN - CAST ( + 95 AS INTEGER ) + + NULLIF ( - 67 + + ( + 63 ), 85 ) / - 65 THEN NULLIF ( + 15, 58 * 82 ) - 6 END ) + 11 * - 13 AS col0
----
-208

query I rowsort
SELECT ALL + 97 * 50 * + 37 - - 91 + + + 71 + ( 22 ) + 24 - - 66 * 81 col1
----
185004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT + - 50 DIV - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4836
SELECT + - 50 / - COUNT ( * )
----
50

query I rowsort
SELECT - - 39 * - 91
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + - COUNT( * ) * + 32 * - + 73 + 14 + - ( + 5 ) * 69 * - 91
----
33745

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + - COUNT ( * ) * + 32 * - + 73 + 14 + - ( + 5 ) * 69 * - 91
----
33745

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT DISTINCT + 3 * - 41 + - 45 - - + 91 + + 11 - COUNT( * ), 72 - - 58 * + 29 AS col0
----
-67
1754

skipif mysql # not compatible
query II rowsort label-4839
SELECT DISTINCT + 3 * - 41 + - 45 - - + 91 + + 11 - COUNT ( * ), 72 - - 58 * + 29 AS col0
----
-67
1754

query I rowsort
SELECT ALL - 38 * - 33 + + 80 * + - ( - 66 ) * + 1 AS col2
----
6534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4841
SELECT CASE - + 16 WHEN + 20 * ( - 22 ) - - - 29 + + 89 + + 42 + 16 * ( 22 ) * SUM( 16 ) THEN - 3 + + 5 WHEN - 3 / CAST( - 66 AS SIGNED ) THEN NULL ELSE CAST( NULL AS DECIMAL ) * - 85 + 37 * ( 23 + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT CASE - + 16 WHEN + 20 * ( - 22 ) - - - 29 + + 89 + + 42 + 16 * ( 22 ) * SUM ( 16 ) THEN - 3 + + 5 WHEN - 3 / CAST ( - 66 AS INTEGER ) THEN NULL ELSE CAST ( NULL AS REAL ) * - 85 + 37 * ( 23 + 98 ) END
----
NULL

query I rowsort
SELECT - 91 + - 92 AS col2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + MIN( DISTINCT - ( 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-4843
SELECT + MIN ( DISTINCT - ( 38 ) )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL + CAST( CAST( - - 53 AS SIGNED ) AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + CAST ( CAST ( - - 53 AS INTEGER ) AS INTEGER ) AS col1
----
53

query I rowsort
SELECT 47 * + 14 + - COALESCE ( + + 8, NULLIF ( + 53, + 66 + 68 ) + 9 * 91, + 75 )
----
650

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT + 73 DIV 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4846
SELECT + 73 / 8 AS col0
----
9

query I rowsort
SELECT - 84 * 86 AS col0
----
-7224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - ( + - ( - 79 ) ) THEN NULL ELSE - - 54 * 33 END AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-4848
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - ( + - ( - 79 ) ) THEN NULL ELSE - - 54 * 33 END AS col0
----
1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL 79 * ( + 92 ) * COALESCE ( - + 62, CAST( - 17 AS SIGNED ) ) + + 8 + + - COUNT( * ) + + 22 AS col0
----
-450587

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 79 * ( + 92 ) * COALESCE ( - + 62, CAST ( - 17 AS INTEGER ) ) + + 8 + + - COUNT ( * ) + + 22 AS col0
----
-450587

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT COUNT( DISTINCT ( + 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( DISTINCT ( + 64 ) )
----
1

query I rowsort
SELECT + 37 + - + 55 + - 96
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - 95 * - - COUNT( * ) * 11 + 10 col0
----
-1035

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 95 * - - COUNT ( * ) * 11 + 10 col0
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL 25 * - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL 25 * - + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4854
SELECT DISTINCT 36 * + COUNT( + + ( - + 65 ) ) AS col1, - 10 DIV 35 + NULLIF ( + 62, + COUNT( * ) DIV - 1 ) * 95 AS col0
----
36
5890

skipif mysql # not compatible
query II rowsort label-4854
SELECT DISTINCT 36 * + COUNT ( + + ( - + 65 ) ) AS col1, - 10 / 35 + NULLIF ( + 62, + COUNT ( * ) / - 1 ) * 95 AS col0
----
36
5890

query I rowsort
SELECT - 77 + - + 20
----
-97

query I rowsort
SELECT ( 74 ) * - 26 * - 44 + - - 25
----
84681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT + 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 94 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + ( 56 ) + - COALESCE ( - 14, - 5 * - COUNT( * ) ) col2
----
70

skipif mysql # not compatible
query I rowsort label-4858
SELECT + ( 56 ) + - COALESCE ( - 14, - 5 * - COUNT ( * ) ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + MIN( + - 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4859
SELECT + MIN ( + - 22 ) AS col2
----
-22

query I rowsort
SELECT + + 72 + - 39
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4861
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) * + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-4861
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) * + 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + + CASE 59 WHEN 86 THEN - ( 14 ) END + - - ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT + + CASE 59 WHEN 86 THEN - ( 14 ) END + - - ( + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - 87 + 48 AS col0
----
-39

query I rowsort
SELECT DISTINCT + CASE + CASE + 9 WHEN + 21 THEN + 66 * + + 26 / - 50 WHEN - 17 THEN 85 * 8 ELSE NULL END WHEN - 20 THEN - 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT + NULLIF ( 32, + 27 ) + - NULLIF ( 57, - CAST( NULL AS SIGNED ) * + 11 * 71 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4865
SELECT + NULLIF ( 32, + 27 ) + - NULLIF ( 57, - CAST ( NULL AS INTEGER ) * + 11 * 71 ) AS col1
----
-25

query I rowsort
SELECT ALL - 1 * 60 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4867
SELECT + + 9 + + COALESCE ( 70, COALESCE ( + 99, + + MAX( 91 ) * CASE + 46 WHEN CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) THEN 13 ELSE + 10 END * - 9, 29 * COUNT( * ) ), 33 ) + ( CASE AVG ( DISTINCT 16 ) WHEN - 6 THEN + 5 * 48 + 32 END ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + + 9 + + COALESCE ( 70, COALESCE ( + 99, + + MAX ( 91 ) * CASE + 46 WHEN CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) THEN 13 ELSE + 10 END * - 9, 29 * COUNT ( * ) ), 33 ) + ( CASE AVG ( DISTINCT 16 ) WHEN - 6 THEN + 5 * 48 + 32 END ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT ( + - 71 ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - + 29 * ( - 28 ) * - - CAST( NULL AS SIGNED ) + - 94 / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - + 29 * ( - 28 ) * - - CAST ( NULL AS INTEGER ) + - 94 / + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4870
SELECT - - AVG ( + - 1 ) * CAST( + 52 AS DECIMAL ) * 68 / - - 45 * 29 + + CASE + + 26 WHEN - 65 THEN CAST( NULL AS SIGNED ) + NULLIF ( 7, NULLIF ( - COUNT( * ), - 14 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - - AVG ( + - 1 ) * CAST ( + 52 AS REAL ) * 68 / - - 45 * 29 + + CASE + + 26 WHEN - 65 THEN CAST ( NULL AS INTEGER ) + NULLIF ( 7, NULLIF ( - COUNT ( * ), - 14 ) ) END
----
NULL

query I rowsort
SELECT ALL - 49 + + + 36 - - - 17 AS col1
----
-30

query I rowsort
SELECT ALL + 91 + - 55 + + 90
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), 25, 34 * - 68 * 76 * 76 + + 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4873
SELECT - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), 25, 34 * - 68 * 76 * 76 + + 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + ( COUNT( * ) ) + + 35
----
36

skipif mysql # not compatible
query I rowsort label-4874
SELECT + ( COUNT ( * ) ) + + 35
----
36

query I rowsort
SELECT ALL 86 * 5 + - ( - 90 ) + + 35 AS col1
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT DISTINCT - COALESCE ( + NULLIF ( - 69, AVG ( + 16 ) ), - 14 * + + MAX( ALL CAST( NULL AS SIGNED ) ) - 45 * + 62 ) + + 17 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT - COALESCE ( + NULLIF ( - 69, AVG ( + 16 ) ), - 14 * + + MAX ( ALL CAST ( NULL AS INTEGER ) ) - 45 * + 62 ) + + 17 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL COUNT( 74 ) + 91 - + 42 + ( + MAX( + + 52 ) ) + 80 - - 80 * 87 * - 59 AS col0
----
-410458

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COUNT ( 74 ) + 91 - + 42 + ( + MAX ( + + 52 ) ) + 80 - - 80 * 87 * - 59 AS col0
----
-410458

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT + MAX( DISTINCT - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + MAX ( DISTINCT - 47 ) AS col2
----
-47

query I rowsort
SELECT + 91 * + 68
----
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4880
SELECT DISTINCT - 78 DIV - CAST( 10 AS SIGNED ) + CASE 4 WHEN - 98 - - COUNT( ALL - 80 ) - + 94 - + CAST( NULL AS SIGNED ) * COUNT( 51 ) THEN ( ( 25 ) ) ELSE 31 END AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - 78 / - CAST ( 10 AS INTEGER ) + CASE 4 WHEN - 98 - - COUNT ( ALL - 80 ) - + 94 - + CAST ( NULL AS INTEGER ) * COUNT ( 51 ) THEN ( ( 25 ) ) ELSE 31 END AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + CASE + COUNT( * ) WHEN - 48 * - 24 * - 15 * - 11 THEN 41 * + COUNT( * ) / ( + 43 ) * 36 WHEN 36 + + 86 * ( 56 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + CASE + COUNT ( * ) WHEN - 48 * - 24 * - 15 * - 11 THEN 41 * + COUNT ( * ) / ( + 43 ) * 36 WHEN 36 + + 86 * ( 56 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 97 * + 70 AS col2
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 49 + - 70 - - - 43 * + + 71 * + ( NULLIF ( - - 34, - COUNT( * ) ) ) AS col2
----
-103921

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 49 + - 70 - - - 43 * + + 71 * + ( NULLIF ( - - 34, - COUNT ( * ) ) ) AS col2
----
-103921

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4884
SELECT ALL COALESCE ( + 7, + NULLIF ( - ( - COALESCE ( - + 87, ( + 34 ) * + 4 * + 49 * CAST( NULL AS SIGNED ) - 83 ) ), 23 ) + + 32 ) DIV + 46 + 35
----
35

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL COALESCE ( + 7, + NULLIF ( - ( - COALESCE ( - + 87, ( + 34 ) * + 4 * + 49 * CAST ( NULL AS INTEGER ) - 83 ) ), 23 ) + + 32 ) / + 46 + 35
----
35

query I rowsort
SELECT - 61 * - 78 AS col0
----
4758

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + CASE + 53 WHEN - 51 + 72 + - 30 - - 13 + 98 * + 92 / - 10 * - + 74 THEN + NULLIF ( ( - COALESCE ( 60, + 41 ) ), - 71 * - ( 29 ) ) * 85 WHEN COUNT( * ) * - 67 + 83 * 60 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + CASE + 53 WHEN - 51 + 72 + - 30 - - 13 + 98 * + 92 / - 10 * - + 74 THEN + NULLIF ( ( - COALESCE ( 60, + 41 ) ), - 71 * - ( 29 ) ) * 85 WHEN COUNT ( * ) * - 67 + 83 * 60 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 88 * + 90
----
-7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT ALL + NULLIF ( 14, + CAST( 99 AS SIGNED ) + - 39 / + + 42 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + NULLIF ( 14, + CAST ( 99 AS INTEGER ) + - 39 / + + 42 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT ALL - COUNT( * ) * - + 63 - 10 AS col0, NULLIF ( - - 19, + 60 ) * 36 col1
----
53
684

skipif mysql # not compatible
query II rowsort label-4889
SELECT ALL - COUNT ( * ) * - + 63 - 10 AS col0, NULLIF ( - - 19, + 60 ) * 36 col1
----
53
684

query I rowsort
SELECT ( - 36 ) col1
----
-36

query I rowsort
SELECT ALL + COALESCE ( 56, 25 ) col0
----
56

query I rowsort
SELECT - COALESCE ( + 72, - 38, + + 96 * 33 ) * 91
----
-6552

query I rowsort
SELECT + 35 * + - 82
----
-2870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT - COALESCE ( - 59, - 77 * MIN( + 26 ) * + + 2 - 74 * + 49 ) - + COALESCE ( + - 49, + 79 DIV + 15 + COALESCE ( - 46, + 52 * NULLIF ( 17, + 53 + + COUNT( * ) ) ) * ( 86 ) ) * + 34
----
1725

skipif mysql # not compatible
query I rowsort label-4894
SELECT - COALESCE ( - 59, - 77 * MIN ( + 26 ) * + + 2 - 74 * + 49 ) - + COALESCE ( + - 49, + 79 / + 15 + COALESCE ( - 46, + 52 * NULLIF ( 17, + 53 + + COUNT ( * ) ) ) * ( 86 ) ) * + 34
----
1725

query I rowsort
SELECT ALL + COALESCE ( + 8, + 78 ) AS col0
----
8

query II rowsort
SELECT DISTINCT + + 6 AS col0, - 67
----
6
-67

query I rowsort
SELECT ALL 11 * + 9 AS col2
----
99

query I rowsort
SELECT + - 99 * - - 38 col1
----
-3762

query I rowsort
SELECT DISTINCT NULLIF ( 22, 43 + + NULLIF ( + 94, - ( 91 ) ) ) AS col0
----
22

query I rowsort
SELECT + ( 6 ) * 6 * + 6 AS col2
----
216

query I rowsort
SELECT ALL - 61 * - 29
----
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL - COUNT( * ) * + + 88
----
-88

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - COUNT ( * ) * + + 88
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4903
SELECT DISTINCT - 11 + - + 46 - NULLIF ( + - 96, - - COUNT( * ) ) + 86 + CAST( - 99 AS SIGNED ) * + + 86 * + - ( 24 ) AS col1
----
204461

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - 11 + - + 46 - NULLIF ( + - 96, - - COUNT ( * ) ) + 86 + CAST ( - 99 AS INTEGER ) * + + 86 * + - ( 24 ) AS col1
----
204461

query I rowsort
SELECT + 65 + - 84
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-4905
SELECT 18 DIV + 35 + - + 31 col0, - 47
----
-31
-47

skipif mysql # not compatible
query II rowsort label-4905
SELECT 18 / + 35 + - + 31 col0, - 47
----
-31
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL CAST( NULL AS SIGNED ) + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL CAST ( NULL AS INTEGER ) + + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT + 87 + - - CASE ( + + MAX( 26 ) ) WHEN - + 72 + - 68 + - 86 * + - 23 THEN NULL WHEN - NULLIF ( COUNT( DISTINCT 78 ), - COUNT( * ) * 55 ) THEN COALESCE ( - 52, + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + 87 + - - CASE ( + + MAX ( 26 ) ) WHEN - + 72 + - 68 + - 86 * + - 23 THEN NULL WHEN - NULLIF ( COUNT ( DISTINCT 78 ), - COUNT ( * ) * 55 ) THEN COALESCE ( - 52, + 94 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT CASE - - 48 WHEN - 22 DIV 27 THEN NULL ELSE CASE 95 WHEN + ( - 17 ) THEN NULL ELSE 74 + + - 4 END * ( + 69 ) END DIV 78
----
61

skipif mysql # not compatible
query I rowsort label-4908
SELECT CASE - - 48 WHEN - 22 / 27 THEN NULL ELSE CASE 95 WHEN + ( - 17 ) THEN NULL ELSE 74 + + - 4 END * ( + 69 ) END / 78
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT ALL - COUNT( * ) + 60 - + 27 * - NULLIF ( 93, + ( - - 5 ) ) + - + 12 AS col1, - 43
----
2558
-43

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL - COUNT ( * ) + 60 - + 27 * - NULLIF ( 93, + ( - - 5 ) ) + - + 12 AS col1, - 43
----
2558
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT ALL - - 79 + 69 * - 8 * ( + + 74 ) * - + 53 * 1 - + 44 DIV 55 - 96 AS col0
----
2164927

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - - 79 + 69 * - 8 * ( + + 74 ) * - + 53 * 1 - + 44 / 55 - 96 AS col0
----
2164927

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL - 68 * 22 * 43 * + + 34 / - + CASE + COALESCE ( + - 73, MIN( ALL - 26 ), + + SUM( ALL + 52 ) + ( COUNT( * ) ) / - 35 ) WHEN - SUM( ALL - 89 ) + + 98 THEN - 96 * + ( - ( + 50 ) * - 99 ) ELSE NULL END + - 66 * + ( + 49 - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - 68 * 22 * 43 * + + 34 / - + CASE + COALESCE ( + - 73, MIN ( ALL - 26 ), + + SUM ( ALL + 52 ) + ( COUNT ( * ) ) / - 35 ) WHEN - SUM ( ALL - 89 ) + + 98 THEN - 96 * + ( - ( + 50 ) * - 99 ) ELSE NULL END + - 66 * + ( + 49 - COUNT ( * ) ) col1
----
NULL

query II rowsort
SELECT 0, - 49 * + 73 AS col0
----
0
-3577

query II rowsort
SELECT ALL 22 AS col2, 25 * + 10
----
22
250

query I rowsort
SELECT ( - + 3 ) * - - 98 AS col2
----
-294

query I rowsort
SELECT DISTINCT - COALESCE ( + 71, + + 56 )
----
-71

query II rowsort
SELECT DISTINCT - 81 col2, - 26 + - + 78
----
-81
-104

query II rowsort
SELECT 0 AS col2, - 96 col0
----
0
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT 48 + - 48 * - CAST( - + 76 AS SIGNED ) * - - 53 + - 28 + + 14 * - 81 * - 27 + - + 33 * - 26
----
-161848

skipif mysql # not compatible
query I rowsort label-4918
SELECT 48 + - 48 * - CAST ( - + 76 AS INTEGER ) * - - 53 + - 28 + + 14 * - 81 * - 27 + - + 33 * - 26
----
-161848

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 87 * - COUNT( * ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-4919
SELECT 87 * - COUNT ( * ) col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT ALL - COUNT( * ), 68 AS col1
----
-1
68

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL - COUNT ( * ), 68 AS col1
----
-1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + 2 * - 68 + + 21 + - 40 + + 44 + 1 * - + COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 2 * - 68 + + 21 + - 40 + + 44 + 1 * - + COUNT ( * )
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT ( - COUNT( * ) ) DIV - - COUNT( * ) + - 66 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4922
SELECT ( - COUNT ( * ) ) / - - COUNT ( * ) + - 66 AS col0
----
-67

query II rowsort
SELECT + 9 AS col0, 84 col1
----
9
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT COUNT( * ) * ( - 44 ) + + 96 col2
----
52

skipif mysql # not compatible
query I rowsort label-4924
SELECT COUNT ( * ) * ( - 44 ) + + 96 col2
----
52

query II rowsort
SELECT DISTINCT - 44 col0, 6 + + 52 AS col2
----
-44
58

query I rowsort
SELECT 83 + + + 75 AS col0
----
158

query I rowsort
SELECT ALL - ( + ( 68 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL - - SUM( ALL + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - - SUM ( ALL + 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT + 6 * + + 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + 84 + + + COUNT( * ) + - 8 - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + 84 + + + COUNT ( * ) + - 8 - COUNT ( * ) AS col1
----
76

query II rowsort
SELECT ALL - 8 AS col0, ( + 0 )
----
-8
0

query I rowsort
SELECT 4 * - 18 + + 30 + + + 85
----
43

query I rowsort
SELECT 56 + + 40
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL + - 52 + + MIN( ALL + 51 ) - - + 11
----
10

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + - 52 + + MIN ( ALL + 51 ) - - + 11
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4935
SELECT - + 44 AS col1, + COUNT( * ) + + 25 - + 23 - - 21 + 56 * - COUNT( * ) * + 35 * 14 * 24 * CAST( - 56 AS SIGNED ) + + 96 * CAST( NULL AS SIGNED )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-4935
SELECT - + 44 AS col1, + COUNT ( * ) + + 25 - + 23 - - 21 + 56 * - COUNT ( * ) * + 35 * 14 * 24 * CAST ( - 56 AS INTEGER ) + + 96 * CAST ( NULL AS INTEGER )
----
-44
NULL

query I rowsort
SELECT DISTINCT + + 2 * + 9 * + 60
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - COUNT( * ) + - + ( + 84 )
----
-85

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - COUNT ( * ) + - + ( + 84 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT DISTINCT - - COUNT( * ) + - + 23 + + + 21 * + 49, - COUNT( * ) AS col2
----
1007
-1

skipif mysql # not compatible
query II rowsort label-4938
SELECT DISTINCT - - COUNT ( * ) + - + 23 + + + 21 * + 49, - COUNT ( * ) AS col2
----
1007
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT COUNT( * ) + 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT COUNT ( * ) + 4 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT DISTINCT + COUNT( * ) AS col1, COALESCE ( 70, - 10 * - - COUNT( * ) + + 90 + + 55 * 65 ) AS col0
----
1
70

skipif mysql # not compatible
query II rowsort label-4940
SELECT DISTINCT + COUNT ( * ) AS col1, COALESCE ( 70, - 10 * - - COUNT ( * ) + + 90 + + 55 * 65 ) AS col0
----
1
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4941
SELECT DISTINCT 47 + + NULLIF ( + 46, MIN( - CAST( NULLIF ( - 95, + + 72 + + - 61 + - 61 ) AS DECIMAL ) ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT 47 + + NULLIF ( + 46, MIN ( - CAST ( NULLIF ( - 95, + + 72 + + - 61 + - 61 ) AS REAL ) ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT ALL + 2 col2, CASE - 40 WHEN - COUNT( * ) THEN 62 WHEN + 47 + 62 + + 77 THEN + 22 * + 43 * + 41 + - 7 END
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4942
SELECT ALL + 2 col2, CASE - 40 WHEN - COUNT ( * ) THEN 62 WHEN + 47 + 62 + + 77 THEN + 22 * + 43 * + 41 + - 7 END
----
2
NULL

query I rowsort
SELECT 46 + - 49 * + 64 + 0 AS col2
----
-3090

query I rowsort
SELECT 5 * - 52 AS col1
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - 5 - + - ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 5 - + - ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT NULLIF ( + + CASE CASE - COUNT( * ) WHEN - COUNT( * ) THEN + 92 + + - 90 ELSE NULL END WHEN 99 * + 29 + 94 THEN + COALESCE ( NULLIF ( 82, - 57 ), 55, - SUM( 32 ) ) - - NULLIF ( 98, 36 * 63 ) * - 96 END, + 95 + COUNT( * ) ) + 48 * ( + 38 + - 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT NULLIF ( + + CASE CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 92 + + - 90 ELSE NULL END WHEN 99 * + 29 + 94 THEN + COALESCE ( NULLIF ( 82, - 57 ), 55, - SUM ( 32 ) ) - - NULLIF ( 98, 36 * 63 ) * - 96 END, + 95 + COUNT ( * ) ) + 48 * ( + 38 + - 7 ) AS col1
----
NULL

query I rowsort
SELECT 58 + - 31
----
27

query I rowsort
SELECT ( - 15 ) * + 36 * - - 79
----
-42660

query I rowsort
SELECT ( - - ( ( - 97 ) ) ) * 36
----
-3492

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL 66 * ( MAX( 52 ) ) AS col2
----
3432

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL 66 * ( MAX ( 52 ) ) AS col2
----
3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT MAX( 97 ) * - - 80 DIV COUNT( * ) - - NULLIF ( 38, 47 ) + ( 59 ) DIV + COUNT( * ) AS col0
----
7857

skipif mysql # not compatible
query I rowsort label-4951
SELECT MAX ( 97 ) * - - 80 / COUNT ( * ) - - NULLIF ( 38, 47 ) + ( 59 ) / + COUNT ( * ) AS col0
----
7857

query I rowsort
SELECT 3 + 60 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT MIN( ALL 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4953
SELECT MIN ( ALL 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL 66 * + 77 + COUNT( * ) + COUNT( * ) + - + ( - + 15 ) AS col1
----
5099

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL 66 * + 77 + COUNT ( * ) + COUNT ( * ) + - + ( - + 15 ) AS col1
----
5099

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - COUNT( 98 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - COUNT ( 98 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ( + MAX( + 14 ) ) * + 60
----
840

skipif mysql # not compatible
query I rowsort label-4956
SELECT ( + MAX ( + 14 ) ) * + 60
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL 97 * + + 54 + COUNT( * ) col0
----
5239

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 97 * + + 54 + COUNT ( * ) col0
----
5239

query I rowsort
SELECT + CASE + 71 WHEN + 14 THEN - 13 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL + 81 * - + CAST( NULL AS SIGNED ) * + 22 + - ( + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + 81 * - + CAST ( NULL AS INTEGER ) * + 22 + - ( + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4960
SELECT + + ( + 81 ) AS col1, + COUNT( * ) AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-4960
SELECT + + ( + 81 ) AS col1, + COUNT ( * ) AS col2
----
81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL + 31 * CASE - 31 WHEN - + 66 THEN + 13 WHEN 99 THEN - 70 WHEN - 42 THEN NULL END / + 10 - ( CAST( NULL AS SIGNED ) ) + 92 + COUNT( * ) * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 31 * CASE - 31 WHEN - + 66 THEN + 13 WHEN 99 THEN - 70 WHEN - 42 THEN NULL END / + 10 - ( CAST ( NULL AS INTEGER ) ) + 92 + COUNT ( * ) * - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT + COUNT( * ) * - 71 * + - 76 AS col2, + CASE + + COUNT( * ) WHEN + 64 THEN AVG ( ALL 82 ) + - - 84 WHEN + - 49 THEN NULL END AS col2
----
5396
NULL

skipif mysql # not compatible
query II rowsort label-4962
SELECT + COUNT ( * ) * - 71 * + - 76 AS col2, + CASE + + COUNT ( * ) WHEN + 64 THEN AVG ( ALL 82 ) + - - 84 WHEN + - 49 THEN NULL END AS col2
----
5396
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + COUNT( * ) + - + 37 * + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + COUNT ( * ) + - + 37 * + COUNT ( * ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT DISTINCT + + CAST( + ( ( + ( - + COUNT( * ) ) ) ) AS SIGNED ) * 24
----
-24

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + + CAST ( + ( ( + ( - + COUNT ( * ) ) ) ) AS INTEGER ) * 24
----
-24

query I rowsort
SELECT - ( 65 ) * + 43 * - 33 + - 60 AS col0
----
92175

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + CASE - COUNT( * ) WHEN + + 84 THEN 35 ELSE NULL END * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + CASE - COUNT ( * ) WHEN + + 84 THEN 35 ELSE NULL END * + 67
----
NULL

query II rowsort
SELECT ALL - + 37 + - 60, - 46 AS col1
----
-97
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4968
SELECT + ( + - SUM( 36 ) ), CAST( NULL AS SIGNED ) AS col1
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4968
SELECT + ( + - SUM ( 36 ) ), CAST ( NULL AS INTEGER ) AS col1
----
-36
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4969
SELECT - - COUNT( * ) DIV 57 + - - 72 * NULLIF ( 88, + 3 + - 54 + + 84 ) AS col0, + ( + - 87 ) * + 32 col0
----
6336
-2784

skipif mysql # not compatible
query II rowsort label-4969
SELECT - - COUNT ( * ) / 57 + - - 72 * NULLIF ( 88, + 3 + - 54 + + 84 ) AS col0, + ( + - 87 ) * + 32 col0
----
6336
-2784

query I rowsort
SELECT ALL - - 8 * - 88 * + 67
----
-47168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT + CAST( NULL AS SIGNED ) + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT + CAST ( NULL AS INTEGER ) + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT CAST( - + COUNT( - 70 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4972
SELECT CAST ( - + COUNT ( - 70 ) AS INTEGER )
----
-1

query II rowsort
SELECT - 49 + 50 AS col2, - 28 AS col0
----
1
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT - COUNT( * ) - - 77 AS col2, + 11 + + 50 + + 44 * + 9 AS col2
----
76
457

skipif mysql # not compatible
query II rowsort label-4974
SELECT - COUNT ( * ) - - 77 AS col2, + 11 + + 50 + + 44 * + 9 AS col2
----
76
457

query I rowsort
SELECT - + 40 + + + 78 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL + 76 - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL + 76 - - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT - 18 DIV + SUM( ALL - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - 18 / + SUM ( ALL - 73 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT - MAX( ALL 95 ) + + + COUNT( * ) + - 4 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4978
SELECT - MAX ( ALL 95 ) + + + COUNT ( * ) + - 4 AS col2
----
-98

query II rowsort
SELECT ALL 30, CASE + 54 WHEN + 74 THEN + + 2 + - + 58 END AS col0
----
30
NULL

query I rowsort
SELECT ALL NULLIF ( - 96, + 48 )
----
-96

query I rowsort
SELECT ALL + 57 * - ( - 30 ) AS col1
----
1710

query II rowsort
SELECT 60 col2, 81 * - 19 AS col2
----
60
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + 48 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + 48 * - COUNT ( * )
----
-48

query II rowsort
SELECT ALL 44, 98 col2
----
44
98

query I rowsort
SELECT - ( - 0 ) * + 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT + 36 * + - 85 * CASE + SUM( ALL + + 24 ) WHEN + 10 THEN - COUNT( * ) ELSE - - MAX( 32 ) END AS col0, 16
----
-97920
16

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 36 * + - 85 * CASE + SUM ( ALL + + 24 ) WHEN + 10 THEN - COUNT ( * ) ELSE - - MAX ( 32 ) END AS col0, 16
----
-97920
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT ALL 93 DIV - 80 + 13 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 93 / - 80 + 13 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT DISTINCT + 71 DIV + 74 * - 38 + 12
----
12

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + 71 / + 74 * - 38 + 12
----
12

query I rowsort
SELECT + 0 * - - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4990
SELECT ALL - COUNT( * ) * 34 + + 63, ( - CAST( NULL AS SIGNED ) ) * + 34 * + 60 AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL - COUNT ( * ) * 34 + + 63, ( - CAST ( NULL AS INTEGER ) ) * + 34 * + 60 AS col2
----
29
NULL

query I rowsort
SELECT - CASE - 24 WHEN - 61 THEN 80 ELSE + + ( - 30 ) END + - - 4 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ( - MAX( - + 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4992
SELECT ( - MAX ( - + 31 ) ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT ALL 59 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL 59 / - + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + COUNT( * ) * + + COUNT( * ) + + + ( + + 33 ) * + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + + + ( + + 33 ) * + - COUNT ( * ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4995
SELECT + - CAST( NULL AS SIGNED ) * + - COALESCE ( + 43, - 6 ) + - COUNT( + 44 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT + - CAST ( NULL AS INTEGER ) * + - COALESCE ( + 43, - 6 ) + - COUNT ( + 44 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL + + CAST( + 17 AS SIGNED ) * - ( + - 47 ) + - + 7 + + + COUNT( * ) * - 27 AS col2
----
765

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + + CAST ( + 17 AS INTEGER ) * - ( + - 47 ) + - + 7 + + + COUNT ( * ) * - 27 AS col2
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT SUM( 79 ) * - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT SUM ( 79 ) * - + COUNT ( * )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4998
SELECT DISTINCT - 12 * + CAST( NULL AS DECIMAL ) + + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - 12 * + CAST ( NULL AS REAL ) + + - 66 AS col0
----
NULL

query I rowsort
SELECT + 54 + 41
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 67 + 26 + - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 67 + 26 + - COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL + COUNT( * ) * + + 98 - - 27 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + COUNT ( * ) * + + 98 - - 27 AS col2
----
125

query I rowsort
SELECT + 20 * + + 47 + 7 * - 27 + + + 17 AS col1
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + SUM( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + SUM ( ALL + 82 )
----
82

query I rowsort
SELECT COALESCE ( + 53, - + 12 + 66 * 27 ) AS col2
----
53

query I rowsort
SELECT - - 86 + + + 80
----
166

query I rowsort
SELECT - + 11 + + COALESCE ( + - 71, + - ( 69 ) * - 69 + - 14 )
----
-82

query I rowsort
SELECT + + COALESCE ( ( + 89 ), + 83, 26 ) * - 61 col0
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 26 * + COUNT( DISTINCT - - ( - 60 ) ) * + + 24 * - 93 AS col1
----
58032

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 26 * + COUNT ( DISTINCT - - ( - 60 ) ) * + + 24 * - 93 AS col1
----
58032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5009
SELECT ALL - ( - 52 ) * + 47 * + COALESCE ( + - COUNT( + 61 ), - CAST( NULL AS SIGNED ), - 3 ) AS col1, 59 * 22
----
-2444
1298

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL - ( - 52 ) * + 47 * + COALESCE ( + - COUNT ( + 61 ), - CAST ( NULL AS INTEGER ), - 3 ) AS col1, 59 * 22
----
-2444
1298

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT ALL 3 * - 65 AS col0, - COUNT( * ) * ( + 23 ) + + 9 + - 64 * + 91 * + COUNT( * )
----
-195
-5838

skipif mysql # not compatible
query II rowsort label-5010
SELECT ALL 3 * - 65 AS col0, - COUNT ( * ) * ( + 23 ) + + 9 + - 64 * + 91 * + COUNT ( * )
----
-195
-5838

query II rowsort
SELECT - 14 * - - 12, 18 * 2 AS col1
----
-168
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL CAST( 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL CAST ( 70 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + COUNT( * ) + + 95 + - + 32 * + COALESCE ( 89, 13, - 28 + - - COUNT( * ) ) + - ( + 35 ) AS col0
----
-2787

skipif mysql # not compatible
query I rowsort label-5013
SELECT + COUNT ( * ) + + 95 + - + 32 * + COALESCE ( 89, 13, - 28 + - - COUNT ( * ) ) + - ( + 35 ) AS col0
----
-2787

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + 61 - + - COUNT( * ) * + 72 + + COUNT( * ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-5014
SELECT + 61 - + - COUNT ( * ) * + 72 + + COUNT ( * ) AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT + 78 + + 38 DIV + 55 * 5 col1
----
78

skipif mysql # not compatible
query I rowsort label-5015
SELECT + 78 + + 38 / + 55 * 5 col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT - 84 + 12 + + - CASE - 40 WHEN - - 80 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - 51 * - 52 END + + - 39 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT - 84 + 12 + + - CASE - 40 WHEN - - 80 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - 51 * - 52 END + + - 39 * 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL ( + + CAST( + 69 AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL ( + + CAST ( + 69 AS INTEGER ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - COUNT( DISTINCT + 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5018
SELECT - COUNT ( DISTINCT + 85 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - COUNT( * ) * - 28 * - 97
----
-2716

skipif mysql # not compatible
query I rowsort label-5019
SELECT - COUNT ( * ) * - 28 * - 97
----
-2716

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT ALL - 98 DIV - CAST( - 82 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - 98 / - CAST ( - 82 AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT CAST( ( 98 ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT CAST ( ( 98 ) AS INTEGER )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-5022
SELECT ALL - 89 + - + 6 col2, 77 DIV - + 2
----
-95
-38

skipif mysql # not compatible
query II rowsort label-5022
SELECT ALL - 89 + - + 6 col2, 77 / - + 2
----
-95
-38

query I rowsort
SELECT DISTINCT NULLIF ( - 55, + - 91 * 51 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT - CAST( NULL AS SIGNED ) + + COUNT( + - 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( + - 92 ) AS col0
----
NULL

query I rowsort
SELECT ALL 71 * - + 34 * - + 53
----
127942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - 89 * + 90 * - COALESCE ( - ( + 54 ), 32 + + + 53, + COUNT( * ) * + 63 * - 77 )
----
-432540

skipif mysql # not compatible
query I rowsort label-5027
SELECT - 89 * + 90 * - COALESCE ( - ( + 54 ), 32 + + + 53, + COUNT ( * ) * + 63 * - 77 )
----
-432540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5028
SELECT 9 + - - ( + 68 ) * - COUNT( * ) DIV COUNT( * ) AS col1, - ( + 43 )
----
-59
-43

skipif mysql # not compatible
query II rowsort label-5028
SELECT 9 + - - ( + 68 ) * - COUNT ( * ) / COUNT ( * ) AS col1, - ( + 43 )
----
-59
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT - 8 + - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - 8 + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 99 * - 60 AS col1
----
5940

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT + 41 DIV 14 + + 52 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 41 / 14 + + 52 AS col2
----
54

query I rowsort
SELECT ALL 55 + + 77 AS col2
----
132

query II rowsort
SELECT ALL - - ( - ( ( + 60 ) ) ) AS col2, - 25
----
-60
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 42 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT 42 / 97 AS col1
----
0

query I rowsort
SELECT NULLIF ( 27, 81 ) col0
----
27

query I rowsort
SELECT ALL + ( + + 34 ) - - 41 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5037
SELECT ALL - + ( + 3 ), - CAST( - - 16 AS SIGNED ) col1
----
-3
-16

skipif mysql # not compatible
query II rowsort label-5037
SELECT ALL - + ( + 3 ), - CAST ( - - 16 AS INTEGER ) col1
----
-3
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT + 74 DIV - - NULLIF ( 35, NULLIF ( + - 65, + + COALESCE ( 3, - COUNT( * ) + - 60 * + 53 - 84 ) ) ) + NULLIF ( + 87, - - 84 DIV 9 )
----
89

skipif mysql # not compatible
query I rowsort label-5038
SELECT + 74 / - - NULLIF ( 35, NULLIF ( + - 65, + + COALESCE ( 3, - COUNT ( * ) + - 60 * + 53 - 84 ) ) ) + NULLIF ( + 87, - - 84 / 9 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + - COALESCE ( + 57, + - 81 * + MIN( 2 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - COALESCE ( + 57, + - 81 * + MIN ( 2 ) ) AS col2
----
-57

query I rowsort
SELECT 13 * - 94 * - - 28 + - 30
----
-34246

query I rowsort
SELECT + ( + + 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - COUNT( * ) * + 85 + + 88
----
3

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( * ) * + 85 + + 88
----
3

query II rowsort
SELECT DISTINCT 80 * 83, - 51 * - - 14 + + 15 * 93 AS col2
----
6640
681

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL SUM( ALL + + 35 ) * - - 7 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL SUM ( ALL + + 35 ) * - - 7 AS col1
----
245

query I rowsort
SELECT + + 36 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - SUM( DISTINCT 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5046
SELECT - SUM ( DISTINCT 8 ) AS col0
----
-8

query I rowsort
SELECT 68 * + + 82 AS col2
----
5576

query II rowsort
SELECT ALL 20, 68 + + 96 AS col2
----
20
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT COUNT( * ) + 25 * MIN( ALL + - 76 )
----
-1899

skipif mysql # not compatible
query I rowsort label-5049
SELECT COUNT ( * ) + 25 * MIN ( ALL + - 76 )
----
-1899

query II rowsort
SELECT 93 col0, + 47 AS col1
----
93
47

query I rowsort
SELECT 87 - - 58 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT 58 * + 18 * + + CAST( - 76 AS SIGNED )
----
-79344

skipif mysql # not compatible
query I rowsort label-5052
SELECT 58 * + 18 * + + CAST ( - 76 AS INTEGER )
----
-79344

query I rowsort
SELECT 93 * + CASE - 90 WHEN - 90 THEN 92 WHEN + 69 - + 24 THEN + 67 ELSE - 3 END col0
----
8556

query I rowsort
SELECT DISTINCT 84 * 53 col2
----
4452

query I rowsort
SELECT ALL + 57 + + 74 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5056
SELECT AVG ( ALL NULLIF ( ( - 15 ), + 80 * + 27 * + ( - - 44 ) ) ) + + + CASE - - 6 WHEN COALESCE ( + 74, - - 45 * - COALESCE ( - 16, 45 + 20 * - ( + CAST( NULL AS SIGNED ) - + 53 ) ) * 51, 23 ) THEN NULL WHEN 45 * 34 THEN 71 * 41 ELSE NULL END - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT AVG ( ALL NULLIF ( ( - 15 ), + 80 * + 27 * + ( - - 44 ) ) ) + + + CASE - - 6 WHEN COALESCE ( + 74, - - 45 * - COALESCE ( - 16, 45 + 20 * - ( + CAST ( NULL AS INTEGER ) - + 53 ) ) * 51, 23 ) THEN NULL WHEN 45 * 34 THEN 71 * 41 ELSE NULL END - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT MAX( DISTINCT 96 ) * + - 16 - - ( + 80 ) + + 96
----
-1360

skipif mysql # not compatible
query I rowsort label-5057
SELECT MAX ( DISTINCT 96 ) * + - 16 - - ( + 80 ) + + 96
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT 48 * 99 * + - NULLIF ( - - 91, + 14 / + + MAX( 75 ) )
----
-432432

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT 48 * 99 * + - NULLIF ( - - 91, + 14 / + + MAX ( 75 ) )
----
-432432

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT DISTINCT 1 AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5059
SELECT DISTINCT 1 AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT COUNT( DISTINCT - 94 ) + - + 24 DIV + 45 col0
----
1

skipif mysql # not compatible
query I rowsort label-5060
SELECT COUNT ( DISTINCT - 94 ) + - + 24 / + 45 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT 9 * - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5061
SELECT 9 * - + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5062
SELECT 87, - CASE + 13 WHEN + - 29 + - CASE - 61 WHEN - COALESCE ( - 95, - 39 - - COALESCE ( - 44, + 74 / + - ( + ( - - 26 ) ) - 72 ) / 54 ) * + NULLIF ( + CASE + CAST( NULL AS DECIMAL ) WHEN 5 * + 33 THEN NULL WHEN - 57 * AVG ( 67 ) THEN 80 + 94 * + 92 END + 77, + COUNT( * ) ) THEN - 85 + 25 END THEN NULL WHEN - 19 THEN COUNT( - 29 ) ELSE 97 * 9 END AS col0
----
87
-873

skipif mysql # not compatible
query II rowsort label-5062
SELECT 87, - CASE + 13 WHEN + - 29 + - CASE - 61 WHEN - COALESCE ( - 95, - 39 - - COALESCE ( - 44, + 74 / + - ( + ( - - 26 ) ) - 72 ) / 54 ) * + NULLIF ( + CASE + CAST ( NULL AS REAL ) WHEN 5 * + 33 THEN NULL WHEN - 57 * AVG ( 67 ) THEN 80 + 94 * + 92 END + 77, + COUNT ( * ) ) THEN - 85 + 25 END THEN NULL WHEN - 19 THEN COUNT ( - 29 ) ELSE 97 * 9 END AS col0
----
87
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL - COUNT( * ) + 46 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - COUNT ( * ) + 46 AS col1
----
45

query I rowsort
SELECT 99 - - 70 AS col1
----
169

query II rowsort
SELECT DISTINCT + CASE + 90 WHEN - 79 * - 36 THEN + 6 END / + COALESCE ( - - 77, + 92, - 23 + + + 39 ) AS col2, + 59 AS col1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL MAX( 52 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL MAX ( 52 ) col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT + 97 DIV + 97 - + 10 * + 91 * + 54 + CASE 57 WHEN + 60 DIV + MAX( + 39 ) + + 42 - + COUNT( * ) THEN NULL WHEN + NULLIF ( - + ( + - 8 ), 42 ) - - 80 * - COUNT( * ) THEN NULL ELSE 60 END AS col1
----
-49079

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 97 / + 97 - + 10 * + 91 * + 54 + CASE 57 WHEN + 60 / + MAX ( + 39 ) + + 42 - + COUNT ( * ) THEN NULL WHEN + NULLIF ( - + ( + - 8 ), 42 ) - - 80 * - COUNT ( * ) THEN NULL ELSE 60 END AS col1
----
-49079

query I rowsort
SELECT + 22 + - 80 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL - - 31 * - + 98 * - MIN( 52 )
----
157976

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - - 31 * - + 98 * - MIN ( 52 )
----
157976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT + CASE 76 WHEN + NULLIF ( - 35, NULLIF ( + 27, + - 48 + + 51 * ( - 11 ) - + 42 ) ) + COALESCE ( + CAST( - 22 AS SIGNED ), + 63 * 84 ) THEN CASE 37 WHEN + 29 THEN NULL WHEN 35 THEN 67 END ELSE 30 END + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5070
SELECT + CASE 76 WHEN + NULLIF ( - 35, NULLIF ( + 27, + - 48 + + 51 * ( - 11 ) - + 42 ) ) + COALESCE ( + CAST ( - 22 AS INTEGER ), + 63 * 84 ) THEN CASE 37 WHEN + 29 THEN NULL WHEN 35 THEN 67 END ELSE 30 END + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5071
SELECT ( COUNT( * ) ) * - 90 AS col0, + 75 DIV - 97 AS col1
----
-90
0

skipif mysql # not compatible
query II rowsort label-5071
SELECT ( COUNT ( * ) ) * - 90 AS col0, + 75 / - 97 AS col1
----
-90
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT 50 * - ( 80 ) + COUNT( * ) * + + 29 * - 52 + - - 14 + - 30 + ( COUNT( ALL - 36 ) ) * 93 DIV - 73 + + 58 DIV - - 99 * - ( 6 )
----
-5525

skipif mysql # not compatible
query I rowsort label-5072
SELECT 50 * - ( 80 ) + COUNT ( * ) * + + 29 * - 52 + - - 14 + - 30 + ( COUNT ( ALL - 36 ) ) * 93 / - 73 + + 58 / - - 99 * - ( 6 )
----
-5525

query I rowsort
SELECT - 72 - + 83 AS col1
----
-155

query I rowsort
SELECT ALL - 39 - + NULLIF ( - 1, 34 * 29 * - + 0 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT - 69, COUNT( * ) AS col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-5075
SELECT - 69, COUNT ( * ) AS col1
----
-69
1

query I rowsort
SELECT 28 * 55 col1
----
1540

query II rowsort
SELECT ALL - 15 AS col1, 66 * - 40 AS col1
----
-15
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT - - 95 / + 5 + - - CAST( NULL AS SIGNED ) - + 12 * - 78 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - - 95 / + 5 + - - CAST ( NULL AS INTEGER ) - + 12 * - 78 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5079
SELECT ALL + - 22 * 62 * + ( ( - 42 ) ) AS col1, + COUNT( * ) + + 43
----
57288
44

skipif mysql # not compatible
query II rowsort label-5079
SELECT ALL + - 22 * 62 * + ( ( - 42 ) ) AS col1, + COUNT ( * ) + + 43
----
57288
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT COALESCE ( - 68, + - COUNT( DISTINCT ( - + 23 ) ), + 43 ) + - 22 col0
----
-90

skipif mysql # not compatible
query I rowsort label-5080
SELECT COALESCE ( - 68, + - COUNT ( DISTINCT ( - + 23 ) ), + 43 ) + - 22 col0
----
-90

query II rowsort
SELECT ALL - + 91 AS col1, 65 AS col1
----
-91
65

query II rowsort
SELECT - 26, + 56 AS col2
----
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - MAX( - - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - MAX ( - - 84 ) AS col0
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5084
SELECT DISTINCT - CASE + 40 WHEN - 99 THEN 39 WHEN - 39 * ( - + 60 ) THEN NULL ELSE + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - CASE + 40 WHEN - 99 THEN 39 WHEN - 39 * ( - + 60 ) THEN NULL ELSE + CAST ( NULL AS REAL ) END
----
NULL

query II rowsort
SELECT ALL - 13 AS col1, 37
----
-13
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT CASE + 81 WHEN + + ( - 23 ) THEN - - 23 * + + ( CASE - + 76 WHEN - 15 THEN + ( + + ( COALESCE ( + ( - + 92 ), MIN( + COALESCE ( 20, - 12 + 84, + 32 ) ) + + 92 ) ) ) END ) END + 57 / 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT CASE + 81 WHEN + + ( - 23 ) THEN - - 23 * + + ( CASE - + 76 WHEN - 15 THEN + ( + + ( COALESCE ( + ( - + 92 ), MIN ( + COALESCE ( 20, - 12 + 84, + 32 ) ) + + 92 ) ) ) END ) END + 57 / 81 AS col0
----
NULL

query I rowsort
SELECT ALL 49 * - 82 * + + 72 * + 8 * 35
----
-81002880

query II rowsort
SELECT 41 AS col1, 41
----
41
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5089
SELECT CASE - 68 WHEN 69 THEN NULL WHEN + COUNT( * ) THEN - MIN( + 23 ) ELSE - + 48 END DIV + ( - - 97 ) * + + ( 65 ) + + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5089
SELECT CASE - 68 WHEN 69 THEN NULL WHEN + COUNT ( * ) THEN - MIN ( + 23 ) ELSE - + 48 END / + ( - - 97 ) * + + ( 65 ) + + 6 AS col1
----
6

query I rowsort
SELECT ALL 43 + + - 57 - 25
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT CASE + - 39 WHEN + + 52 * + - AVG ( DISTINCT + 39 ) - + + AVG ( ALL - 92 ) THEN 71 ELSE NULL END * + CAST( + - 8 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT CASE + - 39 WHEN + + 52 * + - AVG ( DISTINCT + 39 ) - + + AVG ( ALL - 92 ) THEN 71 ELSE NULL END * + CAST ( + - 8 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 98 * - 9 AS col0
----
-882

query I rowsort
SELECT DISTINCT NULLIF ( - 44, 77 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT ALL 39 col2, COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-5094
SELECT ALL 39 col2, COUNT ( * )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - ( - MIN( + + 27 ) ) + + 9 + 96 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-5095
SELECT - ( - MIN ( + + 27 ) ) + + 9 + 96 AS col0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT + COUNT( * ) - 86 + + SUM( 38 ) DIV - + COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-5096
SELECT + COUNT ( * ) - 86 + + SUM ( 38 ) / - + COUNT ( * )
----
-123

query I rowsort
SELECT - NULLIF ( 97, - ( 18 ) ) AS col2
----
-97

query I rowsort
SELECT + 71 + 15
----
86

query I rowsort
SELECT - 47 + + - 54
----
-101

onlyif mysql # aggregate syntax: 
query III rowsort label-5100
SELECT ALL 7 AS col1, 25 * + - ( - 31 ) col2, - - 96 * + 33 + - MAX( + 11 ) + - 80 * 49 AS col0
----
7
775
-763

skipif mysql # not compatible
query III rowsort label-5100
SELECT ALL 7 AS col1, 25 * + - ( - 31 ) col2, - - 96 * + 33 + - MAX ( + 11 ) + - 80 * 49 AS col0
----
7
775
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + 18 * SUM( DISTINCT ( 37 ) ) AS col2
----
666

skipif mysql # not compatible
query I rowsort label-5101
SELECT + 18 * SUM ( DISTINCT ( 37 ) ) AS col2
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + 35 + + MIN( + 48 )
----
83

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 35 + + MIN ( + 48 )
----
83

query I rowsort
SELECT - NULLIF ( - 14, + + 3 )
----
14

query I rowsort
SELECT + 11 + - 88 * - 88
----
7755

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT - COUNT( * ) - ( + 16 )
----
-17

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - COUNT ( * ) - ( + 16 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT DISTINCT COUNT( * ) AS col0, - 22 col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-5106
SELECT DISTINCT COUNT ( * ) AS col0, - 22 col1
----
1
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT DISTINCT + CAST( 6 AS SIGNED ) - + + 77 * - ( + 41 ) * 61 * - MIN( DISTINCT - 72 ) + + - 59
----
13865491

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + CAST ( 6 AS INTEGER ) - + + 77 * - ( + 41 ) * 61 * - MIN ( DISTINCT - 72 ) + + - 59
----
13865491

query II rowsort
SELECT 99 AS col1, ( 41 )
----
99
41

query I rowsort
SELECT + 86 * + + 15
----
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT ALL + + 99 DIV - ( 43 ) + - 74 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + + 99 / - ( 43 ) + - 74 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT + CASE + 41 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + - 56 END AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5111
SELECT + CASE + 41 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 56 END AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT DISTINCT + 2 DIV - - 66 + + 7
----
7

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + 2 / - - 66 + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT - COALESCE ( 38, 18 * - 13 * + 71 ) * - 47 + + + SUM( + 96 ) + - COUNT( * ) + + + MIN( ALL + 71 ) + 87 AS col1
----
2039

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - COALESCE ( 38, 18 * - 13 * + 71 ) * - 47 + + + SUM ( + 96 ) + - COUNT ( * ) + + + MIN ( ALL + 71 ) + 87 AS col1
----
2039

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT - + 63 DIV + 24
----
-2

skipif mysql # not compatible
query I rowsort label-5114
SELECT - + 63 / + 24
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL + 69 * - 9 + + CAST( - 27 AS SIGNED )
----
-648

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 69 * - 9 + + CAST ( - 27 AS INTEGER )
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - - MAX( + 4 ) * SUM( ALL 17 ) * - 59 AS col2
----
-4012

skipif mysql # not compatible
query I rowsort label-5116
SELECT - - MAX ( + 4 ) * SUM ( ALL 17 ) * - 59 AS col2
----
-4012

query II rowsort
SELECT + 82 col0, + 7 AS col0
----
82
7

query II rowsort
SELECT ALL + - 94 * + + 87, 49 * 59 col1
----
-8178
2891

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT + 33, COUNT( * ) + 44 AS col2
----
33
45

skipif mysql # not compatible
query II rowsort label-5119
SELECT + 33, COUNT ( * ) + 44 AS col2
----
33
45

query I rowsort
SELECT DISTINCT + 12 * COALESCE ( - + ( + 89 ), 21 ) AS col1
----
-1068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT - COUNT( * ) * - CAST( + 81 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5121
SELECT - COUNT ( * ) * - CAST ( + 81 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT - ( - 82 ) * ( + NULLIF ( - + 88, - 97 * 4 + + + 63 + 43 / - - 24 * 92 ) ) AS col0
----
-7216

query I rowsort
SELECT ALL 59 * - - 18 + - + CASE 99 WHEN - 29 THEN - + 29 END
----
NULL

query II rowsort
SELECT ALL + 30 * - - 38, 61 AS col0
----
1140
61

query I rowsort
SELECT - 8 - - + ( - - 66 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - COUNT( 24 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5126
SELECT - COUNT ( 24 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT - 62 * - 33 + + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - 62 * - 33 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT ( + + MAX( 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT ( + + MAX ( 32 ) )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT ALL + MIN( ALL - 6 ) DIV + 57 - - 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + MIN ( ALL - 6 ) / + 57 - - 79 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT + 72 + 43 DIV 41 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 72 + 43 / 41 AS col1
----
73

query I rowsort
SELECT + 30 - - 2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT - NULLIF ( COALESCE ( + - 53, + + 14, MAX( - 98 ) - MAX( - - CAST( + 12 AS SIGNED ) ) + + COUNT( * ) * + 17 ), 43 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5132
SELECT - NULLIF ( COALESCE ( + - 53, + + 14, MAX ( - 98 ) - MAX ( - - CAST ( + 12 AS INTEGER ) ) + + COUNT ( * ) * + 17 ), 43 ) AS col0
----
53

query I rowsort
SELECT - 18 * - 56 * + 9 AS col2
----
9072

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT + 88 * - 55, 43 * - 23 * + COUNT( * ) AS col0
----
-4840
-989

skipif mysql # not compatible
query II rowsort label-5134
SELECT + 88 * - 55, 43 * - 23 * + COUNT ( * ) AS col0
----
-4840
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + 18 * + - 70 - COUNT( * ) + + 55 col0
----
-1206

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 18 * + - 70 - COUNT ( * ) + + 55 col0
----
-1206

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5136
SELECT - + 83 + + - CAST( + NULLIF ( - - 95, 51 ) AS SIGNED ) AS col0, + 93
----
-178
93

skipif mysql # not compatible
query II rowsort label-5136
SELECT - + 83 + + - CAST ( + NULLIF ( - - 95, 51 ) AS INTEGER ) AS col0, + 93
----
-178
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT + 45 + + ( + + COUNT( * ) ) * - MIN( + 57 ) * COUNT( * ) + + 72 DIV - 31 - 74 + - 35 - + - 95 DIV 56
----
-122

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 45 + + ( + + COUNT ( * ) ) * - MIN ( + 57 ) * COUNT ( * ) + + 72 / - 31 - 74 + - 35 - + - 95 / 56
----
-122

query I rowsort
SELECT + + 33 * + 87 col1
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + NULLIF ( + + COUNT( * ), - 85 ) - - + 94 - + + 99 * 50 * 65 * 82 + + COUNT( * )
----
-26383404

skipif mysql # not compatible
query I rowsort label-5139
SELECT + NULLIF ( + + COUNT ( * ), - 85 ) - - + 94 - + + 99 * 50 * 65 * 82 + + COUNT ( * )
----
-26383404

query II rowsort
SELECT ( + + 16 ), - 88 AS col2
----
16
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT ALL + NULLIF ( 66, - 82 DIV + 57 ) DIV 5 + - + 52
----
-39

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + NULLIF ( 66, - 82 / + 57 ) / 5 + - + 52
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT ALL - + 16 DIV - 24 * - 60 + - - COUNT( * ) + - + 31 + - 57 col2
----
-87

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - + 16 / - 24 * - 60 + - - COUNT ( * ) + - + 31 + - 57 col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT DISTINCT + 94 DIV - + ( - 64 ) + - 98 + + 39 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + 94 / - + ( - 64 ) + - 98 + + 39 AS col1
----
-58

query I rowsort
SELECT DISTINCT + + ( + 83 ) AS col0
----
83

query I rowsort
SELECT + - 6 + - 51 * 81 AS col0
----
-4137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT COUNT( * ) DIV + - ( ( + 37 ) ) - + 87
----
-87

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) / + - ( ( + 37 ) ) - + 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + - 43 * 40 + COUNT( * ) + + - ( + 46 ) AS col0
----
-1765

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - 43 * 40 + COUNT ( * ) + + - ( + 46 ) AS col0
----
-1765

query I rowsort
SELECT - + 26 - - 85 + 18 * + - 97 * + 78
----
-136129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5149
SELECT DISTINCT - 57 DIV + CAST( - 55 AS SIGNED ) + + 20 + + ( - - 92 ) + + 49 col1, CAST( NULL AS SIGNED ) AS col0, - + 32 col2
----
162
NULL
-32

skipif mysql # not compatible
query III rowsort label-5149
SELECT DISTINCT - 57 / + CAST ( - 55 AS INTEGER ) + + 20 + + ( - - 92 ) + + 49 col1, CAST ( NULL AS INTEGER ) AS col0, - + 32 col2
----
162
NULL
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5150
SELECT ALL 79 DIV 62 * - COUNT( * ) * + 79 - - + COUNT( * ) + + 83 col2
----
5

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL 79 / 62 * - COUNT ( * ) * + 79 - - + COUNT ( * ) + + 83 col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT ALL + - ( 48 ) AS col0, - 30 + + COUNT( * ) - - + 20 + + 69 + 25 + + 21 * - - 32 + + 67
----
-48
824

skipif mysql # not compatible
query II rowsort label-5151
SELECT ALL + - ( 48 ) AS col0, - 30 + + COUNT ( * ) - - + 20 + + 69 + 25 + + 21 * - - 32 + + 67
----
-48
824

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + NULLIF ( + - 41, - - COUNT( * ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + NULLIF ( + - 41, - - COUNT ( * ) ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT 55 * + SUM( - 39 ) + - 37 + - + 47
----
-2229

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT 55 * + SUM ( - 39 ) + - 37 + - + 47
----
-2229

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5154
SELECT ALL ( + - ( - - 48 ) ) * + 52 + + 11 + + COUNT( + 67 ) DIV 17 * - + 5 * - 79 * + + 23 AS col1, - 42
----
-2485
-42

skipif mysql # not compatible
query II rowsort label-5154
SELECT ALL ( + - ( - - 48 ) ) * + 52 + + 11 + + COUNT ( + 67 ) / 17 * - + 5 * - 79 * + + 23 AS col1, - 42
----
-2485
-42

query I rowsort
SELECT + 17 * ( + 19 ) + 77 AS col1
----
400

query II rowsort
SELECT 90, 14 AS col2
----
90
14

query I rowsort
SELECT ALL - 9 - + - 46 AS col1
----
37

query I rowsort
SELECT 11 * - 22 * 59 AS col1
----
-14278

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT 0 * - 52 * - 87 DIV - 49 + 80
----
80

skipif mysql # not compatible
query I rowsort label-5159
SELECT 0 * - 52 * - 87 / - 49 + 80
----
80

query I rowsort
SELECT DISTINCT - 64 * - - 28 * 68 AS col0
----
-121856

query II rowsort
SELECT DISTINCT 60 AS col2, 36 * + 98 * - - 46 AS col0
----
60
162288

query I rowsort
SELECT 11 - - 11
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT + 68 DIV - ( - 4 )
----
17

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 68 / - ( - 4 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5164
SELECT 31 + 71 + - 70 + - - 79 + 4 * - 96 DIV COALESCE ( + 92, 42 * + COUNT( * ) )
----
107

skipif mysql # not compatible
query I rowsort label-5164
SELECT 31 + 71 + - 70 + - - 79 + 4 * - 96 / COALESCE ( + 92, 42 * + COUNT ( * ) )
----
107

query I rowsort
SELECT ALL - 51 + - 45
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT - 77 + - - 49 * - - COUNT( * ) + + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 77 + - - 49 * - - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-29

query II rowsort
SELECT - 76, + 78 - - - ( + + 26 ) AS col0
----
-76
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT ALL 87 AS col0, + 56 * - MAX( + 18 ) * + 69 - - MIN( DISTINCT + 85 ) AS col2
----
87
-69467

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL 87 AS col0, + 56 * - MAX ( + 18 ) * + 69 - - MIN ( DISTINCT + 85 ) AS col2
----
87
-69467

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL COUNT( * ) + + + 58 col0
----
59

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL COUNT ( * ) + + + 58 col0
----
59

query I rowsort
SELECT 11 + 91
----
102

query I rowsort
SELECT ALL + + 52 * 56 * + 95 + + 54
----
276694

query I rowsort
SELECT - 18 * - 89 * 77 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - 10 + - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 10 + - COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT - - ( + 41 ) AS col0
----
41

query I rowsort
SELECT - 23 * 74 + + + 65 AS col2
----
-1637

query I rowsort
SELECT + 84 * - + 26
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL 24 + - + NULLIF ( + SUM( - ( 61 ) ), 93 * - - ( + + 50 ) ) + + 26 * + 38 AS col0
----
1073

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL 24 + - + NULLIF ( + SUM ( - ( 61 ) ), 93 * - - ( + + 50 ) ) + + 26 * + 38 AS col0
----
1073

query II rowsort
SELECT + + 67 AS col0, - 29
----
67
-29

query I rowsort
SELECT - 68 + - 62 * 30
----
-1928

query I rowsort
SELECT ALL 37 + - ( 0 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT DISTINCT 49 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 49 / - - 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5182
SELECT COALESCE ( + + CAST( - - 56 AS SIGNED ), - 31 ) * 52 - + MAX( + 86 ) AS col0, - 65 AS col1
----
2826
-65

skipif mysql # not compatible
query II rowsort label-5182
SELECT COALESCE ( + + CAST ( - - 56 AS INTEGER ), - 31 ) * 52 - + MAX ( + 86 ) AS col0, - 65 AS col1
----
2826
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + MIN( ALL + + 36 ) * - 0 - + - ( - - 44 ) + - - 89 col0
----
133

skipif mysql # not compatible
query I rowsort label-5183
SELECT + MIN ( ALL + + 36 ) * - 0 - + - ( - - 44 ) + - - 89 col0
----
133

query I rowsort
SELECT ALL 37 - 12
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT 92 * MIN( ALL 70 ) AS col2
----
6440

skipif mysql # not compatible
query I rowsort label-5185
SELECT 92 * MIN ( ALL 70 ) AS col2
----
6440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL - CASE + 80 WHEN COALESCE ( - MAX( DISTINCT 63 ), - + 68 / - COUNT( * ) * - - CAST( - 37 AS SIGNED ) + 19, 77 ) THEN CAST( NULL AS SIGNED ) ELSE CASE - 54 WHEN 34 + - - 14 THEN - CAST( NULL AS SIGNED ) WHEN + 98 + - + 90 + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - CASE + 80 WHEN COALESCE ( - MAX ( DISTINCT 63 ), - + 68 / - COUNT ( * ) * - - CAST ( - 37 AS INTEGER ) + 19, 77 ) THEN CAST ( NULL AS INTEGER ) ELSE CASE - 54 WHEN 34 + - - 14 THEN - CAST ( NULL AS INTEGER ) WHEN + 98 + - + 90 + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT ALL - 4 DIV - - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - 4 / - - COUNT ( * ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT NULLIF ( 61, + CAST( + + COUNT( * ) AS SIGNED ) ) * 62 * - + COUNT( * ) AS col1
----
-3782

skipif mysql # not compatible
query I rowsort label-5188
SELECT NULLIF ( 61, + CAST ( + + COUNT ( * ) AS INTEGER ) ) * 62 * - + COUNT ( * ) AS col1
----
-3782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT COUNT( * ) DIV - CASE + 62 WHEN + COUNT( * ) THEN 14 ELSE + ( 49 ) * + 29 * 66 * - ( 31 ) * - 9 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT COUNT ( * ) / - CASE + 62 WHEN + COUNT ( * ) THEN 14 ELSE + ( 49 ) * + 29 * 66 * - ( 31 ) * - 9 END AS col1
----
0

query I rowsort
SELECT 11 + + 28 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT 17 * - + 55, - 61 * + - 97 + + COUNT( * ) AS col2
----
-935
5918

skipif mysql # not compatible
query II rowsort label-5191
SELECT 17 * - + 55, - 61 * + - 97 + + COUNT ( * ) AS col2
----
-935
5918

query I rowsort
SELECT 53 * + + 22
----
1166

query I rowsort
SELECT DISTINCT - ( + + 47 ) + - 12 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + 75 * 43 * COUNT( * ) + - + SUM( 38 )
----
3187

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 75 * 43 * COUNT ( * ) + - + SUM ( 38 )
----
3187

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT + SUM( 97 ) + - 77 * - COUNT( * ) + 36 * 19
----
858

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + SUM ( 97 ) + - 77 * - COUNT ( * ) + 36 * 19
----
858

query I rowsort
SELECT DISTINCT - 72 + 84
----
12

query I rowsort
SELECT DISTINCT + 14 + - 96 * 84 AS col1
----
-8050

query I rowsort
SELECT - - NULLIF ( - 76, + CASE + 70 WHEN 47 THEN 11 * 39 WHEN + 89 THEN NULL END )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5199
SELECT + 42 + + - CASE - 94 WHEN - + COUNT( * ) THEN NULL WHEN + ( + SUM( DISTINCT - 90 ) ) / + CAST( NULL AS DECIMAL ) THEN + 70 * + 2 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 42 + + - CASE - 94 WHEN - + COUNT ( * ) THEN NULL WHEN + ( + SUM ( DISTINCT - 90 ) ) / + CAST ( NULL AS REAL ) THEN + 70 * + 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT 59 + - + 21 + + - ( + COUNT( * ) ) * SUM( 3 ) + + MAX( ALL + - 50 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5200
SELECT 59 + - + 21 + + - ( + COUNT ( * ) ) * SUM ( 3 ) + + MAX ( ALL + - 50 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5201
SELECT ( + + ( 39 ) ) * - - 93 + 92 DIV CAST( - 41 AS SIGNED ), 12 AS col1
----
3625
12

skipif mysql # not compatible
query II rowsort label-5201
SELECT ( + + ( 39 ) ) * - - 93 + 92 / CAST ( - 41 AS INTEGER ), 12 AS col1
----
3625
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5202
SELECT 48 DIV + 46 - 52 - 7, SUM( DISTINCT + - 78 ) AS col2
----
-58
-78

skipif mysql # not compatible
query II rowsort label-5202
SELECT 48 / + 46 - 52 - 7, SUM ( DISTINCT + - 78 ) AS col2
----
-58
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT ALL - 79 + COUNT( * ) AS col0, - ( - - 54 )
----
-78
-54

skipif mysql # not compatible
query II rowsort label-5203
SELECT ALL - 79 + COUNT ( * ) AS col0, - ( - - 54 )
----
-78
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT + ( CAST( - 84 AS SIGNED ) ) - - - 71 + 80 - 10 * + 53
----
-605

skipif mysql # not compatible
query I rowsort label-5204
SELECT + ( CAST ( - 84 AS INTEGER ) ) - - - 71 + 80 - 10 * + 53
----
-605

query I rowsort
SELECT 97 * - + ( 75 ) AS col2
----
-7275

query I rowsort
SELECT 28 + - 65 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + - 2 * + + 29 * + 11 - + - 93 * COUNT( * )
----
-545

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + - 2 * + + 29 * + 11 - + - 93 * COUNT ( * )
----
-545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT - 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - 99 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + 79 DIV - ( + ( - 16 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 79 / - ( + ( - 16 ) )
----
4

query I rowsort
SELECT ALL - 81 * + - 57
----
4617

query I rowsort
SELECT + 9 * 42 + + - 16 + 67 AS col0
----
429

query I rowsort
SELECT + 31 + - - 26 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT CASE + - 66 WHEN - 64 - - 87 + - 33 THEN + 55 * + - 75 - 39 + - + COALESCE ( - + AVG ( DISTINCT + ( - + 5 ) ), + 28 ) + - 61 - 94 + 70 + - 41 * + + 50 + + COUNT( DISTINCT 61 ) / 7 * + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT CASE + - 66 WHEN - 64 - - 87 + - 33 THEN + 55 * + - 75 - 39 + - + COALESCE ( - + AVG ( DISTINCT + ( - + 5 ) ), + 28 ) + - 61 - 94 + 70 + - 41 * + + 50 + + COUNT ( DISTINCT 61 ) / 7 * + 39 END
----
NULL

query I rowsort
SELECT + 95 + - + 97
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT + 71 + + 74 + - 27 + NULLIF ( - + COUNT( 59 ), + - 0 / + + 76 * - + 11 * - 92 - + COUNT( * ) * + + 70 * - 19 + COUNT( * ) ) + - 66 + + + 3 + 94 + CAST( 99 AS SIGNED ) * COUNT( * ) * 24 * - CAST( NULL AS SIGNED ) / 99 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + 71 + + 74 + - 27 + NULLIF ( - + COUNT ( 59 ), + - 0 / + + 76 * - + 11 * - 92 - + COUNT ( * ) * + + 70 * - 19 + COUNT ( * ) ) + - 66 + + + 3 + 94 + CAST ( 99 AS INTEGER ) * COUNT ( * ) * 24 * - CAST ( NULL AS INTEGER ) / 99 * + 80
----
NULL

query I rowsort
SELECT + 89 * - 91 AS col2
----
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + NULLIF ( + - 32, + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-5217
SELECT + NULLIF ( + - 32, + COUNT ( * ) )
----
-32

query I rowsort
SELECT 37 * 29 + + - 30
----
1043

query I rowsort
SELECT + 35 * - + 19 AS col2
----
-665

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT + 53 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 53 / - 33
----
-1

query II rowsort
SELECT DISTINCT + 95 AS col1, - 78 * - - 5 * - COALESCE ( 95, - 25 * - 48, + + 68 )
----
95
37050

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + - 29 + - + NULLIF ( - - SUM( DISTINCT + 47 ), 88 ) + + + 21 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5222
SELECT + - 29 + - + NULLIF ( - - SUM ( DISTINCT + 47 ), 88 ) + + + 21 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL - MAX( DISTINCT - 14 ) col2
----
14

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - MAX ( DISTINCT - 14 ) col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - COUNT( * ) * - ( + - 88 ) + 44 + + 68 + - 73 + - - 91 + - 6 + - - 74 + - 86 + - 50 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5224
SELECT - COUNT ( * ) * - ( + - 88 ) + 44 + + 68 + - 73 + - - 91 + - 6 + - - 74 + - 86 + - 50 AS col0
----
-26

query I rowsort
SELECT ALL + 85 * + 60 AS col0
----
5100

query I rowsort
SELECT ALL 56 + 4 + + - 1 * 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5227
SELECT + COUNT( * ) DIV - COUNT( * ) - + 70
----
-71

skipif mysql # not compatible
query I rowsort label-5227
SELECT + COUNT ( * ) / - COUNT ( * ) - + 70
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5228
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + NULLIF ( - + 30, + 61 * + + 48 + - COALESCE ( - ( - - 9 ), + + 87 / - + 84 ) ) AS col1, - COUNT( * ) - + 30
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-5228
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + NULLIF ( - + 30, + 61 * + + 48 + - COALESCE ( - ( - - 9 ), + + 87 / - + 84 ) ) AS col1, - COUNT ( * ) - + 30
----
NULL
-31

query I rowsort
SELECT - + 13 + + - ( + - 61 )
----
48

query I rowsort
SELECT - - 38 + + + 32 + 71 AS col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT 41 - - 77 + 88 + - CAST( + + 87 AS SIGNED ) * + 47 * - 22 * - - COALESCE ( - 18, + - 53 ) + 83 * - 90 * MIN( DISTINCT + - 19 ) * + 69
----
8174132

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT 41 - - 77 + 88 + - CAST ( + + 87 AS INTEGER ) * + 47 * - 22 * - - COALESCE ( - 18, + - 53 ) + 83 * - 90 * MIN ( DISTINCT + - 19 ) * + 69
----
8174132

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL MIN( ALL 60 ) - 3
----
57

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL MIN ( ALL 60 ) - 3
----
57

query II rowsort
SELECT - - 43, 5 * + + 63 AS col2
----
43
315

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - 25 + - COUNT( * ) * - 91 * 93 + - - COUNT( * ) AS col0
----
8439

skipif mysql # not compatible
query I rowsort label-5234
SELECT - 25 + - COUNT ( * ) * - 91 * 93 + - - COUNT ( * ) AS col0
----
8439

query I rowsort
SELECT - 30 * + 4 AS col2
----
-120

query I rowsort
SELECT DISTINCT NULLIF ( - 12, - - 46 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + COALESCE ( CASE 0 WHEN - - 85 * 96 - - + 64 + + + ( - 93 ) THEN NULL WHEN - - COUNT( * ) THEN + 19 ELSE 55 END, + + 58 * + + 44 * + COUNT( * ) + 71 + 77 + + + MIN( + 61 ) + - 49, ( 56 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + COALESCE ( CASE 0 WHEN - - 85 * 96 - - + 64 + + + ( - 93 ) THEN NULL WHEN - - COUNT ( * ) THEN + 19 ELSE 55 END, + + 58 * + + 44 * + COUNT ( * ) + 71 + 77 + + + MIN ( + 61 ) + - 49, ( 56 ) ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT 13 DIV + 62 + + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5238
SELECT 13 / + 62 + + 72 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT - CAST( NULL AS SIGNED ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT - CAST ( NULL AS INTEGER ) * - 66
----
NULL

query I rowsort
SELECT - 8 * - 66 * + - 98 AS col2
----
-51744

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + COUNT( DISTINCT 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + COUNT ( DISTINCT 56 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT + COUNT( * ) * + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + COUNT ( * ) * + - 71
----
-71

query I rowsort
SELECT - 72 * + ( 5 )
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT - 89 DIV + ( + ( 50 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5244
SELECT - 89 / + ( + ( 50 ) ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5245
SELECT DISTINCT + ( + + ( COUNT( * ) ) ) * - + 31 DIV + 78 + + NULLIF ( + 9, MIN( - - 44 ) ) col1, 84
----
9
84

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT + ( + + ( COUNT ( * ) ) ) * - + 31 / + 78 + + NULLIF ( + 9, MIN ( - - 44 ) ) col1, 84
----
9
84

query II rowsort
SELECT ALL + 49 * - 71 + + 95 + NULLIF ( + + CASE + 68 WHEN - 4 THEN 79 END, + - 95 ) AS col2, - ( - 40 ) AS col2
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT 14 * 5 - + COUNT( ALL - + 38 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5247
SELECT 14 * 5 - + COUNT ( ALL - + 38 ) AS col0
----
69

query I rowsort
SELECT - 29 * 9 + - 13
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT + NULLIF ( + 13, CASE - 46 WHEN COUNT( * ) THEN 72 ELSE 94 END ) * - - 77 * - COALESCE ( - 1, + COUNT( * ) + 49 DIV 40 + 87, + 4 ) + - 52 * - + 63
----
4277

skipif mysql # not compatible
query I rowsort label-5249
SELECT + NULLIF ( + 13, CASE - 46 WHEN COUNT ( * ) THEN 72 ELSE 94 END ) * - - 77 * - COALESCE ( - 1, + COUNT ( * ) + 49 / 40 + 87, + 4 ) + - 52 * - + 63
----
4277

onlyif mysql # DIV for integer division: 
query II rowsort label-5250
SELECT DISTINCT + 95 AS col2, 24 DIV - + ( - + 84 ) + - 41 * + + 75
----
95
-3075

skipif mysql # not compatible
query II rowsort label-5250
SELECT DISTINCT + 95 AS col2, 24 / - + ( - + 84 ) + - 41 * + + 75
----
95
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT - 16 * + - COUNT( * ) + - 13 + 6
----
9

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - 16 * + - COUNT ( * ) + - 13 + 6
----
9

query I rowsort
SELECT DISTINCT + 38 * - - 63 + 31
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - COUNT( ALL - - 16 ) * 82 - + COALESCE ( + + COUNT( * ), + + 82 * - SUM( - ( + 97 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5253
SELECT - COUNT ( ALL - - 16 ) * 82 - + COALESCE ( + + COUNT ( * ), + + 82 * - SUM ( - ( + 97 ) ) ) AS col0
----
-83

query I rowsort
SELECT - 15 + + 92 AS col1
----
77

query I rowsort
SELECT + 84 * 78
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 50 * - ( - - 28 ) + - 56 + - COALESCE ( + MAX( 74 ), - + 28 )
----
1270

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 50 * - ( - - 28 ) + - 56 + - COALESCE ( + MAX ( 74 ), - + 28 )
----
1270

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT - COUNT( * ) AS col0, 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-5257
SELECT - COUNT ( * ) AS col0, 54 AS col0
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL SUM( DISTINCT - - 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL SUM ( DISTINCT - - 9 ) col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT + 60 DIV - + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT + 60 / - + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + ( + NULLIF ( - 39, COUNT( * ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + ( + NULLIF ( - 39, COUNT ( * ) ) ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT ALL - 96 DIV + 86
----
-1

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - 96 / + 86
----
-1

query II rowsort
SELECT ALL + 1 AS col2, 82
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT COUNT( * ) + 89 col1
----
90

skipif mysql # not compatible
query I rowsort label-5263
SELECT COUNT ( * ) + 89 col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT + 53 + 47 AS col1, - 56 + ( + + CASE - + 68 WHEN + - 28 * - COUNT( * ) * - - 33 * 17 THEN 59 * + ( - - 53 ) END ) - + - NULLIF ( + + 96, - 24 )
----
100
NULL

skipif mysql # not compatible
query II rowsort label-5264
SELECT + 53 + 47 AS col1, - 56 + ( + + CASE - + 68 WHEN + - 28 * - COUNT ( * ) * - - 33 * 17 THEN 59 * + ( - - 53 ) END ) - + - NULLIF ( + + 96, - 24 )
----
100
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) + ( - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) + ( - 63 )
----
NULL

query II rowsort
SELECT ALL 47 col1, + 9
----
47
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT DISTINCT + COUNT( * ) * 69 AS col2, 66 AS col2
----
69
66

skipif mysql # not compatible
query II rowsort label-5267
SELECT DISTINCT + COUNT ( * ) * 69 AS col2, 66 AS col2
----
69
66

query II rowsort
SELECT 2 + 38 AS col0, - 8 AS col2
----
40
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5269
SELECT CAST( NULL AS DECIMAL ) + - 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT CAST ( NULL AS REAL ) + - 24 col2
----
NULL

query I rowsort
SELECT ALL - CASE 11 WHEN + - 92 THEN 86 END AS col1
----
NULL

query I rowsort
SELECT ALL ( 34 ) + - - 23 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT CAST( NULL AS SIGNED ) + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT CAST ( NULL AS INTEGER ) + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT 19 * + + ( + CAST( 29 AS SIGNED ) ) * - 62 + + COUNT( * ) * - + 49
----
-34211

skipif mysql # not compatible
query I rowsort label-5273
SELECT 19 * + + ( + CAST ( 29 AS INTEGER ) ) * - 62 + + COUNT ( * ) * - + 49
----
-34211

query I rowsort
SELECT 47 + 14 + - 46 + - 42 * + 97 * - 25 AS col0
----
101865

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - MAX( ALL 82 ) + + 79
----
-3

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - MAX ( ALL 82 ) + + 79
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT - 6 DIV + ( ( + 30 ) ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 6 / + ( ( + 30 ) ) + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 74 * + - NULLIF ( 75, + 50 )
----
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT ALL - + 6 - - + 47 + + COALESCE ( + 54, - 79 ) / 16 * - 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - + 6 - - + 47 + + COALESCE ( + 54, - 79 ) / 16 * - 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5279
SELECT COUNT( * ) DIV + - 61 * - 81 + 38 col2
----
38

skipif mysql # not compatible
query I rowsort label-5279
SELECT COUNT ( * ) / + - 61 * - 81 + 38 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT 52 * + 10 + + + 87 * COALESCE ( - MIN( ALL + 14 ), 68 ) DIV 62 AS col0
----
501

skipif mysql # not compatible
query I rowsort label-5280
SELECT 52 * + 10 + + + 87 * COALESCE ( - MIN ( ALL + 14 ), 68 ) / 62 AS col0
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT + 12 * - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5281
SELECT + 12 * - - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - + COUNT( ALL - 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - + COUNT ( ALL - 4 ) AS col0
----
-1

query I rowsort
SELECT + ( 78 ) + + - 12
----
66

query I rowsort
SELECT 3 * - 64 AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT COUNT( * ) + + SUM( DISTINCT - 98 ) + - COUNT( + 51 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5285
SELECT COUNT ( * ) + + SUM ( DISTINCT - 98 ) + - COUNT ( + 51 ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT DISTINCT - 0 - - + 23 + - - CAST( + + 27 AS SIGNED ) + + - 22 * + 34 AS col0
----
-698

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - 0 - - + 23 + - - CAST ( + + 27 AS INTEGER ) + + - 22 * + 34 AS col0
----
-698

query I rowsort
SELECT + 85 * - + 82 - - 61
----
-6909

query I rowsort
SELECT - 29 - + 48
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) + + - 21 / 6 + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + + - 21 / 6 + 76 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 46, - - NULLIF ( - 62, + 44 ) + - - 24 ) * + 35 * 49 AS col0
----
78890

query I rowsort
SELECT + 51 * 26 AS col0
----
1326

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT 58 AS col0, ( - MAX( DISTINCT 73 ) ) col2
----
58
-73

skipif mysql # not compatible
query II rowsort label-5292
SELECT 58 AS col0, ( - MAX ( DISTINCT 73 ) ) col2
----
58
-73

query I rowsort
SELECT 12 * + 43
----
516

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT 8 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT 8 / + 55
----
0

query I rowsort
SELECT 2 * + - 62
----
-124

query I rowsort
SELECT 37 * - - 30
----
1110

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT NULLIF ( - - MAX( - 20 ), - ( 11 ) - COUNT( 37 ) ) * + 58 AS col2, ( + + NULLIF ( - 41, + + 40 ) ) + 49 AS col0
----
-1160
8

skipif mysql # not compatible
query II rowsort label-5297
SELECT NULLIF ( - - MAX ( - 20 ), - ( 11 ) - COUNT ( 37 ) ) * + 58 AS col2, ( + + NULLIF ( - 41, + + 40 ) ) + 49 AS col0
----
-1160
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT CAST( NULL AS SIGNED ) + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT CAST ( NULL AS INTEGER ) + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL COUNT( * ) * + + 45
----
45

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL COUNT ( * ) * + + 45
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT 21 DIV - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT 21 / - 26 AS col0
----
0

query II rowsort
SELECT + 40 AS col0, 32 col2
----
40
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT MIN( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT MIN ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + MAX( DISTINCT - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-5303
SELECT + MAX ( DISTINCT - + 89 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT ALL 21 * - 90 + + 29 col2, 81 * + + COUNT( * ) AS col2
----
-1861
81

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL 21 * - 90 + + 29 col2, 81 * + + COUNT ( * ) AS col2
----
-1861
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT CAST( NULL AS SIGNED ) * MIN( DISTINCT + 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + 61 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + MIN( DISTINCT - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5306
SELECT + MIN ( DISTINCT - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + MIN( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5307
SELECT + MIN ( 73 )
----
73

query II rowsort
SELECT ALL - 90, 32 AS col1
----
-90
32

query I rowsort
SELECT COALESCE ( 17, + + 53 + - 70 - - ( - + 89 ) * 33 ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5310
SELECT - 70 * + CAST( NULL AS SIGNED ) + + + ( - - 30 ) + - 36 * + + CAST( - + 68 AS SIGNED ) / + 55, 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5310
SELECT - 70 * + CAST ( NULL AS INTEGER ) + + + ( - - 30 ) + - 36 * + + CAST ( - + 68 AS INTEGER ) / + 55, 36 AS col2
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5311
SELECT + CAST( - 48 AS DECIMAL ) * 84 / - ( - CAST( NULL AS SIGNED ) ) * + ( - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT + CAST ( - 48 AS REAL ) * 84 / - ( - CAST ( NULL AS INTEGER ) ) * + ( - 43 )
----
NULL

query I rowsort
SELECT 79 * 68
----
5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5313
SELECT - 75 + - ( 24 ) - + 54, - 70 * - 36 + + CAST( COUNT( * ) AS SIGNED ) + + 94 AS col1
----
-153
2615

skipif mysql # not compatible
query II rowsort label-5313
SELECT - 75 + - ( 24 ) - + 54, - 70 * - 36 + + CAST ( COUNT ( * ) AS INTEGER ) + + 94 AS col1
----
-153
2615

onlyif mysql # DIV for integer division: 
query II rowsort label-5314
SELECT + 41, - 69 + - - 22 + - 43 DIV + - 91 AS col2
----
41
-47

skipif mysql # not compatible
query II rowsort label-5314
SELECT + 41, - 69 + - - 22 + - 43 / + - 91 AS col2
----
41
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL - COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 33 - - 73 * - 48
----
-3537

query I rowsort
SELECT ALL + - ( - + 42 ) * + 53 AS col1
----
2226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT + - CAST( NULL AS SIGNED ) AS col1, + 34 col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5318
SELECT + - CAST ( NULL AS INTEGER ) AS col1, + 34 col1
----
NULL
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5319
SELECT - 60 + - 47 + + CAST( NULL AS DECIMAL ) * 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT - 60 + - 47 + + CAST ( NULL AS REAL ) * 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL - 1 * - NULLIF ( + CAST( 59 AS SIGNED ), - - 57 + + 1 )
----
59

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - 1 * - NULLIF ( + CAST ( 59 AS INTEGER ), - - 57 + + 1 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT + ( - + 46 ) * + SUM( ALL + + 26 ) AS col1, - SUM( 84 ) col2
----
-1196
-84

skipif mysql # not compatible
query II rowsort label-5321
SELECT + ( - + 46 ) * + SUM ( ALL + + 26 ) AS col1, - SUM ( 84 ) col2
----
-1196
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - + 21 + + 94 + ( + 89 ) * + COUNT( * ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-5322
SELECT - + 21 + + 94 + ( + 89 ) * + COUNT ( * ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - + COUNT( * ) * - + 58 * 41 * 32 AS col0
----
76096

skipif mysql # not compatible
query I rowsort label-5323
SELECT - + COUNT ( * ) * - + 58 * 41 * 32 AS col0
----
76096

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT NULLIF ( + + 83, + COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-5324
SELECT NULLIF ( + + 83, + COUNT ( * ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT - - CAST( NULL AS SIGNED ) - + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT - - CAST ( NULL AS INTEGER ) - + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5326
SELECT - NULLIF ( 73, - + 68 ) DIV + + SUM( DISTINCT ( - 81 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT - NULLIF ( 73, - + 68 ) / + + SUM ( DISTINCT ( - 81 ) ) col0
----
0

query I rowsort
SELECT ALL + + 61 + + COALESCE ( - - 7, - 56, + 93 ) * + + 95 AS col2
----
726

query I rowsort
SELECT ALL - 50 + + 6 AS col2
----
-44

query I rowsort
SELECT - CASE + - 16 WHEN + 53 THEN + 71 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 32 + + + 80 col1
----
112

query I rowsort
SELECT ALL 67 * + + 19 AS col0
----
1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT - 73 * + - COUNT( * ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT - 73 * + - COUNT ( * ) / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL - COALESCE ( + 9, + + 71 + - + COUNT( * ) ) + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - COALESCE ( + 9, + + 71 + - + COUNT ( * ) ) + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - MAX( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5334
SELECT - MAX ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - 60 + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 60 + - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query III rowsort label-5336
SELECT + 66 - 25, 62 * + 92 * 78 AS col0, 83 + - COUNT( * ) + 27 + + + 93 / CASE + 89 WHEN 58 THEN + 73 WHEN + AVG ( ALL + 87 ) THEN NULL END / - COUNT( * ) + 1 AS col0
----
41
444912
NULL

skipif mysql # not compatible
query III rowsort label-5336
SELECT + 66 - 25, 62 * + 92 * 78 AS col0, 83 + - COUNT ( * ) + 27 + + + 93 / CASE + 89 WHEN 58 THEN + 73 WHEN + AVG ( ALL + 87 ) THEN NULL END / - COUNT ( * ) + 1 AS col0
----
41
444912
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT DISTINCT ( + COUNT( * ) ), + 38 + 55 * + 79 * 43 AS col1
----
1
186873

skipif mysql # not compatible
query II rowsort label-5337
SELECT DISTINCT ( + COUNT ( * ) ), + 38 + 55 * + 79 * 43 AS col1
----
1
186873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT ALL - 91 * + CASE + 52 WHEN + + CASE 77 WHEN 40 THEN 84 * - + 92 WHEN 5 * 10 + 98 * SUM( DISTINCT 90 ) THEN 10 + 90 * + 69 END THEN + COUNT( * ) WHEN - 81 THEN + 3 ELSE - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL - 91 * + CASE + 52 WHEN + + CASE 77 WHEN 40 THEN 84 * - + 92 WHEN 5 * 10 + 98 * SUM ( DISTINCT 90 ) THEN 10 + 90 * + 69 END THEN + COUNT ( * ) WHEN - 81 THEN + 3 ELSE - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - 37 + - COUNT( + 56 )
----
-38

skipif mysql # not compatible
query I rowsort label-5339
SELECT - 37 + - COUNT ( + 56 )
----
-38

query I rowsort
SELECT - 13 + 72 + ( - 32 )
----
27

query I rowsort
SELECT + 7 + - 98 + - + ( + 36 ) col2
----
-127

query II rowsort
SELECT ALL ( - 45 ) AS col0, - 24
----
-45
-24

query I rowsort
SELECT DISTINCT - 74 * + 61 col0
----
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT SUM( 45 ) * - - ( + + 59 ) + - COUNT( * ) * - NULLIF ( - COUNT( * ), - 55 + - 45 + + 92 ) * - 8
----
2663

skipif mysql # not compatible
query I rowsort label-5344
SELECT SUM ( 45 ) * - - ( + + 59 ) + - COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 55 + - 45 + + 92 ) * - 8
----
2663

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL + COALESCE ( COUNT( * ), + 31 ) * - + 0 - + 0 * - COALESCE ( COUNT( * ), - 93, + COUNT( * ) ) AS col2, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL + COALESCE ( COUNT ( * ), + 31 ) * - + 0 - + 0 * - COALESCE ( COUNT ( * ), - 93, + COUNT ( * ) ) AS col2, 9
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + COUNT( + + 27 ) * 17 + - NULLIF ( + COUNT( ALL 18 ), + 91 ) + 74 - - - 99 * - 90 + + 66
----
9066

skipif mysql # not compatible
query I rowsort label-5346
SELECT + COUNT ( + + 27 ) * 17 + - NULLIF ( + COUNT ( ALL 18 ), + 91 ) + 74 - - - 99 * - 90 + + 66
----
9066

query I rowsort
SELECT ( COALESCE ( + 66, - 58, + + 77 * - 62 ) ) AS col0
----
66

query I rowsort
SELECT + COALESCE ( 24, - 20 * 34 * - - 47 ) + ( + 91 ) * - 13
----
-1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT + MAX( - 39 ) * + CASE 54 WHEN + - 32 - + - ( + 91 ) + - 61 + - - COUNT( * ) * - ( 60 ) * - 79 * + - COALESCE ( 5, 66, + 72 ) + - + ( - - 60 ) + - - 56 * NULLIF ( - 30, + 28 * + 11 ) + - - 54 + CASE 76 WHEN - 32 THEN - 36 WHEN CAST( 99 AS SIGNED ) THEN NULL END * 79 THEN + MIN( DISTINCT + 66 ) * - ( 59 ) ELSE NULL END / AVG ( DISTINCT 53 * 0 - 78 ) + + NULLIF ( + 77, - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + MAX ( - 39 ) * + CASE 54 WHEN + - 32 - + - ( + 91 ) + - 61 + - - COUNT ( * ) * - ( 60 ) * - 79 * + - COALESCE ( 5, 66, + 72 ) + - + ( - - 60 ) + - - 56 * NULLIF ( - 30, + 28 * + 11 ) + - - 54 + CASE 76 WHEN - 32 THEN - 36 WHEN CAST ( 99 AS INTEGER ) THEN NULL END * 79 THEN + MIN ( DISTINCT + 66 ) * - ( 59 ) ELSE NULL END / AVG ( DISTINCT 53 * 0 - 78 ) + + NULLIF ( + 77, - 29 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT + 24 * + - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + 24 * + - COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT + - 61 * 18 + - 0 AS col0
----
-1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT + 30 / + - 67 + + 84 / - CAST( + - 23 AS SIGNED ) * 61 * + 93 * - + 27 * - CASE - 79 WHEN + 73 THEN - + COUNT( ALL 44 ) ELSE NULL END * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT + 30 / + - 67 + + 84 / - CAST ( + - 23 AS INTEGER ) * 61 * + 93 * - + 27 * - CASE - 79 WHEN + 73 THEN - + COUNT ( ALL 44 ) ELSE NULL END * - 88 AS col0
----
NULL

query I rowsort
SELECT + 40 * - - 2
----
80

query I rowsort
SELECT DISTINCT + 72 * - 72 - + 42 - + + ( - COALESCE ( 84, + 37 ) )
----
-5142

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT - 80 + SUM( + 34 ) * - 20, 79 AS col2
----
-760
79

skipif mysql # not compatible
query II rowsort label-5355
SELECT - 80 + SUM ( + 34 ) * - 20, 79 AS col2
----
-760
79

query I rowsort
SELECT DISTINCT - - 98 * + 5 + + + 14 col0
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5357
SELECT ALL + - COUNT( DISTINCT - + 14 ) AS col2, ( + + 81 ) DIV + 12 + 6 + 24 + - ( + 25 ) * - ( + 1 ) + + 80
----
-1
141

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL + - COUNT ( DISTINCT - + 14 ) AS col2, ( + + 81 ) / + 12 + 6 + 24 + - ( + 25 ) * - ( + 1 ) + + 80
----
-1
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT DISTINCT 80 * 5 + + + COUNT( * ) * + COUNT( * ) + + COUNT( ALL 0 ) col2
----
402

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT 80 * 5 + + + COUNT ( * ) * + COUNT ( * ) + + COUNT ( ALL 0 ) col2
----
402

query I rowsort
SELECT DISTINCT + 57 * + 27 AS col0
----
1539

query I rowsort
SELECT ALL + + 0 * 4 + - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + NULLIF ( - 44, COUNT( * ) + + ( ( - - 4 ) ) ) * - COUNT( * ) + - 58
----
-14

skipif mysql # not compatible
query I rowsort label-5361
SELECT + NULLIF ( - 44, COUNT ( * ) + + ( ( - - 4 ) ) ) * - COUNT ( * ) + - 58
----
-14

query I rowsort
SELECT - 69 + 67 - - - 81 * + ( + 11 ) AS col1
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL + 33 * - 12 + + 80 * MIN( DISTINCT - 4 ) AS col0
----
-716

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + 33 * - 12 + + 80 * MIN ( DISTINCT - 4 ) AS col0
----
-716

query I rowsort
SELECT - 67 + + + 48
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT - COUNT( * ) * - + 39 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-5365
SELECT - COUNT ( * ) * - + 39 / 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + 59 * + COUNT( * ) * + 49 col0
----
2891

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + 59 * + COUNT ( * ) * + 49 col0
----
2891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 37 * - 20 * 32 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 37 * - 20 * 32 + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - 19 + + + MIN( DISTINCT - 9 ) AS col1, - MAX( DISTINCT + 79 ) AS col0
----
-28
-79

skipif mysql # not compatible
query II rowsort label-5368
SELECT - 19 + + + MIN ( DISTINCT - 9 ) AS col1, - MAX ( DISTINCT + 79 ) AS col0
----
-28
-79

query II rowsort
SELECT - 31 * + 44 * + 34 AS col1, + 20 AS col0
----
-46376
20

query I rowsort
SELECT DISTINCT 37 * - 97 AS col0
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT - COUNT( * ) - + COUNT( ALL + - 29 )
----
-2

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - COUNT ( * ) - + COUNT ( ALL + - 29 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT DISTINCT CAST( ( + - 15 ) AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT CAST ( ( + - 15 ) AS INTEGER ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5373
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) - + - 24 AS col2, 38
----
23
38

skipif mysql # not compatible
query II rowsort label-5373
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) - + - 24 AS col2, 38
----
23
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT 12 * - SUM( DISTINCT - - 98 ) AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT 12 * - SUM ( DISTINCT - - 98 ) AS col2
----
-1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT DISTINCT CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - COALESCE ( 91, - ( + COUNT( * ) ), NULLIF ( - 93, - + 39 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-5376
SELECT - COALESCE ( 91, - ( + COUNT ( * ) ), NULLIF ( - 93, - + 39 ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5377
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 30 AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 30 AS col1
----
NULL
-30

query I rowsort
SELECT DISTINCT + 43 * + 97 AS col1
----
4171

query I rowsort
SELECT ALL 11 * + 22 AS col1
----
242

query I rowsort
SELECT ALL + - CASE + + 71 WHEN + 2 THEN - 17 WHEN 34 THEN + 9 END * + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT + 68 * - ( - 59 ) + - + MAX( ALL 65 ) * + 27 AS col0
----
2257

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + 68 * - ( - 59 ) + - + MAX ( ALL 65 ) * + 27 AS col0
----
2257

query II rowsort
SELECT ALL - - NULLIF ( 15, 29 ) col0, 39 AS col2
----
15
39

query I rowsort
SELECT DISTINCT - - ( - 58 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT - 24 DIV ( - 51 ) * + 75 DIV + COALESCE ( + 65, - 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT - 24 / ( - 51 ) * + 75 / + COALESCE ( + 65, - 57 ) AS col1
----
0

query I rowsort
SELECT + ( + 5 ) * + - 60 + - 18 AS col1
----
-318

query I rowsort
SELECT DISTINCT 52 * + 16 - 59 * + 60
----
-2708

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT - - COALESCE ( - + COUNT( * ), - MAX( - - 31 ) ) + + ( - 9 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - - COALESCE ( - + COUNT ( * ), - MAX ( - - 31 ) ) + + ( - 9 ) col0
----
-10

query I rowsort
SELECT ALL 70 * 67 AS col1
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - 40 * + COUNT( * ) - + 12 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5389
SELECT - 40 * + COUNT ( * ) - + 12 AS col1
----
-52

query I rowsort
SELECT DISTINCT 10 + 70 AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT ALL 37 * - MAX( DISTINCT - 0 ) AS col1, + 34 AS col1
----
0
34

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL 37 * - MAX ( DISTINCT - 0 ) AS col1, + 34 AS col1
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + 6 * - + COUNT( * ) + - - 26 - + - 14
----
34

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 6 * - + COUNT ( * ) + - - 26 - + - 14
----
34

query I rowsort
SELECT 5 + 99 AS col1
----
104

query I rowsort
SELECT DISTINCT 49 - 21 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5395
SELECT 11 AS col2, 82 DIV + + COUNT( * )
----
11
82

skipif mysql # not compatible
query II rowsort label-5395
SELECT 11 AS col2, 82 / + + COUNT ( * )
----
11
82

query I rowsort
SELECT ALL + 28 * 48 AS col1
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT DISTINCT 32, 62 / - CAST( NULL AS SIGNED ) / + + 9 AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT 32, 62 / - CAST ( NULL AS INTEGER ) / + + 9 AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT COUNT( * ) + - + 82 * 61
----
-5001

skipif mysql # not compatible
query I rowsort label-5398
SELECT COUNT ( * ) + - + 82 * 61
----
-5001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - + 48, 64 * 33 * - 73 + 81 + + AVG ( DISTINCT + 79 ) * - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - + 48, 64 * 33 * - 73 + 81 + + AVG ( DISTINCT + 79 ) * - 4 )
----
NULL

query I rowsort
SELECT 65 * + 66
----
4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL 42 * + 58 * 59 * CAST( - 44 AS SIGNED ) AS col1
----
-6323856

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 42 * + 58 * 59 * CAST ( - 44 AS INTEGER ) AS col1
----
-6323856

query I rowsort
SELECT 72 - - - 59 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL - 56 * + + 51 * 25 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - 56 * + + 51 * 25 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT 55 + + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5404
SELECT 55 + + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT 91 * 63
----
5733

query I rowsort
SELECT 62 + 68 AS col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT 65 * - AVG ( CAST( NULL AS SIGNED ) ) * - 39 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT 65 * - AVG ( CAST ( NULL AS INTEGER ) ) * - 39 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 82 * + + 23
----
1886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT 71 + + + 95 DIV - COALESCE ( - COUNT( * ), - - 98 * + - COUNT( * ) ) * COUNT( - - 19 )
----
166

skipif mysql # not compatible
query I rowsort label-5409
SELECT 71 + + + 95 / - COALESCE ( - COUNT ( * ), - - 98 * + - COUNT ( * ) ) * COUNT ( - - 19 )
----
166

query I rowsort
SELECT ALL 99 * - 39
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL - 75 + + 39 * + COUNT( DISTINCT + 55 ) * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - 75 + + 39 * + COUNT ( DISTINCT + 55 ) * COUNT ( * )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5412
SELECT 24 + + 31 + - - 99 + + 8 DIV + - COALESCE ( + 12, + COUNT( * ) ) DIV COUNT( * ) * - 94 * CAST( + - 22 AS SIGNED ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-5412
SELECT 24 + + 31 + - - 99 + + 8 / + - COALESCE ( + 12, + COUNT ( * ) ) / COUNT ( * ) * - 94 * CAST ( + - 22 AS INTEGER ) AS col2
----
154

query II rowsort
SELECT + 65 AS col1, 84 + - 27 * - - 20
----
65
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT - + COUNT( * ) + + CAST( - 79 AS SIGNED ) + + + 47
----
-33

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - + COUNT ( * ) + + CAST ( - 79 AS INTEGER ) + + + 47
----
-33

query II rowsort
SELECT + + 0, + 70 + - 77 AS col1
----
0
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT ALL - 44 AS col2, + MIN( - 9 ) AS col1
----
-44
-9

skipif mysql # not compatible
query II rowsort label-5416
SELECT ALL - 44 AS col2, + MIN ( - 9 ) AS col1
----
-44
-9

query I rowsort
SELECT ALL - ( + 50 ) + - 69 * - - 19 * 13
----
-17093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5418
SELECT - 63 DIV - 37 - + + 44 * - 10 + + COUNT( * ) + + - 61, 57 * + MAX( 32 ) + + 15 * CAST( - 68 AS SIGNED ) AS col0
----
381
804

skipif mysql # not compatible
query II rowsort label-5418
SELECT - 63 / - 37 - + + 44 * - 10 + + COUNT ( * ) + + - 61, 57 * + MAX ( 32 ) + + 15 * CAST ( - 68 AS INTEGER ) AS col0
----
381
804

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL + 23 * + + COUNT( * ) + + 13 - + + 52 * 42
----
-2148

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + 23 * + + COUNT ( * ) + + 13 - + + 52 * 42
----
-2148

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT 23 DIV - + 11 + + - 65
----
-67

skipif mysql # not compatible
query I rowsort label-5420
SELECT 23 / - + 11 + + - 65
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT + + COUNT( * ) * 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + + COUNT ( * ) * 30 AS col1
----
30

query I rowsort
SELECT ALL + ( - COALESCE ( 88, + + 25 ) ) + 2 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-5423
SELECT ALL - 93, 35 DIV 62 DIV 66 col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-5423
SELECT ALL - 93, 35 / 62 / 66 col2
----
-93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT COUNT( 20 ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( 20 ) * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT + ( + 13 ) * 22 DIV - + NULLIF ( - 47, - ( + - ( + 94 ) ) + + + ( - 69 ) - + 97 )
----
6

skipif mysql # not compatible
query I rowsort label-5425
SELECT + ( + 13 ) * 22 / - + NULLIF ( - 47, - ( + - ( + 94 ) ) + + + ( - 69 ) - + 97 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT + 4 + + 65 AS col0, - 28 * - COUNT( * ) col2
----
69
28

skipif mysql # not compatible
query II rowsort label-5426
SELECT + 4 + + 65 AS col0, - 28 * - COUNT ( * ) col2
----
69
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5427
SELECT COUNT( * ) DIV NULLIF ( + 17, + + 35 ) * - CAST( NULL AS SIGNED ) - + - 58 AS col0, COALESCE ( - - 21, + 78 DIV + 65 + - - 47, COUNT( * ) ) * + - 51 + - - 89
----
NULL
-982

skipif mysql # not compatible
query II rowsort label-5427
SELECT COUNT ( * ) / NULLIF ( + 17, + + 35 ) * - CAST ( NULL AS INTEGER ) - + - 58 AS col0, COALESCE ( - - 21, + 78 / + 65 + - - 47, COUNT ( * ) ) * + - 51 + - - 89
----
NULL
-982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT 50 DIV 49 * - + COUNT( - 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-5428
SELECT 50 / 49 * - + COUNT ( - 9 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT ALL 8 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL 8 / 28
----
0

query I rowsort
SELECT ALL - CASE 41 WHEN - - 2 THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT COUNT( * ) + + 21 + + + 64 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5431
SELECT COUNT ( * ) + + 21 + + + 64 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT + 87 - + 70 + + + COUNT( * ) * - 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + 87 - + 70 + + + COUNT ( * ) * - 20 AS col2
----
-3

query I rowsort
SELECT NULLIF ( 60, + - COALESCE ( + 25, 4 ) + 34 ) * + + 83
----
4980

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT 91 + 11, COUNT( * ) * + 51 + ( + 99 ) AS col1
----
102
150

skipif mysql # not compatible
query II rowsort label-5434
SELECT 91 + 11, COUNT ( * ) * + 51 + ( + 99 ) AS col1
----
102
150

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT + 76 DIV - - 89 * + 11 * - ( 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 76 / - - 89 * + 11 * - ( 65 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT 41 + 42 DIV - 75
----
41

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 41 + 42 / - 75
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL MIN( ALL + 47 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL MIN ( ALL + 47 ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT - COUNT( DISTINCT - + 53 ) + - + 84
----
-85

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - COUNT ( DISTINCT - + 53 ) + - + 84
----
-85

query I rowsort
SELECT ALL - NULLIF ( + - 69, - 60 ) + + 33 AS col1
----
102

query II rowsort
SELECT - + 49 * + 50 AS col2, - 74
----
-2450
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5441
SELECT + + 63 DIV COUNT( 35 )
----
63

skipif mysql # not compatible
query I rowsort label-5441
SELECT + + 63 / COUNT ( 35 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - - 27 + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - - 27 + COUNT ( * ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT DISTINCT 85 * 92 + + CASE - 5 WHEN 40 + - - 0 THEN - - 0 / - + NULLIF ( 73, + 78 / - 99 * + CAST( NULL AS SIGNED ) + + 31 ) * - 92 + + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT 85 * 92 + + CASE - 5 WHEN 40 + - - 0 THEN - - 0 / - + NULLIF ( 73, + 78 / - 99 * + CAST ( NULL AS INTEGER ) + + 31 ) * - 92 + + 72 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 15 * 42 + + - ( - 3 ) AS col0
----
633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT ALL + + CASE SUM( DISTINCT + 10 ) WHEN + MAX( ALL CAST( + + 26 AS SIGNED ) ) THEN - 73 WHEN - 52 THEN ( - ( + 78 ) ) / 78 + - 0 / - ( + COUNT( * ) ) + 36 WHEN - CAST( NULL AS SIGNED ) * + 75 + + 28 THEN NULL WHEN + ( + + COUNT( * ) ) THEN COALESCE ( - NULLIF ( - 88, - 38 ), + 29, + MIN( ALL 35 ) ) + - MIN( ( 13 ) - 39 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + + CASE SUM ( DISTINCT + 10 ) WHEN + MAX ( ALL CAST ( + + 26 AS INTEGER ) ) THEN - 73 WHEN - 52 THEN ( - ( + 78 ) ) / 78 + - 0 / - ( + COUNT ( * ) ) + 36 WHEN - CAST ( NULL AS INTEGER ) * + 75 + + 28 THEN NULL WHEN + ( + + COUNT ( * ) ) THEN COALESCE ( - NULLIF ( - 88, - 38 ), + 29, + MIN ( ALL 35 ) ) + - MIN ( ( 13 ) - 39 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL - - CASE + + 53 WHEN - + 91 * + COUNT( * ) - - 44 THEN NULL WHEN + CAST( + + COUNT( * ) AS SIGNED ) * 28 THEN + 18 * 22 ELSE NULL END * + 82 * - 4 * + - COUNT( * ) - - - 54 - + 65 + COUNT( * ) + - 59 / 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL - - CASE + + 53 WHEN - + 91 * + COUNT ( * ) - - 44 THEN NULL WHEN + CAST ( + + COUNT ( * ) AS INTEGER ) * 28 THEN + 18 * 22 ELSE NULL END * + 82 * - 4 * + - COUNT ( * ) - - - 54 - + 65 + COUNT ( * ) + - 59 / 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT 36 * - COUNT( * ) + + 53 + - 49 + + - 43 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5447
SELECT 36 * - COUNT ( * ) + + 53 + - 49 + + - 43 AS col0
----
-75

query I rowsort
SELECT - - 86 + + - 6 AS col1
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-5449
SELECT ALL - - 81 DIV - 95 AS col2, 26
----
0
26

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL - - 81 / - 95 AS col2, 26
----
0
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT ALL - 28 * - 23 * 99, + 12 - - MAX( ALL - 20 ) + 22 - + 33 - 71 col2
----
63756
-90

skipif mysql # not compatible
query II rowsort label-5450
SELECT ALL - 28 * - 23 * 99, + 12 - - MAX ( ALL - 20 ) + 22 - + 33 - 71 col2
----
63756
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT - 55 * - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - 55 * - COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT - 46 * 39
----
-1794

query II rowsort
SELECT ALL + 20 AS col0, 10
----
20
10

query I rowsort
SELECT - 60 * + - 73
----
4380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5455
SELECT COUNT( * ) AS col1, - CAST( - 18 AS SIGNED ) + 43 - - 32
----
1
93

skipif mysql # not compatible
query II rowsort label-5455
SELECT COUNT ( * ) AS col1, - CAST ( - 18 AS INTEGER ) + 43 - - 32
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT SUM( ALL + - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5456
SELECT SUM ( ALL + - 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - SUM( DISTINCT + + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5457
SELECT - SUM ( DISTINCT + + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT ( SUM( ALL + ( 70 ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT ( SUM ( ALL + ( 70 ) ) )
----
70

query I rowsort
SELECT - 24 * - - 3
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - NULLIF ( - + 3, 33 ) * - + ( 53 ) + - - COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-5460
SELECT - NULLIF ( - + 3, 33 ) * - + ( 53 ) + - - COUNT ( * )
----
-158

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5461
SELECT + MAX( DISTINCT - 4 ) - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT + MAX ( DISTINCT - 4 ) - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 84 + - + 8
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT ALL 82 + - 19 DIV - 39 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL 82 + - 19 / - 39 AS col2
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5464
SELECT ALL 52 + - 90 + + 61 DIV + 53 + - 41 + - 67 * - + 22 + - + 53 AS col1, + 11 + - NULLIF ( + 21, - 52 )
----
1343
-10

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL 52 + - 90 + + 61 / + 53 + - 41 + - 67 * - + 22 + - + 53 AS col1, + 11 + - NULLIF ( + 21, - 52 )
----
1343
-10

query II rowsort
SELECT ALL 73 * + - ( - - 80 ) AS col2, - 85 AS col1
----
-5840
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL - + 8 + + 81 - - - 66 * + COUNT( * ) * COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - + 8 + + 81 - - - 66 * + COUNT ( * ) * COUNT ( * ) AS col2
----
7

query I rowsort
SELECT + + 26 + - 27 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL - CASE ( - + COUNT( - 69 ) ) WHEN 69 THEN + - 75 * + - COUNT( * ) + + + 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - CASE ( - + COUNT ( - 69 ) ) WHEN 69 THEN + - 75 * + - COUNT ( * ) + + + 3 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 95 AS col2, 0
----
95
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5470
SELECT + COUNT( * ) * 96 DIV - 20 AS col2, - 6 AS col0, 22
----
-4
-6
22

skipif mysql # not compatible
query III rowsort label-5470
SELECT + COUNT ( * ) * 96 / - 20 AS col2, - 6 AS col0, 22
----
-4
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + SUM( DISTINCT + ( + 99 ) ) * - 12
----
-1188

skipif mysql # not compatible
query I rowsort label-5471
SELECT + SUM ( DISTINCT + ( + 99 ) ) * - 12
----
-1188

query II rowsort
SELECT + - 81 AS col1, + 14 AS col1
----
-81
14

query I rowsort
SELECT - 47 + - 48
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5474
SELECT + 91 * - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ), + SUM( + 46 ) * - + 60 AS col2
----
NULL
-2760

skipif mysql # not compatible
query II rowsort label-5474
SELECT + 91 * - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ), + SUM ( + 46 ) * - + 60 AS col2
----
NULL
-2760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5475
SELECT ALL 60 * 18 + - 45 + - CAST( 45 AS SIGNED ) DIV - - 96
----
1035

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL 60 * 18 + - 45 + - CAST ( 45 AS INTEGER ) / - - 96
----
1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT - + NULLIF ( ( + 22 ), - ( - 3 ) ) DIV + 27 - + MIN( ALL 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT - + NULLIF ( ( + 22 ), - ( - 3 ) ) / + 27 - + MIN ( ALL 64 )
----
-64

query I rowsort
SELECT ALL + 19 * 57
----
1083

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ( SUM( 27 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5478
SELECT ( SUM ( 27 ) ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT + COUNT( DISTINCT + 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + COUNT ( DISTINCT + 61 ) AS col0
----
1

query I rowsort
SELECT 97 * 67 * - 78 * + 52 + 3
----
-26359941

query II rowsort
SELECT ( - NULLIF ( - - 27, + 57 ) ) AS col2, 48 AS col0
----
-27
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT + SUM( 26 ), + 10 + + 55 + + 66 - - 62 + + - COUNT( * ) + 86 * ( + COUNT( * ) ) AS col0
----
26
278

skipif mysql # not compatible
query II rowsort label-5482
SELECT + SUM ( 26 ), + 10 + + 55 + + 66 - - 62 + + - COUNT ( * ) + 86 * ( + COUNT ( * ) ) AS col0
----
26
278

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + NULLIF ( - 42, 80 * COALESCE ( + CASE + COUNT( * ) WHEN 73 + + + AVG ( - 40 ) THEN - 51 / + - 7 * + 78 + 16 + COUNT( * ) END, + 39 * 23 - 17 + + COUNT( * ) ) + - 73 * 29 - - ( - 59 ) * - 90 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + NULLIF ( - 42, 80 * COALESCE ( + CASE + COUNT ( * ) WHEN 73 + + + AVG ( - 40 ) THEN - 51 / + - 7 * + 78 + 16 + COUNT ( * ) END, + 39 * 23 - 17 + + COUNT ( * ) ) + - 73 * 29 - - ( - 59 ) * - 90 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT + MAX( - - 64 ) * 60 DIV - 77 + - COUNT( * ) + - 73 DIV - - COALESCE ( + COUNT( * ), COUNT( * ) ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-5484
SELECT + MAX ( - - 64 ) * 60 / - 77 + - COUNT ( * ) + - 73 / - - COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS col1
----
-123

query II rowsort
SELECT ( + 19 ) AS col0, + 45 col1
----
19
45

query I rowsort
SELECT - 1 * + 1 AS col1
----
-1

query II rowsort
SELECT ALL - COALESCE ( - 43, 21, - - ( + + NULLIF ( - - 68, 74 + + 35 * - 31 ) ) + 84 ), + 90 AS col2
----
43
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5488
SELECT 71 + - 0 DIV + - 67 * + 93 - 72 + 70 * 92 * 16 + - COUNT( + 45 ) * - - 80 * - - NULLIF ( - - 56, + 41 ) + - 73, + SUM( DISTINCT - - 69 ) col2
----
98486
69

skipif mysql # not compatible
query II rowsort label-5488
SELECT 71 + - 0 / + - 67 * + 93 - 72 + 70 * 92 * 16 + - COUNT ( + 45 ) * - - 80 * - - NULLIF ( - - 56, + 41 ) + - 73, + SUM ( DISTINCT - - 69 ) col2
----
98486
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT 74 - + MIN( + + 83 ) + + 95
----
86

skipif mysql # not compatible
query I rowsort label-5489
SELECT 74 - + MIN ( + + 83 ) + + 95
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5490
SELECT ALL - 7 * + + MAX( - + 44 ) * CASE + 2 WHEN MIN( ALL 67 ) / - CAST( 77 AS SIGNED ) * - 83 THEN - 95 WHEN - + COUNT( * ) * + ( - - 56 ) * - 80 THEN NULL ELSE - + NULLIF ( + + NULLIF ( + MIN( DISTINCT + - CAST( NULL AS DECIMAL ) ), + 0 - 38 + + 35 + + 45 ), + - 70 * 73 * 68 ) END * - CASE 6 WHEN + - 51 THEN NULL ELSE + COUNT( * ) * - 89 END + + CAST( 45 AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - 7 * + + MAX ( - + 44 ) * CASE + 2 WHEN MIN ( ALL 67 ) / - CAST ( 77 AS INTEGER ) * - 83 THEN - 95 WHEN - + COUNT ( * ) * + ( - - 56 ) * - 80 THEN NULL ELSE - + NULLIF ( + + NULLIF ( + MIN ( DISTINCT + - CAST ( NULL AS REAL ) ), + 0 - 38 + + 35 + + 45 ), + - 70 * 73 * 68 ) END * - CASE 6 WHEN + - 51 THEN NULL ELSE + COUNT ( * ) * - 89 END + + CAST ( 45 AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT + 52 + COUNT( * ) + - 61 - - COUNT( * ) + + 49 * 60 * 40 + - 25 - + 73
----
117495

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + 52 + COUNT ( * ) + - 61 - - COUNT ( * ) + + 49 * 60 * 40 + - 25 - + 73
----
117495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL - 98 + - + COUNT( CAST( NULL AS SIGNED ) )
----
-98

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - 98 + - + COUNT ( CAST ( NULL AS INTEGER ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT COUNT( * ) + + - 20 + + 20 * - 32 AS col1
----
-659

skipif mysql # not compatible
query I rowsort label-5493
SELECT COUNT ( * ) + + - 20 + + 20 * - 32 AS col1
----
-659

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - MIN( - + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5494
SELECT - MIN ( - + 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5495
SELECT + 54 DIV CAST( + COUNT( * ) AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 54 / CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
54

query I rowsort
SELECT 78 * + 50 AS col1
----
3900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5497
SELECT DISTINCT 7 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT 7 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL + + COUNT( - 54 ) - - 99 * ( - COALESCE ( ( - - 22 ), + 35 * COUNT( * ), + - COUNT( * ) ) ) AS col1
----
-2177

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + + COUNT ( - 54 ) - - 99 * ( - COALESCE ( ( - - 22 ), + 35 * COUNT ( * ), + - COUNT ( * ) ) ) AS col1
----
-2177

query I rowsort
SELECT ALL - 0 * + + 48
----
0

query II rowsort
SELECT 57 - - 39, 8 AS col1
----
96
8

query I rowsort
SELECT 1 * ( - 43 ) * CASE + 29 WHEN + 88 THEN NULL ELSE 84 * - 85 END + + 36 + + NULLIF ( + 75, - - 92 )
----
307131

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT ALL + MIN( - 29 ) * - 72 * - - 4 / + CASE - 56 WHEN - 32 - 99 + - - COALESCE ( - + 68, - 56 * - + ( + + 29 ) + + + 92 + COUNT( * ), - MIN( + ( - - 8 ) ) * + + ( - + 31 ), - + 54 ) THEN 9 + - 1 END + + 46 * - 24 / - + 94 * + COUNT( * ) AS col0, 87 AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5502
SELECT ALL + MIN ( - 29 ) * - 72 * - - 4 / + CASE - 56 WHEN - 32 - 99 + - - COALESCE ( - + 68, - 56 * - + ( + + 29 ) + + + 92 + COUNT ( * ), - MIN ( + ( - - 8 ) ) * + + ( - + 31 ), - + 54 ) THEN 9 + - 1 END + + 46 * - 24 / - + 94 * + COUNT ( * ) AS col0, 87 AS col0
----
NULL
87

query I rowsort
SELECT - 48 - + 15 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT COUNT( DISTINCT + 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5504
SELECT COUNT ( DISTINCT + 19 ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 6 * + 3 AS col2, 74 AS col2
----
-18
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - MIN( ALL + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - MIN ( ALL + 23 )
----
-23

query II rowsort
SELECT - 7 * + + 35 AS col1, - 74 AS col0
----
-245
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5508
SELECT CASE + 9 WHEN + 96 + + COUNT( * ) THEN + - 29 WHEN 61 * + 83 * 50 + + - 90 * + 55 + - CAST( 38 AS DECIMAL ) * - - 24 THEN NULL ELSE NULL END * 83 * + 10 * 46 / + COUNT( * ) - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT CASE + 9 WHEN + 96 + + COUNT ( * ) THEN + - 29 WHEN 61 * + 83 * 50 + + - 90 * + 55 + - CAST ( 38 AS REAL ) * - - 24 THEN NULL ELSE NULL END * 83 * + 10 * 46 / + COUNT ( * ) - 45
----
NULL

query II rowsort
SELECT - 30 * + + 74 + + 60 AS col2, 84 AS col0
----
-2160
84

query I rowsort
SELECT ALL 43 * ( + 23 )
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT COUNT( * ) * - 35 col1
----
-35

skipif mysql # not compatible
query I rowsort label-5511
SELECT COUNT ( * ) * - 35 col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT 11 * + 49 * - SUM( - - 85 ) + + COALESCE ( + 1, - + CAST( - + 6 AS SIGNED ) * + 50 + - 3 )
----
-45814

skipif mysql # not compatible
query I rowsort label-5512
SELECT 11 * + 49 * - SUM ( - - 85 ) + + COALESCE ( + 1, - + CAST ( - + 6 AS INTEGER ) * + 50 + - 3 )
----
-45814

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5513
SELECT COALESCE ( - - 28, NULLIF ( + - 64, - 58 ) ) + NULLIF ( - ( 48 ), 92 + - 26 ), - COUNT( * ) DIV - 3 AS col2
----
-20
0

skipif mysql # not compatible
query II rowsort label-5513
SELECT COALESCE ( - - 28, NULLIF ( + - 64, - 58 ) ) + NULLIF ( - ( 48 ), 92 + - 26 ), - COUNT ( * ) / - 3 AS col2
----
-20
0

query I rowsort
SELECT ALL 13 + - 76
----
-63

query I rowsort
SELECT ALL - 11 + - 38 * + + 42 * + 13 * - 31
----
643177

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT 86, MIN( 60 ) AS col1
----
86
60

skipif mysql # not compatible
query II rowsort label-5516
SELECT 86, MIN ( 60 ) AS col1
----
86
60

query I rowsort
SELECT DISTINCT 42 + - + 2 * + 13 + - 17
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL + COUNT( * ) DIV 81 * + ( - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + COUNT ( * ) / 81 * + ( - - 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL 77 + - + CASE 64 WHEN COUNT( * ) THEN NULL WHEN 19 THEN - MAX( DISTINCT 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL 77 + - + CASE 64 WHEN COUNT ( * ) THEN NULL WHEN 19 THEN - MAX ( DISTINCT 38 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL 36 + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL 36 + + COUNT ( * ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT MIN( DISTINCT + - 99 ) + + CAST( + ( 70 ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-5521
SELECT MIN ( DISTINCT + - 99 ) + + CAST ( + ( 70 ) AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - COUNT( - 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5522
SELECT - COUNT ( - 77 ) AS col0
----
-1

query I rowsort
SELECT 16 * - 77
----
-1232

query I rowsort
SELECT ALL + 67 - 63 * 27
----
-1634

query II rowsort
SELECT ALL - 57 AS col1, - 65 AS col0
----
-57
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT ALL - 95 * CASE - + 30 WHEN - CAST( NULL AS SIGNED ) THEN + COALESCE ( - + 43, + COUNT( * ) ) WHEN 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - 95 * CASE - + 30 WHEN - CAST ( NULL AS INTEGER ) THEN + COALESCE ( - + 43, + COUNT ( * ) ) WHEN 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT 47 - - - COUNT( * ) * - - 34 * + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5527
SELECT 47 - - - COUNT ( * ) * - - 34 * + + COUNT ( * )
----
13

query II rowsort
SELECT ALL + 49 AS col1, - 5 * + 24
----
49
-120

query II rowsort
SELECT 28, + 2 + + 21 AS col2
----
28
23

query I rowsort
SELECT DISTINCT + 46 * + 14
----
644

query I rowsort
SELECT 95 * - 3
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5532
SELECT 40, - COUNT( * ) + - - 86 * + CAST( NULL AS SIGNED ) * + 6 AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5532
SELECT 40, - COUNT ( * ) + - - 86 * + CAST ( NULL AS INTEGER ) * + 6 AS col0
----
40
NULL

query I rowsort
SELECT 72 + 81
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT ALL + 63 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + 63 / + 49
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5535
SELECT - 55 DIV - - ( - - 85 ) DIV 7 * + 78 AS col2, + 58 AS col0
----
0
58

skipif mysql # not compatible
query II rowsort label-5535
SELECT - 55 / - - ( - - 85 ) / 7 * + 78 AS col2, + 58 AS col0
----
0
58

query I rowsort
SELECT 95 + 71 * + 48 col0
----
3503

query I rowsort
SELECT ALL 26 * 24
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - ( - 70 ) + - 88 * - 68 + + SUM( + 18 )
----
6072

skipif mysql # not compatible
query I rowsort label-5538
SELECT - ( - 70 ) + - 88 * - 68 + + SUM ( + 18 )
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT COALESCE ( + + 17, - + SUM( ALL 29 ) ) col2
----
17

skipif mysql # not compatible
query I rowsort label-5539
SELECT COALESCE ( + + 17, - + SUM ( ALL 29 ) ) col2
----
17

query I rowsort
SELECT COALESCE ( + + 91, - 21 )
----
91

query II rowsort
SELECT + 20 AS col0, + 9 * 62 AS col0
----
20
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5542
SELECT ALL ( - + COUNT( * ) ) * + 41 + 73 * 1 DIV - MIN( DISTINCT 90 ) + + ( + - 20 ), 0 + - 89 AS col0
----
-61
-89

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL ( - + COUNT ( * ) ) * + 41 + 73 * 1 / - MIN ( DISTINCT 90 ) + + ( + - 20 ), 0 + - 89 AS col0
----
-61
-89

query I rowsort
SELECT DISTINCT 94 * - - ( ( 7 ) ) + + 73
----
731

query I rowsort
SELECT DISTINCT 63 * + 33 + - 56 AS col0
----
2023

query I rowsort
SELECT + 71 + - 44 * 79
----
-3405

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT 69 * 51 + - 14 + - COUNT( * ) * + 55
----
3450

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT 69 * 51 + - 14 + - COUNT ( * ) * + 55
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL COUNT( * ) * 54 * + - 86 + 47
----
-4597

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL COUNT ( * ) * 54 * + - 86 + 47
----
-4597

query II rowsort
SELECT + 85 AS col1, - 88
----
85
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5549
SELECT 35 * + CAST( + 42 AS SIGNED ) + - + 69 / - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT 35 * + CAST ( + 42 AS INTEGER ) + - + 69 / - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5550
SELECT - 12 * - - 26 * - + 20 * + ( + COUNT( * ) ) + - CAST( SUM( DISTINCT - - 30 ) AS SIGNED ) + + NULLIF ( - - 26, 43 ) DIV + 59 + 67
----
6277

skipif mysql # not compatible
query I rowsort label-5550
SELECT - 12 * - - 26 * - + 20 * + ( + COUNT ( * ) ) + - CAST ( SUM ( DISTINCT - - 30 ) AS INTEGER ) + + NULLIF ( - - 26, 43 ) / + 59 + 67
----
6277

query I rowsort
SELECT ALL 82 * + 50 col0
----
4100

query II rowsort
SELECT ALL + 25 AS col1, - 10 * + 7 * + + 14
----
25
-980

query I rowsort
SELECT + 64 * - 21
----
-1344

query I rowsort
SELECT ALL 70 * 2 AS col1
----
140

query I rowsort
SELECT DISTINCT - 66 * 19
----
-1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL - 8 - CASE - 40 WHEN - COUNT( * ) + - - CAST( NULL AS SIGNED ) THEN NULL WHEN - 21 + + ( + 81 ) THEN + MIN( DISTINCT CAST( NULL AS SIGNED ) ) END * 26 * + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - 8 - CASE - 40 WHEN - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 21 + + ( + 81 ) THEN + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) END * 26 * + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + + COUNT( * ) + - - 77 * + + SUM( DISTINCT - 13 )
----
-1000

skipif mysql # not compatible
query I rowsort label-5557
SELECT + + COUNT ( * ) + - - 77 * + + SUM ( DISTINCT - 13 )
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL + NULLIF ( COUNT( * ), - 92 + - + CASE - 49 WHEN + + 15 + 53 - COUNT( * ) THEN + + 46 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + NULLIF ( COUNT ( * ), - 92 + - + CASE - 49 WHEN + + 15 + 53 - COUNT ( * ) THEN + + 46 END ) AS col2
----
1

query I rowsort
SELECT - ( - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT + COALESCE ( + MAX( - - NULLIF ( 38, + 1 ) ), - + 83 - + + 18 + + 63 * 35 * + + ( - + 10 ), + - COUNT( * ) + + 9 )
----
38

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + COALESCE ( + MAX ( - - NULLIF ( 38, + 1 ) ), - + 83 - + + 18 + + 63 * 35 * + + ( - + 10 ), + - COUNT ( * ) + + 9 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT - - 0 AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5561
SELECT - - 0 AS col0, + COUNT ( * )
----
0
1

query I rowsort
SELECT - 0 + + 53
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT ALL 64 col0, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-5563
SELECT ALL 64 col0, COUNT ( * )
----
64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5564
SELECT ( COALESCE ( - 0, + + 71 + - - 21 DIV + + MAX( - 53 ) * CAST( NULL AS SIGNED ) - + 59 - - - NULLIF ( 83, + NULLIF ( + 4, + 55 ) * - - 5 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT ( COALESCE ( - 0, + + 71 + - - 21 / + + MAX ( - 53 ) * CAST ( NULL AS INTEGER ) - + 59 - - - NULLIF ( 83, + NULLIF ( + 4, + 55 ) * - - 5 ) ) )
----
0

query I rowsort
SELECT ALL + 68 + + ( + 67 ) AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT DISTINCT + - 96 + 62 DIV 32 + + ( - 17 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + - 96 + 62 / 32 + + ( - 17 ) AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5567
SELECT ALL 21 AS col0, - 58 * 86 * - SUM( - CAST( + 76 AS SIGNED ) )
----
21
-379088

skipif mysql # not compatible
query II rowsort label-5567
SELECT ALL 21 AS col0, - 58 * 86 * - SUM ( - CAST ( + 76 AS INTEGER ) )
----
21
-379088

query I rowsort
SELECT ALL - ( 79 ) + - - 96 col1
----
17

query II rowsort
SELECT - - 1 - + 87 AS col2, + 76
----
-86
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT DISTINCT - 65 + + CAST( + 74 AS SIGNED ) - - 87 - + COUNT( * ) + 94 AS col0
----
189

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - 65 + + CAST ( + 74 AS INTEGER ) - - 87 - + COUNT ( * ) + 94 AS col0
----
189

query I rowsort
SELECT ALL + 11 + + - ( + 58 ) AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT - 56 DIV - - 70 * 99
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - 56 / - - 70 * 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL + 61 DIV - 86 + 32
----
32

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + 61 / - 86 + 32
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT 90 DIV - 35 + + ( + 46 ) * - 28
----
-1290

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT 90 / - 35 + + ( + 46 ) * - 28
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + COALESCE ( - - 88, + COUNT( * ) ) col0
----
88

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + COALESCE ( - - 88, + COUNT ( * ) ) col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5576
SELECT ALL 65 DIV + - 18 + + CAST( - 90 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 65 / + - 18 + + CAST ( - 90 AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - 42 * - SUM( + 50 )
----
2100

skipif mysql # not compatible
query I rowsort label-5577
SELECT - 42 * - SUM ( + 50 )
----
2100

query I rowsort
SELECT - 48 * + 50 AS col1
----
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT ( + + CASE + + 91 WHEN + COUNT( + ( CAST( NULL AS SIGNED ) ) ) + - CAST( - 81 AS SIGNED ) + - 9 - - CAST( NULL AS SIGNED ) - 73 * - 64 THEN - 77 - COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT ( + + CASE + + 91 WHEN + COUNT ( + ( CAST ( NULL AS INTEGER ) ) ) + - CAST ( - 81 AS INTEGER ) + - 9 - - CAST ( NULL AS INTEGER ) - 73 * - 64 THEN - 77 - COUNT ( * ) END ) AS col2
----
NULL

query II rowsort
SELECT ( 89 ), 26 * - 72 * 60 AS col1
----
89
-112320

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT ( 57 ) DIV + 44 + - 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5581
SELECT ( 57 ) / + 44 + - 97 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT 48 * + MIN( DISTINCT 72 ) - + 72
----
3384

skipif mysql # not compatible
query I rowsort label-5582
SELECT 48 * + MIN ( DISTINCT 72 ) - + 72
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - ( + - ( - 28 ) ) * - - 85 * - - SUM( ALL 59 ) + + 22 + - COUNT( + 8 ) * + 49 * 96 - 72 AS col2
----
-145174

skipif mysql # not compatible
query I rowsort label-5583
SELECT - ( + - ( - 28 ) ) * - - 85 * - - SUM ( ALL 59 ) + + 22 + - COUNT ( + 8 ) * + 49 * 96 - 72 AS col2
----
-145174

query II rowsort
SELECT ALL + 76 * 64, - 12 AS col1
----
4864
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT CASE NULLIF ( 35, - ( 85 ) - + 16 ) WHEN SUM( + 14 ) - COUNT( * ) + - 26 + 89 THEN NULL WHEN - 71 * + + 35 + 94 - 35 THEN 2 * 93 + - - ( - 92 ) * - 45 + COUNT( * ) + - 24 * - - COUNT( * ) * + + 60 + + - 83 + 65 * SUM( ALL COALESCE ( + CAST( + - 45 AS SIGNED ), 77 / + 69 + 51 ) ) + CASE - 14 WHEN - 62 THEN 52 + - ( NULLIF ( 26, MAX( DISTINCT 31 ) ) ) * + 67 WHEN COUNT( * ) + + 71 / 98 THEN + COUNT( * ) / 28 ELSE + COUNT( 76 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT CASE NULLIF ( 35, - ( 85 ) - + 16 ) WHEN SUM ( + 14 ) - COUNT ( * ) + - 26 + 89 THEN NULL WHEN - 71 * + + 35 + 94 - 35 THEN 2 * 93 + - - ( - 92 ) * - 45 + COUNT ( * ) + - 24 * - - COUNT ( * ) * + + 60 + + - 83 + 65 * SUM ( ALL COALESCE ( + CAST ( + - 45 AS INTEGER ), 77 / + 69 + 51 ) ) + CASE - 14 WHEN - 62 THEN 52 + - ( NULLIF ( 26, MAX ( DISTINCT 31 ) ) ) * + 67 WHEN COUNT ( * ) + + 71 / 98 THEN + COUNT ( * ) / 28 ELSE + COUNT ( 76 ) END END
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( + - ( 82 ), + + 70 - + + 99 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - ( - MAX( - 18 ) ) + + - SUM( - 61 ) * + 45 AS col1
----
2727

skipif mysql # not compatible
query I rowsort label-5587
SELECT - ( - MAX ( - 18 ) ) + + - SUM ( - 61 ) * + 45 AS col1
----
2727

query I rowsort
SELECT + - 18 * + - 51 AS col2
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5589
SELECT ALL 31 * 64 DIV ( + - SUM( - 2 ) )
----
992

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL 31 * 64 / ( + - SUM ( - 2 ) )
----
992

query I rowsort
SELECT - 1 + + - 98 AS col2
----
-99

query I rowsort
SELECT DISTINCT ( + + 84 ) * + 41 + + 56 * - 20 + - - 80
----
2404

query I rowsort
SELECT ALL 58 * + 1 - 20 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT - 43 * + 7 * 56 + CAST( NULL AS SIGNED ) * COUNT( * ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - 43 * + 7 * 56 + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT COALESCE ( + - 11, + - 64 - + 5 * + + MIN( DISTINCT - + 82 ) - - 27 )
----
-11

skipif mysql # not compatible
query I rowsort label-5594
SELECT COALESCE ( + - 11, + - 64 - + 5 * + + MIN ( DISTINCT - + 82 ) - - 27 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL ( - 95 ) * + + 58 - - + COUNT( * ) + + + COUNT( * ) * + ( + 8 ) - 58 AS col0
----
-5559

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL ( - 95 ) * + + 58 - - + COUNT ( * ) + + + COUNT ( * ) * + ( + 8 ) - 58 AS col0
----
-5559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5596
SELECT + - SUM( DISTINCT - COALESCE ( + 11, - + 60 DIV 89 ) ) + + COALESCE ( + CAST( NULL AS SIGNED ), - - 31 * + CASE COUNT( * ) WHEN - + COUNT( * ) * - 90 + + COUNT( * ) THEN NULL WHEN - - 55 THEN NULL WHEN - 33 THEN + COUNT( * ) - 19 ELSE 82 END + - - 25 + + + CAST( NULL AS SIGNED ), 20, - 7 ) + + 96 * - 51 AS col1
----
-4865

skipif mysql # not compatible
query I rowsort label-5596
SELECT + - SUM ( DISTINCT - COALESCE ( + 11, - + 60 / 89 ) ) + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 31 * + CASE COUNT ( * ) WHEN - + COUNT ( * ) * - 90 + + COUNT ( * ) THEN NULL WHEN - - 55 THEN NULL WHEN - 33 THEN + COUNT ( * ) - 19 ELSE 82 END + - - 25 + + + CAST ( NULL AS INTEGER ), 20, - 7 ) + + 96 * - 51 AS col1
----
-4865

query I rowsort
SELECT + + 91 + 23 * + 49
----
1218

onlyif mysql # DIV for integer division: 
query II rowsort label-5598
SELECT ALL 47 + - 74 AS col1, 10 + + 94 + + 82 DIV 80 * - - 25 - - + 94 AS col0
----
-27
223

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL 47 + - 74 AS col1, 10 + + 94 + + 82 / 80 * - - 25 - - + 94 AS col0
----
-27
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + 86 - - + MAX( DISTINCT + 63 ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-5599
SELECT + 86 - - + MAX ( DISTINCT + 63 ) AS col0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + CAST( + + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5600
SELECT + CAST ( + + 97 AS INTEGER ) AS col0
----
97

query I rowsort
SELECT + 30 + 21
----
51

query I rowsort
SELECT - 0 - - - 33 - + 68 + + 56
----
-45

query I rowsort
SELECT - 44 + 2
----
-42

query I rowsort
SELECT 94 + + 31
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL - - COUNT( + 46 ) + - 10 * + 87 * - COUNT( 33 )
----
871

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - - COUNT ( + 46 ) + - 10 * + 87 * - COUNT ( 33 )
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT - 70 * - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - 70 * - COUNT ( * ) AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT 75 + + 46 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT 75 + + 46 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT ALL 60 + + 10 DIV 6 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL 60 + + 10 / 6 AS col1
----
61

query I rowsort
SELECT 84 + - 96
----
-12

query I rowsort
SELECT DISTINCT 95 * + 93 * + + 73 AS col1
----
644955

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT ALL - COUNT( * ) AS col2, MIN( - + ( 84 ) ) + + COUNT( * ) AS col1
----
-1
-83

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL - COUNT ( * ) AS col2, MIN ( - + ( 84 ) ) + + COUNT ( * ) AS col1
----
-1
-83

query I rowsort
SELECT ALL - 53 * - + 94 AS col1
----
4982

query I rowsort
SELECT 65 * 98 AS col2
----
6370

query I rowsort
SELECT 0 * 41 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT 7 DIV - COUNT( * ) + - COALESCE ( 51, - 64 + - + 89 DIV + ( 13 ) ) + + 17 + - ( - - NULLIF ( 2, + 30 * - COUNT( * ) + + 38 ) ) * 97 AS col1
----
-235

skipif mysql # not compatible
query I rowsort label-5615
SELECT 7 / - COUNT ( * ) + - COALESCE ( 51, - 64 + - + 89 / + ( 13 ) ) + + 17 + - ( - - NULLIF ( 2, + 30 * - COUNT ( * ) + + 38 ) ) * 97 AS col1
----
-235

query I rowsort
SELECT DISTINCT - 35 - + 24 * 78
----
-1907

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL - NULLIF ( - 52, + COUNT( * ) * + 81 * - SUM( DISTINCT - - 48 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - NULLIF ( - 52, + COUNT ( * ) * + 81 * - SUM ( DISTINCT - - 48 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL - NULLIF ( + COUNT( * ), 84 * - ( - 93 ) ) - + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - NULLIF ( + COUNT ( * ), 84 * - ( - 93 ) ) - + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT 90 * + NULLIF ( 2, 18 ) * + NULLIF ( + - 5, + - 38 ) + - - COUNT( * ) AS col2
----
-899

skipif mysql # not compatible
query I rowsort label-5619
SELECT 90 * + NULLIF ( 2, 18 ) * + NULLIF ( + - 5, + - 38 ) + - - COUNT ( * ) AS col2
----
-899

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT ALL - 8 DIV + - 3 col2
----
2

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - 8 / + - 3 col2
----
2

query I rowsort
SELECT 99 * - - 78 AS col0
----
7722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL - CAST( 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - CAST ( 46 AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT - 4 * 78 + + + 77 col0
----
-235

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT ALL - 17 DIV + 3
----
-5

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - 17 / + 3
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT NULLIF ( - 73, ( - - ( + + 6 ) ) + + - NULLIF ( - 89, + 42 ) ) * - + 89 - + - COUNT( * ) + + 26 + + COUNT( * )
----
6525

skipif mysql # not compatible
query I rowsort label-5625
SELECT NULLIF ( - 73, ( - - ( + + 6 ) ) + + - NULLIF ( - 89, + 42 ) ) * - + 89 - + - COUNT ( * ) + + 26 + + COUNT ( * )
----
6525

query I rowsort
SELECT - 89 - + 5 + + 2 * 97 * + ( - 83 ) AS col2
----
-16196

query I rowsort
SELECT NULLIF ( 68, + 73 )
----
68

query I rowsort
SELECT ALL - 67 * + 36 AS col0
----
-2412

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + 99 * - - MAX( + - ( - + 47 ) )
----
4653

skipif mysql # not compatible
query I rowsort label-5629
SELECT + 99 * - - MAX ( + - ( - + 47 ) )
----
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5630
SELECT + COUNT( * ) * ( - - 48 ) DIV + 39 - - 11 + + - 12 AS col1, + 71 * + COALESCE ( - 66, + + 72 * 46 ) col2, - 78 * - + 89 AS col0
----
0
-4686
6942

skipif mysql # not compatible
query III rowsort label-5630
SELECT + COUNT ( * ) * ( - - 48 ) / + 39 - - 11 + + - 12 AS col1, + 71 * + COALESCE ( - 66, + + 72 * 46 ) col2, - 78 * - + 89 AS col0
----
0
-4686
6942

query I rowsort
SELECT ALL + 81 + - + 59 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL - MAX( DISTINCT - ( - - ( 79 ) ) ) + - + 37 * - - 77
----
-2770

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - MAX ( DISTINCT - ( - - ( 79 ) ) ) + - + 37 * - - 77
----
-2770

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + 1 + + + CASE + + COUNT( * ) WHEN + MIN( + + 37 ) THEN NULLIF ( + 64, - 13 * - 86 ) * 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + 1 + + + CASE + + COUNT ( * ) WHEN + MIN ( + + 37 ) THEN NULLIF ( + 64, - 13 * - 86 ) * 31 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 14, 58 * 32 + 38 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT - 77 AS col2, - COUNT( * ) + 26 * + 26 + + - 90
----
-77
585

skipif mysql # not compatible
query II rowsort label-5635
SELECT - 77 AS col2, - COUNT ( * ) + 26 * + 26 + + - 90
----
-77
585

query I rowsort
SELECT ALL - 40 + - - 45
----
5

query II rowsort
SELECT 26 * - 32 * - 21, - 91 AS col1
----
17472
-91

query II rowsort
SELECT - + 85 col2, ( + + 42 ) + + ( 3 ) AS col2
----
-85
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT ALL + COUNT( * ) + ( 1 ) AS col0, 85 AS col0
----
2
85

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL + COUNT ( * ) + ( 1 ) AS col0, 85 AS col0
----
2
85

query I rowsort
SELECT ALL 58 * + - 64 AS col1
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - ( + 33 ) + - COUNT( * ) - + - 51
----
17

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - ( + 33 ) + - COUNT ( * ) - + - 51
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT COUNT( * ) * - COALESCE ( + SUM( DISTINCT + 32 ), - 71 + + MAX( + 11 ) * 62 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5642
SELECT COUNT ( * ) * - COALESCE ( + SUM ( DISTINCT + 32 ), - 71 + + MAX ( + 11 ) * 62 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT 76 * - + 38 AS col0
----
-2888

query I rowsort
SELECT ALL 61 - + 92 col2
----
-31

query I rowsort
SELECT 55 - + 47
----
8

query I rowsort
SELECT 10 * ( 2 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT 80 * + COUNT( * ) * - 27 AS col1
----
-2160

skipif mysql # not compatible
query I rowsort label-5647
SELECT 80 * + COUNT ( * ) * - 27 AS col1
----
-2160

query II rowsort
SELECT DISTINCT 42 * 25 AS col1, - 62 * - + 87 * + - 37 AS col1
----
1050
-199578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5649
SELECT - 0 DIV CASE + + 61 WHEN + - 37 * - - 51 + - + 18 THEN NULL WHEN + COUNT( * ) * + - NULLIF ( - 38, 46 * - + CAST( NULL AS SIGNED ) * + 33 ) + + 52 - - 87 * + - 8 * + 78 DIV - 94 - 93 THEN NULL ELSE - 14 END - + COALESCE ( + 41, 91 DIV + 22 * + 7 ) DIV - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5649
SELECT - 0 / CASE + + 61 WHEN + - 37 * - - 51 + - + 18 THEN NULL WHEN + COUNT ( * ) * + - NULLIF ( - 38, 46 * - + CAST ( NULL AS INTEGER ) * + 33 ) + + 52 - - 87 * + - 8 * + 78 / - 94 - 93 THEN NULL ELSE - 14 END - + COALESCE ( + 41, 91 / + 22 * + 7 ) / - - COUNT ( * )
----
-41

query I rowsort
SELECT DISTINCT 6 * - 61 * + 8 AS col1
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT MIN( ALL + + 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-5651
SELECT MIN ( ALL + + 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( * ) * 69 * + 3
----
207

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( * ) * 69 * + 3
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT - + 7 DIV - 60 + + 65 DIV 27 * + + 16 + - 36 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5653
SELECT - + 7 / - 60 + + 65 / 27 * + + 16 + - 36 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL - + COALESCE ( - COUNT( * ), + - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - + COALESCE ( - COUNT ( * ), + - 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT + 83 DIV + + 56 col1
----
1

skipif mysql # not compatible
query I rowsort label-5655
SELECT + 83 / + + 56 col1
----
1

query I rowsort
SELECT 36 * + + 59 - - ( - 84 ) AS col1
----
2040

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT ALL - COUNT( * ) + + ( MAX( 0 ) ), - 9 * - - 4 AS col1
----
-1
-36

skipif mysql # not compatible
query II rowsort label-5657
SELECT ALL - COUNT ( * ) + + ( MAX ( 0 ) ), - 9 * - - 4 AS col1
----
-1
-36

query I rowsort
SELECT ALL - - 94 + 93 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL + - 32 + + COUNT( * ) * 8 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + - 32 + + COUNT ( * ) * 8 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT 16 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT 16 / 22
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5661
SELECT DISTINCT + + 65 DIV - COUNT( * ) + + 21
----
-44

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + + 65 / - COUNT ( * ) + + 21
----
-44

query I rowsort
SELECT ALL - 44 + + 20 AS col0
----
-24

query I rowsort
SELECT 64 * + + 53
----
3392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT ALL + + 15 + - - SUM( DISTINCT - 34 ) + MAX( ( 46 ) ) / 60 * - CAST( NULL AS SIGNED ) + COALESCE ( - 28, - 54, + 26 ) + - + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + + 15 + - - SUM ( DISTINCT - 34 ) + MAX ( ( 46 ) ) / 60 * - CAST ( NULL AS INTEGER ) + COALESCE ( - 28, - 54, + 26 ) + - + 13 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT DISTINCT + + 90 * CAST( + + 22 AS SIGNED ) + + COALESCE ( - - CAST( NULL AS SIGNED ), + + 91 ) AS col0
----
2071

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + + 90 * CAST ( + + 22 AS INTEGER ) + + COALESCE ( - - CAST ( NULL AS INTEGER ), + + 91 ) AS col0
----
2071

query I rowsort
SELECT - - ( - - 86 ) * + 44
----
3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL - 78 + - COALESCE ( NULLIF ( + 78, - - ( + + CAST( - MIN( DISTINCT - 49 ) AS SIGNED ) ) ), + 91 + 39 )
----
-156

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - 78 + - COALESCE ( NULLIF ( + 78, - - ( + + CAST ( - MIN ( DISTINCT - 49 ) AS INTEGER ) ) ), + 91 + 39 )
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT + 75 - - CAST( + 26 AS SIGNED ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + 75 - - CAST ( + 26 AS INTEGER ) AS col1
----
101

query I rowsort
SELECT ALL NULLIF ( + 45, - + 38 )
----
45

query I rowsort
SELECT + 25 - 53
----
-28

query I rowsort
SELECT ALL NULLIF ( + - 31, 54 * + 38 ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL COUNT( * ) * 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL COUNT ( * ) * 13 AS col1
----
13

query II rowsort
SELECT - ( NULLIF ( + 78, - 46 + - + 61 * + 32 ) ) * + 86 + + - 19, + 26 col2
----
-6727
26

query II rowsort
SELECT DISTINCT NULLIF ( 21, + 7 ) AS col1, + 19 + 39 col2
----
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + 17 * COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 17 * COUNT ( * ) AS col1
----
17

query II rowsort
SELECT + 41 + - - 79 + + 96 AS col2, - 31 + 5
----
216
-26

query II rowsort
SELECT ALL 37 AS col1, 19 + + 38 AS col1
----
37
57

query I rowsort
SELECT + 59 * + - 9 * - - 38 AS col0
----
-20178

query I rowsort
SELECT ( + + ( - + 4 ) )
----
-4

query I rowsort
SELECT + ( - - 58 ) AS col1
----
58

query I rowsort
SELECT + 23 + + ( - 12 ) AS col1
----
11

query I rowsort
SELECT ( - + ( - - 89 ) ) AS col2
----
-89

query I rowsort
SELECT DISTINCT - 88 * 74 + - 2 col1
----
-6514

query II rowsort
SELECT + + 7 AS col2, - 70
----
7
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL - ( + 3 ) * - - COUNT( * ) + + 8 / + 49 * + CASE + 64 WHEN + 66 THEN 6 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - ( + 3 ) * - - COUNT ( * ) + + 8 / + 49 * + CASE + 64 WHEN + 66 THEN 6 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT - - 79 * + 61 + + 80 * + - 98 * + MIN( - 93 ) AS col0
----
733939

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - - 79 * + 61 + + 80 * + - 98 * + MIN ( - 93 ) AS col0
----
733939

query I rowsort
SELECT + 8 * + + COALESCE ( + 56, - - 52 ) + - 30 * - 76 AS col0
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + SUM( - 4 ) * 80 AS col0
----
-320

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + SUM ( - 4 ) * 80 AS col0
----
-320

query I rowsort
SELECT + + 79 + - 38 * + 99
----
-3683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL + + 14 * - NULLIF ( + - 88, 53 ) + + - 15 * - CAST( - COUNT( ( + - 80 ) ) AS SIGNED )
----
1217

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + + 14 * - NULLIF ( + - 88, 53 ) + + - 15 * - CAST ( - COUNT ( ( + - 80 ) ) AS INTEGER )
----
1217

query II rowsort
SELECT ALL - - 48 * - - ( + 14 ) + + - 6 + + ( - 91 ) + - 3 * - 28 AS col1, + ( - + 79 ) AS col1
----
659
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT + 87 * COUNT( * ) + - 95 - - ( - ( - + 64 ) ) * 14 AS col1
----
888

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + 87 * COUNT ( * ) + - 95 - - ( - ( - + 64 ) ) * 14 AS col1
----
888

query I rowsort
SELECT + + 1 * - 81 + - 23 + 47
----
-57

query I rowsort
SELECT NULLIF ( - 30, - + 5 )
----
-30

query I rowsort
SELECT + 10 * - 86 AS col2
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + - MAX( DISTINCT 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5696
SELECT + - MAX ( DISTINCT 66 )
----
-66

query I rowsort
SELECT DISTINCT - ( + + 95 )
----
-95

query I rowsort
SELECT - - 2 * 33 + - + 90 AS col2
----
-24

query I rowsort
SELECT DISTINCT - 64 * 45 - + - 10 - - + 45
----
-2825

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT COUNT( * ) AS col2, ( 18 ) * + 54 AS col0
----
1
972

skipif mysql # not compatible
query II rowsort label-5700
SELECT COUNT ( * ) AS col2, ( 18 ) * + 54 AS col0
----
1
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT - CAST( + 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5701
SELECT - CAST ( + 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT - 25 + - COUNT( * ) AS col2, 46 AS col2
----
-26
46

skipif mysql # not compatible
query II rowsort label-5702
SELECT - 25 + - COUNT ( * ) AS col2, 46 AS col2
----
-26
46

query I rowsort
SELECT DISTINCT + 48 * - 73
----
-3504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT ALL - COUNT( - + CAST( NULL AS SIGNED ) ) * - 70
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) * - 70
----
0

query I rowsort
SELECT - 96 * + 4 AS col2
----
-384

onlyif mysql # aggregate syntax: 
query II rowsort label-5706
SELECT ALL + COUNT( * ) * + + 8 AS col2, + COUNT( * ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-5706
SELECT ALL + COUNT ( * ) * + + 8 AS col2, + COUNT ( * ) AS col2
----
8
1

query II rowsort
SELECT ALL ( 44 ), 29 col0
----
44
29

query I rowsort
SELECT ALL + 49 * - - 45 * - - 62
----
136710

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 3 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 3 AS col2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT CAST( + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT CAST ( + 45 AS INTEGER )
----
45

query I rowsort
SELECT - 59 * + ( - 45 )
----
2655

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT DISTINCT + COUNT( * ) + + 33, 45 AS col0
----
34
45

skipif mysql # not compatible
query II rowsort label-5712
SELECT DISTINCT + COUNT ( * ) + + 33, 45 AS col0
----
34
45

query I rowsort
SELECT + 94 * 15 * 85 AS col2
----
119850

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT - 23 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 23 / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT - 82 + + 69 DIV + 43 * - ( COUNT( * ) ) + - 94 AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 82 + + 69 / + 43 * - ( COUNT ( * ) ) + - 94 AS col1
----
-177

query I rowsort
SELECT - ( - - ( + 96 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5717
SELECT - COUNT( * ), CASE - 71 WHEN + COUNT( * ) + - 12 + ( + CAST( NULL AS DECIMAL ) ) + - 63 * + 54 * SUM( ALL - 83 ) THEN 13 END col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5717
SELECT - COUNT ( * ), CASE - 71 WHEN + COUNT ( * ) + - 12 + ( + CAST ( NULL AS REAL ) ) + - 63 * + 54 * SUM ( ALL - 83 ) THEN 13 END col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT COUNT( * ) + 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT COUNT ( * ) + 10 AS col2
----
11

query I rowsort
SELECT ALL 70 + - 78 - 10
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT ALL + CAST( 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + CAST ( 74 AS INTEGER ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-5721
SELECT + - 49 + + + ( 94 ) DIV 67 + ( + 9 ) * 91, 32 + - 17 AS col1
----
771
15

skipif mysql # not compatible
query II rowsort label-5721
SELECT + - 49 + + + ( 94 ) / 67 + ( + 9 ) * 91, 32 + - 17 AS col1
----
771
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT ALL - - 70 DIV + 99 + - 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - - 70 / + 99 + - 54 AS col0
----
-54

query I rowsort
SELECT - 28 * + 12 * 79
----
-26544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5724
SELECT ALL 98 / - 97 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 98 / - 97 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT - CAST( + 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - CAST ( + 60 AS INTEGER )
----
-60

query II rowsort
SELECT ALL - + 20 AS col0, 63 + - + ( 82 ) * - - 43 AS col2
----
-20
-3463

query I rowsort
SELECT ALL 25 - + 62
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL NULLIF ( + ( + - 31 ), - COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL NULLIF ( + ( + - 31 ), - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5729
SELECT - 8 * 77 / + COUNT( * ) * 76 + - - 35 + - CAST( NULL AS SIGNED ) - + 5 + + 70 + - 45 * - - 74 + + 36 + 96 * + - 79 + - - 4 * 33 / CASE COUNT( * ) WHEN 28 + 78 THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN - MAX( ALL 43 ) END - - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - 8 * 77 / + COUNT ( * ) * 76 + - - 35 + - CAST ( NULL AS INTEGER ) - + 5 + + 70 + - 45 * - - 74 + + 36 + 96 * + - 79 + - - 4 * 33 / CASE COUNT ( * ) WHEN 28 + 78 THEN NULL WHEN - CAST ( NULL AS REAL ) THEN - MAX ( ALL 43 ) END - - + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5730
SELECT 48 * + - 67 * - 60 + + + 62 AS col2, CAST( COALESCE ( + COUNT( * ), 61 ) AS SIGNED ) * 79 * + + 64 AS col0
----
193022
5056

skipif mysql # not compatible
query II rowsort label-5730
SELECT 48 * + - 67 * - 60 + + + 62 AS col2, CAST ( COALESCE ( + COUNT ( * ), 61 ) AS INTEGER ) * 79 * + + 64 AS col0
----
193022
5056

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5731
SELECT ALL - - 0, - 21 + + 57 * CAST( NULL AS DECIMAL ) + 11 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5731
SELECT ALL - - 0, - 21 + + 57 * CAST ( NULL AS REAL ) + 11 AS col1
----
0
NULL

query I rowsort
SELECT + 74 * + 1
----
74

query II rowsort
SELECT + 44 * + 19 AS col2, - NULLIF ( - + ( + ( 98 ) ), + 1 + + + 5 )
----
836
98

query I rowsort
SELECT - 83 + + + 75 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT 23 * - COUNT( DISTINCT + 47 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT 23 * - COUNT ( DISTINCT + 47 ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT CAST( + ( - 10 ) AS SIGNED ) * 59 + 67 AS col1
----
-523

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( + ( - 10 ) AS INTEGER ) * 59 + 67 AS col1
----
-523

query I rowsort
SELECT ALL 54 + - + ( + 49 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL - 63 + + 21 + + 55 + + 32 * - SUM( DISTINCT + 12 ) + - + ( - 11 ) AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL - 63 + + 21 + + 55 + + 32 * - SUM ( DISTINCT + 12 ) + - + ( - 11 ) AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT 9 + + + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5739
SELECT 9 + + + COUNT ( * ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL 48 + + 23 DIV + - 91 * - 19 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 48 + + 23 / + - 91 * - 19 AS col1
----
48

query I rowsort
SELECT ( - ( 59 ) ) * - 72 * - + 14 AS col0
----
-59472

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT 19 + - 28 + - 57 - + 62 DIV - 98 - 13 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5742
SELECT 19 + - 28 + - 57 - + 62 / - 98 - 13 AS col0
----
-79

query I rowsort
SELECT ( + ( + 95 ) ) + + 74
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT 28 + 18 + + + 42 DIV - 14
----
43

skipif mysql # not compatible
query I rowsort label-5744
SELECT 28 + 18 + + + 42 / - 14
----
43

query I rowsort
SELECT ALL - 54 * - 25
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL + NULLIF ( 14, - 32 ) + + - COUNT( - 37 ) + 26 * 58 AS col0
----
1521

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + NULLIF ( 14, - 32 ) + + - COUNT ( - 37 ) + 26 * 58 AS col0
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT + 82 + + - 88 + 26 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + 82 + + - 88 + 26 * - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL ( COUNT( * ) ) * - + 91
----
-91

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL ( COUNT ( * ) ) * - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT 34 + + - 20 + COUNT( * ) - + + 92 * + 19 * + 32 * - 93 * - COALESCE ( - 92, 62, + 56 )
----
478588431

skipif mysql # not compatible
query I rowsort label-5749
SELECT 34 + + - 20 + COUNT ( * ) - + + 92 * + 19 * + 32 * - 93 * - COALESCE ( - 92, 62, + 56 )
----
478588431

query I rowsort
SELECT DISTINCT - ( ( - + 91 ) ) + 8 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL + COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + COUNT ( * ) + - 52
----
-51

query I rowsort
SELECT ( 10 ) + - + 89
----
-79

query I rowsort
SELECT 70 * - 88
----
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT - 99 * - COALESCE ( - 75, + 69 - - 6 + + 55 * CAST( 66 AS SIGNED ) ) * - 75 + + - 79 col0
----
556796

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 99 * - COALESCE ( - 75, + 69 - - 6 + + 55 * CAST ( 66 AS INTEGER ) ) * - 75 + + - 79 col0
----
556796

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT ( COUNT( * ) ) AS col0, - 7 * + 43
----
1
-301

skipif mysql # not compatible
query II rowsort label-5755
SELECT ( COUNT ( * ) ) AS col0, - 7 * + 43
----
1
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + SUM( - 13 ) + + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5756
SELECT + SUM ( - 13 ) + + COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT - 26 + + 30 AS col1
----
4

query I rowsort
SELECT DISTINCT - + 95 * 13 * + 33
----
-40755

query I rowsort
SELECT ALL + 32 - - 48
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT 14 * + 73 * COUNT( * ) * - + ( - MAX( 37 ) ) + + + 83 * 99 AS col2
----
46031

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT 14 * + 73 * COUNT ( * ) * - + ( - MAX ( 37 ) ) + + + 83 * 99 AS col2
----
46031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5761
SELECT DISTINCT - CASE + COALESCE ( 17, + 24, 7 + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) + + - 2 * - 41 / - 72 * - + COUNT( * ) ) WHEN - 19 * ( + 70 ) - + + AVG ( + 55 ) THEN + + MIN( ALL 18 ) WHEN - 25 * 30 THEN NULL END * + - CAST( NULL AS SIGNED ) * + 37 + NULLIF ( - - COUNT( * ), - - 50 * + 95 * + + 82 + + 74 * - COUNT( * ) + - 55 / 57 ) + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - CASE + COALESCE ( 17, + 24, 7 + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) + + - 2 * - 41 / - 72 * - + COUNT ( * ) ) WHEN - 19 * ( + 70 ) - + + AVG ( + 55 ) THEN + + MIN ( ALL 18 ) WHEN - 25 * 30 THEN NULL END * + - CAST ( NULL AS INTEGER ) * + 37 + NULLIF ( - - COUNT ( * ), - - 50 * + 95 * + + 82 + + 74 * - COUNT ( * ) + - 55 / 57 ) + - 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT + MIN( - 41 ) DIV + 80 * - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5762
SELECT + MIN ( - 41 ) / + 80 * - + COUNT ( * ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT - 12 DIV - + 83 + + NULLIF ( - + 21, 27 ) - 88
----
-109

skipif mysql # not compatible
query I rowsort label-5763
SELECT - 12 / - + 83 + + NULLIF ( - + 21, 27 ) - 88
----
-109

query I rowsort
SELECT - 15 + 87
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), 89 - + 5 )
----
-84

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), 89 - + 5 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT 8 DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT 8 / 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - - COUNT( - 26 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - - COUNT ( - 26 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT 39 + - 66 + + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5768
SELECT 39 + - 66 + + - COUNT ( * )
----
-28

query I rowsort
SELECT + NULLIF ( + 8, + 29 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT + COALESCE ( 69, + - 81 * + NULLIF ( - + COUNT( * ), - CAST( - - 52 AS SIGNED ) + 13 / - 66 ) * - 6 + - - COALESCE ( - 15, 82 ) ) * - COUNT( * ) + + + 35 * + 8
----
211

skipif mysql # not compatible
query I rowsort label-5770
SELECT + COALESCE ( 69, + - 81 * + NULLIF ( - + COUNT ( * ), - CAST ( - - 52 AS INTEGER ) + 13 / - 66 ) * - 6 + - - COALESCE ( - 15, 82 ) ) * - COUNT ( * ) + + + 35 * + 8
----
211

query I rowsort
SELECT ALL NULLIF ( + - 56, - 89 ) + - 45
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL 7 * + COUNT( * ) col2
----
7

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 7 * + COUNT ( * ) col2
----
7

query I rowsort
SELECT 19 * - ( - 42 ) * 22 AS col2
----
17556

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT 42 * + COUNT ( * )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5775
SELECT ALL NULLIF ( + 25, - 84 * MIN( ALL + + 86 ) * + + MIN( DISTINCT - + ( ( + CAST( ( + 32 ) AS SIGNED ) ) ) ) + 60 + 14 + - 26 + + 71 ) + + 38 AS col0, + 20
----
63
20

skipif mysql # not compatible
query II rowsort label-5775
SELECT ALL NULLIF ( + 25, - 84 * MIN ( ALL + + 86 ) * + + MIN ( DISTINCT - + ( ( + CAST ( ( + 32 ) AS INTEGER ) ) ) ) + 60 + 14 + - 26 + + 71 ) + + 38 AS col0, + 20
----
63
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT - 77 AS col1, - MAX( ALL + 93 ) + - + CASE - + 93 WHEN - - 69 / - 13 * - 56 - - 19 THEN NULL ELSE 35 / + 32 + + CASE + 35 WHEN 3 THEN 45 WHEN - 89 THEN CASE - 5 WHEN + 32 * + + COUNT( DISTINCT - 27 ) + + 69 THEN 1 * + + NULLIF ( - NULLIF ( + + 12, - 35 ), - 62 * - 87 - + 94 / - 43 + + COALESCE ( - 14, + 69, + - 7 * + 68 ) - - + 17 ) - + + NULLIF ( + CASE 40 WHEN - 72 THEN 94 / - COUNT( * ) END, - ( AVG ( DISTINCT + 11 ) ) ) + - 82 END * 6 END END AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-5776
SELECT - 77 AS col1, - MAX ( ALL + 93 ) + - + CASE - + 93 WHEN - - 69 / - 13 * - 56 - - 19 THEN NULL ELSE 35 / + 32 + + CASE + 35 WHEN 3 THEN 45 WHEN - 89 THEN CASE - 5 WHEN + 32 * + + COUNT ( DISTINCT - 27 ) + + 69 THEN 1 * + + NULLIF ( - NULLIF ( + + 12, - 35 ), - 62 * - 87 - + 94 / - 43 + + COALESCE ( - 14, + 69, + - 7 * + 68 ) - - + 17 ) - + + NULLIF ( + CASE 40 WHEN - 72 THEN 94 / - COUNT ( * ) END, - ( AVG ( DISTINCT + 11 ) ) ) + - 82 END * 6 END END AS col1
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5777
SELECT 94 AS col1, CAST( 77 AS SIGNED ) DIV - - 78 + 18 + + - 37
----
94
-19

skipif mysql # not compatible
query II rowsort label-5777
SELECT 94 AS col1, CAST ( 77 AS INTEGER ) / - - 78 + 18 + + - 37
----
94
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL 77 * - - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL 77 * - - COUNT ( * ) AS col1
----
77

query I rowsort
SELECT DISTINCT 6 * - 91 AS col2
----
-546

query II rowsort
SELECT 80 AS col1, 20
----
80
20

query I rowsort
SELECT DISTINCT ( - 15 ) - 28 col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT DISTINCT MIN( ALL 75 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT MIN ( ALL 75 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT COUNT( * ) + - 42 col0
----
-41

skipif mysql # not compatible
query I rowsort label-5783
SELECT COUNT ( * ) + - 42 col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT COUNT( * ) + + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( * ) + + 32 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + CASE WHEN 15 <= + + COUNT( * ) * COUNT( 43 ) / ( + 93 ) + - 94 THEN NULL ELSE + 10 END * + 46 * + + 13 * - MIN( ALL 38 ) + - - 49
----
-227191

skipif mysql # not compatible
query I rowsort label-5785
SELECT + CASE WHEN 15 <= + + COUNT ( * ) * COUNT ( 43 ) / ( + 93 ) + - 94 THEN NULL ELSE + 10 END * + 46 * + + 13 * - MIN ( ALL 38 ) + - - 49
----
-227191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT ALL + 86 DIV + CASE - + 94 WHEN - 38 - - + 68 * - MAX( - - 87 ) + + 81 + + 74 DIV - + 40 + - - 33 THEN NULL ELSE 91 * 73 + 95 END DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 86 / + CASE - + 94 WHEN - 38 - - + 68 * - MAX ( - - 87 ) + + 81 + + 74 / - + 40 + - - 33 THEN NULL ELSE 91 * 73 + 95 END / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + 27 + - CASE - 25 WHEN - 24 THEN - 81 + - 79 WHEN - MIN( ALL + + 83 ) THEN NULL ELSE + + 73 END
----
-46

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 27 + - CASE - 25 WHEN - 24 THEN - 81 + - 79 WHEN - MIN ( ALL + + 83 ) THEN NULL ELSE + + 73 END
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT - - 16 * - - 55 + + COUNT( * ) DIV - - 68
----
880

skipif mysql # not compatible
query I rowsort label-5788
SELECT - - 16 * - - 55 + + COUNT ( * ) / - - 68
----
880

query I rowsort
SELECT DISTINCT + ( + - 22 ) * - 36 + - ( + + 53 ) AS col2
----
739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT - - CASE + 48 WHEN + 64 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT - - CASE + 48 WHEN + 64 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL + - MIN( ALL + 14 ) * + - 97
----
1358

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL + - MIN ( ALL + 14 ) * + - 97
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + + COUNT( * ) * + 21 * + 46 + + COUNT( * ) AS col0
----
967

skipif mysql # not compatible
query I rowsort label-5792
SELECT + + COUNT ( * ) * + 21 * + 46 + + COUNT ( * ) AS col0
----
967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT ALL - ( 38 ) * - 83 * ( - 41 ) + 65 + + 45 + - - COUNT( * ) * + 95 * 87 DIV + 64 + 17 AS col0
----
-129058

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - ( 38 ) * - 83 * ( - 41 ) + 65 + + 45 + - - COUNT ( * ) * + 95 * 87 / + 64 + 17 AS col0
----
-129058

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + CASE 65 WHEN 98 * 50 + 54 * + 74 THEN - + 68 - + 3 * - 9 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + CASE 65 WHEN 98 * 50 + 54 * + 74 THEN - + 68 - + 3 * - 9 * + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT + MAX( + - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + MAX ( + - 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT 6 DIV MIN( 45 ) + - 19 + 88 col2
----
69

skipif mysql # not compatible
query I rowsort label-5796
SELECT 6 / MIN ( 45 ) + - 19 + 88 col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5797
SELECT ALL + 44 AS col0, 91 + + + COUNT( * ) DIV ( - 87 )
----
44
91

skipif mysql # not compatible
query II rowsort label-5797
SELECT ALL + 44 AS col0, 91 + + + COUNT ( * ) / ( - 87 )
----
44
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - 99 * + + COUNT( * ) + + 77 * COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 99 * + + COUNT ( * ) + + 77 * COUNT ( * ) AS col1
----
-22

query II rowsort
SELECT DISTINCT + 36 AS col2, 31 AS col2
----
36
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5800
SELECT - + 29 * + CAST( + + 47 AS SIGNED ) * - 37, COUNT( * ) * 77 * - - 65 AS col1
----
50431
5005

skipif mysql # not compatible
query II rowsort label-5800
SELECT - + 29 * + CAST ( + + 47 AS INTEGER ) * - 37, COUNT ( * ) * 77 * - - 65 AS col1
----
50431
5005

query I rowsort
SELECT - - 23 * - 7 * 24 * + + 57
----
-220248

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT - 52 * - MIN( - 4 ) * - 62 + - SUM( ALL - 10 ) + 79
----
12985

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT - 52 * - MIN ( - 4 ) * - 62 + - SUM ( ALL - 10 ) + 79
----
12985

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL 96 * 7 + - 39 + - COUNT( * ) AS col1
----
632

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL 96 * 7 + - 39 + - COUNT ( * ) AS col1
----
632

query I rowsort
SELECT ALL + + 26 * + 54
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL + 21 * - - COUNT( * ) + + 62
----
83

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + 21 * - - COUNT ( * ) + + 62
----
83

query I rowsort
SELECT NULLIF ( - - 14, - 7 ) AS col2
----
14

query I rowsort
SELECT ALL + 72 * 22
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5808
SELECT DISTINCT - COUNT( * ) * - 25 * - ( + NULLIF ( COUNT( * ), + - 78 + + CAST( + + COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * 50 / + - 87 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT - COUNT ( * ) * - 25 * - ( + NULLIF ( COUNT ( * ), + - 78 + + CAST ( + + COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 50 / + - 87 ) ) AS col2
----
-25

query I rowsort
SELECT - ( - + 22 ) + - + 97 AS col0
----
-75

query I rowsort
SELECT - 7 + - 82 * + 6
----
-499

query II rowsort
SELECT - 80 * - + 26 + + - 81 * + 90, 81 * - 46 AS col2
----
-5210
-3726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT + SUM( DISTINCT + NULLIF ( - ( + 25 ), 71 ) ) DIV 4 * 44 - - + 5 + 7
----
-252

skipif mysql # not compatible
query I rowsort label-5812
SELECT + SUM ( DISTINCT + NULLIF ( - ( + 25 ), 71 ) ) / 4 * 44 - - + 5 + 7
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL + 78 * - CAST( NULL AS SIGNED ) + - 19 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + 78 * - CAST ( NULL AS INTEGER ) + - 19 * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT CASE + 60 WHEN - COUNT( * ) * - - COUNT( * ) THEN - 36 * 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT CASE + 60 WHEN - COUNT ( * ) * - - COUNT ( * ) THEN - 36 * 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT ALL COALESCE ( + 27, + 43 + - 38, 95 * + COUNT( * ) * MIN( - - 36 ) * - 30, + 60 - ( + 27 ) ), 66 + - + 80 AS col0
----
27
-14

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL COALESCE ( + 27, + 43 + - 38, 95 * + COUNT ( * ) * MIN ( - - 36 ) * - 30, + 60 - ( + 27 ) ), 66 + - + 80 AS col0
----
27
-14

query I rowsort
SELECT 27 * 6 + + 75 AS col0
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT COUNT( 75 ) AS col1, - 90 AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-5817
SELECT COUNT ( 75 ) AS col1, - 90 AS col2
----
1
-90

query I rowsort
SELECT DISTINCT - 82 - 73 * - + 58 + - 10 AS col0
----
4142

query I rowsort
SELECT ALL 23 * 59
----
1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5820
SELECT + 29 + COUNT( * ) + + - 34 DIV + ( + + 57 )
----
30

skipif mysql # not compatible
query I rowsort label-5820
SELECT + 29 + COUNT ( * ) + + - 34 / + ( + + 57 )
----
30

query I rowsort
SELECT - 41 * 37 * + 51 col0
----
-77367

query I rowsort
SELECT + 46 * + 43 * 64 AS col0
----
126592

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT MIN( DISTINCT + 91 ) * - 72 + 90 + - + CASE - + COUNT( * ) WHEN 10 THEN NULL WHEN + 70 * + ( + 54 ) THEN - 76 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT MIN ( DISTINCT + 91 ) * - 72 + 90 + - + CASE - + COUNT ( * ) WHEN 10 THEN NULL WHEN + 70 * + ( + 54 ) THEN - 76 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT + SUM( - 63 ) + + + ( 57 ) + + 75 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT + SUM ( - 63 ) + + + ( 57 ) + + 75 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT + SUM( DISTINCT - 47 ) + - - ( 5 ) AS col1, 96 + 4 + - 48 * 63 * - 54 + - + 56
----
-42
163340

skipif mysql # not compatible
query II rowsort label-5825
SELECT + SUM ( DISTINCT - 47 ) + - - ( 5 ) AS col1, 96 + 4 + - 48 * 63 * - 54 + - + 56
----
-42
163340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT + + 1 * + - 47 * COALESCE ( + - CAST( NULL AS SIGNED ), - 26 ) * - 92 + + COUNT( 33 )
----
-112423

skipif mysql # not compatible
query I rowsort label-5826
SELECT + + 1 * + - 47 * COALESCE ( + - CAST ( NULL AS INTEGER ), - 26 ) * - 92 + + COUNT ( 33 )
----
-112423

query II rowsort
SELECT ALL + 96 * - 63 AS col1, 79 AS col1
----
-6048
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT + CAST( NULL AS SIGNED ) / 74 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT + CAST ( NULL AS INTEGER ) / 74 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + ( + MIN( DISTINCT - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5829
SELECT + ( + MIN ( DISTINCT - 60 ) )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT + ( - - COUNT( * ) ) + + COALESCE ( CASE + 88 WHEN + 85 * + 41 * - + 66 THEN NULL WHEN 53 THEN - 23 * COALESCE ( COUNT( * ), + COUNT( * ), + + ( - 64 ) DIV - 89, + 79 + 10 - 5 ) - + ( - 9 ) END, - + ( 59 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5830
SELECT + ( - - COUNT ( * ) ) + + COALESCE ( CASE + 88 WHEN + 85 * + 41 * - + 66 THEN NULL WHEN 53 THEN - 23 * COALESCE ( COUNT ( * ), + COUNT ( * ), + + ( - 64 ) / - 89, + 79 + 10 - 5 ) - + ( - 9 ) END, - + ( 59 ) ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT + - CAST( NULL AS SIGNED ) / + + 65 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT + - CAST ( NULL AS INTEGER ) / + + 65 * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT + 36 + + 26 col1, + COUNT( * ) * - - 42 * + CASE CASE 29 WHEN - - 4 / + 95 * - 22 THEN + - 73 WHEN - 83 THEN NULL WHEN COUNT( * ) / + 33 THEN - + ( + - 53 ) END WHEN + 4 THEN - 72 END AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5832
SELECT + 36 + + 26 col1, + COUNT ( * ) * - - 42 * + CASE CASE 29 WHEN - - 4 / + 95 * - 22 THEN + - 73 WHEN - 83 THEN NULL WHEN COUNT ( * ) / + 33 THEN - + ( + - 53 ) END WHEN + 4 THEN - 72 END AS col0
----
62
NULL

query I rowsort
SELECT + - 75 * + - 36 * + + 83 AS col1
----
224100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5834
SELECT + CASE + 68 WHEN - - 48 THEN + - CAST( NULL AS DECIMAL ) + + 54 END / - - 64 * + 84 + 71 + + ( + - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT + CASE + 68 WHEN - - 48 THEN + - CAST ( NULL AS REAL ) + + 54 END / - - 64 * + 84 + 71 + + ( + - 57 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - - 94 DIV - 2 + + MIN( + 48 ) * - 80 AS col0
----
-3887

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - - 94 / - 2 + + MIN ( + 48 ) * - 80 AS col0
----
-3887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT ALL + ( 41 ) DIV - - 38 + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + ( 41 ) / - - 38 + + COUNT ( * ) col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5837
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * + 68 + - 40 col0
----
-108

skipif mysql # not compatible
query I rowsort label-5837
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * + 68 + - 40 col0
----
-108

query I rowsort
SELECT ALL 60 * 59 * - 90 AS col2
----
-318600

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + SUM( ALL + - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + SUM ( ALL + - 2 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-5840
SELECT ALL - 0 DIV ( NULLIF ( + 33, - - 55 ) ) * - ( + 65 ) + - 48 col1, 39 AS col1
----
-48
39

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL - 0 / ( NULLIF ( + 33, - - 55 ) ) * - ( + 65 ) + - 48 col1, 39 AS col1
----
-48
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT - 90 * + - 71 - MAX( DISTINCT 31 )
----
6359

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - 90 * + - 71 - MAX ( DISTINCT 31 )
----
6359

onlyif mysql # aggregate syntax: 
query II rowsort label-5842
SELECT DISTINCT 13 * + 42 - + COUNT( * ) col0, + 93 + + 19 AS col0
----
545
112

skipif mysql # not compatible
query II rowsort label-5842
SELECT DISTINCT 13 * + 42 - + COUNT ( * ) col0, + 93 + + 19 AS col0
----
545
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + MIN( - NULLIF ( 78, 48 + - 22 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-5843
SELECT + MIN ( - NULLIF ( 78, 48 + - 22 ) )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT - 41 DIV + + 28
----
-1

skipif mysql # not compatible
query I rowsort label-5844
SELECT - 41 / + + 28
----
-1

query I rowsort
SELECT 24 - + 93 + + - 76 AS col1
----
-145

query I rowsort
SELECT 50 * + + 40 AS col1
----
2000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5847
SELECT DISTINCT - 86 col1, NULLIF ( - COUNT( * ), + 15 + + - 47 ) DIV - 20 AS col1
----
-86
0

skipif mysql # not compatible
query II rowsort label-5847
SELECT DISTINCT - 86 col1, NULLIF ( - COUNT ( * ), + 15 + + - 47 ) / - 20 AS col1
----
-86
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT DISTINCT COALESCE ( 30, - 45 - + 16 + + + 4 DIV 6 + + 10 + + - 51 + 43 * + 15 + + 10 * + 96 * + 66 DIV + 74, + - COUNT( * ) + - CASE + + 16 WHEN 38 + + + 83 THEN - 36 ELSE NULL END ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT COALESCE ( 30, - 45 - + 16 + + + 4 / 6 + + 10 + + - 51 + 43 * + 15 + + 10 * + 96 * + 66 / + 74, + - COUNT ( * ) + - CASE + + 16 WHEN 38 + + + 83 THEN - 36 ELSE NULL END ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT + COALESCE ( + 41, CAST( + 71 AS SIGNED ), - + 99 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + COALESCE ( + 41, CAST ( + 71 AS INTEGER ), - + 99 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT DISTINCT + 63 col2, COUNT( * ) AS col0
----
63
1

skipif mysql # not compatible
query II rowsort label-5850
SELECT DISTINCT + 63 col2, COUNT ( * ) AS col0
----
63
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5851
SELECT DISTINCT - - 97 + + COALESCE ( - 97, - MIN( - 66 ), + ( - - 13 ) + + 87 + + 17 - - 29 ) col2, 99 + - ( - - 87 ) - + 63 DIV NULLIF ( + 37, 89 * + + ( + COUNT( * ) ) DIV + 72 )
----
0
11

skipif mysql # not compatible
query II rowsort label-5851
SELECT DISTINCT - - 97 + + COALESCE ( - 97, - MIN ( - 66 ), + ( - - 13 ) + + 87 + + 17 - - 29 ) col2, 99 + - ( - - 87 ) - + 63 / NULLIF ( + 37, 89 * + + ( + COUNT ( * ) ) / + 72 )
----
0
11

query I rowsort
SELECT ALL - 84 + 21 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL + COUNT( * ) + + 25 + + COALESCE ( - - MIN( + 82 ), + + CAST( NULL AS SIGNED ) * - 44, 52 * + + CAST( + MAX( ALL + + 93 ) AS SIGNED ) ) * - 79 AS col2
----
-6452

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + COUNT ( * ) + + 25 + + COALESCE ( - - MIN ( + 82 ), + + CAST ( NULL AS INTEGER ) * - 44, 52 * + + CAST ( + MAX ( ALL + + 93 ) AS INTEGER ) ) * - 79 AS col2
----
-6452

query I rowsort
SELECT 63 + - + ( + 64 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT + ( - - 71 ) + + + ( + + SUM( + 68 ) )
----
139

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + ( - - 71 ) + + + ( + + SUM ( + 68 ) )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT + 90 + + 3 + - 70 + COUNT( * ) * - + 4 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT + 90 + + 3 + - 70 + COUNT ( * ) * - + 4 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL 5 + + 40 * - + ( - COUNT( ALL 13 ) ) * 61 AS col1
----
2445

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL 5 + + 40 * - + ( - COUNT ( ALL 13 ) ) * 61 AS col1
----
2445

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - + COUNT( * ) * - 38 + + - 78 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5858
SELECT - + COUNT ( * ) * - 38 + + - 78 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT SUM( 62 ) / - COUNT( * ) + + CASE - CAST( NULL AS SIGNED ) WHEN COALESCE ( MIN( DISTINCT - - 81 ), - + 81 ) THEN - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) / + + COALESCE ( + 75, + MIN( - - 78 ), + 63 - 37 - + 86 + + 82, + + 76 + - 67 * + 13 + - 27 ) WHEN - 55 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 29 / + 30 THEN - + 74 * + 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT SUM ( 62 ) / - COUNT ( * ) + + CASE - CAST ( NULL AS INTEGER ) WHEN COALESCE ( MIN ( DISTINCT - - 81 ), - + 81 ) THEN - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + + COALESCE ( + 75, + MIN ( - - 78 ), + 63 - 37 - + 86 + + 82, + + 76 + - 67 * + 13 + - 27 ) WHEN - 55 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 29 / + 30 THEN - + 74 * + 25 END AS col0
----
NULL

query I rowsort
SELECT 93 * - 55 AS col2
----
-5115

query I rowsort
SELECT 28 * + + 18 AS col1
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT COUNT( ALL + + 18 ) - - - 40 + - - 45 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT COUNT ( ALL + + 18 ) - - - 40 + - - 45 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5863
SELECT ALL - 73 AS col1, 80 DIV - SUM( - NULLIF ( 11, + - 7 ) )
----
-73
7

skipif mysql # not compatible
query II rowsort label-5863
SELECT ALL - 73 AS col1, 80 / - SUM ( - NULLIF ( 11, + - 7 ) )
----
-73
7

query II rowsort
SELECT + 62, 12 AS col1
----
62
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5865
SELECT ALL - 44 AS col2, - COALESCE ( - 99, + - 74, - CAST( NULL AS SIGNED ) + + + 45 + + 75 + + - 46 DIV + 91 * COUNT( * ) * 41 - - 57 * + COUNT( * ) )
----
-44
99

skipif mysql # not compatible
query II rowsort label-5865
SELECT ALL - 44 AS col2, - COALESCE ( - 99, + - 74, - CAST ( NULL AS INTEGER ) + + + 45 + + 75 + + - 46 / + 91 * COUNT ( * ) * 41 - - 57 * + COUNT ( * ) )
----
-44
99

query I rowsort
SELECT ALL 54 * COALESCE ( + 34, 25 )
----
1836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT DISTINCT 83 * + 43 * - - 8 DIV - NULLIF ( - COUNT( * ), 56 + + 20 )
----
28552

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT 83 * + 43 * - - 8 / - NULLIF ( - COUNT ( * ), 56 + + 20 )
----
28552

query II rowsort
SELECT DISTINCT - 2, 13 * - ( + + 65 ) AS col0
----
-2
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT DISTINCT ( - + 41 ) * - 68 * 78 + + + 80 + CASE + 52 WHEN - + 16 THEN NULL WHEN + 50 + - 99 * NULLIF ( - - ( ( - NULLIF ( + 91, COUNT( * ) ) ) ), 70 + + 59 * + COUNT( * ) + + + 39 * - + 27 + 63 ) THEN 72 END + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT ( - + 41 ) * - 68 * 78 + + + 80 + CASE + 52 WHEN - + 16 THEN NULL WHEN + 50 + - 99 * NULLIF ( - - ( ( - NULLIF ( + 91, COUNT ( * ) ) ) ), 70 + + 59 * + COUNT ( * ) + + + 39 * - + 27 + 63 ) THEN 72 END + + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT 64 * 5 + + MIN( DISTINCT - 91 ) - - - 15 + + 43 * - 82 + - 4 AS col1
----
-3316

skipif mysql # not compatible
query I rowsort label-5870
SELECT 64 * 5 + + MIN ( DISTINCT - 91 ) - - - 15 + + 43 * - 82 + - 4 AS col1
----
-3316

query I rowsort
SELECT ( 99 ) * - 69 * - + 77
----
525987

query I rowsort
SELECT ( - 56 ) + - + 43 col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT + 33 * - 44 * - - 30 - + - 18 AS col2, - MAX( ALL - - 97 ) col2
----
-43542
-97

skipif mysql # not compatible
query II rowsort label-5873
SELECT + 33 * - 44 * - - 30 - + - 18 AS col2, - MAX ( ALL - - 97 ) col2
----
-43542
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT ALL - 5, COUNT( * ) * - + NULLIF ( 0, 86 / + + 29 ) AS col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-5874
SELECT ALL - 5, COUNT ( * ) * - + NULLIF ( 0, 86 / + + 29 ) AS col2
----
-5
0

query II rowsort
SELECT + 97 col2, - 89
----
97
-89

query I rowsort
SELECT DISTINCT + 92 * + 24
----
2208

query I rowsort
SELECT + 76 * 49 + - 51 * - 64 * - 87 AS col1
----
-280244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5878
SELECT 29 DIV COUNT( DISTINCT 86 ) * - 70 + + 30 AS col2
----
-2000

skipif mysql # not compatible
query I rowsort label-5878
SELECT 29 / COUNT ( DISTINCT 86 ) * - 70 + + 30 AS col2
----
-2000

query I rowsort
SELECT ALL - 74 + - 65 * 73
----
-4819

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - - COUNT( - + 19 ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - - COUNT ( - + 19 ) * 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT - 46 + - COUNT( * ) * - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT - 46 + - COUNT ( * ) * - COUNT ( * ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT ( - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) + - + ( - NULLIF ( - - 37, - CAST( - 16 AS SIGNED ) * 85 * + 37 ) ) - 24 * + - COALESCE ( + - ( - + 47 ), + 92 ) AS col2
----
1165

skipif mysql # not compatible
query I rowsort label-5882
SELECT ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + - + ( - NULLIF ( - - 37, - CAST ( - 16 AS INTEGER ) * 85 * + 37 ) ) - 24 * + - COALESCE ( + - ( - + 47 ), + 92 ) AS col2
----
1165

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL - + 94 + COUNT( * ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - + 94 + COUNT ( * ) col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5884
SELECT 39 * - 4 - + 55 + + SUM( - 71 ) DIV + 24 AS col2
----
-213

skipif mysql # not compatible
query I rowsort label-5884
SELECT 39 * - 4 - + 55 + + SUM ( - 71 ) / + 24 AS col2
----
-213

query I rowsort
SELECT 98 * - + 1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT 29 + - NULLIF ( 91, - SUM( - 27 ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5886
SELECT 29 + - NULLIF ( 91, - SUM ( - 27 ) ) AS col1
----
-62

query I rowsort
SELECT DISTINCT + + 65 + - 87 * 29
----
-2458

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5888
SELECT DISTINCT - COUNT( * ) + - 55 * + + COUNT( * ) + SUM( DISTINCT + - 85 ) + - 70 * ( - + 49 ) * + CASE 45 WHEN + 22 THEN - 27 * 54 WHEN CAST( NULL AS DECIMAL ) THEN + 41 ELSE COUNT( DISTINCT - - 91 ) END * - 60 col0
----
-205941

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT - COUNT ( * ) + - 55 * + + COUNT ( * ) + SUM ( DISTINCT + - 85 ) + - 70 * ( - + 49 ) * + CASE 45 WHEN + 22 THEN - 27 * 54 WHEN CAST ( NULL AS REAL ) THEN + 41 ELSE COUNT ( DISTINCT - - 91 ) END * - 60 col0
----
-205941

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - - NULLIF ( MAX( ALL + 45 ), - 48 )
----
45

skipif mysql # not compatible
query I rowsort label-5889
SELECT - - NULLIF ( MAX ( ALL + 45 ), - 48 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - 97 + - COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - 97 + - COUNT ( * ) AS col2
----
-98

query II rowsort
SELECT 81, 27 - + ( - 31 ) + + 93 * - - 93 * ( - + NULLIF ( 73, - 3 ) ) col2
----
81
-631319

query I rowsort
SELECT DISTINCT - - 77 + - 8 AS col2
----
69

query II rowsort
SELECT - 90 AS col0, 40 * ( + 73 ) - 92 AS col0
----
-90
2828

query I rowsort
SELECT - 25 - + - 99 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5895
SELECT - - 77 AS col2, - CAST( 98 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 63
----
77
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT - - 77 AS col2, - CAST ( 98 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 63
----
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT 3 * - - COUNT( * ), - ( - - 67 ) AS col2
----
3
-67

skipif mysql # not compatible
query II rowsort label-5896
SELECT 3 * - - COUNT ( * ), - ( - - 67 ) AS col2
----
3
-67

query I rowsort
SELECT 38 * + - ( + 63 ) AS col1
----
-2394

query I rowsort
SELECT NULLIF ( 91, + + 18 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL - SUM( 85 ) * - 12 + 87
----
1107

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - SUM ( 85 ) * - 12 + 87
----
1107

onlyif mysql # DIV for integer division: 
query II rowsort label-5900
SELECT ALL 43 * + - 70 - 11 AS col0, ( 3 ) DIV + 82 + + 75
----
-3021
75

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL 43 * + - 70 - 11 AS col0, ( 3 ) / + 82 + + 75
----
-3021
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - 13 * - - 11 - - COUNT( * ) + 75
----
-67

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - 13 * - - 11 - - COUNT ( * ) + 75
----
-67

query II rowsort
SELECT ALL - 41 * - 3 AS col1, 94 AS col2
----
123
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT NULLIF ( - - NULLIF ( + 88, + 19 ), COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) + 59 ) + COUNT( - 26 )
----
89

skipif mysql # not compatible
query I rowsort label-5903
SELECT NULLIF ( - - NULLIF ( + 88, + 19 ), COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + 59 ) + COUNT ( - 26 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT - 0 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT - 0 / - 85
----
0

query I rowsort
SELECT + 6 * 18 AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT COUNT( + + 28 ) AS col0, 15 * - + 69
----
1
-1035

skipif mysql # not compatible
query II rowsort label-5906
SELECT COUNT ( + + 28 ) AS col0, 15 * - + 69
----
1
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT MAX( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5907
SELECT MAX ( DISTINCT + 29 ) AS col0
----
29

query I rowsort
SELECT ALL 64 * - 27
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT + COALESCE ( - 8, - 17 DIV - 41 + + + 33 + + 10 * ( - 81 ) ) * - 14 - + + COUNT( * ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-5909
SELECT + COALESCE ( - 8, - 17 / - 41 + + + 33 + + 10 * ( - 81 ) ) * - 14 - + + COUNT ( * ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL 91 * - - 66 + + CASE - + ( - - SUM( ALL - 44 ) ) WHEN + 53 + 79 THEN + ( - 49 ) * + 90 + + - 0 + - - 53 * - + 47 * + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 91 * - - 66 + + CASE - + ( - - SUM ( ALL - 44 ) ) WHEN + 53 + 79 THEN + ( - 49 ) * + 90 + + - 0 + - - 53 * - + 47 * + 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT COUNT( DISTINCT - - 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5911
SELECT COUNT ( DISTINCT - - 95 ) AS col0
----
1

query II rowsort
SELECT + COALESCE ( 18, - - 32, + + 91, 20 ) AS col2, 68 AS col1
----
18
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT ALL COALESCE ( + - 71, - 51 * - 90 DIV - 63, 65, - 40 * - 71 ) * + 16 AS col1
----
-1136

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL COALESCE ( + - 71, - 51 * - 90 / - 63, 65, - 40 * - 71 ) * + 16 AS col1
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + COALESCE ( 1, + SUM( ALL + 87 ) + + - 95, 97 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5914
SELECT + COALESCE ( 1, + SUM ( ALL + 87 ) + + - 95, 97 ) AS col2
----
1

query I rowsort
SELECT + 57 * + 49
----
2793

query II rowsort
SELECT ALL 97 + + + 47, + 75 AS col2
----
144
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + CASE + 39 WHEN NULLIF ( - + 13, NULLIF ( + + 38, ( - - COUNT( * ) ) + 95 ) ) THEN NULL ELSE + - 26 END - 29
----
-55

skipif mysql # not compatible
query I rowsort label-5917
SELECT + CASE + 39 WHEN NULLIF ( - + 13, NULLIF ( + + 38, ( - - COUNT ( * ) ) + 95 ) ) THEN NULL ELSE + - 26 END - 29
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT + 80 - + CAST( - ( 22 ) AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 80 - + CAST ( - ( 22 ) AS INTEGER )
----
102

query I rowsort
SELECT + NULLIF ( - - 31, + 69 + - + 5 - - 7 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT MIN( ALL + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT MIN ( ALL + 11 ) AS col1
----
11

query I rowsort
SELECT ALL - 1 + + - 61 * 66 AS col0
----
-4027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT - 30 - - 73 + - 44 DIV - 36 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5922
SELECT - 30 - - 73 + - 44 / - 36 * COUNT ( * )
----
44

query I rowsort
SELECT - 43 - + 62
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT + 87 + + 74 + CASE + ( - 15 ) WHEN - CAST( NULL AS SIGNED ) + CAST( - - 6 AS SIGNED ) * + SUM( + - NULLIF ( + - 50, - 49 ) ) * 32 THEN ( ( 40 ) ) WHEN - NULLIF ( + 62, - 43 ) THEN NULL END * - + 46 * - 88 / - 23 * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + 87 + + 74 + CASE + ( - 15 ) WHEN - CAST ( NULL AS INTEGER ) + CAST ( - - 6 AS INTEGER ) * + SUM ( + - NULLIF ( + - 50, - 49 ) ) * 32 THEN ( ( 40 ) ) WHEN - NULLIF ( + 62, - 43 ) THEN NULL END * - + 46 * - 88 / - 23 * 94 AS col1
----
NULL

query I rowsort
SELECT - + 30 * - 84 + + 3 AS col0
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - + COUNT( * ) + - COALESCE ( + 34, - 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-5926
SELECT - + COUNT ( * ) + - COALESCE ( + 34, - 36 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT ALL - 81 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - 81 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT MIN( 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT MIN ( 71 ) AS col1
----
71

query I rowsort
SELECT ALL ( - 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT ALL + COUNT( ALL - 69 ) DIV 57 + - - ( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + COUNT ( ALL - 69 ) / 57 + - - ( + 24 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT - 36 DIV 63 * - 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 36 / 63 * - 75 col1
----
0

query I rowsort
SELECT ALL CASE - 93 WHEN + 5 * + 42 THEN - 71 + - 58 WHEN ( 84 ) THEN - + 23 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT - 24 * CAST( + - 16 AS SIGNED ) AS col1
----
384

skipif mysql # not compatible
query I rowsort label-5933
SELECT - 24 * CAST ( + - 16 AS INTEGER ) AS col1
----
384

query I rowsort
SELECT - 18 - 84
----
-102

query II rowsort
SELECT + 23, + 51 * 56 * + 11 + - + 22 AS col0
----
23
31394

query I rowsort
SELECT + 83 * - 35
----
-2905

query I rowsort
SELECT - 94 * + + 69 col0
----
-6486

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + CASE - 59 WHEN - 64 THEN NULL WHEN + COUNT( * ) / 42 THEN NULL WHEN + + 28 * MAX( - 15 ) + + ( - COUNT( * ) ) * + + 58 / NULLIF ( 4, - 93 + + 39 ) * - 35 + - COUNT( * ) THEN - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT + CASE - 59 WHEN - 64 THEN NULL WHEN + COUNT ( * ) / 42 THEN NULL WHEN + + 28 * MAX ( - 15 ) + + ( - COUNT ( * ) ) * + + 58 / NULLIF ( 4, - 93 + + 39 ) * - 35 + - COUNT ( * ) THEN - 77 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL COUNT( * ) * + 3 * + 12 * - 22 + - + ( - 99 ) - - - 89 AS col0
----
-782

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL COUNT ( * ) * + 3 * + 12 * - 22 + - + ( - 99 ) - - - 89 AS col0
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT - 47 DIV 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 47 / 22 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL NULLIF ( - 54, - - 74 + + - CAST( 80 AS SIGNED ) + - ( + 44 ) ) * MAX( ALL - ( 25 ) ) + 73
----
1423

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL NULLIF ( - 54, - - 74 + + - CAST ( 80 AS INTEGER ) + - ( + 44 ) ) * MAX ( ALL - ( 25 ) ) + 73
----
1423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT DISTINCT CAST( - - 39 AS SIGNED ) * 66 * - 86 + + 39 AS col1
----
-221325

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT CAST ( - - 39 AS INTEGER ) * 66 * - 86 + + 39 AS col1
----
-221325

query I rowsort
SELECT ALL 56 * COALESCE ( + 29, - 50 * - + 1 + 9 * + - 16 + - + 0 + + 27, - 86 * 25 ) + 87 AS col2
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT NULLIF ( 23, - + 82 * ( MAX( ALL - - ( - + 14 ) ) ) * + 91 )
----
23

skipif mysql # not compatible
query I rowsort label-5944
SELECT NULLIF ( 23, - + 82 * ( MAX ( ALL - - ( - + 14 ) ) ) * + 91 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + - MAX( ALL 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5945
SELECT + - MAX ( ALL 27 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5946
SELECT - + CASE - 53 WHEN - 23 DIV - COUNT( * ) + + COUNT( * ) * - 57 THEN NULL ELSE - MAX( ALL - 74 ) END + - - COUNT( * ) AS col1, 59 DIV MAX( - 67 ) AS col2
----
-73
0

skipif mysql # not compatible
query II rowsort label-5946
SELECT - + CASE - 53 WHEN - 23 / - COUNT ( * ) + + COUNT ( * ) * - 57 THEN NULL ELSE - MAX ( ALL - 74 ) END + - - COUNT ( * ) AS col1, 59 / MAX ( - 67 ) AS col2
----
-73
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT ALL - 97 DIV - NULLIF ( - + COUNT( * ), + + 15 + + - 49 + - + 94 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - 97 / - NULLIF ( - + COUNT ( * ), + + 15 + + - 49 + - + 94 ) col2
----
-97

query II rowsort
SELECT + - 91 + - ( + 50 ) AS col1, 95 AS col0
----
-141
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + 31 * + MIN( - 44 ) + - 20
----
-1384

skipif mysql # not compatible
query I rowsort label-5949
SELECT + 31 * + MIN ( - 44 ) + - 20
----
-1384

onlyif mysql # DIV for integer division: 
query II rowsort label-5950
SELECT ALL - 45 * + 71 + - 21 AS col0, NULLIF ( + 92, + - 37 ) DIV 38 * 99 AS col1
----
-3216
198

skipif mysql # not compatible
query II rowsort label-5950
SELECT ALL - 45 * + 71 + - 21 AS col0, NULLIF ( + 92, + - 37 ) / 38 * 99 AS col1
----
-3216
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL - 38 * + 15 + + + COUNT( * ) - + 44 AS col0
----
-613

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - 38 * + 15 + + + COUNT ( * ) - + 44 AS col0
----
-613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT + 19 * - 41 + - CAST( - - 96 AS SIGNED ) + - 47 AS col2
----
-922

skipif mysql # not compatible
query I rowsort label-5952
SELECT + 19 * - 41 + - CAST ( - - 96 AS INTEGER ) + - 47 AS col2
----
-922

query II rowsort
SELECT - + 94 AS col0, + 60 AS col2
----
-94
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + 54 + - MIN( + 36 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5954
SELECT + 54 + - MIN ( + 36 ) AS col2
----
18

query I rowsort
SELECT + + ( 18 ) * + - 12 * + 54 + - - 14 * + 5
----
-11594

query I rowsort
SELECT - + 84 * 22
----
-1848

query I rowsort
SELECT ALL + ( NULLIF ( - 68, - 35 ) )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT - - NULLIF ( 23, 76 ) + - + 29 DIV - 24
----
24

skipif mysql # not compatible
query I rowsort label-5958
SELECT - - NULLIF ( 23, 76 ) + - + 29 / - 24
----
24

query I rowsort
SELECT ALL - + 47 - 94
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT + CAST( NULL AS SIGNED ) * + + 85 + - - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT + CAST ( NULL AS INTEGER ) * + + 85 + - - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT NULLIF ( - + 82, 38 * - CAST( - 93 AS SIGNED ) - 48 ) * - + ( - 2 )
----
-164

skipif mysql # not compatible
query I rowsort label-5961
SELECT NULLIF ( - + 82, 38 * - CAST ( - 93 AS INTEGER ) - 48 ) * - + ( - 2 )
----
-164

query I rowsort
SELECT 44 * + 62
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + CASE - 63 WHEN + COUNT( * ) THEN + 40 END * - SUM( - - 43 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + CASE - 63 WHEN + COUNT ( * ) THEN + 40 END * - SUM ( - - 43 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT 24 + COUNT( * ) + 0 * + 10
----
25

skipif mysql # not compatible
query I rowsort label-5964
SELECT 24 + COUNT ( * ) + 0 * + 10
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ( - COUNT( * ) ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-5965
SELECT ( - COUNT ( * ) ) + - 77
----
-78

query II rowsort
SELECT 69 + 16 col2, + 20
----
85
20

query II rowsort
SELECT ALL - 6 + 16, - 59 * 65 * + 59 AS col0
----
10
-226265

query I rowsort
SELECT + 59 * - 69 + + 63
----
-4008

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5969
SELECT DISTINCT + 33 DIV + CAST( + 54 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT + 33 / + CAST ( + 54 AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5970
SELECT ALL - 79 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - 79 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT 42 DIV - 6 + + 87
----
80

skipif mysql # not compatible
query I rowsort label-5971
SELECT 42 / - 6 + + 87
----
80

query I rowsort
SELECT ALL - 88 + + 56 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT 94 + + 60 + 31 + + + CAST( NULL AS SIGNED ) * + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT 94 + + 60 + 31 + + + CAST ( NULL AS INTEGER ) * + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT + ( - + 1 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + ( - + 1 ) + - COUNT ( * )
----
-2

query I rowsort
SELECT + 36 * - ( + + 97 ) * + 12
----
-41904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5976
SELECT CASE + ( - - 52 ) WHEN - MAX( 25 ) + 29 THEN CAST( NULL AS SIGNED ) END * - + 34 * - - CAST( + - 45 AS DECIMAL ) + 25 * - CAST( NULL AS SIGNED ) + NULLIF ( + - COUNT( * ), + 5 / 99 ) + + 5 - - - 28 * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT CASE + ( - - 52 ) WHEN - MAX ( 25 ) + 29 THEN CAST ( NULL AS INTEGER ) END * - + 34 * - - CAST ( + - 45 AS REAL ) + 25 * - CAST ( NULL AS INTEGER ) + NULLIF ( + - COUNT ( * ), + 5 / 99 ) + + 5 - - - 28 * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT + - 58 * + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + - 58 * + + COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT - 3 * - 29 * 22 - - 15 AS col2
----
1929

query I rowsort
SELECT ALL + - ( 99 ) - ( - 3 )
----
-96

query II rowsort
SELECT 47 * + 36 AS col2, - 73
----
1692
-73

query I rowsort
SELECT + 69 * + 13 * 46 col2
----
41262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT - 78 - - 44 + + - 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 78 - - 44 + + - 30 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT 83 DIV 12 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5983
SELECT 83 / 12 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - + MIN( ALL - ( + + 55 ) )
----
55

skipif mysql # not compatible
query I rowsort label-5984
SELECT - + MIN ( ALL - ( + + 55 ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT ALL + NULLIF ( + + 83, - - MIN( + + 64 ) * - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - - 4 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + NULLIF ( + + 83, - - MIN ( + + 64 ) * - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - - 4 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT DISTINCT + 91 DIV - + 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + 91 / - + 93 col0
----
0

query I rowsort
SELECT - 5 * - + 15 + - + 95
----
-20

query I rowsort
SELECT ALL 44 * - - 25
----
1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5989
SELECT 63 / COUNT( 65 ) * - CAST( NULL AS SIGNED ) + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT 63 / COUNT ( 65 ) * - CAST ( NULL AS INTEGER ) + - 13 AS col2
----
NULL

query I rowsort
SELECT + 28 - - ( + - 3 ) + + 41
----
66

query I rowsort
SELECT 55 - - 15 AS col1
----
70

query I rowsort
SELECT ALL 19 * + 49 col2
----
931

onlyif mysql # DIV for integer division: 
query I rowsort label-5993
SELECT 8 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-5993
SELECT 8 / + 96
----
0

query II rowsort
SELECT 84 AS col1, - 28
----
84
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5995
SELECT CASE 56 WHEN 47 * - 69 THEN + - CASE - - CAST( NULL AS DECIMAL ) WHEN - 59 THEN + 13 ELSE NULL END WHEN COUNT( * ) THEN NULL ELSE NULL END * ( - + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT CASE 56 WHEN 47 * - 69 THEN + - CASE - - CAST ( NULL AS REAL ) WHEN - 59 THEN + 13 ELSE NULL END WHEN COUNT ( * ) THEN NULL ELSE NULL END * ( - + 74 ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 75, 34 ) + - 23 - + 90
----
-38

query I rowsort
SELECT 28 + + + 63
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT 48 + + 72 DIV + - 98 + - 68 + + 78 + - - 4 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT 48 + + 72 / + - 98 + - 68 + + 78 + - - 4 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT 73 - CAST( 46 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5999
SELECT 73 - CAST ( 46 AS INTEGER )
----
27

query I rowsort
SELECT ALL 41 + - + 22 + + 87 + + - 77 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6001
SELECT DISTINCT ( 87 ) + - 6 * - 23 - + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT ( 87 ) + - 6 * - 23 - + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT DISTINCT COUNT( * ) * + 25 + + 82 * + COALESCE ( - 96, - 81 ) + + - COUNT( * ) - - 67 + - 72 * - - 47 + NULLIF ( + + 22, - 23 * 89 + - CAST( NULL AS SIGNED ) )
----
-11143

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT COUNT ( * ) * + 25 + + 82 * + COALESCE ( - 96, - 81 ) + + - COUNT ( * ) - - 67 + - 72 * - - 47 + NULLIF ( + + 22, - 23 * 89 + - CAST ( NULL AS INTEGER ) )
----
-11143

query I rowsort
SELECT ALL 99 * 97 * + 11
----
105633

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT COUNT( * ), + 52 AS col0
----
1
52

skipif mysql # not compatible
query II rowsort label-6004
SELECT COUNT ( * ), + 52 AS col0
----
1
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT DISTINCT - SUM( ALL - 11 ) - 94 AS col1, - ( - 40 )
----
-83
40

skipif mysql # not compatible
query II rowsort label-6005
SELECT DISTINCT - SUM ( ALL - 11 ) - 94 AS col1, - ( - 40 )
----
-83
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT - - 10 DIV + - NULLIF ( + 68, + - ( 63 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - - 10 / + - NULLIF ( + 68, + - ( 63 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + 87 * - COALESCE ( - 73, + - COUNT( * ) * - 1 ) AS col2
----
6351

skipif mysql # not compatible
query I rowsort label-6007
SELECT + 87 * - COALESCE ( - 73, + - COUNT ( * ) * - 1 ) AS col2
----
6351

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT ALL - 14 DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 14 / - - 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT COUNT( * ) + + SUM( + - 33 )
----
-32

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( * ) + + SUM ( + - 33 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + COALESCE ( 65, + COUNT( * ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6010
SELECT + COALESCE ( 65, + COUNT ( * ) ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL - - MIN( DISTINCT - - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - - MIN ( DISTINCT - - 32 )
----
32

query I rowsort
SELECT 8 + - 97
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT + 51 * + CAST( - 86 AS SIGNED ) * + 88 - 80 * - 49 * - 59
----
-617248

skipif mysql # not compatible
query I rowsort label-6013
SELECT + 51 * + CAST ( - 86 AS INTEGER ) * + 88 - 80 * - 49 * - 59
----
-617248

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - ( 29 ) * ( + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6014
SELECT - ( 29 ) * ( + COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 76 + ( - 87 ) * COUNT( * ) * - 52 * SUM( + 8 ) * + 86
----
3112436

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 76 + ( - 87 ) * COUNT ( * ) * - 52 * SUM ( + 8 ) * + 86
----
3112436

query I rowsort
SELECT 98 - + + 71
----
27

query I rowsort
SELECT DISTINCT - COALESCE ( - ( - - 74 ), 14 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + 29 * + 98 + - 44 + - 9 * - 4 * + SUM( ALL + 51 ) AS col0
----
4634

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + 29 * + 98 + - 44 + - 9 * - 4 * + SUM ( ALL + 51 ) AS col0
----
4634

query I rowsort
SELECT ALL + ( - 37 ) * ( - 50 ) col1
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + COUNT( * ) + NULLIF ( + 73, - + 47 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6020
SELECT + COUNT ( * ) + NULLIF ( + 73, - + 47 ) AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6021
SELECT ALL + COALESCE ( - ( + - 89 ), 15 DIV 99 ) + COALESCE ( - 71, + 13 * + 37, + 73 + - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + COALESCE ( - ( + - 89 ), 15 / 99 ) + COALESCE ( - 71, + 13 * + 37, + 73 + - COUNT ( * ) )
----
18

query I rowsort
SELECT - + 32 + 89
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT - - 63 * - CASE + 24 WHEN + - 32 * + ( + + 89 ) + 58 - - 84 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - COALESCE ( - 20, - 96 * 5 ) + - - 45 * + + 55 * - COUNT( ALL CAST( + 89 AS SIGNED ) ) END + + 22
----
154687

skipif mysql # not compatible
query I rowsort label-6023
SELECT - - 63 * - CASE + 24 WHEN + - 32 * + ( + + 89 ) + 58 - - 84 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - COALESCE ( - 20, - 96 * 5 ) + - - 45 * + + 55 * - COUNT ( ALL CAST ( + 89 AS INTEGER ) ) END + + 22
----
154687

onlyif mysql # aggregate syntax: 
query II rowsort label-6024
SELECT + - 57 + - ( 79 ) col1, COUNT( * ) * + 42 AS col2
----
-136
42

skipif mysql # not compatible
query II rowsort label-6024
SELECT + - 57 + - ( 79 ) col1, COUNT ( * ) * + 42 AS col2
----
-136
42

query I rowsort
SELECT ALL + ( - - 96 ) + - 20 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT - 95 + + 12 + + - 49 + + - 80 * + + 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 95 + + 12 + + - 49 + + - 80 * + + 50 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 54 * - 6
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT - MIN( CAST( + - 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-6028
SELECT - MIN ( CAST ( + - 40 AS INTEGER ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT + ( + - COUNT( DISTINCT + + 94 ) ) + + 94 col0
----
93

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT + ( + - COUNT ( DISTINCT + + 94 ) ) + + 94 col0
----
93

query I rowsort
SELECT + 41 + 87
----
128

query I rowsort
SELECT DISTINCT 64 * - 89
----
-5696

query I rowsort
SELECT - COALESCE ( + - 73, + 89 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT + 87 + + 70 - 1 * - CAST( + - COALESCE ( + 50, - 47, + COUNT( - 2 ) * COALESCE ( 56, - - 32 ) + - - ( - COUNT( * ) ) + - - 26 ) AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-6033
SELECT + 87 + + 70 - 1 * - CAST ( + - COALESCE ( + 50, - 47, + COUNT ( - 2 ) * COALESCE ( 56, - - 32 ) + - - ( - COUNT ( * ) ) + - - 26 ) AS INTEGER )
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT DISTINCT MAX( ( + 75 ) ) * + + 26 - + + 89 + - + 42 + - - 83 * + 10 * - - ( - + 10 ) + ( 46 ) DIV + + 36 + + 97 * - 29 - + ( + - 59 )
----
-9234

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT MAX ( ( + 75 ) ) * + + 26 - + + 89 + - + 42 + - - 83 * + 10 * - - ( - + 10 ) + ( 46 ) / + + 36 + + 97 * - 29 - + ( + - 59 )
----
-9234

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT 5 * - + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT 5 * - + COUNT ( * ) AS col1
----
-5

query I rowsort
SELECT ALL - 18 * + 60
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT - + 11 DIV - 79 + + 51 + - - ( + + ( - - COUNT( * ) ) ) + 17
----
69

skipif mysql # not compatible
query I rowsort label-6037
SELECT - + 11 / - 79 + + 51 + - - ( + + ( - - COUNT ( * ) ) ) + 17
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT - MAX( + + 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6038
SELECT - MAX ( + + 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT + + AVG ( ALL - - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT + + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT ALL + - 77 AS col0, + COUNT( * ) + + - 33
----
-77
-32

skipif mysql # not compatible
query II rowsort label-6040
SELECT ALL + - 77 AS col0, + COUNT ( * ) + + - 33
----
-77
-32

query I rowsort
SELECT DISTINCT 81 * 33
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT - 21 DIV COUNT( * ) + + 34 col2
----
13

skipif mysql # not compatible
query I rowsort label-6042
SELECT - 21 / COUNT ( * ) + + 34 col2
----
13

query II rowsort
SELECT COALESCE ( - 54, 19, + - 27 ) AS col2, 89 + - 46 AS col1
----
-54
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6044
SELECT - + 53 DIV + 30 col2, - 56 + COUNT( * ) AS col1
----
-1
-55

skipif mysql # not compatible
query II rowsort label-6044
SELECT - + 53 / + 30 col2, - 56 + COUNT ( * ) AS col1
----
-1
-55

query I rowsort
SELECT ALL - 46 * + + 74 + - 90
----
-3494

query II rowsort
SELECT + 4, - 41 AS col0
----
4
-41

query II rowsort
SELECT + 54 AS col1, + 4 + + 59 col0
----
54
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT - + CAST( - 13 AS SIGNED ) DIV - NULLIF ( - - 91, - - COALESCE ( + + 8, + COUNT( * ) + + + 0 ) DIV + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - + CAST ( - 13 AS INTEGER ) / - NULLIF ( - - 91, - - COALESCE ( + + 8, + COUNT ( * ) + + + 0 ) / + 3 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT - 23 DIV + COALESCE ( + + 79, + 4, - 75 + - AVG ( + 40 ) + - 48 + + 5 ) + 62
----
62

skipif mysql # not compatible
query I rowsort label-6049
SELECT - 23 / + COALESCE ( + + 79, + 4, - 75 + - AVG ( + 40 ) + - 48 + + 5 ) + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - COALESCE ( COUNT( * ), + 3 * + + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-6050
SELECT - COALESCE ( COUNT ( * ), + 3 * + + 28 )
----
-1

query I rowsort
SELECT ALL + 9 * - + 52 + + 67
----
-401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT - + 52 * + 23 * + - COALESCE ( + - 91, + 0, - 99 ) + - 67 DIV + + 69 * + COUNT( * ) - 15 + ( - 54 ) AS col2
----
-108905

skipif mysql # not compatible
query I rowsort label-6052
SELECT - + 52 * + 23 * + - COALESCE ( + - 91, + 0, - 99 ) + - 67 / + + 69 * + COUNT ( * ) - 15 + ( - 54 ) AS col2
----
-108905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT - 64 * + ( - - 83 ) * - COUNT( * ) * CAST( - CAST( - - 69 AS SIGNED ) AS SIGNED ) AS col2
----
-366528

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - 64 * + ( - - 83 ) * - COUNT ( * ) * CAST ( - CAST ( - - 69 AS INTEGER ) AS INTEGER ) AS col2
----
-366528

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL - SUM( ALL - 42 ) + - 64
----
-22

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - SUM ( ALL - 42 ) + - 64
----
-22

query I rowsort
SELECT ALL + 92 + + ( + 43 ) * + 77 AS col1
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - 12 * COUNT( * ) * - 1
----
12

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 12 * COUNT ( * ) * - 1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT DISTINCT ( + + CAST( - ( - 56 ) AS SIGNED ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT ( + + CAST ( - ( - 56 ) AS INTEGER ) ) AS col1
----
56

query I rowsort
SELECT - 64 + 82 * 95 AS col0
----
7726

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT - SUM( ALL - 13 ), + 86 AS col0
----
13
86

skipif mysql # not compatible
query II rowsort label-6059
SELECT - SUM ( ALL - 13 ), + 86 AS col0
----
13
86

query II rowsort
SELECT ALL ( + 93 ) AS col1, 66 AS col1
----
93
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - COUNT( * ) * - - COUNT( - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-6061
SELECT - COUNT ( * ) * - - COUNT ( - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL 46 * - 95 * + MAX( DISTINCT ( + 40 ) ) * + 77 AS col1
----
-13459600

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL 46 * - 95 * + MAX ( DISTINCT ( + 40 ) ) * + 77 AS col1
----
-13459600

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL ( + 62 ) * - + 6 + + COUNT( * )
----
-371

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL ( + 62 ) * - + 6 + + COUNT ( * )
----
-371

query I rowsort
SELECT + ( - + 3 ) + + 75 * + 93 * + 44
----
306897

query I rowsort
SELECT + - 92 * + 41
----
-3772

query I rowsort
SELECT ALL - 86 * + 70
----
-6020

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - - 81 + + MIN( DISTINCT - 16 ) - - + 21 * - + COUNT( * ) * + COUNT( * ) + + 41
----
85

skipif mysql # not compatible
query I rowsort label-6067
SELECT - - 81 + + MIN ( DISTINCT - 16 ) - - + 21 * - + COUNT ( * ) * + COUNT ( * ) + + 41
----
85

query I rowsort
SELECT - 22 * + ( - - 64 ) * + 42 + - 64 AS col2
----
-59200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT + + COALESCE ( - MIN( DISTINCT - - CAST( - 28 AS SIGNED ) ), + 84 + - + 0, 44 ) * - - ( - 41 )
----
-1148

skipif mysql # not compatible
query I rowsort label-6069
SELECT + + COALESCE ( - MIN ( DISTINCT - - CAST ( - 28 AS INTEGER ) ), + 84 + - + 0, 44 ) * - - ( - 41 )
----
-1148

query I rowsort
SELECT - + 6 + 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - - COUNT( * ) * - COUNT( * ) + - + 83 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6071
SELECT - - COUNT ( * ) * - COUNT ( * ) + - + 83 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL + + ( - SUM( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + + ( - SUM ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT + + 56 * + NULLIF ( + + MAX( DISTINCT + - 65 ), + 52 )
----
-3640

skipif mysql # not compatible
query I rowsort label-6073
SELECT + + 56 * + NULLIF ( + + MAX ( DISTINCT + - 65 ), + 52 )
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6074
SELECT COALESCE ( - 44, - - 1 ) * - 18 - + 41 * + + 69 + + SUM( + NULLIF ( + CAST( 82 AS SIGNED ), 83 ) ) + - 65 - CAST( COUNT( * ) AS SIGNED ) DIV 29 AS col0
----
-2020

skipif mysql # not compatible
query I rowsort label-6074
SELECT COALESCE ( - 44, - - 1 ) * - 18 - + 41 * + + 69 + + SUM ( + NULLIF ( + CAST ( 82 AS INTEGER ), 83 ) ) + - 65 - CAST ( COUNT ( * ) AS INTEGER ) / 29 AS col0
----
-2020

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + 80 - 95 * COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6075
SELECT + 80 - 95 * COUNT ( * ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL - - ( - CAST( 22 AS SIGNED ) ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - - ( - CAST ( 22 AS INTEGER ) ) col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6077
SELECT ALL + COUNT( * ) + + 65 AS col1, 58 * + 80 * - - 73 + - 77 + 52 + - + 67 - + + 90 * - 80
----
66
345828

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL + COUNT ( * ) + + 65 AS col1, 58 * + 80 * - - 73 + - 77 + 52 + - + 67 - + + 90 * - 80
----
66
345828

query I rowsort
SELECT - - 5 * + 22 + - 79 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + COALESCE ( + 70, - + COUNT( * ) * - MIN( ALL - 24 ) )
----
70

skipif mysql # not compatible
query I rowsort label-6079
SELECT + COALESCE ( + 70, - + COUNT ( * ) * - MIN ( ALL - 24 ) )
----
70

query I rowsort
SELECT 40 + 94 + + + 42 AS col2
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT ALL 0 * + 3 DIV - 11 * - 63 - - + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL 0 * + 3 / - 11 * - 63 - - + 60 AS col2
----
60

query I rowsort
SELECT - + 91 * + - 55 * - - 23 + - 85 AS col2
----
115030

onlyif mysql # aggregate syntax: 
query II rowsort label-6083
SELECT ALL COUNT( * ) + 18 col0, - ( - - 96 ) AS col2
----
19
-96

skipif mysql # not compatible
query II rowsort label-6083
SELECT ALL COUNT ( * ) + 18 col0, - ( - - 96 ) AS col2
----
19
-96

query I rowsort
SELECT DISTINCT 95 + + - 96
----
-1

query I rowsort
SELECT ALL - 60 + - 40
----
-100

query I rowsort
SELECT 63 + 73 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT 72 + CASE + NULLIF ( 24, - ( 83 ) + - 97 + + 5 + 97 * - 26 * + + 92 * + 14 ) WHEN - AVG ( DISTINCT 53 ) THEN - - ( - - 90 ) + - 10 + + - COUNT( * ) + + + 7 END + - MIN( ALL 40 ) + + 59 + - 72 * - COALESCE ( 0, - - 25 + + - 60, + - 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT 72 + CASE + NULLIF ( 24, - ( 83 ) + - 97 + + 5 + 97 * - 26 * + + 92 * + 14 ) WHEN - AVG ( DISTINCT 53 ) THEN - - ( - - 90 ) + - 10 + + - COUNT ( * ) + + + 7 END + - MIN ( ALL 40 ) + + 59 + - 72 * - COALESCE ( 0, - - 25 + + - 60, + - 74 ) AS col0
----
NULL

query I rowsort
SELECT 78 * 26
----
2028

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT DISTINCT 24 DIV - ( - 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT 24 / - ( - 40 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL - 61 - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - 61 - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6091
SELECT 94 AS col1, CAST( NULL AS DECIMAL )
----
94
NULL

skipif mysql # not compatible
query II rowsort label-6091
SELECT 94 AS col1, CAST ( NULL AS REAL )
----
94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT ALL 75, + SUM( - - 38 ) AS col2
----
75
38

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL 75, + SUM ( - - 38 ) AS col2
----
75
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT 68 + + CAST( NULL AS SIGNED ) * + 58 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT 68 + + CAST ( NULL AS INTEGER ) * + 58 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT - 28 AS col2, - ( + - COUNT( * ) ) * 22 + 86 * + 7
----
-28
624

skipif mysql # not compatible
query II rowsort label-6094
SELECT - 28 AS col2, - ( + - COUNT ( * ) ) * 22 + 86 * + 7
----
-28
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT 78 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT 78 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT - COUNT( * ) * CASE + AVG ( - + 53 ) WHEN - 89 THEN - 15 WHEN - CASE 70 WHEN 51 THEN - + 77 END / COUNT( DISTINCT 99 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT - COUNT ( * ) * CASE + AVG ( - + 53 ) WHEN - 89 THEN - 15 WHEN - CASE 70 WHEN 51 THEN - + 77 END / COUNT ( DISTINCT 99 ) THEN NULL END col1
----
NULL

query II rowsort
SELECT ALL 39 AS col0, COALESCE ( + + 24, ( 91 ) )
----
39
24

query II rowsort
SELECT DISTINCT 90 AS col2, 7
----
90
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL + NULLIF ( + 94, + - 78 + MIN( - 79 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL + NULLIF ( + 94, + - 78 + MIN ( - 79 ) ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT - + CAST( + + 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6100
SELECT - + CAST ( + + 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT 27 * - - 38 + + + COUNT( * ) + + 67
----
1094

skipif mysql # not compatible
query I rowsort label-6101
SELECT 27 * - - 38 + + + COUNT ( * ) + + 67
----
1094

query I rowsort
SELECT - 15 * + 58 AS col1
----
-870

query I rowsort
SELECT + 20 - + - 50 * 19 + - CASE - - 73 WHEN + - 87 THEN NULL ELSE + - 70 END col0
----
1040

query II rowsort
SELECT ALL - + 3 col1, 49 + 66
----
-3
115

query I rowsort
SELECT ALL + 30 * + + 24
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6106
SELECT DISTINCT - + COUNT( * ) + + ( - 91 ) * - MIN( ALL + 50 ) + - - 2 - - 26 DIV + 33 AS col1
----
4551

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - + COUNT ( * ) + + ( - 91 ) * - MIN ( ALL + 50 ) + - - 2 - - 26 / + 33 AS col1
----
4551

query II rowsort
SELECT + + 32, 92 AS col2
----
32
92

query II rowsort
SELECT + 39 AS col1, 26
----
39
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT MAX( DISTINCT + - 64 ) * + 8 AS col2, 98 * 26 + + MIN( DISTINCT - 12 ) AS col2
----
-512
2536

skipif mysql # not compatible
query II rowsort label-6109
SELECT MAX ( DISTINCT + - 64 ) * + 8 AS col2, 98 * 26 + + MIN ( DISTINCT - 12 ) AS col2
----
-512
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + + NULLIF ( + - 59, - 32 * + MAX( + 99 ) + 47 + - - 78 )
----
-59

skipif mysql # not compatible
query I rowsort label-6110
SELECT + + NULLIF ( + - 59, - 32 * + MAX ( + 99 ) + 47 + - - 78 )
----
-59

query II rowsort
SELECT + + 9, - 3 * - - ( 31 ) AS col2
----
9
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + - SUM( + 96 ) * - 58 + - 29
----
5539

skipif mysql # not compatible
query I rowsort label-6112
SELECT + - SUM ( + 96 ) * - 58 + - 29
----
5539

query II rowsort
SELECT DISTINCT - 96 AS col0, 72 * - 83
----
-96
-5976

onlyif mysql # aggregate syntax: 
query II rowsort label-6114
SELECT ALL - - 89 col0, ( + - COUNT( 96 ) )
----
89
-1

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL - - 89 col0, ( + - COUNT ( 96 ) )
----
89
-1

query I rowsort
SELECT DISTINCT - ( 25 ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT DISTINCT - CAST( + 41 AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL 11 - + ( - + CAST( NULL AS SIGNED ) ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 11 - + ( - + CAST ( NULL AS INTEGER ) ) / - 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6118
SELECT - COUNT( * ), - 11 DIV 45 col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-6118
SELECT - COUNT ( * ), - 11 / 45 col1
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL - CASE COUNT( * ) WHEN - 78 * - ( + 47 ) / + CAST( NULL AS SIGNED ) / - NULLIF ( - 21, + MIN( DISTINCT + + 77 ) + 16 / - 77 * - 87 + + 41 ) + 50 + MAX( ALL - 28 ) - - + 29 THEN NULL WHEN - 43 * - + NULLIF ( + + 3, + 33 ) + - - 42 + - + 32 * - + 61 / + + 19 THEN + 67 * - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - CASE COUNT ( * ) WHEN - 78 * - ( + 47 ) / + CAST ( NULL AS INTEGER ) / - NULLIF ( - 21, + MIN ( DISTINCT + + 77 ) + 16 / - 77 * - 87 + + 41 ) + 50 + MAX ( ALL - 28 ) - - + 29 THEN NULL WHEN - 43 * - + NULLIF ( + + 3, + 33 ) + - - 42 + - + 32 * - + 61 / + + 19 THEN + 67 * - 22 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 36 * 38 AS col2, + 41
----
1368
41

query I rowsort
SELECT ALL 35 * 53
----
1855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT CASE 13 WHEN + - 93 THEN NULL ELSE CAST( + + COALESCE ( + - 58, + - 50 ) AS SIGNED ) * + - 69 + + 59 END + 46
----
4107

skipif mysql # not compatible
query I rowsort label-6122
SELECT CASE 13 WHEN + - 93 THEN NULL ELSE CAST ( + + COALESCE ( + - 58, + - 50 ) AS INTEGER ) * + - 69 + + 59 END + 46
----
4107

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL 47 * 99 * COUNT( * ) AS col1
----
4653

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL 47 * 99 * COUNT ( * ) AS col1
----
4653

query I rowsort
SELECT ALL 41 * + + 74
----
3034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT CAST( 16 AS SIGNED ) - + 1
----
15

skipif mysql # not compatible
query I rowsort label-6125
SELECT CAST ( 16 AS INTEGER ) - + 1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6126
SELECT ALL + 57 DIV + MIN( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL + 57 / + MIN ( + 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT 7 - 5 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6127
SELECT 7 - 5 * + COUNT ( * )
----
2

query I rowsort
SELECT 13 * 41 AS col0
----
533

query I rowsort
SELECT 16 + - 65 + 38
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - COUNT( ALL + 75 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6130
SELECT - COUNT ( ALL + 75 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6131
SELECT - 4 + + 71, 27 DIV 85 + - 5 AS col0
----
67
-5

skipif mysql # not compatible
query II rowsort label-6131
SELECT - 4 + + 71, 27 / 85 + - 5 AS col0
----
67
-5

query I rowsort
SELECT - 13 * - 71
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL - ( - 54 ) + - SUM( DISTINCT + 33 )
----
21

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - ( - 54 ) + - SUM ( DISTINCT + 33 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL ( 72 ) + - - 57 - - - 32 + - + COALESCE ( - 73, 59, + - 15 ) * - 64 * COUNT( * ) * 55 + - 24
----
-256887

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL ( 72 ) + - - 57 - - - 32 + - + COALESCE ( - 73, 59, + - 15 ) * - 64 * COUNT ( * ) * 55 + - 24
----
-256887

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT COALESCE ( + - 50, - MIN( - + 34 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-6135
SELECT COALESCE ( + - 50, - MIN ( - + 34 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL - COUNT( * ) + + 9 - 79 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - COUNT ( * ) + + 9 - 79 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL + NULLIF ( COUNT( * ), + 28 ) + - - 49 - - 11 + COUNT( * ) * 81 * - 81 AS col1
----
-6500

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + NULLIF ( COUNT ( * ), + 28 ) + - - 49 - - 11 + COUNT ( * ) * 81 * - 81 AS col1
----
-6500

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT - ( + COALESCE ( + 24, - + COUNT( * ) * + 67, + - 35 - 79 * - 51 * + + 45 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6138
SELECT - ( + COALESCE ( + 24, - + COUNT ( * ) * + 67, + - 35 - 79 * - 51 * + + 45 ) ) AS col1
----
-24

query I rowsort
SELECT ALL - 43 + + 27 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - COUNT( * ) + - + 90 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6140
SELECT - COUNT ( * ) + - + 90 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 88 * - 91 + + + COUNT( * ) - 68 * 31
----
-10115

skipif mysql # not compatible
query I rowsort label-6141
SELECT 88 * - 91 + + + COUNT ( * ) - 68 * 31
----
-10115

query I rowsort
SELECT - 3 * - 77 + 2 AS col0
----
233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - 46 * - + COUNT( * ) + + NULLIF ( - + CASE - - COUNT( * ) WHEN - 41 THEN + MIN( ALL - 65 ) + 9 * + 69 WHEN + COUNT( DISTINCT + 56 ) THEN 79 * + 35 ELSE MAX( DISTINCT - + 13 ) * - + 12 - + + 8 + COALESCE ( + 99, + - ( - + 40 ) * 88 + + + COALESCE ( + MIN( 74 ), ( 88 ) + + 88 * - 57 * - 81, + 66, - 6 ), + - 46 ) DIV + 14 END, + AVG ( 30 ) * + 21 )
----
-2719

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 46 * - + COUNT ( * ) + + NULLIF ( - + CASE - - COUNT ( * ) WHEN - 41 THEN + MIN ( ALL - 65 ) + 9 * + 69 WHEN + COUNT ( DISTINCT + 56 ) THEN 79 * + 35 ELSE MAX ( DISTINCT - + 13 ) * - + 12 - + + 8 + COALESCE ( + 99, + - ( - + 40 ) * 88 + + + COALESCE ( + MIN ( 74 ), ( 88 ) + + 88 * - 57 * - 81, + 66, - 6 ), + - 46 ) / + 14 END, + AVG ( 30 ) * + 21 )
----
-2719

query I rowsort
SELECT ALL + 25 * 32 - - + 42 AS col2
----
842

query I rowsort
SELECT ALL + 61 * + 51 + + 1 - - COALESCE ( + 40, - 76 )
----
3152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6146
SELECT - 33 / - ( 58 ) * CAST( NULL AS SIGNED ) - - 91 * - 57 - - + COALESCE ( 34, + 47 - - - ( + COALESCE ( + ( + 15 ), + + 92 * + 35 / + CAST( NULL AS SIGNED ), - 38 ) ) + 94, - COUNT( * ) ) AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6146
SELECT - 33 / - ( 58 ) * CAST ( NULL AS INTEGER ) - - 91 * - 57 - - + COALESCE ( 34, + 47 - - - ( + COALESCE ( + ( + 15 ), + + 92 * + 35 / + CAST ( NULL AS INTEGER ), - 38 ) ) + 94, - COUNT ( * ) ) AS col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT - + 64 * + 32
----
-2048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT ALL + 58 DIV - ( + 1 ) * COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + 58 / - ( + 1 ) * COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT - - COUNT( * ) + - + 77 * + 88 * + 45 + - 30
----
-304949

skipif mysql # not compatible
query I rowsort label-6149
SELECT - - COUNT ( * ) + - + 77 * + 88 * + 45 + - 30
----
-304949

query I rowsort
SELECT DISTINCT 18 * - 38 * 8
----
-5472

query I rowsort
SELECT DISTINCT + 15 * 0 AS col2
----
0

query I rowsort
SELECT - 13 * - CASE 73 WHEN + 13 THEN + 2 WHEN 6 * - 18 * + 77 THEN NULL END
----
NULL

query I rowsort
SELECT - 71 * + - ( - 98 )
----
-6958

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6154
SELECT ( + CAST( NULL AS SIGNED ) ) * - 0 + - 87 + - 68 + - - CAST( NULL AS DECIMAL ) * - 98 * + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 0 + - 87 + - 68 + - - CAST ( NULL AS REAL ) * - 98 * + + 68 AS col2
----
NULL

query I rowsort
SELECT - 89 + - - CASE + 44 WHEN - 78 THEN + 59 END + 56 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + 95 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 95 / - 40
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - COUNT( + 85 ) + + COUNT( * ) + 57 + 90 + - 70 + - + 45
----
32

skipif mysql # not compatible
query I rowsort label-6157
SELECT - COUNT ( + 85 ) + + COUNT ( * ) + 57 + 90 + - 70 + - + 45
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6158
SELECT ALL + 7, - 62 / 71 * + CAST( NULL AS SIGNED ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-6158
SELECT ALL + 7, - 62 / 71 * + CAST ( NULL AS INTEGER ) AS col2
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT + 43 * - 1 * + MAX( - + 90 )
----
3870

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + 43 * - 1 * + MAX ( - + 90 )
----
3870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT - ( + 27 ) * 15 + + 71 - 58 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT - ( + 27 ) * 15 + + 71 - 58 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + COUNT( 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6161
SELECT + COUNT ( 0 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( + + 49 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6163
SELECT - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + 5 * + 97 AS col2
----
485

query II rowsort
SELECT 49, - 50 AS col1
----
49
-50

query I rowsort
SELECT + 69 + + - 8 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL 51 + + COUNT( ALL 85 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL 51 + + COUNT ( ALL 85 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 16 + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT COUNT( DISTINCT 80 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT COUNT ( DISTINCT 80 ) col1
----
1

query I rowsort
SELECT DISTINCT 45 + 47 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT + 15 + + SUM( DISTINCT + 65 )
----
80

skipif mysql # not compatible
query I rowsort label-6171
SELECT + 15 + + SUM ( DISTINCT + 65 )
----
80

query I rowsort
SELECT ALL COALESCE ( - 2, + 50, + 21 * 88 ) + + 36
----
34

query I rowsort
SELECT ALL 80 + 14
----
94

query I rowsort
SELECT + 85 * 69 AS col0
----
5865

query I rowsort
SELECT - 91 + 3 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT DISTINCT 15 DIV ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT 15 / ( 29 )
----
0

query I rowsort
SELECT - 44 * 5 AS col1
----
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT ALL - 92 - 14 DIV 82 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 92 - 14 / 82 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT + CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-6179
SELECT + CAST ( 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT - COALESCE ( - 63, + 65, + COALESCE ( + MIN( + 21 ), + 44 DIV - 98 + 11 ) ) * 33
----
2079

skipif mysql # not compatible
query I rowsort label-6180
SELECT - COALESCE ( - 63, + 65, + COALESCE ( + MIN ( + 21 ), + 44 / - 98 + 11 ) ) * 33
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT + 19 * MIN( ALL + 62 * 54 ) AS col1
----
63612

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + 19 * MIN ( ALL + 62 * 54 ) AS col1
----
63612

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6182
SELECT DISTINCT CAST( 60 AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT CAST ( 60 AS REAL ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 29 * 46 AS col2
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + CAST( - 13 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6184
SELECT + CAST ( - 13 AS INTEGER ) AS col0
----
-13

query I rowsort
SELECT + 48 * - 34 AS col0
----
-1632

query I rowsort
SELECT - 54 * 54
----
-2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL + COALESCE ( - CASE - 2 WHEN + 90 + 87 THEN NULL WHEN 11 THEN NULL WHEN - NULLIF ( CAST( + 75 AS SIGNED ), 4 * 47 ) * + 23 THEN COUNT( * ) WHEN 50 + 68 THEN NULL ELSE NULL END, 29, 55 * - COUNT( * ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL + COALESCE ( - CASE - 2 WHEN + 90 + 87 THEN NULL WHEN 11 THEN NULL WHEN - NULLIF ( CAST ( + 75 AS INTEGER ), 4 * 47 ) * + 23 THEN COUNT ( * ) WHEN 50 + 68 THEN NULL ELSE NULL END, 29, 55 * - COUNT ( * ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - 18 * COALESCE ( + SUM( 6 ) * - 10, - 28 )
----
1080

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 18 * COALESCE ( + SUM ( 6 ) * - 10, - 28 )
----
1080

query I rowsort
SELECT ( ( - 58 ) )
----
-58

query I rowsort
SELECT DISTINCT - 57 * 18 AS col1
----
-1026

query I rowsort
SELECT ALL + NULLIF ( - 36, - 75 ) AS col0
----
-36

query I rowsort
SELECT - 82 + - 59 AS col1
----
-141

query I rowsort
SELECT - 88 * 56
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL ( 40 ) * 2 + 96 * COUNT( * ) AS col1
----
176

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL ( 40 ) * 2 + 96 * COUNT ( * ) AS col1
----
176

query I rowsort
SELECT NULLIF ( 34, 77 ) AS col0
----
34

query I rowsort
SELECT + NULLIF ( 33, 26 + + AVG ( - 96 ) ) AS col1
----
33

query I rowsort
SELECT COALESCE ( 63, + 77 + + 60 ) col2
----
63

query I rowsort
SELECT ALL - 5 * - NULLIF ( - 83, + ( 77 ) * ( 24 ) ) + - 16 AS col0
----
-431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT COALESCE ( - 17, 20 DIV + CASE 60 WHEN - COUNT( - 22 ) THEN + 55 END ) * - 18 + 99 * 91 AS col2
----
9315

skipif mysql # not compatible
query I rowsort label-6199
SELECT COALESCE ( - 17, 20 / + CASE 60 WHEN - COUNT ( - 22 ) THEN + 55 END ) * - 18 + 99 * 91 AS col2
----
9315

query I rowsort
SELECT + 58 * + 42 AS col0
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT + 13 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + 13 * COUNT ( * )
----
13

query I rowsort
SELECT ALL + 95 * 65 AS col2
----
6175

query I rowsort
SELECT ALL - 40 + + 4
----
-36

query I rowsort
SELECT DISTINCT + - ( 71 ) + - 68 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - NULLIF ( CASE MAX( ALL - 53 ) WHEN - 10 * 93 THEN - ( - 16 ) WHEN + 21 * COALESCE ( - 15 * 82, - 72 ) THEN NULL WHEN 32 * 98 THEN NULL ELSE NULL END, + ( 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT - NULLIF ( CASE MAX ( ALL - 53 ) WHEN - 10 * 93 THEN - ( - 16 ) WHEN + 21 * COALESCE ( - 15 * 82, - 72 ) THEN NULL WHEN 32 * 98 THEN NULL ELSE NULL END, + ( 83 ) )
----
NULL

query I rowsort
SELECT 51 + + 57
----
108

query I rowsort
SELECT ALL + + 75 + 31 col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6208
SELECT - - CASE 18 WHEN + 58 + 43 THEN - 10 WHEN + SUM( + 50 ) THEN COALESCE ( 86, - COUNT( CAST( NULL AS DECIMAL ) ) + + 61 * 94 ) + + 96 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT - - CASE 18 WHEN + 58 + 43 THEN - 10 WHEN + SUM ( + 50 ) THEN COALESCE ( 86, - COUNT ( CAST ( NULL AS REAL ) ) + + 61 * 94 ) + + 96 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 84 + + 66 * + ( - 91 )
----
-5922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT + 58 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 58 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 52 * - 63 AS col0
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT CAST( + ( ( - COUNT( * ) ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT CAST ( + ( ( - COUNT ( * ) ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - 25 * + SUM( DISTINCT - 22 ) AS col0
----
550

skipif mysql # not compatible
query I rowsort label-6214
SELECT - 25 * + SUM ( DISTINCT - 22 ) AS col0
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT MAX ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + COUNT( * ) + COUNT( * ) * - 82 col2
----
-81

skipif mysql # not compatible
query I rowsort label-6216
SELECT + COUNT ( * ) + COUNT ( * ) * - 82 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT COUNT( * ) * - 1 * 56 + + 36 * - 6
----
-272

skipif mysql # not compatible
query I rowsort label-6217
SELECT COUNT ( * ) * - 1 * 56 + + 36 * - 6
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT DISTINCT 89 DIV - - 75
----
1

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT 89 / - - 75
----
1

query I rowsort
SELECT ALL 24 + - 7
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT + COUNT( * ) DIV + 8 + MIN( DISTINCT - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6220
SELECT + COUNT ( * ) / + 8 + MIN ( DISTINCT - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT - MIN( + + 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - MIN ( + + 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6222
SELECT ALL - 71 + + COALESCE ( 98, 2 DIV + 49 + - MIN( DISTINCT 21 ) DIV 16 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - 71 + + COALESCE ( 98, 2 / + 49 + - MIN ( DISTINCT 21 ) / 16 ) AS col0
----
27

query I rowsort
SELECT ALL 18 * + - 31 AS col1
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - ( COUNT( * ) ) * COUNT( * ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-6224
SELECT - ( COUNT ( * ) ) * COUNT ( * ) + 97
----
96

query I rowsort
SELECT DISTINCT 53 * - 65 * 33 col1
----
-113685

query I rowsort
SELECT DISTINCT + 26 + + 26
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT 87 + - COALESCE ( 88, + MIN( - 39 ) + - 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6227
SELECT 87 + - COALESCE ( 88, + MIN ( - 39 ) + - 14 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + COUNT( * ) + - + 55 + 61 * 57 col2
----
3423

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + COUNT ( * ) + - + 55 + 61 * 57 col2
----
3423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT CAST( + 4 AS SIGNED ) + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6229
SELECT CAST ( + 4 AS INTEGER ) + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT 32 + + 14 + + 86 AS col2
----
132

query I rowsort
SELECT DISTINCT 17 * + 62
----
1054

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT 6 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT 6 / - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL NULLIF ( MAX( ( - ( + 93 ) ) ), + 26 ) + + 5
----
-88

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL NULLIF ( MAX ( ( - ( + 93 ) ) ), + 26 ) + + 5
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT 69 + + COUNT( * ) * 17 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT 69 + + COUNT ( * ) * 17 AS col2
----
86

query I rowsort
SELECT 19 + 94
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 39 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 39 + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT + COUNT( ( + 21 ) ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT + COUNT ( ( + 21 ) ) / - 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6238
SELECT CAST( 86 AS SIGNED ) * 86 col2
----
7396

skipif mysql # not compatible
query I rowsort label-6238
SELECT CAST ( 86 AS INTEGER ) * 86 col2
----
7396

query I rowsort
SELECT DISTINCT + 64 - + 32 + - 73
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT + + COUNT( 24 ) * 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + + COUNT ( 24 ) * 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL - + ( 3 ) * - ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - + ( 3 ) * - ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - SUM( + 33 ) * 53
----
-1749

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - SUM ( + 33 ) * 53
----
-1749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT + + 6 - - 90 - SUM( ALL + 47 ) * - CAST( + 82 AS SIGNED )
----
3950

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + + 6 - - 90 - SUM ( ALL + 47 ) * - CAST ( + 82 AS INTEGER )
----
3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6244
SELECT MAX( DISTINCT + - CAST( CASE - ( CAST( NULL AS DECIMAL ) ) WHEN 38 + - 11 THEN NULL WHEN 95 THEN + 93 + + 86 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT MAX ( DISTINCT + - CAST ( CASE - ( CAST ( NULL AS REAL ) ) WHEN 38 + - 11 THEN NULL WHEN 95 THEN + 93 + + 86 END AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 89 * + 53 + - 46 AS col0
----
4671

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6246
SELECT CAST( NULL AS DECIMAL ) * - 42 * 1 + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT CAST ( NULL AS REAL ) * - 42 * 1 + 51 AS col2
----
NULL

query I rowsort
SELECT - + CASE 5 WHEN 60 THEN 49 ELSE + 45 * 83 END AS col0
----
-3735

query I rowsort
SELECT DISTINCT + 46 * - 85 * 87 + - 5
----
-340175

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT - MIN( ALL - + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT - MIN ( ALL - + 62 ) AS col2
----
62

query I rowsort
SELECT ALL - 2 + + + 65 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT + 0 AS col0, 54 + - ( - COUNT( * ) ) + + 88
----
0
143

skipif mysql # not compatible
query II rowsort label-6251
SELECT + 0 AS col0, 54 + - ( - COUNT ( * ) ) + + 88
----
0
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL 41 * - COUNT( * ) + + 36 + COUNT( DISTINCT - 64 )
----
-4

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL 41 * - COUNT ( * ) + + 36 + COUNT ( DISTINCT - 64 )
----
-4

query I rowsort
SELECT ALL - 43 * + 38 * - 47 + - 98 AS col1
----
76700

query I rowsort
SELECT ALL 84 * + + 32 + + 72 * 9
----
3336

query I rowsort
SELECT 71 * + + 62
----
4402

query I rowsort
SELECT 78 - + NULLIF ( 80, 4 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT + 66 AS col2, - 74 + - COUNT( * ) - + 63
----
66
-138

skipif mysql # not compatible
query II rowsort label-6257
SELECT + 66 AS col2, - 74 + - COUNT ( * ) - + 63
----
66
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT SUM( - + 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6258
SELECT SUM ( - + 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT SUM( + 40 ) * + 70 * COUNT( DISTINCT 35 * 77 )
----
2800

skipif mysql # not compatible
query I rowsort label-6259
SELECT SUM ( + 40 ) * + 70 * COUNT ( DISTINCT 35 * 77 )
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ( + COUNT( * ) ) * 48 * - 5 + 6
----
-234

skipif mysql # not compatible
query I rowsort label-6260
SELECT ( + COUNT ( * ) ) * 48 * - 5 + 6
----
-234

query I rowsort
SELECT + NULLIF ( 95, 8 ) AS col0
----
95

query II rowsort
SELECT ALL - 68 AS col1, ( + + 56 ) + ( 95 )
----
-68
151

query I rowsort
SELECT ALL 34 * + - 52 + + 36 AS col2
----
-1732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT COUNT( - + ( - + CAST( 32 AS SIGNED ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6264
SELECT COUNT ( - + ( - + CAST ( 32 AS INTEGER ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT + MIN( DISTINCT - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + MIN ( DISTINCT - 20 )
----
-20

query I rowsort
SELECT DISTINCT + 56 * 79 - - 98 + + 46 * + 96
----
8938

query II rowsort
SELECT ALL + 58, NULLIF ( - + 31, 72 ) AS col1
----
58
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( 45 ) AS col2
----
1

query I rowsort
SELECT + 69 + - - 36 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + ( + COUNT( * ) ) * + ( 21 ) * + 64 AS col2
----
1344

skipif mysql # not compatible
query I rowsort label-6270
SELECT + ( + COUNT ( * ) ) * + ( 21 ) * + 64 AS col2
----
1344

query I rowsort
SELECT DISTINCT 83 * + + 71 * - 11
----
-64823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT 21 * + MIN( ALL 32 ) + - 76 DIV 67 AS col0
----
671

skipif mysql # not compatible
query I rowsort label-6272
SELECT 21 * + MIN ( ALL 32 ) + - 76 / 67 AS col0
----
671

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6273
SELECT - + 38 * 33 + - 40 - 82 DIV NULLIF ( CAST( 73 AS SIGNED ), + 59 )
----
-1295

skipif mysql # not compatible
query I rowsort label-6273
SELECT - + 38 * 33 + - 40 - 82 / NULLIF ( CAST ( 73 AS INTEGER ), + 59 )
----
-1295

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6274
SELECT + - CAST( NULL AS DECIMAL ) * MIN( - - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT + - CAST ( NULL AS REAL ) * MIN ( - - 16 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT DISTINCT - 24 * - + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - 24 * - + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT - - 80 DIV 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6276
SELECT - - 80 / 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - 16 * + - 51 * - COUNT( * ) + + 88 AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-6277
SELECT - 16 * + - 51 * - COUNT ( * ) + + 88 AS col2
----
-728

query I rowsort
SELECT - + 5 - - 60 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT DISTINCT + + MIN( - + 5 ) DIV - 86 * ( - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT + + MIN ( - + 5 ) / - 86 * ( - 28 )
----
0

query II rowsort
SELECT ALL 14, 94 AS col0
----
14
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6281
SELECT COUNT( * ), 88 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6281
SELECT COUNT ( * ), 88 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6282
SELECT - 43 / 45 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT - 43 / 45 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 3 + + COALESCE ( - 22, - 27 )
----
-19

query I rowsort
SELECT - 82 * + 43 + + 7 AS col2
----
-3519

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT + 4 AS col0, SUM( DISTINCT 53 ) * MAX( + 20 * 5 ) AS col2
----
4
5300

skipif mysql # not compatible
query II rowsort label-6285
SELECT + 4 AS col0, SUM ( DISTINCT 53 ) * MAX ( + 20 * 5 ) AS col2
----
4
5300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6286
SELECT - + 47 AS col1, 33 DIV - COUNT( * )
----
-47
-33

skipif mysql # not compatible
query II rowsort label-6286
SELECT - + 47 AS col1, 33 / - COUNT ( * )
----
-47
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6287
SELECT - 0 + SUM( 15 ) - CAST( NULL AS SIGNED ) / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 0 + SUM ( 15 ) - CAST ( NULL AS INTEGER ) / 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL + - COUNT( * ) + + 83 * - + 29
----
-2408

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL + - COUNT ( * ) + + 83 * - + 29
----
-2408

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ALL - CASE + 43 WHEN 72 + 66 THEN NULL WHEN 12 THEN 51 DIV + 83 ELSE COALESCE ( 76, 47 - + 35 ) * - 91 END + - 16
----
6900

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - CASE + 43 WHEN 72 + 66 THEN NULL WHEN 12 THEN 51 / + 83 ELSE COALESCE ( 76, 47 - + 35 ) * - 91 END + - 16
----
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - COUNT( * ) - + 14 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6290
SELECT - COUNT ( * ) - + 14 AS col0
----
-15

query I rowsort
SELECT DISTINCT - 98 * - 26
----
2548

query I rowsort
SELECT - 71 + 76
----
5

query I rowsort
SELECT ALL CASE 2 WHEN 1 * 8 THEN NULL WHEN + 74 THEN NULL ELSE 45 END AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - NULLIF ( 6, - - SUM( 3 ) + 69 ) + 25 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6294
SELECT - NULLIF ( 6, - - SUM ( 3 ) + 69 ) + 25 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT ALL + 22 DIV - + COUNT( * ) + - - 30 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + 22 / - + COUNT ( * ) + - - 30 AS col1
----
8

query I rowsort
SELECT - 77 + 12 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT 35 DIV ( + 36 ) - - 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6297
SELECT 35 / ( + 36 ) - - 8 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6298
SELECT + 42 * - COALESCE ( + + COUNT( * ), - + 43 ) + 35 * - CAST( + 68 * 50 + 85 AS SIGNED )
----
-122017

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 42 * - COALESCE ( + + COUNT ( * ), - + 43 ) + 35 * - CAST ( + 68 * 50 + 85 AS INTEGER )
----
-122017

query I rowsort
SELECT DISTINCT + COALESCE ( 17, ( - ( 4 ) ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT DISTINCT COALESCE ( + 79, + CAST( - 58 AS SIGNED ) + + 94 * + 12 ) * + 78 - + 90 * + 39
----
2652

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT COALESCE ( + 79, + CAST ( - 58 AS INTEGER ) + + 94 * + 12 ) * + 78 - + 90 * + 39
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT DISTINCT + COUNT( * ) * - CAST( - MAX( - 9 ) AS SIGNED ) - MIN( + NULLIF ( - ( ( 69 ) ), - 38 * 1 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT + COUNT ( * ) * - CAST ( - MAX ( - 9 ) AS INTEGER ) - MIN ( + NULLIF ( - ( ( 69 ) ), - 38 * 1 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + 99 + - + SUM( ALL - 53 ) col0
----
152

skipif mysql # not compatible
query I rowsort label-6302
SELECT + 99 + - + SUM ( ALL - 53 ) col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - COUNT( * ) * NULLIF ( - + 86, + MAX( 33 ) ) + - 69 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6303
SELECT - COUNT ( * ) * NULLIF ( - + 86, + MAX ( 33 ) ) + - 69 AS col0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6304
SELECT - 87 / - COALESCE ( CAST( + + 16 AS DECIMAL ), 7 )
----
5

skipif mysql # not compatible
query I rowsort label-6304
SELECT - 87 / - COALESCE ( CAST ( + + 16 AS REAL ), 7 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT 82 DIV - ( 34 ) + 12 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6305
SELECT 82 / - ( 34 ) + 12 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + + CASE - + 57 WHEN + ( - 54 ) THEN - 97 END / SUM( ALL 66 + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT + + CASE - + 57 WHEN + ( - 54 ) THEN - 97 END / SUM ( ALL 66 + 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + COUNT( ALL - 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6307
SELECT + COUNT ( ALL - 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT 17 * - - CASE - 61 WHEN 87 THEN 52 + - 12 END * - ( 91 + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT 17 * - - CASE - 61 WHEN 87 THEN 52 + - 12 END * - ( 91 + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 19, + 47 + - 47 - 76 ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT + - 34 + + 75 DIV 6 * - + 24 + 67 * MIN( - 39 * 81 ) AS col1
----
-211975

skipif mysql # not compatible
query I rowsort label-6310
SELECT + - 34 + + 75 / 6 * - + 24 + 67 * MIN ( - 39 * 81 ) AS col1
----
-211975

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + NULLIF ( 58, + NULLIF ( - COUNT( * ), - 77 ) ) * 48 col1
----
2784

skipif mysql # not compatible
query I rowsort label-6311
SELECT + NULLIF ( 58, + NULLIF ( - COUNT ( * ), - 77 ) ) * 48 col1
----
2784

query I rowsort
SELECT + 13 * - 14 AS col1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT + 61 * + 42 * + COUNT( * ) + - - 57 * - COALESCE ( 92, ( ( 6 ) ) + - 49 ) AS col2
----
-2682

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + 61 * + 42 * + COUNT ( * ) + - - 57 * - COALESCE ( 92, ( ( 6 ) ) + - 49 ) AS col2
----
-2682

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT + MIN( 7 ) + - + ( - 49 )
----
56

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT + MIN ( 7 ) + - + ( - 49 )
----
56

query I rowsort
SELECT DISTINCT + 30 + 86 AS col1
----
116

query I rowsort
SELECT + COALESCE ( + 95, + + 53 ) AS col1
----
95

query I rowsort
SELECT DISTINCT + 69 + - 3 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT - 89 + - COALESCE ( 14, + - CAST( NULL AS SIGNED ), - 22 ) AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-6318
SELECT - 89 + - COALESCE ( 14, + - CAST ( NULL AS INTEGER ), - 22 ) AS col2
----
-103

query I rowsort
SELECT ALL + 85 + - + 20
----
65

query I rowsort
SELECT + 36 * - 27 AS col0
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - 41 * - MAX( 36 ) AS col1
----
1476

skipif mysql # not compatible
query I rowsort label-6321
SELECT - 41 * - MAX ( 36 ) AS col1
----
1476

query II rowsort
SELECT 3, 29 AS col2
----
3
29

query I rowsort
SELECT ALL + 49 * + 43 AS col1
----
2107

query II rowsort
SELECT 11 AS col0, ( ( 93 ) )
----
11
93

query I rowsort
SELECT DISTINCT 94 - + 32 AS col0
----
62

query I rowsort
SELECT DISTINCT + 67 * - 93 AS col1
----
-6231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT DISTINCT + ( - - 16 ) - - - 71 * + CAST( 20 AS SIGNED ) col0
----
-1404

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + ( - - 16 ) - - - 71 * + CAST ( 20 AS INTEGER ) col0
----
-1404

query I rowsort
SELECT 25 * + - 40
----
-1000

query II rowsort
SELECT DISTINCT - 64, - 20 col1
----
-64
-20

query I rowsort
SELECT 41 * + ( - 90 ) - 8
----
-3698

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT 15 * NULLIF ( + COUNT( DISTINCT COALESCE ( - + 52, - 26 / + 67 ) ), + 82 )
----
15

skipif mysql # not compatible
query I rowsort label-6331
SELECT 15 * NULLIF ( + COUNT ( DISTINCT COALESCE ( - + 52, - 26 / + 67 ) ), + 82 )
----
15

query I rowsort
SELECT ALL + ( - - 9 ) * - + 67 + + ( + - 48 ) * - 97
----
4053

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - MAX( DISTINCT + 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - MAX ( DISTINCT + 18 ) AS col2
----
-18

query I rowsort
SELECT ALL - 35 * + CASE - + ( + 7 ) WHEN 20 THEN + 84 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT ALL + + 37 DIV + 72 * 2 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + + 37 / + 72 * 2 + - 92 AS col2
----
-92

query I rowsort
SELECT ALL - - 12 * - 80 + - 71 AS col2
----
-1031

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + COUNT( * ) * 22 + + - 34 - - + 43 * + 71
----
3041

skipif mysql # not compatible
query I rowsort label-6337
SELECT + COUNT ( * ) * 22 + + - 34 - - + 43 * + 71
----
3041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6338
SELECT ALL - + MIN( DISTINCT + CAST( - 50 AS SIGNED ) ) * + CASE - NULLIF ( - NULLIF ( 67, 37 - NULLIF ( 79 + - 10 * + CAST( NULL AS DECIMAL ), CAST( + 25 AS DECIMAL ) + COALESCE ( - 7, CAST( NULL AS SIGNED ) ) ) ), - COUNT( * ) * - 23 ) WHEN - COUNT( * ) THEN NULL WHEN COALESCE ( 30, + 89 + + 30 ) + 55 * 84 THEN 12 - - 76 * + 58 ELSE NULL END + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - + MIN ( DISTINCT + CAST ( - 50 AS INTEGER ) ) * + CASE - NULLIF ( - NULLIF ( 67, 37 - NULLIF ( 79 + - 10 * + CAST ( NULL AS REAL ), CAST ( + 25 AS REAL ) + COALESCE ( - 7, CAST ( NULL AS INTEGER ) ) ) ), - COUNT ( * ) * - 23 ) WHEN - COUNT ( * ) THEN NULL WHEN COALESCE ( 30, + 89 + + 30 ) + 55 * 84 THEN 12 - - 76 * + 58 ELSE NULL END + 20 AS col1
----
NULL

query I rowsort
SELECT 74 * + - 90 AS col1
----
-6660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT 4 / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT 4 / - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6341
SELECT - NULLIF ( - 23, COUNT( * ) ) DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-6341
SELECT - NULLIF ( - 23, COUNT ( * ) ) / - 6
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) + - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - - 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6343
SELECT SUM( ALL + + 29 ) DIV + + 44 AS col2, 86
----
0
86

skipif mysql # not compatible
query II rowsort label-6343
SELECT SUM ( ALL + + 29 ) / + + 44 AS col2, 86
----
0
86

query I rowsort
SELECT DISTINCT - 81 + - + ( + ( + 74 ) )
----
-155

query I rowsort
SELECT ALL + - 57 + + 31 AS col2
----
-26

query II rowsort
SELECT + 82 + + 10 * - 53 AS col1, - 83
----
-448
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL - COALESCE ( - MAX( DISTINCT - 20 ), - 22 - 41 + COUNT( * ) * COUNT( * ), 21 * + 22 ) + 46 * - 9
----
-434

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL - COALESCE ( - MAX ( DISTINCT - 20 ), - 22 - 41 + COUNT ( * ) * COUNT ( * ), 21 * + 22 ) + 46 * - 9
----
-434

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT ALL 61 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL 61 / 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT ALL ( - + 96 ) + + COALESCE ( + 85, - ( - 95 ) + + COALESCE ( 65, - 69 DIV + 90 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL ( - + 96 ) + + COALESCE ( + 85, - ( - 95 ) + + COALESCE ( 65, - 69 / + 90 ) ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT DISTINCT CAST( - ( + 22 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT CAST ( - ( + 22 ) AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + MIN( DISTINCT + 36 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-6352
SELECT + MIN ( DISTINCT + 36 ) col2
----
36

query I rowsort
SELECT 87 - - 93 AS col1
----
180

query II rowsort
SELECT 2 AS col0, - 86 AS col1
----
2
-86

query II rowsort
SELECT - 54 AS col2, - 33 AS col0
----
-54
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT DISTINCT 59 col1, 40 * 4 * - COUNT( * )
----
59
-160

skipif mysql # not compatible
query II rowsort label-6356
SELECT DISTINCT 59 col1, 40 * 4 * - COUNT ( * )
----
59
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT 94 - + - 61 / - COUNT( * ) + - - 95 * + CASE + ( 73 ) WHEN ( - 65 ) + - 33 THEN + 37 END * 80 + ( + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT 94 - + - 61 / - COUNT ( * ) + - - 95 * + CASE + ( 73 ) WHEN ( - 65 ) + - 33 THEN + 37 END * 80 + ( + 31 ) AS col2
----
NULL

query II rowsort
SELECT 2, 90 + ( 63 ) col0
----
2
153

query II rowsort
SELECT - 75, 89 + - 22 AS col1
----
-75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6360
SELECT 15 DIV 61 DIV + - COUNT( * ) * - + 28 AS col1, + ( - 89 )
----
0
-89

skipif mysql # not compatible
query II rowsort label-6360
SELECT 15 / 61 / + - COUNT ( * ) * - + 28 AS col1, + ( - 89 )
----
0
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT 22 + - - COUNT( ALL - 91 )
----
23

skipif mysql # not compatible
query I rowsort label-6361
SELECT 22 + - - COUNT ( ALL - 91 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT 4 * + 0 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT 4 * + 0 / + 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT 19 DIV 71 + + 35
----
35

skipif mysql # not compatible
query I rowsort label-6363
SELECT 19 / 71 + + 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) * - 12
----
12

query I rowsort
SELECT DISTINCT - 37 * - + 61
----
2257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT ALL 20 + 42 + + + NULLIF ( + COUNT( * ), 5 - + + 56 ) DIV 10 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL 20 + 42 + + + NULLIF ( + COUNT ( * ), 5 - + + 56 ) / 10 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT MIN( DISTINCT - + 54 ) + - + 68 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-6367
SELECT MIN ( DISTINCT - + 54 ) + - + 68 AS col0
----
-122

query I rowsort
SELECT DISTINCT - + 99 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL + COUNT( - 7 ) + + 69 * + - COUNT( + 65 ) + 45 col2
----
-23

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + COUNT ( - 7 ) + + 69 * + - COUNT ( + 65 ) + 45 col2
----
-23

query I rowsort
SELECT + - NULLIF ( 88, - 9 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6371
SELECT - COUNT( * ) * COALESCE ( + 10, - + 13 * - 74 * - - CASE 90 WHEN + COALESCE ( + 46, - NULLIF ( - MIN( 62 ), ( 91 ) ) ) * 63 THEN NULL WHEN 9 / - 79 THEN + 28 + + 84 END, 30 - - 36 * CAST( NULL AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6371
SELECT - COUNT ( * ) * COALESCE ( + 10, - + 13 * - 74 * - - CASE 90 WHEN + COALESCE ( + 46, - NULLIF ( - MIN ( 62 ), ( 91 ) ) ) * 63 THEN NULL WHEN 9 / - 79 THEN + 28 + + 84 END, 30 - - 36 * CAST ( NULL AS INTEGER ) )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6372
SELECT DISTINCT - 47 AS col2, CAST( NULL AS SIGNED ) + + ( + 76 )
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-6372
SELECT DISTINCT - 47 AS col2, CAST ( NULL AS INTEGER ) + + ( + 76 )
----
-47
NULL

query II rowsort
SELECT DISTINCT - - 65 AS col0, + 47
----
65
47

query I rowsort
SELECT 68 * + 98
----
6664

query I rowsort
SELECT ALL - 52 + 44 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT DISTINCT - COUNT( * ), COUNT( + 13 ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-6376
SELECT DISTINCT - COUNT ( * ), COUNT ( + 13 ) AS col2
----
-1
1

query II rowsort
SELECT + 94, - 97 AS col2
----
94
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6378
SELECT ALL - 2 + COUNT( * ) AS col0, + COUNT( * ) * 67
----
-1
67

skipif mysql # not compatible
query II rowsort label-6378
SELECT ALL - 2 + COUNT ( * ) AS col0, + COUNT ( * ) * 67
----
-1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - COUNT( - 33 ) * ( + 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6379
SELECT - COUNT ( - 33 ) * ( + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT - - MAX( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - - MAX ( DISTINCT 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + + MAX( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6381
SELECT + + MAX ( - 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT CAST( NULL AS SIGNED ) * 46 * - 10 / - - COUNT( * ) * - 14 - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT CAST ( NULL AS INTEGER ) * 46 * - 10 / - - COUNT ( * ) * - 14 - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL MAX( DISTINCT 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL MAX ( DISTINCT 82 )
----
82

query I rowsort
SELECT DISTINCT 65 - - - 94
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT + 30 * ( - + 41 ) DIV + 77
----
-15

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 30 * ( - + 41 ) / + 77
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-6386
SELECT DISTINCT + 3 DIV - 74 AS col0, 59 AS col2
----
0
59

skipif mysql # not compatible
query II rowsort label-6386
SELECT DISTINCT + 3 / - 74 AS col0, 59 AS col2
----
0
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT + 82 DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 82 / 78 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT + 0 + - 93 AS col0, 98 * + 23 + + 12 * - - CASE + 53 WHEN 11 THEN 81 WHEN 99 * + 65 THEN - 16 - - 3 WHEN - 99 - - 40 * + 2 THEN NULL END - COALESCE ( COUNT( * ), - 50 * + 20 ) AS col1
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-6388
SELECT + 0 + - 93 AS col0, 98 * + 23 + + 12 * - - CASE + 53 WHEN 11 THEN 81 WHEN 99 * + 65 THEN - 16 - - 3 WHEN - 99 - - 40 * + 2 THEN NULL END - COALESCE ( COUNT ( * ), - 50 * + 20 ) AS col1
----
-93
NULL

query I rowsort
SELECT + 76 + 52 * 6 + - 0 AS col1
----
388

query I rowsort
SELECT - CASE + 31 WHEN + 12 THEN 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT - MAX( ALL - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6391
SELECT - MAX ( ALL - 34 ) AS col1
----
34

query I rowsort
SELECT + 40 * - - 30 AS col1
----
1200

query II rowsort
SELECT DISTINCT 63 * 84, 84 AS col2
----
5292
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT + 92 DIV 29 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6394
SELECT + 92 / 29 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + COUNT( * ) * - 33 + MAX( + + 23 )
----
-10

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + COUNT ( * ) * - 33 + MAX ( + + 23 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT + 37 * - 25 + + COUNT( * ) AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT + 37 * - 25 + + COUNT ( * ) AS col0
----
-924

query II rowsort
SELECT ( + - 91 ), + 22 * 49 + - 16 AS col2
----
-91
1062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT - - COUNT( * ) DIV - 3 + ( + 12 ) + - + 66 * - ( + - COUNT( * ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6398
SELECT - - COUNT ( * ) / - 3 + ( + 12 ) + - + 66 * - ( + - COUNT ( * ) ) AS col2
----
-54

query I rowsort
SELECT - 61 * + 2 - - 0 + - 52 - + 26 + COALESCE ( - + 73, 73 ) * + 98
----
-7354

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL MIN( ALL 72 ) * - 97 * 53 * - + 76 + + 51 AS col2
----
28131603

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL MIN ( ALL 72 ) * - 97 * 53 * - + 76 + + 51 AS col2
----
28131603

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL - ( + COALESCE ( + 98, + + COUNT( - 97 ) + - COUNT( * ) + + + 65 ) ) * 17 + + 77 AS col2
----
-1589

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL - ( + COALESCE ( + 98, + + COUNT ( - 97 ) + - COUNT ( * ) + + + 65 ) ) * 17 + + 77 AS col2
----
-1589

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL + - ( + COUNT( * ) ) * - - 63 * - 62 AS col2
----
3906

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + - ( + COUNT ( * ) ) * - - 63 * - 62 AS col2
----
3906

query I rowsort
SELECT - COALESCE ( - 0, - 6 )
----
0

query I rowsort
SELECT DISTINCT - 64 * + 59
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL + 70 * - COUNT( * ) * + 85 * + 69 + 44 * - 24
----
-411606

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + 70 * - COUNT ( * ) * + 85 * + 69 + 44 * - 24
----
-411606

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT ALL ( + 58 ) * - COALESCE ( - 15, - 47 DIV - - ( + 2 ) * + 5 )
----
870

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL ( + 58 ) * - COALESCE ( - 15, - 47 / - - ( + 2 ) * + 5 )
----
870

query II rowsort
SELECT + - 51 + + 63 AS col0, 22
----
12
22

query I rowsort
SELECT - + 45 * + - 97
----
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL 90 * - ( + 44 ) + - ( CAST( - + 76 AS SIGNED ) ) * - + 60 / + 69 - CASE MAX( ALL - 71 ) WHEN 3 THEN NULL WHEN 97 THEN + 63 * - 27 - + 37 / 6 WHEN 52 * - CAST( + 91 AS SIGNED ) + - 36 THEN 68 ELSE NULL END * 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL 90 * - ( + 44 ) + - ( CAST ( - + 76 AS INTEGER ) ) * - + 60 / + 69 - CASE MAX ( ALL - 71 ) WHEN 3 THEN NULL WHEN 97 THEN + 63 * - 27 - + 37 / 6 WHEN 52 * - CAST ( + 91 AS INTEGER ) + - 36 THEN 68 ELSE NULL END * 72 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT DISTINCT + + CASE 14 WHEN - COUNT( * ) THEN + 85 / + 96 * + COALESCE ( - 21, - CAST( 6 AS SIGNED ), 41 ) + - 0 WHEN NULLIF ( - 32, + 57 + 0 ) - + CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) * - 5 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT + + CASE 14 WHEN - COUNT ( * ) THEN + 85 / + 96 * + COALESCE ( - 21, - CAST ( 6 AS INTEGER ), 41 ) + - 0 WHEN NULLIF ( - 32, + 57 + 0 ) - + CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) * - 5 THEN NULL END
----
NULL

query I rowsort
SELECT - 23 * + 58
----
-1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6412
SELECT ALL 33 * 84 - + CAST( - 19 AS SIGNED ) DIV + COUNT( * )
----
2791

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL 33 * 84 - + CAST ( - 19 AS INTEGER ) / + COUNT ( * )
----
2791

query I rowsort
SELECT ALL - 90 * + 99
----
-8910

query I rowsort
SELECT - 6 * + 72
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + 17 * - MIN( - ( 84 ) )
----
1428

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 17 * - MIN ( - ( 84 ) )
----
1428

query I rowsort
SELECT ALL + 81 * - + 43
----
-3483

query I rowsort
SELECT DISTINCT + 8 * - 28 * - + 86 * 84 AS col1
----
1618176

query I rowsort
SELECT - 59 + - 47
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT - 70 DIV - COALESCE ( + + 64, + + ( 67 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6419
SELECT - 70 / - COALESCE ( + + 64, + + ( 67 ) ) AS col2
----
1

query II rowsort
SELECT - 76 * - ( + 13 ) AS col0, 74 * 10
----
988
740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT DISTINCT CAST( 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT CAST ( 51 AS INTEGER ) AS col1
----
51

query I rowsort
SELECT - 64 + + 72 * - + 6 * - + 95 AS col2
----
40976

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL + 91 * ( - COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL + 91 * ( - COUNT ( * ) )
----
-91

query I rowsort
SELECT DISTINCT 93 + + + 18 col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT DISTINCT 52 DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT 52 / + 60 AS col2
----
0

query I rowsort
SELECT ALL 87 * 63 AS col2
----
5481

query II rowsort
SELECT 51 AS col2, COALESCE ( + + 14, + 26 ) AS col1
----
51
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL + CAST( + CASE + SUM( DISTINCT - 49 ) WHEN + 62 THEN NULL WHEN + 81 THEN NULL ELSE - 61 END AS SIGNED ) + + + 36 * + 22 col1
----
731

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + CAST ( + CASE + SUM ( DISTINCT - 49 ) WHEN + 62 THEN NULL WHEN + 81 THEN NULL ELSE - 61 END AS INTEGER ) + + + 36 * + 22 col1
----
731

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT ALL 4 + + MIN( + + 20 ) AS col0, 1 AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-6429
SELECT ALL 4 + + MIN ( + + 20 ) AS col0, 1 AS col1
----
24
1

query I rowsort
SELECT DISTINCT + 46 + + 80
----
126

query II rowsort
SELECT - 81 + + 61 * - - 31 AS col1, 58 col1
----
1810
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT + 86 + 94 + - 3 DIV + + 4 * 42 - + 29 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-6432
SELECT + 86 + 94 + - 3 / + + 4 * 42 - + 29 AS col1
----
151

query I rowsort
SELECT ALL 92 + - 14 AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT - 94 + - - CASE 65 WHEN NULLIF ( - + 25, + + ( + CAST( - 57 AS SIGNED ) ) ) THEN COUNT( 91 ) + - 33 WHEN + COUNT( * ) * ( NULLIF ( - 12, - 41 ) * - CASE 22 WHEN 80 THEN MIN( + 34 ) WHEN + MIN( DISTINCT 2 ) + NULLIF ( - COUNT( * ), 66 + + COUNT( * ) ) THEN 16 END ) THEN COUNT( * ) * - 61 + + 37 ELSE ( + 25 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-6434
SELECT - 94 + - - CASE 65 WHEN NULLIF ( - + 25, + + ( + CAST ( - 57 AS INTEGER ) ) ) THEN COUNT ( 91 ) + - 33 WHEN + COUNT ( * ) * ( NULLIF ( - 12, - 41 ) * - CASE 22 WHEN 80 THEN MIN ( + 34 ) WHEN + MIN ( DISTINCT 2 ) + NULLIF ( - COUNT ( * ), 66 + + COUNT ( * ) ) THEN 16 END ) THEN COUNT ( * ) * - 61 + + 37 ELSE ( + 25 ) END
----
-69

query II rowsort
SELECT - - 56 AS col2, 58 AS col1
----
56
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL COUNT( * ) DIV 25 + + 14 + - COALESCE ( 75, + + 59 + - 18, 69 DIV 83 ) + SUM( DISTINCT - 16 )
----
-77

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COUNT ( * ) / 25 + + 14 + - COALESCE ( 75, + + 59 + - 18, 69 / 83 ) + SUM ( DISTINCT - 16 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT + - COUNT( * ) * - 38 * - 60 - - 83 / + 62 + + CAST( NULL AS SIGNED ) + 92 + - - 67 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT + - COUNT ( * ) * - 38 * - 60 - - 83 / + 62 + + CAST ( NULL AS INTEGER ) + 92 + - - 67 / 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT + ( 22 ) DIV 98 * - ( - 29 ) * 61 - + - 6 - + COUNT( 17 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6438
SELECT + ( 22 ) / 98 * - ( - 29 ) * 61 - + - 6 - + COUNT ( 17 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT ALL + 23 DIV - 77 * + 85 + + MIN( ( 14 ) ) + 88
----
102

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + 23 / - 77 * + 85 + + MIN ( ( 14 ) ) + 88
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + MAX( + - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6440
SELECT + MAX ( + - 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6441
SELECT + - COUNT( * ) * 67 + 39, + 64 AS col2
----
-28
64

skipif mysql # not compatible
query II rowsort label-6441
SELECT + - COUNT ( * ) * 67 + 39, + 64 AS col2
----
-28
64

query II rowsort
SELECT ALL + + 18 AS col2, 87
----
18
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT ALL + - NULLIF ( - 24, + 12 + + CAST( 44 AS SIGNED ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + - NULLIF ( - 24, + 12 + + CAST ( 44 AS INTEGER ) ) AS col0
----
24

query II rowsort
SELECT - 79, + 20 AS col1
----
-79
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL COUNT( DISTINCT - + 65 ) / 64 + CASE - 27 WHEN - + MAX( 24 ) + + - ( + 51 ) THEN 87 ELSE NULL END - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL COUNT ( DISTINCT - + 65 ) / 64 + CASE - 27 WHEN - + MAX ( 24 ) + + - ( + 51 ) THEN 87 ELSE NULL END - 66 AS col2
----
NULL

query I rowsort
SELECT + 10 * - 5
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6447
SELECT - COUNT( * ) AS col2, 12 + + 75 - - CAST( NULL AS SIGNED ) + - ( - 29 ) + - 70 * - 21
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6447
SELECT - COUNT ( * ) AS col2, 12 + + 75 - - CAST ( NULL AS INTEGER ) + - ( - 29 ) + - 70 * - 21
----
-1
NULL

query I rowsort
SELECT - 71 * 43 + - 65 AS col0
----
-3118

query I rowsort
SELECT - 98 + + 98 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6450
SELECT ALL 68 * - 83 + + + CAST( NULL AS SIGNED ), ( + + COALESCE ( COUNT( * ), + 7 + - 67 ) ) - - COALESCE ( 76, - 42 ) * + 13 AS col2
----
NULL
989

skipif mysql # not compatible
query II rowsort label-6450
SELECT ALL 68 * - 83 + + + CAST ( NULL AS INTEGER ), ( + + COALESCE ( COUNT ( * ), + 7 + - 67 ) ) - - COALESCE ( 76, - 42 ) * + 13 AS col2
----
NULL
989

query I rowsort
SELECT DISTINCT - 61 - + - 32 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT CASE 47 WHEN - + 24 * - COUNT( * ) + + - 62 THEN ( - - 56 ) ELSE NULL END * ( 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT CASE 47 WHEN - + 24 * - COUNT ( * ) + + - 62 THEN ( - - 56 ) ELSE NULL END * ( 55 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6453
SELECT ALL - CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - CAST ( NULL AS REAL ) * 20
----
NULL

query II rowsort
SELECT DISTINCT - - 95 col1, 7 AS col2
----
95
7

query I rowsort
SELECT 46 * + 55
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL - ( - + MAX( DISTINCT + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - ( - + MAX ( DISTINCT + 90 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL - SUM( DISTINCT - + ( + - 86 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - SUM ( DISTINCT - + ( + - 86 ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT COUNT( ALL 68 ) * NULLIF ( + 10, - COUNT( * ) ) * - COUNT( * ) * CAST( + 75 AS SIGNED ) + 40 - 84
----
-794

skipif mysql # not compatible
query I rowsort label-6458
SELECT COUNT ( ALL 68 ) * NULLIF ( + 10, - COUNT ( * ) ) * - COUNT ( * ) * CAST ( + 75 AS INTEGER ) + 40 - 84
----
-794

query I rowsort
SELECT 32 + - CASE - 40 WHEN + 51 THEN - 87 END AS col2
----
NULL

query I rowsort
SELECT 25 - 56 + - CASE + 86 WHEN 89 * - 42 * 84 - 9 THEN NULL WHEN - - 34 THEN 73 ELSE + 43 END AS col0
----
-74

query II rowsort
SELECT ALL + 59 * + 64 * NULLIF ( + 39, 20 / + 40 + - 32 ), 75 AS col2
----
147264
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT DISTINCT - 5 + - AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - 5 + - AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL - ( - + 0 ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL - ( - + 0 ) + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 41 * 44
----
1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6465
SELECT ALL - 87 + - - 16 + + + MAX( ( + 70 ) ) + COALESCE ( CAST( NULL AS SIGNED ), - 89 DIV - - 34 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - 87 + - - 16 + + + MAX ( ( + 70 ) ) + COALESCE ( CAST ( NULL AS INTEGER ), - 89 / - - 34 ) AS col0
----
-3

query I rowsort
SELECT 57 + - 72 col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT - 14 + COUNT( * ) + + + 26 * 56 AS col0
----
1443

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - 14 + COUNT ( * ) + + + 26 * 56 AS col0
----
1443

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT COUNT( ALL - 47 ) + + 73 * ( 56 ) col2, - 14 AS col1
----
4089
-14

skipif mysql # not compatible
query II rowsort label-6468
SELECT COUNT ( ALL - 47 ) + + 73 * ( 56 ) col2, - 14 AS col1
----
4089
-14

query I rowsort
SELECT DISTINCT + 42 * + - ( + 34 ) col0
----
-1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT 50 * COUNT( 48 ) / - 15 * - + CAST( NULL AS SIGNED ) * - 81 + 99 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT 50 * COUNT ( 48 ) / - 15 * - + CAST ( NULL AS INTEGER ) * - 81 + 99 + - 77
----
NULL

query I rowsort
SELECT DISTINCT + - ( 34 ) * 42 * - ( 57 ) col1
----
81396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT ALL - MAX( 97 ) DIV - 5 + + 58 * 72
----
4195

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - MAX ( 97 ) / - 5 + + 58 * 72
----
4195

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - NULLIF ( + 15, - COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6473
SELECT - NULLIF ( + 15, - COUNT ( * ) ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + + 48 - - + 89 * - 21 col0
----
-1821

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT - 31 DIV + 9
----
-3

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - 31 / + 9
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT ALL - 15 DIV ( - COUNT( + 93 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - 15 / ( - COUNT ( + 93 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + MAX( DISTINCT 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6477
SELECT + MAX ( DISTINCT 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + - 68 * - 44 + + + 87 - - - 46 + 62 + - COUNT( * ) col0
----
3094

skipif mysql # not compatible
query I rowsort label-6478
SELECT + - 68 * - 44 + + + 87 - - - 46 + 62 + - COUNT ( * ) col0
----
3094

query I rowsort
SELECT + 78 * + 5 * - 39 AS col2
----
-15210

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + CASE - 24 WHEN - + COUNT( * ) * + + 91 + - + ( SUM( + - 79 ) ) * + - 67 * + 88 + - 79 THEN - ( 97 ) / 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT + CASE - 24 WHEN - + COUNT ( * ) * + + 91 + - + ( SUM ( + - 79 ) ) * + - 67 * + 88 + - 79 THEN - ( 97 ) / 16 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - + ( - 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6482
SELECT - 27 DIV + - 16 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6482
SELECT - 27 / + - 16 - - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT - ( 93 ) * 37 + 75 DIV 4 col1
----
-3423

skipif mysql # not compatible
query I rowsort label-6483
SELECT - ( 93 ) * 37 + 75 / 4 col1
----
-3423

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6484
SELECT DISTINCT - - CAST( + 31 AS SIGNED ) AS col1, 36 AS col0
----
31
36

skipif mysql # not compatible
query II rowsort label-6484
SELECT DISTINCT - - CAST ( + 31 AS INTEGER ) AS col1, 36 AS col0
----
31
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6485
SELECT COUNT( * ) - SUM( 33 ) * + ( - COUNT( * ) ) AS col1, - 1 DIV - 36 - - - COUNT( * ) + - 95 DIV - 9 AS col2
----
34
9

skipif mysql # not compatible
query II rowsort label-6485
SELECT COUNT ( * ) - SUM ( 33 ) * + ( - COUNT ( * ) ) AS col1, - 1 / - 36 - - - COUNT ( * ) + - 95 / - 9 AS col2
----
34
9

query I rowsort
SELECT ALL 41 + - 6 col2
----
35

query I rowsort
SELECT 22 * - 94 AS col1
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT - 68 * - 74 * - + COALESCE ( - 16, 44, - MAX( DISTINCT + - 7 ) ) * + 56 + + 79 + - 24 + + 96 DIV + 72 AS col2
----
4508728

skipif mysql # not compatible
query I rowsort label-6488
SELECT - 68 * - 74 * - + COALESCE ( - 16, 44, - MAX ( DISTINCT + - 7 ) ) * + 56 + + 79 + - 24 + + 96 / + 72 AS col2
----
4508728

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL COUNT( * ) + + - 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL COUNT ( * ) + + - 76 AS col1
----
-75

query I rowsort
SELECT ALL 11 * + 18 AS col2
----
198

query I rowsort
SELECT DISTINCT + 73 * - - 63
----
4599

query I rowsort
SELECT ALL - 18 + - 11 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT DISTINCT 40 * COUNT( * ) * 33 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT 40 * COUNT ( * ) * 33 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 55 + - 86
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT ( + + 80 ) + - 95 * - - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT ( + + 80 ) + - 95 * - - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT MIN( DISTINCT + 17 ) + 86 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6496
SELECT MIN ( DISTINCT + 17 ) + 86 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6497
SELECT CAST( + + CASE - 52 WHEN ( + 74 ) THEN NULL WHEN - MAX( 48 ) THEN + 46 + + 23 END AS SIGNED ) * + CASE 3 WHEN 63 THEN MAX( 86 ) * - COUNT( * ) END * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT CAST ( + + CASE - 52 WHEN ( + 74 ) THEN NULL WHEN - MAX ( 48 ) THEN + 46 + + 23 END AS INTEGER ) * + CASE 3 WHEN 63 THEN MAX ( 86 ) * - COUNT ( * ) END * + 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 25 * 25 * - - 30 - 85 AS col1
----
18665

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT - COUNT( * ) - - - 21 + - 97 * - 39 AS col1
----
3761

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT - COUNT ( * ) - - - 21 + - 97 * - 39 AS col1
----
3761

query I rowsort
SELECT DISTINCT COALESCE ( - 75, 61 ) AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6501
SELECT ALL - - 75 * 60 DIV 80 AS col1, - 18 * - 13 + - COUNT( * ) + 59 * + 71 + - ( + 39 )
----
56
4383

skipif mysql # not compatible
query II rowsort label-6501
SELECT ALL - - 75 * 60 / 80 AS col1, - 18 * - 13 + - COUNT ( * ) + 59 * + 71 + - ( + 39 )
----
56
4383

query I rowsort
SELECT DISTINCT - 86 * - 81 AS col1
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - - SUM( - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6503
SELECT - - SUM ( - 65 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6504
SELECT ALL - - 83 * - - MAX( ALL + + 37 ) AS col1, 1 DIV 22 + + 9
----
3071
9

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL - - 83 * - - MAX ( ALL + + 37 ) AS col1, 1 / 22 + + 9
----
3071
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + - ( - MIN( 23 ) ) * - 93 + - - 69 col0
----
-2070

skipif mysql # not compatible
query I rowsort label-6505
SELECT + - ( - MIN ( 23 ) ) * - 93 + - - 69 col0
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT DISTINCT + COUNT( DISTINCT - - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + COUNT ( DISTINCT - - 57 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT - 29 DIV + - ( - 14 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6507
SELECT - 29 / + - ( - 14 ) AS col1
----
-2

query I rowsort
SELECT ( ( + + 68 ) ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT - 86 * + 56 * - CAST( NULL AS SIGNED ) / - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT - 86 * + 56 * - CAST ( NULL AS INTEGER ) / - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - - COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT - - COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - SUM( - + 4 ) * 82 * - 54 + + + COUNT( * )
----
-17711

skipif mysql # not compatible
query I rowsort label-6511
SELECT - SUM ( - + 4 ) * 82 * - 54 + + + COUNT ( * )
----
-17711

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - COUNT( * ) * 46 * - 13 + - ( + 96 ) AS col0
----
502

skipif mysql # not compatible
query I rowsort label-6512
SELECT - COUNT ( * ) * 46 * - 13 + - ( + 96 ) AS col0
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT CASE - + 72 WHEN COUNT( * ) / - 19 THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT CASE - + 72 WHEN COUNT ( * ) / - 19 THEN - 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + 21 * - + COUNT( DISTINCT 79 ) + + + 76
----
55

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + 21 * - + COUNT ( DISTINCT 79 ) + + + 76
----
55

query I rowsort
SELECT ALL - 38 * + + 48 + - + 94
----
-1918

query I rowsort
SELECT NULLIF ( + 21, - 70 * - 68 + - 65 * - 29 ) col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT + COUNT( * ) AS col0, 96 AS col0
----
1
96

skipif mysql # not compatible
query II rowsort label-6517
SELECT + COUNT ( * ) AS col0, 96 AS col0
----
1
96

query I rowsort
SELECT - 41 + 92 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT - COUNT( * ) * - 39 + CASE - + 1 WHEN - 63 + 94 THEN CASE + + 9 WHEN - + AVG ( - ( + - 59 ) ) THEN NULL WHEN 66 THEN NULL WHEN 87 THEN NULL WHEN - ( 13 ) THEN 92 ELSE NULL END * - 1 ELSE - ( 77 ) END
----
-38

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - COUNT ( * ) * - 39 + CASE - + 1 WHEN - 63 + 94 THEN CASE + + 9 WHEN - + AVG ( - ( + - 59 ) ) THEN NULL WHEN 66 THEN NULL WHEN 87 THEN NULL WHEN - ( 13 ) THEN 92 ELSE NULL END * - 1 ELSE - ( 77 ) END
----
-38

query I rowsort
SELECT ALL - 61 * - 31 + 76 AS col1
----
1967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), 5 * - - MIN( + 57 ) * + 65 + 17 - + 15 ) * + + 90 - - - 17 * - 5 + 71
----
-1667274

skipif mysql # not compatible
query I rowsort label-6521
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), 5 * - - MIN ( + 57 ) * + 65 + 17 - + 15 ) * + + 90 - - - 17 * - 5 + 71
----
-1667274

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT SUM( DISTINCT - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6522
SELECT SUM ( DISTINCT - 20 )
----
-20

query II rowsort
SELECT ALL + 96 col2, 39 AS col2
----
96
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + CASE + 17 WHEN - - COUNT( * ) * + 49 + ( COUNT( * ) ) THEN + - 26 END + + + 3 + - CASE + 97 WHEN MAX( DISTINCT + 12 ) / + 83 THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT + CASE + 17 WHEN - - COUNT ( * ) * + 49 + ( COUNT ( * ) ) THEN + - 26 END + + + 3 + - CASE + 97 WHEN MAX ( DISTINCT + 12 ) / + 83 THEN 1 END
----
NULL

query II rowsort
SELECT DISTINCT 93 + + 23, - 57 AS col1
----
116
-57

query I rowsort
SELECT - 58 * + 10 col2
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT MAX( DISTINCT - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6527
SELECT MAX ( DISTINCT - + 89 )
----
-89

query I rowsort
SELECT ALL 28 - - 29 * - ( + 97 ) AS col1
----
-2785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT + 25 * + 29 + - - COALESCE ( + + 16, - - CAST( + + 94 AS SIGNED ) * + 19 * + 4 * - 72 - + 57 * - + 98 )
----
741

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 25 * + 29 + - - COALESCE ( + + 16, - - CAST ( + + 94 AS INTEGER ) * + 19 * + 4 * - 72 - + 57 * - + 98 )
----
741

query I rowsort
SELECT + 10 - - + 4 * 46 - 84
----
110

query II rowsort
SELECT DISTINCT 86, - 49 * + 7 * - - 19 AS col1
----
86
-6517

query I rowsort
SELECT ALL 92 - + 98 + + 14
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + - 37 + + COUNT( + 79 )
----
-36

skipif mysql # not compatible
query I rowsort label-6533
SELECT + - 37 + + COUNT ( + 79 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6534
SELECT ALL + CAST( - COALESCE ( + 61, COUNT( * ) ) AS SIGNED ) * + NULLIF ( - - 92, + + 96 + - 87 ) AS col2
----
-5612

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + CAST ( - COALESCE ( + 61, COUNT ( * ) ) AS INTEGER ) * + NULLIF ( - - 92, + + 96 + - 87 ) AS col2
----
-5612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6535
SELECT + + 62 + 38 AS col0, - 0 + + CASE 67 WHEN + - ( - 88 ) THEN 44 + - 10 * + - 38 * + CAST( 94 AS SIGNED ) WHEN - 2 + 48 THEN NULL END - 39 * 70 col2
----
100
NULL

skipif mysql # not compatible
query II rowsort label-6535
SELECT + + 62 + 38 AS col0, - 0 + + CASE 67 WHEN + - ( - 88 ) THEN 44 + - 10 * + - 38 * + CAST ( 94 AS INTEGER ) WHEN - 2 + 48 THEN NULL END - 39 * 70 col2
----
100
NULL

query I rowsort
SELECT ALL + 56 * ( - + 32 )
----
-1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6537
SELECT + - CASE - AVG ( + 14 ) WHEN - 29 THEN NULL WHEN - + COUNT( * ) THEN - - 55 WHEN + - 38 / + 56 * - CASE 18 WHEN - 1 + 57 * COUNT( * ) THEN 35 * + CAST( NULL AS SIGNED ) END + COUNT( * ) THEN + COUNT( * ) * + 25 END / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT + - CASE - AVG ( + 14 ) WHEN - 29 THEN NULL WHEN - + COUNT ( * ) THEN - - 55 WHEN + - 38 / + 56 * - CASE 18 WHEN - 1 + 57 * COUNT ( * ) THEN 35 * + CAST ( NULL AS INTEGER ) END + COUNT ( * ) THEN + COUNT ( * ) * + 25 END / 9
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6538
SELECT ALL + 70, 62 DIV 78 AS col2
----
70
0

skipif mysql # not compatible
query II rowsort label-6538
SELECT ALL + 70, 62 / 78 AS col2
----
70
0

query II rowsort
SELECT DISTINCT 53 AS col2, 24
----
53
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - + COUNT( * ) * + + 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6540
SELECT - + COUNT ( * ) * + + 3 AS col1
----
-3

query II rowsort
SELECT DISTINCT + ( - + 3 ) AS col2, - 87
----
-3
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT ALL NULLIF ( 98, - 93 + + COUNT( * ) ), - CASE - + COUNT( * ) WHEN - 79 THEN 56 ELSE + COUNT( * ) END AS col1
----
98
-1

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL NULLIF ( 98, - 93 + + COUNT ( * ) ), - CASE - + COUNT ( * ) WHEN - 79 THEN 56 ELSE + COUNT ( * ) END AS col1
----
98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) * + ( SUM( ALL + 31 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) * + ( SUM ( ALL + 31 ) ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT COUNT( - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-6544
SELECT COUNT ( - 69 )
----
1

query I rowsort
SELECT + + ( + 54 ) + - + 7 + - - 85 * - 5
----
-378

query I rowsort
SELECT + + ( + + ( 43 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + - 91 * - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6547
SELECT + - 91 * - COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - - SUM( DISTINCT 73 ) * + 71 + - 98 + + - 16 + - - 34 * + - 93 + + 46 * - + 49
----
-347

skipif mysql # not compatible
query I rowsort label-6548
SELECT - - SUM ( DISTINCT 73 ) * + 71 + - 98 + + - 16 + - - 34 * + - 93 + + 46 * - + 49
----
-347

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT + + 5 AS col2, + CASE + - COUNT( * ) WHEN 83 THEN + 84 ELSE NULL END - - 34 AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6549
SELECT + + 5 AS col2, + CASE + - COUNT ( * ) WHEN 83 THEN + 84 ELSE NULL END - - 34 AS col2
----
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT 91 AS col0, 74 * - - MIN( - 35 )
----
91
-2590

skipif mysql # not compatible
query II rowsort label-6550
SELECT 91 AS col0, 74 * - - MIN ( - 35 )
----
91
-2590

query I rowsort
SELECT - 67 * - 12 - - + 72 + + NULLIF ( + 62, - - 88 )
----
938

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6552
SELECT DISTINCT + 49 DIV + 29 + - COUNT( * ) col1, 6 * + 35
----
0
210

skipif mysql # not compatible
query II rowsort label-6552
SELECT DISTINCT + 49 / + 29 + - COUNT ( * ) col1, 6 * + 35
----
0
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL + CAST( + 25 AS SIGNED ) col2
----
25

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + CAST ( + 25 AS INTEGER ) col2
----
25

query I rowsort
SELECT - 64 + + 23
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT COUNT( * ) * - - 43 DIV - - COUNT( * ) - + - 28 + - 15 * + 72 AS col2
----
-1009

skipif mysql # not compatible
query I rowsort label-6555
SELECT COUNT ( * ) * - - 43 / - - COUNT ( * ) - + - 28 + - 15 * + 72 AS col2
----
-1009

query I rowsort
SELECT - NULLIF ( - 93, - 69 ) - NULLIF ( + 29, + 14 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6557
SELECT - 58 * - - 83 AS col2, CAST( NULL AS SIGNED )
----
-4814
NULL

skipif mysql # not compatible
query II rowsort label-6557
SELECT - 58 * - - 83 AS col2, CAST ( NULL AS INTEGER )
----
-4814
NULL

query I rowsort
SELECT DISTINCT 81 * 9 * - 73 * - 22
----
1170774

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - 87 + + COUNT( * ) + - 77 AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 87 + + COUNT ( * ) + - 77 AS col0
----
-163

query I rowsort
SELECT ALL - 38 * 67 AS col1
----
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT - 4 * + - 68 * - MIN( 26 ) AS col1
----
-7072

skipif mysql # not compatible
query I rowsort label-6561
SELECT - 4 * + - 68 * - MIN ( 26 ) AS col1
----
-7072

query I rowsort
SELECT + + 8 + - 21 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT ALL COUNT( * ) DIV COUNT( * ) * - 61 col2
----
-61

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL COUNT ( * ) / COUNT ( * ) * - 61 col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6564
SELECT ALL ( 76 ) col0, - 59 DIV COUNT( * ) + + COALESCE ( 44, + 94 * - 62 * + + COUNT( + 39 ) + 73 + - 37 )
----
76
-15

skipif mysql # not compatible
query II rowsort label-6564
SELECT ALL ( 76 ) col0, - 59 / COUNT ( * ) + + COALESCE ( 44, + 94 * - 62 * + + COUNT ( + 39 ) + 73 + - 37 )
----
76
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT COUNT( * ) DIV - COALESCE ( - 17, + 96 + - + 86 * + 97 DIV - COUNT( * ) * - - 85 ) * + NULLIF ( + 81, - 26 * - 2 ) * 27
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT COUNT ( * ) / - COALESCE ( - 17, + 96 + - + 86 * + 97 / - COUNT ( * ) * - - 85 ) * + NULLIF ( + 81, - 26 * - 2 ) * 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6566
SELECT ALL + 70 + - COUNT( * ) + 17 DIV - 87
----
69

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + 70 + - COUNT ( * ) + 17 / - 87
----
69

query I rowsort
SELECT ALL - 1 + + 95 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6568
SELECT + 54 + - + 52 AS col2, - 63 * - CASE + 46 WHEN - + CASE + 14 WHEN + + 9 * + 21 THEN - - 67 + + 56 * + 69 WHEN 82 THEN 27 ELSE NULL END + COUNT( * ) THEN - 37 WHEN COALESCE ( + 4, + NULLIF ( CAST( + 38 AS SIGNED ), 89 * COUNT( * ) ) * + CAST( - 25 AS SIGNED ) + ( + 2 ), - 86 + - 89 ) * + CASE - 18 WHEN 99 THEN NULL ELSE + 54 + + COUNT( * ) END THEN NULL END col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6568
SELECT + 54 + - + 52 AS col2, - 63 * - CASE + 46 WHEN - + CASE + 14 WHEN + + 9 * + 21 THEN - - 67 + + 56 * + 69 WHEN 82 THEN 27 ELSE NULL END + COUNT ( * ) THEN - 37 WHEN COALESCE ( + 4, + NULLIF ( CAST ( + 38 AS INTEGER ), 89 * COUNT ( * ) ) * + CAST ( - 25 AS INTEGER ) + ( + 2 ), - 86 + - 89 ) * + CASE - 18 WHEN 99 THEN NULL ELSE + 54 + + COUNT ( * ) END THEN NULL END col1
----
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT 97 + 96 AS col2, - 38 * - 85 * - - ( - COUNT( DISTINCT - 96 ) ) AS col2
----
193
-3230

skipif mysql # not compatible
query II rowsort label-6569
SELECT 97 + 96 AS col2, - 38 * - 85 * - - ( - COUNT ( DISTINCT - 96 ) ) AS col2
----
193
-3230

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT - COUNT( * ) + - + 46 + 79 - 80 + - + 97, 97 AS col0
----
-145
97

skipif mysql # not compatible
query II rowsort label-6570
SELECT - COUNT ( * ) + - + 46 + 79 - 80 + - + 97, 97 AS col0
----
-145
97

query I rowsort
SELECT - 77 + + 64
----
-13

query I rowsort
SELECT 89 * - 37 + 51
----
-3242

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT COUNT( * ) + - 1 + + 71 + 73 + + 2 * - COUNT( * ) * + 61 * - 49 + - 49 + + + COUNT( ALL - 18 )
----
6074

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT COUNT ( * ) + - 1 + + 71 + 73 + + 2 * - COUNT ( * ) * + 61 * - 49 + - 49 + + + COUNT ( ALL - 18 )
----
6074

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT DISTINCT + ( - 49 ) AS col1, NULLIF ( ( - 17 ), + + 75 + + 37 * - SUM( - 12 ) + 6 ) AS col0
----
-49
-17

skipif mysql # not compatible
query II rowsort label-6574
SELECT DISTINCT + ( - 49 ) AS col1, NULLIF ( ( - 17 ), + + 75 + + 37 * - SUM ( - 12 ) + 6 ) AS col0
----
-49
-17

query I rowsort
SELECT ALL - NULLIF ( + - 50, 39 / + 55 * + 80 ) + - 74 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT 4 DIV + 97 * 22 + ( 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6576
SELECT 4 / + 97 * 22 + ( 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - 32 + - + 62 + 10 / CASE 94 WHEN - - 1 - - + 48 THEN COUNT( * ) END * - - 31 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - 32 + - + 62 + 10 / CASE 94 WHEN - - 1 - - + 48 THEN COUNT ( * ) END * - - 31 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL + 68 - ( + 42 ) - + + 9 + + + MIN( ALL - 67 )
----
-50

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + 68 - ( + 42 ) - + + 9 + + + MIN ( ALL - 67 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT COALESCE ( + 50, - - 21 ) DIV - 82 + + COALESCE ( 72, - 78 + - - 16 + - + 34 + + + 89 * 27 * + 20 ) + + 88
----
160

skipif mysql # not compatible
query I rowsort label-6579
SELECT COALESCE ( + 50, - - 21 ) / - 82 + + COALESCE ( 72, - 78 + - - 16 + - + 34 + + + 89 * 27 * + 20 ) + + 88
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT 17 - + CAST( NULL AS SIGNED ) * + - 2 * COUNT( * ) / - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT 17 - + CAST ( NULL AS INTEGER ) * + - 2 * COUNT ( * ) / - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * - 98
----
-9212

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL 52 - + - COUNT( ALL - + 90 )
----
53

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL 52 - + - COUNT ( ALL - + 90 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT + 17 / + - 47 * + - 44 * + + CAST( NULL AS SIGNED ) / + + CAST( + COUNT( * ) AS SIGNED ) + - 24 + COUNT( 86 ) * - 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 17 / + - 47 * + - 44 * + + CAST ( NULL AS INTEGER ) / + + CAST ( + COUNT ( * ) AS INTEGER ) + - 24 + COUNT ( 86 ) * - 70 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6584
SELECT 86 * - NULLIF ( + 89, - 44 * + 34 + COALESCE ( - 7, - + CAST( + - 35 AS SIGNED ), NULLIF ( - 57, 84 * + - MIN( - 4 ) * 91 ) ) )
----
-7654

skipif mysql # not compatible
query I rowsort label-6584
SELECT 86 * - NULLIF ( + 89, - 44 * + 34 + COALESCE ( - 7, - + CAST ( + - 35 AS INTEGER ), NULLIF ( - 57, 84 * + - MIN ( - 4 ) * 91 ) ) )
----
-7654

query I rowsort
SELECT ALL - NULLIF ( 18, - 55 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT ( - - MAX( 47 ) ) * 91 * - 99 AS col0
----
-423423

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT ( - - MAX ( 47 ) ) * 91 * - 99 AS col0
----
-423423

query I rowsort
SELECT 66 + - - 87 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - ( + MAX( ALL + 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - ( + MAX ( ALL + 72 ) )
----
-72

query I rowsort
SELECT 76 * + 20 * - 46
----
-69920

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 85 * + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6590
SELECT 85 * + COUNT ( * ) AS col0
----
85

query II rowsort
SELECT 92, - 65 AS col0
----
92
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT 65 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT 65 / - 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT COUNT( * ) + + MIN( - 64 ) / CAST( NULL AS SIGNED ) + COALESCE ( + ( 37 ), COUNT( * ) + - 36 * + 98 + + 1 + - 30 * 38 + - 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT COUNT ( * ) + + MIN ( - 64 ) / CAST ( NULL AS INTEGER ) + COALESCE ( + ( 37 ), COUNT ( * ) + - 36 * + 98 + + 1 + - 30 * 38 + - 69 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + ( 52 ) * 75 + - - COUNT( DISTINCT + 58 ) AS col0
----
3901

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + ( 52 ) * 75 + - - COUNT ( DISTINCT + 58 ) AS col0
----
3901

query I rowsort
SELECT DISTINCT - - 39 * - 31 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + ( - - COUNT( * ) ) + - 99 + + + 33 + - 31 * - COUNT( * ) + + ( + - ( 4 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + ( - - COUNT ( * ) ) + - 99 + + + 33 + - 31 * - COUNT ( * ) + + ( + - ( 4 ) ) AS col2
----
-38

query I rowsort
SELECT 12 - 52
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT ALL 37 AS col2, + COUNT( * ) AS col2
----
37
1

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL 37 AS col2, + COUNT ( * ) AS col2
----
37
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT COALESCE ( - ( + + 36 ), + - 18 - - - ( - 50 ), - 84 * + + 29 * - 0 ) * COALESCE ( 14, 5, 36 + COUNT( * ) ) DIV 5
----
-100

skipif mysql # not compatible
query I rowsort label-6599
SELECT COALESCE ( - ( + + 36 ), + - 18 - - - ( - 50 ), - 84 * + + 29 * - 0 ) * COALESCE ( 14, 5, 36 + COUNT ( * ) ) / 5
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT - 95 + - 86 + + + 23 + 93 + - ( + - 47 ) * + COUNT( * ) * - 10 * + ( + CAST( 84 AS SIGNED ) ) * + - COALESCE ( + - 27, 65 ) + 72 * 68 col2
----
-1061129

skipif mysql # not compatible
query I rowsort label-6600
SELECT - 95 + - 86 + + + 23 + 93 + - ( + - 47 ) * + COUNT ( * ) * - 10 * + ( + CAST ( 84 AS INTEGER ) ) * + - COALESCE ( + - 27, 65 ) + 72 * 68 col2
----
-1061129

query I rowsort
SELECT 22 * - 52
----
-1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6602
SELECT - ( COUNT( * ) ) + 48 AS col1, ( - 17 ) + + - ( - + 32 ) - ( + 11 ) DIV + 60
----
47
15

skipif mysql # not compatible
query II rowsort label-6602
SELECT - ( COUNT ( * ) ) + 48 AS col1, ( - 17 ) + + - ( - + 32 ) - ( + 11 ) / + 60
----
47
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT - + 68 AS col0, ( + COUNT( * ) )
----
-68
1

skipif mysql # not compatible
query II rowsort label-6603
SELECT - + 68 AS col0, ( + COUNT ( * ) )
----
-68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT - 83, + 61 + - 45 + - + COUNT( * ) AS col0
----
-83
15

skipif mysql # not compatible
query II rowsort label-6604
SELECT - 83, + 61 + - 45 + - + COUNT ( * ) AS col0
----
-83
15

query I rowsort
SELECT + 44 + - 94 * 35 * - NULLIF ( - + 69, - + ( 9 ) * + 42 ) + 76
----
-226890

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6606
SELECT DISTINCT - 47 DIV - ( - COUNT( * ) ), - 80 AS col0
----
-47
-80

skipif mysql # not compatible
query II rowsort label-6606
SELECT DISTINCT - 47 / - ( - COUNT ( * ) ), - 80 AS col0
----
-47
-80

query I rowsort
SELECT ALL CASE 65 WHEN + 19 THEN NULL WHEN - 91 THEN - 45 + 47 WHEN + + 2 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT ALL 41 - 97 DIV - 79 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL 41 - 97 / - 79 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6609
SELECT - COUNT( * ) * + 2 * + 94 * - 57 AS col0, + CASE - 98 WHEN + COUNT( * ) THEN + - CAST( NULL AS SIGNED ) * 71 ELSE NULL END AS col0
----
10716
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT - COUNT ( * ) * + 2 * + 94 * - 57 AS col0, + CASE - 98 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) * 71 ELSE NULL END AS col0
----
10716
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT DISTINCT + 27 DIV + 5 DIV + 1 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + 27 / + 5 / + 1 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ( 28 ) * - 37 + COALESCE ( - + ( + + COUNT( * ) ), - 98, 1, - 83 )
----
-1037

skipif mysql # not compatible
query I rowsort label-6611
SELECT ( 28 ) * - 37 + COALESCE ( - + ( + + COUNT ( * ) ), - 98, 1, - 83 )
----
-1037

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT COUNT( * ) + COUNT( * ) * - COUNT( * ) * - - 39
----
-38

skipif mysql # not compatible
query I rowsort label-6612
SELECT COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * - - 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6613
SELECT CAST( 93 AS SIGNED ) DIV + MAX( 88 ) + 50 - 95 DIV 91
----
50

skipif mysql # not compatible
query I rowsort label-6613
SELECT CAST ( 93 AS INTEGER ) / + MAX ( 88 ) + 50 - 95 / 91
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6614
SELECT ALL + 62 * + 54 - + MIN( ALL - 42 ), COALESCE ( - ( + 33 ), - COUNT( * ) DIV - 42 + - + 91 + - + COALESCE ( + 14, + CAST( 89 AS SIGNED ) * + 11 - - 36 ), 69 ) col1
----
3390
-33

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL + 62 * + 54 - + MIN ( ALL - 42 ), COALESCE ( - ( + 33 ), - COUNT ( * ) / - 42 + - + 91 + - + COALESCE ( + 14, + CAST ( 89 AS INTEGER ) * + 11 - - 36 ), 69 ) col1
----
3390
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6615
SELECT 31 * + MAX( - + 59 ) * - CASE + 79 WHEN + 87 + + CASE - 13 WHEN + ( + + ( - 98 ) ) THEN NULL WHEN 9 THEN - 62 * - COUNT( * ) WHEN + 35 - + 33 THEN NULL END + 4 DIV + CAST( + 81 * + 87 AS SIGNED ) * 24 THEN 12 DIV 9 WHEN 72 * - 1 THEN ( COUNT( * ) ) * 33 ELSE + 67 END
----
122543

skipif mysql # not compatible
query I rowsort label-6615
SELECT 31 * + MAX ( - + 59 ) * - CASE + 79 WHEN + 87 + + CASE - 13 WHEN + ( + + ( - 98 ) ) THEN NULL WHEN 9 THEN - 62 * - COUNT ( * ) WHEN + 35 - + 33 THEN NULL END + 4 / + CAST ( + 81 * + 87 AS INTEGER ) * 24 THEN 12 / 9 WHEN 72 * - 1 THEN ( COUNT ( * ) ) * 33 ELSE + 67 END
----
122543

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT MIN( ALL - + 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6616
SELECT MIN ( ALL - + 76 ) AS col0
----
-76

query I rowsort
SELECT 79 * + 92
----
7268

query I rowsort
SELECT 37 * + + 36 - + 8
----
1324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT CASE - CAST( - 45 AS SIGNED ) WHEN + + 38 THEN NULL ELSE NULLIF ( + 44, 38 + 69 * ( + COUNT( - + 62 ) ) ) * + - ( + 36 ) * 73 * - 67 END + 94
----
7747438

skipif mysql # not compatible
query I rowsort label-6619
SELECT CASE - CAST ( - 45 AS INTEGER ) WHEN + + 38 THEN NULL ELSE NULLIF ( + 44, 38 + 69 * ( + COUNT ( - + 62 ) ) ) * + - ( + 36 ) * 73 * - 67 END + 94
----
7747438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6620
SELECT ALL ( - + 15 ) * - CAST( NULL AS DECIMAL ) * + COUNT( - 92 ) + - - CASE - + CAST( 86 AS SIGNED ) WHEN COUNT( * ) THEN 97 * + + 18 + - 38 WHEN NULLIF ( - - 71, - 19 * + AVG ( DISTINCT 16 ) + 83 * + CAST( + 69 AS SIGNED ) ) THEN 0 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL ( - + 15 ) * - CAST ( NULL AS REAL ) * + COUNT ( - 92 ) + - - CASE - + CAST ( 86 AS INTEGER ) WHEN COUNT ( * ) THEN 97 * + + 18 + - 38 WHEN NULLIF ( - - 71, - 19 * + AVG ( DISTINCT 16 ) + 83 * + CAST ( + 69 AS INTEGER ) ) THEN 0 END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6621
SELECT 69 + + + 41, 52 DIV - 14 col2
----
110
-3

skipif mysql # not compatible
query II rowsort label-6621
SELECT 69 + + + 41, 52 / - 14 col2
----
110
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT MAX( DISTINCT - ( + - 79 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6622
SELECT MAX ( DISTINCT - ( + - 79 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT COUNT( ALL - 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT COUNT ( ALL - 18 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6624
SELECT ALL SUM( ALL - - 41 ) + + COUNT( ALL 75 ) AS col1, 23, + - CASE + + 47 WHEN + 86 THEN 77 + + NULLIF ( - 61, - COUNT( * ) ) WHEN AVG ( + CASE + 65 WHEN 61 + 96 THEN NULL WHEN - 28 THEN 0 * 49 WHEN 29 + + CAST( + 7 AS SIGNED ) THEN - 19 + - 69 END ) THEN NULL WHEN 84 THEN NULL END + + ( - 24 + 78 ) AS col2
----
42
23
NULL

skipif mysql # not compatible
query III rowsort label-6624
SELECT ALL SUM ( ALL - - 41 ) + + COUNT ( ALL 75 ) AS col1, 23, + - CASE + + 47 WHEN + 86 THEN 77 + + NULLIF ( - 61, - COUNT ( * ) ) WHEN AVG ( + CASE + 65 WHEN 61 + 96 THEN NULL WHEN - 28 THEN 0 * 49 WHEN 29 + + CAST ( + 7 AS INTEGER ) THEN - 19 + - 69 END ) THEN NULL WHEN 84 THEN NULL END + + ( - 24 + 78 ) AS col2
----
42
23
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT 5 * + 43 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT 5 * + 43 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 8, + 56 + + 81 + - 25 * + 22 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT + - 74 + + 90 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT ALL + 25 * + + 91 AS col1, + 10 + 49 + COUNT( * )
----
2275
60

skipif mysql # not compatible
query II rowsort label-6628
SELECT ALL + 25 * + + 91 AS col1, + 10 + 49 + COUNT ( * )
----
2275
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL 40 + 57 - + MIN( DISTINCT - - 56 ) - - - MAX( DISTINCT - - 83 ) - + - 49 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL 40 + 57 - + MIN ( DISTINCT - - 56 ) - - - MAX ( DISTINCT - - 83 ) - + - 49 * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT + COUNT( * ) + + 97
----
98

skipif mysql # not compatible
query I rowsort label-6630
SELECT + COUNT ( * ) + + 97
----
98

query I rowsort
SELECT DISTINCT - + 32 + + + 47
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT ALL - + CAST( 53 AS SIGNED ) * - 22 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - + CAST ( 53 AS INTEGER ) * - 22 AS col1
----
1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6633
SELECT ALL + 18 * - - 15 AS col0, + NULLIF ( MAX( - + 97 ), ( + NULLIF ( + + 8, + + 34 ) ) ) DIV - 62 AS col0
----
270
1

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL + 18 * - - 15 AS col0, + NULLIF ( MAX ( - + 97 ), ( + NULLIF ( + + 8, + + 34 ) ) ) / - 62 AS col0
----
270
1

query I rowsort
SELECT - 73 + - - 29 + - 39
----
-83

query I rowsort
SELECT DISTINCT + 1 - 70
----
-69

query I rowsort
SELECT ALL - + 56 - + 3 AS col2
----
-59

query II rowsort
SELECT ( - + 65 ), 53 + + ( ( - 3 ) ) col0
----
-65
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL + ( + + COUNT( * ) ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + ( + + COUNT ( * ) ) * + 42
----
42

query I rowsort
SELECT - 71 + - 32 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + ( + 76 ) + - + COUNT( * ) + ( COUNT( DISTINCT - + COALESCE ( - - 47, - - 20 ) ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6640
SELECT + ( + 76 ) + - + COUNT ( * ) + ( COUNT ( DISTINCT - + COALESCE ( - - 47, - - 20 ) ) ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - SUM( DISTINCT - - 88 ) + - MIN( 78 )
----
-166

skipif mysql # not compatible
query I rowsort label-6641
SELECT - SUM ( DISTINCT - - 88 ) + - MIN ( 78 )
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT + CAST( + - MIN( DISTINCT + - 3 ) AS SIGNED ) * - 49 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-6642
SELECT + CAST ( + - MIN ( DISTINCT + - 3 ) AS INTEGER ) * - 49 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + COUNT( * ) + + 36 * 17
----
613

skipif mysql # not compatible
query I rowsort label-6643
SELECT + COUNT ( * ) + + 36 * 17
----
613

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT ALL 5 DIV + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 5 / + 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT 42 * - COUNT( * ) + + 98 AS col1, + 59 + + 38 AS col0
----
56
97

skipif mysql # not compatible
query II rowsort label-6645
SELECT 42 * - COUNT ( * ) + + 98 AS col1, + 59 + + 38 AS col0
----
56
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL 23 * - - CASE + 48 WHEN - + 98 / - CASE 35 WHEN + 9 THEN - 53 WHEN - + 0 + - + 51 + - 15 * - 35 * - + 74 * + 97 * 46 * COUNT( * ) - - MAX( - 49 ) THEN NULL ELSE NULL END THEN - CAST( NULL AS SIGNED ) * COUNT( * ) WHEN 29 + ( - 5 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL 23 * - - CASE + 48 WHEN - + 98 / - CASE 35 WHEN + 9 THEN - 53 WHEN - + 0 + - + 51 + - 15 * - 35 * - + 74 * + 97 * 46 * COUNT ( * ) - - MAX ( - 49 ) THEN NULL ELSE NULL END THEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) WHEN 29 + ( - 5 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 29 * MAX( - - 12 )
----
-348

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 29 * MAX ( - - 12 )
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + SUM( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6648
SELECT + SUM ( 78 ) AS col0
----
78

query I rowsort
SELECT + 64 * - 39 AS col1
----
-2496

query I rowsort
SELECT + 81 + 86 AS col1
----
167

query I rowsort
SELECT ALL 63 * + NULLIF ( + 20, 33 * + ( 8 ) )
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + 75 * - COUNT( DISTINCT - 99 ) * + SUM( ALL - - 83 )
----
-6225

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 75 * - COUNT ( DISTINCT - 99 ) * + SUM ( ALL - - 83 )
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL 83 * + - COUNT( * ) + 50 - + 73 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL 83 * + - COUNT ( * ) + 50 - + 73 AS col2
----
-106

query I rowsort
SELECT ALL + 7 * 55
----
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - + 93 * - 53 + + MIN( ALL - 18 ) AS col1
----
4911

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - + 93 * - 53 + + MIN ( ALL - 18 ) AS col1
----
4911

query I rowsort
SELECT - ( 91 ) * + 56 * + + 67 * + - 99 + 12 AS col0
----
33801780

query I rowsort
SELECT + - 19 * + 43
----
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL - COUNT( * ) * 30 * + 92 col0
----
-2760

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - COUNT ( * ) * 30 * + 92 col0
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT + - MIN( ALL + + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT + - MIN ( ALL + + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - MIN( - + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6661
SELECT - MIN ( - + 14 ) AS col1
----
14

query I rowsort
SELECT ALL 18 * - + 91 AS col2
----
-1638

query I rowsort
SELECT DISTINCT - - 43 * - 42 - - + 56 AS col1
----
-1750

onlyif mysql # DIV for integer division: 
query II rowsort label-6664
SELECT ALL + 77, - 1 - - + 88 + + + 99 DIV 17 + + - 15 + - 9 AS col1
----
77
68

skipif mysql # not compatible
query II rowsort label-6664
SELECT ALL + 77, - 1 - - + 88 + + + 99 / 17 + + - 15 + - 9 AS col1
----
77
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6665
SELECT - 84 * - 0 * - 5 + + - 58 - - - CAST( NULL AS SIGNED ), 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6665
SELECT - 84 * - 0 * - 5 + + - 58 - - - CAST ( NULL AS INTEGER ), 58 AS col2
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT CASE - COALESCE ( 29, + 18 ) WHEN - ( + SUM( - 73 ) ) THEN - - 33 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT CASE - COALESCE ( 29, + 18 ) WHEN - ( + SUM ( - 73 ) ) THEN - - 33 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + COUNT( * ) * + 40 * + 65
----
2600

skipif mysql # not compatible
query I rowsort label-6667
SELECT + COUNT ( * ) * + 40 * + 65
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - SUM( + ( - 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-6668
SELECT - SUM ( + ( - 2 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6669
SELECT - 96 AS col0, - CAST( 44 AS SIGNED ) + - - ( + 80 ) AS col1
----
-96
36

skipif mysql # not compatible
query II rowsort label-6669
SELECT - 96 AS col0, - CAST ( 44 AS INTEGER ) + - - ( + 80 ) AS col1
----
-96
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT - COUNT( * ) * + 10, - 78 + - 63 AS col1
----
-10
-141

skipif mysql # not compatible
query II rowsort label-6670
SELECT - COUNT ( * ) * + 10, - 78 + - 63 AS col1
----
-10
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL CAST( - CAST( - ( - MIN( 25 ) ) AS SIGNED ) AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL CAST ( - CAST ( - ( - MIN ( 25 ) ) AS INTEGER ) AS INTEGER ) AS col2
----
-25

query I rowsort
SELECT ALL - 83 * - 71
----
5893

query I rowsort
SELECT - 88 * + 14
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT - 65 + - - 59 + - COUNT( - + 58 ) * - NULLIF ( + COUNT( ALL + CASE + 71 WHEN + - ( + - 44 ) THEN + + 63 WHEN + 53 THEN + - ( - 92 ) ELSE NULL END ), 57 ) * - NULLIF ( ( 71 ), - 33 ) * - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - 65 + - - 59 + - COUNT ( - + 58 ) * - NULLIF ( + COUNT ( ALL + CASE + 71 WHEN + - ( + - 44 ) THEN + + 63 WHEN + 53 THEN + - ( - 92 ) ELSE NULL END ), 57 ) * - NULLIF ( ( 71 ), - 33 ) * - COUNT ( * ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL + COUNT( * ) + 71 * + ( 95 ) - + 65
----
6681

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + COUNT ( * ) + 71 * + ( 95 ) - + 65
----
6681

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT - COUNT( DISTINCT + + 76 ) AS col1, 93 AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-6676
SELECT - COUNT ( DISTINCT + + 76 ) AS col1, 93 AS col1
----
-1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT ALL ( + + 59 ), - NULLIF ( + COUNT( * ), - + 85 ) * + + 21 AS col0
----
59
-21

skipif mysql # not compatible
query II rowsort label-6677
SELECT ALL ( + + 59 ), - NULLIF ( + COUNT ( * ), - + 85 ) * + + 21 AS col0
----
59
-21

query I rowsort
SELECT - 52 + - 31 * + 80 + - ( + 24 ) AS col2
----
-2556

query I rowsort
SELECT + 80 * + + 86 + + + 45
----
6925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6680
SELECT 46 AS col1, 43 + CASE + 78 WHEN - - 76 THEN - CAST( NULL AS SIGNED ) END + - CASE - 14 WHEN - - COALESCE ( + 76, - 2 ) + + 19 THEN - - ( + + ( 21 ) ) WHEN + 11 * ( 74 + CASE + 9 WHEN ( + ( + 0 ) ) THEN - 35 + 5 WHEN + 68 * - 26 + - MAX( ALL - 44 - + 19 ) / 38 THEN + 11 WHEN 45 * 84 + + 31 THEN + 92 + + 24 END ) THEN NULL END * CAST( + CASE 85 WHEN 32 THEN CASE + 27 WHEN - CAST( - 14 AS SIGNED ) THEN NULL ELSE 57 END ELSE NULL END AS SIGNED ) * 81 col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-6680
SELECT 46 AS col1, 43 + CASE + 78 WHEN - - 76 THEN - CAST ( NULL AS INTEGER ) END + - CASE - 14 WHEN - - COALESCE ( + 76, - 2 ) + + 19 THEN - - ( + + ( 21 ) ) WHEN + 11 * ( 74 + CASE + 9 WHEN ( + ( + 0 ) ) THEN - 35 + 5 WHEN + 68 * - 26 + - MAX ( ALL - 44 - + 19 ) / 38 THEN + 11 WHEN 45 * 84 + + 31 THEN + 92 + + 24 END ) THEN NULL END * CAST ( + CASE 85 WHEN 32 THEN CASE + 27 WHEN - CAST ( - 14 AS INTEGER ) THEN NULL ELSE 57 END ELSE NULL END AS INTEGER ) * 81 col0
----
46
NULL

query I rowsort
SELECT 14 * + ( - 52 ) AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT - COALESCE ( 35, ( COUNT( * ) ) * - 27 * 87 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - COALESCE ( 35, ( COUNT ( * ) ) * - 27 * 87 ) AS col2
----
-35

query I rowsort
SELECT 94 + + 18 * - - 85 * 13 AS col1
----
19984

query I rowsort
SELECT DISTINCT - ( + 62 ) AS col0
----
-62

query I rowsort
SELECT ALL - - 90 + + - 23 * - + 11
----
343

query I rowsort
SELECT ( + - ( - + 30 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT + + 17 DIV - 18 + MAX( 42 ) + + - 9
----
33

skipif mysql # not compatible
query I rowsort label-6687
SELECT + + 17 / - 18 + MAX ( 42 ) + + - 9
----
33

query II rowsort
SELECT 16 AS col0, 46 AS col0
----
16
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT - 5 * + COUNT( DISTINCT + 51 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6689
SELECT - 5 * + COUNT ( DISTINCT + 51 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL 44 * - 20 * - 88 * + MAX( DISTINCT + 66 ) col1
----
5111040

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL 44 * - 20 * - 88 * + MAX ( DISTINCT + 66 ) col1
----
5111040

query II rowsort
SELECT 16 AS col1, + 40 AS col2
----
16
40

query II rowsort
SELECT 53 AS col1, CASE - + 11 WHEN NULLIF ( + 12, 11 / + - 29 ) THEN 69 END AS col2
----
53
NULL

query I rowsort
SELECT ALL + 82 * + + 36 * 71
----
209592

query I rowsort
SELECT - 46 + + 98
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6695
SELECT + CASE COALESCE ( 65, - COUNT( * ), 78 * COUNT( * ) * + + 52 ) WHEN - - COALESCE ( + 19, ( - 19 ) * 25 * NULLIF ( + 61, - 37 * COALESCE ( - CAST( NULL AS DECIMAL ), - 45 / + 30 ) + - 25 + 21 * + NULLIF ( + 37 + - 35, 20 ) ) ) + 54 THEN + 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT + CASE COALESCE ( 65, - COUNT ( * ), 78 * COUNT ( * ) * + + 52 ) WHEN - - COALESCE ( + 19, ( - 19 ) * 25 * NULLIF ( + 61, - 37 * COALESCE ( - CAST ( NULL AS REAL ), - 45 / + 30 ) + - 25 + 21 * + NULLIF ( + 37 + - 35, 20 ) ) ) + 54 THEN + 88 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT ALL - CAST( 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - CAST ( 42 AS INTEGER ) AS col0
----
-42

query II rowsort
SELECT + 19 AS col2, + 68
----
19
68

query I rowsort
SELECT + + 22 * - 56 - - ( - 3 ) + - 98 + - 1 * + - 2 AS col2
----
-1331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6699
SELECT DISTINCT + COUNT( * ) * - 85, - CAST( NULL AS SIGNED ) col1
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-6699
SELECT DISTINCT + COUNT ( * ) * - 85, - CAST ( NULL AS INTEGER ) col1
----
-85
NULL

query I rowsort
SELECT - 48 * - 52
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT MAX( 71 ) * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6701
SELECT MAX ( 71 ) * COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6702
SELECT COUNT( 72 ) + 96 * + CASE + 47 WHEN + - 82 THEN NULL WHEN + 81 * - - NULLIF ( - + 69, - + 72 ) + 22 THEN COUNT( * ) ELSE NULL END - + ( - - NULLIF ( + + 64, + CASE + - NULLIF ( - MIN( + 17 ), + 22 * 90 ) WHEN CAST( NULL AS DECIMAL ) - 45 THEN + 26 WHEN + 30 THEN 59 WHEN - 78 / 14 THEN + 58 + 41 ELSE 46 + + 66 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT COUNT ( 72 ) + 96 * + CASE + 47 WHEN + - 82 THEN NULL WHEN + 81 * - - NULLIF ( - + 69, - + 72 ) + 22 THEN COUNT ( * ) ELSE NULL END - + ( - - NULLIF ( + + 64, + CASE + - NULLIF ( - MIN ( + 17 ), + 22 * 90 ) WHEN CAST ( NULL AS REAL ) - 45 THEN + 26 WHEN + 30 THEN 59 WHEN - 78 / 14 THEN + 58 + 41 ELSE 46 + + 66 END ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL 94 + - COUNT( * ) * + 13 + + + 32 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL 94 + - COUNT ( * ) * + 13 + + + 32 AS col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT + 33 + - - 94 - - 18 + - 28 DIV COUNT( * ) * + + COUNT( * ) DIV + - 84 * - 40 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + 33 + - - 94 - - 18 + - 28 / COUNT ( * ) * + + COUNT ( * ) / + - 84 * - 40 AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) + + 91 - + - 92 * + - 6 * - 36 * 84 AS col1
----
1669339

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) + + 91 - + - 92 * + - 6 * - 36 * 84 AS col1
----
1669339

query I rowsort
SELECT ALL 46 + + + 55 * + ( 71 ) AS col1
----
3951

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT 95 + - COUNT( * ) * 85 - 77 * - 33 * - ( - - 75 )
----
-190565

skipif mysql # not compatible
query I rowsort label-6707
SELECT 95 + - COUNT ( * ) * 85 - 77 * - 33 * - ( - - 75 )
----
-190565

query I rowsort
SELECT DISTINCT 81 + + COALESCE ( + 37, + + 11 - - 83 ) + + + 30
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6709
SELECT ALL - 79 + - + 97 AS col1, 33 - + + 16 - + - 17 DIV 68 - - 43 + - 3 * + - 20 * - 12 * + + 64 * + + COALESCE ( 67, + NULLIF ( - 50, + - COUNT( * ) ) ) - 53
----
-176
-3087353

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL - 79 + - + 97 AS col1, 33 - + + 16 - + - 17 / 68 - - 43 + - 3 * + - 20 * - 12 * + + 64 * + + COALESCE ( 67, + NULLIF ( - 50, + - COUNT ( * ) ) ) - 53
----
-176
-3087353

query I rowsort
SELECT 14 + 61 + + 81
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6711
SELECT ALL + 7 * - + MAX( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + 7 * - + MAX ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6712
SELECT DISTINCT 45 + - 64 col0, - 42 col2, + 85 * - MAX( + 61 ) * + - 95 AS col2
----
-19
-42
492575

skipif mysql # not compatible
query III rowsort label-6712
SELECT DISTINCT 45 + - 64 col0, - 42 col2, + 85 * - MAX ( + 61 ) * + - 95 AS col2
----
-19
-42
492575

query I rowsort
SELECT ALL - 44 * + + 16
----
-704

query I rowsort
SELECT DISTINCT - ( - - ( + - 2 ) ) AS col2
----
2

query I rowsort
SELECT DISTINCT - 35 + 63 + - 69
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT - CAST( - COALESCE ( 92, - - 73 * + + 73, - 33 ) AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - CAST ( - COALESCE ( 92, - - 73 * + + 73, - 33 ) AS INTEGER ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT SUM( + - 47 ) * + - 51 + - CAST( NULL AS SIGNED ) + + + ( 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT SUM ( + - 47 ) * + - 51 + - CAST ( NULL AS INTEGER ) + + + ( 37 ) AS col0
----
NULL

query I rowsort
SELECT - 36 + - 76 + + 56 * - 43 * + 49
----
-118104

query I rowsort
SELECT ALL - + 38 * + 17 col1
----
-646

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT - 3 * + 97 AS col2, MAX( + 90 )
----
-291
90

skipif mysql # not compatible
query II rowsort label-6720
SELECT - 3 * + 97 AS col2, MAX ( + 90 )
----
-291
90

query II rowsort
SELECT 32 * + - 15 AS col2, - CASE + + 40 WHEN - 40 - - 42 + 5 THEN + 30 END + + 69 AS col1
----
-480
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT DISTINCT + - COUNT( * ) - - 48 DIV + + 19 + - + 61 + + 73 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + - COUNT ( * ) - - 48 / + + 19 + - + 61 + + 73 AS col2
----
13

query I rowsort
SELECT ALL - ( 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT ( + 82 ) * + - NULLIF ( + 79, + - NULLIF ( + 76, 8 ) + 50 ) AS col0
----
-6478

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT + 96 - + NULLIF ( + + COALESCE ( - 47, + + ( + 37 ) ), - 38 ) DIV - + 9 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6725
SELECT + 96 - + NULLIF ( + + COALESCE ( - 47, + + ( + 37 ) ), - 38 ) / - + 9 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT 91 * ( - 90 ) + 40 + + + 75 DIV 25 AS col1
----
-8147

skipif mysql # not compatible
query I rowsort label-6726
SELECT 91 * ( - 90 ) + 40 + + + 75 / 25 AS col1
----
-8147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT ALL - 78 * - + MAX( + 96 ) * 66 + - 34 DIV - - 4 + - - ( - MAX( ALL + 3 ) ) + + COUNT( DISTINCT + 15 )
----
494198

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - 78 * - + MAX ( + 96 ) * 66 + - 34 / - - 4 + - - ( - MAX ( ALL + 3 ) ) + + COUNT ( DISTINCT + 15 )
----
494198

query I rowsort
SELECT ALL + - 95 * + 21 * 87
----
-173565

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6729
SELECT + 2 DIV - 73 - COUNT( * ), - 71 + COALESCE ( 29, - 24 ) AS col2
----
-1
-42

skipif mysql # not compatible
query II rowsort label-6729
SELECT + 2 / - 73 - COUNT ( * ), - 71 + COALESCE ( 29, - 24 ) AS col2
----
-1
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6730
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + + 21 - + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 21 - + - 92 AS col1
----
NULL

query I rowsort
SELECT - 46 - - + 3 * 43
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - 10 + 42 * + COUNT( * ) * 92 AS col1
----
3854

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 10 + 42 * + COUNT ( * ) * 92 AS col1
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL COUNT( * ) + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL COUNT ( * ) + 42 AS col1
----
43

query I rowsort
SELECT DISTINCT CASE 75 WHEN + - 13 * - COALESCE ( - + 61, - - 66, + 10 * - + COALESCE ( + 12, - + 35 + - - 97 ) + + + 69 + - 36 * + 35 * - 59 ) / 78 + 63 / + - 9 + - 91 * + 34 THEN 56 ELSE - 78 * 41 END
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - COUNT( ALL + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-6735
SELECT - COUNT ( ALL + 8 )
----
-1

query II rowsort
SELECT 47, + 2 AS col1
----
47
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT ALL 17 AS col0, + COUNT( * ) * - 77 col0
----
17
-77

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL 17 AS col0, + COUNT ( * ) * - 77 col0
----
17
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6738
SELECT + ( - - COALESCE ( COALESCE ( - 83, COUNT( DISTINCT - - 48 ) ), 67 * + ( + CASE + - 22 WHEN 21 + CAST( NULL AS SIGNED ) THEN NULL WHEN 99 + - ( - 8 ) THEN + + 18 ELSE - 26 - + - 16 * 57 END ), 32 * - 44 ) ) DIV - NULLIF ( + 18 - - 57, + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT + ( - - COALESCE ( COALESCE ( - 83, COUNT ( DISTINCT - - 48 ) ), 67 * + ( + CASE + - 22 WHEN 21 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 99 + - ( - 8 ) THEN + + 18 ELSE - 26 - + - 16 * 57 END ), 32 * - 44 ) ) / - NULLIF ( + 18 - - 57, + 0 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6739
SELECT DISTINCT 75 AS col1, - MIN( - + ( 36 ) ) + - 47
----
75
-11

skipif mysql # not compatible
query II rowsort label-6739
SELECT DISTINCT 75 AS col1, - MIN ( - + ( 36 ) ) + - 47
----
75
-11

query I rowsort
SELECT ALL 86 - + + 42
----
44

query II rowsort
SELECT ALL 28, CASE + - 28 WHEN - 51 THEN - + 38 ELSE NULL END + 28 AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT + 68 / - NULLIF ( - - SUM( - + CASE - 66 WHEN - 28 THEN 43 END ), + + COALESCE ( + - CASE + + SUM( ALL - 66 ) WHEN + 97 + - + 70 THEN 35 ELSE + MIN( DISTINCT - 1 ) END, + + 37 - + + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 68 / - NULLIF ( - - SUM ( - + CASE - 66 WHEN - 28 THEN 43 END ), + + COALESCE ( + - CASE + + SUM ( ALL - 66 ) WHEN + 97 + - + 70 THEN 35 ELSE + MIN ( DISTINCT - 1 ) END, + + 37 - + + 77 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT + COUNT( * ) + + + CASE - 31 WHEN - AVG ( - + 72 ) / - NULLIF ( + + COALESCE ( 27, CAST( NULL AS SIGNED ) ), - - 43 ) THEN NULL WHEN + 71 THEN NULL ELSE - COUNT( * ) * + 55 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6743
SELECT + COUNT ( * ) + + + CASE - 31 WHEN - AVG ( - + 72 ) / - NULLIF ( + + COALESCE ( 27, CAST ( NULL AS INTEGER ) ), - - 43 ) THEN NULL WHEN + 71 THEN NULL ELSE - COUNT ( * ) * + 55 END AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT 45 / - 36 + - CASE + COUNT( * ) WHEN - 18 THEN + - 21 WHEN - 47 THEN 94 ELSE NULL END + + + MAX( DISTINCT + - 78 ) * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT 45 / - 36 + - CASE + COUNT ( * ) WHEN - 18 THEN + - 21 WHEN - 47 THEN 94 ELSE NULL END + + + MAX ( DISTINCT + - 78 ) * - 39 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL - - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT + + 71 + + - ( 38 ), 69 + + COUNT( * ) AS col0
----
33
70

skipif mysql # not compatible
query II rowsort label-6746
SELECT + + 71 + + - ( 38 ), 69 + + COUNT ( * ) AS col0
----
33
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT - CAST( NULL AS SIGNED ) / + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT - CAST ( NULL AS INTEGER ) / + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL COUNT( * ) * - - 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL COUNT ( * ) * - - 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT + 81 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6749
SELECT + 81 + - COUNT ( * )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT + 39 * ( 63 ) + + ( + 89 ) - + + MIN( ALL - - 6 ) + - + 37 * 19 - - + 57 - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 39 * ( 63 ) + + ( + 89 ) - + + MIN ( ALL - - 6 ) + - + 37 * 19 - - + 57 - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 94 + - 86
----
8

query I rowsort
SELECT + + 19 * - 3
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT - + COUNT( * ) * + 32
----
-32

skipif mysql # not compatible
query I rowsort label-6753
SELECT - + COUNT ( * ) * + 32
----
-32

query I rowsort
SELECT + ( - 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 55 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 55 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL + - CAST( - - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + - CAST ( - - 54 AS INTEGER )
----
-54

query I rowsort
SELECT ALL - 56 * - + 76 + + 79 + + + 81 AS col1
----
4416

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6758
SELECT ALL + NULLIF ( + + 88, - ( + COUNT( * ) ) ) * + 18 + 12 * - 76 / + CAST( NULL AS DECIMAL ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6758
SELECT ALL + NULLIF ( + + 88, - ( + COUNT ( * ) ) ) * + 18 + 12 * - 76 / + CAST ( NULL AS REAL ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6759
SELECT ALL 43 * + + 54 + + COUNT( * ) * + 46, - CAST( NULL AS SIGNED ) AS col0, + 97 AS col0
----
2368
NULL
97

skipif mysql # not compatible
query III rowsort label-6759
SELECT ALL 43 * + + 54 + + COUNT ( * ) * + 46, - CAST ( NULL AS INTEGER ) AS col0, + 97 AS col0
----
2368
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT ALL + 24 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + 24 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT ALL + 51 DIV - 67 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL + 51 / - 67 * - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - CASE + COUNT( ALL - 21 ) WHEN 96 THEN NULL WHEN 87 THEN + - 49 END + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT - CASE + COUNT ( ALL - 21 ) WHEN 96 THEN NULL WHEN 87 THEN + - 49 END + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT ALL - 79 + 62, - COUNT( * ) * + 31 AS col1
----
-17
-31

skipif mysql # not compatible
query II rowsort label-6763
SELECT ALL - 79 + 62, - COUNT ( * ) * + 31 AS col1
----
-17
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT - 46 + + 37 DIV - + 85 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6764
SELECT - 46 + + 37 / - + 85 AS col0
----
-46

query I rowsort
SELECT DISTINCT - 34 + + 4
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT - 99 + - 57 + + + COUNT( * )
----
-155

skipif mysql # not compatible
query I rowsort label-6766
SELECT - 99 + - 57 + + + COUNT ( * )
----
-155

query I rowsort
SELECT - 75 + 84 + + 16 col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6768
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, 63 * - 69
----
1
-4347

skipif mysql # not compatible
query II rowsort label-6768
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 63 * - 69
----
1
-4347

query I rowsort
SELECT + 69 + - 27
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT + 45 + CAST( NULL AS SIGNED ) * MAX( ALL - 2 ) - COUNT( * ) + + 15 * + CASE - 63 WHEN + 31 + - 55 / - 45 THEN + - 82 * 60 END * + + 64 + MIN( DISTINCT - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT + 45 + CAST ( NULL AS INTEGER ) * MAX ( ALL - 2 ) - COUNT ( * ) + + 15 * + CASE - 63 WHEN + 31 + - 55 / - 45 THEN + - 82 * 60 END * + + 64 + MIN ( DISTINCT - 58 ) AS col2
----
NULL

query I rowsort
SELECT - 57 * + + CASE - ( 76 ) WHEN - + 26 THEN 65 * + 68 + - 5 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + 21 + ( - - 14 ) + 21 * MIN( DISTINCT - + 95 ) - + + 19 AS col1
----
-1979

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 21 + ( - - 14 ) + 21 * MIN ( DISTINCT - + 95 ) - + + 19 AS col1
----
-1979

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL - MIN( ALL - + ( + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - MIN ( ALL - + ( + 91 ) )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT - COUNT( * ) * 46 DIV - 76 * - - 88 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - COUNT ( * ) * 46 / - 76 * - - 88 * + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL - COUNT( * ) * - + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - COUNT ( * ) * - + 26 AS col2
----
26

query I rowsort
SELECT + COALESCE ( 44, 22 ) col2
----
44

query I rowsort
SELECT + CASE - + 58 WHEN + 58 THEN - 4 * + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6778
SELECT DISTINCT + COUNT( * ) DIV + 8 * + + 58 + - 38 DIV + MAX( ALL 46 ) * - - 9 + - 32 + - - 53
----
21

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT + COUNT ( * ) / + 8 * + + 58 + - 38 / + MAX ( ALL 46 ) * - - 9 + - 32 + - - 53
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT DISTINCT - + 95 DIV - + 79 + 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - + 95 / - + 79 + 21 AS col2
----
22

query I rowsort
SELECT + ( - 94 ) + - - ( + - 54 )
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6781
SELECT DISTINCT + COALESCE ( 60, COUNT( DISTINCT 13 ) * + - 52, + - COUNT( * ) ) DIV + SUM( DISTINCT + ( 60 ) ) + + 7 + + + 76 DIV 7 * 57 * + 9, - 14 + + + 88 DIV + - 56 col2, - 75 AS col2
----
5138
-15
-75

skipif mysql # not compatible
query III rowsort label-6781
SELECT DISTINCT + COALESCE ( 60, COUNT ( DISTINCT 13 ) * + - 52, + - COUNT ( * ) ) / + SUM ( DISTINCT + ( 60 ) ) + + 7 + + + 76 / 7 * 57 * + 9, - 14 + + + 88 / + - 56 col2, - 75 AS col2
----
5138
-15
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6782
SELECT DISTINCT - 60 DIV - + 27 + - + COALESCE ( + COUNT( * ), + COUNT( ALL + - 99 ) * + CAST( 59 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - 60 / - + 27 + - + COALESCE ( + COUNT ( * ), + COUNT ( ALL + - 99 ) * + CAST ( 59 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT ALL + NULLIF ( - ( + + COUNT( * ) ), - + 67 ), 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-6783
SELECT ALL + NULLIF ( - ( + + COUNT ( * ) ), - + 67 ), 19 AS col1
----
-1
19

query I rowsort
SELECT ( + ( - - 81 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT ( 26 ) * - MAX( + 20 ) / - - 82 * - ( + 32 ) * CASE + 76 WHEN + 68 THEN COUNT( + + NULLIF ( 80, - COALESCE ( - + 69, + 31 * - 87 * + 46 / 75 * - 82 ) ) ) + NULLIF ( AVG ( 73 ), - 1 ) * + CASE WHEN ( NULL ) IS NULL THEN + 15 ELSE + 23 END WHEN - 39 THEN - 0 * - CAST( NULL AS SIGNED ) END + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT ( 26 ) * - MAX ( + 20 ) / - - 82 * - ( + 32 ) * CASE + 76 WHEN + 68 THEN COUNT ( + + NULLIF ( 80, - COALESCE ( - + 69, + 31 * - 87 * + 46 / 75 * - 82 ) ) ) + NULLIF ( AVG ( 73 ), - 1 ) * + CASE WHEN ( NULL ) IS NULL THEN + 15 ELSE + 23 END WHEN - 39 THEN - 0 * - CAST ( NULL AS INTEGER ) END + - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT 95 + + 27 * + 39 - + NULLIF ( - CASE - 33 WHEN + 92 THEN + 92 WHEN - + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 32 + 83 THEN NULL ELSE NULL END, + 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT 95 + + 27 * + 39 - + NULLIF ( - CASE - 33 WHEN + 92 THEN + 92 WHEN - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 32 + 83 THEN NULL ELSE NULL END, + 87 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6787
SELECT + 45 AS col2, 23 DIV - + 73
----
45
0

skipif mysql # not compatible
query II rowsort label-6787
SELECT + 45 AS col2, 23 / - + 73
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 4 + NULLIF ( - + 92, - 43 * - COUNT( * ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6788
SELECT 4 + NULLIF ( - + 92, - 43 * - COUNT ( * ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT DISTINCT - COUNT( * ) AS col1, 40 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT - COUNT ( * ) AS col1, 40 AS col0
----
-1
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT ALL 29 - + MIN( ALL - 12 ) AS col1, 23 * NULLIF ( - - 54, + 73 ) * - COUNT( * ) * - + 42 + COUNT( * ) + + + 63 * 59 + - 50 - + 44 + + 89 AS col0
----
41
55877

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL 29 - + MIN ( ALL - 12 ) AS col1, 23 * NULLIF ( - - 54, + 73 ) * - COUNT ( * ) * - + 42 + COUNT ( * ) + + + 63 * 59 + - 50 - + 44 + + 89 AS col0
----
41
55877

query I rowsort
SELECT ALL + 48 - + 95 AS col2
----
-47

query I rowsort
SELECT 10 * - - 78 * 48 AS col0
----
37440

query I rowsort
SELECT 23 * + 63 col2
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT 94 * MIN( - 82 ) AS col2
----
-7708

skipif mysql # not compatible
query I rowsort label-6794
SELECT 94 * MIN ( - 82 ) AS col2
----
-7708

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT 0 DIV - - 33
----
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT 0 / - - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT 10 - 36 - - 28 * + COUNT( * ) + - + 65
----
-63

skipif mysql # not compatible
query I rowsort label-6796
SELECT 10 - 36 - - 28 * + COUNT ( * ) + - + 65
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT NULLIF ( - 8, + - CAST( NULL AS SIGNED ) + + 16 * + 87 ) * + SUM( ALL - CAST( + - 83 AS SIGNED ) )
----
-664

skipif mysql # not compatible
query I rowsort label-6797
SELECT NULLIF ( - 8, + - CAST ( NULL AS INTEGER ) + + 16 * + 87 ) * + SUM ( ALL - CAST ( + - 83 AS INTEGER ) )
----
-664

query II rowsort
SELECT DISTINCT 82 AS col1, - 43 * + 73
----
82
-3139

query I rowsort
SELECT ALL - 86 * 89 * 11
----
-84194

query I rowsort
SELECT ALL + ( + + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + 92 * 86 * - + COALESCE ( - COUNT( * ), - + 64 ) * + - 35 col2
----
-276920

skipif mysql # not compatible
query I rowsort label-6801
SELECT + 92 * 86 * - + COALESCE ( - COUNT ( * ), - + 64 ) * + - 35 col2
----
-276920

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT DISTINCT + COUNT( * ) * - 80 + + 74 AS col2, 38 AS col1
----
-6
38

skipif mysql # not compatible
query II rowsort label-6802
SELECT DISTINCT + COUNT ( * ) * - 80 + + 74 AS col2, 38 AS col1
----
-6
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + ( - ( + 41 ) ) + - - CASE + - ( + ( + 22 ) ) WHEN + + CASE + + 62 WHEN - - 2 - - + NULLIF ( + 73, - 89 ) / + 57 - - 91 * 44 / - 50 + - COUNT( ALL - 87 ) THEN + 56 END * COUNT( * ) + 49 THEN - 24 + 71 WHEN + 99 * + COALESCE ( CASE + COUNT( * ) WHEN 10 THEN NULL ELSE + 33 END, - 56 + + 12 ) THEN NULL END + - COUNT( * ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT + ( - ( + 41 ) ) + - - CASE + - ( + ( + 22 ) ) WHEN + + CASE + + 62 WHEN - - 2 - - + NULLIF ( + 73, - 89 ) / + 57 - - 91 * 44 / - 50 + - COUNT ( ALL - 87 ) THEN + 56 END * COUNT ( * ) + 49 THEN - 24 + 71 WHEN + 99 * + COALESCE ( CASE + COUNT ( * ) WHEN 10 THEN NULL ELSE + 33 END, - 56 + + 12 ) THEN NULL END + - COUNT ( * ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT - MIN( - 69 ) * + - COUNT( * ) AS col2, - 2 * 63 + - 61 AS col0
----
-69
-187

skipif mysql # not compatible
query II rowsort label-6804
SELECT - MIN ( - 69 ) * + - COUNT ( * ) AS col2, - 2 * 63 + - 61 AS col0
----
-69
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT + 63 + - + CAST( NULL AS SIGNED ) / - 59 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT + 63 + - + CAST ( NULL AS INTEGER ) / - 59 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - CASE 5 WHEN - NULLIF ( - 84, + MAX( 74 ) ) THEN - + MAX( - + 62 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT - CASE 5 WHEN - NULLIF ( - 84, + MAX ( 74 ) ) THEN - + MAX ( - + 62 ) END
----
NULL

query I rowsort
SELECT + 46 * 8 - + - 3
----
371

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6808
SELECT CAST( NULL AS DECIMAL ) * + 21 * 39 + - COALESCE ( - 5, - NULLIF ( CASE - ( - 0 ) WHEN - 70 * - 33 THEN + 16 END, + COUNT( * ) ) / CASE - + 91 WHEN + - ( + - CASE - - CASE + - COUNT( - - 6 ) WHEN - 40 * - 26 THEN NULL WHEN ( - 75 ) THEN + CASE - 16 WHEN - 68 * + 60 + - 85 THEN COUNT( * ) + 71 WHEN MIN( 8 ) THEN NULL WHEN - 40 - + ( 50 ) THEN - 4 * COUNT( * ) END / COUNT( ALL COALESCE ( - COALESCE ( 14, - 35 ), - ( 24 ) ) ) END WHEN COUNT( * ) THEN 29 + 1 * + 66 ELSE NULL END ) THEN NULL WHEN - COUNT( * ) THEN + 13 END ) * - 58 + 11 * + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT CAST ( NULL AS REAL ) * + 21 * 39 + - COALESCE ( - 5, - NULLIF ( CASE - ( - 0 ) WHEN - 70 * - 33 THEN + 16 END, + COUNT ( * ) ) / CASE - + 91 WHEN + - ( + - CASE - - CASE + - COUNT ( - - 6 ) WHEN - 40 * - 26 THEN NULL WHEN ( - 75 ) THEN + CASE - 16 WHEN - 68 * + 60 + - 85 THEN COUNT ( * ) + 71 WHEN MIN ( 8 ) THEN NULL WHEN - 40 - + ( 50 ) THEN - 4 * COUNT ( * ) END / COUNT ( ALL COALESCE ( - COALESCE ( 14, - 35 ), - ( 24 ) ) ) END WHEN COUNT ( * ) THEN 29 + 1 * + 66 ELSE NULL END ) THEN NULL WHEN - COUNT ( * ) THEN + 13 END ) * - 58 + 11 * + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT + 80 DIV + 77 + + NULLIF ( COUNT( * ), + 94 * - 65 + + 11 * + + COUNT( * ) ) DIV + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6809
SELECT + 80 / + 77 + + NULLIF ( COUNT ( * ), + 94 * - 65 + + 11 * + + COUNT ( * ) ) / + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - SUM( - 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - SUM ( - 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL + COUNT( * ) * + - ( MAX( ALL + 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + COUNT ( * ) * + - ( MAX ( ALL + 64 ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT - 97 + + COUNT( - 82 ) + + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - 97 + + COUNT ( - 82 ) + + 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - COUNT( + 46 ) * - NULLIF ( - 9, + + 37 ) + + 90 + - 43 + + 35 * - CASE - - ( + 43 ) WHEN - 11 THEN - + 53 * 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT - COUNT ( + 46 ) * - NULLIF ( - 9, + + 37 ) + + 90 + - 43 + + 35 * - CASE - - ( + 43 ) WHEN - 11 THEN - + 53 * 51 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL 17 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 17 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT - SUM( ( + 16 ) ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - SUM ( ( + 16 ) ) col1
----
-16

query II rowsort
SELECT ALL - 23 AS col1, 63
----
-23
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6817
SELECT DISTINCT 47 DIV - 29 AS col0, SUM( ALL - 95 ) AS col2
----
-1
-95

skipif mysql # not compatible
query II rowsort label-6817
SELECT DISTINCT 47 / - 29 AS col0, SUM ( ALL - 95 ) AS col2
----
-1
-95

query I rowsort
SELECT DISTINCT 11 - - + 59
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT ALL 81 DIV + - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL 81 / + - 44 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT 13 * + + 31 * + + SUM( 51 )
----
20553

skipif mysql # not compatible
query I rowsort label-6820
SELECT 13 * + + 31 * + + SUM ( 51 )
----
20553

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6821
SELECT 20 - + NULLIF ( 24, - ( + - 98 ) ) + + 63 * - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT 20 - + NULLIF ( 24, - ( + - 98 ) ) + + 63 * - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT 75 * + 40
----
3000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6823
SELECT - 67, + ( + CAST( NULL AS SIGNED ) ) AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-6823
SELECT - 67, + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-67
NULL

query I rowsort
SELECT 3 * 32 AS col1
----
96

query I rowsort
SELECT 39 * 74 AS col1
----
2886

query I rowsort
SELECT 10 + - - 39
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL 77 AS col1, + COUNT( - 33 ) col0
----
77
1

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL 77 AS col1, + COUNT ( - 33 ) col0
----
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT CAST( NULL AS SIGNED ) + 94 * 43 * - - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT CAST ( NULL AS INTEGER ) + 94 * 43 * - - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT ALL 79 AS col2, COUNT( * ) * + 67 - - + 97 AS col1
----
79
164

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL 79 AS col2, COUNT ( * ) * + 67 - - + 97 AS col1
----
79
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL 74 * - MAX( - 56 ) AS col2
----
4144

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL 74 * - MAX ( - 56 ) AS col2
----
4144

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT 29 + - MIN( DISTINCT - NULLIF ( - 70, + 68 ) ) + + 57 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6831
SELECT 29 + - MIN ( DISTINCT - NULLIF ( - 70, + 68 ) ) + + 57 AS col1
----
16

query I rowsort
SELECT ALL + 78 + 41 AS col0
----
119

query I rowsort
SELECT - 90 + - - 64 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6834
SELECT 48 DIV - - 50 AS col0, COALESCE ( - - ( - 22 ), 3 * ( COUNT( * ) ) ) * 7 * + 4 AS col0
----
0
-616

skipif mysql # not compatible
query II rowsort label-6834
SELECT 48 / - - 50 AS col0, COALESCE ( - - ( - 22 ), 3 * ( COUNT ( * ) ) ) * 7 * + 4 AS col0
----
0
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL - - ( + COUNT( * ) ) DIV + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - - ( + COUNT ( * ) ) / + 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - - MIN( ALL + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6836
SELECT - - MIN ( ALL + 60 )
----
60

query I rowsort
SELECT ALL + 26 * 14 + - 17
----
347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT ALL - 62 + 14 * + 91 DIV - COUNT( * ) AS col1
----
-1336

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 62 + 14 * + 91 / - COUNT ( * ) AS col1
----
-1336

onlyif mysql # aggregate syntax: 
query II rowsort label-6839
SELECT + 38, 48 * + 20 * 15 - 30 + + NULLIF ( + - ( - 46 ), + COUNT( * ) * - 53 ) * + 61 AS col2
----
38
17176

skipif mysql # not compatible
query II rowsort label-6839
SELECT + 38, 48 * + 20 * 15 - 30 + + NULLIF ( + - ( - 46 ), + COUNT ( * ) * - 53 ) * + 61 AS col2
----
38
17176

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT + + CASE 72 WHEN + 18 THEN - 59 * - 93 WHEN 29 THEN + 73 WHEN + - 49 / 3 THEN - 63 + - - COUNT( * ) END * 26 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + + CASE 72 WHEN + 18 THEN - 59 * - 93 WHEN 29 THEN + 73 WHEN + - 49 / 3 THEN - 63 + - - COUNT ( * ) END * 26 * + 63
----
NULL

query I rowsort
SELECT ALL 57 * + COALESCE ( + 88, 1, + - 77 ) + + 2 + - 49 * - 10
----
5508

query I rowsort
SELECT DISTINCT ( - 87 ) * 53 - 41 * - 54 AS col1
----
-2397

query II rowsort
SELECT + 56, - 70 AS col0
----
56
-70

query I rowsort
SELECT + 46 * ( - 68 ) * - + COALESCE ( + + 50, 80 * + 59 + 81 ) * - 5 + + 68
----
-781932

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT COALESCE ( + COUNT( * ), 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6845
SELECT COALESCE ( + COUNT ( * ), 82 ) AS col0
----
1

query I rowsort
SELECT ALL + ( + NULLIF ( 87, - 64 ) )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT - SUM( DISTINCT + 26 ) * + 99 + - 15 * + 87, + 54 AS col0
----
-3879
54

skipif mysql # not compatible
query II rowsort label-6847
SELECT - SUM ( DISTINCT + 26 ) * + 99 + - 15 * + 87, + 54 AS col0
----
-3879
54

query I rowsort
SELECT ALL - 21 * - 61 * - - 27 col1
----
34587

query I rowsort
SELECT DISTINCT + 3 * - 30
----
-90

query II rowsort
SELECT + 52 * 7, + 32 AS col1
----
364
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - 43 * + + COUNT( * ) + - 43
----
-86

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 43 * + + COUNT ( * ) + - 43
----
-86

query I rowsort
SELECT + 46 + + 83 - + 89 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6853
SELECT + 16 DIV + ( - + COUNT( * ) ) AS col1, 39 * + 7 col0
----
-16
273

skipif mysql # not compatible
query II rowsort label-6853
SELECT + 16 / + ( - + COUNT ( * ) ) AS col1, 39 * + 7 col0
----
-16
273

query I rowsort
SELECT DISTINCT + ( + - 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT MAX( + CAST( - ( + 93 ) AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-6855
SELECT MAX ( + CAST ( - ( + 93 ) AS INTEGER ) )
----
-93

query I rowsort
SELECT DISTINCT 33 + + 97
----
130

query I rowsort
SELECT + 62 * + 0 * + 83 * + 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6858
SELECT + 18 DIV 1 + - - CASE + 58 WHEN + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) THEN - ( COUNT( * ) ) DIV + ( + 89 ) - + 68 ELSE + 23 END AS col0, 43 AS col2
----
41
43

skipif mysql # not compatible
query II rowsort label-6858
SELECT + 18 / 1 + - - CASE + 58 WHEN + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - ( COUNT ( * ) ) / + ( + 89 ) - + 68 ELSE + 23 END AS col0, 43 AS col2
----
41
43

query I rowsort
SELECT + 87 * NULLIF ( + 32, - 70 ) AS col1
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL - COALESCE ( + 68, 35, + ( ( - NULLIF ( + 14, + + 39 * - - 30 + + 79 ) ) ), - + 36 * - + COUNT( * ) ) + + 7 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - COALESCE ( + 68, 35, + ( ( - NULLIF ( + 14, + + 39 * - - 30 + + 79 ) ) ), - + 36 * - + COUNT ( * ) ) + + 7 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + COUNT( * ) * - 27 * + + ( + 62 ) AS col1
----
-1674

skipif mysql # not compatible
query I rowsort label-6861
SELECT + COUNT ( * ) * - 27 * + + ( + 62 ) AS col1
----
-1674

query I rowsort
SELECT - ( 11 ) * + + ( - ( - 66 ) )
----
-726

query I rowsort
SELECT ALL - ( ( + 79 ) ) + + ( - - ( - - 45 ) ) col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT + - 60 - + - 18 + - 31 + - NULLIF ( 49, + SUM( ALL - 54 ) ) DIV + ( + 3 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6864
SELECT + - 60 - + - 18 + - 31 + - NULLIF ( 49, + SUM ( ALL - 54 ) ) / + ( + 3 ) AS col2
----
-89

query I rowsort
SELECT ALL + 97 * 83 AS col0
----
8051

query I rowsort
SELECT + ( 71 ) + + + 76
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT - COUNT( * ) - + - COUNT( * ), + 66 AS col2
----
0
66

skipif mysql # not compatible
query II rowsort label-6867
SELECT - COUNT ( * ) - + - COUNT ( * ), + 66 AS col2
----
0
66

query I rowsort
SELECT + 61 + 10
----
71

query I rowsort
SELECT - + 53 * 88 + + 49 AS col0
----
-4615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL + + 92 * - CASE - 92 WHEN - 88 / + + 46 THEN NULL WHEN - - 45 * + CAST( + + 5 AS SIGNED ) * + 92 THEN + - 7 + 11 * + 23 * - - MAX( ALL + + 97 ) - + 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + + 92 * - CASE - 92 WHEN - 88 / + + 46 THEN NULL WHEN - - 45 * + CAST ( + + 5 AS INTEGER ) * + 92 THEN + - 7 + 11 * + 23 * - - MAX ( ALL + + 97 ) - + 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT + MIN( DISTINCT + 25 ) DIV + 16 + 36 * - 71 AS col0
----
-2555

skipif mysql # not compatible
query I rowsort label-6871
SELECT + MIN ( DISTINCT + 25 ) / + 16 + 36 * - 71 AS col0
----
-2555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL + CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT - CAST( NULL AS SIGNED ) * + 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT - CAST ( NULL AS INTEGER ) * + 32 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT ALL + 89 * COUNT( * ) * - 85 AS col1, 14 * - COUNT( * ) + - 0 + - COUNT( * )
----
-7565
-15

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL + 89 * COUNT ( * ) * - 85 AS col1, 14 * - COUNT ( * ) + - 0 + - COUNT ( * )
----
-7565
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL - 34 * MAX( ALL 11 ) AS col2
----
-374

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - 34 * MAX ( ALL 11 ) AS col2
----
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT - 52 DIV - 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6876
SELECT - 52 / - 27 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT - 70 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT - 70 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL + MAX( DISTINCT - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL + MAX ( DISTINCT - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT - COALESCE ( - 44, + 53 * + 82 + + ( + 13 ) ) * - COALESCE ( - + 47, + 22, - - ( + COUNT( * ) ) ) AS col2
----
2068

skipif mysql # not compatible
query I rowsort label-6879
SELECT - COALESCE ( - 44, + 53 * + 82 + + ( + 13 ) ) * - COALESCE ( - + 47, + 22, - - ( + COUNT ( * ) ) ) AS col2
----
2068

query I rowsort
SELECT + 5 + + - 91 + - 84 * - + ( - + 34 ) AS col0
----
-2942

query I rowsort
SELECT + NULLIF ( + 1, 55 )
----
1

query I rowsort
SELECT - 34 - + 45 AS col0
----
-79

query II rowsort
SELECT + 62, 96 AS col0
----
62
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT ALL + COUNT( * ) col2, - 34 AS col2
----
1
-34

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL + COUNT ( * ) col2, - 34 AS col2
----
1
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT ( + ( CAST( NULL AS SIGNED ) ) ) * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT ( + ( CAST ( NULL AS INTEGER ) ) ) * + - 74
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 76, COALESCE ( + 89, + 78, - 44 ) ) * + 77 + + + ( - 3 ) - + 51 + - 5
----
-5911

query I rowsort
SELECT ALL + 54 * - 77 + ( 94 ) * + 63 * - 72 AS col0
----
-430542

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT ALL + 71 * - 68 + + 17 DIV + 54 * - 79
----
-4828

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + 71 * - 68 + + 17 / + 54 * - 79
----
-4828

query II rowsort
SELECT ALL 5 AS col2, 68
----
5
68

query II rowsort
SELECT 68 AS col0, ( - + 44 ) + + 26 AS col2
----
68
-18

query I rowsort
SELECT + - 31 * + 34
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT COALESCE ( 93, + COUNT( * ), + + 43 )
----
93

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT COALESCE ( 93, + COUNT ( * ), + + 43 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT ALL 91 DIV 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL 91 / 40 AS col2
----
2

query I rowsort
SELECT + 65 + + 65 col0
----
130

query I rowsort
SELECT ALL 35 - - + 35 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT DISTINCT - 76 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - 76 / 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6897
SELECT - 18 / + + 98 * - - 85 * + CAST( NULL AS SIGNED ) AS col2, - 3 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6897
SELECT - 18 / + + 98 * - - 85 * + CAST ( NULL AS INTEGER ) AS col2, - 3 AS col1
----
NULL
-3

query I rowsort
SELECT 3 + - 10 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6899
SELECT ALL - COALESCE ( 90, - CASE - CASE - 47 WHEN - 9 * COUNT( * ) THEN 5 END WHEN + - 5 THEN 7 END + - + COUNT( * ) + - CASE - ( + 37 ) WHEN + 75 THEN + 6 ELSE + 4 END, - 73 * + - NULLIF ( 91, - ( - 68 ) * + 23 + 53 ), + 42 - - 8 DIV 26 ) * - 74
----
6660

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - COALESCE ( 90, - CASE - CASE - 47 WHEN - 9 * COUNT ( * ) THEN 5 END WHEN + - 5 THEN 7 END + - + COUNT ( * ) + - CASE - ( + 37 ) WHEN + 75 THEN + 6 ELSE + 4 END, - 73 * + - NULLIF ( 91, - ( - 68 ) * + 23 + 53 ), + 42 - - 8 / 26 ) * - 74
----
6660

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT - 57 AS col2, + 66 + + SUM( DISTINCT - 95 ) * - 88 col1
----
-57
8426

skipif mysql # not compatible
query II rowsort label-6900
SELECT - 57 AS col2, + 66 + + SUM ( DISTINCT - 95 ) * - 88 col1
----
-57
8426

query I rowsort
SELECT ALL 37 * 98 * 80
----
290080

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT - MIN( ALL + 93 ) * + - 67 + 57
----
6288

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - MIN ( ALL + 93 ) * + - 67 + 57
----
6288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 54 ) * 15 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT COUNT( * ) * - 16 * ( - ( 12 ) ) - ( - 98 ) - - - COUNT( * )
----
289

skipif mysql # not compatible
query I rowsort label-6905
SELECT COUNT ( * ) * - 16 * ( - ( 12 ) ) - ( - 98 ) - - - COUNT ( * )
----
289

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6906
SELECT CAST( + ( 45 ) AS SIGNED ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT CAST ( + ( 45 ) AS INTEGER ) / - 49 AS col0
----
0

query II rowsort
SELECT 13 - 52 AS col2, 49
----
-39
49

onlyif mysql # DIV for integer division: 
query II rowsort label-6908
SELECT ALL 99 DIV - 19, 75 AS col1
----
-5
75

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL 99 / - 19, 75 AS col1
----
-5
75

query I rowsort
SELECT DISTINCT 16 + + - 66 AS col2
----
-50

query I rowsort
SELECT 29 * - 3 AS col2
----
-87

query I rowsort
SELECT ALL - 95 + + 32 + + NULLIF ( + + 57, 78 ) * + 15 AS col0
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT CAST( NULL AS SIGNED ) * - + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT CAST ( NULL AS INTEGER ) * - + 59 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + 79 / - 67 + + - 51 - - 78 THEN + ( 85 ) - CAST( NULL AS SIGNED ) END * - 1 * + + 6 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + 79 / - 67 + + - 51 - - 78 THEN + ( 85 ) - CAST ( NULL AS INTEGER ) END * - 1 * + + 6 + + 88
----
NULL

query I rowsort
SELECT 58 - + - 10
----
68

query I rowsort
SELECT 64 + ( + 58 )
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT - COUNT( * ) * + CAST( + - 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6916
SELECT - COUNT ( * ) * + CAST ( + - 98 AS INTEGER ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT - CASE - 12 WHEN 94 THEN + COUNT( * ) / + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - CASE - 12 WHEN 94 THEN + COUNT ( * ) / + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 38 - 10 + - 96 AS col0
----
-144

query I rowsort
SELECT ALL 80 * - - 55 * - 25
----
-110000

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + MIN( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6920
SELECT + MIN ( - 20 )
----
-20

query II rowsort
SELECT DISTINCT + 47 * 40 * 5 * - 45 col1, - 28 * 36
----
-423000
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT COUNT( * ) * - + 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6922
SELECT COUNT ( * ) * - + 29 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT - ( NULLIF ( - COUNT( * ), + - 12 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT - ( NULLIF ( - COUNT ( * ), + - 12 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - SUM( ALL + + 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6924
SELECT - SUM ( ALL + + 38 ) AS col2
----
-38

query I rowsort
SELECT - 25 * - + 99 AS col0
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT CAST( NULL AS SIGNED ) * - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT CAST ( NULL AS INTEGER ) * - + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT 71 * NULLIF ( + ( + - 60 ), - 33 * SUM( ALL + + ( 97 ) ) ) AS col1
----
-4260

skipif mysql # not compatible
query I rowsort label-6927
SELECT 71 * NULLIF ( + ( + - 60 ), - 33 * SUM ( ALL + + ( 97 ) ) ) AS col1
----
-4260

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6928
SELECT - CASE - - ( - 27 ) WHEN + CAST( NULL AS DECIMAL ) THEN - 32 ELSE + 69 END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6928
SELECT - CASE - - ( - 27 ) WHEN + CAST ( NULL AS REAL ) THEN - 32 ELSE + 69 END AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT 51 * + + CAST( 25 AS SIGNED )
----
1275

skipif mysql # not compatible
query I rowsort label-6929
SELECT 51 * + + CAST ( 25 AS INTEGER )
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT + SUM( + - 30 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT + SUM ( + - 30 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6931
SELECT ALL - - COUNT( * ) DIV + - 64 AS col1, 64
----
0
64

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL - - COUNT ( * ) / + - 64 AS col1, 64
----
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ( + 41 ) - + NULLIF ( - 8, + - COUNT( * ) + + 63 + + 99 )
----
49

skipif mysql # not compatible
query I rowsort label-6932
SELECT ( + 41 ) - + NULLIF ( - 8, + - COUNT ( * ) + + 63 + + 99 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT SUM( ALL + 29 ) * 54 - 59
----
1507

skipif mysql # not compatible
query I rowsort label-6933
SELECT SUM ( ALL + 29 ) * 54 - 59
----
1507

query I rowsort
SELECT 88 + - + 95 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COUNT( * ) - - ( - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT COUNT ( * ) - - ( - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT CASE + 21 WHEN 48 + - 76 * + 87 THEN + 76 * + 55 + - 42 + 10 * + ( - + COUNT( * ) ) WHEN - - 48 THEN NULL END + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT CASE + 21 WHEN 48 + - 76 * + 87 THEN + 76 * + 55 + - 42 + 10 * + ( - + COUNT ( * ) ) WHEN - - 48 THEN NULL END + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6937
SELECT 88 AS col0, MIN( - 60 ) + + COUNT( * ) - 91 + + 63 * 94 DIV COALESCE ( + 40, + CAST( NULL AS SIGNED ), - MAX( DISTINCT + 31 ) ) * + - NULLIF ( NULLIF ( ( - 98 ), + - 91 + 34 ), - 81 * + 62 ) * 23 * + 37 - - 5 AS col1, + NULLIF ( + + 59, - 12 )
----
88
12342759
59

skipif mysql # not compatible
query III rowsort label-6937
SELECT 88 AS col0, MIN ( - 60 ) + + COUNT ( * ) - 91 + + 63 * 94 / COALESCE ( + 40, + CAST ( NULL AS INTEGER ), - MAX ( DISTINCT + 31 ) ) * + - NULLIF ( NULLIF ( ( - 98 ), + - 91 + 34 ), - 81 * + 62 ) * 23 * + 37 - - 5 AS col1, + NULLIF ( + + 59, - 12 )
----
88
12342759
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL ( - - SUM( - 17 ) ) + + NULLIF ( 84, - 95 * 47 + 59 + - 67 / - 90 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL ( - - SUM ( - 17 ) ) + + NULLIF ( 84, - 95 * 47 + 59 + - 67 / - 90 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT COUNT( - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-6939
SELECT COUNT ( - - 89 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6940
SELECT ALL COUNT( * ) * - 3 DIV + 32 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL COUNT ( * ) * - 3 / + 32 + - - 58
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT 72 DIV - 86 * + + 42 + - 38 + - - 11
----
-27

skipif mysql # not compatible
query I rowsort label-6941
SELECT 72 / - 86 * + + 42 + - 38 + - - 11
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6942
SELECT ALL - 84, 0 * - 22 * - MIN( + + 33 ) DIV - + 16 AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL - 84, 0 * - 22 * - MIN ( + + 33 ) / - + 16 AS col1
----
-84
0

query I rowsort
SELECT DISTINCT - 16 * 4 + 0 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL + COUNT( * ) * + 72 * - - 84 + 91 AS col1
----
6139

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + COUNT ( * ) * + 72 * - - 84 + 91 AS col1
----
6139

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT SUM( 18 )
----
18

skipif mysql # not compatible
query I rowsort label-6945
SELECT SUM ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT 13 * + SUM( + 57 ) * + 59 AS col2
----
43719

skipif mysql # not compatible
query I rowsort label-6946
SELECT 13 * + SUM ( + 57 ) * + 59 AS col2
----
43719

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT SUM( - - 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6947
SELECT SUM ( - - 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL CAST( NULL AS SIGNED ) + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL CAST ( NULL AS INTEGER ) + 11 AS col0
----
NULL

query I rowsort
SELECT ALL 98 + + 66
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT 38 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT 38 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 44 + - ( + 91 ) col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT + CASE - 58 WHEN - + 68 THEN + 99 * - 61 * CAST( NULL AS SIGNED ) + + 27 + - 67 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT + CASE - 58 WHEN - + 68 THEN + 99 * - 61 * CAST ( NULL AS INTEGER ) + + 27 + - 67 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT 85 * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT 85 * + COUNT ( * )
----
85

query I rowsort
SELECT ALL - 87 - + 39 * 84 + - NULLIF ( COALESCE ( 58, - 11 ), - 56 ) AS col2
----
-3421

query I rowsort
SELECT DISTINCT ( - NULLIF ( 73, - + 80 ) ) * - 82 + + 15 * - 6 AS col0
----
5896

query I rowsort
SELECT ALL + 18 * - + 10 + - - 5
----
-175

query I rowsort
SELECT - 56 - + 73
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT - - 48 DIV 89 * + 49 - 91
----
-91

skipif mysql # not compatible
query I rowsort label-6958
SELECT - - 48 / 89 * + 49 - 91
----
-91

query I rowsort
SELECT - 70 + 32 AS col1
----
-38

query I rowsort
SELECT 46 * + 71 + 1 AS col2
----
3267

query I rowsort
SELECT - + 71 + 91 AS col2
----
20

query II rowsort
SELECT ALL - 2 * + 7 * - 94 AS col0, ( - 12 ) AS col2
----
1316
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - + 22 + COUNT( ALL - 2 ) + + + 89
----
68

skipif mysql # not compatible
query I rowsort label-6963
SELECT - + 22 + COUNT ( ALL - 2 ) + + + 89
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT - + 50 AS col2, 50 * - MAX( - - 87 ) AS col2
----
-50
-4350

skipif mysql # not compatible
query II rowsort label-6964
SELECT - + 50 AS col2, 50 * - MAX ( - - 87 ) AS col2
----
-50
-4350

query I rowsort
SELECT ALL - 41 + 24
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT ALL + + COUNT( * ) + 16 - - 92
----
109

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + + COUNT ( * ) + 16 - - 92
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6967
SELECT ALL CASE - - 89 WHEN + 48 + + - 92 THEN NULL ELSE + NULLIF ( + + COUNT( * ), - 77 * 17 + - 89 ) DIV MIN( + - 95 ) END
----
0

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL CASE - - 89 WHEN + 48 + + - 92 THEN NULL ELSE + NULLIF ( + + COUNT ( * ), - 77 * 17 + - 89 ) / MIN ( + - 95 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - COUNT( * ) * - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6968
SELECT - COUNT ( * ) * - 3 AS col2
----
3

query I rowsort
SELECT + 6 + + 51 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL - 39 + + 2 + - COUNT( * ) + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - 39 + + 2 + - COUNT ( * ) + + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL + COUNT( * ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL + COUNT ( * ) + 3
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT - 11 + + - 58 + - - CAST( NULL AS SIGNED ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT - 11 + + - 58 + - - CAST ( NULL AS INTEGER ) * - 69
----
NULL

query I rowsort
SELECT DISTINCT + 94 + - + 7 col0
----
87

query I rowsort
SELECT ALL - COALESCE ( + - ( + + 49 ), + CASE + 12 WHEN - 17 THEN NULL ELSE + - 55 END + + + 20, - 88 ) + - 14 + + 60 * - - 1 * + 60 AS col1
----
3635

query I rowsort
SELECT ALL 58 + + 78 * 11 + - 32
----
884

query II rowsort
SELECT ALL + 74 AS col2, 17 * + 37
----
74
629

query II rowsort
SELECT ( 54 ) AS col1, - 50 - 34 AS col2
----
54
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - 1 * SUM( ALL + + 91 ) - + 64 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 1 * SUM ( ALL + + 91 ) - + 64 AS col1
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6979
SELECT DISTINCT + 87, COUNT( * ) DIV ( + - ( - 83 ) ) - - 45 AS col2
----
87
45

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT + 87, COUNT ( * ) / ( + - ( - 83 ) ) - - 45 AS col2
----
87
45

query I rowsort
SELECT + 16 * - + 99
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + CASE ( - + 88 ) WHEN - ( MAX( ALL - - 10 ) ) THEN - 8 + - 23 END / - - 53 + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT + CASE ( - + 88 ) WHEN - ( MAX ( ALL - - 10 ) ) THEN - 8 + - 23 END / - - 53 + - 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL CAST( NULL AS SIGNED ) * + 98 * - - 93 - + + 37 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL CAST ( NULL AS INTEGER ) * + 98 * - - 93 - + + 37 * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + MAX( + - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6983
SELECT + MAX ( + - 27 ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT - 88 DIV - + 10 + + 12
----
20

skipif mysql # not compatible
query I rowsort label-6984
SELECT - 88 / - + 10 + + 12
----
20

query II rowsort
SELECT ( - + 24 ) AS col2, + 65 AS col2
----
-24
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT NULLIF ( - 1, - MAX( DISTINCT - 93 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT NULLIF ( - 1, - MAX ( DISTINCT - 93 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT ALL + - 28 col2, - COUNT( * )
----
-28
-1

skipif mysql # not compatible
query II rowsort label-6987
SELECT ALL + - 28 col2, - COUNT ( * )
----
-28
-1

query I rowsort
SELECT + 98 * + 10 AS col0
----
980

query II rowsort
SELECT ALL + 8 AS col1, + 35 AS col1
----
8
35

query I rowsort
SELECT ALL + + 83 * + 23
----
1909

query I rowsort
SELECT + + 26 * - 98 * 59
----
-150332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT ALL CAST( NULL AS SIGNED ) * - + 61 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL CAST ( NULL AS INTEGER ) * - + 61 * 60 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 13 * - 49 + 53
----
-584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT ALL + - 31 * - + 17 + + 87 + ( + - 3 ) + - - 54 DIV COUNT( * ) * - COUNT( * )
----
557

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + - 31 * - + 17 + + 87 + ( + - 3 ) + - - 54 / COUNT ( * ) * - COUNT ( * )
----
557

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT 36 AS col1, 41 * 64 + - - SUM( ALL - 15 ) * + 53 AS col0
----
36
1829

skipif mysql # not compatible
query II rowsort label-6995
SELECT 36 AS col1, 41 * 64 + - - SUM ( ALL - 15 ) * + 53 AS col0
----
36
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT NULLIF ( + 23, ( NULLIF ( + 11, - 0 ) ) / 43 * - + 78 + - 78 ) * + SUM( + 50 ) + COUNT( * ) AS col0
----
1151

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT NULLIF ( + 23, ( NULLIF ( + 11, - 0 ) ) / 43 * - + 78 + - 78 ) * + SUM ( + 50 ) + COUNT ( * ) AS col0
----
1151

query II rowsort
SELECT + 0 + - 8 * + - 95 * - 43 AS col0, 29 col0
----
-32680
29

query I rowsort
SELECT - 70 * + 50 AS col0
----
-3500

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT + 27 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT + 27 / + 96
----
0

query I rowsort
SELECT + 18 - - 90 - 94 * + + 17
----
-1490

query I rowsort
SELECT DISTINCT ( - - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT COUNT( * ) + - + CASE + - COUNT( * ) WHEN 59 * - - COUNT( * ) THEN + COUNT( DISTINCT 94 ) - - 76 WHEN + 68 THEN - 34 * - 56 WHEN + - SUM( 22 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT COUNT ( * ) + - + CASE + - COUNT ( * ) WHEN 59 * - - COUNT ( * ) THEN + COUNT ( DISTINCT 94 ) - - 76 WHEN + 68 THEN - 34 * - 56 WHEN + - SUM ( 22 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7003
SELECT ALL CAST( + 27 AS SIGNED ), 74 * - + COALESCE ( - - COUNT( * ), 60 + + 52 * + - 63 ) col0
----
27
-74

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL CAST ( + 27 AS INTEGER ), 74 * - + COALESCE ( - - COUNT ( * ), 60 + + 52 * + - 63 ) col0
----
27
-74

query I rowsort
SELECT - 10 + + 18
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT - COUNT( * ) - + 19 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7005
SELECT - COUNT ( * ) - + 19 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + 9 * - NULLIF ( + + 9, COUNT( * ) * - 44 + + - 9 * COALESCE ( + 17, - 7 * + - 3 + - + 15 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + 9 * - NULLIF ( + + 9, COUNT ( * ) * - 44 + + - 9 * COALESCE ( + 17, - 7 * + - 3 + - + 15 ) )
----
-81

query I rowsort
SELECT - 28 * + - 16 * + 13
----
5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT - CASE + SUM( DISTINCT + + 23 ) WHEN + + 20 THEN - CAST( NULL AS SIGNED ) * - 31 WHEN + COUNT( * ) THEN NULL WHEN + + 53 + + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - CASE + SUM ( DISTINCT + + 23 ) WHEN + + 20 THEN - CAST ( NULL AS INTEGER ) * - 31 WHEN + COUNT ( * ) THEN NULL WHEN + + 53 + + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT - MIN( DISTINCT + 88 ) DIV + + 94 + 3
----
3

skipif mysql # not compatible
query I rowsort label-7009
SELECT - MIN ( DISTINCT + 88 ) / + + 94 + 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + MIN( ALL 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7010
SELECT + MIN ( ALL 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT - 56 + + COUNT( * ) DIV + 21 + + 98 + + COUNT( * ) - 30
----
13

skipif mysql # not compatible
query I rowsort label-7011
SELECT - 56 + + COUNT ( * ) / + 21 + + 98 + + COUNT ( * ) - 30
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL + 2 DIV + 1 - 22 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + 2 / + 1 - 22 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT ALL + 74 / 32 * + 35 * + - CAST( NULL AS SIGNED ) * - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + 74 / 32 * + 35 * + - CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 51 / - 29 + CASE 3 WHEN + 28 THEN + - 22 + - 52 - + - 80 END + - 61 + + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT ( 23 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT ( 23 ) / 33
----
0

query I rowsort
SELECT + 52 * 95 * 39 * - 88
----
-16954080

query II rowsort
SELECT ALL 35 + - 76 AS col1, 40 AS col2
----
-41
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT 64 + 61 + - CASE + 61 WHEN + + 36 THEN - COUNT( * ) * + + COUNT( * ) + - 13 + - + 61 + - COALESCE ( + - 61, + 97 * ( - 64 ) + 39, - 56 ) * 26 END AS col1, - 61 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-7018
SELECT 64 + 61 + - CASE + 61 WHEN + + 36 THEN - COUNT ( * ) * + + COUNT ( * ) + - 13 + - + 61 + - COALESCE ( + - 61, + 97 * ( - 64 ) + 39, - 56 ) * 26 END AS col1, - 61 AS col0
----
NULL
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT 55 * 44 + COUNT( * ) + 2
----
2423

skipif mysql # not compatible
query I rowsort label-7019
SELECT 55 * 44 + COUNT ( * ) + 2
----
2423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ) * + 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) * + 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL 1 + - 39 + - - 4 * 41 + + 31 / SUM( ALL + 42 ) * - 7 + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - + 49 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL 1 + - 39 + - - 4 * 41 + + 31 / SUM ( ALL + 42 ) * - 7 + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + 49 * + 19
----
NULL

query I rowsort
SELECT - - 89 * + 45 * - + ( + + 48 ) - - 89
----
-192151

query I rowsort
SELECT ALL 15 + + 26 + ( - 11 ) col0
----
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7024
SELECT + CASE + 24 WHEN - 91 * ( + COALESCE ( - 89, ( + CAST( NULL AS SIGNED ) ) * + 2 / 50 + + 79 + - 75 * + 89 / + ( - 94 ), - + CAST( NULL AS DECIMAL ) ) ) - 82 + - ( + - 55 ) THEN NULL WHEN + 59 * - 84 THEN 30 END + - 50 + 15 * - 16 * ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT + CASE + 24 WHEN - 91 * ( + COALESCE ( - 89, ( + CAST ( NULL AS INTEGER ) ) * + 2 / 50 + + 79 + - 75 * + 89 / + ( - 94 ), - + CAST ( NULL AS REAL ) ) ) - 82 + - ( + - 55 ) THEN NULL WHEN + 59 * - 84 THEN 30 END + - 50 + 15 * - 16 * ( 30 )
----
NULL

query III rowsort
SELECT 36 * - - 45, + 97 col2, + 82 / + - CASE 52 WHEN - - 52 + + 60 - 97 * - CASE - 29 WHEN + ( + 69 ) THEN + + ( + 35 ) * - 65 END THEN - 56 ELSE - 10 END + + CASE 94 WHEN - 77 THEN 51 WHEN - 46 THEN NULL END AS col1
----
1620
97
NULL

query I rowsort
SELECT + 68 + - + 22
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL - 8 + - MAX( ALL - 74 ) + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - 8 + - MAX ( ALL - 74 ) + - COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - COUNT( + 44 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7028
SELECT - COUNT ( + 44 ) AS col1
----
-1

query I rowsort
SELECT 13 + - CASE + 36 WHEN + NULLIF ( 52, + 24 ) / + + ( - 93 ) * - - 32 THEN - ( - 86 ) / + 50 * 82 END
----
NULL

query I rowsort
SELECT ( - + 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - 34 + - MIN( 4 )
----
-38

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 34 + - MIN ( 4 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL COUNT( * ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL COUNT ( * ) + - 11
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT CAST( NULL AS SIGNED ) + + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT CAST ( NULL AS INTEGER ) + + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL ( 87 ) - - SUM( 71 ) * + 11 col2
----
868

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL ( 87 ) - - SUM ( 71 ) * + 11 col2
----
868

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT DISTINCT CAST( - 57 AS SIGNED ) - - + 77 AS col1, - 95 col1
----
20
-95

skipif mysql # not compatible
query II rowsort label-7035
SELECT DISTINCT CAST ( - 57 AS INTEGER ) - - + 77 AS col1, - 95 col1
----
20
-95

query I rowsort
SELECT 58 + + + 38 - - COALESCE ( + 67, NULLIF ( - 19, + 77 ) * - 59, + + 40 ) * + - 6
----
-306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT ALL 22 - - COUNT( * ) + + CAST( - - 54 AS SIGNED ) / + 32 / + COUNT( * ) * + + 19 / - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL 22 - - COUNT ( * ) + + CAST ( - - 54 AS INTEGER ) / + 32 / + COUNT ( * ) * + + 19 / - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 29 * - 40 * 97
----
-112520

query I rowsort
SELECT 64 * 73 col0
----
4672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT DISTINCT - MAX( + 74 ) / 58 * + ( + NULLIF ( + CAST( NULL AS SIGNED ), - CASE - 65 WHEN - 1 THEN - 99 WHEN - SUM( DISTINCT 57 ) * + + 68 + + 2 / - - AVG ( - + 16 ) / - + 43 THEN NULL ELSE NULL END ) ) / - COALESCE ( - + 25, - 69 * - + 62 + - 84, + 38 ) + - + 73 / - 44 * 78 * + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - MAX ( + 74 ) / 58 * + ( + NULLIF ( + CAST ( NULL AS INTEGER ), - CASE - 65 WHEN - 1 THEN - 99 WHEN - SUM ( DISTINCT 57 ) * + + 68 + + 2 / - - AVG ( - + 16 ) / - + 43 THEN NULL ELSE NULL END ) ) / - COALESCE ( - + 25, - 69 * - + 62 + - 84, + 38 ) + - + 73 / - 44 * 78 * + + 22 AS col2
----
NULL

query I rowsort
SELECT 54 + - 0
----
54

query I rowsort
SELECT 64 * - + 32 col1
----
-2048

query II rowsort
SELECT ALL 70 AS col2, 87 + - 94
----
70
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL + 87 * - CAST( NULL AS SIGNED ) * - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + 87 * - CAST ( NULL AS INTEGER ) * - - 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7045
SELECT - 54 * + + 74 - - - COALESCE ( + ( - 2 ), - 28 + - 95, - 89 + + MIN( - - 61 ) * CAST( NULL AS SIGNED ) DIV - - 31 ) AS col0
----
-3994

skipif mysql # not compatible
query I rowsort label-7045
SELECT - 54 * + + 74 - - - COALESCE ( + ( - 2 ), - 28 + - 95, - 89 + + MIN ( - - 61 ) * CAST ( NULL AS INTEGER ) / - - 31 ) AS col0
----
-3994

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT 28 AS col0, - COUNT( * ) + + - 56
----
28
-57

skipif mysql # not compatible
query II rowsort label-7046
SELECT 28 AS col0, - COUNT ( * ) + + - 56
----
28
-57

query I rowsort
SELECT ALL + 78 * + - 88 col1
----
-6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT + CAST( + SUM( - - 55 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7048
SELECT + CAST ( + SUM ( - - 55 ) AS INTEGER )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT 0 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT 0 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 78 + 97 AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT - 73 + - COUNT( 40 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT - 73 + - COUNT ( 40 ) AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT ALL 46 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 46 / 96 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT + 16 DIV 86 DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT + 16 / 86 / + 5
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7054
SELECT ALL - ( - 97 ) + 8 AS col1, + NULLIF ( - 16, + 93 ), CASE WHEN 99 <> - + 27 THEN NULL WHEN 69 IN ( + + NULLIF ( + ( - - CAST( NULL AS SIGNED ) ), - - 79 ) * - 90 * - + 36 ) THEN + COUNT( * ) + 6 + - + 61 ELSE + 56 - + COUNT( 43 ) + + 73 / + 74 * - 98 END AS col2
----
105
-16
NULL

skipif mysql # not compatible
query III rowsort label-7054
SELECT ALL - ( - 97 ) + 8 AS col1, + NULLIF ( - 16, + 93 ), CASE WHEN 99 <> - + 27 THEN NULL WHEN 69 IN ( + + NULLIF ( + ( - - CAST ( NULL AS INTEGER ) ), - - 79 ) * - 90 * - + 36 ) THEN + COUNT ( * ) + 6 + - + 61 ELSE + 56 - + COUNT ( 43 ) + + 73 / + 74 * - 98 END AS col2
----
105
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT + + COUNT( * ) + + - ( - 51 ) + - 73 * CASE COUNT( * ) WHEN + COUNT( * ) THEN - CASE - COUNT( 31 ) WHEN - COUNT( * ) THEN NULL WHEN - NULLIF ( + + 15, + 86 + - 78 - - - 99 ) THEN 11 * - 87 + + - COALESCE ( - 14, + COALESCE ( + 70, + 12 + + 83 + + ( - - 61 ) + + + 84 + + 74 + 6 * + 58 * + 3 ) ) WHEN - 64 THEN 97 END * 46 WHEN + 53 THEN 96 / - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + + COUNT ( * ) + + - ( - 51 ) + - 73 * CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - CASE - COUNT ( 31 ) WHEN - COUNT ( * ) THEN NULL WHEN - NULLIF ( + + 15, + 86 + - 78 - - - 99 ) THEN 11 * - 87 + + - COALESCE ( - 14, + COALESCE ( + 70, + 12 + + 83 + + ( - - 61 ) + + + 84 + + 74 + 6 * + 58 * + 3 ) ) WHEN - 64 THEN 97 END * 46 WHEN + 53 THEN 96 / - 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT + 88 AS col0, - 49 * - COUNT( + 62 )
----
88
49

skipif mysql # not compatible
query II rowsort label-7056
SELECT + 88 AS col0, - 49 * - COUNT ( + 62 )
----
88
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT - COUNT( * ) AS col0, 60 AS col2
----
-1
60

skipif mysql # not compatible
query II rowsort label-7057
SELECT - COUNT ( * ) AS col0, 60 AS col2
----
-1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT - 94 * + COUNT( * ) * - - COALESCE ( - - 66, + 73 * 5 + + 93 + - + 59 ) * - + ( + + 12 ) * + ( 43 ) + - 5 + + - CAST( + + 18 AS SIGNED ) + 59 * 25 * + - 27 + - 4 + + 1 + + 44 + + 77
----
3161534

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 94 * + COUNT ( * ) * - - COALESCE ( - - 66, + 73 * 5 + + 93 + - + 59 ) * - + ( + + 12 ) * + ( 43 ) + - 5 + + - CAST ( + + 18 AS INTEGER ) + 59 * 25 * + - 27 + - 4 + + 1 + + 44 + + 77
----
3161534

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT + 12 + + - COUNT( * ) + + + 50 - - 67 * - - 76 AS col0
----
5153

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + 12 + + - COUNT ( * ) + + + 50 - - 67 * - - 76 AS col0
----
5153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT ALL - 54 DIV SUM( + - 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - 54 / SUM ( + - 88 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT - CAST( - - 47 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7061
SELECT - CAST ( - - 47 AS INTEGER ) AS col2
----
-47

query I rowsort
SELECT 48 + 94
----
142

onlyif mysql # aggregate syntax: 
query III rowsort label-7063
SELECT 9, - COALESCE ( - + ( - 12 ), MIN( DISTINCT - 56 ) ) AS col0, + 2 * + + 32 AS col1
----
9
-12
64

skipif mysql # not compatible
query III rowsort label-7063
SELECT 9, - COALESCE ( - + ( - 12 ), MIN ( DISTINCT - 56 ) ) AS col0, + 2 * + + 32 AS col1
----
9
-12
64

query I rowsort
SELECT ALL 35 + + + 20 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7065
SELECT + 44 AS col0, + NULLIF ( CASE - CAST( NULL AS SIGNED ) WHEN - 61 THEN + + 59 + + - 4 ELSE NULL END, - NULLIF ( + 15, - 16 * 60 + - + 99 * 3 * 7 / - + 34 ) ) + + 66 * + + COUNT( * )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-7065
SELECT + 44 AS col0, + NULLIF ( CASE - CAST ( NULL AS INTEGER ) WHEN - 61 THEN + + 59 + + - 4 ELSE NULL END, - NULLIF ( + 15, - 16 * 60 + - + 99 * 3 * 7 / - + 34 ) ) + + 66 * + + COUNT ( * )
----
44
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT - ( COUNT( * ) ) * + 41 + 53 + COUNT( * ) + - CAST( - 18 AS SIGNED ) * + 89 AS col2
----
1615

skipif mysql # not compatible
query I rowsort label-7066
SELECT - ( COUNT ( * ) ) * + 41 + 53 + COUNT ( * ) + - CAST ( - 18 AS INTEGER ) * + 89 AS col2
----
1615

query I rowsort
SELECT ALL - - ( - 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT COUNT( * ) DIV MIN( + 45 ) * + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT COUNT ( * ) / MIN ( + 45 ) * + 61 col2
----
0

query II rowsort
SELECT DISTINCT - + 58 col0, + 60
----
-58
60

query I rowsort
SELECT DISTINCT - + 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ( + + COUNT( * ) ) * + 78
----
78

skipif mysql # not compatible
query I rowsort label-7071
SELECT ( + + COUNT ( * ) ) * + 78
----
78

query I rowsort
SELECT COALESCE ( + - 14, + 20 ) * + 8
----
-112

query I rowsort
SELECT 38 - ( - + 92 )
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT DISTINCT 45 DIV - + 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT 45 / - + 26 AS col0
----
-1

query I rowsort
SELECT ALL 80 * + 78
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - MIN( DISTINCT 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7076
SELECT - MIN ( DISTINCT 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT + 21 + COUNT( * ) AS col1, + 34 * + 75
----
22
2550

skipif mysql # not compatible
query II rowsort label-7077
SELECT + 21 + COUNT ( * ) AS col1, + 34 * + 75
----
22
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT + 39 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-7078
SELECT + 39 / - 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT - ( 74 ) - + 42 - - + 91 * SUM( DISTINCT + - 59 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT - ( 74 ) - + 42 - - + 91 * SUM ( DISTINCT + - 59 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT - CAST( NULL AS SIGNED ) * 57 * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT - CAST ( NULL AS INTEGER ) * 57 * - - 54
----
NULL

query I rowsort
SELECT ALL - 68 + 14 + - 20
----
-74

query I rowsort
SELECT ALL 94 + + ( - - 12 ) + + NULLIF ( + 18, - 62 )
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT + + 88 DIV - 95 * 37
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT + + 88 / - 95 * 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT + 80 DIV - 72 + 4 + - 54 + ( - 58 ) + + + 25 + COUNT( * ) * + + 69 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 80 / - 72 + 4 + - 54 + ( - 58 ) + + + 25 + COUNT ( * ) * + + 69 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT + + COUNT( * ) * + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT + + COUNT ( * ) * + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT MIN( - + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7086
SELECT MIN ( - + 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT - NULLIF ( + + 90, - CAST( - 52 AS SIGNED ) ) * - + 7
----
630

skipif mysql # not compatible
query I rowsort label-7087
SELECT - NULLIF ( + + 90, - CAST ( - 52 AS INTEGER ) ) * - + 7
----
630

query I rowsort
SELECT ALL + - 97 col0
----
-97

query I rowsort
SELECT - - 14 + 44 - - - 5 AS col0
----
53

query I rowsort
SELECT DISTINCT + + ( - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT - - CASE - + 27 WHEN - - 92 / + CAST( 41 AS SIGNED ) + ( - COUNT( * ) ) THEN NULL WHEN 67 + - 35 + 61 + - + 22 * - 27 * + 92 * - 65 THEN NULL ELSE + + 90 END + + - COUNT( * ) + + 18
----
107

skipif mysql # not compatible
query I rowsort label-7091
SELECT - - CASE - + 27 WHEN - - 92 / + CAST ( 41 AS INTEGER ) + ( - COUNT ( * ) ) THEN NULL WHEN 67 + - 35 + 61 + - + 22 * - 27 * + 92 * - 65 THEN NULL ELSE + + 90 END + + - COUNT ( * ) + + 18
----
107

query I rowsort
SELECT - 7 * - + 38 AS col1
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL - + COUNT( * ) * + 43 - + - 91 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - + COUNT ( * ) * + 43 - + - 91 AS col2
----
48

query I rowsort
SELECT - + 62 + - - 46 AS col1
----
-16

query I rowsort
SELECT ALL + ( + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - COUNT( * ) * + 23 - - - 97
----
-120

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - COUNT ( * ) * + 23 - - - 97
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7097
SELECT - + ( + 54 ) * - + 30 * - COUNT( * ), - 67 * - 26 + - MIN( - + ( - + 48 ) ) + + + 67 * + + CAST( NULL AS SIGNED ) / COUNT( * ) * 86 * + COUNT( * ) col0
----
-1620
NULL

skipif mysql # not compatible
query II rowsort label-7097
SELECT - + ( + 54 ) * - + 30 * - COUNT ( * ), - 67 * - 26 + - MIN ( - + ( - + 48 ) ) + + + 67 * + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * 86 * + COUNT ( * ) col0
----
-1620
NULL

query I rowsort
SELECT - 29 * + - 20
----
580

query I rowsort
SELECT - 87 * 54 AS col2
----
-4698

query I rowsort
SELECT ALL - 50 * 11 AS col1
----
-550

query I rowsort
SELECT - 5 + - 81 AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT ALL - 77 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - 77 / + - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT - CASE - 73 WHEN + ( - + 9 ) * - 26 THEN - - COUNT( * ) WHEN - - 47 + + MIN( - + 42 ) + 60 + MIN( DISTINCT + 87 ) THEN - 56 END + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT - CASE - 73 WHEN + ( - + 9 ) * - 26 THEN - - COUNT ( * ) WHEN - - 47 + + MIN ( - + 42 ) + 60 + MIN ( DISTINCT + 87 ) THEN - 56 END + 91 AS col1
----
NULL

query I rowsort
SELECT ALL 93 * + + 51
----
4743

query I rowsort
SELECT ALL ( + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT + 34 * - NULLIF ( COUNT( * ), + 83 ) * 62 + - 6 DIV - 7 AS col2
----
-2108

skipif mysql # not compatible
query I rowsort label-7106
SELECT + 34 * - NULLIF ( COUNT ( * ), + 83 ) * 62 + - 6 / - 7 AS col2
----
-2108

query I rowsort
SELECT ALL - 87 * - 91
----
7917

query I rowsort
SELECT + COALESCE ( + 1, + 73, - 64 * - - 98 ) + + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - MIN( - + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7109
SELECT - MIN ( - + 59 )
----
59

query I rowsort
SELECT + 21 * + 3
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT DISTINCT 27 + + COUNT( * ) - 21 DIV 4 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT 27 + + COUNT ( * ) - 21 / 4 AS col1
----
23

query I rowsort
SELECT DISTINCT 44 * + 73
----
3212

query I rowsort
SELECT + 71 + + NULLIF ( - + 1, 46 ) AS col0
----
70

query I rowsort
SELECT DISTINCT 41 + - 34 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7115
SELECT DISTINCT + 15 * - - COALESCE ( NULLIF ( + MIN( ALL - 15 ), - COUNT( * ) ), - 9 * - 90 * + 5 + - - CASE + - 40 WHEN - 61 * - - 31 + + - CAST( + COALESCE ( - 71, + + 52 * MAX( 13 ) * + 33 - - 20, - COUNT( * ) + 11 * - 98 ) AS DECIMAL ) - - 89 THEN - COUNT( * ) WHEN + 6 DIV + + 59 THEN NULL ELSE - + 94 END, - 41, 57 ) DIV - COUNT( * ) - - 8
----
233

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + 15 * - - COALESCE ( NULLIF ( + MIN ( ALL - 15 ), - COUNT ( * ) ), - 9 * - 90 * + 5 + - - CASE + - 40 WHEN - 61 * - - 31 + + - CAST ( + COALESCE ( - 71, + + 52 * MAX ( 13 ) * + 33 - - 20, - COUNT ( * ) + 11 * - 98 ) AS REAL ) - - 89 THEN - COUNT ( * ) WHEN + 6 / + + 59 THEN NULL ELSE - + 94 END, - 41, 57 ) / - COUNT ( * ) - - 8
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT COUNT( * ) + - 26 - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT COUNT ( * ) + - 26 - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT - ( + 88 ) - + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-7117
SELECT - ( + 88 ) - + COUNT ( * )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7118
SELECT + 98 * - - 48 + + COUNT( * ) + CAST( NULL AS SIGNED ) - - NULLIF ( + 36, - 78 + COUNT( * ) ) + CASE + 68 WHEN + 99 THEN - CASE + + 18 WHEN + COUNT( * ) THEN 70 * 5 WHEN - 79 THEN NULL END - - COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) * + 47 + - MIN( DISTINCT 28 ) * 49 THEN ( COUNT( * ) ) ELSE COALESCE ( 2, - ( - + 77 ) ) END / - 65 / 6 * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT + 98 * - - 48 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - - NULLIF ( + 36, - 78 + COUNT ( * ) ) + CASE + 68 WHEN + 99 THEN - CASE + + 18 WHEN + COUNT ( * ) THEN 70 * 5 WHEN - 79 THEN NULL END - - COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) * + 47 + - MIN ( DISTINCT 28 ) * 49 THEN ( COUNT ( * ) ) ELSE COALESCE ( 2, - ( - + 77 ) ) END / - 65 / 6 * + 88 AS col2
----
NULL

query I rowsort
SELECT ALL 68 * - - 78 AS col1
----
5304

query I rowsort
SELECT ALL + - ( COALESCE ( 37, - 1, - 21 - + - CASE 44 WHEN 64 THEN NULL WHEN 45 - + 25 THEN - + 23 END + - 97 ) )
----
-37

query I rowsort
SELECT DISTINCT + - 86 col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7122
SELECT DISTINCT - + 2 DIV - COUNT( * ) - 79 * - 64 col1
----
5058

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT - + 2 / - COUNT ( * ) - 79 * - 64 col1
----
5058

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7123
SELECT + - ( + ( 31 ) ) * + CAST( NULL AS DECIMAL ) * - SUM( - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT + - ( + ( 31 ) ) * + CAST ( NULL AS REAL ) * - SUM ( - 23 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT DISTINCT 13 DIV + 11
----
1

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 13 / + 11
----
1

query I rowsort
SELECT DISTINCT + - 52 col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7126
SELECT ALL + 71 / - CAST( NULL AS SIGNED ) * COUNT( * ) * - 73 * + 43 * - - CASE + COALESCE ( 82, 43 * COUNT( * ) ) WHEN - 44 THEN - 72 + ( 84 ) * - + COUNT( * ) END AS col1, + COUNT( * ) * - COUNT( * ) + + ( - 74 )
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL + 71 / - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 73 * + 43 * - - CASE + COALESCE ( 82, 43 * COUNT ( * ) ) WHEN - 44 THEN - 72 + ( 84 ) * - + COUNT ( * ) END AS col1, + COUNT ( * ) * - COUNT ( * ) + + ( - 74 )
----
NULL
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT DISTINCT + + NULLIF ( 51, COALESCE ( + 76, - CASE + 56 WHEN + 33 THEN + CAST( NULL AS SIGNED ) / + + 74 WHEN + ( - 7 ) THEN NULL END + + 33 ) - CAST( + + 88 AS SIGNED ) + - + NULLIF ( - + 27, - - COUNT( * ) + - + 20 ) * 97 )
----
51

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + + NULLIF ( 51, COALESCE ( + 76, - CASE + 56 WHEN + 33 THEN + CAST ( NULL AS INTEGER ) / + + 74 WHEN + ( - 7 ) THEN NULL END + + 33 ) - CAST ( + + 88 AS INTEGER ) + - + NULLIF ( - + 27, - - COUNT ( * ) + - + 20 ) * 97 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT ALL - - ( + COALESCE ( - 57, - 10, - - 36 ) ) DIV - 35 - + MIN( DISTINCT + 65 ) + 45 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - - ( + COALESCE ( - 57, - 10, - - 36 ) ) / - 35 - + MIN ( DISTINCT + 65 ) + 45 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT DISTINCT + + 88, - COUNT( * ) AS col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-7129
SELECT DISTINCT + + 88, - COUNT ( * ) AS col1
----
88
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL + - AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + - AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - 41 * - COALESCE ( + 49, + 76 - - NULLIF ( NULLIF ( - COUNT( - 43 ), + 54 * COUNT( * ) ), - ( - 68 ) * - + 18 ) ) + - 71 AS col0
----
1938

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 41 * - COALESCE ( + 49, + 76 - - NULLIF ( NULLIF ( - COUNT ( - 43 ), + 54 * COUNT ( * ) ), - ( - 68 ) * - + 18 ) ) + - 71 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT + 12 * - - COUNT( * ), + ( - 50 ) - + - COUNT( * ) AS col2
----
12
-49

skipif mysql # not compatible
query II rowsort label-7132
SELECT + 12 * - - COUNT ( * ), + ( - 50 ) - + - COUNT ( * ) AS col2
----
12
-49

query I rowsort
SELECT ( + + 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7135
SELECT - 64 * + 59 AS col0, 57 DIV + CASE - 21 WHEN COUNT( + - 44 ) * + MAX( ALL + 75 ) THEN NULL WHEN - 39 * + 76 * + 60 + 29 + 28 THEN NULL ELSE 18 END
----
-3776
3

skipif mysql # not compatible
query II rowsort label-7135
SELECT - 64 * + 59 AS col0, 57 / + CASE - 21 WHEN COUNT ( + - 44 ) * + MAX ( ALL + 75 ) THEN NULL WHEN - 39 * + 76 * + 60 + 29 + 28 THEN NULL ELSE 18 END
----
-3776
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT + MAX( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + MAX ( + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT ALL - COUNT( * ) AS col2, 78 * + - 37 col2
----
-1
-2886

skipif mysql # not compatible
query II rowsort label-7137
SELECT ALL - COUNT ( * ) AS col2, 78 * + - 37 col2
----
-1
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7138
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 40 + COUNT( * )
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7138
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 40 + COUNT ( * )
----
NULL
41

query I rowsort
SELECT DISTINCT - 37 + + - 2
----
-39

query III rowsort
SELECT DISTINCT 50 AS col2, - 71 AS col0, + ( 89 )
----
50
-71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT 67 * - MIN( DISTINCT - - 1 ) * + 63 + - 72 AS col0
----
-4293

skipif mysql # not compatible
query I rowsort label-7141
SELECT 67 * - MIN ( DISTINCT - - 1 ) * + 63 + - 72 AS col0
----
-4293

onlyif mysql # aggregate syntax: 
query II rowsort label-7142
SELECT - 30 * - 43 + - MIN( 94 ) * - COUNT( * ) * + 47 - + 50 AS col1, - 24 * 43 + + 49
----
5658
-983

skipif mysql # not compatible
query II rowsort label-7142
SELECT - 30 * - 43 + - MIN ( 94 ) * - COUNT ( * ) * + 47 - + 50 AS col1, - 24 * 43 + + 49
----
5658
-983

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT ALL 56, COUNT( * ) * + 93 AS col2
----
56
93

skipif mysql # not compatible
query II rowsort label-7143
SELECT ALL 56, COUNT ( * ) * + 93 AS col2
----
56
93

query I rowsort
SELECT ALL - 92 + 95
----
3

query I rowsort
SELECT 47 + - 97 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT 57 + 48 DIV 57
----
57

skipif mysql # not compatible
query I rowsort label-7146
SELECT 57 + 48 / 57
----
57

query I rowsort
SELECT ALL + 19 + 49 AS col0
----
68

query I rowsort
SELECT 66 + 15 AS col0
----
81

query I rowsort
SELECT 2 * + - 82 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL - SUM( DISTINCT - + 19 ) + - ( + - 76 ) + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - SUM ( DISTINCT - + 19 ) + - ( + - 76 ) + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT 73 - + 58
----
15

query II rowsort
SELECT ALL 21, + 26 * - - 69 AS col1
----
21
1794

query I rowsort
SELECT ALL - 47 * + 20 * + + 70 col0
----
-65800

query I rowsort
SELECT DISTINCT - 74 + - + 99
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT + 11 + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT + 11 + + COUNT ( * ) AS col2
----
12

query II rowsort
SELECT - 96 - - 32 AS col0, - 78
----
-64
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - ( CASE + MIN( - - 71 ) WHEN + - 97 - + + 34 + - 14 + + 8 + - COALESCE ( + + 50, 75 + - 8 ) THEN - 49 * - 70 WHEN 98 * COUNT( * ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT - ( CASE + MIN ( - - 71 ) WHEN + - 97 - + + 34 + - 14 + + 8 + - COALESCE ( + + 50, 75 + - 8 ) THEN - 49 * - 70 WHEN 98 * COUNT ( * ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT 26 + ( + 83 ) + + COUNT( * ) * - - 88
----
197

skipif mysql # not compatible
query I rowsort label-7158
SELECT 26 + ( + 83 ) + + COUNT ( * ) * - - 88
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + COUNT( * ) + + 15 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7159
SELECT + COUNT ( * ) + + 15 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT ALL COALESCE ( 36, - - CAST( NULL AS SIGNED ), - 19 - - 68 + - 27 ) * CAST( NULL AS SIGNED ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL COALESCE ( 36, - - CAST ( NULL AS INTEGER ), - 19 - - 68 + - 27 ) * CAST ( NULL AS INTEGER ) * 81 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 42 * - ( + 16 ) AS col2
----
672

query I rowsort
SELECT - 4 * 46 + - 69
----
-253

query I rowsort
SELECT DISTINCT - 98 * + 27 + + - 3 AS col2
----
-2649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7164
SELECT COUNT( * ) * 2 * 11 - - 43 * - 78 * COUNT( * ) + + 96 DIV + 99
----
-3332

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) * 2 * 11 - - 43 * - 78 * COUNT ( * ) + + 96 / + 99
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ( - - 89 ) + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7165
SELECT ( - - 89 ) + + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT ALL - + 9 AS col0, + COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-7166
SELECT ALL - + 9 AS col0, + COUNT ( * )
----
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT DISTINCT COUNT( * ) + 54 + - 15 * - COALESCE ( - 34, COALESCE ( - 92, + - 5 - + 61, + 26, + + 83, 26 * 25 * 85 ), - - 36 )
----
-455

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT COUNT ( * ) + 54 + - 15 * - COALESCE ( - 34, COALESCE ( - 92, + - 5 - + 61, + 26, + + 83, 26 * 25 * 85 ), - - 36 )
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT COUNT( * ) * ( - 0 ) + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7168
SELECT COUNT ( * ) * ( - 0 ) + 43 AS col1
----
43

query I rowsort
SELECT ALL 16 + - - CASE + + 2 WHEN + 7 THEN NULL ELSE + + 69 + - ( - - 46 ) END
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT ALL 10 + 26 DIV + + 62 * 57
----
10

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL 10 + 26 / + + 62 * 57
----
10

query I rowsort
SELECT DISTINCT + 33 * + 28
----
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL 80 + - 45 + - 2 * - - 45 + + 42 + + COALESCE ( + 78, - + 31 ) + - - ( + CAST( NULL AS SIGNED ) ) - 21 + - 38 / 79 * 25 / + NULLIF ( 11, - 19 * + - 9 * - + 14 ) * + CAST( NULL AS SIGNED ) - 37 - + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL 80 + - 45 + - 2 * - - 45 + + 42 + + COALESCE ( + 78, - + 31 ) + - - ( + CAST ( NULL AS INTEGER ) ) - 21 + - 38 / 79 * 25 / + NULLIF ( 11, - 19 * + - 9 * - + 14 ) * + CAST ( NULL AS INTEGER ) - 37 - + - 70
----
NULL

query I rowsort
SELECT ( - - 59 ) * - 67 AS col1
----
-3953

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT 82 + + 34 AS col1, ( + COUNT( * ) )
----
116
1

skipif mysql # not compatible
query II rowsort label-7174
SELECT 82 + + 34 AS col1, ( + COUNT ( * ) )
----
116
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL 74 + + CASE + COUNT( * ) WHEN - AVG ( DISTINCT 69 ) * + + 61 THEN - 6 / 49 + 60 + + 89 + + 34 * - 48 * + MAX( + 65 ) * + 1 + + 82 WHEN + 88 * + + 3 + ( 46 ) THEN 44 * SUM( + 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL 74 + + CASE + COUNT ( * ) WHEN - AVG ( DISTINCT 69 ) * + + 61 THEN - 6 / 49 + 60 + + 89 + + 34 * - 48 * + MAX ( + 65 ) * + 1 + + 82 WHEN + 88 * + + 3 + ( 46 ) THEN 44 * SUM ( + 25 ) END
----
NULL

query I rowsort
SELECT ALL 50 + 49
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT ALL COALESCE ( - + COALESCE ( + 59, - COUNT( * ), + 78, + - 76 ), + 41 - CAST( NULL AS SIGNED ), - 66 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL COALESCE ( - + COALESCE ( + 59, - COUNT ( * ), + 78, + - 76 ), + 41 - CAST ( NULL AS INTEGER ), - 66 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT - MIN( + 85 ) AS col2, COUNT( * ) - - 71
----
-85
72

skipif mysql # not compatible
query II rowsort label-7178
SELECT - MIN ( + 85 ) AS col2, COUNT ( * ) - - 71
----
-85
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT - ( + 53 ) * - COUNT( * ) + + + ( 62 ) - + - 41 + + 78 - - 71 - + 52 + + 18 DIV + 47 * + + 71 * 90 - - 1
----
254

skipif mysql # not compatible
query I rowsort label-7179
SELECT - ( + 53 ) * - COUNT ( * ) + + + ( 62 ) - + - 41 + + 78 - - 71 - + 52 + + 18 / + 47 * + + 71 * 90 - - 1
----
254

query I rowsort
SELECT DISTINCT + ( - - 88 ) * - - 58
----
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL + 26 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 26 / + + 33
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT 71 DIV 64 * 30
----
30

skipif mysql # not compatible
query I rowsort label-7182
SELECT 71 / 64 * 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7183
SELECT ALL + COALESCE ( - CASE + 51 WHEN - COALESCE ( - COALESCE ( ( - + COALESCE ( + 13, 17 + 52, NULLIF ( - - 49, 85 * + 10 + - 83 + ( + 47 ) ) ) ), + 25, - 94 ), MIN( DISTINCT 60 ) * - - 66 + + + 60 + 55 * + 99 + + - CAST( + 89 AS SIGNED ), + 6 + - 65 ) THEN - NULLIF ( 62, - - COUNT( * ) DIV - 74 ) DIV 93 END, 92 ) * 66 col0
----
6072

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + COALESCE ( - CASE + 51 WHEN - COALESCE ( - COALESCE ( ( - + COALESCE ( + 13, 17 + 52, NULLIF ( - - 49, 85 * + 10 + - 83 + ( + 47 ) ) ) ), + 25, - 94 ), MIN ( DISTINCT 60 ) * - - 66 + + + 60 + 55 * + 99 + + - CAST ( + 89 AS INTEGER ), + 6 + - 65 ) THEN - NULLIF ( 62, - - COUNT ( * ) / - 74 ) / 93 END, 92 ) * 66 col0
----
6072

query I rowsort
SELECT 2 + 58 * 13 + + + 31 AS col1
----
787

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + MAX( DISTINCT - 43 ) + - 5 + + COUNT( * ) * - ( 54 ) + - 85
----
-187

skipif mysql # not compatible
query I rowsort label-7185
SELECT + MAX ( DISTINCT - 43 ) + - 5 + + COUNT ( * ) * - ( 54 ) + - 85
----
-187

query I rowsort
SELECT ALL - - 98 * + - 20
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT + 2 * + 55 + + 44 DIV + + 9 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + 2 * + 55 + + 44 / + + 9 AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7188
SELECT ALL + + CASE + + 45 WHEN - 7 THEN NULL WHEN 79 * + CAST( + 52 AS SIGNED ) + COUNT( * ) THEN NULL WHEN + - 12 / 70 / - + 47 * - - 83 THEN - 62 END * - - COUNT( * ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + + CASE + + 45 WHEN - 7 THEN NULL WHEN 79 * + CAST ( + 52 AS INTEGER ) + COUNT ( * ) THEN NULL WHEN + - 12 / 70 / - + 47 * - - 83 THEN - 62 END * - - COUNT ( * ) * 64
----
NULL

query II rowsort
SELECT DISTINCT - CASE 34 WHEN 99 THEN - 46 + 90 ELSE - 50 * - - 90 END AS col1, + 94
----
4500
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT - 19 + - 24 DIV - 38 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7190
SELECT - 19 + - 24 / - 38 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + - NULLIF ( COUNT( ALL - 60 ), + 38 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7191
SELECT + - NULLIF ( COUNT ( ALL - 60 ), + 38 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT ALL - + ( COUNT( * ) ) col0, + 85 + - - MAX( - 19 )
----
-1
66

skipif mysql # not compatible
query II rowsort label-7192
SELECT ALL - + ( COUNT ( * ) ) col0, + 85 + - - MAX ( - 19 )
----
-1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + 31 * - 59 + + COUNT( * ) * 37
----
-1792

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 31 * - 59 + + COUNT ( * ) * 37
----
-1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT ALL ( - + 94 ) * - + ( - NULLIF ( - 43, + 74 * - - COUNT( * ) * + 20 * - 57 / - - 59 ) ) * + COUNT( CAST( NULL AS SIGNED ) ) + + 14 * + ( + 6 )
----
84

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL ( - + 94 ) * - + ( - NULLIF ( - 43, + 74 * - - COUNT ( * ) * + 20 * - 57 / - - 59 ) ) * + COUNT ( CAST ( NULL AS INTEGER ) ) + + 14 * + ( + 6 )
----
84

query I rowsort
SELECT ALL + ( + + 6 ) col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT + CASE COALESCE ( - 45, - COUNT( * ) ) WHEN - + AVG ( DISTINCT - + 61 ) THEN + 46 + + 34 + + COUNT( * ) / 67 * - 68 * + 21 WHEN + 41 / - + 77 THEN - - 82 WHEN 10 THEN NULL END * - 86 * - + COALESCE ( - - ( - + ( + 54 ) ), 78 ) * - 27 AS col0, + 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-7196
SELECT + CASE COALESCE ( - 45, - COUNT ( * ) ) WHEN - + AVG ( DISTINCT - + 61 ) THEN + 46 + + 34 + + COUNT ( * ) / 67 * - 68 * + 21 WHEN + 41 / - + 77 THEN - - 82 WHEN 10 THEN NULL END * - 86 * - + COALESCE ( - - ( - + ( + 54 ) ), 78 ) * - 27 AS col0, + 35
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7197
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( 13 ), 15 + 46 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7197
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( 13 ), 15 + 46 AS col1
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL COUNT( + 97 ) * 3 + 9
----
12

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL COUNT ( + 97 ) * 3 + 9
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT + CAST( NULL AS SIGNED ) * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + CAST ( NULL AS INTEGER ) * + - 54
----
NULL

query II rowsort
SELECT + 50 AS col2, + 79 * + + 63
----
50
4977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7201
SELECT ALL 22 * + 55 + - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL 22 * + 55 + - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT MIN( ALL + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7202
SELECT MIN ( ALL + + 14 )
----
14

query I rowsort
SELECT ALL - 29 * 39 AS col2
----
-1131

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT DISTINCT 4 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT 4 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL 74 + - + 9 * ( - 96 ) * ( + + ( - - 65 ) ) - - 84 - - COUNT( * ) + + - COUNT( * )
----
56318

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL 74 + - + 9 * ( - 96 ) * ( + + ( - - 65 ) ) - - 84 - - COUNT ( * ) + + - COUNT ( * )
----
56318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL 56 - + - CAST( NULL AS SIGNED ) * + - 89 * + MIN( ALL 49 ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 56 - + - CAST ( NULL AS INTEGER ) * + - 89 * + MIN ( ALL 49 ) + - 33
----
NULL

query I rowsort
SELECT + 62 * - 84 AS col0
----
-5208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT + MIN( DISTINCT + ( 91 ) ) * + + 62 * + - 56 * - 92 + + - 63 + + - 21 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT + MIN ( DISTINCT + ( 91 ) ) * + + 62 * + - 56 * - 92 + + - 63 + + - 21 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 38 - + + 11 * 2 * 98 AS col0
----
-2118

query I rowsort
SELECT + 9 + - 19
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + + 36 + - 85 * + MAX( DISTINCT + - 85 ) + - 48 - - ( - COUNT( * ) ) * + 3 + 3 + + COUNT( * ) * 30 * - ( - 1 ) - + 0
----
7243

skipif mysql # not compatible
query I rowsort label-7211
SELECT + + 36 + - 85 * + MAX ( DISTINCT + - 85 ) + - 48 - - ( - COUNT ( * ) ) * + 3 + 3 + + COUNT ( * ) * 30 * - ( - 1 ) - + 0
----
7243

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL COUNT( * ) - - 58 + ( + 51 ) * 11 * - SUM( ALL - 9 )
----
5108

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL COUNT ( * ) - - 58 + ( + 51 ) * 11 * - SUM ( ALL - 9 )
----
5108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7213
SELECT - 87 * + 40 DIV - COUNT( + 94 )
----
3480

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 87 * + 40 / - COUNT ( + 94 )
----
3480

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT ALL - COUNT( * ) AS col2, - COUNT( * ) + 5
----
-1
4

skipif mysql # not compatible
query II rowsort label-7214
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * ) + 5
----
-1
4

query II rowsort
SELECT ALL 80, + 32 * + - 89 AS col0
----
80
-2848

query I rowsort
SELECT + - 53 * - 90 AS col1
----
4770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7217
SELECT - - 95 + - 51 * 82 AS col0, + ( + ( + 26 ) ) + CAST( NULL AS SIGNED )
----
-4087
NULL

skipif mysql # not compatible
query II rowsort label-7217
SELECT - - 95 + - 51 * 82 AS col0, + ( + ( + 26 ) ) + CAST ( NULL AS INTEGER )
----
-4087
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT ALL CAST( + - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL CAST ( + - 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT SUM( DISTINCT - + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7219
SELECT SUM ( DISTINCT - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL NULLIF ( + NULLIF ( - 79, - 98 ), - - 36 / - COUNT( * ) * 2 )
----
-79

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL NULLIF ( + NULLIF ( - 79, - 98 ), - - 36 / - COUNT ( * ) * 2 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + COALESCE ( - + COUNT( * ), 29 * 16 ) * - 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7221
SELECT + COALESCE ( - + COUNT ( * ), 29 * 16 ) * - 75 AS col2
----
75

query II rowsort
SELECT 26 AS col0, + 12 + + 75 AS col0
----
26
87

query I rowsort
SELECT - 7 + - 13 * 51 * - 80 AS col0
----
53033

query I rowsort
SELECT DISTINCT ( + - 79 ) col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL - + 45 + 86 + + 71 + - CAST( - MIN( DISTINCT + 61 ) AS SIGNED ) * 67 + - + 16 + - 76
----
4107

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - + 45 + 86 + + 71 + - CAST ( - MIN ( DISTINCT + 61 ) AS INTEGER ) * 67 + - + 16 + - 76
----
4107

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT + 21 + - 69 + + + COUNT( * ) + 44
----
-3

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + 21 + - 69 + + + COUNT ( * ) + 44
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT DISTINCT 95 DIV 3 + - 79 + - + 34 col0
----
-82

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT 95 / 3 + - 79 + - + 34 col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL - - COUNT( + - 65 ) * - + 27 * + - 39
----
1053

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - - COUNT ( + - 65 ) * - + 27 * + - 39
----
1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 92 * - 61 * + 39 * - 23 * + - COUNT( + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 92 * - 61 * + 39 * - 23 * + - COUNT ( + 30 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT ALL 0 DIV + 97 * + 16 + + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL 0 / + 97 * + 16 + + - 43
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7231
SELECT - CASE 18 WHEN + + 6 THEN NULL WHEN + 54 + - 58 * - 2 THEN + - CAST( NULL AS SIGNED ) * - 93 + - - 80 - + 48 * - 92 DIV - 29 + + 98 + + - NULLIF ( + - CAST( NULL AS SIGNED ), - + 60 ) * + - 14 * + - 61 + 0 + + + 59 DIV - COUNT( * ) * - 94 DIV 48 DIV + - 87 ELSE - + 29 END + + 92 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-7231
SELECT - CASE 18 WHEN + + 6 THEN NULL WHEN + 54 + - 58 * - 2 THEN + - CAST ( NULL AS INTEGER ) * - 93 + - - 80 - + 48 * - 92 / - 29 + + 98 + + - NULLIF ( + - CAST ( NULL AS INTEGER ), - + 60 ) * + - 14 * + - 61 + 0 + + + 59 / - COUNT ( * ) * - 94 / 48 / + - 87 ELSE - + 29 END + + 92 AS col2
----
121

query I rowsort
SELECT ( - NULLIF ( 53, 86 / - 96 - - 15 ) ) AS col1
----
-53

query I rowsort
SELECT ALL 63 * + - ( - 21 )
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ( + + 66 ) * 5 * + - CASE 99 WHEN - + 34 THEN - COUNT( * ) * 65 * - + 97 / - 42 END + - + 20 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT ( + + 66 ) * 5 * + - CASE 99 WHEN - + 34 THEN - COUNT ( * ) * 65 * - + 97 / - 42 END + - + 20 * + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL 80 * + - SUM( DISTINCT + 83 )
----
-6640

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL 80 * + - SUM ( DISTINCT + 83 )
----
-6640

query I rowsort
SELECT + CASE - 91 WHEN + 20 / NULLIF ( 41, 76 ) + + 5 THEN - 45 END * - - 73 + + - 10 * 97 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL + 62 * + + 43 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 62 * + + 43 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT DISTINCT + COALESCE ( + CAST( - - COUNT( * ) AS SIGNED ), + 89 * + 88 + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + COALESCE ( + CAST ( - - COUNT ( * ) AS INTEGER ), + 89 * + 88 + - COUNT ( * ) )
----
1

query II rowsort
SELECT ALL - 98 * - + 69 AS col1, + 3
----
6762
3

query I rowsort
SELECT + 39 + - CASE - - 52 WHEN ( + 39 ) THEN NULL ELSE + 7 END
----
32

query I rowsort
SELECT + 15 + - COALESCE ( - 7, - 99 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL - 85 * - 31 - + COUNT( * )
----
2634

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL - 85 * - 31 - + COUNT ( * )
----
2634

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + COUNT( 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7243
SELECT + COUNT ( 36 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT 98 * MIN( 49 ) * + + 81 * - 69 + + ( + + COUNT( * ) ) + + - 33 * - + 43 * + 24 AS col2
----
-26804321

skipif mysql # not compatible
query I rowsort label-7244
SELECT 98 * MIN ( 49 ) * + + 81 * - 69 + + ( + + COUNT ( * ) ) + + - 33 * - + 43 * + 24 AS col2
----
-26804321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7245
SELECT COALESCE ( + 48, 5 DIV - 50 + + COUNT( * ) DIV + 20 * - COUNT( * ), - ( + 12 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7245
SELECT COALESCE ( + 48, 5 / - 50 + + COUNT ( * ) / + 20 * - COUNT ( * ), - ( + 12 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT CASE 18 WHEN - 1 * 63 - + + ( - 42 ) THEN + + MIN( + 49 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT CASE 18 WHEN - 1 * 63 - + + ( - 42 ) THEN + + MIN ( + 49 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7247
SELECT ALL - 4 DIV + CAST( - 48 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - 4 / + CAST ( - 48 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - + MAX( ALL 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7248
SELECT - + MAX ( ALL 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7249
SELECT + ( + 91 ) DIV COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7249
SELECT + ( + 91 ) / COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7250
SELECT + 51 * - COUNT( * ) AS col2, + 79
----
-51
79

skipif mysql # not compatible
query II rowsort label-7250
SELECT + 51 * - COUNT ( * ) AS col2, + 79
----
-51
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT + - 49 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT + - 49 / + 56
----
0

query I rowsort
SELECT ALL + 44 + - COALESCE ( 14, 8 ) - - 69 * - 78
----
-5352

query I rowsort
SELECT DISTINCT + NULLIF ( - 31, - 78 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + + 47 * COUNT( * ) * - COUNT( ALL 41 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7254
SELECT + + 47 * COUNT ( * ) * - COUNT ( ALL 41 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + + NULLIF ( + 93, - COUNT( * ) * + + 92 + + + MAX( DISTINCT - 12 ) ) * + 9 AS col1
----
837

skipif mysql # not compatible
query I rowsort label-7255
SELECT + + NULLIF ( + 93, - COUNT ( * ) * + + 92 + + + MAX ( DISTINCT - 12 ) ) * + 9 AS col1
----
837

query I rowsort
SELECT DISTINCT 66 * 40
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT COUNT( * ) - + COUNT( * ) * 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7257
SELECT COUNT ( * ) - + COUNT ( * ) * 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT - COUNT( - + 94 ) + + - MIN( - 23 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7258
SELECT - COUNT ( - + 94 ) + + - MIN ( - 23 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7259
SELECT DISTINCT - 70 + - 27 AS col2, - COALESCE ( - - CAST( COUNT( * ) AS SIGNED ), 16 * - - 78 ) * + 62 + + CASE + - 77 WHEN CASE + 53 WHEN - 73 THEN NULL ELSE + 90 * - - 25 * ( + 43 ) END THEN + + 46 * 81 END
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT DISTINCT - 70 + - 27 AS col2, - COALESCE ( - - CAST ( COUNT ( * ) AS INTEGER ), 16 * - - 78 ) * + 62 + + CASE + - 77 WHEN CASE + 53 WHEN - 73 THEN NULL ELSE + 90 * - - 25 * ( + 43 ) END THEN + + 46 * 81 END
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - 59 * - COUNT( * ) + - - 83
----
142

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - 59 * - COUNT ( * ) + - - 83
----
142

query II rowsort
SELECT ALL 37 + - + 76 AS col2, 27 AS col2
----
-39
27

query I rowsort
SELECT 38 * 8
----
304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7263
SELECT + 58 / - CAST( NULL AS DECIMAL ) + - 42 + - 0 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 58 / - CAST ( NULL AS REAL ) + - 42 + - 0 * + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT 35 + - 88 * + + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT 35 + - 88 * + + COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT DISTINCT - COALESCE ( 61, + 78 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT - 83 * + ( - CASE - 67 WHEN - 51 THEN 35 WHEN - ( + 41 ) - - ( + 45 ) * - - 34 / 1 THEN + 89 + - 18 ELSE NULL END ) * - SUM( - 96 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT - 83 * + ( - CASE - 67 WHEN - 51 THEN 35 WHEN - ( + 41 ) - - ( + 45 ) * - - 34 / 1 THEN + 89 + - 18 ELSE NULL END ) * - SUM ( - 96 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT 73 * + 19 * COALESCE ( + 68, 32 ) * + COUNT( * ) + + - 19 AS col1
----
94297

skipif mysql # not compatible
query I rowsort label-7267
SELECT 73 * + 19 * COALESCE ( + 68, 32 ) * + COUNT ( * ) + + - 19 AS col1
----
94297

query I rowsort
SELECT DISTINCT 99 - + NULLIF ( - - 20, + ( 94 ) )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT ALL 57 DIV 10
----
5

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL 57 / 10
----
5

query I rowsort
SELECT ALL - 2 * + - NULLIF ( 60, + 97 ) AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT 1 * COUNT( - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-7271
SELECT 1 * COUNT ( - 92 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT - COUNT( * ) * + 29 DIV - COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - COUNT ( * ) * + 29 / - COUNT ( * ) col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT 11 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT 11 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 53, 26 col0
----
-53
26

query II rowsort
SELECT 46 AS col2, - 67 + - ( - 71 )
----
46
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT 98 - - - CAST( 72 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7276
SELECT 98 - - - CAST ( 72 AS INTEGER ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT 1 * - + CAST( NULL AS SIGNED ) * ( - + MAX( + + 13 ) ) / + 60 * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT 1 * - + CAST ( NULL AS INTEGER ) * ( - + MAX ( + + 13 ) ) / + 60 * + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT 30 * + - CAST( NULL AS SIGNED ) - + NULLIF ( ( + + 9 ), - + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT 30 * + - CAST ( NULL AS INTEGER ) - + NULLIF ( ( + + 9 ), - + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT - CASE COUNT( + 42 ) WHEN - 32 THEN - 21 ELSE + 28 + - + 82 * 97 + + + 90 + - 76 END * + 27 * + - 64
----
-13671936

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - CASE COUNT ( + 42 ) WHEN - 32 THEN - 21 ELSE + 28 + - + 82 * 97 + + + 90 + - 76 END * + 27 * + - 64
----
-13671936

query I rowsort
SELECT ALL - 59 * - - 88
----
-5192

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL + 73 + - 79 + - 63 DIV - 38
----
-5

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + 73 + - 79 + - 63 / - 38
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7282
SELECT ALL ( + CASE + SUM( ALL - 34 ) WHEN - NULLIF ( 13, - + 20 ) THEN - CASE - - COALESCE ( + 19, + CAST( NULL AS SIGNED ) ) WHEN - NULLIF ( - 50, - - 0 ) THEN - 97 END * + 54 * - 41 + + CAST( NULL AS SIGNED ) * - MIN( 59 ) * MIN( ALL + 5 ) - + COUNT( * ) WHEN 29 THEN + 81 WHEN + 99 THEN NULL END ) AS col1, + 30 * 42
----
NULL
1260

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL ( + CASE + SUM ( ALL - 34 ) WHEN - NULLIF ( 13, - + 20 ) THEN - CASE - - COALESCE ( + 19, + CAST ( NULL AS INTEGER ) ) WHEN - NULLIF ( - 50, - - 0 ) THEN - 97 END * + 54 * - 41 + + CAST ( NULL AS INTEGER ) * - MIN ( 59 ) * MIN ( ALL + 5 ) - + COUNT ( * ) WHEN 29 THEN + 81 WHEN + 99 THEN NULL END ) AS col1, + 30 * 42
----
NULL
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7283
SELECT + CAST( CASE + COUNT( * ) WHEN + 22 + - COUNT( * ) * + + MAX( - 94 ) THEN + + 86 + + - SUM( 63 ) WHEN + CASE - CASE + COUNT( + 29 ) WHEN - 30 THEN NULL WHEN - COUNT( * ) * + 19 + COUNT( + ( 17 ) ) - 40 + + + 17 THEN + 13 WHEN - - 6 * - 7 + - ( 27 ) THEN 21 * 33 + - 63 END WHEN 72 THEN NULL ELSE + MIN( 18 ) END THEN + NULLIF ( + + 94, 94 ) ELSE - 7 + 71 END AS SIGNED ) * + 9
----
576

skipif mysql # not compatible
query I rowsort label-7283
SELECT + CAST ( CASE + COUNT ( * ) WHEN + 22 + - COUNT ( * ) * + + MAX ( - 94 ) THEN + + 86 + + - SUM ( 63 ) WHEN + CASE - CASE + COUNT ( + 29 ) WHEN - 30 THEN NULL WHEN - COUNT ( * ) * + 19 + COUNT ( + ( 17 ) ) - 40 + + + 17 THEN + 13 WHEN - - 6 * - 7 + - ( 27 ) THEN 21 * 33 + - 63 END WHEN 72 THEN NULL ELSE + MIN ( 18 ) END THEN + NULLIF ( + + 94, 94 ) ELSE - 7 + 71 END AS INTEGER ) * + 9
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL - - 78 * COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - - 78 * COUNT ( * ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7285
SELECT + 71 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-7285
SELECT + 71 / + 96
----
0

query II rowsort
SELECT DISTINCT + + NULLIF ( + - 37, 87 / + 88 ) + - 76 AS col1, + 98 * + 88
----
-113
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL 55 + - 98 * + - COUNT( * ) * - 45 + 14
----
-4341

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL 55 + - 98 * + - COUNT ( * ) * - 45 + 14
----
-4341

query I rowsort
SELECT ALL + 32 + - 19 AS col2
----
13

query I rowsort
SELECT + 29 + + - 76 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + 21 * + + 77 * 57 * + - COUNT( * ) AS col0
----
-92169

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 21 * + + 77 * 57 * + - COUNT ( * ) AS col0
----
-92169

query I rowsort
SELECT DISTINCT - 63 * 88 AS col1
----
-5544

query I rowsort
SELECT ALL + 71 + - 46 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT - COUNT( + ( + - 94 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7293
SELECT - COUNT ( + ( + - 94 ) ) AS col1
----
-1

query I rowsort
SELECT - ( + 2 ) col0
----
-2

query I rowsort
SELECT ( + + 8 ) + 30
----
38

query II rowsort
SELECT ALL 80, + 62 AS col2
----
80
62

query II rowsort
SELECT 56 col0, 59 AS col2
----
56
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - COUNT( + - ( + + 77 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7298
SELECT - COUNT ( + - ( + + 77 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT SUM( 10 ) + - 2 col0
----
8

skipif mysql # not compatible
query I rowsort label-7299
SELECT SUM ( 10 ) + - 2 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT COUNT( + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT COUNT ( + - 17 )
----
1

query I rowsort
SELECT ALL 87 * - - 80
----
6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT 73 - + 16 * - - CAST( - - MIN( - + 15 ) AS SIGNED ) * 61 + + - 29 AS col1
----
14684

skipif mysql # not compatible
query I rowsort label-7302
SELECT 73 - + 16 * - - CAST ( - - MIN ( - + 15 ) AS INTEGER ) * 61 + + - 29 AS col1
----
14684

query II rowsort
SELECT - 90 AS col2, 76
----
-90
76

query II rowsort
SELECT ALL 91, - 68 AS col2
----
91
-68

query I rowsort
SELECT DISTINCT 16 * + 80
----
1280

query II rowsort
SELECT + 1 AS col0, - 85 + - - 76
----
1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT 97 * - COALESCE ( - 89, + 87 + COUNT( DISTINCT 30 ) ) + COUNT( * ) * + + 31 - + 78
----
8586

skipif mysql # not compatible
query I rowsort label-7307
SELECT 97 * - COALESCE ( - 89, + 87 + COUNT ( DISTINCT 30 ) ) + COUNT ( * ) * + + 31 - + 78
----
8586

query I rowsort
SELECT 8 - - + 76
----
84

query I rowsort
SELECT 11 * - 15
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - 84 * + - 97 - - + COUNT( DISTINCT + ( + 47 ) ) AS col1
----
8149

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 84 * + - 97 - - + COUNT ( DISTINCT + ( + 47 ) ) AS col1
----
8149

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT 43 DIV - 36 + - - 21 DIV + 16 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-7311
SELECT 43 / - 36 + - - 21 / + 16 + - 71
----
-71

query II rowsort
SELECT + 13, + 81 AS col1
----
13
81

query I rowsort
SELECT 98 + 66 col0
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ( + 85 ) DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT ( + 85 ) / - - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT COUNT( * ) + - - 61 * 77
----
4698

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT COUNT ( * ) + - - 61 * 77
----
4698

query I rowsort
SELECT ALL - + 18 * + 96
----
-1728

query II rowsort
SELECT ALL - 94, - 43 col1
----
-94
-43

query I rowsort
SELECT ALL 80 + + ( + 44 ) AS col2
----
124

query I rowsort
SELECT + 50 * - 89
----
-4450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT + COALESCE ( - NULLIF ( + 10, + 59 * - CAST( - 82 AS SIGNED ) - - - 15 * + - 87 ), - 26 + - 58 - - 25 + - 52, - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7321
SELECT + COALESCE ( - NULLIF ( + 10, + 59 * - CAST ( - 82 AS INTEGER ) - - - 15 * + - 87 ), - 26 + - 58 - - 25 + - 52, - 10 ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT 84 * - CAST( + 7 AS SIGNED ) AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-7322
SELECT 84 * - CAST ( + 7 AS INTEGER ) AS col2
----
-588

query II rowsort
SELECT + 82 col1, + 7 AS col0
----
82
7

query I rowsort
SELECT ALL - 85 * - 54
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL + 27 + + COUNT( ALL - 38 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + 27 + + COUNT ( ALL - 38 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT MIN( 63 ) + - - 97 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-7326
SELECT MIN ( 63 ) + - - 97 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ( 27 ) * - SUM( ALL + 72 )
----
-1944

skipif mysql # not compatible
query I rowsort label-7327
SELECT ( 27 ) * - SUM ( ALL + 72 )
----
-1944

query I rowsort
SELECT ALL 69 * - 9 AS col0
----
-621

onlyif mysql # aggregate syntax: 
query II rowsort label-7329
SELECT ALL + COUNT( * ) AS col2, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-7329
SELECT ALL + COUNT ( * ) AS col2, 58
----
1
58

query I rowsort
SELECT - 27 * + 56
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT DISTINCT + 53 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + 53 + + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - + 95 - + MAX( ALL 64 ) * - + 11 AS col2
----
609

skipif mysql # not compatible
query I rowsort label-7332
SELECT - + 95 - + MAX ( ALL 64 ) * - + 11 AS col2
----
609

query I rowsort
SELECT - + 15 * - + 81 + 72 * + - 34
----
-1233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL + + 59 * - CAST( + COUNT( * ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + + 59 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-59

query II rowsort
SELECT 0 AS col0, 14 AS col2
----
0
14

query I rowsort
SELECT - - ( + 50 ) AS col0
----
50

query II rowsort
SELECT + ( + + 7 ) AS col2, 85 AS col1
----
7
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT NULLIF ( - + COUNT( * ), - - 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT NULLIF ( - + COUNT ( * ), - - 84 ) AS col0
----
-1

query I rowsort
SELECT ALL + 74 - - 59 + + - 46 AS col1
----
87

query I rowsort
SELECT - CASE + + 27 WHEN - NULLIF ( - - 76, + - 17 ) THEN - 5 WHEN + 89 THEN ( - - 77 ) ELSE NULL END * + + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL + 1 * + 58 * + CAST( NULL AS SIGNED ) / - - 33 * + ( - ( - - 30 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + 1 * + 58 * + CAST ( NULL AS INTEGER ) / - - 33 * + ( - ( - - 30 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 83 * ( - 20 ) AS col1
----
-1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT DISTINCT NULLIF ( - 32, + + ( - 62 ) * - - 63 + + 11 - CAST( - COUNT( * ) AS SIGNED ) * + 0 * + + 53 * + 72 * + - 1 * + 60 )
----
-32

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT NULLIF ( - 32, + + ( - 62 ) * - - 63 + + 11 - CAST ( - COUNT ( * ) AS INTEGER ) * + 0 * + + 53 * + 72 * + - 1 * + 60 )
----
-32

query I rowsort
SELECT ALL ( + ( + 51 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - COUNT( * ) * + - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7345
SELECT - COUNT ( * ) * + - 26 AS col1
----
26

query I rowsort
SELECT + 22 * - 77 * 34
----
-57596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7347
SELECT - CAST( 63 AS SIGNED ) + 98 - 41 - + 13 + - 82 DIV + CAST( - - CASE + - 3 WHEN 9 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE 38 * 23 END AS SIGNED ) + CAST( 68 AS SIGNED ) + 72 * - - 79 AS col0
----
5737

skipif mysql # not compatible
query I rowsort label-7347
SELECT - CAST ( 63 AS INTEGER ) + 98 - 41 - + 13 + - 82 / + CAST ( - - CASE + - 3 WHEN 9 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE 38 * 23 END AS INTEGER ) + CAST ( 68 AS INTEGER ) + 72 * - - 79 AS col0
----
5737

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT ALL 4 DIV 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL 4 / 26 AS col1
----
0

query II rowsort
SELECT ( - - 31 ), - 30 AS col1
----
31
-30

query I rowsort
SELECT + 92 + + 84
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL SUM( - 11 ) * + + 63 AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL SUM ( - 11 ) * + + 63 AS col2
----
-693

query I rowsort
SELECT DISTINCT + NULLIF ( 94, - 92 * 58 ) col1
----
94

query I rowsort
SELECT + NULLIF ( + - 18, - COALESCE ( + + 39, + 59 + - - 62 + - 46 * 38 * 72 ) * 94 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-7354
SELECT ( 50 ) AS col0, 94 DIV + - 16 AS col1
----
50
-5

skipif mysql # not compatible
query II rowsort label-7354
SELECT ( 50 ) AS col0, 94 / + - 16 AS col1
----
50
-5

query I rowsort
SELECT ALL + 4 * + 45 + - - 46 * - 48 AS col2
----
-2028

query I rowsort
SELECT + 56 * + 90 * 65 * 60
----
19656000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7357
SELECT ALL + NULLIF ( CASE - COUNT( * ) WHEN - ( + 45 ) THEN NULL ELSE 58 DIV 12 + + 74 END, COUNT( ALL 61 ) ) * - 89 + + 28
----
-6914

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + NULLIF ( CASE - COUNT ( * ) WHEN - ( + 45 ) THEN NULL ELSE 58 / 12 + + 74 END, COUNT ( ALL 61 ) ) * - 89 + + 28
----
-6914

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT + NULLIF ( - COUNT( * ), + MAX( + - 55 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7358
SELECT + NULLIF ( - COUNT ( * ), + MAX ( + - 55 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + COALESCE ( - 20, + COUNT( * ) * + + 79 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COALESCE ( - 20, + COUNT ( * ) * + + 79 ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + COUNT( * ) * 17 - + 34
----
-17

skipif mysql # not compatible
query I rowsort label-7360
SELECT + COUNT ( * ) * 17 - + 34
----
-17

query I rowsort
SELECT - + 53 * - 38 - 86
----
1928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT ALL + COALESCE ( - COUNT( * ), - 17, + COUNT( ALL + + 6 ) + - CAST( + MAX( ALL + 80 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL + COALESCE ( - COUNT ( * ), - 17, + COUNT ( ALL + + 6 ) + - CAST ( + MAX ( ALL + 80 ) AS INTEGER ) )
----
-1

query I rowsort
SELECT 85 * + 16 - ( + 95 )
----
1265

query I rowsort
SELECT ALL - - 27 * - 17 + + 25
----
-434

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT - - 93 * 42 AS col1, + MIN( - + 79 )
----
3906
-79

skipif mysql # not compatible
query II rowsort label-7365
SELECT - - 93 * 42 AS col1, + MIN ( - + 79 )
----
3906
-79

query I rowsort
SELECT - + 17 * 12 * 47 + - 6 + - 7 + 26
----
-9575

query I rowsort
SELECT + + 49 + 17 col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT + 86 * 3 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 86 * 3 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 4 + - + ( - 33 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT ALL 88 * 43 AS col1, - COUNT( * ) * + 78 + COUNT( * ) AS col1
----
3784
-77

skipif mysql # not compatible
query II rowsort label-7370
SELECT ALL 88 * 43 AS col1, - COUNT ( * ) * + 78 + COUNT ( * ) AS col1
----
3784
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - ( + 92 ) + + 43 * + COUNT( - 21 ) + 72
----
23

skipif mysql # not compatible
query I rowsort label-7371
SELECT - ( + 92 ) + + 43 * + COUNT ( - 21 ) + 72
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL NULLIF ( 71, - 46 + + 7 / MAX( DISTINCT - - 27 ) * + 32 * - NULLIF ( 97, - 62 / + 15 - + 91 ) + + 6 * - - 78 )
----
71

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL NULLIF ( 71, - 46 + + 7 / MAX ( DISTINCT - - 27 ) * + 32 * - NULLIF ( 97, - 62 / + 15 - + 91 ) + + 6 * - - 78 )
----
71

query II rowsort
SELECT 24, + 93 + - 80 AS col1
----
24
13

query I rowsort
SELECT - 22 * 59 AS col2
----
-1298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT ALL + 70 DIV COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + 70 / COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT - 45 AS col0, - ( NULLIF ( - - SUM( 47 ), - 79 * + 9 ) ) col2
----
-45
-47

skipif mysql # not compatible
query II rowsort label-7376
SELECT - 45 AS col0, - ( NULLIF ( - - SUM ( 47 ), - 79 * + 9 ) ) col2
----
-45
-47

query I rowsort
SELECT - 75 + COALESCE ( + 98, + 7 + - 49, 38 ) col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT - 86 DIV + 21 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 86 / + 21 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT ALL - ( - + 70 ) + + - COUNT( * ) * - 63 DIV + 61 + SUM( + 41 )
----
112

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - ( - + 70 ) + + - COUNT ( * ) * - 63 / + 61 + SUM ( + 41 )
----
112

query I rowsort
SELECT ALL 50 + + 92
----
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7381
SELECT 71 DIV + 38 + + 63 + - - 83 + + ( - 55 ) + - - 71 + - CAST( + 0 AS SIGNED ) * + 80
----
163

skipif mysql # not compatible
query I rowsort label-7381
SELECT 71 / + 38 + + 63 + - - 83 + + ( - 55 ) + - - 71 + - CAST ( + 0 AS INTEGER ) * + 80
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL + CASE - CASE - 79 WHEN 17 + + + 94 - + 50 THEN NULL ELSE COUNT( * ) END WHEN + 12 - - 64 * - 4 THEN - - 49 * + 73 + - CASE + - 3 WHEN 16 THEN NULL WHEN + - 57 THEN - 33 ELSE NULL END * - AVG ( 9 ) * 23 + + - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + CASE - CASE - 79 WHEN 17 + + + 94 - + 50 THEN NULL ELSE COUNT ( * ) END WHEN + 12 - - 64 * - 4 THEN - - 49 * + 73 + - CASE + - 3 WHEN 16 THEN NULL WHEN + - 57 THEN - 33 ELSE NULL END * - AVG ( 9 ) * 23 + + - 85 END
----
NULL

query I rowsort
SELECT - 32 * 23 * + 65
----
-47840

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - ( + MIN( ALL + - 84 ) ) + + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7384
SELECT - ( + MIN ( ALL + - 84 ) ) + + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT 72 * + ( - 85 ) + + SUM( 26 )
----
-6094

skipif mysql # not compatible
query I rowsort label-7385
SELECT 72 * + ( - 85 ) + + SUM ( 26 )
----
-6094

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT + 26 - COUNT( + - 90 )
----
25

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 26 - COUNT ( + - 90 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT - - ( - 24 ) DIV 55 DIV - 38 + - - 54 + ( - 19 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7387
SELECT - - ( - 24 ) / 55 / - 38 + - - 54 + ( - 19 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT COUNT( * ) AS col0, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-7388
SELECT COUNT ( * ) AS col0, - 36
----
1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT 31 + + - COUNT( DISTINCT - 49 ) * - + 94
----
125

skipif mysql # not compatible
query I rowsort label-7389
SELECT 31 + + - COUNT ( DISTINCT - 49 ) * - + 94
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT - - COUNT( * ) + - 94 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - - COUNT ( * ) + - 94 AS col1
----
-93

query II rowsort
SELECT ALL - 80, ( CASE 58 WHEN 28 + 83 THEN + - 98 END ) col0
----
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT 39 * + 85 + 91 + + 56 DIV + + 69 AS col1
----
3406

skipif mysql # not compatible
query I rowsort label-7392
SELECT 39 * + 85 + 91 + + 56 / + + 69 AS col1
----
3406

query I rowsort
SELECT DISTINCT + ( 6 ) * - - 27
----
162

query I rowsort
SELECT ( + 92 ) + + + 78 AS col1
----
170

query I rowsort
SELECT - 48 * + - 27 AS col1
----
1296

query I rowsort
SELECT DISTINCT 87 * 86 AS col0
----
7482

query II rowsort
SELECT ALL - 60 AS col0, + 36
----
-60
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - COUNT( * ) + 69 * 95
----
6554

skipif mysql # not compatible
query I rowsort label-7398
SELECT - COUNT ( * ) + 69 * 95
----
6554

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT 93 + - 76 * ( COUNT( * ) ) * - 55 + 34 AS col2
----
4307

skipif mysql # not compatible
query I rowsort label-7399
SELECT 93 + - 76 * ( COUNT ( * ) ) * - 55 + 34 AS col2
----
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT 80 * + - CASE - 96 WHEN - 35 THEN + 6 * + NULLIF ( 87, COUNT( * ) ) END + 25 * - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT 80 * + - CASE - 96 WHEN - 35 THEN + 6 * + NULLIF ( 87, COUNT ( * ) ) END + 25 * - 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL - MAX( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - MAX ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + CASE - + 99 WHEN - 21 + + - 96 THEN - 32 + + - ( + 55 ) - - SUM( 49 ) + - + COUNT( * ) + - 60 * + 32 * + - ( - ( + 20 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT + CASE - + 99 WHEN - 21 + + - 96 THEN - 32 + + - ( + 55 ) - - SUM ( 49 ) + - + COUNT ( * ) + - 60 * + 32 * + - ( - ( + 20 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL - + 91 * + 27 - - 24 * - COUNT( DISTINCT + + 37 ) * - ( + 77 ) AS col0
----
-609

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - + 91 * + 27 - - 24 * - COUNT ( DISTINCT + + 37 ) * - ( + 77 ) AS col0
----
-609

query I rowsort
SELECT 3 + + - 36 + - 51 * + 45 * + + ( + 56 ) + + + 84 * + 72 col1
----
-122505

query I rowsort
SELECT ALL 28 * + 24 col2
----
672

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7406
SELECT ( + + 78 ) - - + CAST( NULL AS DECIMAL ) + + + COUNT( * ) col0, 17 * - + 67
----
NULL
-1139

skipif mysql # not compatible
query II rowsort label-7406
SELECT ( + + 78 ) - - + CAST ( NULL AS REAL ) + + + COUNT ( * ) col0, 17 * - + 67
----
NULL
-1139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT CAST( + 51 AS SIGNED ) * COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT CAST ( + 51 AS INTEGER ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7408
SELECT 17 + + - SUM( ALL 38 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT 17 + + - SUM ( ALL 38 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 66 + + 97 * + 36 col0
----
3558

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL + COUNT( * ) + + 15
----
16

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + COUNT ( * ) + + 15
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT 7 + 43 + + ( + 79 ) + + 45 + CASE - + 50 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( ALL - 12 ) WHEN 99 THEN - 2 END * 35 * + 24 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT 7 + 43 + + ( + 79 ) + + 45 + CASE - + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( ALL - 12 ) WHEN 99 THEN - 2 END * 35 * + 24 + 60
----
NULL

query I rowsort
SELECT DISTINCT 86 + + NULLIF ( 84, - 11 * 99 )
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT DISTINCT - 21 + + CASE + 95 WHEN - 43 THEN NULL WHEN ( + - 65 ) THEN NULL WHEN 71 THEN NULL ELSE + 89 * + 70 * + - 92 * + CAST( - - MAX( - 9 ) AS SIGNED ) END + + 73 * 9
----
5159076

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT - 21 + + CASE + 95 WHEN - 43 THEN NULL WHEN ( + - 65 ) THEN NULL WHEN 71 THEN NULL ELSE + 89 * + 70 * + - 92 * + CAST ( - - MAX ( - 9 ) AS INTEGER ) END + + 73 * 9
----
5159076

query I rowsort
SELECT 20 * + 65
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL 21 + 8 + + + 71 * + - MAX( ALL 98 ) AS col1
----
-6929

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL 21 + 8 + + + 71 * + - MAX ( ALL 98 ) AS col1
----
-6929

query I rowsort
SELECT DISTINCT - NULLIF ( + 9, + 24 ) + - - 25 col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT 46 * - 35, + COUNT( * ) col0
----
-1610
1

skipif mysql # not compatible
query II rowsort label-7417
SELECT 46 * - 35, + COUNT ( * ) col0
----
-1610
1

query I rowsort
SELECT ALL - 4 + 82 - + ( + - 60 ) + - + 68 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + - MIN( 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7419
SELECT + - MIN ( 43 )
----
-43

query I rowsort
SELECT + 57 * + - 12
----
-684

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT 46 DIV - 99 * - 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7421
SELECT 46 / - 99 * - 10 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL - COUNT( * ) - - - SUM( ALL + 90 )
----
-91

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - COUNT ( * ) - - - SUM ( ALL + 90 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL - ( - MIN( DISTINCT 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - ( - MIN ( DISTINCT 85 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL 19 - COUNT ( * )
----
18

query I rowsort
SELECT - 44 * + 5 - + 7 AS col1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT COUNT( * ) * - 79 + + SUM( DISTINCT + - 14 ) * + 38 AS col1
----
-611

skipif mysql # not compatible
query I rowsort label-7426
SELECT COUNT ( * ) * - 79 + + SUM ( DISTINCT + - 14 ) * + 38 AS col1
----
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT CAST( NULL AS SIGNED ) / - CAST( 90 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT CAST ( NULL AS INTEGER ) / - CAST ( 90 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) - + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) - + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT NULLIF ( - COUNT( * ), 36 * - - ( + 56 ) ) * + 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT NULLIF ( - COUNT ( * ), 36 * - - ( + 56 ) ) * + 44 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL - CAST( - - 31 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL - CAST ( - - 31 AS INTEGER ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7431
SELECT + ( + 41 ) * - 79 - 2 DIV - + 49 - 77
----
-3316

skipif mysql # not compatible
query I rowsort label-7431
SELECT + ( + 41 ) * - 79 - 2 / - + 49 - 77
----
-3316

query I rowsort
SELECT ALL - 97 * + - 88 AS col2
----
8536

query II rowsort
SELECT 87 + - 8 AS col2, COALESCE ( + 6, + 18 ) AS col2
----
79
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT - ( + - SUM( + 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - ( + - SUM ( + 34 ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7435
SELECT DISTINCT - + ( MIN( ALL 5 ) ) * - 53, - 97 + - 44 - 40 + - 32 AS col0
----
265
-213

skipif mysql # not compatible
query II rowsort label-7435
SELECT DISTINCT - + ( MIN ( ALL 5 ) ) * - 53, - 97 + - 44 - 40 + - 32 AS col0
----
265
-213

query I rowsort
SELECT ALL 88 + - 37
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT CAST( NULL AS SIGNED ) - + - 36 + + ( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT CAST ( NULL AS INTEGER ) - + - 36 + + ( 70 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7438
SELECT ALL + 7 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 7 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 52 + - 19 * - 32 AS col1
----
556

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT - COUNT( * ), - 29 * + + 22 col2
----
-1
-638

skipif mysql # not compatible
query II rowsort label-7440
SELECT - COUNT ( * ), - 29 * + + 22 col2
----
-1
-638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT ( + 15 ) + - + 32 * - 88 * CAST( COUNT( * ) AS SIGNED ) * - 79 AS col2
----
-222449

skipif mysql # not compatible
query I rowsort label-7441
SELECT ( + 15 ) + - + 32 * - 88 * CAST ( COUNT ( * ) AS INTEGER ) * - 79 AS col2
----
-222449

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT COUNT( * ) + + 89 - 89 + CASE 96 WHEN - 12 THEN - + 38 ELSE NULL END * - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT COUNT ( * ) + + 89 - 89 + CASE 96 WHEN - 12 THEN - + 38 ELSE NULL END * - - 64
----
NULL

query I rowsort
SELECT ALL + 80 * + 74 AS col1
----
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( * ) * + 59
----
59

query I rowsort
SELECT 7 + - - 5 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT DISTINCT 33 + - 80 * MIN( - 7 ) AS col2
----
593

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT 33 + - 80 * MIN ( - 7 ) AS col2
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - 62 + + - 23 + - + 65 * - COUNT( * ) - - 0
----
-20

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 62 + + - 23 + - + 65 * - COUNT ( * ) - - 0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT DISTINCT COALESCE ( + 45, - + 21 * 52 + + 6 + - 28 + CAST( - 97 AS SIGNED ) + + + 99 - + - 67 ) - + + NULLIF ( - 44, ( + 82 ) ) + + 15 + 94 - - - 62 - + COUNT( * ) * 20 * - ( - 27 )
----
-404

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT COALESCE ( + 45, - + 21 * 52 + + 6 + - 28 + CAST ( - 97 AS INTEGER ) + + + 99 - + - 67 ) - + + NULLIF ( - 44, ( + 82 ) ) + + 15 + 94 - - - 62 - + COUNT ( * ) * 20 * - ( - 27 )
----
-404

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT - CASE - + 3 WHEN 71 * ( - 14 ) + - - 85 THEN - 74 DIV - + 60 + - 40 - - 50 * + + 84 * - - 56 ELSE ( - - 4 ) END col0
----
-4

skipif mysql # not compatible
query I rowsort label-7449
SELECT - CASE - + 3 WHEN 71 * ( - 14 ) + - - 85 THEN - 74 / - + 60 + - 40 - - 50 * + + 84 * - - 56 ELSE ( - - 4 ) END col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL 92 * + COUNT( * ) + - 12 - - - 17
----
63

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL 92 * + COUNT ( * ) + - 12 - - - 17
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7451
SELECT - - 55 * + - MAX( ALL + - 1 ) + ( 90 ) DIV - ( - + 96 ) + + 84 + - CAST( + - 1 AS SIGNED ) * - 89 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7451
SELECT - - 55 * + - MAX ( ALL + - 1 ) + ( 90 ) / - ( - + 96 ) + + 84 + - CAST ( + - 1 AS INTEGER ) * - 89 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7452
SELECT + 96 DIV + - 31 - - + ( + CAST( - SUM( - + 4 ) AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7452
SELECT + 96 / + - 31 - - + ( + CAST ( - SUM ( - + 4 ) AS INTEGER ) ) col0
----
1

query I rowsort
SELECT - 91 * - ( + 64 )
----
5824

query I rowsort
SELECT - + 31 - + - 86 AS col0
----
55

query I rowsort
SELECT ALL - - 0 * 48 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + 21 * + + COUNT( * ) * + - 72 + - + 81 col1
----
-1593

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 21 * + + COUNT ( * ) * + - 72 + - + 81 col1
----
-1593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL - + CAST( 20 AS SIGNED ) * 86
----
-1720

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - + CAST ( 20 AS INTEGER ) * 86
----
-1720

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT - + 87 * 88 DIV + - 10
----
765

skipif mysql # not compatible
query I rowsort label-7458
SELECT - + 87 * 88 / + - 10
----
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT ALL + 82 DIV + ( + COUNT( * ) ) + + ( + + 89 ) + 35 col2
----
206

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + 82 / + ( + COUNT ( * ) ) + + ( + + 89 ) + 35 col2
----
206

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7460
SELECT DISTINCT + ( ( - 79 ) ) col2, - CAST( NULL AS SIGNED ) / 83 * + 85
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-7460
SELECT DISTINCT + ( ( - 79 ) ) col2, - CAST ( NULL AS INTEGER ) / 83 * + 85
----
-79
NULL

query I rowsort
SELECT + COALESCE ( 0, - - 16 * + 99 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT 96 * - NULLIF ( - - COALESCE ( + 27, - 15 ), + 46 + - CAST( + 56 AS SIGNED ) + + 25 * - - 72 * - + COUNT( ALL - 38 ) * - 29 - - 99 * - + COALESCE ( - + 30, CASE + COUNT( + 30 ) WHEN 14 * CAST( NULL AS SIGNED ) / + CAST( + ( - 45 ) AS SIGNED ) * + 34 * - + ( - + 12 ) / + 35 - + 81 + 84 * COUNT( * ) * - 37 * + + 62 + COUNT( DISTINCT + + 94 ) THEN + 74 * + + 62 - + NULLIF ( + + 93, - - 1 ) END - 94, 90 ) ) + - 49 * ( - SUM( DISTINCT - 96 ) * + CAST( NULL AS SIGNED ) + + SUM( ALL + 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT 96 * - NULLIF ( - - COALESCE ( + 27, - 15 ), + 46 + - CAST ( + 56 AS INTEGER ) + + 25 * - - 72 * - + COUNT ( ALL - 38 ) * - 29 - - 99 * - + COALESCE ( - + 30, CASE + COUNT ( + 30 ) WHEN 14 * CAST ( NULL AS INTEGER ) / + CAST ( + ( - 45 ) AS INTEGER ) * + 34 * - + ( - + 12 ) / + 35 - + 81 + 84 * COUNT ( * ) * - 37 * + + 62 + COUNT ( DISTINCT + + 94 ) THEN + 74 * + + 62 - + NULLIF ( + + 93, - - 1 ) END - 94, 90 ) ) + - 49 * ( - SUM ( DISTINCT - 96 ) * + CAST ( NULL AS INTEGER ) + + SUM ( ALL + 97 ) )
----
NULL

query I rowsort
SELECT + + 46 * - + 51 + + - 92 + + 16
----
-2422

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT ALL + 11 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + 11 / - 33
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7465
SELECT + 76 AS col0, - COUNT( * ), + - 60 AS col1
----
76
-1
-60

skipif mysql # not compatible
query III rowsort label-7465
SELECT + 76 AS col0, - COUNT ( * ), + - 60 AS col1
----
76
-1
-60

query I rowsort
SELECT - 70 * 58 * - 78 AS col2
----
316680

query I rowsort
SELECT DISTINCT + 93 * - + 45 AS col1
----
-4185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT - CAST( NULL AS SIGNED ) / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT - CAST ( NULL AS INTEGER ) / 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL 96 * 73 + - 47 - - CASE + COUNT( * ) WHEN - - 15 THEN - COALESCE ( 24, 72, - 96 / - CAST( NULL AS SIGNED ) * 96 + - + CAST( NULL AS SIGNED ) / - 40 * + + 12 ) * + CAST( + 67 AS SIGNED ) * - 27 ELSE ( + 11 ) + - CASE + - 74 WHEN + + 98 * + + CAST( NULL AS SIGNED ) + + AVG ( + + ( 56 ) ) + 85 + + 35 THEN - + CASE - 92 WHEN - 94 - - + 39 + 19 THEN NULL WHEN MIN( 12 ) THEN NULL ELSE - + 83 * + 98 / - 78 * - 57 * - + 57 * COALESCE ( - 32, - 18 ) END ELSE NULL END END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 96 * 73 + - 47 - - CASE + COUNT ( * ) WHEN - - 15 THEN - COALESCE ( 24, 72, - 96 / - CAST ( NULL AS INTEGER ) * 96 + - + CAST ( NULL AS INTEGER ) / - 40 * + + 12 ) * + CAST ( + 67 AS INTEGER ) * - 27 ELSE ( + 11 ) + - CASE + - 74 WHEN + + 98 * + + CAST ( NULL AS INTEGER ) + + AVG ( + + ( 56 ) ) + 85 + + 35 THEN - + CASE - 92 WHEN - 94 - - + 39 + 19 THEN NULL WHEN MIN ( 12 ) THEN NULL ELSE - + 83 * + 98 / - 78 * - 57 * - + 57 * COALESCE ( - 32, - 18 ) END ELSE NULL END END * 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT 64 * 68 + - 46 DIV + 90
----
4352

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT 64 * 68 + - 46 / + 90
----
4352

query I rowsort
SELECT - 40 * - - 19
----
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL NULLIF ( - 71, - + CAST( NULL AS SIGNED ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL NULLIF ( - 71, - + CAST ( NULL AS INTEGER ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT - MAX( 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7473
SELECT - MAX ( 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT ALL 96 AS col1, + COUNT( 57 ) col1
----
96
1

skipif mysql # not compatible
query II rowsort label-7474
SELECT ALL 96 AS col1, + COUNT ( 57 ) col1
----
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL - ( + CAST( + + 19 AS SIGNED ) ) + 1 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - ( + CAST ( + + 19 AS INTEGER ) ) + 1 AS col0
----
-18

query II rowsort
SELECT - 4 - + 66 + + 47 * - 21 AS col1, 4
----
-1057
4

query I rowsort
SELECT + 74 * + 16
----
1184

query II rowsort
SELECT ALL 64 col1, 72 + - 94 + - ( 66 ) AS col0
----
64
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + ( - 64 ) - + CASE - ( COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN 78 * 13 THEN CASE - 89 WHEN - 21 + + 54 THEN 30 END ELSE NULL END + - 11 - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + ( - 64 ) - + CASE - ( COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN 78 * 13 THEN CASE - 89 WHEN - 21 + + 54 THEN 30 END ELSE NULL END + - 11 - - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + 67 + ( - + 28 ) * + - 77 + + - MAX( DISTINCT + - 45 ) - + 46 + - + 18 * + + MAX( ALL - 97 ) + + 39 * + 75 * + - 74 * 9 + - - 32 AS col0
----
-1944050

skipif mysql # not compatible
query I rowsort label-7480
SELECT + 67 + ( - + 28 ) * + - 77 + + - MAX ( DISTINCT + - 45 ) - + 46 + - + 18 * + + MAX ( ALL - 97 ) + + 39 * + 75 * + - 74 * 9 + - - 32 AS col0
----
-1944050

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + COUNT( * ) - + - 30
----
31

skipif mysql # not compatible
query I rowsort label-7481
SELECT + COUNT ( * ) - + - 30
----
31

query II rowsort
SELECT ALL 72 AS col1, + 53 * + + 18 AS col2
----
72
954

query I rowsort
SELECT DISTINCT - 15 * - 20 AS col0
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT - CAST( 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7484
SELECT - CAST ( 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT + + 82 DIV 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT + + 82 / 57 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT + + 77 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT + + 77 / - - 88
----
0

query I rowsort
SELECT + 14 * + ( - 63 ) AS col1
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT MIN( DISTINCT 60 ) * - CAST( NULL AS SIGNED ) * 53 + - - 81 / + 28 + + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT MIN ( DISTINCT 60 ) * - CAST ( NULL AS INTEGER ) * 53 + - - 81 / + 28 + + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7489
SELECT - + 55, - 93 + - COUNT( * ) * - 31 + 48 DIV - 75 * - 84 AS col0
----
-55
-62

skipif mysql # not compatible
query II rowsort label-7489
SELECT - + 55, - 93 + - COUNT ( * ) * - 31 + 48 / - 75 * - 84 AS col0
----
-55
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT + 41 DIV - MIN( - + 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 41 / - MIN ( - + 99 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 52 * 36 * - 57 AS col2
----
106704

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT DISTINCT + MAX( DISTINCT + 79 ) AS col2, 22 - + - 36 * - ( 14 ) * - + ( + - 7 ) AS col2
----
79
-3506

skipif mysql # not compatible
query II rowsort label-7492
SELECT DISTINCT + MAX ( DISTINCT + 79 ) AS col2, 22 - + - 36 * - ( 14 ) * - + ( + - 7 ) AS col2
----
79
-3506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT DISTINCT - 71 DIV 23 + 41 + - 47 * - MAX( - 59 ) + 97 + 76 * + 11 AS col2
----
-1802

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - 71 / 23 + 41 + - 47 * - MAX ( - 59 ) + 97 + 76 * + 11 AS col2
----
-1802

query II rowsort
SELECT ALL + + 17, 43 + + 47 col0
----
17
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT + - ( + - CASE - 29 WHEN 21 * + 94 + + 58 / - + COUNT( * ) THEN NULL WHEN - - 15 * + 78 + - - CAST( - 80 AS SIGNED ) + + COUNT( * ) THEN + 72 * + AVG ( - + 84 ) END ) / + 32 - - MAX( - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT + - ( + - CASE - 29 WHEN 21 * + 94 + + 58 / - + COUNT ( * ) THEN NULL WHEN - - 15 * + 78 + - - CAST ( - 80 AS INTEGER ) + + COUNT ( * ) THEN + 72 * + AVG ( - + 84 ) END ) / + 32 - - MAX ( - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + + 89 + - - SUM( - 13 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7496
SELECT + + 89 + - - SUM ( - 13 ) AS col1
----
76

query I rowsort
SELECT - 40 - + 4 + - + 57 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT NULLIF ( - NULLIF ( - ( - 62 ), + 18 + - - SUM( - 64 ) + + 56 + 62 - 46 ), 41 )
----
-62

skipif mysql # not compatible
query I rowsort label-7498
SELECT NULLIF ( - NULLIF ( - ( - 62 ), + 18 + - - SUM ( - 64 ) + + 56 + 62 - 46 ), 41 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - 91 * + COUNT( * ) + COUNT( DISTINCT 66 )
----
-90

skipif mysql # not compatible
query I rowsort label-7499
SELECT - 91 * + COUNT ( * ) + COUNT ( DISTINCT 66 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - COUNT( * ) * - 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7500
SELECT - COUNT ( * ) * - 52 AS col2
----
52

query I rowsort
SELECT 55 - + - 17 * - + 36
----
-557

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT 26 * - + 15 DIV 3 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-7502
SELECT 26 * - + 15 / 3 AS col0
----
-130

query I rowsort
SELECT DISTINCT - ( 64 ) - + 48 AS col0
----
-112

query II rowsort
SELECT 45 + - 71, 42 AS col0
----
-26
42

query I rowsort
SELECT 26 * + 64
----
1664

query I rowsort
SELECT 31 + + 43 * - 43
----
-1818

query I rowsort
SELECT - 82 * ( ( 65 ) )
----
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL + COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + COUNT ( * ) + - 76
----
-75

query I rowsort
SELECT 1 + 63
----
64

query I rowsort
SELECT + 48 + + 96
----
144

query I rowsort
SELECT DISTINCT 88 * - CASE + 84 WHEN - - 70 THEN - + 69 END / + 62
----
NULL

query I rowsort
SELECT ALL CASE - + 42 WHEN + 88 THEN NULL ELSE + + 78 - 96 * 68 END
----
-6450

query I rowsort
SELECT 93 + 79 * + 25 AS col0
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT COUNT( ALL + 64 ) - + + 10 * + + 20
----
-199

skipif mysql # not compatible
query I rowsort label-7514
SELECT COUNT ( ALL + 64 ) - + + 10 * + + 20
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT 54 * - - CAST( - 80 AS SIGNED ) AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT 54 * - - CAST ( - 80 AS INTEGER ) AS col1
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT + ( 35 ) + - - COUNT( * ) * + 26 * 91
----
2401

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + ( 35 ) + - - COUNT ( * ) * + 26 * 91
----
2401

query I rowsort
SELECT COALESCE ( + - 49, + 41 ) + + 96 + 85 + - 36 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL 70 * COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL 70 * COUNT ( * ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT 21 * - 6 * - 64 * 16 + - - 10 + - 6 - + - COALESCE ( + SUM( DISTINCT - 93 ), CAST( NULL AS SIGNED ) )
----
128935

skipif mysql # not compatible
query I rowsort label-7519
SELECT 21 * - 6 * - 64 * 16 + - - 10 + - 6 - + - COALESCE ( + SUM ( DISTINCT - 93 ), CAST ( NULL AS INTEGER ) )
----
128935

query I rowsort
SELECT DISTINCT ( + + 42 ) - - 33 + + + 15
----
90

query I rowsort
SELECT 46 + - 45 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT CAST( NULL AS SIGNED ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT CAST ( NULL AS INTEGER ) * - 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - + 67 AS col2
----
-5092

query I rowsort
SELECT ALL - 58 * - - 70
----
-4060

query I rowsort
SELECT 52 + - ( 14 ) AS col0
----
38

query I rowsort
SELECT ALL 9 * + 52 col0
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT 61 DIV 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7527
SELECT 61 / 7 AS col2
----
8

query II rowsort
SELECT ( - 29 ) - + 46 AS col1, - 8 AS col1
----
-75
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT - SUM( 96 ) - - 2 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7529
SELECT - SUM ( 96 ) - - 2 AS col0
----
-94

query I rowsort
SELECT ALL - ( - + 2 ) + + 75
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - CASE 18 WHEN - 22 * + - 75 * + 19 * + COUNT( * ) * - - NULLIF ( + COUNT( * ), 14 ) - - - ( - - 34 ) * - 81 + + COUNT( * ) THEN - 31 / + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT - CASE 18 WHEN - 22 * + - 75 * + 19 * + COUNT ( * ) * - - NULLIF ( + COUNT ( * ), 14 ) - - - ( - - 34 ) * - 81 + + COUNT ( * ) THEN - 31 / + + 96 END
----
NULL

query I rowsort
SELECT + 37 - + 59
----
-22

query II rowsort
SELECT ALL + - 30 * 23 * 94 AS col0, - ( 44 ) AS col1
----
-64860
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - COUNT( * ) * MIN( ALL - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( * ) * MIN ( ALL - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + - 14 + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + - 14 + - COUNT ( * )
----
-15

query I rowsort
SELECT - 3 + + ( + + 15 ) + - 49 * 60
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT COALESCE ( 79, + 67 * MIN( 29 ) + + - COUNT( * ) + - ( - ( - 37 ) ), + 92 + + + 29 * 92 * + MIN( - 70 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7537
SELECT COALESCE ( 79, + 67 * MIN ( 29 ) + + - COUNT ( * ) + - ( - ( - 37 ) ), + 92 + + + 29 * 92 * + MIN ( - 70 ) ) AS col1
----
79

query I rowsort
SELECT ALL - + 38 * 63 AS col1
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + COUNT( * ) * SUM( ALL + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7539
SELECT + COUNT ( * ) * SUM ( ALL + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + 82 + + 29 + ( + ( + COUNT( * ) ) )
----
112

skipif mysql # not compatible
query I rowsort label-7540
SELECT + 82 + + 29 + ( + ( + COUNT ( * ) ) )
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT DISTINCT 44 AS col2, + 65 + - CASE + MAX( ALL ( + + 10 ) ) WHEN + - COUNT( * ) * - ( - 67 ) THEN - + 0 - - - 71 ELSE + - 16 END AS col1
----
44
81

skipif mysql # not compatible
query II rowsort label-7541
SELECT DISTINCT 44 AS col2, + 65 + - CASE + MAX ( ALL ( + + 10 ) ) WHEN + - COUNT ( * ) * - ( - 67 ) THEN - + 0 - - - 71 ELSE + - 16 END AS col1
----
44
81

query I rowsort
SELECT ALL + + 87 * 90 * + 48 + + 58
----
375898

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT DISTINCT - - COALESCE ( - MIN( + + 62 ), - + NULLIF ( 14, 80 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - - COALESCE ( - MIN ( + + 62 ), - + NULLIF ( 14, 80 ) )
----
-62

query I rowsort
SELECT ALL - 93 * - 62 * 32 - 32 AS col2
----
184480

query I rowsort
SELECT - 49 * - ( - 65 ) * - 84 + 30 col1
----
267570

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT DISTINCT - COUNT( * ), + 19 AS col2
----
-1
19

skipif mysql # not compatible
query II rowsort label-7546
SELECT DISTINCT - COUNT ( * ), + 19 AS col2
----
-1
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT ALL 11 * - - COUNT( * ) AS col0, + 14 AS col0
----
11
14

skipif mysql # not compatible
query II rowsort label-7547
SELECT ALL 11 * - - COUNT ( * ) AS col0, + 14 AS col0
----
11
14

query I rowsort
SELECT 53 * 38 - - + 53 + - 77 * 66
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + MAX( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-7549
SELECT + MAX ( DISTINCT - 82 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT - 46 DIV + - 41 + + 41 * - - 33 AS col2
----
1354

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 46 / + - 41 + + 41 * - - 33 AS col2
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + MAX( - 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-7551
SELECT + MAX ( - 82 ) col0
----
-82

query I rowsort
SELECT + 69 * - - 46 AS col0
----
3174

query I rowsort
SELECT - 81 + 6 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + 98 * - CASE - COALESCE ( 54, + MIN( - 61 ) ) WHEN 7 THEN NULL ELSE + + 19 + 11 END * 95
----
-279300

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 98 * - CASE - COALESCE ( 54, + MIN ( - 61 ) ) WHEN 7 THEN NULL ELSE + + 19 + 11 END * 95
----
-279300

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT COUNT( DISTINCT + 47 ), - 83 * - 5 + COUNT( * ) * 11 + - 30 AS col2
----
1
396

skipif mysql # not compatible
query II rowsort label-7555
SELECT COUNT ( DISTINCT + 47 ), - 83 * - 5 + COUNT ( * ) * 11 + - 30 AS col2
----
1
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + 75 * + COUNT( * ) * + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 75 * + COUNT ( * ) * + - COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + 33 * + - SUM( DISTINCT - 97 ) AS col0
----
3201

skipif mysql # not compatible
query I rowsort label-7557
SELECT + 33 * + - SUM ( DISTINCT - 97 ) AS col0
----
3201

query I rowsort
SELECT ALL - 63 * + + 73
----
-4599

query I rowsort
SELECT 90 * - 66 - + 47 * 23
----
-7021

query I rowsort
SELECT ALL 15 * + - 92
----
-1380

query I rowsort
SELECT + 27 + 52
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + 44 * SUM( 9 )
----
396

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 44 * SUM ( 9 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + COUNT( * ) + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7563
SELECT + COUNT ( * ) + + 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT + MAX( + 67 ) AS col2, 91 * COUNT( * ) AS col1
----
67
91

skipif mysql # not compatible
query II rowsort label-7564
SELECT + MAX ( + 67 ) AS col2, 91 * COUNT ( * ) AS col1
----
67
91

query I rowsort
SELECT + COALESCE ( - 94, + 96 ) AS col0
----
-94

query I rowsort
SELECT + 8 * + 4 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT + SUM( ALL 91 ) + 60 - 65 col2
----
86

skipif mysql # not compatible
query I rowsort label-7567
SELECT + SUM ( ALL 91 ) + 60 - 65 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT + 63 * + 54 / + + 40 - CAST( NULL AS SIGNED ) + + ( 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT + 63 * + 54 / + + 40 - CAST ( NULL AS INTEGER ) + + ( 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT COUNT( * ) + 38 * + 37
----
1407

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT COUNT ( * ) + 38 * + 37
----
1407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT - NULLIF ( + 27, - - 5 + - COUNT( * ) + 72 ) + - MAX( ALL + + 88 ) + CAST( 81 AS SIGNED ) * 47 * COUNT( * ) * + COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - NULLIF ( + 27, - - 5 + - COUNT ( * ) + 72 ) + - MAX ( ALL + + 88 ) + CAST ( 81 AS INTEGER ) * 47 * COUNT ( * ) * + COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - 76 * + COUNT( * ) * - - MIN( - 8 ) * - - 71 + 66
----
43234

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - 76 * + COUNT ( * ) * - - MIN ( - 8 ) * - - 71 + 66
----
43234

query I rowsort
SELECT DISTINCT + 65 + 15 + 52
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT DISTINCT + 7 + + CAST( NULL AS SIGNED ) + - - 63 * 24 * - COUNT( * ) + + ( + + 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + 7 + + CAST ( NULL AS INTEGER ) + - - 63 * 24 * - COUNT ( * ) + + ( + + 20 ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 57, - 7 ) + + 75 col2
----
18

query I rowsort
SELECT DISTINCT + 15 * 63 AS col2
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT - - 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7576
SELECT - - 88 * - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - + NULLIF ( - NULLIF ( 70, + - 68 ), 12 * + - 27 - + COUNT( * ) + - 45 ) + 21 * + + 53 * + - COUNT( ALL - + 66 ) * - - 69 * + 28 + 85 * - 4 AS col0
----
-2150586

skipif mysql # not compatible
query I rowsort label-7577
SELECT - + NULLIF ( - NULLIF ( 70, + - 68 ), 12 * + - 27 - + COUNT ( * ) + - 45 ) + 21 * + + 53 * + - COUNT ( ALL - + 66 ) * - - 69 * + 28 + 85 * - 4 AS col0
----
-2150586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7578
SELECT ALL - 91 - - COUNT( * ) DIV 98 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - 91 - - COUNT ( * ) / 98 AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7579
SELECT ALL + COUNT( * ) DIV - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + COUNT ( * ) / - 15 AS col0
----
0

query II rowsort
SELECT - - 27 * + 44 AS col0, + 56 + 91 - 46 * + 14 * + 49 * + 71 AS col2
----
1188
-2240329

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7581
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7582
SELECT DISTINCT + 89 DIV + 47, + COUNT( ALL - 18 ) - + COUNT( * ) + + COUNT( * ) + 53 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT + 89 / + 47, + COUNT ( ALL - 18 ) - + COUNT ( * ) + + COUNT ( * ) + 53 AS col1
----
1
54

query I rowsort
SELECT ALL - 30 - ( - - ( - ( 27 ) ) ) * 94 * + 71 AS col0
----
180168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT + - 50 + - 93 / + + 78 + COUNT( * ) * CASE + - ( 40 ) WHEN 21 THEN - MAX( ALL - + CAST( NULL AS SIGNED ) ) * - 63 + AVG ( ALL + 99 ) * + + 45 + + - 97 + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - 50 + - 93 / + + 78 + COUNT ( * ) * CASE + - ( 40 ) WHEN 21 THEN - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) * - 63 + AVG ( ALL + 99 ) * + + 45 + + - 97 + 26 END AS col1
----
NULL

query I rowsort
SELECT - 88 * - 18
----
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT - 93 + + 97 + + 19 + + MIN( + + 90 ) + + SUM( - 8 ) * 61 + + 24 * - - 23, 70 AS col1
----
177
70

skipif mysql # not compatible
query II rowsort label-7586
SELECT - 93 + + 97 + + 19 + + MIN ( + + 90 ) + + SUM ( - 8 ) * 61 + + 24 * - - 23, 70 AS col1
----
177
70

query I rowsort
SELECT 58 * + + 17 + - 5 AS col1
----
981

query I rowsort
SELECT - 11 + - 71 + 47 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + MAX( DISTINCT + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-7589
SELECT + MAX ( DISTINCT + 53 )
----
53

query II rowsort
SELECT + 79, + 70 AS col0
----
79
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - CASE - 18 WHEN - 13 THEN - 33 * + - 48 * + ( 26 ) WHEN 95 THEN NULL END * 53 + - MIN( ALL - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT - CASE - 18 WHEN - 13 THEN - 33 * + - 48 * + ( 26 ) WHEN 95 THEN NULL END * 53 + - MIN ( ALL - 15 )
----
NULL

query I rowsort
SELECT - 57 * 83
----
-4731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT ALL + ( + CAST( - + 82 AS SIGNED ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + ( + CAST ( - + 82 AS INTEGER ) ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT + CAST( ( - 17 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + CAST ( ( - 17 ) AS INTEGER )
----
-17

query I rowsort
SELECT ( + - ( + - 50 ) ) AS col2
----
50

query II rowsort
SELECT ALL + 97, 17 + - 42 AS col1
----
97
-25

query I rowsort
SELECT CASE 17 WHEN - 30 / 62 THEN - - 30 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT - 9 DIV - NULLIF ( 92, + 15 ) * + + SUM( - 73 ) * + 2
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT - 9 / - NULLIF ( 92, + 15 ) * + + SUM ( - 73 ) * + 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT 34 * + - 61 + - 69 + - + 46 * + COUNT( * )
----
-2189

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT 34 * + - 61 + - 69 + - + 46 * + COUNT ( * )
----
-2189

query I rowsort
SELECT + 91 * - 54 col2
----
-4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT ALL NULLIF ( + ( 65 ), + COUNT( * ) + + 26 ) * - 64 * - + ( - 98 ) + + 90 + 64 + CAST( NULL AS SIGNED ) / + + 24 + - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL NULLIF ( + ( 65 ), + COUNT ( * ) + + 26 ) * - 64 * - + ( - 98 ) + + 90 + 64 + CAST ( NULL AS INTEGER ) / + + 24 + - + 84 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7602
SELECT ALL - + COALESCE ( - 16, 65, - 8 ) * + 59 + - + CASE - 61 WHEN - 27 * 48 THEN NULL WHEN - 71 / - 12 + - - 48 THEN - 32 / CASE 54 WHEN + + ( - + 49 ) THEN - 86 * CAST( - + 81 AS DECIMAL ) WHEN + 5 THEN - + 11 END ELSE NULL END + - + 76 * - - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - + COALESCE ( - 16, 65, - 8 ) * + 59 + - + CASE - 61 WHEN - 27 * 48 THEN NULL WHEN - 71 / - 12 + - - 48 THEN - 32 / CASE 54 WHEN + + ( - + 49 ) THEN - 86 * CAST ( - + 81 AS REAL ) WHEN + 5 THEN - + 11 END ELSE NULL END + - + 76 * - - 59 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + - 17 + 61 AS col2
----
-500

query I rowsort
SELECT + - 41 + + 43 AS col1
----
2

query I rowsort
SELECT DISTINCT + 26 * + + 68 + + 70 + ( + 43 ) AS col0
----
1881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7606
SELECT + + 67 + - - 12 + + 4 - + COALESCE ( - 48, + + 57 + + + 88 + SUM( - 17 ) ) * + 35 * - CAST( NULL AS SIGNED ) * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT + + 67 + - - 12 + + 4 - + COALESCE ( - 48, + + 57 + + + 88 + SUM ( - 17 ) ) * + 35 * - CAST ( NULL AS INTEGER ) * - 52 AS col1
----
NULL

query I rowsort
SELECT + 19 * - 48
----
-912

query I rowsort
SELECT - NULLIF ( 55, - 96 + 96 )
----
-55

query I rowsort
SELECT + 67 * - 39 AS col2
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + + COUNT( * ) - - + 48
----
49

skipif mysql # not compatible
query I rowsort label-7610
SELECT + + COUNT ( * ) - - + 48
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT DISTINCT 6 AS col2, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-7611
SELECT DISTINCT 6 AS col2, COUNT ( * )
----
6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + - CAST( NULL AS SIGNED ) + + + 5 + + 2 * - - 15 + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + - CAST ( NULL AS INTEGER ) + + + 5 + + 2 * - - 15 + - - 68
----
NULL

query I rowsort
SELECT + - 42 * + ( - 71 )
----
2982

query I rowsort
SELECT ALL 38 - + 50 + 32 * 38
----
1204

query I rowsort
SELECT DISTINCT - 4 * + 67 + - + 64
----
-332

query II rowsort
SELECT DISTINCT 29, - 98 AS col2
----
29
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - COUNT ( * ) - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL + - CASE - 50 WHEN + MIN( ALL - 59 ) THEN 15 WHEN - 47 / ( + + 22 ) / 40 + + 72 + + - ( 71 ) THEN NULL ELSE NULL END * + 72 / - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + - CASE - 50 WHEN + MIN ( ALL - 59 ) THEN 15 WHEN - 47 / ( + + 22 ) / 40 + + 72 + + - ( 71 ) THEN NULL ELSE NULL END * + 72 / - 69
----
NULL

query II rowsort
SELECT DISTINCT - 19 AS col2, - 63
----
-19
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7620
SELECT + + CAST( NULL AS DECIMAL ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT + + CAST ( NULL AS REAL ) * 3
----
NULL

query I rowsort
SELECT ALL + 10 * + 93 AS col0
----
930

query II rowsort
SELECT DISTINCT 74 AS col1, - 17 col2
----
74
-17

query II rowsort
SELECT ALL 25 col0, NULLIF ( + 11, - 83 ) AS col1
----
25
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7624
SELECT CAST( NULL AS DECIMAL ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT CAST ( NULL AS REAL ) * - 72
----
NULL

query I rowsort
SELECT ALL + 99 + + 88 AS col1
----
187

query I rowsort
SELECT 45 * + 76
----
3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL CAST( NULL AS SIGNED ) / + - 28 * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL CAST ( NULL AS INTEGER ) / + - 28 * - + 34
----
NULL

query I rowsort
SELECT ALL + 0 + 61 * - 64 + - 83
----
-3987

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT 35 + + 20 * - + 67 + - 94 + + COUNT( * )
----
-1398

skipif mysql # not compatible
query I rowsort label-7629
SELECT 35 + + 20 * - + 67 + - 94 + + COUNT ( * )
----
-1398

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT 45 + CASE - COUNT( * ) WHEN 48 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT 45 + CASE - COUNT ( * ) WHEN 48 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7631
SELECT 80 * + 46, + 84 * 54 DIV 29 AS col0
----
3680
156

skipif mysql # not compatible
query II rowsort label-7631
SELECT 80 * + 46, + 84 * 54 / 29 AS col0
----
3680
156

query I rowsort
SELECT ALL + 28 * 92 * 78
----
200928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7633
SELECT ALL - NULLIF ( COUNT( * ), 48 - + - 44 * 29 * + 48 ) + 51 AS col0, + CAST( 40 AS SIGNED )
----
50
40

skipif mysql # not compatible
query II rowsort label-7633
SELECT ALL - NULLIF ( COUNT ( * ), 48 - + - 44 * 29 * + 48 ) + 51 AS col0, + CAST ( 40 AS INTEGER )
----
50
40

query I rowsort
SELECT ALL + 28 * + 39 col0
----
1092

query I rowsort
SELECT + - 72 * 17 + 61 + + + 86 AS col1
----
-1077

query I rowsort
SELECT 13 * + 31
----
403

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT ALL + + 7 DIV + + NULLIF ( - + 40, - - 65 + + + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + + 7 / + + NULLIF ( - + 40, - - 65 + + + 70 )
----
0

query I rowsort
SELECT 16 + + ( + 23 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - COUNT( * ) * + 70 - 89 - ( - - ( 97 ) ) AS col1
----
-256

skipif mysql # not compatible
query I rowsort label-7639
SELECT - COUNT ( * ) * + 70 - 89 - ( - - ( 97 ) ) AS col1
----
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT ALL + 55 DIV 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + 55 / 53 AS col2
----
1

query II rowsort
SELECT ALL 34 col1, - 89 * - 62 * 46 + + 36 AS col2
----
34
253864

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL + ( + + SUM( ALL + 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL + ( + + SUM ( ALL + 41 ) )
----
41

query I rowsort
SELECT DISTINCT - 63 - + 51
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT + 15 * - + COALESCE ( + - 46, - 96 * CAST( - - 72 AS SIGNED ), + COUNT( * ) * - 42 + 58 * 1 ) + - 97 + + ( + 82 ) * + 47 AS col1
----
4447

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 15 * - + COALESCE ( + - 46, - 96 * CAST ( - - 72 AS INTEGER ), + COUNT ( * ) * - 42 + 58 * 1 ) + - 97 + + ( + 82 ) * + 47 AS col1
----
4447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT COUNT( * ) + + + CAST( NULLIF ( CAST( NULL AS SIGNED ), - 34 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( * ) + + + CAST ( NULLIF ( CAST ( NULL AS INTEGER ), - 34 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 52 * 93 * + 76 AS col1
----
367536

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT - COUNT( DISTINCT 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT - COUNT ( DISTINCT 93 )
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-7648
SELECT - - 64 AS col1, + COUNT( * ) + 74 + + 53 col1, + + 97
----
64
128
97

skipif mysql # not compatible
query III rowsort label-7648
SELECT - - 64 AS col1, + COUNT ( * ) + 74 + + 53 col1, + + 97
----
64
128
97

query I rowsort
SELECT - ( + 75 ) + 60 AS col0
----
-15

query I rowsort
SELECT 54 * + + 6 + + 40
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT NULLIF ( NULLIF ( - - 17, + 28 + + 50 ), + 57 ) * - CASE AVG ( ALL + 72 ) WHEN 88 THEN NULL WHEN 61 / + 6 THEN NULL ELSE - COUNT( * ) + + + 62 - - 12 END AS col2
----
-1241

skipif mysql # not compatible
query I rowsort label-7651
SELECT NULLIF ( NULLIF ( - - 17, + 28 + + 50 ), + 57 ) * - CASE AVG ( ALL + 72 ) WHEN 88 THEN NULL WHEN 61 / + 6 THEN NULL ELSE - COUNT ( * ) + + + 62 - - 12 END AS col2
----
-1241

query I rowsort
SELECT ALL 46 + 8 col1
----
54

query II rowsort
SELECT 45 + + + 35, + ( + 10 ) col1
----
80
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT COUNT( + 19 ) + 80 - + - 25 * - 48 * - 56 AS col2
----
67281

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT COUNT ( + 19 ) + 80 - + - 25 * - 48 * - 56 AS col2
----
67281

query I rowsort
SELECT NULLIF ( + 60, - 88 ) * - + 98 + 97 AS col1
----
-5783

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT MIN( DISTINCT + ( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7656
SELECT MIN ( DISTINCT + ( + 3 ) )
----
3

query I rowsort
SELECT ALL 86 + + 40
----
126

query I rowsort
SELECT DISTINCT 45 + - 91
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT + 45 * + + 43 * + COUNT( * ) + + + 51
----
1986

skipif mysql # not compatible
query I rowsort label-7659
SELECT + 45 * + + 43 * + COUNT ( * ) + + + 51
----
1986

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7660
SELECT DISTINCT 91 * - 11 AS col0, - ( + - ( 8 ) ) DIV - 99 * + - COUNT( DISTINCT - - 0 )
----
-1001
0

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT 91 * - 11 AS col0, - ( + - ( 8 ) ) / - 99 * + - COUNT ( DISTINCT - - 0 )
----
-1001
0

query I rowsort
SELECT DISTINCT 9 + 49 col1
----
58

query I rowsort
SELECT ALL - 69 + - 26 * + 55
----
-1499

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7663
SELECT 70 DIV - COUNT( * ) AS col2, + NULLIF ( 62, 73 ) AS col2
----
-70
62

skipif mysql # not compatible
query II rowsort label-7663
SELECT 70 / - COUNT ( * ) AS col2, + NULLIF ( 62, 73 ) AS col2
----
-70
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 80 * - MIN( DISTINCT - 8 )
----
640

skipif mysql # not compatible
query I rowsort label-7664
SELECT 80 * - MIN ( DISTINCT - 8 )
----
640

query I rowsort
SELECT ALL + 96 * - 45 AS col1
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7666
SELECT ALL 57 - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 57 - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + - ( + 71 ) * + 45 - - 52
----
-3143

query I rowsort
SELECT - ( - - 11 ) * + 9 + 11 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT COUNT( * ) * + 99 - + 60
----
39

skipif mysql # not compatible
query I rowsort label-7669
SELECT COUNT ( * ) * + 99 - + 60
----
39

query I rowsort
SELECT ALL + 26 * - 60 AS col0
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT 42 - - - COUNT( * ) * 36
----
6

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT 42 - - - COUNT ( * ) * 36
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT + COALESCE ( + + COUNT( * ), + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT + COALESCE ( + + COUNT ( * ), + 97 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7673
SELECT ALL COUNT( * ) DIV - + COUNT( 89 ) - - 94
----
93

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL COUNT ( * ) / - + COUNT ( 89 ) - - 94
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - - MAX( ALL + + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7674
SELECT - - MAX ( ALL + + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7675
SELECT DISTINCT - 10 DIV + COALESCE ( ( + 79 ), + CAST( NULL AS SIGNED ), + 52 ) + + - 11 * 44 AS col0, 14
----
-484
14

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT - 10 / + COALESCE ( ( + 79 ), + CAST ( NULL AS INTEGER ), + 52 ) + + - 11 * 44 AS col0, 14
----
-484
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT NULLIF ( - 54, - - COUNT( * ) + + 25 + MAX( + 88 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7676
SELECT NULLIF ( - 54, - - COUNT ( * ) + + 25 + MAX ( + 88 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + + 82 + + - 35 * + COALESCE ( - 46, + 35 * - 50 * + - 16 * + 35 + + COUNT( * ) + - 11 ) * - COUNT( * )
----
-1528

skipif mysql # not compatible
query I rowsort label-7677
SELECT + + 82 + + - 35 * + COALESCE ( - 46, + 35 * - 50 * + - 16 * + 35 + + COUNT ( * ) + - 11 ) * - COUNT ( * )
----
-1528

query I rowsort
SELECT - 52 * - 69
----
3588

query I rowsort
SELECT ALL + 72 * - 53
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT - ( SUM( + ( - 42 ) ) ) + + + 32 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - ( SUM ( + ( - 42 ) ) ) + + + 32 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT + 4 DIV - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT + 4 / - 77 AS col2
----
0

query I rowsort
SELECT - 16 - - 91 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - SUM( DISTINCT 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-7683
SELECT - SUM ( DISTINCT 37 ) col1
----
-37

query II rowsort
SELECT 76, + 69 AS col0
----
76
69

query II rowsort
SELECT 81, 87 col2
----
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + COALESCE ( - 0, - 8, + + COUNT( * ) ) + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + COALESCE ( - 0, - 8, + + COUNT ( * ) ) + - 68
----
-68

query I rowsort
SELECT DISTINCT - 82 + 32 - 97 AS col0
----
-147

query I rowsort
SELECT ( - - 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + CASE - SUM( DISTINCT + - 3 ) WHEN + 46 THEN + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT + CASE - SUM ( DISTINCT + - 3 ) WHEN + 46 THEN + 90 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL 3 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL 3 / + 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT ALL 26 * - + 50 * + COALESCE ( + COUNT( * ), - + 89 DIV 73 * - 71 + 73 + + 6 + - 57 * 38 ) * + - 89 col0
----
115700

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL 26 * - + 50 * + COALESCE ( + COUNT ( * ), - + 89 / 73 * - 71 + 73 + + 6 + - 57 * 38 ) * + - 89 col0
----
115700

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + MIN( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7692
SELECT + MIN ( ALL - 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT + 46 DIV - + 25 + + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 46 / - + 25 + + - 42
----
-43

query I rowsort
SELECT + - 10 + + + 28
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT + + MAX( ALL 13 ) * + COUNT( * ) * + 61, - 1 * - 69 AS col0
----
793
69

skipif mysql # not compatible
query II rowsort label-7695
SELECT + + MAX ( ALL 13 ) * + COUNT ( * ) * + 61, - 1 * - 69 AS col0
----
793
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT + + COUNT( * ) + - - 26 * 70 + + 45 * 87 * COUNT( * ) AS col2, + 27 + + - 65 AS col0
----
5736
-38

skipif mysql # not compatible
query II rowsort label-7696
SELECT + + COUNT ( * ) + - - 26 * 70 + + 45 * 87 * COUNT ( * ) AS col2, + 27 + + - 65 AS col0
----
5736
-38

query II rowsort
SELECT 71 AS col0, + 23
----
71
23

query II rowsort
SELECT ALL + 66, - 14 * + 13 + + + 94 AS col1
----
66
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7699
SELECT DISTINCT - COUNT( * ) DIV + 90 * + - 49 * + 24, COALESCE ( + NULLIF ( 73, + + COUNT( DISTINCT + 95 ) * - 59 * + 55 ), + ( - 18 ) ) + CASE + 26 WHEN + 54 * + 68 THEN + 70 END + - 38 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7699
SELECT DISTINCT - COUNT ( * ) / + 90 * + - 49 * + 24, COALESCE ( + NULLIF ( 73, + + COUNT ( DISTINCT + 95 ) * - 59 * + 55 ), + ( - 18 ) ) + CASE + 26 WHEN + 54 * + 68 THEN + 70 END + - 38 AS col2
----
0
NULL

query I rowsort
SELECT DISTINCT + + ( + 46 ) AS col0
----
46

query II rowsort
SELECT ALL + - 71, 68 AS col1
----
-71
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT - + 3 * + - CAST( NULL AS SIGNED ) - + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT - + 3 * + - CAST ( NULL AS INTEGER ) - + 92 AS col1
----
NULL

query II rowsort
SELECT + 75, + 64 AS col1
----
75
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7704
SELECT + + 33 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT + + 33 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT + - ( - - COUNT( * ) ) + - 75 - + + 6 + - COUNT( * ) DIV + 3 - - - 55
----
-137

skipif mysql # not compatible
query I rowsort label-7705
SELECT + - ( - - COUNT ( * ) ) + - 75 - + + 6 + - COUNT ( * ) / + 3 - - - 55
----
-137

query II rowsort
SELECT 94 AS col1, + 2
----
94
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT ALL 37, + ( + 74 ) * COUNT( * ) AS col0
----
37
74

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL 37, + ( + 74 ) * COUNT ( * ) AS col0
----
37
74

query II rowsort
SELECT 38 AS col1, 86
----
38
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT ALL - + ( + COUNT( - - ( - ( - - 4 ) ) ) ) * 40 DIV + 35 - - 58
----
57

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - + ( + COUNT ( - - ( - ( - - 4 ) ) ) ) * 40 / + 35 - - 58
----
57

query I rowsort
SELECT ALL - 31 + + 21 + - 97 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-7711
SELECT + 16 + + MAX( + + 29 ) + + 84 AS col1, 56 + + - 10 AS col2
----
129
46

skipif mysql # not compatible
query II rowsort label-7711
SELECT + 16 + + MAX ( + + 29 ) + + 84 AS col1, 56 + + - 10 AS col2
----
129
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT DISTINCT - 95 DIV - 94
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - 95 / - 94
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7713
SELECT DISTINCT CAST( - 91 AS SIGNED ) AS col0, MAX( DISTINCT + + 8 ) AS col1
----
-91
8

skipif mysql # not compatible
query II rowsort label-7713
SELECT DISTINCT CAST ( - 91 AS INTEGER ) AS col0, MAX ( DISTINCT + + 8 ) AS col1
----
-91
8

query I rowsort
SELECT ALL - 69 - 53 AS col1
----
-122

query I rowsort
SELECT - 62 + + - COALESCE ( 22, 2 - 76 ) AS col0
----
-84

query I rowsort
SELECT - ( 18 ) + + 93 col2
----
75

query II rowsort
SELECT ALL + 78 * 77, + 41 AS col1
----
6006
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT - 24 * + - 9 * + COUNT( * ) col2
----
216

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - 24 * + - 9 * + COUNT ( * ) col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT - 26 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT - 26 / + 47
----
0

query I rowsort
SELECT ALL - 6 * - + ( - 5 ) AS col0
----
-30

query I rowsort
SELECT - 3 * + 50
----
-150

query I rowsort
SELECT + 9 * CASE + 12 WHEN - - 61 THEN - 97 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT + 85 + - 65 * 11 * 14 - + 21 DIV + 81
----
-9925

skipif mysql # not compatible
query I rowsort label-7723
SELECT + 85 + - 65 * 11 * 14 - + 21 / + 81
----
-9925

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT 6 * + 11 + 61 + - COUNT( * ) * + + 79
----
48

skipif mysql # not compatible
query I rowsort label-7724
SELECT 6 * + 11 + 61 + - COUNT ( * ) * + + 79
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 76 * + ( + 84 ) AS col2
----
-6384

query I rowsort
SELECT - NULLIF ( 52, - 34 + + - 35 + 69 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT - ( - COUNT( * ) ) * + + CASE - 71 WHEN + - COALESCE ( 49, + + 42 ) THEN NULL WHEN + 97 * - ( 93 ) * + 6 * + 13 * COUNT( * ) * COUNT( * ) * - COUNT( * ) THEN + 50 + 31 * + ( + 82 ) ELSE NULL END + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT - ( - COUNT ( * ) ) * + + CASE - 71 WHEN + - COALESCE ( 49, + + 42 ) THEN NULL WHEN + 97 * - ( 93 ) * + 6 * + 13 * COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) THEN + 50 + 31 * + ( + 82 ) ELSE NULL END + - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + 43 * SUM( ALL - 64 )
----
-2752

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 43 * SUM ( ALL - 64 )
----
-2752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT CAST( - 30 AS SIGNED ) - + CAST( - 33 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-7730
SELECT CAST ( - 30 AS INTEGER ) - + CAST ( - 33 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL - COUNT( * ) * 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - COUNT ( * ) * 31 AS col1
----
-31

query I rowsort
SELECT DISTINCT + 93 + - 15 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT 6 * ( - + 60 ) * - 76 + + COUNT( 35 ) col0
----
27361

skipif mysql # not compatible
query I rowsort label-7733
SELECT 6 * ( - + 60 ) * - 76 + + COUNT ( 35 ) col0
----
27361

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7734
SELECT DISTINCT COALESCE ( 48, + 8 * CAST( + 61 AS SIGNED ) * 11, - 45, + 98 ) + - + 2, - ( - 1 ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-7734
SELECT DISTINCT COALESCE ( 48, + 8 * CAST ( + 61 AS INTEGER ) * 11, - 45, + 98 ) + - + 2, - ( - 1 ) AS col2
----
46
1

query I rowsort
SELECT 86 * - ( + 63 ) + + 94 * + ( 55 ) AS col0
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT COALESCE ( - - 1, 29 * + 68 + 57, + + 81 * + COUNT( * ) * + COUNT( * ) + 22 ) + - 6 col0
----
-5

skipif mysql # not compatible
query I rowsort label-7736
SELECT COALESCE ( - - 1, 29 * + 68 + 57, + + 81 * + COUNT ( * ) * + COUNT ( * ) + 22 ) + - 6 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT + COUNT( * ) + + - ( - - 88 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + COUNT ( * ) + + - ( - - 88 ) AS col1
----
-87

query I rowsort
SELECT ALL ( + 19 ) + - 20 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT COALESCE ( + MAX( DISTINCT + 28 ), - 25 + - 43, - - 63 * - 31 ) * + 86 * - 64 AS col2
----
-154112

skipif mysql # not compatible
query I rowsort label-7739
SELECT COALESCE ( + MAX ( DISTINCT + 28 ), - 25 + - 43, - - 63 * - 31 ) * + 86 * - 64 AS col2
----
-154112

query I rowsort
SELECT ALL 63 * + 9 AS col1
----
567

query I rowsort
SELECT 80 + 3 + 71
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL ( - 87 ) - + 22 + 33 - + 97 * + + COUNT( * )
----
-173

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL ( - 87 ) - + 22 + 33 - + 97 * + + COUNT ( * )
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7743
SELECT - 84 AS col0, ( + - 42 ) * - CAST( NULL AS SIGNED ) * - 34 + 79 AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-7743
SELECT - 84 AS col0, ( + - 42 ) * - CAST ( NULL AS INTEGER ) * - 34 + 79 AS col0
----
-84
NULL

query I rowsort
SELECT ALL - 82 - - 37 AS col2
----
-45

query I rowsort
SELECT 64 * 56 col0
----
3584

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL COUNT( * ) * - 8 * - + 22
----
176

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL COUNT ( * ) * - 8 * - + 22
----
176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7747
SELECT DISTINCT 62 * - + 25 DIV - CAST( - - 5 AS SIGNED ) AS col0
----
310

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT 62 * - + 25 / - CAST ( - - 5 AS INTEGER ) AS col0
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT CASE - + ( COUNT( * ) ) WHEN - + 12 / + + AVG ( ALL + 23 ) + - + 66 THEN 64 * - 1 * + + COUNT( * ) END * + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT CASE - + ( COUNT ( * ) ) WHEN - + 12 / + + AVG ( ALL + 23 ) + - + 66 THEN 64 * - 1 * + + COUNT ( * ) END * + - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT 96 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT 96 / 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT 8 * 1 * + SUM( - 37 ) AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-7750
SELECT 8 * 1 * + SUM ( - 37 ) AS col0
----
-296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT ALL + 47 DIV COUNT( * ) * + 57 * + 56
----
150024

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + 47 / COUNT ( * ) * + 57 * + 56
----
150024

query I rowsort
SELECT 79 * - + 36 AS col1
----
-2844

query I rowsort
SELECT 95 - + 2 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT 98 DIV 97
----
1

skipif mysql # not compatible
query I rowsort label-7754
SELECT 98 / 97
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT - 63 DIV 27 - 51 * SUM( ALL + 58 DIV 62 + 50 )
----
-2552

skipif mysql # not compatible
query I rowsort label-7755
SELECT - 63 / 27 - 51 * SUM ( ALL + 58 / 62 + 50 )
----
-2552

query I rowsort
SELECT DISTINCT + 30 + 56
----
86

query I rowsort
SELECT ALL - 75 * + 47 col0
----
-3525

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT 88 DIV + 8
----
11

skipif mysql # not compatible
query I rowsort label-7758
SELECT 88 / + 8
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT ALL - CAST( NULLIF ( + 73, + 13 ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL - CAST ( NULLIF ( + 73, + 13 ) AS INTEGER )
----
-73

query I rowsort
SELECT 4 + 23 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + COUNT( - 92 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + COUNT ( - 92 ) + COUNT ( * )
----
2

query I rowsort
SELECT - 12 * - 22 + - 39 AS col0
----
225

query I rowsort
SELECT ALL + 12 + - 53
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL - CAST( CAST( CASE 98 WHEN 92 * 14 THEN NULL ELSE 57 END AS SIGNED ) AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL - CAST ( CAST ( CASE 98 WHEN 92 * 14 THEN NULL ELSE 57 END AS INTEGER ) AS INTEGER ) AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL NULLIF ( COUNT( * ), + 33 / CAST( 58 * 26 AS SIGNED ) + 38 ) + - COUNT( ALL 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL NULLIF ( COUNT ( * ), + 33 / CAST ( 58 * 26 AS INTEGER ) + 38 ) + - COUNT ( ALL 7 ) AS col2
----
0

query I rowsort
SELECT ALL - 85 + - 39
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT + COUNT( * ) + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT + COUNT ( * ) + - 3 AS col2
----
-2

query I rowsort
SELECT DISTINCT 82 * + 16 AS col1
----
1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT COUNT( * ) + ( + CAST( + ( 75 ) AS SIGNED ) ) * 13
----
976

skipif mysql # not compatible
query I rowsort label-7769
SELECT COUNT ( * ) + ( + CAST ( + ( 75 ) AS INTEGER ) ) * 13
----
976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL + CAST( NULL AS SIGNED ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + CAST ( NULL AS INTEGER ) + - 77
----
NULL

query I rowsort
SELECT DISTINCT ( - 47 ) * + 63
----
-2961

query I rowsort
SELECT DISTINCT 46 * + 83
----
3818

query I rowsort
SELECT ( 34 ) * 40
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT 81 - 2 * NULLIF ( COUNT( DISTINCT + ( 10 ) ) + 59 * + 77, + 99 * - 84 - + 18 )
----
-9007

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT 81 - 2 * NULLIF ( COUNT ( DISTINCT + ( 10 ) ) + 59 * + 77, + 99 * - 84 - + 18 )
----
-9007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT DISTINCT + CAST( + 21 AS SIGNED ) * 78
----
1638

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + CAST ( + 21 AS INTEGER ) * 78
----
1638

query I rowsort
SELECT ALL 16 - + 50 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ( NULLIF ( - 7, + 95 ) ) * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7777
SELECT ( NULLIF ( - 7, + 95 ) ) * - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ( COUNT( * ) ) + + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7778
SELECT ( COUNT ( * ) ) + + 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT + COUNT( * ) * + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + COUNT ( * ) * + 5 AS col0
----
5

query I rowsort
SELECT ALL 80 - + 64 * 72 AS col1
----
-4528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT CASE + 1 WHEN - COUNT( * ) THEN COUNT( * ) WHEN + 61 + 60 THEN NULL ELSE + 95 END DIV COALESCE ( - 37, 42, 7 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7781
SELECT CASE + 1 WHEN - COUNT ( * ) THEN COUNT ( * ) WHEN + 61 + 60 THEN NULL ELSE + 95 END / COALESCE ( - 37, 42, 7 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ( NULLIF ( + NULLIF ( - CASE 86 WHEN COALESCE ( NULLIF ( 55, 94 + 51 ), 31 ) * 10 THEN NULL WHEN + 25 * - 4 THEN 85 + MIN( 62 ) * 94 END, CASE 29 WHEN 36 * + COALESCE ( 68, - 99 * 75 - + 15 * 51 ) THEN 5 ELSE - 30 END - - 41 ), 4 ) ) + - ( MAX( + 95 ) ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT ( NULLIF ( + NULLIF ( - CASE 86 WHEN COALESCE ( NULLIF ( 55, 94 + 51 ), 31 ) * 10 THEN NULL WHEN + 25 * - 4 THEN 85 + MIN ( 62 ) * 94 END, CASE 29 WHEN 36 * + COALESCE ( 68, - 99 * 75 - + 15 * 51 ) THEN 5 ELSE - 30 END - - 41 ), 4 ) ) + - ( MAX ( + 95 ) ) * + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT SUM( DISTINCT + 69 ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT SUM ( DISTINCT + 69 ) * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 99 * - 72
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT SUM( 11 ) + - 7 * - 71 AS col0
----
508

skipif mysql # not compatible
query I rowsort label-7785
SELECT SUM ( 11 ) + - 7 * - 71 AS col0
----
508

query I rowsort
SELECT 5 - 47 AS col0
----
-42

query I rowsort
SELECT 79 + 50 * - 23 AS col0
----
-1071

query I rowsort
SELECT ALL + 52 * 35 AS col1
----
1820

query I rowsort
SELECT ALL 38 * + 74
----
2812

query I rowsort
SELECT ( - 8 ) + 49 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COALESCE ( CASE - 46 WHEN COUNT( * ) THEN 22 + 91 END, 84 * 49 - - 81 * 2 )
----
-4278

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COALESCE ( CASE - 46 WHEN COUNT ( * ) THEN 22 + 91 END, 84 * 49 - - 81 * 2 )
----
-4278

query I rowsort
SELECT DISTINCT 73 + + 4 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT - - SUM( DISTINCT 7 ) + 77 DIV + 54
----
8

skipif mysql # not compatible
query I rowsort label-7793
SELECT - - SUM ( DISTINCT 7 ) + 77 / + 54
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT + NULLIF ( 79, - 35 + - ( ( CASE + 48 WHEN + 55 + 91 THEN - 69 / 67 WHEN 62 + - 29 * + COUNT( * ) THEN - 70 END ) ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT + NULLIF ( 79, - 35 + - ( ( CASE + 48 WHEN + 55 + 91 THEN - 69 / 67 WHEN 62 + - 29 * + COUNT ( * ) THEN - 70 END ) ) ) AS col1
----
79

query I rowsort
SELECT ALL + 21 * - 81 + 61
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - ( ( + SUM( DISTINCT - 97 ) ) ) + + 17 * 11
----
284

skipif mysql # not compatible
query I rowsort label-7796
SELECT - ( ( + SUM ( DISTINCT - 97 ) ) ) + + 17 * 11
----
284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT DISTINCT + + 20 * CAST( NULL AS SIGNED ) + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + + 20 * CAST ( NULL AS INTEGER ) + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ALL + - 53 * COUNT( * ) + 73
----
20

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + - 53 * COUNT ( * ) + 73
----
20

query I rowsort
SELECT DISTINCT + 77 * 11 AS col0
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL - ( + 47 ) * 53 + - MAX( 75 )
----
-2566

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - ( + 47 ) * 53 + - MAX ( 75 )
----
-2566

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT - + SUM( ALL - 68 ) * 82 AS col0
----
5576

skipif mysql # not compatible
query I rowsort label-7801
SELECT - + SUM ( ALL - 68 ) * 82 AS col0
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL + COALESCE ( + ( - 61 ), 69 * + 50 ) * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + COALESCE ( + ( - 61 ), 69 * + 50 ) * COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT + 49 * 97 + 46
----
4799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT - + COALESCE ( 73, + ( + 77 ) ) DIV SUM( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-7804
SELECT - + COALESCE ( 73, + ( + 77 ) ) / SUM ( + 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + 6 * 1 + + 4 * COUNT( ALL 1 )
----
10

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 6 * 1 + + 4 * COUNT ( ALL 1 )
----
10

query I rowsort
SELECT - 10 * + 23
----
-230

query I rowsort
SELECT - 79 * + 91 AS col0
----
-7189

query I rowsort
SELECT - 23 - 15 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT ALL + CASE - 69 WHEN - COALESCE ( 74, + 26 * ( ( 2 ) DIV + 85 ) ) + + COUNT( * ) * 77 THEN NULL WHEN 51 * - 89 THEN - ( 20 ) ELSE - 9 DIV + 61 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + CASE - 69 WHEN - COALESCE ( 74, + 26 * ( ( 2 ) / + 85 ) ) + + COUNT ( * ) * 77 THEN NULL WHEN 51 * - 89 THEN - ( 20 ) ELSE - 9 / + 61 END AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT - 37 DIV 26
----
-1

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 37 / 26
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT + - MIN( CAST( - 19 AS SIGNED ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7811
SELECT + - MIN ( CAST ( - 19 AS INTEGER ) ) AS col2
----
19

query I rowsort
SELECT + 75 + 38 * 58 AS col2
----
2279

query I rowsort
SELECT ALL + ( + - NULLIF ( 55, + 37 * + 52 ) ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - COUNT( * ) * + COALESCE ( - COUNT( * ), - COUNT( * ) - + 68, + 72 * 10 - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT - COUNT ( * ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ) - + 68, + 72 * 10 - 84 )
----
1

query I rowsort
SELECT DISTINCT + ( 64 ) AS col1
----
64

query I rowsort
SELECT - ( - 71 ) - 5
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT + 65 * + COUNT( * ) * 16
----
1040

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + 65 * + COUNT ( * ) * 16
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - ( - + COUNT( * ) ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-7818
SELECT - ( - + COUNT ( * ) ) + - 66
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL MIN( + + 88 ) * 33 AS col2
----
2904

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL MIN ( + + 88 ) * 33 AS col2
----
2904

query I rowsort
SELECT - ( - + 83 ) * 33 AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - ( + 56 ) * - COUNT( * ) + ( 64 + 34 ) col2
----
154

skipif mysql # not compatible
query I rowsort label-7821
SELECT - ( + 56 ) * - COUNT ( * ) + ( 64 + 34 ) col2
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT DISTINCT MAX( DISTINCT - ( ( 86 ) ) ) * NULLIF ( + 21 + + 50, MAX( - 95 ) * CAST( NULL AS SIGNED ) ) AS col0
----
-6106

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT MAX ( DISTINCT - ( ( 86 ) ) ) * NULLIF ( + 21 + + 50, MAX ( - 95 ) * CAST ( NULL AS INTEGER ) ) AS col0
----
-6106

query I rowsort
SELECT DISTINCT ( - COALESCE ( - 31, 81, + 66 * ( - 79 ) + + 25 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL - 47 + - + COUNT( * ) * - 38 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 47 + - + COUNT ( * ) * - 38 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT 73 + COALESCE ( + 53, 73 DIV 56, 19 * COUNT( * ) )
----
126

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT 73 + COALESCE ( + 53, 73 / 56, 19 * COUNT ( * ) )
----
126

query I rowsort
SELECT ALL 32 + - 91 + + 32 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT + 2 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 2 / 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT - 14 - - + COALESCE ( 63, + 1, + COALESCE ( - ( 87 ), + 57 DIV 38 + - 92 ) ) * + 58
----
3640

skipif mysql # not compatible
query I rowsort label-7828
SELECT - 14 - - + COALESCE ( 63, + 1, + COALESCE ( - ( 87 ), + 57 / 38 + - 92 ) ) * + 58
----
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT DISTINCT - 89 DIV - 69 + + COUNT( * ) * - 55
----
-54

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - 89 / - 69 + + COUNT ( * ) * - 55
----
-54

query I rowsort
SELECT + + ( - 69 ) - + 76 AS col1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - + NULLIF ( - 61, 78 - + 28 * + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-7831
SELECT - + NULLIF ( - 61, 78 - + 28 * + COUNT ( * ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL 22 + - 88 - COALESCE ( - 46, + 29, - COUNT( * ) + + 58 )
----
-20

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL 22 + - 88 - COALESCE ( - 46, + 29, - COUNT ( * ) + + 58 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT + - 50 / - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + - 50 / - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + - COUNT( * ) * - 25 * 96 + + 58
----
2458

skipif mysql # not compatible
query I rowsort label-7834
SELECT + - COUNT ( * ) * - 25 * 96 + + 58
----
2458

query I rowsort
SELECT ALL - 39 * 2 - 44 AS col2
----
-122

query I rowsort
SELECT - ( + 14 ) col2
----
-14

query I rowsort
SELECT ALL + 64 + + + 95 + + COALESCE ( 8, ( + ( + 29 ) ) )
----
167

query I rowsort
SELECT NULLIF ( + 46, + 80 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT 53 * + COUNT( * ) * - 82 AS col1
----
-4346

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT 53 * + COUNT ( * ) * - 82 AS col1
----
-4346

query I rowsort
SELECT DISTINCT - ( 41 ) + 59 col1
----
18

query I rowsort
SELECT ALL + - CASE - - 21 WHEN + 49 + + ( 83 ) THEN NULL ELSE - 23 + - 29 END AS col0
----
52

query I rowsort
SELECT + 41 - + 82 + - 86 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT ALL - 59 DIV - 92 * COUNT( * ) + - 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - 59 / - 92 * COUNT ( * ) + - 53 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT CAST( NULL AS SIGNED ) / + 8 + 47 * 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT CAST ( NULL AS INTEGER ) / + 8 + 47 * 76 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT - CASE - - COUNT( * ) WHEN - COUNT( * ) / + COUNT( * ) + - 79 * MAX( DISTINCT 39 ) THEN + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT - CASE - - COUNT ( * ) WHEN - COUNT ( * ) / + COUNT ( * ) + - 79 * MAX ( DISTINCT 39 ) THEN + 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT 48 DIV + - 70 + + COALESCE ( 40, + 57 ) * + 80 AS col0
----
3200

skipif mysql # not compatible
query I rowsort label-7846
SELECT 48 / + - 70 + + COALESCE ( 40, + 57 ) * + 80 AS col0
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - - 43 * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7847
SELECT - - 43 * - COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL + MIN( DISTINCT + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + MIN ( DISTINCT + + 54 )
----
54

query I rowsort
SELECT + + 74 + - + 82 + + 10 * ( + 23 ) AS col1
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT + + COUNT( * ) DIV 38 - - 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-7850
SELECT + + COUNT ( * ) / 38 - - 59 col0
----
59

query I rowsort
SELECT CASE 62 WHEN - COALESCE ( + 50, - 91 / 41 ) THEN - 33 * 11 WHEN 38 * 1 + 33 THEN 93 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 * + 98 * 37 + 83
----
359057

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL + CASE - COUNT( * ) WHEN 68 + - 16 THEN SUM( DISTINCT + 58 ) END / COUNT( ALL - ( - 68 ) + 21 * - 80 ) - + 37 * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + CASE - COUNT ( * ) WHEN 68 + - 16 THEN SUM ( DISTINCT + 58 ) END / COUNT ( ALL - ( - 68 ) + 21 * - 80 ) - + 37 * 15 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - + 87, - 60 ) * ( + 6 )
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL - COUNT( * ) * - 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - COUNT ( * ) * - 7 AS col1
----
7

query I rowsort
SELECT - 99 + + 68 AS col0
----
-31

query I rowsort
SELECT ALL - 51 * - 67 AS col2
----
3417

query I rowsort
SELECT - 16 * + - 27 AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - ( + 89 ) + - COUNT( * ) * ( 45 ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-7859
SELECT - ( + 89 ) + - COUNT ( * ) * ( 45 ) AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + 78 * + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + 78 * + + COUNT ( * ) AS col0
----
78

query II rowsort
SELECT + 34 col1, - 35 * + 83 + - 96
----
34
-3001

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT CASE + 79 WHEN - 58 THEN AVG ( 19 ) + 42 END * 65 + SUM( DISTINCT 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT CASE + 79 WHEN - 58 THEN AVG ( 19 ) + 42 END * 65 + SUM ( DISTINCT 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT COALESCE ( COUNT( * ), + NULLIF ( NULLIF ( 11, 13 + - 34 ), + 69 * + 10 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7863
SELECT COALESCE ( COUNT ( * ), + NULLIF ( NULLIF ( 11, 13 + - 34 ), + 69 * + 10 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT - MIN( ALL - + 29 ) * 72 DIV 37 + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7864
SELECT - MIN ( ALL - + 29 ) * 72 / 37 + COUNT ( * ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT - CAST( + COUNT( - 86 ) AS SIGNED ) * - 52
----
52

skipif mysql # not compatible
query I rowsort label-7865
SELECT - CAST ( + COUNT ( - 86 ) AS INTEGER ) * - 52
----
52

query I rowsort
SELECT ALL 14 * 58 + 43
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL - 37 * - CAST( - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) + CASE - 31 WHEN COALESCE ( ( + ( + 18 ) ), - CASE COUNT( * ) WHEN 18 * - 39 THEN NULL WHEN - 0 * - 87 + ( - SUM( ALL 36 ) ) THEN - 74 * - 89 + 5 / CAST( - ( + 92 ) * - 78 AS SIGNED ) END + 3 * 67, 44 ) * + 38 + + 4 * + 85 THEN NULL WHEN MAX( ALL 17 ) THEN COUNT( * ) ELSE NULL END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - 37 * - CAST ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + CASE - 31 WHEN COALESCE ( ( + ( + 18 ) ), - CASE COUNT ( * ) WHEN 18 * - 39 THEN NULL WHEN - 0 * - 87 + ( - SUM ( ALL 36 ) ) THEN - 74 * - 89 + 5 / CAST ( - ( + 92 ) * - 78 AS INTEGER ) END + 3 * 67, 44 ) * + 38 + + 4 * + 85 THEN NULL WHEN MAX ( ALL 17 ) THEN COUNT ( * ) ELSE NULL END * 69
----
NULL

query I rowsort
SELECT ALL - 87 * - 98 * - 23 + 35
----
-196063

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - 26 + - 46 + 53 - NULLIF ( + 90, + 14 ) * + COUNT( 10 + + 4 ) * + 73
----
-6589

skipif mysql # not compatible
query I rowsort label-7869
SELECT - 26 + - 46 + 53 - NULLIF ( + 90, + 14 ) * + COUNT ( 10 + + 4 ) * + 73
----
-6589

query I rowsort
SELECT ALL - 43 + 36 AS col2
----
-7

query II rowsort
SELECT DISTINCT 62 AS col0, ( 3 ) * 73 col0
----
62
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL - COALESCE ( ( - CASE 61 WHEN - 12 * 14 + 5 THEN - COUNT( * ) END ), 14 - + COUNT( * ) ) + 57
----
44

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - COALESCE ( ( - CASE 61 WHEN - 12 * 14 + 5 THEN - COUNT ( * ) END ), 14 - + COUNT ( * ) ) + 57
----
44

query I rowsort
SELECT 30 - - 36 + + + 77 * + 75 * - 26
----
-150084

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ( - COUNT( * ) ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-7874
SELECT ( - COUNT ( * ) ) + + 37
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - COUNT( * ) - + + 61 * 83 * + 66 + + 24 * - 48
----
-335311

skipif mysql # not compatible
query I rowsort label-7875
SELECT - COUNT ( * ) - + + 61 * 83 * + 66 + + 24 * - 48
----
-335311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7876
SELECT ALL CAST( NULL AS DECIMAL ) + + 25 * + 76 * - ( + NULLIF ( ( 77 ), + 13 ) * + 47 ) + - COUNT( * ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL CAST ( NULL AS REAL ) + + 25 * + 76 * - ( + NULLIF ( ( 77 ), + 13 ) * + 47 ) + - COUNT ( * ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL - CASE WHEN NOT 29 IS NOT NULL THEN + COUNT( - 55 ) + 9 END + 26 / 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL - CASE WHEN NOT 29 IS NOT NULL THEN + COUNT ( - 55 ) + 9 END + 26 / 31 AS col0
----
NULL

query I rowsort
SELECT 68 * + 80 * - 59 + + 78
----
-320882

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL ( + - 80 ) + + SUM( - 21 ) * 53 AS col0
----
-1193

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL ( + - 80 ) + + SUM ( - 21 ) * 53 AS col0
----
-1193

query I rowsort
SELECT - 12 + + 87 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT 29 * MAX( - 25 ) AS col2
----
-725

skipif mysql # not compatible
query I rowsort label-7881
SELECT 29 * MAX ( - 25 ) AS col2
----
-725

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL 56 DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL 56 / 81 AS col1
----
0

query I rowsort
SELECT 60 + 70 + + 6
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - 39 + + + COUNT( DISTINCT - 95 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7884
SELECT - 39 + + + COUNT ( DISTINCT - 95 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + COUNT( NULLIF ( - 50, - 15 ) ) + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-7885
SELECT + COUNT ( NULLIF ( - 50, - 15 ) ) + - 28
----
-27

query I rowsort
SELECT DISTINCT 27 - - 48 AS col1
----
75

query II rowsort
SELECT + 7 AS col1, 76 * + + 74
----
7
5624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - - ( + + CAST( 2 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - - ( + + CAST ( 2 AS INTEGER ) )
----
2

query I rowsort
SELECT DISTINCT - 59 * + 6 AS col1
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL MIN( - - 31 ) * - CASE CASE COUNT( * ) WHEN 2 / 54 + 75 * + 51 THEN + 5 / 23 ELSE + 32 / + 98 END WHEN - 38 * + 10 THEN NULL ELSE CASE 67 WHEN - 71 / 46 + 92 * - 9 THEN 79 + - 96 WHEN - CASE CASE MIN( + 52 ) WHEN COALESCE ( 18, - 66 ) THEN - ( + 14 ) + - 68 ELSE 39 * 3 END WHEN - 45 + + 57 THEN + 71 ELSE 89 * + 50 END + 96 * + 12 THEN 26 + 60 * 39 ELSE 13 END + - 51 * + 92 END * 31 AS col2
----
4496519

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL MIN ( - - 31 ) * - CASE CASE COUNT ( * ) WHEN 2 / 54 + 75 * + 51 THEN + 5 / 23 ELSE + 32 / + 98 END WHEN - 38 * + 10 THEN NULL ELSE CASE 67 WHEN - 71 / 46 + 92 * - 9 THEN 79 + - 96 WHEN - CASE CASE MIN ( + 52 ) WHEN COALESCE ( 18, - 66 ) THEN - ( + 14 ) + - 68 ELSE 39 * 3 END WHEN - 45 + + 57 THEN + 71 ELSE 89 * + 50 END + 96 * + 12 THEN 26 + 60 * 39 ELSE 13 END + - 51 * + 92 END * 31 AS col2
----
4496519

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL COUNT( * ) * - 24 col2
----
-24

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL COUNT ( * ) * - 24 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT 48 * - + COUNT( * ) * 82 * + 18
----
-70848

skipif mysql # not compatible
query I rowsort label-7892
SELECT 48 * - + COUNT ( * ) * 82 * + 18
----
-70848

query I rowsort
SELECT 90 * + - 8
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL 57 + - COUNT( * ) * + + MAX( + - 68 ) + 35
----
160

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL 57 + - COUNT ( * ) * + + MAX ( + - 68 ) + 35
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + MAX( - 61 ) * - + COUNT( * ) / + + 32 * ( CASE - 29 WHEN - COUNT( * ) THEN 11 WHEN - 90 / 57 THEN 66 / + ( + 83 ) ELSE NULL END / MIN( ALL - 75 / 49 ) ) + - 70 - - ( + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT + MAX ( - 61 ) * - + COUNT ( * ) / + + 32 * ( CASE - 29 WHEN - COUNT ( * ) THEN 11 WHEN - 90 / 57 THEN 66 / + ( + 83 ) ELSE NULL END / MIN ( ALL - 75 / 49 ) ) + - 70 - - ( + 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT COUNT( DISTINCT - 48 ) * - + COUNT( * ) - - 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7896
SELECT COUNT ( DISTINCT - 48 ) * - + COUNT ( * ) - - 11 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT MIN( ALL + 64 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT MIN ( ALL + 64 ) / 71
----
0

query I rowsort
SELECT ALL 21 + 58 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - COALESCE ( - 89, + MAX( + 75 ) ) * 13 AS col0
----
1157

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - COALESCE ( - 89, + MAX ( + 75 ) ) * 13 AS col0
----
1157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7900
SELECT ALL + 47 + + NULLIF ( CASE + ( + 38 ) WHEN - MIN( DISTINCT + 84 ) * + 45 THEN - 30 ELSE NULL END, - 17 ) * + COALESCE ( COALESCE ( 53, + 34, 98 * 17 ) * + CASE 5 - 3 WHEN + COUNT( * ) * 49 + - SUM( DISTINCT - 69 - 30 / - 42 ) THEN - NULLIF ( + 88, ( + 89 ) / 25 + 8 ) END, 44, CAST( NULL AS DECIMAL ), - 52 + 89 * 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + 47 + + NULLIF ( CASE + ( + 38 ) WHEN - MIN ( DISTINCT + 84 ) * + 45 THEN - 30 ELSE NULL END, - 17 ) * + COALESCE ( COALESCE ( 53, + 34, 98 * 17 ) * + CASE 5 - 3 WHEN + COUNT ( * ) * 49 + - SUM ( DISTINCT - 69 - 30 / - 42 ) THEN - NULLIF ( + 88, ( + 89 ) / 25 + 8 ) END, 44, CAST ( NULL AS REAL ), - 52 + 89 * 0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL 15 / - NULLIF ( CAST( NULL AS SIGNED ), + 17 + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL 15 / - NULLIF ( CAST ( NULL AS INTEGER ), + 17 + 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT 5 + + MAX( DISTINCT 91 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7902
SELECT 5 + + MAX ( DISTINCT 91 ) AS col2
----
96

query I rowsort
SELECT DISTINCT 50 * 17
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL - 48 + 66 + + COUNT( * ) + ( - 42 )
----
-23

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - 48 + 66 + + COUNT ( * ) + ( - 42 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT CASE COUNT( * ) WHEN NULLIF ( + ( - ( + CAST( NULL AS SIGNED ) ) ), - 60 ) THEN 3 WHEN + 49 THEN NULL ELSE NULL END / - COUNT( - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT CASE COUNT ( * ) WHEN NULLIF ( + ( - ( + CAST ( NULL AS INTEGER ) ) ), - 60 ) THEN 3 WHEN + 49 THEN NULL ELSE NULL END / - COUNT ( - 50 )
----
NULL

query I rowsort
SELECT 98 + - 51 * 88 + - 37 AS col0
----
-4427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT DISTINCT - ( - + SUM( DISTINCT - + 11 ) ) + - ( 89 ) DIV - 4
----
11

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - ( - + SUM ( DISTINCT - + 11 ) ) + - ( 89 ) / - 4
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL MIN( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL MIN ( 44 ) AS col0
----
44

query I rowsort
SELECT DISTINCT - 15 * 42
----
-630

query I rowsort
SELECT ALL + ( 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT CASE + + 7 WHEN - MAX( ALL - 35 ) THEN 57 WHEN - 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT CASE + + 7 WHEN - MAX ( ALL - 35 ) THEN 57 WHEN - 83 THEN NULL END
----
NULL

query I rowsort
SELECT - 76 - + - 83 + - 34 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + MIN( - + NULLIF ( + COALESCE ( + 83, - 21 + + 49 ), 0 ) ) * 52 AS col0
----
-4316

skipif mysql # not compatible
query I rowsort label-7913
SELECT + MIN ( - + NULLIF ( + COALESCE ( + 83, - 21 + + 49 ), 0 ) ) * 52 AS col0
----
-4316

query I rowsort
SELECT 54 + + 60 + - 45 AS col1
----
69

query I rowsort
SELECT ALL - 21 * + 24 AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT - 4 * 48 + - COUNT( * ) col1
----
-193

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - 4 * 48 + - COUNT ( * ) col1
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 59 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - COUNT( * ) * - 88 + - + COUNT( * ) * - - 63 + + 21
----
46

skipif mysql # not compatible
query I rowsort label-7918
SELECT - COUNT ( * ) * - 88 + - + COUNT ( * ) * - - 63 + + 21
----
46

query I rowsort
SELECT + 26 - - 10 * - + 79
----
-764

query I rowsort
SELECT ALL + 60 * - - 28
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT NULLIF ( - COALESCE ( + SUM( ALL 48 ), 70 + 43, 95 DIV + 90 + + COUNT( * ) ), - 89 ) - - 56
----
8

skipif mysql # not compatible
query I rowsort label-7921
SELECT NULLIF ( - COALESCE ( + SUM ( ALL 48 ), 70 + 43, 95 / + 90 + + COUNT ( * ) ), - 89 ) - - 56
----
8

query I rowsort
SELECT + 83 * - 83
----
-6889

query I rowsort
SELECT + 53 * - 9 * + - ( - - 46 ) * + 34
----
746028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT + CAST( NULL AS SIGNED ) * - - NULLIF ( - 3, - 37 ) + - CASE 61 WHEN 87 / + 56 THEN 83 WHEN COUNT( * ) + 5 * - 62 THEN NULL END + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT + CAST ( NULL AS INTEGER ) * - - NULLIF ( - 3, - 37 ) + - CASE 61 WHEN 87 / + 56 THEN 83 WHEN COUNT ( * ) + 5 * - 62 THEN NULL END + 97
----
NULL

query I rowsort
SELECT 64 + 23
----
87

query I rowsort
SELECT 70 * - ( + ( + 10 ) ) AS col2
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT MAX( ALL 94 ) + - 21 + + 27 * + - 63 + 69 * + 43 AS col2
----
1339

skipif mysql # not compatible
query I rowsort label-7927
SELECT MAX ( ALL 94 ) + - 21 + + 27 * + - 63 + 69 * + 43 AS col2
----
1339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT - 25 / + ( + 31 ) - - CAST( NULL AS SIGNED ) + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 25 / + ( + 31 ) - - CAST ( NULL AS INTEGER ) + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL COUNT( - 14 ) * + - SUM( - 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL COUNT ( - 14 ) * + - SUM ( - 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT SUM( DISTINCT 46 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-7930
SELECT SUM ( DISTINCT 46 ) col1
----
46

query I rowsort
SELECT 97 * 30 + + 91 AS col2
----
3001

query I rowsort
SELECT ALL - 49 * + 77 * 3 + + 16 col2
----
-11303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT ALL - MAX( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) + + + 22 + - 56 * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - MAX ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) + + + 22 + - 56 * + 36 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * 39
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT MIN( + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7935
SELECT MIN ( + + 60 )
----
60

query I rowsort
SELECT ALL - 72 * - 87 + 9
----
6273

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + COUNT( ALL 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7937
SELECT + COUNT ( ALL 24 ) AS col1
----
1

query I rowsort
SELECT - 55 * 87 AS col2
----
-4785

query II rowsort
SELECT ALL + 69 AS col2, - 0 AS col1
----
69
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT - COUNT( * ) * - + 97 + + + 48 * - CAST( + 85 AS SIGNED )
----
-3983

skipif mysql # not compatible
query I rowsort label-7940
SELECT - COUNT ( * ) * - + 97 + + + 48 * - CAST ( + 85 AS INTEGER )
----
-3983

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT - 73 DIV 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 73 / 54 AS col1
----
-1

query I rowsort
SELECT + + 88 * - 84 * - 31 col2
----
229152

query I rowsort
SELECT ALL + 77 * 63
----
4851

query I rowsort
SELECT DISTINCT 50 - + 43
----
7

query I rowsort
SELECT DISTINCT + 60 * - - 28 AS col1
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7946
SELECT DISTINCT 59 DIV + CASE CAST( NULL AS DECIMAL ) WHEN - 38 * + 15 * + 37 + CASE - CASE 11 WHEN 80 THEN 15 WHEN ( - 27 ) * - MAX( - 43 ) THEN NULL END WHEN COUNT( * ) THEN 92 WHEN + 17 * 5 + 76 THEN NULL ELSE NULL END + + 10 THEN NULL WHEN 4 * - CAST( CASE 93 WHEN + 91 THEN ( 13 ) DIV 17 ELSE + 0 - + 2 DIV - 7 END * - SUM( ALL 88 * 16 ) AS SIGNED ) THEN NULL WHEN + 91 * + 70 + + 0 * - 24 THEN NULL ELSE - 72 END * 35
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT 59 / + CASE CAST ( NULL AS REAL ) WHEN - 38 * + 15 * + 37 + CASE - CASE 11 WHEN 80 THEN 15 WHEN ( - 27 ) * - MAX ( - 43 ) THEN NULL END WHEN COUNT ( * ) THEN 92 WHEN + 17 * 5 + 76 THEN NULL ELSE NULL END + + 10 THEN NULL WHEN 4 * - CAST ( CASE 93 WHEN + 91 THEN ( 13 ) / 17 ELSE + 0 - + 2 / - 7 END * - SUM ( ALL 88 * 16 ) AS INTEGER ) THEN NULL WHEN + 91 * + 70 + + 0 * - 24 THEN NULL ELSE - 72 END * 35
----
0

query I rowsort
SELECT + - 27 * 28
----
-756

query I rowsort
SELECT - 36 * + 23 + - - 31 AS col1
----
-797

query I rowsort
SELECT ALL 77 * - 65 AS col1
----
-5005

query I rowsort
SELECT + 47 + 96 col1
----
143

query I rowsort
SELECT - + COALESCE ( + 43, - 39 )
----
-43

query I rowsort
SELECT - 30 - - 61
----
31

query I rowsort
SELECT DISTINCT - 25 * + 34
----
-850

query I rowsort
SELECT + 74 + 57 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT - + MAX( ALL + - 15 ) + - 55 + - COUNT( * ) DIV - 36 + 47 * + 79 AS col0
----
3673

skipif mysql # not compatible
query I rowsort label-7955
SELECT - + MAX ( ALL + - 15 ) + - 55 + - COUNT ( * ) / - 36 + 47 * + 79 AS col0
----
3673

onlyif mysql # aggregate syntax: 
query II rowsort label-7956
SELECT - 25, - ( - 90 ) + - 45 + + - 57 + ( 69 ) * COUNT( * ) AS col1
----
-25
57

skipif mysql # not compatible
query II rowsort label-7956
SELECT - 25, - ( - 90 ) + - 45 + + - 57 + ( 69 ) * COUNT ( * ) AS col1
----
-25
57

query I rowsort
SELECT DISTINCT - 73 + 19
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL - + 60 + 71 - COUNT( * ) * - 7 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - + 60 + 71 - COUNT ( * ) * - 7 AS col0
----
18

query II rowsort
SELECT - 50 * + 26 * + 13, + 46 + - - 64 - - 57 AS col0
----
-16900
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - COUNT( + + 11 ) * 51 col2
----
-51

skipif mysql # not compatible
query I rowsort label-7960
SELECT - COUNT ( + + 11 ) * 51 col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL + 19 * + - MIN( - 20 ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + 19 * + - MIN ( - 20 ) AS col2
----
380

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7962
SELECT 92 * - + 55 * - + 53 + + + CAST( NULL AS SIGNED ) * - - 34 + + 57 + CAST( - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT 92 * - + 55 * - + 53 + + + CAST ( NULL AS INTEGER ) * - - 34 + + 57 + CAST ( - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT + 1 * - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + 1 * - COUNT ( + 76 )
----
-1

query II rowsort
SELECT - ( 75 ) * - - 59 + 13, 4 AS col0
----
-4412
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT ALL - ( - 32 ) DIV - 59 + - 30 - - ( - 78 ) + 42 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - ( - 32 ) / - 59 + - 30 - - ( - 78 ) + 42 AS col2
----
-66

query I rowsort
SELECT ALL + 20 * + - 89 * + - 15 col2
----
26700

query I rowsort
SELECT ALL - 22 * + 72 + 93
----
-1491

query I rowsort
SELECT DISTINCT + 2 * + COALESCE ( + + 11, + 69 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - ( - COUNT( * ) ) * + 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7969
SELECT - ( - COUNT ( * ) ) * + 6 AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-7970
SELECT - 33 * 60 + 61 DIV - 75 col2, + 55
----
-1980
55

skipif mysql # not compatible
query II rowsort label-7970
SELECT - 33 * 60 + 61 / - 75 col2, + 55
----
-1980
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL ( + - 74 ) DIV + 94 + + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL ( + - 74 ) / + 94 + + - 38
----
-38

query I rowsort
SELECT NULLIF ( - + 26, + 15 ) col0
----
-26

query I rowsort
SELECT ALL 51 * + 54 - - 5 + 59 AS col1
----
2818

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT CASE + 25 WHEN CASE - 85 WHEN - - 86 THEN NULL WHEN - 47 * 13 THEN + MAX( 96 ) * + 56 END + COUNT( * ) * + 95 THEN - 59 + COUNT( * ) WHEN 0 THEN + 39 * - 54 END * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT CASE + 25 WHEN CASE - 85 WHEN - - 86 THEN NULL WHEN - 47 * 13 THEN + MAX ( 96 ) * + 56 END + COUNT ( * ) * + 95 THEN - 59 + COUNT ( * ) WHEN 0 THEN + 39 * - 54 END * 87 AS col0
----
NULL

query I rowsort
SELECT ALL - 29 * 7 - 76
----
-279

query I rowsort
SELECT + 20 * + + ( - 59 ) AS col1
----
-1180

query II rowsort
SELECT ALL + 59, - 71 AS col0
----
59
-71

query I rowsort
SELECT ALL ( - 81 ) * - 38 * - 41
----
-126198

query I rowsort
SELECT + 96 * 91 AS col2
----
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7980
SELECT ALL COALESCE ( - 91, + NULLIF ( + CASE 25 WHEN - + 58 THEN + COUNT( * ) * - 72 - + COALESCE ( + 42 + COALESCE ( + COUNT( * ), COALESCE ( 12, - CAST( - 8 AS SIGNED ) DIV - 34 ) * + 37 ), 59 ) WHEN + 66 THEN NULL END, + 67 ) * - 93, 70 ) * + ( 95 )
----
-8645

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL COALESCE ( - 91, + NULLIF ( + CASE 25 WHEN - + 58 THEN + COUNT ( * ) * - 72 - + COALESCE ( + 42 + COALESCE ( + COUNT ( * ), COALESCE ( 12, - CAST ( - 8 AS INTEGER ) / - 34 ) * + 37 ), 59 ) WHEN + 66 THEN NULL END, + 67 ) * - 93, 70 ) * + ( 95 )
----
-8645

onlyif mysql # aggregate syntax: 
query II rowsort label-7981
SELECT ALL + - 8, - MIN( ALL - 76 ) AS col1
----
-8
76

skipif mysql # not compatible
query II rowsort label-7981
SELECT ALL + - 8, - MIN ( ALL - 76 ) AS col1
----
-8
76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7982
SELECT 25, + CAST( NULL AS DECIMAL ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7982
SELECT 25, + CAST ( NULL AS REAL ) AS col0
----
25
NULL

query I rowsort
SELECT ALL 48 * + 13 AS col2
----
624

query II rowsort
SELECT + + 12 AS col2, - 20
----
12
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - CASE - 91 WHEN + + 63 THEN + ( + 2 ) WHEN - MIN( + 82 ) THEN NULL WHEN MAX( 23 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT - CASE - 91 WHEN + + 63 THEN + ( + 2 ) WHEN - MIN ( + 82 ) THEN NULL WHEN MAX ( 23 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + 35 * - + MIN( DISTINCT + 65 )
----
-2275

skipif mysql # not compatible
query I rowsort label-7986
SELECT + 35 * - + MIN ( DISTINCT + 65 )
----
-2275

onlyif mysql # DIV for integer division: 
query II rowsort label-7987
SELECT DISTINCT - ( - 36 ) AS col0, + NULLIF ( - + 1, - - 61 ) + + 91 + 45 DIV 87
----
36
90

skipif mysql # not compatible
query II rowsort label-7987
SELECT DISTINCT - ( - 36 ) AS col0, + NULLIF ( - + 1, - - 61 ) + + 91 + 45 / 87
----
36
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT COUNT( DISTINCT - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-7988
SELECT COUNT ( DISTINCT - - 58 )
----
1

query I rowsort
SELECT - - 85 + + ( + COALESCE ( + ( - 93 ), - 0 ) ) - + CASE - 86 WHEN ( 83 ) THEN - 43 + 88 END * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT ALL COUNT( * ) AS col1, MAX( - 14 ) + + 53 + - 60
----
1
-21

skipif mysql # not compatible
query II rowsort label-7990
SELECT ALL COUNT ( * ) AS col1, MAX ( - 14 ) + + 53 + - 60
----
1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + - 15 * + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7991
SELECT + - 15 * + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL CASE - + 58 WHEN 31 * COALESCE ( + 75, - AVG ( - 96 ) ) THEN + COUNT( - 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL CASE - + 58 WHEN 31 * COALESCE ( + 75, - AVG ( - 96 ) ) THEN + COUNT ( - 67 ) END
----
NULL

query I rowsort
SELECT ALL + - 24 + + - COALESCE ( + + 31, + 84 ) + - + 56
----
-111

query I rowsort
SELECT ALL 77 + + 81 AS col2
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL 91 + - CAST( - 56 AS SIGNED ) col0
----
147

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 91 + - CAST ( - 56 AS INTEGER ) col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + + ( 54 ) - COUNT( * ) - - - 64 * + - CASE 76 WHEN COUNT( * ) * - 98 THEN 2 WHEN COUNT( * ) + 63 THEN NULL ELSE 92 + 7 END * 29
----
183797

skipif mysql # not compatible
query I rowsort label-7996
SELECT + + ( 54 ) - COUNT ( * ) - - - 64 * + - CASE 76 WHEN COUNT ( * ) * - 98 THEN 2 WHEN COUNT ( * ) + 63 THEN NULL ELSE 92 + 7 END * 29
----
183797

query I rowsort
SELECT + ( + - 96 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT + ( - 53 ) AS col0
----
-53

query I rowsort
SELECT DISTINCT 5 * + 52
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL - 61 + - CASE WHEN NOT - 21 NOT IN ( + + 35 + + + 46 - 26 - 93 * + COUNT( * ) ) THEN - 43 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - 61 + - CASE WHEN NOT - 21 NOT IN ( + + 35 + + + 46 - 26 - 93 * + COUNT ( * ) ) THEN - 43 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 34 * 60 col0
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT 99 - SUM( + 51 )
----
48

skipif mysql # not compatible
query I rowsort label-8002
SELECT 99 - SUM ( + 51 )
----
48

query I rowsort
SELECT DISTINCT + 16 + - + 79 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL - MAX( DISTINCT + 21 ) + - + 18 + - - 97
----
58

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - MAX ( DISTINCT + 21 ) + - + 18 + - - 97
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT + CASE - COALESCE ( - 77, - 55 - 94 ) WHEN 72 THEN + 80 END / 37 + + CAST( COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT + CASE - COALESCE ( - 77, - 55 - 94 ) WHEN 72 THEN + 80 END / 37 + + CAST ( COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 24 * - - 3
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT 98 + COUNT( * ) * - 94
----
4

skipif mysql # not compatible
query I rowsort label-8007
SELECT 98 + COUNT ( * ) * - 94
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + 71 * - - COUNT( * ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + 71 * - - COUNT ( * ) * COUNT ( * )
----
71

query I rowsort
SELECT 8 + - 76 AS col1
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-8010
SELECT 14 * 32, + 22 DIV + 28 AS col2
----
448
0

skipif mysql # not compatible
query II rowsort label-8010
SELECT 14 * 32, + 22 / + 28 AS col2
----
448
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT DISTINCT - CASE + MAX( ALL 8 ) WHEN - - CAST( - 12 AS SIGNED ) THEN + 37 WHEN + 81 THEN COALESCE ( 31, COUNT( * ) + COUNT( * ) ) * 80 + - 68 * 10 END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT - CASE + MAX ( ALL 8 ) WHEN - - CAST ( - 12 AS INTEGER ) THEN + 37 WHEN + 81 THEN COALESCE ( 31, COUNT ( * ) + COUNT ( * ) ) * 80 + - 68 * 10 END * 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT ALL + 98 - + 70 DIV 39 - NULLIF ( + 17, 75 + + 33 * 28 )
----
80

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + 98 - + 70 / 39 - NULLIF ( + 17, 75 + + 33 * 28 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL - MAX( 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - MAX ( 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT - CASE MIN( ALL - 55 ) WHEN COUNT( * ) THEN - - 4 WHEN 23 THEN 59 + + 41 WHEN 51 THEN + 54 * + 54 WHEN ( + 11 ) / 83 THEN + 53 ELSE NULL END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - CASE MIN ( ALL - 55 ) WHEN COUNT ( * ) THEN - - 4 WHEN 23 THEN 59 + + 41 WHEN 51 THEN + 54 * + 54 WHEN ( + 11 ) / 83 THEN + 53 ELSE NULL END * 64
----
NULL

query I rowsort
SELECT 43 + 16 + - - ( - - 76 )
----
135

query I rowsort
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN COALESCE ( + 11, 37 + + 38 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT 94 * - 57 + - COUNT( * ) + 99 + - 26 + + ( - ( 80 ) ) DIV 96
----
-5286

skipif mysql # not compatible
query I rowsort label-8017
SELECT 94 * - 57 + - COUNT ( * ) + 99 + - 26 + + ( - ( 80 ) ) / 96
----
-5286

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + ( - ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8018
SELECT + ( - ( + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - - 9 * - ( - - 97 ) * 44 + - COUNT( * ) * 10 col2
----
-38422

skipif mysql # not compatible
query I rowsort label-8019
SELECT - - 9 * - ( - - 97 ) * 44 + - COUNT ( * ) * 10 col2
----
-38422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT - 56 + - 78 * CAST( 0 AS SIGNED ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 56 + - 78 * CAST ( 0 AS INTEGER ) col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT ALL 95 + - + CAST( NULL AS SIGNED ) + - 46 * + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL 95 + - + CAST ( NULL AS INTEGER ) + - 46 * + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT ALL - 75 * + + COUNT( * ), - 4 AS col2
----
-75
-4

skipif mysql # not compatible
query II rowsort label-8022
SELECT ALL - 75 * + + COUNT ( * ), - 4 AS col2
----
-75
-4

query I rowsort
SELECT DISTINCT - 42 * 66
----
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT 29 + 31 DIV + 63 * + 95
----
29

skipif mysql # not compatible
query I rowsort label-8024
SELECT 29 + 31 / + 63 * + 95
----
29

query I rowsort
SELECT ALL ( - - 1 ) * - + 90 * 27
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT 84 * + + COUNT( DISTINCT - 48 ) - - - 83 * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT 84 * + + COUNT ( DISTINCT - 48 ) - - - 83 * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - ( + - 76 ) + - 37 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT COALESCE ( + COALESCE ( + 21, - COUNT( * ), + + CAST( + 44 AS SIGNED ) ), - 22 * ( 32 * - 29 ) + 46, 33 ) + MAX( DISTINCT ( - 68 ) ) * + ( 13 ) AS col1
----
-863

skipif mysql # not compatible
query I rowsort label-8028
SELECT COALESCE ( + COALESCE ( + 21, - COUNT ( * ), + + CAST ( + 44 AS INTEGER ) ), - 22 * ( 32 * - 29 ) + 46, 33 ) + MAX ( DISTINCT ( - 68 ) ) * + ( 13 ) AS col1
----
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - COUNT( * ) - 16 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8029
SELECT - COUNT ( * ) - 16 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT 57 - - 51 + - MAX( DISTINCT - 8 ) + - + 60 + + 92 * 88 * - - 40 col1
----
323896

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT 57 - - 51 + - MAX ( DISTINCT - 8 ) + - + 60 + + 92 * 88 * - - 40 col1
----
323896

query I rowsort
SELECT DISTINCT 22 * + + 26
----
572

query II rowsort
SELECT ALL 72 AS col1, 75 AS col0
----
72
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ( + 35 ) + - 43 + - 51 DIV + 89
----
-8

skipif mysql # not compatible
query I rowsort label-8033
SELECT ( + 35 ) + - 43 + - 51 / + 89
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL MAX( ALL - 33 ) - + + 39 + - 85
----
-157

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL MAX ( ALL - 33 ) - + + 39 + - 85
----
-157

query I rowsort
SELECT 24 * + 54 AS col2
----
1296

query I rowsort
SELECT ALL 86 * - + 56 AS col1
----
-4816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL NULLIF ( 81, - CAST( NULL AS SIGNED ) ) * + COUNT( * ) - - 49 + + - 58 + - 38
----
34

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL NULLIF ( 81, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) - - 49 + + - 58 + - 38
----
34

query I rowsort
SELECT 34 + 86
----
120

query I rowsort
SELECT ALL - ( + - 37 )
----
37

query I rowsort
SELECT 40 + - - 68 col0
----
108

query I rowsort
SELECT 14 * - 16 AS col0
----
-224

query II rowsort
SELECT + 62 AS col2, + 21 AS col0
----
62
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8043
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), 82 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT + 50 * - COUNT( * ) - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT + 50 * - COUNT ( * ) - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT - ( - - ( - 90 ) ) AS col0, 57 + + ( 55 ) + - 98 * + 60 col1
----
90
-5768

query I rowsort
SELECT DISTINCT + 26 * - - 4
----
104

query I rowsort
SELECT ALL 10 + + 31 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT ALL - + 58 + NULLIF ( - 15, 81 ) DIV - MIN( DISTINCT - - 36 ) - + + 48 + + 73 * 83
----
5953

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - + 58 + NULLIF ( - 15, 81 ) / - MIN ( DISTINCT - - 36 ) - + + 48 + + 73 * 83
----
5953

query I rowsort
SELECT ALL - 88 + - NULLIF ( 6, 45 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + 63 * - CASE ( - COALESCE ( - COUNT( * ), + 48 + - AVG ( + 36 ) ) ) WHEN 35 - MAX( ALL 95 ) THEN NULL WHEN 40 THEN 59 * - 40 - + MAX( 72 + 39 * + 65 ) ELSE 91 END + COUNT( * ) AS col1
----
-5732

skipif mysql # not compatible
query I rowsort label-8050
SELECT + 63 * - CASE ( - COALESCE ( - COUNT ( * ), + 48 + - AVG ( + 36 ) ) ) WHEN 35 - MAX ( ALL 95 ) THEN NULL WHEN 40 THEN 59 * - 40 - + MAX ( 72 + 39 * + 65 ) ELSE 91 END + COUNT ( * ) AS col1
----
-5732

query I rowsort
SELECT DISTINCT - + 16 + - 24 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - CASE + ( + + 35 ) WHEN COUNT( * ) - - MIN( ALL 38 ) THEN ( + 15 ) * 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - CASE + ( + + 35 ) WHEN COUNT ( * ) - - MIN ( ALL 38 ) THEN ( + 15 ) * 57 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8053
SELECT - CAST( + AVG ( ALL 36 ) AS SIGNED ) AS col2, 88 + - 19 AS col1
----
-36
69

skipif mysql # not compatible
query II rowsort label-8053
SELECT - CAST ( + AVG ( ALL 36 ) AS INTEGER ) AS col2, 88 + - 19 AS col1
----
-36
69

query I rowsort
SELECT 49 * - + 65 - 66 - - 91 AS col1
----
-3160

query II rowsort
SELECT DISTINCT - - 55 AS col0, 87
----
55
87

query I rowsort
SELECT - 29 * 84 AS col0
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT - COUNT( DISTINCT - - 44 ) + - 80 + + COUNT( + ( 27 ) ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - COUNT ( DISTINCT - - 44 ) + - 80 + + COUNT ( + ( 27 ) ) col2
----
-80

query I rowsort
SELECT 92 + - + 56 * + - 97 AS col0
----
5524

query II rowsort
SELECT ALL 28, 69 col2
----
28
69

query I rowsort
SELECT - 83 * - 91
----
7553

query I rowsort
SELECT ALL + 11 * + + 20
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - - COALESCE ( 82, - 98 ) DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT - - COALESCE ( 82, - 98 ) / + - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL + 61 - + CASE + 43 WHEN 34 THEN 36 - + + 2 WHEN - COUNT( * ) THEN + 8 ELSE + + CASE 91 WHEN 78 THEN 48 / 78 + 69 END + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL + 61 - + CASE + 43 WHEN 34 THEN 36 - + + 2 WHEN - COUNT ( * ) THEN + 8 ELSE + + CASE 91 WHEN 78 THEN 48 / 78 + 69 END + - 0 END
----
NULL

query I rowsort
SELECT ALL 81 * + + 11
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT - 98 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 98 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 88 * 24 AS col1
----
-2112

query I rowsort
SELECT - ( - + ( 95 ) ) + - + 84 * - + 55 + + 20 col1
----
4735

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - 51 + + - 30 + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 51 + + - 30 + - COUNT ( * )
----
-82

query I rowsort
SELECT + 57 * - - NULLIF ( + + 12, + - AVG ( + 13 ) * - 82 )
----
684

query I rowsort
SELECT + 27 + + 62
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL ( 66 ) - + 43 + + CASE WHEN NOT CASE - COUNT( * ) WHEN - 81 THEN - ( - 57 ) + + 54 * + ( 66 + 42 ) END NOT BETWEEN ( - 10 + + ( 67 ) * 80 ) AND - 95 + + 42 THEN COUNT( * ) + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL ( 66 ) - + 43 + + CASE WHEN NOT CASE - COUNT ( * ) WHEN - 81 THEN - ( - 57 ) + + 54 * + ( 66 + 42 ) END NOT BETWEEN ( - 10 + + ( 67 ) * 80 ) AND - 95 + + 42 THEN COUNT ( * ) + 41 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT COUNT( * ) * 92 * 97 AS col2
----
8924

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT COUNT ( * ) * 92 * 97 AS col2
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + MAX( DISTINCT - 28 ) - + ( ( - 96 ) )
----
68

skipif mysql # not compatible
query I rowsort label-8073
SELECT + MAX ( DISTINCT - 28 ) - + ( ( - 96 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 8 * + + COUNT( * ) + + 24 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8074
SELECT 8 * + + COUNT ( * ) + + 24 AS col1
----
32

query I rowsort
SELECT + 73 + 50 * 29 col0
----
1523

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT + 91 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 91 / - - 93
----
0

query I rowsort
SELECT DISTINCT + 53 * - - 36 + + 36 + - - 21 + - - 62 AS col2
----
2027

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT 35 DIV 75 * - NULLIF ( + 20, + 48 * - + 72 + 7 ) * - + 99 * - + 61 DIV 20 + + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8078
SELECT 35 / 75 * - NULLIF ( + 20, + 48 * - + 72 + 7 ) * - + 99 * - + 61 / 20 + + 30 AS col2
----
30

query II rowsort
SELECT ( - 78 ) AS col1, + 64 * + ( + 77 )
----
-78
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT ALL - 20 * + 60 + - 6 DIV - 1 AS col1
----
-1194

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - 20 * + 60 + - 6 / - 1 AS col1
----
-1194

query I rowsort
SELECT + 37 + - 28
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT + 55 DIV + - 24
----
-2

skipif mysql # not compatible
query I rowsort label-8082
SELECT + 55 / + - 24
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - 22 * - 6 / - 76 + - CASE WHEN - 13 IS NULL THEN - - 0 * + - 60 / + 94 - + 56 END + + 92 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT - 22 * - 6 / - 76 + - CASE WHEN - 13 IS NULL THEN - - 0 * + - 60 / + 94 - + 56 END + + 92 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 32 * 31 + 66 + 99
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + 36 * ( 23 ) * CASE WHEN 52 NOT BETWEEN ( + 49 * - 64 * + COUNT( * ) + + 52 ) AND ( 32 * 48 ) THEN - 15 END + 24 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + 36 * ( 23 ) * CASE WHEN 52 NOT BETWEEN ( + 49 * - 64 * + COUNT ( * ) + + 52 ) AND ( 32 * 48 ) THEN - 15 END + 24 * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - MAX( ALL 76 ) * 24 * - CASE + + 32 WHEN + COUNT( * ) THEN COUNT( * ) * + MIN( ALL 88 ) - 49 ELSE + 23 * + 60 END * 15 col0
----
37756800

skipif mysql # not compatible
query I rowsort label-8086
SELECT - MAX ( ALL 76 ) * 24 * - CASE + + 32 WHEN + COUNT ( * ) THEN COUNT ( * ) * + MIN ( ALL 88 ) - 49 ELSE + 23 * + 60 END * 15 col0
----
37756800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT - + CASE + 73 WHEN 63 * - COALESCE ( ( 90 ), + - 68 ) * + COALESCE ( - + 64, 14 ) + 25 THEN NULL WHEN - 36 + 60 * + 81 THEN + 30 * 37 WHEN - 32 * - COUNT( * ) THEN NULL ELSE 46 * ( 89 * + CAST( + 33 AS SIGNED ) ) - 67 END + + 75 * 8
----
-134435

skipif mysql # not compatible
query I rowsort label-8087
SELECT - + CASE + 73 WHEN 63 * - COALESCE ( ( 90 ), + - 68 ) * + COALESCE ( - + 64, 14 ) + 25 THEN NULL WHEN - 36 + 60 * + 81 THEN + 30 * 37 WHEN - 32 * - COUNT ( * ) THEN NULL ELSE 46 * ( 89 * + CAST ( + 33 AS INTEGER ) ) - 67 END + + 75 * 8
----
-134435

query I rowsort
SELECT + 13 + + 33 * - 49 AS col1
----
-1604

query I rowsort
SELECT + 40 + + + 55
----
95

query I rowsort
SELECT ALL + 57 * ( 52 ) * 11 - - - 7 + - 27 AS col1
----
32570

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8091
SELECT ALL - + 38 * 40 DIV + + CAST( 19 AS SIGNED ) + 44
----
-36

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - + 38 * 40 / + + CAST ( 19 AS INTEGER ) + 44
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT - COUNT( DISTINCT + 83 ) * 51 + - 42 - 97 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - COUNT ( DISTINCT + 83 ) * 51 + - 42 - 97 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT - + 35 + + COUNT( * ), - 14 + - 99 col2
----
-34
-113

skipif mysql # not compatible
query II rowsort label-8093
SELECT - + 35 + + COUNT ( * ), - 14 + - 99 col2
----
-34
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - 28 * - CASE - 19 WHEN - 65 + + 14 * + 88 * 64 THEN COUNT( * ) WHEN 42 THEN 68 - + 88 / 78 END / + 82 - 79 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - 28 * - CASE - 19 WHEN - 65 + + 14 * + 88 * 64 THEN COUNT ( * ) WHEN 42 THEN 68 - + 88 / 78 END / + 82 - 79 - + COUNT ( * )
----
NULL

query I rowsort
SELECT - + 78 * NULLIF ( - 62, - 63 + + 88 + - + 45 ) + 44 AS col2
----
4880

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL COALESCE ( + ( + 98 ), + 69 + - 85 - 95 + + ( + - COUNT( * ) ), + 88 + - COUNT( * ) + 48 )
----
98

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL COALESCE ( + ( + 98 ), + 69 + - 85 - 95 + + ( + - COUNT ( * ) ), + 88 + - COUNT ( * ) + 48 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT - ( + 10 ) * - 63, COUNT( * ) AS col0
----
630
1

skipif mysql # not compatible
query II rowsort label-8097
SELECT - ( + 10 ) * - 63, COUNT ( * ) AS col0
----
630
1

query I rowsort
SELECT - 39 * - + 2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - 57 + 94 * - COUNT( 8 )
----
-151

skipif mysql # not compatible
query I rowsort label-8099
SELECT - 57 + 94 * - COUNT ( 8 )
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT CASE - ( - 7 ) WHEN + 78 THEN CAST( NULL AS SIGNED ) * ( - 95 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT CASE - ( - 7 ) WHEN + 78 THEN CAST ( NULL AS INTEGER ) * ( - 95 ) END AS col0
----
NULL

query I rowsort
SELECT - 45 * 80 AS col2
----
-3600

query I rowsort
SELECT - 4 * + 18 * - + 84
----
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT ALL + 39 DIV - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + 39 / - - COUNT ( * )
----
39

query I rowsort
SELECT DISTINCT COALESCE ( + + 72, + - 1 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT - 80 * 18 DIV + - 94
----
15

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 80 * 18 / + - 94
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) * + AVG ( DISTINCT + 74 ) + + SUM( - 76 ) + 45 * - 67 + + 58 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + AVG ( DISTINCT + 74 ) + + SUM ( - 76 ) + 45 * - 67 + + 58 * - 1
----
NULL

query I rowsort
SELECT - 97 + + 72
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL + COALESCE ( - 74, + COUNT( * ) * + SUM( - - 41 ) ) * ( + COUNT( DISTINCT - 72 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + COALESCE ( - 74, + COUNT ( * ) * + SUM ( - - 41 ) ) * ( + COUNT ( DISTINCT - 72 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + MIN( NULLIF ( 80, - 26 ) ) + 68
----
148

skipif mysql # not compatible
query I rowsort label-8109
SELECT + MIN ( NULLIF ( 80, - 26 ) ) + 68
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - NULLIF ( + - 32, - 72 * + 99 ) + - - MIN( 15 )
----
47

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - NULLIF ( + - 32, - 72 * + 99 ) + - - MIN ( 15 )
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8111
SELECT DISTINCT - 25 DIV + ( + CAST( 21 AS SIGNED ) ) + - 56 + + 46 + + NULLIF ( - 69, + 92 + - 65 ) + 13 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - 25 / + ( + CAST ( 21 AS INTEGER ) ) + - 56 + + 46 + + NULLIF ( - 69, + 92 + - 65 ) + 13 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8112
SELECT ALL + CAST( - + 45 AS SIGNED ) DIV MAX( 82 ) + 64 AS col0, 27 * + 38 AS col0
----
64
1026

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL + CAST ( - + 45 AS INTEGER ) / MAX ( 82 ) + 64 AS col0, 27 * + 38 AS col0
----
64
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT ALL + 48, + 46 * - COUNT( * ) AS col2
----
48
-46

skipif mysql # not compatible
query II rowsort label-8113
SELECT ALL + 48, + 46 * - COUNT ( * ) AS col2
----
48
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT ALL + COUNT( * ), - 20 col0
----
1
-20

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL + COUNT ( * ), - 20 col0
----
1
-20

query I rowsort
SELECT + 72 * 11 AS col2
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT 47 * 0 DIV NULLIF ( COUNT( * ), - 86 + - 92 ) - + + 65 + + 96 * - 46 AS col0
----
-4481

skipif mysql # not compatible
query I rowsort label-8117
SELECT 47 * 0 / NULLIF ( COUNT ( * ), - 86 + - 92 ) - + + 65 + + 96 * - 46 AS col0
----
-4481

query I rowsort
SELECT ALL + 36 * + + 70
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT + CASE + + 2 WHEN - 96 THEN - 87 + + - 43 WHEN 88 + - - 22 THEN NULL WHEN + - 77 * + 96 THEN + + 54 / - COUNT( * ) - CAST( NULL AS SIGNED ) ELSE - NULLIF ( + 81, AVG ( - 42 ) ) * 3 END AS col0
----
-243

skipif mysql # not compatible
query I rowsort label-8119
SELECT + CASE + + 2 WHEN - 96 THEN - 87 + + - 43 WHEN 88 + - - 22 THEN NULL WHEN + - 77 * + 96 THEN + + 54 / - COUNT ( * ) - CAST ( NULL AS INTEGER ) ELSE - NULLIF ( + 81, AVG ( - 42 ) ) * 3 END AS col0
----
-243

query I rowsort
SELECT DISTINCT ( + 53 ) * 15 * - + 88
----
-69960

query I rowsort
SELECT - 74 * + 91 AS col0
----
-6734

query I rowsort
SELECT 32 * - 22 * - - ( - 35 ) col2
----
24640

query I rowsort
SELECT 37 * 1 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + 43 * - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + 43 * - COUNT ( * ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT CASE + - COALESCE ( + 51, - COUNT( * ) ) WHEN - SUM( DISTINCT - 44 ) THEN - 93 / - 88 + + 57 / - - 84 END * - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT CASE + - COALESCE ( + 51, - COUNT ( * ) ) WHEN - SUM ( DISTINCT - 44 ) THEN - 93 / - 88 + + 57 / - - 84 END * - + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8126
SELECT 27 DIV + - 73 * COALESCE ( - CAST( NULL AS SIGNED ), - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT 27 / + - 73 * COALESCE ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) )
----
0

query II rowsort
SELECT ALL 34 col0, 5
----
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + NULLIF ( COUNT( * ), + + 18 + - 50 ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + NULLIF ( COUNT ( * ), + + 18 + - 50 ) + - 16 AS col1
----
-15

query I rowsort
SELECT 33 + - + 33
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT - 48 AS col2, COALESCE ( + NULLIF ( 23, + + SUM( ALL 26 ) ), - COUNT( * ), - CASE - + 98 WHEN - ( + COUNT( * ) ) THEN - COUNT( * ) WHEN 77 THEN NULL ELSE NULL END, + MIN( DISTINCT + 47 ) ) * 50
----
-48
1150

skipif mysql # not compatible
query II rowsort label-8130
SELECT - 48 AS col2, COALESCE ( + NULLIF ( 23, + + SUM ( ALL 26 ) ), - COUNT ( * ), - CASE - + 98 WHEN - ( + COUNT ( * ) ) THEN - COUNT ( * ) WHEN 77 THEN NULL ELSE NULL END, + MIN ( DISTINCT + 47 ) ) * 50
----
-48
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL 20 + - CAST( NULL AS SIGNED ) + 29 / 90 + - - 45 * + + 15 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL 20 + - CAST ( NULL AS INTEGER ) + 29 / 90 + - - 45 * + + 15 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 9 + - 80 + + 9 col1
----
-62

query I rowsort
SELECT 58 - COALESCE ( 5, 10 - - + 9 ) AS col1
----
53

query II rowsort
SELECT ALL 60 AS col0, 95 * 0
----
60
0

query I rowsort
SELECT ALL 50 + - 49 + + 4 - - 53 + + 76 + - + 92 * + + 6 * 91
----
-50098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8136
SELECT 73 + + 20 + + COUNT( - + 62 ) * - 35 + - + 68 AS col1, 67 * - ( + CAST( NULL AS SIGNED ) )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-8136
SELECT 73 + + 20 + + COUNT ( - + 62 ) * - 35 + - + 68 AS col1, 67 * - ( + CAST ( NULL AS INTEGER ) )
----
-10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8137
SELECT 60 * - CAST( NULL AS SIGNED ) AS col2, - 32 + + 61 * 55
----
NULL
3323

skipif mysql # not compatible
query II rowsort label-8137
SELECT 60 * - CAST ( NULL AS INTEGER ) AS col2, - 32 + + 61 * 55
----
NULL
3323

query II rowsort
SELECT + 61, 91 * + + 39 AS col2
----
61
3549

query I rowsort
SELECT ALL - 56 - + + 82 * 84
----
-6944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT + - CAST( + - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-8140
SELECT + - CAST ( + - 77 AS INTEGER )
----
77

query I rowsort
SELECT 98 + - 46
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL - + CAST( 20 AS SIGNED ) - - 5 * + 67 AS col0
----
315

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - + CAST ( 20 AS INTEGER ) - - 5 * + 67 AS col0
----
315

query I rowsort
SELECT 21 * - 97 col1
----
-2037

query II rowsort
SELECT + 68 AS col1, - 44
----
68
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT 67 + - MAX( - 33 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-8145
SELECT 67 + - MAX ( - 33 ) AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT + MIN( DISTINCT - + 83 ) * + + COUNT( * ) + + + CAST( - 74 AS SIGNED ) * 70 - COUNT( * ) + - 98 - - 48
----
-5314

skipif mysql # not compatible
query I rowsort label-8146
SELECT + MIN ( DISTINCT - + 83 ) * + + COUNT ( * ) + + + CAST ( - 74 AS INTEGER ) * 70 - COUNT ( * ) + - 98 - - 48
----
-5314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT CAST( NULL AS SIGNED ) + - 55 + + 65 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT CAST ( NULL AS INTEGER ) + - 55 + + 65 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 51 * 88 AS col1
----
4488

query II rowsort
SELECT 9 AS col1, 98
----
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT - - MIN( - - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - - MIN ( - - 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL 22 * + ( 31 ) * + - COUNT( * ) + 68
----
-614

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL 22 * + ( 31 ) * + - COUNT ( * ) + 68
----
-614

query I rowsort
SELECT 8 + - 28 AS col0
----
-20

query I rowsort
SELECT ALL - 39 + - + 90 + 88 AS col2
----
-41

query II rowsort
SELECT ALL - ( - 88 ) AS col0, - 6
----
88
-6

query I rowsort
SELECT NULLIF ( 19, + 45 + + 61 ) * - 62 AS col2
----
-1178

query I rowsort
SELECT ALL ( + - 24 ) + - ( - 49 ) AS col0
----
25

query I rowsort
SELECT ALL ( - 36 ) + + 9
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + 5 ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + 5 ) * + 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT 68 + + ( 60 ) AS col2, MIN( ALL - 21 ) * 61 AS col2
----
128
-1281

skipif mysql # not compatible
query II rowsort label-8159
SELECT 68 + + ( 60 ) AS col2, MIN ( ALL - 21 ) * 61 AS col2
----
128
-1281

query I rowsort
SELECT DISTINCT + 95 + - 17
----
78

query I rowsort
SELECT ALL - 77 + - 83
----
-160

query I rowsort
SELECT DISTINCT - 59 - 96 + - - 11 AS col1
----
-144

query I rowsort
SELECT ALL - 60 - + 17 AS col1
----
-77

query I rowsort
SELECT ( - 31 ) * + - 26
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8165
SELECT - 54 DIV + 14 AS col2, NULLIF ( + COUNT( + 7 ), - ( - - COUNT( * ) ) * - - 30 )
----
-3
1

skipif mysql # not compatible
query II rowsort label-8165
SELECT - 54 / + 14 AS col2, NULLIF ( + COUNT ( + 7 ), - ( - - COUNT ( * ) ) * - - 30 )
----
-3
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT - 77 DIV + + CAST( 18 AS SIGNED ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - 77 / + + CAST ( 18 AS INTEGER ) col2
----
-4

query I rowsort
SELECT ALL - - 31 * - - 12 - - 17 + - 61 AS col2
----
328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT - CAST( NULL AS SIGNED ) / - + COALESCE ( + COUNT( * ), - + ( + 82 ) * - 70 + + 12, ( - 28 ) + - 66 + - + COUNT( * ) * - NULLIF ( - 63, + 7 ), COUNT( * ) ) * + AVG ( DISTINCT 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT - CAST ( NULL AS INTEGER ) / - + COALESCE ( + COUNT ( * ), - + ( + 82 ) * - 70 + + 12, ( - 28 ) + - 66 + - + COUNT ( * ) * - NULLIF ( - 63, + 7 ), COUNT ( * ) ) * + AVG ( DISTINCT 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + + 53 * ( + - MIN( + 58 ) ) col2
----
-3074

skipif mysql # not compatible
query I rowsort label-8169
SELECT + + 53 * ( + - MIN ( + 58 ) ) col2
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + COUNT( + + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8170
SELECT + COUNT ( + + 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT + 43 * - + 4 - + 48 + + COUNT( * ) - CASE + + 70 WHEN + 18 THEN NULL WHEN - - COUNT( * ) THEN + 56 * + 2 ELSE NULL END + + COUNT( * ) / - 86 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT + 43 * - + 4 - + 48 + + COUNT ( * ) - CASE + + 70 WHEN + 18 THEN NULL WHEN - - COUNT ( * ) THEN + 56 * + 2 ELSE NULL END + + COUNT ( * ) / - 86 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8172
SELECT - COALESCE ( + COUNT( * ), - - 11 * - 48 ) * 4 - ( + 25 ) AS col0, 72
----
-29
72

skipif mysql # not compatible
query II rowsort label-8172
SELECT - COALESCE ( + COUNT ( * ), - - 11 * - 48 ) * 4 - ( + 25 ) AS col0, 72
----
-29
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8173
SELECT CAST( 46 AS SIGNED ) DIV - - CAST( - + 71 AS SIGNED ) + + 23 + COALESCE ( + + 34, - - 1 * - CASE 96 WHEN 94 * - + 57 + - CASE 35 WHEN + COUNT( ALL 18 ) DIV + COUNT( * ) THEN NULL WHEN + ( 20 ) THEN NULL WHEN - ( - 74 ) THEN + 52 + - 2 END THEN + 16 + 43 * + 39 ELSE 70 END * 15 )
----
57

skipif mysql # not compatible
query I rowsort label-8173
SELECT CAST ( 46 AS INTEGER ) / - - CAST ( - + 71 AS INTEGER ) + + 23 + COALESCE ( + + 34, - - 1 * - CASE 96 WHEN 94 * - + 57 + - CASE 35 WHEN + COUNT ( ALL 18 ) / + COUNT ( * ) THEN NULL WHEN + ( 20 ) THEN NULL WHEN - ( - 74 ) THEN + 52 + - 2 END THEN + 16 + 43 * + 39 ELSE 70 END * 15 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - - 59 * ( + COUNT( - 41 ) ) + - + 30 + 56 + - 74 * - 0 + + SUM( DISTINCT - 40 )
----
45

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - - 59 * ( + COUNT ( - 41 ) ) + - + 30 + 56 + - 74 * - 0 + + SUM ( DISTINCT - 40 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT + MIN( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + MIN ( DISTINCT - 86 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL + 37 * + CASE + 89 WHEN 93 THEN - 1 * - 6 + 65 * - 6 WHEN 99 + 35 * - + COUNT( * ) - - + 13 THEN NULL WHEN + 35 - 77 THEN NULL END + CAST( + 63 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + 37 * + CASE + 89 WHEN 93 THEN - 1 * - 6 + 65 * - 6 WHEN 99 + 35 * - + COUNT ( * ) - - + 13 THEN NULL WHEN + 35 - 77 THEN NULL END + CAST ( + 63 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT DISTINCT + 95, COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-8177
SELECT DISTINCT + 95, COUNT ( * ) AS col2
----
95
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT + 57 - - - 84 + + 24 DIV + - 42 + + - 54 DIV 98 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 57 - - - 84 + + 24 / + - 42 + + - 54 / 98 AS col2
----
-27

query II rowsort
SELECT + 22, - 45 * + 50 AS col2
----
22
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + 74 * + 33 * + COUNT( * ) * + + ( - COUNT( + 77 ) ) * - COUNT( * ) + - + 40 - - - 85 * + 35
----
-573

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 74 * + 33 * + COUNT ( * ) * + + ( - COUNT ( + 77 ) ) * - COUNT ( * ) + - + 40 - - - 85 * + 35
----
-573

query I rowsort
SELECT 71 * 63 - + 61 AS col2
----
4412

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT COUNT( * ) AS col0, - 5
----
1
-5

skipif mysql # not compatible
query II rowsort label-8182
SELECT COUNT ( * ) AS col0, - 5
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MIN( DISTINCT + - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MIN ( DISTINCT + - 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + CASE - + 49 WHEN MAX( 42 ) THEN + 5 * - + 53 * - 46 / - 36 WHEN - 3 * - 12 THEN NULL WHEN + 34 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT + CASE - + 49 WHEN MAX ( 42 ) THEN + 5 * - + 53 * - 46 / - 36 WHEN - 3 * - 12 THEN NULL WHEN + 34 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT MAX( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8185
SELECT MAX ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL COUNT( * ) * - - 65
----
65

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL COUNT ( * ) * - - 65
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT - 38 DIV COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 38 / COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT DISTINCT ( + - 95 ) col0
----
-95

query I rowsort
SELECT ALL 2 - - 45
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 8 - + - 60 + - 15 - 49 + CASE + 10 WHEN - ( + - 71 ) THEN NULL WHEN 56 THEN 44 END * NULLIF ( - 50, - - 3 ) - + ( + 25 - COUNT( * ) ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 8 - + - 60 + - 15 - 49 + CASE + 10 WHEN - ( + - 71 ) THEN NULL WHEN 56 THEN 44 END * NULLIF ( - 50, - - 3 ) - + ( + 25 - COUNT ( * ) ) * + 96
----
NULL

query I rowsort
SELECT + 84 * + 84
----
7056

query I rowsort
SELECT - 55 + - 50 AS col2
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-8193
SELECT 82 AS col2, + 10 - + + 21 DIV - + 90 AS col1
----
82
10

skipif mysql # not compatible
query II rowsort label-8193
SELECT 82 AS col2, + 10 - + + 21 / - + 90 AS col1
----
82
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8194
SELECT ALL 66 - + COUNT( * ) - CAST( + 6 AS SIGNED ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL 66 - + COUNT ( * ) - CAST ( + 6 AS INTEGER ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 72 + 86 AS col1
----
158

query II rowsort
SELECT ALL 1 AS col2, + 1 + - 82 AS col1
----
1
-81

query I rowsort
SELECT + 68 + 29
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT ALL 24 AS col2, 72 * COUNT( * ) + - COUNT( * ) + + SUM( 46 ) + - + COUNT( * )
----
24
116

skipif mysql # not compatible
query II rowsort label-8198
SELECT ALL 24 AS col2, 72 * COUNT ( * ) + - COUNT ( * ) + + SUM ( 46 ) + - + COUNT ( * )
----
24
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT ALL + 48 * - COUNT( * ) + COUNT( * ) DIV - 60 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + 48 * - COUNT ( * ) + COUNT ( * ) / - 60 AS col0
----
-48

query I rowsort
SELECT + + 43 * - + ( ( - 50 ) ) AS col1
----
2150

query I rowsort
SELECT ALL ( - + 56 )
----
-56

query II rowsort
SELECT ALL + 15, 78 + - 88 + - 43 AS col0
----
15
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + - 68 + COUNT( ALL + 87 ) + + 33 + + + 85 * - 55 * - 8 * + 25 * + 30
----
28049966

skipif mysql # not compatible
query I rowsort label-8203
SELECT + - 68 + COUNT ( ALL + 87 ) + + 33 + + + 85 * - 55 * - 8 * + 25 * + 30
----
28049966

query II rowsort
SELECT DISTINCT 91, 93 AS col0
----
91
93

query II rowsort
SELECT + 57 * + 78 * + 32, 18 col0
----
142272
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT - 27 * + COUNT( DISTINCT + 11 ) * + COALESCE ( + CAST( - 93 AS SIGNED ), + CASE + 72 WHEN - COUNT( * ) THEN NULL ELSE 26 * - + 49 + ( + + ( + 98 ) ) END )
----
2511

skipif mysql # not compatible
query I rowsort label-8206
SELECT - 27 * + COUNT ( DISTINCT + 11 ) * + COALESCE ( + CAST ( - 93 AS INTEGER ), + CASE + 72 WHEN - COUNT ( * ) THEN NULL ELSE 26 * - + 49 + ( + + ( + 98 ) ) END )
----
2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT - - 25 * - - MAX( ( + - 5 ) ) + + 71 * + 94 + - CAST( 53 AS SIGNED ) + - + NULLIF ( + - COUNT( * ), + 49 + + + COUNT( * ) + 59 * - 27 ) + 42 * ( MIN( DISTINCT 76 ) - - COUNT( * ) )
----
9731

skipif mysql # not compatible
query I rowsort label-8207
SELECT - - 25 * - - MAX ( ( + - 5 ) ) + + 71 * + 94 + - CAST ( 53 AS INTEGER ) + - + NULLIF ( + - COUNT ( * ), + 49 + + + COUNT ( * ) + 59 * - 27 ) + 42 * ( MIN ( DISTINCT 76 ) - - COUNT ( * ) )
----
9731

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + + NULLIF ( + + ( + + ( 64 ) ), - 73 + + - COUNT( * ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + + NULLIF ( + + ( + + ( 64 ) ), - 73 + + - COUNT ( * ) ) AS col2
----
64

query I rowsort
SELECT DISTINCT + 55 * 57 AS col0
----
3135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT + + 16 * - - CASE + - 14 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - + CASE - 60 WHEN 81 * - 49 THEN - 39 + + 67 ELSE NULL END + 25 / + 15 + + CAST( 41 AS SIGNED ) * + 38 THEN ( - 67 ) + 61 ELSE 59 END AS col1
----
944

skipif mysql # not compatible
query I rowsort label-8210
SELECT + + 16 * - - CASE + - 14 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - + CASE - 60 WHEN 81 * - 49 THEN - 39 + + 67 ELSE NULL END + 25 / + 15 + + CAST ( 41 AS INTEGER ) * + 38 THEN ( - 67 ) + 61 ELSE 59 END AS col1
----
944

query I rowsort
SELECT + 98 + - 26
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL - + ( + 76 ) / 99 * - CAST( NULL AS SIGNED ) + + + 28 / 58 * - 4 + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL - + ( + 76 ) / 99 * - CAST ( NULL AS INTEGER ) + + + 28 / 58 * - 4 + - 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8213
SELECT ALL + + 16 DIV + SUM( - + 64 ) + 65 * 15 + 1 * + MAX( 15 ) AS col0, + 40 DIV - 48
----
990
0

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL + + 16 / + SUM ( - + 64 ) + 65 * 15 + 1 * + MAX ( 15 ) AS col0, + 40 / - 48
----
990
0

query I rowsort
SELECT DISTINCT + 39 * - 69 AS col2
----
-2691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL - 16 * - - 95 * + + CAST( NULL AS SIGNED ) + - - 3 + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - 16 * - - 95 * + + CAST ( NULL AS INTEGER ) + - - 3 + - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT DISTINCT + CAST( - 89 AS SIGNED ) * + + 99 AS col0
----
-8811

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT + CAST ( - 89 AS INTEGER ) * + + 99 AS col0
----
-8811

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + ( + + MIN( ALL + - 61 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + ( + + MIN ( ALL + - 61 ) ) AS col2
----
-61

query I rowsort
SELECT - 50 * 85 + + 91
----
-4159

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8219
SELECT ALL - COALESCE ( - 59, - 32 ) * 24 + - 24 - - ( 90 ) + + CAST( + 69 AS DECIMAL ) / CASE WHEN NOT 47 >= ( 78 ) THEN 89 + + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - COALESCE ( - 59, - 32 ) * 24 + - 24 - - ( 90 ) + + CAST ( + 69 AS REAL ) / CASE WHEN NOT 47 >= ( 78 ) THEN 89 + + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 15 + + + ( 40 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL 81 * - 96 - - + CASE + COUNT( * ) WHEN + 61 THEN + 12 * - + COUNT( * ) * + 98 * - COUNT( * ) * 56 * + COALESCE ( 56, + ( 20 ) ) END + - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL 81 * - 96 - - + CASE + COUNT ( * ) WHEN + 61 THEN + 12 * - + COUNT ( * ) * + 98 * - COUNT ( * ) * 56 * + COALESCE ( 56, + ( 20 ) ) END + - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT DISTINCT - COUNT( * ) * + 91 AS col0, + 9 col1
----
-91
9

skipif mysql # not compatible
query II rowsort label-8222
SELECT DISTINCT - COUNT ( * ) * + 91 AS col0, + 9 col1
----
-91
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - 67 * SUM( + + COALESCE ( + 42, + 93 ) ) AS col1
----
-2814

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 67 * SUM ( + + COALESCE ( + 42, + 93 ) ) AS col1
----
-2814

query I rowsort
SELECT - 31 * + 3 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + COALESCE ( ( 0 ), + ( - 84 ), - - COUNT( * ) + + + 95 ) + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-8225
SELECT + COALESCE ( ( 0 ), + ( - 84 ), - - COUNT ( * ) + + + 95 ) + - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - MIN( - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8226
SELECT - MIN ( - 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT + + 73 DIV - 85 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + + 73 / - 85 + + + COUNT ( * )
----
1

query I rowsort
SELECT + 66 * + 39
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL - 77 * + CASE + - 29 WHEN - + 49 * + COUNT( DISTINCT + + 91 ) THEN 41 END + 71 * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL - 77 * + CASE + - 29 WHEN - + 49 * + COUNT ( DISTINCT + + 91 ) THEN 41 END + 71 * 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + CASE 2 WHEN - 41 THEN - 14 + + COUNT( * ) END / - 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT + CASE 2 WHEN - 41 THEN - 14 + + COUNT ( * ) END / - 52 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + - COUNT( * ) * 90 + - 77 col0
----
-167

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + - COUNT ( * ) * 90 + - 77 col0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT DISTINCT COALESCE ( + 67, - CASE 77 WHEN - 37 THEN NULL WHEN + COUNT( * ) / + 56 THEN - CASE - SUM( DISTINCT 18 ) WHEN - 35 THEN - - 14 WHEN + COUNT( * ) THEN + - 97 * COALESCE ( + 47, - 25 * 65 + - 1, - NULLIF ( 83, + 37 ) ) ELSE + MIN( 29 ) END WHEN 10 * - 46 THEN + 33 + - 96 WHEN 33 THEN NULL END ) col2
----
67

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT COALESCE ( + 67, - CASE 77 WHEN - 37 THEN NULL WHEN + COUNT ( * ) / + 56 THEN - CASE - SUM ( DISTINCT 18 ) WHEN - 35 THEN - - 14 WHEN + COUNT ( * ) THEN + - 97 * COALESCE ( + 47, - 25 * 65 + - 1, - NULLIF ( 83, + 37 ) ) ELSE + MIN ( 29 ) END WHEN 10 * - 46 THEN + 33 + - 96 WHEN 33 THEN NULL END ) col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8233
SELECT COUNT( * ) DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT COUNT ( * ) / 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT - ( - COUNT( * ) ) AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8234
SELECT - ( - COUNT ( * ) ) AS col1, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT ALL + 1 + + 99 col2
----
100

query I rowsort
SELECT DISTINCT 40 * + 90 AS col1
----
3600

query I rowsort
SELECT ALL - 32 + 35 + 48 + + 18 * - 17 * + 87 AS col0
----
-26571

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT CASE + + COALESCE ( + 26, - - COUNT( * ), - CASE 81 WHEN - + 96 THEN - - 89 * - - 4 WHEN - - 25 THEN + 14 WHEN 0 * - 2 THEN NULL END - + 85 - + 38 * 38 ) WHEN 88 * 21 THEN 63 ELSE - 52 + 44 END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8238
SELECT CASE + + COALESCE ( + 26, - - COUNT ( * ), - CASE 81 WHEN - + 96 THEN - - 89 * - - 4 WHEN - - 25 THEN + 14 WHEN 0 * - 2 THEN NULL END - + 85 - + 38 * 38 ) WHEN 88 * 21 THEN 63 ELSE - 52 + 44 END AS col1
----
-8

query I rowsort
SELECT ALL + - 59 * - 52 AS col2
----
3068

query I rowsort
SELECT DISTINCT 97 + 85 - 66 * 94 + - + 13
----
-6035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT NULLIF ( + - 15, COALESCE ( COALESCE ( + CAST( - 47 AS SIGNED ), + - 17 + - 74 - - - ( + 82 ) - + COALESCE ( + 42, - + 20 - + 20 - + 35 * 96 ) * + 85 * 91, 87 ), 98 ) + - AVG ( ALL - 41 ) * 95 ) * + 21
----
-315

skipif mysql # not compatible
query I rowsort label-8241
SELECT NULLIF ( + - 15, COALESCE ( COALESCE ( + CAST ( - 47 AS INTEGER ), + - 17 + - 74 - - - ( + 82 ) - + COALESCE ( + 42, - + 20 - + 20 - + 35 * 96 ) * + 85 * 91, 87 ), 98 ) + - AVG ( ALL - 41 ) * 95 ) * + 21
----
-315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT ALL COALESCE ( + COUNT( * ), - + 92 ) * + 77 DIV - 91 + + ( - + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL COALESCE ( + COUNT ( * ), - + 92 ) * + 77 / - 91 + + ( - + 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT - MIN( DISTINCT 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - MIN ( DISTINCT 67 )
----
-67

query I rowsort
SELECT 62 * + 80
----
4960

query I rowsort
SELECT ALL + 18 * - CASE - - 56 WHEN 72 + 44 * 39 THEN 94 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT ALL 91 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL 91 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 87 * + 50
----
4350

query I rowsort
SELECT ALL + 19 * + - 10
----
-190

onlyif mysql # aggregate syntax: 
query II rowsort label-8249
SELECT + 0 AS col2, 60 + - - COUNT( * ) + + - CASE - 78 WHEN - 92 THEN ( - - 87 ) ELSE - COUNT( - ( + 26 ) ) END
----
0
62

skipif mysql # not compatible
query II rowsort label-8249
SELECT + 0 AS col2, 60 + - - COUNT ( * ) + + - CASE - 78 WHEN - 92 THEN ( - - 87 ) ELSE - COUNT ( - ( + 26 ) ) END
----
0
62

query I rowsort
SELECT ALL + 46 * 64 * + + 83 AS col2
----
244352

query I rowsort
SELECT + 64 * 55 AS col0
----
3520

query I rowsort
SELECT ALL + 37 * + NULLIF ( 76, - - 6 )
----
2812

query II rowsort
SELECT ALL + 85 AS col2, - 13
----
85
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + ( 0 ) + + + 52 + CASE - 60 WHEN + COUNT( * ) * - + 50 + 75 + - 49 * + - 52 THEN NULL ELSE + 80 * + 95 + + COUNT( * ) * + NULLIF ( COUNT( * ), 89 * + 27 ) END col1
----
7653

skipif mysql # not compatible
query I rowsort label-8254
SELECT + ( 0 ) + + + 52 + CASE - 60 WHEN + COUNT ( * ) * - + 50 + 75 + - 49 * + - 52 THEN NULL ELSE + 80 * + 95 + + COUNT ( * ) * + NULLIF ( COUNT ( * ), 89 * + 27 ) END col1
----
7653

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT COUNT( 57 )
----
1

skipif mysql # not compatible
query I rowsort label-8255
SELECT COUNT ( 57 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8256
SELECT DISTINCT + CASE WHEN NOT - COUNT( * ) = + + 82 THEN - 89 - 10 DIV + 22 + + 18 END + + 53 - + - 90 AS col0, 75, + + 85 AS col1
----
72
75
85

skipif mysql # not compatible
query III rowsort label-8256
SELECT DISTINCT + CASE WHEN NOT - COUNT ( * ) = + + 82 THEN - 89 - 10 / + 22 + + 18 END + + 53 - + - 90 AS col0, 75, + + 85 AS col1
----
72
75
85

query I rowsort
SELECT DISTINCT + 94 + 37
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-8258
SELECT - COALESCE ( COUNT( * ), COUNT( * ) * COALESCE ( + ( + 0 ), MAX( 0 ) + + 60, 80 ) ) * - 33, 40 AS col1
----
33
40

skipif mysql # not compatible
query II rowsort label-8258
SELECT - COALESCE ( COUNT ( * ), COUNT ( * ) * COALESCE ( + ( + 0 ), MAX ( 0 ) + + 60, 80 ) ) * - 33, 40 AS col1
----
33
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL - COUNT( ALL + - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL - COUNT ( ALL + - 10 )
----
-1

query I rowsort
SELECT 70 * + + 95
----
6650

query I rowsort
SELECT + 39 * - + 36
----
-1404

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL 57 DIV - 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL 57 / - 35 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( + NULLIF ( - 2, - 91 - ( 55 ) * - + 59 / - + 65 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL 3 * - COALESCE ( COUNT( * ), 27 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL 3 * - COALESCE ( COUNT ( * ), 27 ) AS col2
----
-3

query I rowsort
SELECT + 54 * + - 99 - 92
----
-5438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT - CASE + - 41 WHEN - COUNT( * ) THEN + + CAST( - 94 AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN + + COUNT( * ) - 33 THEN - 81 ELSE NULL END * 32 + + 30 + + - 62 - - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - CASE + - 41 WHEN - COUNT ( * ) THEN + + CAST ( - 94 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) - 33 THEN - 81 ELSE NULL END * 32 + + 30 + + - 62 - - 62 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT ALL 50 * - - CAST( NULL AS SIGNED ) AS col0, - 46 * 51 AS col0
----
NULL
-2346

skipif mysql # not compatible
query II rowsort label-8267
SELECT ALL 50 * - - CAST ( NULL AS INTEGER ) AS col0, - 46 * 51 AS col0
----
NULL
-2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT COALESCE ( + + 54, 3 ) * + COUNT( * ) DIV + 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT COALESCE ( + + 54, 3 ) * + COUNT ( * ) / + 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COALESCE ( - + COUNT( * ), + 38, + 10 ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-8269
SELECT COALESCE ( - + COUNT ( * ), + 38, + 10 ) + + 37
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8270
SELECT MIN( ALL - 0 ) AS col1, + COALESCE ( - 53, CAST( NULL AS SIGNED ), - 28 ) AS col2
----
0
-53

skipif mysql # not compatible
query II rowsort label-8270
SELECT MIN ( ALL - 0 ) AS col1, + COALESCE ( - 53, CAST ( NULL AS INTEGER ), - 28 ) AS col2
----
0
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT COUNT( + 18 ) * + COUNT( * ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-8271
SELECT COUNT ( + 18 ) * + COUNT ( * ) + 97
----
98

query I rowsort
SELECT 93 - 30 AS col1
----
63

query II rowsort
SELECT DISTINCT + 0 AS col2, 10
----
0
10

query I rowsort
SELECT ALL + NULLIF ( + 55, 52 )
----
55

query II rowsort
SELECT ALL + 42 col0, 83 AS col1
----
42
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + NULLIF ( + - COUNT( * ), + 7 - + COUNT( * ) + 73 ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-8276
SELECT + NULLIF ( + - COUNT ( * ), + 7 - + COUNT ( * ) + 73 ) + 32
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT + 78 DIV - + ( ( - 42 ) ) * - ( COUNT( * ) ) + 98
----
97

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 78 / - + ( ( - 42 ) ) * - ( COUNT ( * ) ) + 98
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + 95 + + MAX( ALL - 75 ) + - 81 - 23 - 92 - + 80
----
-256

skipif mysql # not compatible
query I rowsort label-8278
SELECT + 95 + + MAX ( ALL - 75 ) + - 81 - 23 - 92 - + 80
----
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT + - 11 DIV - ( - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT + - 11 / - ( - 94 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8280
SELECT - - COALESCE ( COUNT( * ), + 35 ) + - 69 + SUM( 3 ), - 44 AS col2
----
-65
-44

skipif mysql # not compatible
query II rowsort label-8280
SELECT - - COALESCE ( COUNT ( * ), + 35 ) + - 69 + SUM ( 3 ), - 44 AS col2
----
-65
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8281
SELECT - - 87 col2, + 90 * - - 11 + + COALESCE ( + 82, + 88 * COUNT( * ) + - 63 * + ( + COUNT( * ) ) - ( COUNT( * ) ) + - + 48 ) + + 11 DIV 22 * - 9 col2
----
87
1072

skipif mysql # not compatible
query II rowsort label-8281
SELECT - - 87 col2, + 90 * - - 11 + + COALESCE ( + 82, + 88 * COUNT ( * ) + - 63 * + ( + COUNT ( * ) ) - ( COUNT ( * ) ) + - + 48 ) + + 11 / 22 * - 9 col2
----
87
1072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT - + 31 * + CAST( NULL AS SIGNED ) * + + 92 * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT - + 31 * + CAST ( NULL AS INTEGER ) * + + 92 * + - 31
----
NULL

query II rowsort
SELECT ALL + - 93 + + NULLIF ( - 81, 30 * COALESCE ( - + 38, - + 8, 28 + - ( 14 ), + 63 ) - - - 23 ) col0, + 71 AS col0
----
-174
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8284
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * - 60
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-8284
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 60
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8285
SELECT - 71 AS col2, COUNT( * ) + CAST( - 25 AS SIGNED ) * + 55 + + - 51
----
-71
-1425

skipif mysql # not compatible
query II rowsort label-8285
SELECT - 71 AS col2, COUNT ( * ) + CAST ( - 25 AS INTEGER ) * + 55 + + - 51
----
-71
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 34 + + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 34 + + - COUNT ( * )
----
33

query I rowsort
SELECT DISTINCT NULLIF ( - - 10, 91 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL - - 5 + - - 48 + - - 35 + + + 84 + 51 * - COUNT( * ) + 32 * - - ( - 8 )
----
-135

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - - 5 + - - 48 + - - 35 + + + 84 + 51 * - COUNT ( * ) + 32 * - - ( - 8 )
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT ALL + COALESCE ( + MIN( + - 55 ), 58, + - 35 * - + 45 ) AS col2, 52 + + + 59 * - 10 + + COUNT( * )
----
-55
-537

skipif mysql # not compatible
query II rowsort label-8289
SELECT ALL + COALESCE ( + MIN ( + - 55 ), 58, + - 35 * - + 45 ) AS col2, 52 + + + 59 * - 10 + + COUNT ( * )
----
-55
-537

query I rowsort
SELECT - - 4 * 7 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - - COUNT( - 79 ) * + ( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8291
SELECT - - COUNT ( - 79 ) * + ( 72 )
----
72

query I rowsort
SELECT - - NULLIF ( 40, - 68 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT COUNT( + + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT COUNT ( + + 1 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL - COUNT( * ) / + 72 * + CASE - 70 WHEN - 27 * - NULLIF ( - - NULLIF ( + 95, 66 * + 57 + + 22 + NULLIF ( + 43, + 5 + + + 32 + 21 / - COALESCE ( 22, - 80, 63 * + ( CAST( + 99 AS SIGNED ) ) ) ) + - 44 ), 47 ) THEN 66 END + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - COUNT ( * ) / + 72 * + CASE - 70 WHEN - 27 * - NULLIF ( - - NULLIF ( + 95, 66 * + 57 + + 22 + NULLIF ( + 43, + 5 + + + 32 + 21 / - COALESCE ( 22, - 80, 63 * + ( CAST ( + 99 AS INTEGER ) ) ) ) + - 44 ), 47 ) THEN 66 END + 96 AS col0
----
NULL

query I rowsort
SELECT + 37 * + 27
----
999

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT - NULLIF ( - + MAX( - - 31 ), 51 )
----
31

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT - NULLIF ( - + MAX ( - - 31 ), 51 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8297
SELECT DISTINCT - 36 * - 36 * + 54, CAST( 66 AS SIGNED ) DIV + 39 * COUNT( * ) - + 70 AS col1
----
69984
-69

skipif mysql # not compatible
query II rowsort label-8297
SELECT DISTINCT - 36 * - 36 * + 54, CAST ( 66 AS INTEGER ) / + 39 * COUNT ( * ) - + 70 AS col1
----
69984
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8298
SELECT ALL - ( - + MAX( 63 ) ) DIV - COUNT( DISTINCT - 13 ) + 43
----
-20

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - ( - + MAX ( 63 ) ) / - COUNT ( DISTINCT - 13 ) + 43
----
-20

query II rowsort
SELECT - 92 * - 92, + 34 AS col2
----
8464
34

query I rowsort
SELECT DISTINCT - 45 * - - 87 * 78 AS col2
----
-305370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8301
SELECT + CASE 94 WHEN - 23 * 41 * - - 97 THEN - + ( + 46 ) WHEN + + CAST( - 52 AS SIGNED ) THEN + 66 * - + COUNT( * ) * + 25 WHEN - 15 THEN NULL END + + - 30 / - + 32 AS col1, 85 col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8301
SELECT + CASE 94 WHEN - 23 * 41 * - - 97 THEN - + ( + 46 ) WHEN + + CAST ( - 52 AS INTEGER ) THEN + 66 * - + COUNT ( * ) * + 25 WHEN - 15 THEN NULL END + + - 30 / - + 32 AS col1, 85 col1
----
NULL
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT - 56 DIV + 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 56 / + 34 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8303
SELECT + 62 * + COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-8303
SELECT + 62 * + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8304
SELECT DISTINCT 3 DIV + 74 AS col1, + MAX( + - CAST( NULL AS SIGNED ) ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8304
SELECT DISTINCT 3 / + 74 AS col1, + MAX ( + - CAST ( NULL AS INTEGER ) ) col1
----
0
NULL

query I rowsort
SELECT DISTINCT + ( 18 ) AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT + CAST( NULL AS SIGNED ) * + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT + CAST ( NULL AS INTEGER ) * + - 57
----
NULL

query I rowsort
SELECT ALL 49 * - - 18 + 4
----
886

query I rowsort
SELECT DISTINCT 18 * 29 + - 98 - + + 94 AS col2
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL + COUNT( DISTINCT + + 67 ) * + ( + 46 ) + - 62 + 0 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + COUNT ( DISTINCT + + 67 ) * + ( + 46 ) + - 62 + 0 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT CASE + 30 WHEN + - NULLIF ( - 34, + 34 ) * + - SUM( - 93 ) + - - 16 THEN 96 + - CASE 8 WHEN - ( 33 ) - 53 - - 85 / - ( + 63 ) * COUNT( * ) THEN COUNT( * ) WHEN 94 + COUNT( * ) * 50 THEN NULL END + - 31 * 63 ELSE + 55 + 62 * + 78 END
----
4891

skipif mysql # not compatible
query I rowsort label-8310
SELECT CASE + 30 WHEN + - NULLIF ( - 34, + 34 ) * + - SUM ( - 93 ) + - - 16 THEN 96 + - CASE 8 WHEN - ( 33 ) - 53 - - 85 / - ( + 63 ) * COUNT ( * ) THEN COUNT ( * ) WHEN 94 + COUNT ( * ) * 50 THEN NULL END + - 31 * 63 ELSE + 55 + 62 * + 78 END
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT - 66 * + MAX( + + 9 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-8311
SELECT - 66 * + MAX ( + + 9 ) AS col2
----
-594

query I rowsort
SELECT + 72 * + 58 AS col0
----
4176

query I rowsort
SELECT DISTINCT - 88 * 89 + 89
----
-7743

query I rowsort
SELECT ALL - 52 * + 12 + + 18 AS col0
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + 22 - - + SUM( ALL - + 82 )
----
-60

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 22 - - + SUM ( ALL - + 82 )
----
-60

query II rowsort
SELECT + 91 * 97 AS col0, + ( - 89 ) AS col1
----
8827
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8317
SELECT DISTINCT + - MAX( - - 33 ), 38 - 27 DIV - + 2 * - COUNT( * ) AS col1
----
-33
25

skipif mysql # not compatible
query II rowsort label-8317
SELECT DISTINCT + - MAX ( - - 33 ), 38 - 27 / - + 2 * - COUNT ( * ) AS col1
----
-33
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT DISTINCT + 27 * - 3 + + 94, ( + ( + - CASE - 99 WHEN MIN( - - 75 ) * + CASE - 28 WHEN + 12 * - - COUNT( * ) - 47 + + 51 + - 18 THEN 59 ELSE 65 * - 58 + + ( + 30 ) * + 20 END / 20 THEN COUNT( ALL 54 ) / - 42 + 19 WHEN 6 THEN NULL END ) ) AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8318
SELECT DISTINCT + 27 * - 3 + + 94, ( + ( + - CASE - 99 WHEN MIN ( - - 75 ) * + CASE - 28 WHEN + 12 * - - COUNT ( * ) - 47 + + 51 + - 18 THEN 59 ELSE 65 * - 58 + + ( + 30 ) * + 20 END / 20 THEN COUNT ( ALL 54 ) / - 42 + 19 WHEN 6 THEN NULL END ) ) AS col2
----
13
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT COALESCE ( - 95, - 61 + 50 DIV + + 8 - + - 34 + 10 )
----
-95

skipif mysql # not compatible
query I rowsort label-8319
SELECT COALESCE ( - 95, - 61 + 50 / + + 8 - + - 34 + 10 )
----
-95

query I rowsort
SELECT ALL + 14 + 46 * 98
----
4522

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL COUNT( - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL COUNT ( - 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT + + 39 + - ( COUNT( * ) ) + - + COUNT( * ) * - - 52
----
-14

skipif mysql # not compatible
query I rowsort label-8322
SELECT + + 39 + - ( COUNT ( * ) ) + - + COUNT ( * ) * - - 52
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + 24 * - SUM( DISTINCT - 43 ) * + 82 * 19 * - CASE COUNT( * ) WHEN - 96 + + + ( - COUNT( * ) ) THEN + 35 / + ( - 41 ) + - - 10 END + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT + 24 * - SUM ( DISTINCT - 43 ) * + 82 * 19 * - CASE COUNT ( * ) WHEN - 96 + + + ( - COUNT ( * ) ) THEN + 35 / + ( - 41 ) + - - 10 END + - + 18
----
NULL

query II rowsort
SELECT - 94 * 58 AS col1, 51 AS col2
----
-5452
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + 38 + + - COUNT( * ) + 60
----
97

skipif mysql # not compatible
query I rowsort label-8325
SELECT + 38 + + - COUNT ( * ) + 60
----
97

query I rowsort
SELECT - + 84 * + 85 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + 51 + + - COUNT( * ) * COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8327
SELECT + 51 + + - COUNT ( * ) * COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT - 51 * + 86
----
-4386

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT ALL MIN( - + 80 ) AS col0, 47
----
-80
47

skipif mysql # not compatible
query II rowsort label-8329
SELECT ALL MIN ( - + 80 ) AS col0, 47
----
-80
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + + 81 * + + COUNT( * ) AS col0, 53
----
81
53

skipif mysql # not compatible
query II rowsort label-8330
SELECT + + 81 * + + COUNT ( * ) AS col0, 53
----
81
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL COUNT( ALL + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL COUNT ( ALL + 60 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 39 - - 8
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8333
SELECT - 68 + - 7 DIV - MIN( 34 ), + 31 AS col2
----
-68
31

skipif mysql # not compatible
query II rowsort label-8333
SELECT - 68 + - 7 / - MIN ( 34 ), + 31 AS col2
----
-68
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - NULLIF ( + 79, + 16 ) + + CASE + - 29 WHEN - 17 * + - 61 * 64 THEN + 73 WHEN + MAX( - + 47 ) THEN NULL END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT - NULLIF ( + 79, + 16 ) + + CASE + - 29 WHEN - 17 * + - 61 * 64 THEN + 73 WHEN + MAX ( - + 47 ) THEN NULL END * 67
----
NULL

query I rowsort
SELECT - 38 * - + 63
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT - 14 * + MAX( DISTINCT + 73 )
----
-1022

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - 14 * + MAX ( DISTINCT + 73 )
----
-1022

query II rowsort
SELECT ALL + 87 + 33 + + + 41 col2, + ( + 1 )
----
161
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT 77 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8338
SELECT 77 / 48 AS col0
----
1

query I rowsort
SELECT ALL - 87 + + 0 * 66
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT + CAST( NULL AS SIGNED ) * + 33 * ( - 39 ) + + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT + CAST ( NULL AS INTEGER ) * + 33 * ( - 39 ) + + + 98
----
NULL

query I rowsort
SELECT ALL - 97 * + + 30
----
-2910

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT 67 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT 67 / + 79 AS col2
----
0

query II rowsort
SELECT ALL - 24 + - ( - 38 ) AS col1, 25 * + 92 AS col2
----
14
2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT 83 + + + 52 + - 58 * + CAST( + - 93 AS SIGNED ) AS col2
----
5529

skipif mysql # not compatible
query I rowsort label-8344
SELECT 83 + + + 52 + - 58 * + CAST ( + - 93 AS INTEGER ) AS col2
----
5529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT + 5 * - 96 + 68 DIV + 92 + 2 + + + 54 + - 65 DIV COUNT( * ) * + + 48
----
-3544

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 5 * - 96 + 68 / + 92 + 2 + + + 54 + - 65 / COUNT ( * ) * + + 48
----
-3544

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT + 75 - 67 DIV - ( 78 )
----
75

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 75 - 67 / - ( 78 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT - 67 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - 67 / - 91 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT + 18 * 59 / - 25 * - 73 * - 34 * + 21 + - CAST( NULL AS SIGNED ) + - - 59 + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 18 * 59 / - 25 * - 73 * - 34 * + 21 + - CAST ( NULL AS INTEGER ) + - - 59 + + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - 18 - + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - 18 - + COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT - 42 + - 40 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8351
SELECT 96 + - CAST( + 53 AS SIGNED ) AS col2, 50 + 31
----
43
81

skipif mysql # not compatible
query II rowsort label-8351
SELECT 96 + - CAST ( + 53 AS INTEGER ) AS col2, 50 + 31
----
43
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT NULLIF ( 20, - 12 ), 23 + - COALESCE ( COUNT( * ), - + 84 * + - 91 + 43, + 5 + 63 + - 51 * SUM( 13 ) ) AS col0
----
20
22

skipif mysql # not compatible
query II rowsort label-8352
SELECT NULLIF ( 20, - 12 ), 23 + - COALESCE ( COUNT ( * ), - + 84 * + - 91 + 43, + 5 + 63 + - 51 * SUM ( 13 ) ) AS col0
----
20
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT - NULLIF ( - COALESCE ( - MAX( + + 38 ), + 2 ), - + 82 / + MIN( ALL - 21 ) + - 51 * + AVG ( DISTINCT - 13 ) + - 43 ) * - + 86 * + 93 + 25 / + 94 + + 45 * + 74 + CAST( NULL AS SIGNED ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT - NULLIF ( - COALESCE ( - MAX ( + + 38 ), + 2 ), - + 82 / + MIN ( ALL - 21 ) + - 51 * + AVG ( DISTINCT - 13 ) + - 43 ) * - + 86 * + 93 + 25 / + 94 + + 45 * + 74 + CAST ( NULL AS INTEGER ) + 30
----
NULL

query II rowsort
SELECT 6 AS col2, 56
----
6
56

query I rowsort
SELECT 76 * 1 col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT + 92 * - - 84 + ( + + CAST( + - 26 AS SIGNED ) ) - 71 / - 41 - + - 37 + - 41 * - 25 * + 27 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT + 92 * - - 84 + ( + + CAST ( + - 26 AS INTEGER ) ) - 71 / - 41 - + - 37 + - 41 * - 25 * + 27 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - MAX( - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8357
SELECT - MAX ( - 37 ) AS col2
----
37

query I rowsort
SELECT ALL ( + - 47 ) AS col2
----
-47

query II rowsort
SELECT DISTINCT 2 AS col0, + NULLIF ( 97, + 48 )
----
2
97

query I rowsort
SELECT ALL - 22 * + 96 + + 12 * + 49 + - - 16 - - 26 * 14 col2
----
-1144

query II rowsort
SELECT 61 AS col1, 46
----
61
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + ( + + NULLIF ( 21, + COUNT( * ) * - 57 * 46 - - 81 / + 34 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + ( + + NULLIF ( 21, + COUNT ( * ) * - 57 * 46 - - 81 / + 34 ) )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT 92 DIV - 16 * + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT 92 / - 16 * + COUNT ( * ) AS col0
----
-5

query I rowsort
SELECT ALL 27 * 62
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT 61 - + COALESCE ( - 53, + + CASE - - 45 WHEN + COUNT( * ) / + - 39 THEN 56 WHEN 70 THEN NULL ELSE - COUNT( * ) END ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8365
SELECT 61 - + COALESCE ( - 53, + + CASE - - 45 WHEN + COUNT ( * ) / + - 39 THEN 56 WHEN 70 THEN NULL ELSE - COUNT ( * ) END ) AS col2
----
114

query II rowsort
SELECT 68 * - 20, 31 AS col0
----
-1360
31

query I rowsort
SELECT ALL 91 + - 26 AS col2
----
65

query I rowsort
SELECT DISTINCT + 55 + - 7 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8369
SELECT 93 + - COALESCE ( + - 24, + - 44 * - ( - CAST( + + 87 AS SIGNED ) ), - 91 DIV 45 * - 5, - 97 ) * + COUNT( * ) + - 11 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-8369
SELECT 93 + - COALESCE ( + - 24, + - 44 * - ( - CAST ( + + 87 AS INTEGER ) ), - 91 / 45 * - 5, - 97 ) * + COUNT ( * ) + - 11 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT 3 + - 17 DIV 9 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8370
SELECT 3 + - 17 / 9 AS col0
----
2

query I rowsort
SELECT CASE + 44 WHEN + + 96 THEN NULL WHEN - 19 THEN NULL WHEN + 1 THEN + - 4 * 78 WHEN + - 19 * - 89 + + 51 + - - 55 THEN + 59 END * - - 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT 56 DIV + 6 + 11 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8372
SELECT 56 / + 6 + 11 AS col1
----
20

query I rowsort
SELECT ALL - ( + 87 ) - - 74 * + 49 + 42
----
3581

query I rowsort
SELECT ALL - 69 - - - ( + - CASE 91 WHEN - 23 THEN NULL ELSE - 10 * + + 66 - + 6 END ) + - ( 43 ) + 55 + - 77
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + + NULLIF ( - 9, + + COALESCE ( - COUNT( * ), + 86 ) + + + 39 ) * + + 45 AS col0
----
-405

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + + NULLIF ( - 9, + + COALESCE ( - COUNT ( * ), + 86 ) + + + 39 ) * + + 45 AS col0
----
-405

query I rowsort
SELECT ALL + 77 * - + 91 * + 60
----
-420420

query I rowsort
SELECT + + 67 col1
----
67

query I rowsort
SELECT ALL - 86 * - 62
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT 14 * - - COUNT( 86 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8379
SELECT 14 * - - COUNT ( 86 ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT ALL + + COUNT( * ) DIV - 64 + + + 6 + - 47 * ( - + ( + 79 ) ) + + 61 + + COUNT( * ) AS col1
----
3781

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + + COUNT ( * ) / - 64 + + + 6 + - 47 * ( - + ( + 79 ) ) + + 61 + + COUNT ( * ) AS col1
----
3781

query I rowsort
SELECT + 33 + 33 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL COUNT( - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL COUNT ( - 28 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8383
SELECT DISTINCT + ( 71 ) AS col2, AVG ( - + 73 ) + - - CASE - - COUNT( * ) WHEN - - 75 THEN NULL WHEN CASE + - NULLIF ( - 31, 63 ) WHEN 52 - - 77 THEN + - ( - - 25 ) ELSE COUNT( * ) + + 0 * 87 + - - 71 END * COUNT( * ) THEN - 71 - 83 WHEN + 8 * - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8383
SELECT DISTINCT + ( 71 ) AS col2, AVG ( - + 73 ) + - - CASE - - COUNT ( * ) WHEN - - 75 THEN NULL WHEN CASE + - NULLIF ( - 31, 63 ) WHEN 52 - - 77 THEN + - ( - - 25 ) ELSE COUNT ( * ) + + 0 * 87 + - - 71 END * COUNT ( * ) THEN - 71 - 83 WHEN + 8 * - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - 56 - + ( ( + COUNT( + 80 ) ) ) + + 17 * - 2 * + - 61
----
2017

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 56 - + ( ( + COUNT ( + 80 ) ) ) + + 17 * - 2 * + - 61
----
2017

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT 62 + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8385
SELECT 62 + + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT ALL + 32 * + + 70 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT SUM( DISTINCT + - 35 ) * + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8387
SELECT SUM ( DISTINCT + - 35 ) * + - COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT - COUNT( * ) AS col1, - COUNT( * ) * - - 47
----
-1
-47

skipif mysql # not compatible
query II rowsort label-8388
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) * - - 47
----
-1
-47

query I rowsort
SELECT - 33 + NULLIF ( + 56, 12 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT - COUNT( * ) + + ( - COUNT( * ) ) * + - 19
----
18

skipif mysql # not compatible
query I rowsort label-8390
SELECT - COUNT ( * ) + + ( - COUNT ( * ) ) * + - 19
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT + COALESCE ( + 68, - 72 ) DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-8391
SELECT + COALESCE ( + 68, - 72 ) / 58
----
1

query I rowsort
SELECT + 86 + ( + 91 )
----
177

query I rowsort
SELECT ALL - 69 + - 27
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT + 14 * - COALESCE ( - CAST( + ( COUNT( * ) ) AS SIGNED ), - 89 )
----
14

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + 14 * - COALESCE ( - CAST ( + ( COUNT ( * ) ) AS INTEGER ), - 89 )
----
14

query I rowsort
SELECT ALL NULLIF ( - 8, + 31 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - COUNT( ALL - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-8396
SELECT - COUNT ( ALL - 29 )
----
-1

query I rowsort
SELECT DISTINCT 44 + + 55 + + 70
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT DISTINCT 3 + + + 80 * - 44 DIV + COUNT( * )
----
-3517

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT 3 + + + 80 * - 44 / + COUNT ( * )
----
-3517

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT 79 + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT 79 + - COUNT ( * )
----
78

query II rowsort
SELECT ALL + 57, 42 AS col2
----
57
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT + 13 + - + 28 + 0 DIV + 43 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 13 + - + 28 + 0 / + 43 AS col0
----
-15

query I rowsort
SELECT DISTINCT - ( + 99 ) * - - 90 AS col1
----
-8910

query I rowsort
SELECT ALL + 60 * 1 - + 61 - + + 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT CASE + 54 WHEN - COUNT( ALL - - 8 ) THEN COUNT( * ) * - 15 WHEN - 9 THEN NULL END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT CASE + 54 WHEN - COUNT ( ALL - - 8 ) THEN COUNT ( * ) * - 15 WHEN - 9 THEN NULL END * + 11
----
NULL

query I rowsort
SELECT DISTINCT + + 54 * + 42 - + + 75 AS col0
----
2193

query I rowsort
SELECT + - 35 + - 45 + + 47
----
-33

query I rowsort
SELECT + - 77 * + + 87 - + 56
----
-6755

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - - CASE + 39 WHEN + - 81 THEN NULL WHEN + + 18 * COUNT( * ) + - + 50 - - 63 / 35 THEN - 40 + - COUNT( * ) * 80 END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT - - CASE + 39 WHEN + - 81 THEN NULL WHEN + + 18 * COUNT ( * ) + - + 50 - - 63 / 35 THEN - 40 + - COUNT ( * ) * 80 END * - 22
----
NULL

query II rowsort
SELECT ALL + NULLIF ( + 17, - 20 ) AS col2, + 11 col1
----
17
11

query I rowsort
SELECT - 17 + 8 * + + 60 col1
----
463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL CAST( NULL AS SIGNED ) / 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL CAST ( NULL AS INTEGER ) / 34 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - - MIN( 92 ) + + COUNT( * ) + 77 - 19
----
151

skipif mysql # not compatible
query I rowsort label-8412
SELECT - - MIN ( 92 ) + + COUNT ( * ) + 77 - 19
----
151

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8413
SELECT DISTINCT - 80 * + 13 + ( - 22 ) * - + 60 * - + CAST( NULL AS DECIMAL ) AS col1, - 53 * + + 62
----
NULL
-3286

skipif mysql # not compatible
query II rowsort label-8413
SELECT DISTINCT - 80 * + 13 + ( - 22 ) * - + 60 * - + CAST ( NULL AS REAL ) AS col1, - 53 * + + 62
----
NULL
-3286

query I rowsort
SELECT + - ( - - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL 74 * ( + 62 ) * + + 63 * + - MAX( ALL - - 10 ) + 65 AS col2
----
-2890375

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 74 * ( + 62 ) * + + 63 * + - MAX ( ALL - - 10 ) + 65 AS col2
----
-2890375

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT MAX( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT MAX ( ALL 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT - - 75 * CAST( - + 48 AS SIGNED )
----
-3600

skipif mysql # not compatible
query I rowsort label-8417
SELECT - - 75 * CAST ( - + 48 AS INTEGER )
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT COUNT( * ) AS col0, COUNT( * ) + - - 77 + + 87 + + - 13 * - 36
----
1
633

skipif mysql # not compatible
query II rowsort label-8418
SELECT COUNT ( * ) AS col0, COUNT ( * ) + - - 77 + + 87 + + - 13 * - 36
----
1
633

query I rowsort
SELECT ALL ( + + 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT ALL - 73 + + CAST( NULL AS SIGNED ) + + 64 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - 73 + + CAST ( NULL AS INTEGER ) + + 64 * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL - 0 + - - 1 + - COUNT( * ) + - 21 + - 63 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - 0 + - - 1 + - COUNT ( * ) + - 21 + - 63 AS col1
----
-84

query I rowsort
SELECT DISTINCT + 46 * + - 30
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT ALL + COUNT( * ) + + 84 + - ( - + 42 ) * - + 52 * - COUNT( ALL + + CAST( - 62 AS SIGNED ) )
----
2269

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + COUNT ( * ) + + 84 + - ( - + 42 ) * - + 52 * - COUNT ( ALL + + CAST ( - 62 AS INTEGER ) )
----
2269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT ALL - 73 + - CAST( + + 73 AS SIGNED )
----
-146

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - 73 + - CAST ( + + 73 AS INTEGER )
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8425
SELECT + 73 + - 34 + + COALESCE ( - COUNT( * ), CAST( - COUNT( + 86 ) AS SIGNED ) * CASE + 88 WHEN + 46 THEN - 17 * 69 END, 48 ) DIV 10 - - MAX( - - 79 ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 73 + - 34 + + COALESCE ( - COUNT ( * ), CAST ( - COUNT ( + 86 ) AS INTEGER ) * CASE + 88 WHEN + 46 THEN - 17 * 69 END, 48 ) / 10 - - MAX ( - - 79 ) AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - NULLIF ( + COUNT( * ), - 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8426
SELECT - NULLIF ( + COUNT ( * ), - 38 ) AS col2
----
-1

query I rowsort
SELECT ALL - 38 - - + 10 * - 92 + + 99 * 76 * - ( 88 ) * + 89 + - 32 * - - 93 * 52 AS col0
----
-59083678

query I rowsort
SELECT - NULLIF ( - 94, - - 56 * + 26 + - 50 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT - CAST( NULL AS SIGNED ) - + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT - CAST ( NULL AS INTEGER ) - + - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8430
SELECT + 26 * - COUNT( + CAST( + 0 AS SIGNED ) ) AS col0, + 72 AS col1
----
-26
72

skipif mysql # not compatible
query II rowsort label-8430
SELECT + 26 * - COUNT ( + CAST ( + 0 AS INTEGER ) ) AS col0, + 72 AS col1
----
-26
72

query I rowsort
SELECT DISTINCT + 93 * - 87
----
-8091

query I rowsort
SELECT ALL ( + ( 68 ) )
----
68

query I rowsort
SELECT DISTINCT + 84 * - ( 63 ) AS col1
----
-5292

query I rowsort
SELECT - 72 - 81 - - + 93 * - 24
----
-2385

query II rowsort
SELECT ALL 0 AS col0, + 23
----
0
23

query I rowsort
SELECT + 90 * 19
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8437
SELECT DISTINCT + 30 AS col1, COUNT( * ) - - CAST( - 5 AS SIGNED )
----
30
-4

skipif mysql # not compatible
query II rowsort label-8437
SELECT DISTINCT + 30 AS col1, COUNT ( * ) - - CAST ( - 5 AS INTEGER )
----
30
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT + COUNT( * ) / - ( + 12 ) + + COALESCE ( + 94, 28 * 46 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT + COUNT ( * ) / - ( + 12 ) + + COALESCE ( + 94, 28 * 46 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8439
SELECT + - 50 * 47 * + 46 + - - 61 AS col2, 61 + + - 62 DIV + 74 col2
----
-108039
61

skipif mysql # not compatible
query II rowsort label-8439
SELECT + - 50 * 47 * + 46 + - - 61 AS col2, 61 + + - 62 / + 74 col2
----
-108039
61

query I rowsort
SELECT - - NULLIF ( - ( - 62 ), + 62 ) / + - 42 - + 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT DISTINCT 0 DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT 0 / 14
----
0

query II rowsort
SELECT + 75 AS col0, + 81 AS col1
----
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT + 49 DIV 77 * - + 74
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 49 / 77 * - + 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT + 88 * - + NULLIF ( - 8, + 34 * + - 30 + + 58 + - - CAST( + 38 AS SIGNED ) ) AS col2
----
704

skipif mysql # not compatible
query I rowsort label-8444
SELECT + 88 * - + NULLIF ( - 8, + 34 * + - 30 + + 58 + - - CAST ( + 38 AS INTEGER ) ) AS col2
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT DISTINCT + 67 DIV - COUNT( DISTINCT - - 2 )
----
-67

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + 67 / - COUNT ( DISTINCT - - 2 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL + 3 * ( - - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + 3 * ( - - COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT + 15 DIV 96 * 82 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT + 15 / 96 * 82 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT ALL + - 60 DIV - 80 + + + COALESCE ( + 95, + - 3 * - ( + + 3 ) - - 0 ) + + 37
----
132

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + - 60 / - 80 + + + COALESCE ( + 95, + - 3 * - ( + + 3 ) - - 0 ) + + 37
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL + 90 * - 43 * - 8 + + - 80 + - + 58 * + COUNT( 40 ) * + 25 * - + 68 * + 81
----
8017480

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + 90 * - 43 * - 8 + + - 80 + - + 58 * + COUNT ( 40 ) * + 25 * - + 68 * + 81
----
8017480

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT + COUNT( * ) col1, - 52 + - 39 + SUM( - 39 )
----
1
-130

skipif mysql # not compatible
query II rowsort label-8450
SELECT + COUNT ( * ) col1, - 52 + - 39 + SUM ( - 39 )
----
1
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8451
SELECT - ( + 43 ) * - 7 + CASE 53 WHEN 90 THEN + - 10 ELSE NULL END + 46 - - AVG ( 45 ) + - - 61 * 32 * - COUNT( + 5 ), MIN( DISTINCT - 38 ) DIV CASE + + 26 WHEN 41 THEN ( - - COALESCE ( ( + NULLIF ( + 64, - 83 * 33 ) ), - COUNT( * ) * 89 ) ) ELSE 14 + - 60 END AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8451
SELECT - ( + 43 ) * - 7 + CASE 53 WHEN 90 THEN + - 10 ELSE NULL END + 46 - - AVG ( 45 ) + - - 61 * 32 * - COUNT ( + 5 ), MIN ( DISTINCT - 38 ) / CASE + + 26 WHEN 41 THEN ( - - COALESCE ( ( + NULLIF ( + 64, - 83 * 33 ) ), - COUNT ( * ) * 89 ) ) ELSE 14 + - 60 END AS col1
----
NULL
0

query II rowsort
SELECT 86 AS col0, 82 AS col0
----
86
82

query I rowsort
SELECT 89 * + 25 * 90
----
200250

query II rowsort
SELECT + 43, 12 AS col0
----
43
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL COALESCE ( + ( - 37 ), + + 33 ) + ( - CAST( NULL AS SIGNED ) ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL COALESCE ( + ( - 37 ), + + 33 ) + ( - CAST ( NULL AS INTEGER ) ) * - 82
----
NULL

query I rowsort
SELECT 71 + - 93 * + 56
----
-5137

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - SUM( DISTINCT - 4 ) + - - 9 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - SUM ( DISTINCT - 4 ) + - - 9 AS col1
----
13

query I rowsort
SELECT ALL 68 + + 87
----
155

query II rowsort
SELECT 61 + + + 95 + + - 75 + + COALESCE ( - 32, + 43, - 49 ) AS col1, + 73
----
49
73

query I rowsort
SELECT ALL - 69 * + 86 * - 20
----
118680

onlyif mysql # DIV for integer division: 
query II rowsort label-8461
SELECT 67 * - - 83 AS col2, - 20 DIV - 8 AS col1
----
5561
2

skipif mysql # not compatible
query II rowsort label-8461
SELECT 67 * - - 83 AS col2, - 20 / - 8 AS col1
----
5561
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8462
SELECT ( - + AVG ( - CAST( NULL AS DECIMAL ) ) ) + + 74 + + 7 - + 96 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ( - + AVG ( - CAST ( NULL AS REAL ) ) ) + + 74 + + 7 - + 96 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT 6 + - COALESCE ( + COUNT( * ), - 57 * + 54 DIV - 25 )
----
5

skipif mysql # not compatible
query I rowsort label-8463
SELECT 6 + - COALESCE ( + COUNT ( * ), - 57 * + 54 / - 25 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT DISTINCT - CASE + ( + + CAST( NULL AS SIGNED ) ) WHEN 52 THEN - 29 WHEN - 15 + - - CAST( NULL AS SIGNED ) THEN NULL END * 32 * - ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT - CASE + ( + + CAST ( NULL AS INTEGER ) ) WHEN 52 THEN - 29 WHEN - 15 + - - CAST ( NULL AS INTEGER ) THEN NULL END * 32 * - ( COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 15 + + + COUNT( * ) - - COUNT( * ) + 93 + + + 99
----
209

skipif mysql # not compatible
query I rowsort label-8465
SELECT 15 + + + COUNT ( * ) - - COUNT ( * ) + 93 + + + 99
----
209

query I rowsort
SELECT 86 + + 96 + + - 89 * + - ( + + 73 ) AS col1
----
6679

query I rowsort
SELECT 22 * 31 col1
----
682

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8468
SELECT ALL 2 - + + 32 AS col2, 62 DIV 51 * - + 41 DIV + 40 * + COUNT( * )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL 2 - + + 32 AS col2, 62 / 51 * - + 41 / + 40 * + COUNT ( * )
----
-30
-1

query I rowsort
SELECT 5 + + - 72 + - ( - - 30 ) * + 68 - - - NULLIF ( - 13, 4 ) * 19 AS col2
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT - 25 - - - MIN( DISTINCT 50 )
----
-75

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - 25 - - - MIN ( DISTINCT 50 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8471
SELECT 31 + - CASE - ( + + COALESCE ( + - 60, + - 37 ) ) WHEN + 78 THEN CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END - + - 38 + + 5 + + + 11 DIV 34 + ( + 44 ) * - 89
----
-3841

skipif mysql # not compatible
query I rowsort label-8471
SELECT 31 + - CASE - ( + + COALESCE ( + - 60, + - 37 ) ) WHEN + 78 THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END - + - 38 + + 5 + + + 11 / 34 + ( + 44 ) * - 89
----
-3841

query I rowsort
SELECT + 11 + - - 79
----
90

query I rowsort
SELECT - 20 * - 75 AS col1
----
1500

query I rowsort
SELECT ALL - 99 * + + 13
----
-1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT + 59 + CASE - + 87 WHEN + + ( + 41 ) + - 96 + + 94 * 42 THEN - + NULLIF ( - COUNT( * ), 35 * 32 - 6 ) ELSE NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT + 59 + CASE - + 87 WHEN + + ( + 41 ) + - 96 + + 94 * 42 THEN - + NULLIF ( - COUNT ( * ), 35 * 32 - 6 ) ELSE NULL END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8476
SELECT - + 87 DIV + - ( + 30 ) + 45 + + 28 col2, 29 * + 71 * - 26
----
75
-53534

skipif mysql # not compatible
query II rowsort label-8476
SELECT - + 87 / + - ( + 30 ) + 45 + + 28 col2, 29 * + 71 * - 26
----
75
-53534

query I rowsort
SELECT ALL - 55 * NULLIF ( - 34, + - 72 )
----
1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL - COALESCE ( - - 31, - 43, - 0 + + NULLIF ( ( + - COALESCE ( 13, CASE 62 WHEN + 47 THEN 27 END * - ( - COALESCE ( + 62, - CAST( NULL AS SIGNED ) * CAST( + NULLIF ( + COUNT( * ), - 48 + + - 79 + - COALESCE ( 10, + AVG ( DISTINCT + 1 ) ) ) AS SIGNED ) + + 29, + 8 + - 60, + 94 ) ) * + 12 + 47 ) ), - 59 ) + - CASE 43 WHEN + 11 + + 16 THEN - 7 END * - 76 ) + + 3 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - COALESCE ( - - 31, - 43, - 0 + + NULLIF ( ( + - COALESCE ( 13, CASE 62 WHEN + 47 THEN 27 END * - ( - COALESCE ( + 62, - CAST ( NULL AS INTEGER ) * CAST ( + NULLIF ( + COUNT ( * ), - 48 + + - 79 + - COALESCE ( 10, + AVG ( DISTINCT + 1 ) ) ) AS INTEGER ) + + 29, + 8 + - 60, + 94 ) ) * + 12 + 47 ) ), - 59 ) + - CASE 43 WHEN + 11 + + 16 THEN - 7 END * - 76 ) + + 3 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT DISTINCT - COUNT( * ) + - 76, ( - ( + 48 ) ) + + - 46 AS col1
----
-77
-94

skipif mysql # not compatible
query II rowsort label-8479
SELECT DISTINCT - COUNT ( * ) + - 76, ( - ( + 48 ) ) + + - 46 AS col1
----
-77
-94

query I rowsort
SELECT ALL - - ( - 60 ) + + - 89
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT 99 + 37 DIV + - 95
----
99

skipif mysql # not compatible
query I rowsort label-8481
SELECT 99 + 37 / + - 95
----
99

query I rowsort
SELECT - 99 * - + 87 + + 89 AS col2
----
8702

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ( - 44 ) - + + COUNT( * ) + + 71
----
26

skipif mysql # not compatible
query I rowsort label-8483
SELECT ( - 44 ) - + + COUNT ( * ) + + 71
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - CASE - 67 WHEN - 45 * + 46 * + + 94 + 28 + + 94 THEN - + 88 * 52 - - - 95 WHEN + - COUNT( * ) * 57 * 83 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - CASE - 67 WHEN - 45 * + 46 * + + 94 + 28 + + 94 THEN - + 88 * 52 - - - 95 WHEN + - COUNT ( * ) * 57 * 83 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL + ( - + 11 ) + + MIN( - + 10 )
----
-21

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + ( - + 11 ) + + MIN ( - + 10 )
----
-21

query I rowsort
SELECT DISTINCT 27 - - + 84 AS col2
----
111

query I rowsort
SELECT ALL 86 * - 90 col1
----
-7740

query I rowsort
SELECT ALL 62 - 47
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL 21 * + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL 21 * + + COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT 10 * 30 + - ( - + 32 ) + COALESCE ( - COUNT( * ), + ( 4 ) ) AS col1
----
331

skipif mysql # not compatible
query I rowsort label-8490
SELECT 10 * 30 + - ( - + 32 ) + COALESCE ( - COUNT ( * ), + ( 4 ) ) AS col1
----
331

query I rowsort
SELECT 12 * - 83
----
-996

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT DISTINCT 24, 7 + - MIN( DISTINCT 5 ) col2
----
24
2

skipif mysql # not compatible
query II rowsort label-8492
SELECT DISTINCT 24, 7 + - MIN ( DISTINCT 5 ) col2
----
24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT 73 - - 8 + + 31 - 58 * - - 26 * + - 68 * + - ( + COUNT( * ) ) + + 69 + 38
----
-102325

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT 73 - - 8 + + 31 - 58 * - - 26 * + - 68 * + - ( + COUNT ( * ) ) + + 69 + 38
----
-102325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8494
SELECT - COUNT( * ) AS col1, 83 DIV 17 AS col1
----
-1
4

skipif mysql # not compatible
query II rowsort label-8494
SELECT - COUNT ( * ) AS col1, 83 / 17 AS col1
----
-1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT - COUNT( * ) * + - 7
----
7

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - COUNT ( * ) * + - 7
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8496
SELECT ALL 72 DIV - CASE + + 97 WHEN - 70 THEN NULL ELSE + 13 + + + 44 * COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL 72 / - CASE + + 97 WHEN - 70 THEN NULL ELSE + 13 + + + 44 * COUNT ( * ) END col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT CAST( MAX( DISTINCT 37 ) AS SIGNED ) + + 49
----
86

skipif mysql # not compatible
query I rowsort label-8497
SELECT CAST ( MAX ( DISTINCT 37 ) AS INTEGER ) + + 49
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8498
SELECT ALL 98 AS col0, CAST( NULL AS SIGNED ) + + 42
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8498
SELECT ALL 98 AS col0, CAST ( NULL AS INTEGER ) + + 42
----
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 47 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT 47 / 54
----
0

query I rowsort
SELECT ALL + + 35 + + 95 AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT ALL 92 col2, + COUNT( * ) + - COALESCE ( - 75, + - 79 * - MAX( + 53 ) )
----
92
76

skipif mysql # not compatible
query II rowsort label-8501
SELECT ALL 92 col2, + COUNT ( * ) + - COALESCE ( - 75, + - 79 * - MAX ( + 53 ) )
----
92
76

query I rowsort
SELECT 34 - - 31 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8503
SELECT DISTINCT COUNT( * ) + COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) - + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL + ( ( - + 14 ) ) AS col2, 68 * + + 20
----
-14
1360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8505
SELECT CAST( NULL AS DECIMAL ) / - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT CAST ( NULL AS REAL ) / - + 99
----
NULL

query I rowsort
SELECT ALL - - 47 + - 64 + 43
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT ALL + - 68 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + - 68 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT 90 DIV 9 DIV + 80 * 58
----
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT 90 / 9 / + 80 * 58
----
0

query I rowsort
SELECT 48 * - - 47 - + - 30
----
2286

query I rowsort
SELECT - ( 1 ) * - - 65
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8511
SELECT ALL 55 * + 87 + CAST( NULL AS DECIMAL ) * - 74 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL 55 * + 87 + CAST ( NULL AS REAL ) * - 74 * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8512
SELECT 41, ( + ( + - CASE - CAST( NULL AS SIGNED ) WHEN - 66 THEN NULL WHEN + + 83 / + COUNT( * ) THEN NULL ELSE - ( - 92 ) END ) ) - 64 / + CAST( NULL AS SIGNED ) AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-8512
SELECT 41, ( + ( + - CASE - CAST ( NULL AS INTEGER ) WHEN - 66 THEN NULL WHEN + + 83 / + COUNT ( * ) THEN NULL ELSE - ( - 92 ) END ) ) - 64 / + CAST ( NULL AS INTEGER ) AS col1
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL - SUM( + COALESCE ( 96, - - 62 ) ) * 73 * ( CASE + 53 WHEN - 6 + + - 91 * 35 THEN - 15 * - 85 * + 86 - + 79 + 71 * + 71 ELSE + - COUNT( * ) + - + 23 + COALESCE ( - 62, 69, - - CASE ( 25 ) WHEN - 95 THEN 42 + + 2 WHEN - COUNT( * ) THEN 33 ELSE NULL END ) * - 13 END ) + 3 AS col0
----
-5480253

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - SUM ( + COALESCE ( 96, - - 62 ) ) * 73 * ( CASE + 53 WHEN - 6 + + - 91 * 35 THEN - 15 * - 85 * + 86 - + 79 + 71 * + 71 ELSE + - COUNT ( * ) + - + 23 + COALESCE ( - 62, 69, - - CASE ( 25 ) WHEN - 95 THEN 42 + + 2 WHEN - COUNT ( * ) THEN 33 ELSE NULL END ) * - 13 END ) + 3 AS col0
----
-5480253

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT + 61, + COALESCE ( + 6, + COUNT( * ) ) - - 1 AS col0
----
61
7

skipif mysql # not compatible
query II rowsort label-8514
SELECT + 61, + COALESCE ( + 6, + COUNT ( * ) ) - - 1 AS col0
----
61
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8515
SELECT DISTINCT + - CAST( - - ( + 80 ) AS SIGNED ) AS col0, COUNT( * ) * + 52
----
-80
52

skipif mysql # not compatible
query II rowsort label-8515
SELECT DISTINCT + - CAST ( - - ( + 80 ) AS INTEGER ) AS col0, COUNT ( * ) * + 52
----
-80
52

query II rowsort
SELECT DISTINCT 55 * - 70 * 75 * + 51 + - 53 + 97 AS col0, - 78 AS col0
----
-14726206
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8517
SELECT ALL + 49 col1, 95 + + + 69 * - 85 + 80 * - 94 + - 23 - ( COUNT( * ) )
----
49
-13314

skipif mysql # not compatible
query II rowsort label-8517
SELECT ALL + 49 col1, 95 + + + 69 * - 85 + 80 * - 94 + - 23 - ( COUNT ( * ) )
----
49
-13314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8518
SELECT DISTINCT + 69 * MAX( ALL - 6 ) DIV + 32, + NULLIF ( 53, - - 62 ) col2
----
-12
53

skipif mysql # not compatible
query II rowsort label-8518
SELECT DISTINCT + 69 * MAX ( ALL - 6 ) / + 32, + NULLIF ( 53, - - 62 ) col2
----
-12
53

query I rowsort
SELECT ALL + ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8520
SELECT + 71 * + - 32 DIV COUNT( * ) - + COUNT( * ), 3 AS col0
----
-2273
3

skipif mysql # not compatible
query II rowsort label-8520
SELECT + 71 * + - 32 / COUNT ( * ) - + COUNT ( * ), 3 AS col0
----
-2273
3

query I rowsort
SELECT + 50 * + - 82
----
-4100

query I rowsort
SELECT - 21 + - 52
----
-73

query I rowsort
SELECT + NULLIF ( + + 33, - 0 ) col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT + 14 DIV - - NULLIF ( - 55, - 97 + - 88 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT + 14 / - - NULLIF ( - 55, - 97 + - 88 ) col2
----
0

query I rowsort
SELECT DISTINCT + 25 * - - 9
----
225

query I rowsort
SELECT + 49 * + 59 AS col2
----
2891

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - COUNT( * ) * + + 30 - - 78 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8527
SELECT - COUNT ( * ) * + + 30 - - 78 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8528
SELECT - CAST( 5 AS SIGNED ) DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CAST ( 5 AS INTEGER ) / + 91 AS col0
----
0

query I rowsort
SELECT + 43 + + CASE - 8 WHEN - 87 THEN NULLIF ( 12, + 6 ) + 81 WHEN + 66 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 55 * 67
----
-3685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT MAX( DISTINCT 1 ) + COALESCE ( - 22, - SUM( + 63 ) DIV - + 10 )
----
-21

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT MAX ( DISTINCT 1 ) + COALESCE ( - 22, - SUM ( + 63 ) / - + 10 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + 95 + + MIN( - + 82 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 95 + + MIN ( - + 82 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT + 7 + ( + + 78 ) * + COUNT( * ), - 6 AS col2
----
85
-6

skipif mysql # not compatible
query II rowsort label-8533
SELECT + 7 + ( + + 78 ) * + COUNT ( * ), - 6 AS col2
----
85
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-8534
SELECT DISTINCT + 29 + + 61 AS col0, 32 * + 56 * 76 + - 21 + - + 0 DIV + - 80 col0
----
90
136171

skipif mysql # not compatible
query II rowsort label-8534
SELECT DISTINCT + 29 + + 61 AS col0, 32 * + 56 * 76 + - 21 + - + 0 / + - 80 col0
----
90
136171

query I rowsort
SELECT + + NULLIF ( + 56, - 7 ) + + + 67 * + 61 * - + 79 AS col0
----
-322817

query II rowsort
SELECT ALL 29 + + 47, 16 AS col2
----
76
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT CASE - + COUNT( * ) WHEN + - 95 THEN - - 15 ELSE + 53 + - 54 + + - ( - - COUNT( * ) ) END
----
-2

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + - 95 THEN - - 15 ELSE + 53 + - 54 + + - ( - - COUNT ( * ) ) END
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT ALL + 16 + 87 AS col1, 72 * - - ( - COUNT( * ) ) * + 9
----
103
-648

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL + 16 + 87 AS col1, 72 * - - ( - COUNT ( * ) ) * + 9
----
103
-648

query I rowsort
SELECT ALL - 58 + + - 69 col0
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT + + 41 + - 72 AS col1, COUNT( * ) + COUNT( * )
----
-31
2

skipif mysql # not compatible
query II rowsort label-8540
SELECT + + 41 + - 72 AS col1, COUNT ( * ) + COUNT ( * )
----
-31
2

query I rowsort
SELECT - + COALESCE ( 2, + + 13 )
----
-2

query I rowsort
SELECT ALL + 97 + 60 * - 22
----
-1223

query I rowsort
SELECT - 84 + 69 - - 42 - + 29 + 60 * + 38 * 28 * + 33 AS col2
----
2106718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT MIN( - 74 ) DIV - - 35 - + + 88 + + + MIN( ALL - 27 ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT MIN ( - 74 ) / - - 35 - + + 88 + + + MIN ( ALL - 27 ) AS col0
----
-117

query II rowsort
SELECT - 98 * + + 98, 2 * + 81 * - - 37 AS col0
----
-9604
5994

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT + - 62 * + + CASE WHEN NOT NULL IS NULL THEN 63 ELSE 31 END + + 60 DIV + - 31
----
-1923

skipif mysql # not compatible
query I rowsort label-8546
SELECT + - 62 * + + CASE WHEN NOT NULL IS NULL THEN 63 ELSE 31 END + + 60 / + - 31
----
-1923

query I rowsort
SELECT DISTINCT + ( + 3 ) col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT - 12 DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - 12 / - - 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT DISTINCT + COUNT( * ) AS col2, + 82
----
1
82

skipif mysql # not compatible
query II rowsort label-8549
SELECT DISTINCT + COUNT ( * ) AS col2, + 82
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT - NULLIF ( + CAST( - - 48 AS SIGNED ), - 85 ) * MIN( DISTINCT + ( + 45 ) ) + - 18 AS col1
----
-2178

skipif mysql # not compatible
query I rowsort label-8550
SELECT - NULLIF ( + CAST ( - - 48 AS INTEGER ), - 85 ) * MIN ( DISTINCT + ( + 45 ) ) + - 18 AS col1
----
-2178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT - 9 + + COUNT( * ) DIV - COUNT( COALESCE ( 28, - 90 ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8551
SELECT - 9 + + COUNT ( * ) / - COUNT ( COALESCE ( 28, - 90 ) ) AS col0
----
-10

query I rowsort
SELECT DISTINCT + 38 * 61 AS col0
----
2318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL + NULLIF ( + + 35, + + 84 * - + 27 ) * + AVG ( ALL 87 ) * - + CAST( NULL AS SIGNED ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + NULLIF ( + + 35, + + 84 * - + 27 ) * + AVG ( ALL 87 ) * - + CAST ( NULL AS INTEGER ) + - 52
----
NULL

query I rowsort
SELECT - 73 * - - 99 AS col0
----
-7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + COUNT( * ) * 61 * - CAST( - + 57 AS SIGNED ) AS col1
----
3477

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + COUNT ( * ) * 61 * - CAST ( - + 57 AS INTEGER ) AS col1
----
3477

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT DISTINCT + 44, 92 - 18 * - 57 * + + 63 - MAX( DISTINCT 9 ) AS col2
----
44
64721

skipif mysql # not compatible
query II rowsort label-8556
SELECT DISTINCT + 44, 92 - 18 * - 57 * + + 63 - MAX ( DISTINCT 9 ) AS col2
----
44
64721

query I rowsort
SELECT DISTINCT + COALESCE ( + + 20, - - 30 ) * - 91 AS col2
----
-1820

query I rowsort
SELECT - 67 + 74
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT - CAST( NULL AS SIGNED ) * - 49 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT - CAST ( NULL AS INTEGER ) * - 49 / 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT - 66 * + 67 + + COALESCE ( CAST( NULL AS SIGNED ), 52 * COUNT( * ) ) * + + 21 + - NULLIF ( - 60, + 8 ) * + ( + 46 )
----
-570

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 66 * + 67 + + COALESCE ( CAST ( NULL AS INTEGER ), 52 * COUNT ( * ) ) * + + 21 + - NULLIF ( - 60, + 8 ) * + ( + 46 )
----
-570

query I rowsort
SELECT NULLIF ( + - 9, + 79 * + + 47 * - ( 41 ) + ( - 13 ) )
----
-9

query I rowsort
SELECT NULLIF ( + 65, - 43 * 55 * + 58 + - - 17 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT - 7 * CAST( ( - 44 ) AS SIGNED ) AS col1
----
308

skipif mysql # not compatible
query I rowsort label-8563
SELECT - 7 * CAST ( ( - 44 ) AS INTEGER ) AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT COUNT( ALL 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8564
SELECT COUNT ( ALL 67 ) AS col1
----
1

query I rowsort
SELECT ALL + 76 * + - 27 + + + 10 col0
----
-2042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - 67 + + + 85 - - CAST( + 67 AS SIGNED ) + + 55 * - - 38
----
2175

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - 67 + + + 85 - - CAST ( + 67 AS INTEGER ) + + 55 * - - 38
----
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT 53, COUNT( + 72 ) * + - 86 * 57 AS col0
----
53
-4902

skipif mysql # not compatible
query II rowsort label-8567
SELECT 53, COUNT ( + 72 ) * + - 86 * 57 AS col0
----
53
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + MIN( DISTINCT 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8568
SELECT + MIN ( DISTINCT 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT 33 * - COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8569
SELECT 33 * - COUNT ( * ) AS col0
----
-33

query II rowsort
SELECT 12 + - 32 * - 30, 3 AS col0
----
972
3

query I rowsort
SELECT ALL 29 - 51
----
-22

query I rowsort
SELECT DISTINCT ( + - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL + 10 - MAX( DISTINCT - + 23 ) + - + 88
----
-55

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + 10 - MAX ( DISTINCT - + 23 ) + - + 88
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT + 95 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT + 95 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL + CASE - 0 WHEN - - 60 * - - NULLIF ( + + NULLIF ( + + 1, + 1 + COALESCE ( + 87, ( - + 84 ) ) ), COUNT( * ) * + - 51 ) THEN - 54 END / - - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + CASE - 0 WHEN - - 60 * - - NULLIF ( + + NULLIF ( + + 1, + 1 + COALESCE ( + 87, ( - + 84 ) ) ), COUNT ( * ) * + - 51 ) THEN - 54 END / - - 73 AS col2
----
NULL

query I rowsort
SELECT + - ( + - 83 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT + CAST( + + 92 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8577
SELECT + CAST ( + + 92 AS INTEGER ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL 74 * + - ( - COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 74 * + - ( - COUNT ( * ) )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT 80 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT 80 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - COUNT( ALL + 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - COUNT ( ALL + 43 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL 62 * + ( - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL 62 * + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT 5 * + + 63 * 57 AS col1
----
17955

query II rowsort
SELECT + 19, - 65 AS col0
----
19
-65

query I rowsort
SELECT 15 * + 66
----
990

query II rowsort
SELECT + 74, - 17 col0
----
74
-17

query I rowsort
SELECT 31 * 71
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - 87 * + 22 + COUNT( * ) AS col1
----
-1913

skipif mysql # not compatible
query I rowsort label-8587
SELECT - 87 * + 22 + COUNT ( * ) AS col1
----
-1913

query I rowsort
SELECT ALL + 16 + - + 16 col2
----
0

query I rowsort
SELECT - 24 * 95 + + 32
----
-2248

query I rowsort
SELECT DISTINCT - ( - + 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT 30 + - COALESCE ( + - ( + - 70 ), - 2 * + 35 - + + COUNT( * ) + + 48 * 85, 15, - CAST( NULL AS SIGNED ) ) + + 75 + + - 56 * - 76
----
4291

skipif mysql # not compatible
query I rowsort label-8591
SELECT 30 + - COALESCE ( + - ( + - 70 ), - 2 * + 35 - + + COUNT ( * ) + + 48 * 85, 15, - CAST ( NULL AS INTEGER ) ) + + 75 + + - 56 * - 76
----
4291

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8592
SELECT 17 AS col1, 0 * - - COUNT( * ) * + 27 DIV - - 99
----
17
0

skipif mysql # not compatible
query II rowsort label-8592
SELECT 17 AS col1, 0 * - - COUNT ( * ) * + 27 / - - 99
----
17
0

query I rowsort
SELECT 90 * - 51 + - 97 * + ( 45 )
----
-8955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL + 17 + + + NULLIF ( + + CAST( NULL AS SIGNED ), + - 33 * + COUNT( * ) ) * ( + - ( + 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + 17 + + + NULLIF ( + + CAST ( NULL AS INTEGER ), + - 33 * + COUNT ( * ) ) * ( + - ( + 41 ) )
----
NULL

query I rowsort
SELECT ALL - 22 * + - 0
----
0

query I rowsort
SELECT + 64 + 33 - + 83 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL + COUNT( * ) + - 23 + 17 * - 32 * 72 AS col1
----
-39190

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL + COUNT ( * ) + - 23 + 17 * - 32 * 72 AS col1
----
-39190

query II rowsort
SELECT - 39 AS col1, 46 + - - 43
----
-39
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + 77 + + - 44 * - - COUNT( * ) * + 22 + 38
----
-853

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 77 + + - 44 * - - COUNT ( * ) * + 22 + 38
----
-853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL - - 74 - 35 * + + CAST( NULL AS SIGNED ) * + 34 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - - 74 - 35 * + + CAST ( NULL AS INTEGER ) * + 34 + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - SUM( 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8601
SELECT - SUM ( 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT - ( 66 ) + + 65 + + ( + + CAST( - 72 AS SIGNED ) ) * 99 AS col0
----
-7129

skipif mysql # not compatible
query I rowsort label-8602
SELECT - ( 66 ) + + 65 + + ( + + CAST ( - 72 AS INTEGER ) ) * 99 AS col0
----
-7129

query I rowsort
SELECT ALL - - 82 - + 16 + + 12 + + - 73
----
5

query I rowsort
SELECT + 53 * + 86
----
4558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT - - CASE 94 WHEN + - COUNT( * ) THEN NULL WHEN CAST( - 26 AS SIGNED ) THEN NULL WHEN + - SUM( DISTINCT - - 4 ) * - + 36 + SUM( ALL 15 ) * - 71 / + MIN( DISTINCT ( + 9 ) ) + + 83 + - + 81 + + 41 * + + COUNT( ( 25 ) ) * + 23 THEN + - 26 * 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - - CASE 94 WHEN + - COUNT ( * ) THEN NULL WHEN CAST ( - 26 AS INTEGER ) THEN NULL WHEN + - SUM ( DISTINCT - - 4 ) * - + 36 + SUM ( ALL 15 ) * - 71 / + MIN ( DISTINCT ( + 9 ) ) + + 83 + - + 81 + + 41 * + + COUNT ( ( 25 ) ) * + 23 THEN + - 26 * 38 END
----
NULL

query I rowsort
SELECT DISTINCT - - 7 * 3
----
21

query I rowsort
SELECT DISTINCT - + 56 * + 31 AS col0
----
-1736

query I rowsort
SELECT ALL ( + 89 ) * - 23 AS col1
----
-2047

query I rowsort
SELECT 37 * 70 + + 35
----
2625

query II rowsort
SELECT 28 AS col1, - 5 AS col0
----
28
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - COUNT( + 98 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - COUNT ( + 98 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL SUM( DISTINCT + - 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL SUM ( DISTINCT + - 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT COUNT( * ) + - NULLIF ( - 47, 86 ) - + + 23
----
25

skipif mysql # not compatible
query I rowsort label-8613
SELECT COUNT ( * ) + - NULLIF ( - 47, 86 ) - + + 23
----
25

query I rowsort
SELECT ALL - 47 * - - 61 * ( 80 ) AS col2
----
-229360

query I rowsort
SELECT ALL - COALESCE ( 47, - 37 )
----
-47

query I rowsort
SELECT ALL 44 * + 27
----
1188

query I rowsort
SELECT ALL + 31 * + + 80 + 53 AS col2
----
2533

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT SUM( ALL 65 ) AS col2, - 70 AS col1
----
65
-70

skipif mysql # not compatible
query II rowsort label-8618
SELECT SUM ( ALL 65 ) AS col2, - 70 AS col1
----
65
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - COUNT( * ) * COUNT( DISTINCT + - 27 ) * - + 53 * + ( + ( 41 ) ) + + 73
----
2246

skipif mysql # not compatible
query I rowsort label-8619
SELECT - COUNT ( * ) * COUNT ( DISTINCT + - 27 ) * - + 53 * + ( + ( 41 ) ) + + 73
----
2246

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT 40 + - 70 + + 59 * MIN( + 68 ) * - 32
----
-128414

skipif mysql # not compatible
query I rowsort label-8620
SELECT 40 + - 70 + + 59 * MIN ( + 68 ) * - 32
----
-128414

query II rowsort
SELECT 11 * + 85 * COALESCE ( + 44, + + 91 ) AS col2, 36 AS col2
----
41140
36

query I rowsort
SELECT DISTINCT 43 * + + 45
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL ( - 33 ) + + + 66 * SUM( 34 ) + 35 + - + COUNT( * )
----
2245

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL ( - 33 ) + + + 66 * SUM ( 34 ) + 35 + - + COUNT ( * )
----
2245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8624
SELECT ALL NULLIF ( - 25, - 0 * + + 65 - COALESCE ( + 49, 18 * + 75 + + - 0 * - COUNT( * ) + 8 ) ) + - - 16 DIV + COUNT( ALL - 4 ) - - - 34 * + - 44 AS col1
----
1487

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL NULLIF ( - 25, - 0 * + + 65 - COALESCE ( + 49, 18 * + 75 + + - 0 * - COUNT ( * ) + 8 ) ) + - - 16 / + COUNT ( ALL - 4 ) - - - 34 * + - 44 AS col1
----
1487

query I rowsort
SELECT ALL 90 + - - 94 * 83
----
7892

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT COUNT( * ) * - - 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT COUNT ( * ) * - - 85 * - COUNT ( * )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8627
SELECT COUNT( - CAST( + 61 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-8627
SELECT COUNT ( - CAST ( + 61 AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT ALL - COUNT( - + 7 ), + 15 + + - 52 col2
----
-1
-37

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL - COUNT ( - + 7 ), + 15 + + - 52 col2
----
-1
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8629
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ), CAST( ( - 93 ) AS SIGNED ) * + 39 AS col1
----
NULL
-3627

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ), CAST ( ( - 93 ) AS INTEGER ) * + 39 AS col1
----
NULL
-3627

query I rowsort
SELECT + 66 * + ( + ( + 6 ) ) * 50 * 16
----
316800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8631
SELECT ALL COALESCE ( - 7, - - AVG ( DISTINCT - 25 ) DIV 49 * 79 * + COUNT( DISTINCT 65 ) + 26 * + + COUNT( DISTINCT - 75 ) ) - - - 25, 99 * + + MAX( DISTINCT + + 19 ) AS col0
----
-32
1881

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL COALESCE ( - 7, - - AVG ( DISTINCT - 25 ) / 49 * 79 * + COUNT ( DISTINCT 65 ) + 26 * + + COUNT ( DISTINCT - 75 ) ) - - - 25, 99 * + + MAX ( DISTINCT + + 19 ) AS col0
----
-32
1881

query I rowsort
SELECT + 92 * + 85 * - 46 col0
----
-359720

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + - 79 - + - COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8633
SELECT + - 79 - + - COUNT ( * ) col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT ALL + MIN( + 20 ) col0, 14 AS col1
----
20
14

skipif mysql # not compatible
query II rowsort label-8634
SELECT ALL + MIN ( + 20 ) col0, 14 AS col1
----
20
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT + + 4 * 23 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT + + 4 * 23 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL ( + COALESCE ( + COUNT( * ), - ( - - 45 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL ( + COALESCE ( + COUNT ( * ), - ( - - 45 ) ) )
----
1

query I rowsort
SELECT ALL - 33 * 18
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT + 94 + - 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT + 94 + - 12 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 17 * - 1 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT - COALESCE ( 68, - 63, CAST( NULL AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-8640
SELECT - COALESCE ( 68, - 63, CAST ( NULL AS INTEGER ) )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT ALL - COUNT( * ) + - + ( + - 19 ) DIV + COUNT( * ) + - - 31 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - COUNT ( * ) + - + ( + - 19 ) / + COUNT ( * ) + - - 31 AS col2
----
49

query I rowsort
SELECT - - COALESCE ( - + 88, + - 58 - - - 36 ) - ( + 89 ) col2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - + 11 * - MAX( + 74 ) * + + 33 * COUNT( * ) * + 20
----
537240

skipif mysql # not compatible
query I rowsort label-8643
SELECT - + 11 * - MAX ( + 74 ) * + + 33 * COUNT ( * ) * + 20
----
537240

query I rowsort
SELECT DISTINCT 3 * 56
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - 68 * + COUNT( * ) * + 74
----
-5032

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 68 * + COUNT ( * ) * + 74
----
-5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT + MIN( - - 29 ) + - - 75 + COALESCE ( - + CAST( NULL AS SIGNED ), - - COUNT( * ), + + NULLIF ( + 30, 95 ) - + - 75 ) + - + 16 * + 69 col2
----
-999

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + MIN ( - - 29 ) + - - 75 + COALESCE ( - + CAST ( NULL AS INTEGER ), - - COUNT ( * ), + + NULLIF ( + 30, 95 ) - + - 75 ) + - + 16 * + 69 col2
----
-999

query I rowsort
SELECT - 38 * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + 44 * - + ( - - COUNT( * ) ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-8648
SELECT + 44 * - + ( - - COUNT ( * ) ) col0
----
-44

query I rowsort
SELECT ALL + 61 * + 56
----
3416

query I rowsort
SELECT + COALESCE ( - 67, + - 97 - - 65, 58 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8651
SELECT ALL + 85, ( - - 35 ) DIV + + COUNT( + 57 ) AS col0
----
85
35

skipif mysql # not compatible
query II rowsort label-8651
SELECT ALL + 85, ( - - 35 ) / + + COUNT ( + 57 ) AS col0
----
85
35

query I rowsort
SELECT - 8 * + - 61 AS col0
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL - 94 * + COUNT( * ) * COUNT( * ) + + + 35 * - - 53 * + 27
----
49991

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - 94 * + COUNT ( * ) * COUNT ( * ) + + + 35 * - - 53 * + 27
----
49991

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + ( + MAX( ALL - - 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + ( + MAX ( ALL - - 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + + SUM( 17 )
----
16

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + + SUM ( 17 )
----
16

query II rowsort
SELECT ALL 16 * - 36 + + 45 AS col2, 16
----
-531
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT DISTINCT + CAST( - - COUNT( ALL - 71 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + CAST ( - - COUNT ( ALL - 71 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL + SUM( ALL + - ( - COALESCE ( - 2, - 35 ) ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL + SUM ( ALL + - ( - COALESCE ( - 2, - 35 ) ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT COUNT( * ) * - 22 - - 97 + + - 56 * 89 AS col2
----
-4909

skipif mysql # not compatible
query I rowsort label-8659
SELECT COUNT ( * ) * - 22 - - 97 + + - 56 * 89 AS col2
----
-4909

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT 63 * MIN( - COALESCE ( 28, 53 * + 85 * - 88 ) ) + - + MIN( DISTINCT + 96 ) AS col1
----
-1860

skipif mysql # not compatible
query I rowsort label-8660
SELECT 63 * MIN ( - COALESCE ( 28, 53 * + 85 * - 88 ) ) + - + MIN ( DISTINCT + 96 ) AS col1
----
-1860

query I rowsort
SELECT - 86 * 35 + - + 66 + + + ( - 19 ) AS col0
----
-3095

query I rowsort
SELECT DISTINCT + - 24 col2
----
-24

query I rowsort
SELECT ALL - 39 * - ( + 46 )
----
1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT + - CAST( NULL AS SIGNED ) + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT + - CAST ( NULL AS INTEGER ) + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - - COUNT( * ) * 86 - - COUNT( * ) * - - 24 col2
----
110

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - - COUNT ( * ) * 86 - - COUNT ( * ) * - - 24 col2
----
110

query I rowsort
SELECT DISTINCT + COALESCE ( 31, 54 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + + 59 + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8667
SELECT + + 59 + + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT ALL + - 51, COUNT( * ) + 62 AS col2
----
-51
63

skipif mysql # not compatible
query II rowsort label-8668
SELECT ALL + - 51, COUNT ( * ) + 62 AS col2
----
-51
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT + ( + + 66 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT + ( + + 66 ) / - 83 AS col1
----
0

query II rowsort
SELECT - 14 col0, NULLIF ( + + 71, + + 85 )
----
-14
71

query I rowsort
SELECT 92 * - 19 * - ( + 4 ) + 26 AS col1
----
7018

query I rowsort
SELECT + 92 * 85 col2
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - SUM( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8673
SELECT - SUM ( - 77 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT - - 1 DIV - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8674
SELECT - - 1 / - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT - 96 + - + COUNT( * ) DIV 18 * - 37
----
-96

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - 96 + - + COUNT ( * ) / 18 * - 37
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL - - 2 + + + 4 + + 20 * + MIN( - 94 ) AS col2
----
-1874

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - - 2 + + + 4 + + 20 * + MIN ( - 94 ) AS col2
----
-1874

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + - 82 * 62 + + - 76 + - - COALESCE ( + ( COUNT( ALL - + 81 ) ), - + COUNT( * ) * COUNT( * ) ) AS col1
----
-5159

skipif mysql # not compatible
query I rowsort label-8677
SELECT + - 82 * 62 + + - 76 + - - COALESCE ( + ( COUNT ( ALL - + 81 ) ), - + COUNT ( * ) * COUNT ( * ) ) AS col1
----
-5159

query I rowsort
SELECT DISTINCT + - 64 + - + 40
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL - COALESCE ( - 69, 12 - - 83 + + - COUNT( * ) + 3 * - + 73 + - 90 ) + + 8 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - COALESCE ( - 69, 12 - - 83 + + - COUNT ( * ) + 3 * - + 73 + - 90 ) + + 8 AS col2
----
77

query I rowsort
SELECT ALL + 93 * + 61 AS col0
----
5673

query I rowsort
SELECT - 44 * 21 * - 64
----
59136

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT ALL - 21 + 89 DIV + 90
----
-21

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - 21 + 89 / + 90
----
-21

query I rowsort
SELECT - 91 * + 98 AS col0
----
-8918

query I rowsort
SELECT - 9 + + 85 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT DISTINCT + 48 DIV COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT + 48 / COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT + MAX( DISTINCT - - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + MAX ( DISTINCT - - 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8687
SELECT ALL CAST( NULL AS SIGNED ) / CAST( - + MAX( - 13 ) AS DECIMAL ) * 73 - + 97 * + + COUNT( * ) * + 88 * - ( - ( + 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( - + MAX ( - 13 ) AS REAL ) * 73 - + 97 * + + COUNT ( * ) * + 88 * - ( - ( + 75 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL + 30 * - COUNT( DISTINCT - 39 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + 30 * - COUNT ( DISTINCT - 39 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT - 67 DIV + - COUNT( * ) - + 47 * 35 * - 57 + + 78 col0
----
93910

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - 67 / + - COUNT ( * ) - + 47 * 35 * - 57 + + 78 col0
----
93910

query I rowsort
SELECT DISTINCT 90 * - 45 AS col0
----
-4050

query I rowsort
SELECT DISTINCT + 40 * 94 * + - 28 AS col1
----
-105280

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL - CASE + 87 WHEN + 30 THEN + + COUNT( * ) END - + 98 + COALESCE ( + 77, - ( - 8 ) + 98 ) * - - 98 * ( 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - CASE + 87 WHEN + 30 THEN + + COUNT ( * ) END - + 98 + COALESCE ( + 77, - ( - 8 ) + 98 ) * - - 98 * ( 9 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 31 * + ( 40 )
----
1240

query I rowsort
SELECT 30 * 36 AS col2
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT 36 DIV 53 * 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT 36 / 53 * 13 col0
----
0

query I rowsort
SELECT 75 + - + 49 AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT MAX( ALL 55 ) * - + MAX( ALL - + 96 ) AS col2, + 13 col2
----
5280
13

skipif mysql # not compatible
query II rowsort label-8697
SELECT MAX ( ALL 55 ) * - + MAX ( ALL - + 96 ) AS col2, + 13 col2
----
5280
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT 84 * - + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8698
SELECT 84 * - + COUNT ( * ) AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT ALL + ( 58 ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + ( 58 ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT + 5 * - + 40 * - COALESCE ( + + 59, - ( + 64 ) * + - 55, 16 * - - 75 DIV - - 41 * 21 ) * + + 83
----
979400

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 5 * - + 40 * - COALESCE ( + + 59, - ( + 64 ) * + - 55, 16 * - - 75 / - - 41 * 21 ) * + + 83
----
979400

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT - COUNT( * ) * + 89, 55 + + - ( 70 ) * + COUNT( * ) * + - 42 AS col1
----
-89
2995

skipif mysql # not compatible
query II rowsort label-8701
SELECT - COUNT ( * ) * + 89, 55 + + - ( 70 ) * + COUNT ( * ) * + - 42 AS col1
----
-89
2995

query I rowsort
SELECT + CASE 64 WHEN + 55 THEN + 76 ELSE 34 END AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL - CAST( + 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - CAST ( + 81 AS INTEGER ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + 72 * CASE WHEN NULLIF ( 27, 74 + + 23 ) IN ( + 21, COUNT( * ) * + ( - 58 ), + - 45, - 24 + - SUM( ALL + - ( + - 16 ) ) + - 67 * - 85 - - 35, + 70 ) THEN NULL WHEN 59 > 57 THEN NULL ELSE 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 72 * CASE WHEN NULLIF ( 27, 74 + + 23 ) IN ( + 21, COUNT ( * ) * + ( - 58 ), + - 45, - 24 + - SUM ( ALL + - ( + - 16 ) ) + - 67 * - 85 - - 35, + 70 ) THEN NULL WHEN 59 > 57 THEN NULL ELSE 36 END
----
NULL

query II rowsort
SELECT + ( 16 ) AS col0, 92 + + 36 AS col0
----
16
128

query I rowsort
SELECT DISTINCT + 83 * + ( + 83 ) AS col1
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT 25 + + COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 25 + + COUNT ( * ) col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT ALL + 66 + + 85 DIV + 92
----
66

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL + 66 + + 85 / + 92
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL - COUNT( DISTINCT 42 ) + + - NULLIF ( + 90, ( + - COUNT( - 50 ) ) * 24 ) + + 50 * - 2 * - - 21
----
-2191

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - COUNT ( DISTINCT 42 ) + + - NULLIF ( + 90, ( + - COUNT ( - 50 ) ) * 24 ) + + 50 * - 2 * - - 21
----
-2191

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + + 20 * - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + + 20 * - COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT DISTINCT + 64 + - - 56 * 68 AS col1
----
3872

query I rowsort
SELECT + 62 - 64
----
-2

query I rowsort
SELECT ALL NULLIF ( 33, 18 * + 24 )
----
33

query II rowsort
SELECT - 2 AS col2, + 66
----
-2
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT DISTINCT 68 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT 68 / 82
----
0

query I rowsort
SELECT 50 * + - 44 AS col2
----
-2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8717
SELECT ALL 21, CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL 21, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
21
NULL

query I rowsort
SELECT 50 * - 9 AS col2
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT 75 AS col0, 70 / - + COUNT( * ) * + CASE - - COUNT( * ) WHEN + + 40 * 36 THEN + COUNT( * ) WHEN - 11 * + 2 THEN NULL END AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8719
SELECT 75 AS col0, 70 / - + COUNT ( * ) * + CASE - - COUNT ( * ) WHEN + + 40 * 36 THEN + COUNT ( * ) WHEN - 11 * + 2 THEN NULL END AS col1
----
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT 11 AS col2, + COUNT( ALL - + 30 ) AS col2
----
11
1

skipif mysql # not compatible
query II rowsort label-8720
SELECT 11 AS col2, + COUNT ( ALL - + 30 ) AS col2
----
11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT CAST( NULL AS SIGNED ) * + + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT CAST ( NULL AS INTEGER ) * + + 51 AS col0
----
NULL

query I rowsort
SELECT 75 * 0 * + + 8 AS col0
----
0

query I rowsort
SELECT ALL - NULLIF ( - + 88, + - 81 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT ALL + 0 DIV MIN( ALL - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + 0 / MIN ( ALL - 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 65 * + + COUNT( DISTINCT - 47 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8726
SELECT 65 * + + COUNT ( DISTINCT - 47 ) * + COUNT ( * )
----
65

query I rowsort
SELECT DISTINCT - + 89 * + 36 AS col0
----
-3204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT ALL - - CAST( - 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - - CAST ( - 30 AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT + 47 + - NULLIF ( + 42, - - 15 )
----
5

query I rowsort
SELECT ALL - 96 + 82 AS col0
----
-14

query I rowsort
SELECT ALL + - 68 + - + 93 AS col0
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT - 97 + - 76 + CAST( NULL AS SIGNED ) / + - 18 - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT - 97 + - 76 + CAST ( NULL AS INTEGER ) / + - 18 - 90
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 41 ) + ( + + 2 )
----
-39

query I rowsort
SELECT ALL - + 55 + + + 54 - + - 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - CASE + - 32 WHEN - + 79 THEN - ( - - 49 ) ELSE 69 END + NULLIF ( + + 7, + 57 + CASE 58 WHEN COUNT( * ) THEN 99 * - 94 * 79 WHEN 53 THEN NULL END ) * + - 98 AS col1
----
-755

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - CASE + - 32 WHEN - + 79 THEN - ( - - 49 ) ELSE 69 END + NULLIF ( + + 7, + 57 + CASE 58 WHEN COUNT ( * ) THEN 99 * - 94 * 79 WHEN 53 THEN NULL END ) * + - 98 AS col1
----
-755

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT + ( + 62 ) + ( + 69 ) * 60 DIV - 44 col2
----
-32

skipif mysql # not compatible
query I rowsort label-8736
SELECT + ( + 62 ) + ( + 69 ) * 60 / - 44 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - - COUNT( + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8737
SELECT - - COUNT ( + 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT 6 * + - COUNT( + - 26 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8738
SELECT 6 * + - COUNT ( + - 26 ) AS col1
----
-6

query I rowsort
SELECT ALL 27 * - 86
----
-2322

query I rowsort
SELECT DISTINCT 45 * - 88
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT ALL 80 * MIN( - 98 ) * + + 40 AS col2, 80 AS col0
----
-313600
80

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL 80 * MIN ( - 98 ) * + + 40 AS col2, 80 AS col0
----
-313600
80

query II rowsort
SELECT 66 AS col0, + 22 + + 36 - 34 + - 33 * - + CASE + + 54 WHEN 24 + - 65 THEN 33 * 42 + + 54 * + + 89 END + + 95
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8743
SELECT ALL 68, ( - CAST( NULL AS SIGNED ) ) + + COALESCE ( - COALESCE ( - + 8, ( - 61 ) + + + 15 + + - 62 * + 96 * + 86 * SUM( - 20 ) / - 50 * 11 * - 20 + - + 96 ), + 30, 29 ) + - COUNT( * ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-8743
SELECT ALL 68, ( - CAST ( NULL AS INTEGER ) ) + + COALESCE ( - COALESCE ( - + 8, ( - 61 ) + + + 15 + + - 62 * + 96 * + 86 * SUM ( - 20 ) / - 50 * 11 * - 20 + - + 96 ), + 30, 29 ) + - COUNT ( * ) AS col0
----
68
NULL

query I rowsort
SELECT - 49 + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + 55 + + 42 + COUNT( * ) + 83 * - - 45
----
3833

skipif mysql # not compatible
query I rowsort label-8745
SELECT + 55 + + 42 + COUNT ( * ) + 83 * - - 45
----
3833

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - CASE + 2 WHEN - 20 * - - 32 THEN + MAX( ALL 48 ) WHEN + 40 THEN NULL WHEN 74 + - 1 / - 32 + - COUNT( * ) * + 5 THEN NULL WHEN COUNT( * ) * - ( 88 ) * - + 57 - - 17 THEN NULL ELSE - 93 - + 75 END AS col2
----
168

skipif mysql # not compatible
query I rowsort label-8746
SELECT - CASE + 2 WHEN - 20 * - - 32 THEN + MAX ( ALL 48 ) WHEN + 40 THEN NULL WHEN 74 + - 1 / - 32 + - COUNT ( * ) * + 5 THEN NULL WHEN COUNT ( * ) * - ( 88 ) * - + 57 - - 17 THEN NULL ELSE - 93 - + 75 END AS col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT + 2 DIV - - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 2 / - - 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + 8 * - SUM( DISTINCT + ( + + 63 ) ) * + + 84 AS col0
----
-42336

skipif mysql # not compatible
query I rowsort label-8748
SELECT + 8 * - SUM ( DISTINCT + ( + + 63 ) ) * + + 84 AS col0
----
-42336

query I rowsort
SELECT + 19 + + 9 + - NULLIF ( - 91, - ( + 78 ) ) * + 17
----
1575

query II rowsort
SELECT ALL 87 col1, - 93 + + - 96 AS col1
----
87
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT COUNT( * ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT COUNT ( * ) / - 83
----
0

query II rowsort
SELECT ALL + 30 AS col1, NULLIF ( + 68, 58 ) * ( 11 ) * - 91 - - + NULLIF ( - 22, AVG ( + - 95 ) )
----
30
-68090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL CAST( + - MAX( 93 ) AS SIGNED ) * - MIN( 3 ) + + COUNT( * ) col0
----
280

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL CAST ( + - MAX ( 93 ) AS INTEGER ) * - MIN ( 3 ) + + COUNT ( * ) col0
----
280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8754
SELECT + CAST( NULL AS DECIMAL ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT + CAST ( NULL AS REAL ) * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL ( - 8 ) * + + COUNT( * ) + + 91 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL ( - 8 ) * + + COUNT ( * ) + + 91 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + 87 + COUNT( * ) * 66 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8756
SELECT + 87 + COUNT ( * ) * 66 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT ALL + 62 * + COUNT( * ) * + ( - 70 ) + 7 * + 76 * - COUNT( * ) + - 62 DIV 47 * + + 84
----
-4956

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + 62 * + COUNT ( * ) * + ( - 70 ) + 7 * + 76 * - COUNT ( * ) + - 62 / 47 * + + 84
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT + 91 * - 66 + - COUNT( * ) - - 87 * - COUNT( * ) * - 23
----
-4006

skipif mysql # not compatible
query I rowsort label-8758
SELECT + 91 * - 66 + - COUNT ( * ) - - 87 * - COUNT ( * ) * - 23
----
-4006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8759
SELECT 5 / CASE + CASE + 76 WHEN + 17 THEN - - 95 WHEN - 5 + 92 - + + 88 * + 7 * + + 65 * NULLIF ( - 45, - MAX( 74 ) * + + COUNT( DISTINCT 25 ) ) THEN 25 ELSE + 91 END WHEN - - CAST( NULL AS SIGNED ) / + COUNT( * ) * - 19 THEN - 43 END + - 3 - 16 + - 63 * NULLIF ( - - 10, + + 27 * 60 * + 40 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT 5 / CASE + CASE + 76 WHEN + 17 THEN - - 95 WHEN - 5 + 92 - + + 88 * + 7 * + + 65 * NULLIF ( - 45, - MAX ( 74 ) * + + COUNT ( DISTINCT 25 ) ) THEN 25 ELSE + 91 END WHEN - - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 19 THEN - 43 END + - 3 - 16 + - 63 * NULLIF ( - - 10, + + 27 * 60 * + 40 ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - COUNT( DISTINCT 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8760
SELECT - COUNT ( DISTINCT 86 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8761
SELECT + - 95 AS col2, CAST( - - 29 AS SIGNED )
----
-95
29

skipif mysql # not compatible
query II rowsort label-8761
SELECT + - 95 AS col2, CAST ( - - 29 AS INTEGER )
----
-95
29

query I rowsort
SELECT ALL + 76 * 8 * - - ( - 94 ) + + - 75 * + ( 18 ) + + 58
----
-58444

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8763
SELECT DISTINCT - COUNT( * ) * - 45 * + CASE - 1 WHEN - - CAST( - 53 AS DECIMAL ) THEN + 30 ELSE NULL END + - 18 - - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT - COUNT ( * ) * - 45 * + CASE - 1 WHEN - - CAST ( - 53 AS REAL ) THEN + 30 ELSE NULL END + - 18 - - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL COUNT( * ) * - COUNT( * ) * - 7
----
7

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 7
----
7

query I rowsort
SELECT ALL + + NULLIF ( + 2, - 27 ) AS col1
----
2

query I rowsort
SELECT ALL + 47 * 98 + 58 + + 53 * + 31 AS col0
----
6307

query I rowsort
SELECT - 17 * - 9 AS col0
----
153

query II rowsort
SELECT + 89, 98 col1
----
89
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT - 44 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 44 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL - 53 * + - MAX( ALL + ( - 1 ) ) * 6 - + ( + + 7 ) col1
----
-325

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - 53 * + - MAX ( ALL + ( - 1 ) ) * 6 - + ( + + 7 ) col1
----
-325

query I rowsort
SELECT - - ( - ( + 12 ) ) * 30 AS col0
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT - - 12 * 25 DIV COALESCE ( ( + 37 ), + 99 + - 58, - 82 ) DIV 90 + 39
----
39

skipif mysql # not compatible
query I rowsort label-8772
SELECT - - 12 * 25 / COALESCE ( ( + 37 ), + 99 + - 58, - 82 ) / 90 + 39
----
39

query I rowsort
SELECT - + 43 - - + 79 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8774
SELECT DISTINCT - 89 * + 53 AS col2, - 29 * + 80 + + + 50 + - - NULLIF ( COALESCE ( - 12, 47 + + 72 ), + CAST( - + COUNT( * ) AS SIGNED ) - + 28 )
----
-4717
-2282

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT - 89 * + 53 AS col2, - 29 * + 80 + + + 50 + - - NULLIF ( COALESCE ( - 12, 47 + + 72 ), + CAST ( - + COUNT ( * ) AS INTEGER ) - + 28 )
----
-4717
-2282

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT ( + + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT ( + + ( COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT CAST( + + SUM( ALL + + 18 ) AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT CAST ( + + SUM ( ALL + + 18 ) AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT - MAX( DISTINCT + ( - 15 ) ) + 49 + + 10 AS col0, 37 AS col0
----
74
37

skipif mysql # not compatible
query II rowsort label-8777
SELECT - MAX ( DISTINCT + ( - 15 ) ) + 49 + + 10 AS col0, 37 AS col0
----
74
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 14 - + COUNT( * ) col2
----
13

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 14 - + COUNT ( * ) col2
----
13

query I rowsort
SELECT - 26 * - 86
----
2236

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8780
SELECT + 32 + - - COUNT( * ) * + + CASE - CAST( NULL AS DECIMAL ) WHEN - 77 THEN AVG ( ALL - COALESCE ( + + 36, + 62 ) ) WHEN + 28 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 32 + - - COUNT ( * ) * + + CASE - CAST ( NULL AS REAL ) WHEN - 77 THEN AVG ( ALL - COALESCE ( + + 36, + 62 ) ) WHEN + 28 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8781
SELECT ALL CAST( 57 AS SIGNED ) col0, + 53
----
57
53

skipif mysql # not compatible
query II rowsort label-8781
SELECT ALL CAST ( 57 AS INTEGER ) col0, + 53
----
57
53

query I rowsort
SELECT ALL 73 * 64 * 71 * + 73
----
24214976

query I rowsort
SELECT ALL 90 * - 28 AS col0
----
-2520

query II rowsort
SELECT - 96 * + 96 AS col0, + 27
----
-9216
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT ALL - 27 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - 27 / 63
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT ALL 30 + CAST( 37 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 30 + CAST ( 37 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - MIN( ( 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8787
SELECT - MIN ( ( 20 ) )
----
-20

query I rowsort
SELECT + + 90 * - - 4 + - 23 AS col2
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + - 73 + 29 * ( 26 ) + + COUNT( * ) col1
----
682

skipif mysql # not compatible
query I rowsort label-8789
SELECT + - 73 + 29 * ( 26 ) + + COUNT ( * ) col1
----
682

query I rowsort
SELECT + - ( + 96 )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8791
SELECT - - 71 * 40 - - + ( MIN( DISTINCT + - 28 ) ) AS col0, - 37 DIV + 49
----
2812
0

skipif mysql # not compatible
query II rowsort label-8791
SELECT - - 71 * 40 - - + ( MIN ( DISTINCT + - 28 ) ) AS col0, - 37 / + 49
----
2812
0

query I rowsort
SELECT ALL 75 * ( - - 55 )
----
4125

query I rowsort
SELECT + 92 * 22 * + 51 + - 46
----
103178

query I rowsort
SELECT + 15 - - 15 + + 72 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT + COUNT( * ) * CAST( CAST( 54 AS SIGNED ) AS SIGNED ) + - MIN( - + 7 )
----
61

skipif mysql # not compatible
query I rowsort label-8795
SELECT + COUNT ( * ) * CAST ( CAST ( 54 AS INTEGER ) AS INTEGER ) + - MIN ( - + 7 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT + - CAST( + 8 AS SIGNED ) + + 28
----
20

skipif mysql # not compatible
query I rowsort label-8796
SELECT + - CAST ( + 8 AS INTEGER ) + + 28
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL + + ( - COUNT( DISTINCT - 60 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + + ( - COUNT ( DISTINCT - 60 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL + + ( ( + 78 ) ) * - COUNT( * ) - 17 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + + ( ( + 78 ) ) * - COUNT ( * ) - 17 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT + MAX( + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + MAX ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - MAX( ALL - 54 ) * 86 + - 40 - - 82
----
4686

skipif mysql # not compatible
query I rowsort label-8800
SELECT - MAX ( ALL - 54 ) * 86 + - 40 - - 82
----
4686

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL 22 * + + 37 - + + COUNT( * ) AS col2
----
813

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL 22 * + + 37 - + + COUNT ( * ) AS col2
----
813

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT ALL - 76 AS col2, 63 + + COUNT( * ) + - 86 * 52
----
-76
-4408

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL - 76 AS col2, 63 + + COUNT ( * ) + - 86 * 52
----
-76
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT 21 + - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8803
SELECT 21 + - COUNT ( * ) AS col1
----
20

query I rowsort
SELECT 59 + 29 AS col1
----
88

query I rowsort
SELECT 66 * + 44 * 77 * - 76 AS col2
----
-16994208

query II rowsort
SELECT ALL 18, + 59 AS col2
----
18
59

query I rowsort
SELECT DISTINCT + 86 * - 64
----
-5504

query I rowsort
SELECT DISTINCT - 22 * - 50 AS col0
----
1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8809
SELECT ALL 75, 47 * 88 * - COUNT( * ) * + - 45 * - 62 + - + ( 1 ) + + + CASE 25 WHEN - 87 THEN NULL WHEN + - 68 THEN NULL ELSE + 33 + - 54 * CAST( + + 73 AS SIGNED ) + + 65 END AS col0
----
75
-11543285

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL 75, 47 * 88 * - COUNT ( * ) * + - 45 * - 62 + - + ( 1 ) + + + CASE 25 WHEN - 87 THEN NULL WHEN + - 68 THEN NULL ELSE + 33 + - 54 * CAST ( + + 73 AS INTEGER ) + + 65 END AS col0
----
75
-11543285

query I rowsort
SELECT 56 + 74 AS col2
----
130

query I rowsort
SELECT 65 * + 27 AS col2
----
1755

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT DISTINCT - MIN( ALL - 96 ) + 5, 82 - - ( + MAX( ALL + - 78 ) ) + + + 84 AS col2
----
101
88

skipif mysql # not compatible
query II rowsort label-8812
SELECT DISTINCT - MIN ( ALL - 96 ) + 5, 82 - - ( + MAX ( ALL + - 78 ) ) + + + 84 AS col2
----
101
88

query I rowsort
SELECT ALL + 68 + - 11
----
57

query I rowsort
SELECT 49 - 18
----
31

query II rowsort
SELECT - 39 AS col1, 65
----
-39
65

query I rowsort
SELECT 90 + - - 39 + - 75 - - 15
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT DISTINCT - 96 + + SUM( ALL - + 6 ) col2, 14 AS col0
----
-102
14

skipif mysql # not compatible
query II rowsort label-8817
SELECT DISTINCT - 96 + + SUM ( ALL - + 6 ) col2, 14 AS col0
----
-102
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT NULLIF ( - CAST( - 96 AS SIGNED ), 30 + - - COUNT( * ) ) + MIN( + 52 )
----
148

skipif mysql # not compatible
query I rowsort label-8818
SELECT NULLIF ( - CAST ( - 96 AS INTEGER ), 30 + - - COUNT ( * ) ) + MIN ( + 52 )
----
148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8819
SELECT ALL + CASE WHEN NOT 79 > - 58 * 34 THEN NULL ELSE CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + CASE WHEN NOT 79 > - 58 * 34 THEN NULL ELSE CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8820
SELECT 88, - 3 / - + 51 * + - 81 * + CAST( NULL AS DECIMAL ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8820
SELECT 88, - 3 / - + 51 * + - 81 * + CAST ( NULL AS REAL ) AS col0
----
88
NULL

query I rowsort
SELECT 63 + + 20 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - + MIN( 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8822
SELECT - + MIN ( 9 )
----
-9

query III rowsort
SELECT ALL - 66 AS col1, 91 * + NULLIF ( - 26, + 16 ) + 56, + 17 AS col2
----
-66
-2310
17

query I rowsort
SELECT - 49 + + 55
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT 56 + 37 - 94 AS col2, - ( 87 ) * - - NULLIF ( - - 47, + COUNT( - 6 ) ) * - 34 + ( - - 96 ) AS col1
----
-1
139122

skipif mysql # not compatible
query II rowsort label-8825
SELECT 56 + 37 - 94 AS col2, - ( 87 ) * - - NULLIF ( - - 47, + COUNT ( - 6 ) ) * - 34 + ( - - 96 ) AS col1
----
-1
139122

query I rowsort
SELECT ALL + 17 - + 32 - 83
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL - - COUNT( * ) AS col2, 58 + 32 + 54 - 85 + - ( + - ( + - 62 ) ) * - + MIN( ALL - 5 )
----
1
-251

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - - COUNT ( * ) AS col2, 58 + 32 + 54 - 85 + - ( + - ( + - 62 ) ) * - + MIN ( ALL - 5 )
----
1
-251

query II rowsort
SELECT 31 AS col1, 36
----
31
36

query II rowsort
SELECT DISTINCT - - 64, 35 AS col0
----
64
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + 56 - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + 56 - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - COALESCE ( + 80, + + 55 * + 37, COUNT( * ) ) * + 88 + 8 + - - 83 AS col1, + 84
----
-6949
84

skipif mysql # not compatible
query II rowsort label-8831
SELECT - COALESCE ( + 80, + + 55 * + 37, COUNT ( * ) ) * + 88 + 8 + - - 83 AS col1, + 84
----
-6949
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT + COUNT( * ) AS col1, + 23 AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-8832
SELECT + COUNT ( * ) AS col1, + 23 AS col1
----
1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT ALL 5 DIV - + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 5 / - + COUNT ( * ) AS col1
----
-5

query I rowsort
SELECT 50 * + - 58 + - - 81
----
-2819

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT - COUNT( * ) * + + 89
----
-89

skipif mysql # not compatible
query I rowsort label-8835
SELECT - COUNT ( * ) * + + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT - 55 * + 56 - NULLIF ( + 73, + 70 / - COUNT( * ) + + 67 )
----
-3153

skipif mysql # not compatible
query I rowsort label-8836
SELECT - 55 * + 56 - NULLIF ( + 73, + 70 / - COUNT ( * ) + + 67 )
----
-3153

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT CASE + COUNT( * ) WHEN + 2 + 31 THEN - 0 ELSE NULL END * + NULLIF ( 1, - 30 * - NULLIF ( + 49, 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 2 + 31 THEN - 0 ELSE NULL END * + NULLIF ( 1, - 30 * - NULLIF ( + 49, 16 ) )
----
NULL

query II rowsort
SELECT ALL 97 * 91 AS col1, - 80
----
8827
-80

query I rowsort
SELECT 75 * + 70
----
5250

query I rowsort
SELECT DISTINCT NULLIF ( + 12, - 8 / - - 46 * - 40 + + - 48 - + 13 * + + 30 + + AVG ( - + 24 ) ) + 60 AS col1
----
72

query I rowsort
SELECT ALL + 81 + - - ( + - 3 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8842
SELECT - SUM( ALL + 44 ) AS col1, + 82 * + + COALESCE ( - 27, + 69, CAST( - 77 AS SIGNED ) )
----
-44
-2214

skipif mysql # not compatible
query II rowsort label-8842
SELECT - SUM ( ALL + 44 ) AS col1, + 82 * + + COALESCE ( - 27, + 69, CAST ( - 77 AS INTEGER ) )
----
-44
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT + SUM( - 55 ) + 93
----
38

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT + SUM ( - 55 ) + 93
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT DISTINCT + 55 * CAST( + - 40 AS SIGNED )
----
-2200

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + 55 * CAST ( + - 40 AS INTEGER )
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ( + + 99 ) + + 50 - - 21 * + + ( - 37 ) - 22 - + NULLIF ( + 41, - + 62 / 4 * + 22 ) + + - 34 * - + NULLIF ( + COUNT( * ), + 3 / + - 86 ) * + NULLIF ( - COUNT( * ), + + 57 ) AS col0
----
-725

skipif mysql # not compatible
query I rowsort label-8845
SELECT ( + + 99 ) + + 50 - - 21 * + + ( - 37 ) - 22 - + NULLIF ( + 41, - + 62 / 4 * + 22 ) + + - 34 * - + NULLIF ( + COUNT ( * ), + 3 / + - 86 ) * + NULLIF ( - COUNT ( * ), + + 57 ) AS col0
----
-725

query II rowsort
SELECT 91 + + 11 col2, + 54
----
102
54

query I rowsort
SELECT DISTINCT 48 + + 77
----
125

query I rowsort
SELECT ALL + 37 * - 12 AS col2
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + + 76 - COUNT( - + 81 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + + 76 - COUNT ( - + 81 ) AS col1
----
75

onlyif mysql # DIV for integer division: 
query III rowsort label-8850
SELECT DISTINCT + 10 * - - 15 + + - 60 - + - 68 - - 11 + + 38 + - ( + 75 ) DIV + 35 AS col1, + 9 AS col0, 5 * NULLIF ( AVG ( DISTINCT + + 5 ), + 47 ) + COALESCE ( - 21, + 37 ) * + 89 - + 78 * + CASE 88 WHEN - 78 THEN + - 48 WHEN 80 THEN - 45 ELSE NULL END
----
205
9
NULL

skipif mysql # not compatible
query III rowsort label-8850
SELECT DISTINCT + 10 * - - 15 + + - 60 - + - 68 - - 11 + + 38 + - ( + 75 ) / + 35 AS col1, + 9 AS col0, 5 * NULLIF ( AVG ( DISTINCT + + 5 ), + 47 ) + COALESCE ( - 21, + 37 ) * + 89 - + 78 * + CASE 88 WHEN - 78 THEN + - 48 WHEN 80 THEN - 45 ELSE NULL END
----
205
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL - 46 - + ( - - COUNT( * ) ) + - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - 46 - + ( - - COUNT ( * ) ) + - - COUNT ( * )
----
-46

query I rowsort
SELECT ( - 42 ) * - 79 + 18
----
3336

query I rowsort
SELECT + 14 + + 59 + - 34
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + - ( - 23 ) * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + - ( - 23 ) * + COUNT ( * )
----
23

query II rowsort
SELECT ALL - 44 * + 78 col1, 82
----
-3432
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT DISTINCT + 33 * + 36 AS col0, ( 45 ) * + NULLIF ( COUNT( * ), 83 * 89 * + 88 ) + + - 15
----
1188
30

skipif mysql # not compatible
query II rowsort label-8856
SELECT DISTINCT + 33 * + 36 AS col0, ( 45 ) * + NULLIF ( COUNT ( * ), 83 * 89 * + 88 ) + + - 15
----
1188
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT + - ( 49 ) AS col0, ( - COUNT( * ) ) AS col1
----
-49
-1

skipif mysql # not compatible
query II rowsort label-8857
SELECT + - ( 49 ) AS col0, ( - COUNT ( * ) ) AS col1
----
-49
-1

query I rowsort
SELECT - + ( + + 48 ) * - 90 AS col2
----
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL - - 45 * + 61 + + - 83 + - + COUNT( * ) + - 81 * - 58 * + 30 * 23 - - COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
3244281

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - - 45 * + 61 + + - 83 + - + COUNT ( * ) + - 81 * - 58 * + 30 * 23 - - COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
3244281

query I rowsort
SELECT 12 * + - 12 + - 70 AS col1
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + COUNT( * ) - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8861
SELECT + COUNT ( * ) - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT ( COUNT( * ) ) * - 58 DIV + 25 - + COUNT( + + 83 ) + - 0 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8862
SELECT ( COUNT ( * ) ) * - 58 / + 25 - + COUNT ( + + 83 ) + - 0 AS col1
----
-3

query II rowsort
SELECT DISTINCT 57 * + + 93 + 93, 8 AS col0
----
5394
8

query I rowsort
SELECT ALL 25 * + 18 + - - 96
----
546

query I rowsort
SELECT ALL 67 * - ( - + 58 ) AS col0
----
3886

query I rowsort
SELECT DISTINCT 72 + + 19 * - + 10 AS col0
----
-118

query I rowsort
SELECT - 37 + + ( + 57 ) + - 47 * + - 62 + 41 + - 56 AS col0
----
2919

query I rowsort
SELECT ALL 7 * - - 27
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT + 78 + + + 39 + - COUNT( * ) AS col2, + 16 - - 4 AS col2
----
116
20

skipif mysql # not compatible
query II rowsort label-8869
SELECT + 78 + + + 39 + - COUNT ( * ) AS col2, + 16 - - 4 AS col2
----
116
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + COUNT( * ) + - 23 * + ( - 73 )
----
1680

skipif mysql # not compatible
query I rowsort label-8870
SELECT + COUNT ( * ) + - 23 * + ( - 73 )
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL 71 * - COUNT( * ) * - + COUNT( * ) * - 24 * - 12
----
20448

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 71 * - COUNT ( * ) * - + COUNT ( * ) * - 24 * - 12
----
20448

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT ( + - 49 ) - 62 * 59 * - COALESCE ( - 30, - 49 ) + - + 57 - COUNT( ALL - 19 ) * - + ( + - 21 ) + + 71 AS col0
----
-109796

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT ( + - 49 ) - 62 * 59 * - COALESCE ( - 30, - 49 ) + - + 57 - COUNT ( ALL - 19 ) * - + ( + - 21 ) + + 71 AS col0
----
-109796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8873
SELECT + - SUM( ALL + - 91 ) + 30 DIV + + 65 col2
----
91

skipif mysql # not compatible
query I rowsort label-8873
SELECT + - SUM ( ALL + - 91 ) + 30 / + + 65 col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8874
SELECT ALL - + 86 DIV + 5
----
-17

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - + 86 / + 5
----
-17

query I rowsort
SELECT + 84 + - - 19 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT + 54 + 60 + + - COUNT( * ) * + + 59 * CAST( MIN( ALL - + 85 ) AS SIGNED ) - ( + - ( - NULLIF ( - 5, + 2 ) ) ) * - + 39
----
4934

skipif mysql # not compatible
query I rowsort label-8876
SELECT + 54 + 60 + + - COUNT ( * ) * + + 59 * CAST ( MIN ( ALL - + 85 ) AS INTEGER ) - ( + - ( - NULLIF ( - 5, + 2 ) ) ) * - + 39
----
4934

query I rowsort
SELECT - 68 + - 28 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT - + 62 DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-8878
SELECT - + 62 / 43
----
-1

query I rowsort
SELECT + 11 * + 79 AS col2
----
869

query I rowsort
SELECT - 81 + + 81 * + 10
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL + + MAX( DISTINCT + 79 ) * + + 3 AS col0
----
237

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + + MAX ( DISTINCT + 79 ) * + + 3 AS col0
----
237

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8882
SELECT ALL 8 * - AVG ( ALL + 6 ) - - ( - 26 ) + + MIN( + 32 ) * - 70 + - 59 * + ( + CAST( NULL AS DECIMAL ) ) + - 56 * - MAX( - + 30 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 8 * - AVG ( ALL + 6 ) - - ( - 26 ) + + MIN ( + 32 ) * - 70 + - 59 * + ( + CAST ( NULL AS REAL ) ) + - 56 * - MAX ( - + 30 ) col2
----
NULL

query I rowsort
SELECT - - 84 + + 99 * 75 AS col2
----
7509

query I rowsort
SELECT NULLIF ( - ( 52 ), - ( + 77 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT DISTINCT + 57 DIV - 21 + + 36
----
34

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + 57 / - 21 + + 36
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + COUNT( - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8886
SELECT + COUNT ( - 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + SUM( + + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-8887
SELECT + SUM ( + + 7 ) col0
----
7

query I rowsort
SELECT - 68 * - 72 AS col1
----
4896

onlyif mysql # aggregate syntax: 
query II rowsort label-8889
SELECT ALL ( MAX( DISTINCT - + 74 ) ) * - 22 + + - ( - 68 ), 29 AS col0
----
1696
29

skipif mysql # not compatible
query II rowsort label-8889
SELECT ALL ( MAX ( DISTINCT - + 74 ) ) * - 22 + + - ( - 68 ), 29 AS col0
----
1696
29

query I rowsort
SELECT DISTINCT 28 * 14 * - 19 + - 79 col2
----
-7527

query II rowsort
SELECT + 61 col0, - 22 + + 1 AS col0
----
61
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT - 32 DIV 26 DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8892
SELECT - 32 / 26 / - 79 AS col2
----
0

query II rowsort
SELECT ( NULLIF ( 51, 97 ) ) AS col0, + 31
----
51
31

query I rowsort
SELECT ALL + ( + 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8895
SELECT + 72 AS col1, COUNT( * ) * - ( + 27 ) * 2 DIV + 15
----
72
-3

skipif mysql # not compatible
query II rowsort label-8895
SELECT + 72 AS col1, COUNT ( * ) * - ( + 27 ) * 2 / + 15
----
72
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT - 96 + + - 69 + 50 * 84 DIV + CASE + + 32 WHEN + 55 + + 11 DIV 58 THEN NULL ELSE + 68 END AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 96 + + - 69 + 50 * 84 / + CASE + + 32 WHEN + 55 + + 11 / 58 THEN NULL ELSE + 68 END AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8897
SELECT + 2 DIV - COUNT( * ) AS col2, + 19
----
-2
19

skipif mysql # not compatible
query II rowsort label-8897
SELECT + 2 / - COUNT ( * ) AS col2, + 19
----
-2
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 73 * - + 35 + SUM( DISTINCT - 69 ) * + 61
----
-6764

skipif mysql # not compatible
query I rowsort label-8898
SELECT 73 * - + 35 + SUM ( DISTINCT - 69 ) * + 61
----
-6764

query II rowsort
SELECT DISTINCT + 36, + 34 col0
----
36
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT - COUNT( ALL + + 10 ) - + - ( + CAST( - + 82 AS SIGNED ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8900
SELECT - COUNT ( ALL + + 10 ) - + - ( + CAST ( - + 82 AS INTEGER ) ) AS col0
----
-83

query I rowsort
SELECT + 70 * - + 36 - + 13 + 82
----
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - CASE + 26 WHEN - - 40 THEN - + COUNT( * ) WHEN - - 38 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT - CASE + 26 WHEN - - 40 THEN - + COUNT ( * ) WHEN - - 38 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8903
SELECT ALL - 20 DIV - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - 20 / - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - COUNT( ALL + 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8904
SELECT - COUNT ( ALL + 43 ) AS col2
----
-1

query II rowsort
SELECT - 18, + 78 AS col0
----
-18
78

query II rowsort
SELECT 57, - 17 * + 43 AS col2
----
57
-731

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8907
SELECT - 69 col1, 16 * - CAST( + 50 AS SIGNED ) + + 5
----
-69
-795

skipif mysql # not compatible
query II rowsort label-8907
SELECT - 69 col1, 16 * - CAST ( + 50 AS INTEGER ) + + 5
----
-69
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT + - 5 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT + - 5 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT + - ( - 87 ) * 92 + + ( - + 86 ) + - - MAX( DISTINCT CAST( - 77 AS SIGNED ) ) AS col1
----
7841

skipif mysql # not compatible
query I rowsort label-8909
SELECT + - ( - 87 ) * 92 + + ( - + 86 ) + - - MAX ( DISTINCT CAST ( - 77 AS INTEGER ) ) AS col1
----
7841

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT SUM( + 72 ) * COALESCE ( - 22, - 53 * + 46 + - 5 + + - 31 ) * + - 11 * + 84 * + 89 AS col0
----
130261824

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT SUM ( + 72 ) * COALESCE ( - 22, - 53 * + 46 + - 5 + + - 31 ) * + - 11 * + 84 * + 89 AS col0
----
130261824

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT DISTINCT - 97 AS col2, 80 * + SUM( + - 14 )
----
-97
-1120

skipif mysql # not compatible
query II rowsort label-8911
SELECT DISTINCT - 97 AS col2, 80 * + SUM ( + - 14 )
----
-97
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8912
SELECT ALL CAST( NULL AS SIGNED ), + CAST( + + 42 AS SIGNED ) AS col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8912
SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( + + 42 AS INTEGER ) AS col1
----
NULL
42

query I rowsort
SELECT 56 * 70 AS col1
----
3920

query I rowsort
SELECT ALL 15 + 12
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT - ( COUNT( * ) ) + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - ( COUNT ( * ) ) + - 78
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8916
SELECT DISTINCT 48 AS col1, ( - CAST( NULL AS DECIMAL ) ) / - + ( - CASE 26 WHEN + CASE WHEN + 99 = + 98 THEN + + 34 + - ( - + 59 ) + - 51 ELSE 58 END THEN - + 36 + - 75 + + 38 END ) - + - 63 + COUNT( * ) + - - ( - CASE + - 62 WHEN 56 THEN NULL ELSE 62 END ) AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-8916
SELECT DISTINCT 48 AS col1, ( - CAST ( NULL AS REAL ) ) / - + ( - CASE 26 WHEN + CASE WHEN + 99 = + 98 THEN + + 34 + - ( - + 59 ) + - 51 ELSE 58 END THEN - + 36 + - 75 + + 38 END ) - + - 63 + COUNT ( * ) + - - ( - CASE + - 62 WHEN 56 THEN NULL ELSE 62 END ) AS col2
----
48
NULL

query II rowsort
SELECT ALL 65 AS col2, - 17 AS col0
----
65
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8918
SELECT COUNT( * ) + + 83 + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( * ) + + 83 + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT 60 + - - 68
----
128

query I rowsort
SELECT DISTINCT + 95 + 6 + - 99
----
2

query I rowsort
SELECT ALL + 40 * 21
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL 38 + - 88 + - CAST( + 94 AS SIGNED )
----
-144

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 38 + - 88 + - CAST ( + 94 AS INTEGER )
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT 97 + - ( + 83 ) DIV 63
----
96

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT 97 + - ( + 83 ) / 63
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8924
SELECT 49 + 83 - - 98 AS col2, + CASE - 7 WHEN + CAST( NULL AS SIGNED ) THEN + 89 WHEN - + 10 THEN NULL END * + + COUNT( * ) - - 93 + - COUNT( * )
----
230
NULL

skipif mysql # not compatible
query II rowsort label-8924
SELECT 49 + 83 - - 98 AS col2, + CASE - 7 WHEN + CAST ( NULL AS INTEGER ) THEN + 89 WHEN - + 10 THEN NULL END * + + COUNT ( * ) - - 93 + - COUNT ( * )
----
230
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT + CAST( NULL AS SIGNED ) * 93 + ( + 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT + CAST ( NULL AS INTEGER ) * 93 + ( + 47 ) AS col0
----
NULL

query I rowsort
SELECT 94 - - - 36 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT - NULLIF ( + CASE ( - 47 ) WHEN SUM( DISTINCT + 7 ) THEN - CASE + 45 WHEN + + 27 THEN 29 ELSE NULL END WHEN + NULLIF ( 17, 77 ) * + 13 THEN - 75 END, 70 + + - 66 * - - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT - NULLIF ( + CASE ( - 47 ) WHEN SUM ( DISTINCT + 7 ) THEN - CASE + 45 WHEN + + 27 THEN 29 ELSE NULL END WHEN + NULLIF ( 17, 77 ) * + 13 THEN - 75 END, 70 + + - 66 * - - 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL - SUM( 73 ) - + - 23 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL - SUM ( 73 ) - + - 23 AS col2
----
-50

query I rowsort
SELECT 74 * - ( - + 59 ) AS col2
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT 84 + + 20 + - COUNT( * ) * + 56 - + MIN( - 53 )
----
101

skipif mysql # not compatible
query I rowsort label-8930
SELECT 84 + + 20 + - COUNT ( * ) * + 56 - + MIN ( - 53 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL - COUNT( * ) * - ( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - COUNT ( * ) * - ( 65 )
----
65

query I rowsort
SELECT 0 * + ( + - 21 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8933
SELECT - 3 * - COUNT( * ) + 26 * + + MAX( 5 ) col0, + CASE - - COUNT( * ) WHEN + 51 + + CAST( + COALESCE ( - - 69, - COUNT( * ), CAST( NULL AS DECIMAL ) ) AS DECIMAL ) THEN NULL WHEN 24 THEN + 30 / + - 13 + - COALESCE ( CAST( NULL AS SIGNED ), + - 2 ) END
----
133
NULL

skipif mysql # not compatible
query II rowsort label-8933
SELECT - 3 * - COUNT ( * ) + 26 * + + MAX ( 5 ) col0, + CASE - - COUNT ( * ) WHEN + 51 + + CAST ( + COALESCE ( - - 69, - COUNT ( * ), CAST ( NULL AS REAL ) ) AS REAL ) THEN NULL WHEN 24 THEN + 30 / + - 13 + - COALESCE ( CAST ( NULL AS INTEGER ), + - 2 ) END
----
133
NULL

query I rowsort
SELECT ALL - NULLIF ( - 3, + 48 + + + 31 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT + 66 + - - COUNT( * ) DIV - 34 * + - 78
----
66

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 66 + - - COUNT ( * ) / - 34 * + - 78
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8936
SELECT CAST( - + 96 AS SIGNED ) * + CAST( NULL AS DECIMAL ) + 56 + - 49 AS col1, 0 * 28 * - + 60
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8936
SELECT CAST ( - + 96 AS INTEGER ) * + CAST ( NULL AS REAL ) + 56 + - 49 AS col1, 0 * 28 * - + 60
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT COUNT( * ) + + 93 + - 34 * + COALESCE ( - 50, - MAX( + 32 ) )
----
1794

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( * ) + + 93 + - 34 * + COALESCE ( - 50, - MAX ( + 32 ) )
----
1794

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT - + ( - 7 ), MAX( DISTINCT + 85 ) * - COUNT( * ) AS col2
----
7
-85

skipif mysql # not compatible
query II rowsort label-8938
SELECT - + ( - 7 ), MAX ( DISTINCT + 85 ) * - COUNT ( * ) AS col2
----
7
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL + - 10 * - - MAX( - 84 ) AS col2
----
840

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + - 10 * - - MAX ( - 84 ) AS col2
----
840

query I rowsort
SELECT 33 + + - 34 AS col1
----
-1

query I rowsort
SELECT 25 + 43 col0
----
68

query I rowsort
SELECT ALL - 57 + + 4
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT DISTINCT + + 85 DIV COUNT( * ) + - MIN( ALL 17 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + + 85 / COUNT ( * ) + - MIN ( ALL 17 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8944
SELECT CAST( NULL AS SIGNED ) + - - 23 AS col0, - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-8944
SELECT CAST ( NULL AS INTEGER ) + - - 23 AS col0, - 85 AS col1
----
NULL
-85

query I rowsort
SELECT - + ( - 24 ) AS col2
----
24

query I rowsort
SELECT ALL 49 + + 87
----
136

query I rowsort
SELECT - 32 + - 0 + + 89 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - ( - + CASE - + ( - + 32 ) WHEN - 87 THEN - 44 WHEN - - SUM( - 44 ) THEN NULL WHEN + + 45 THEN ( - 56 ) END ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - ( - + CASE - + ( - + 32 ) WHEN - 87 THEN - 44 WHEN - - SUM ( - 44 ) THEN NULL WHEN + + 45 THEN ( - 56 ) END ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 10 AS col0, 3
----
-10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + 75 * + ( + NULLIF ( - + MAX( - + 1 ), - ( - - NULLIF ( + + 68, - COUNT( * ) * + - 91 ) ) ) ) + - + ( 44 )
----
31

skipif mysql # not compatible
query I rowsort label-8950
SELECT + 75 * + ( + NULLIF ( - + MAX ( - + 1 ), - ( - - NULLIF ( + + 68, - COUNT ( * ) * + - 91 ) ) ) ) + - + ( 44 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8951
SELECT 18 DIV - MAX( + CAST( 26 AS SIGNED ) ) + + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-8951
SELECT 18 / - MAX ( + CAST ( 26 AS INTEGER ) ) + + - 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL 84 * COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL 84 * COUNT ( * ) col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT CASE WHEN NOT + 16 > 81 THEN 24 END DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT CASE WHEN NOT + 16 > 81 THEN 24 END / - 46 AS col2
----
0

query I rowsort
SELECT 10 * - 13 AS col2
----
-130

query I rowsort
SELECT ALL 78 * - 59 AS col0
----
-4602

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - MAX( ALL - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - MAX ( ALL - 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + COUNT( + + 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8957
SELECT + COUNT ( + + 50 ) AS col1
----
1

query I rowsort
SELECT ALL 49 * + 95
----
4655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * ( - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * ( - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( - + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8960
SELECT MAX ( - + 15 )
----
-15

query I rowsort
SELECT ALL 42 * + 52 * - 30 * 83
----
-5438160

query I rowsort
SELECT + 62 * - 11 * - ( + 82 ) + - + 83
----
55841

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + COUNT( 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8963
SELECT + COUNT ( 84 ) AS col0
----
1

query II rowsort
SELECT + 44, 69 * - 43 col0
----
44
-2967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT AVG ( ALL + 31 ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT AVG ( ALL + 31 ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 58 * + ( - 91 ) + + 48 + + 56 + 67 * 9
----
-4571

query II rowsort
SELECT 11, 14 + + - 34 AS col1
----
11
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT - CAST( 41 AS SIGNED ) * - - 64 - - + ( 91 ) AS col0
----
-2533

skipif mysql # not compatible
query I rowsort label-8968
SELECT - CAST ( 41 AS INTEGER ) * - - 64 - - + ( 91 ) AS col0
----
-2533

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL + 77 * + - SUM( 33 )
----
-2541

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + 77 * + - SUM ( 33 )
----
-2541

query I rowsort
SELECT - - 72 * - + 50 + - + 81 AS col2
----
-3681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL 75 + 11 + - CASE + 58 WHEN + 33 THEN CAST( + + AVG ( ALL 46 ) AS SIGNED ) / 3 - - 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 75 + 11 + - CASE + 58 WHEN + 33 THEN CAST ( + + AVG ( ALL 46 ) AS INTEGER ) / 3 - - 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL + COALESCE ( - MIN( DISTINCT 4 ), + - 79, + 75 + + + MIN( DISTINCT + 37 ) ) + - 80 + - - 25
----
-59

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + COALESCE ( - MIN ( DISTINCT 4 ), + - 79, + 75 + + + MIN ( DISTINCT + 37 ) ) + - 80 + - - 25
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL + CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + - 11 * + - COUNT( * ) * + 48
----
528

skipif mysql # not compatible
query I rowsort label-8974
SELECT + - 11 * + - COUNT ( * ) * + 48
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT - CAST( + ( + - NULLIF ( - 91, - 86 ) ) AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8975
SELECT - CAST ( + ( + - NULLIF ( - 91, - 86 ) ) AS INTEGER ) AS col1
----
-91

query I rowsort
SELECT ALL - 25 + 44 * + 95
----
4155

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - COUNT( * ) * 52 + 1
----
-51

skipif mysql # not compatible
query I rowsort label-8977
SELECT - COUNT ( * ) * 52 + 1
----
-51

query I rowsort
SELECT - 21 + - 17 col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT - + COUNT( * ), COUNT( * ) * - 63 AS col2
----
-1
-63

skipif mysql # not compatible
query II rowsort label-8979
SELECT - + COUNT ( * ), COUNT ( * ) * - 63 AS col2
----
-1
-63

query I rowsort
SELECT ALL + + 90 - + 92 + - - 44 + 75
----
117

query II rowsort
SELECT - 23 AS col0, 36 * + COALESCE ( - 74, - + 1 * + 18 + - 9 ) AS col2
----
-23
-2664

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT ALL + 23 DIV + 13 col1
----
1

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + 23 / + 13 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8983
SELECT - 21 + - SUM( - 56 ) DIV - NULLIF ( - - ( 27 ), 73 + + 74 )
----
-23

skipif mysql # not compatible
query I rowsort label-8983
SELECT - 21 + - SUM ( - 56 ) / - NULLIF ( - - ( 27 ), 73 + + 74 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL + 50 - - COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + 50 - - COUNT ( * ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - COUNT( * ) * ( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8985
SELECT - COUNT ( * ) * ( 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT ( - + CAST( + - COALESCE ( + + 41, 16 * + + COUNT( * ) ) AS SIGNED ) ) / + 66 + - - CASE + + COALESCE ( + - 80, - - 96 * + - 93 + - - 82 - + 29 * + - 72, - 21 ) WHEN - + 71 * + 7 THEN 71 + + - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT ( - + CAST ( + - COALESCE ( + + 41, 16 * + + COUNT ( * ) ) AS INTEGER ) ) / + 66 + - - CASE + + COALESCE ( + - 80, - - 96 * + - 93 + - - 82 - + 29 * + - 72, - 21 ) WHEN - + 71 * + 7 THEN 71 + + - 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT COUNT( * ) * - 74 + + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8987
SELECT COUNT ( * ) * - 74 + + COUNT ( * ) AS col2
----
-73

query II rowsort
SELECT DISTINCT + 33 * + CASE 24 WHEN + - 7 + + ( - 5 ) THEN - 18 END, - 44 + - 46 AS col1
----
NULL
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT - 58 DIV + - COUNT( * ) + 18 + - 62 * - + ( - 26 ) - + 25 AS col0
----
-1561

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 58 / + - COUNT ( * ) + 18 + - 62 * - + ( - 26 ) - + 25 AS col0
----
-1561

query I rowsort
SELECT - 7 + - 6 AS col1
----
-13

query I rowsort
SELECT NULLIF ( + 81, - 26 * - 68 * 80 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT + 89 + 20 AS col1, + MAX( ALL + - 16 ) + 89
----
109
73

skipif mysql # not compatible
query II rowsort label-8992
SELECT + 89 + 20 AS col1, + MAX ( ALL + - 16 ) + 89
----
109
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + COUNT( - + 28 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8993
SELECT + COUNT ( - + 28 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT + COUNT( * ) DIV - ( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT + COUNT ( * ) / - ( 68 )
----
0

query I rowsort
SELECT 61 * - 5 + 93
----
-212

query I rowsort
SELECT + NULLIF ( + - 85, - 62 * - 8 + - 22 + - 71 * + - 57 * - - 89 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT - 99 * - - ( COUNT( * ) ) * - + 41 + - 57 AS col2
----
4002

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - 99 * - - ( COUNT ( * ) ) * - + 41 + - 57 AS col2
----
4002

query I rowsort
SELECT + + 43 + + 88
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL - - MAX( ALL 63 ) * COUNT( * ) + - + 97 + + CAST( - + 24 AS SIGNED ) + 34 * - 13
----
-500

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - - MAX ( ALL 63 ) * COUNT ( * ) + - + 97 + + CAST ( - + 24 AS INTEGER ) + 34 * - 13
----
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT + CAST( + - SUM( ALL 87 ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9000
SELECT + CAST ( + - SUM ( ALL 87 ) AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT + 35 * 79 * + + 74 * 98 * - + 12 + 41 + - 89 * 47 + - COUNT( * ) DIV + ( 5 )
----
-240625502

skipif mysql # not compatible
query I rowsort label-9001
SELECT + 35 * 79 * + + 74 * 98 * - + 12 + 41 + - 89 * 47 + - COUNT ( * ) / + ( 5 )
----
-240625502

query I rowsort
SELECT + - 82 * + + CASE + ( - - 60 ) WHEN - - 9 THEN NULL WHEN - 97 THEN + + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - 25 + + 38 * 11 * COUNT( * ) AS col1
----
393

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 25 + + 38 * 11 * COUNT ( * ) AS col1
----
393

query I rowsort
SELECT DISTINCT - 98 * - 0 + - + 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT - + SUM( DISTINCT - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9005
SELECT - + SUM ( DISTINCT - 57 )
----
57

query II rowsort
SELECT + + 99 + 25 AS col0, + 9 * + - 4 + + 8 col1
----
124
-28

query II rowsort
SELECT DISTINCT + 94 - - 13 + - - 81 + - 73, 35 AS col0
----
115
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - + 50 + CAST( + + 89 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9008
SELECT - + 50 + CAST ( + + 89 AS INTEGER ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT - CAST( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) * 89 - - COUNT( - - 84 ) - - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT - CAST ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 89 - - COUNT ( - - 84 ) - - - 23
----
NULL

query I rowsort
SELECT ALL - 18 * + 79
----
-1422

query II rowsort
SELECT - 79 + - 89 * - + ( - 14 ) - + ( - ( ( 90 ) ) ), 91 * - 62 - + 86 AS col0
----
-1235
-5728

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT - 50 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT - 50 / - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT CASE - COUNT( * ) WHEN - 23 + + 94 THEN + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 23 + + 94 THEN + 66 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 77, - ( - 74 ) ) AS col2
----
77

query II rowsort
SELECT 25 AS col2, + 99 * - 20 + - 26 AS col1
----
25
-2006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT ALL 4 DIV - + 1 + 53 + + COUNT( * ) * + - 30
----
19

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL 4 / - + 1 + 53 + + COUNT ( * ) * + - 30
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT - 84 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-9017
SELECT - 84 / 53
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT ALL + 81 DIV COUNT( * ) * + 28 * + - 21 + + - MAX( DISTINCT 74 )
----
-47702

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + 81 / COUNT ( * ) * + 28 * + - 21 + + - MAX ( DISTINCT 74 )
----
-47702

query I rowsort
SELECT - 60 * - 35 AS col1
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + MAX( - + 96 ) * + NULLIF ( + MIN( + - 57 ), + + 43 ) AS col0
----
5472

skipif mysql # not compatible
query I rowsort label-9020
SELECT + MAX ( - + 96 ) * + NULLIF ( + MIN ( + - 57 ), + + 43 ) AS col0
----
5472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT DISTINCT 10 DIV ( - 90 ) * - 43 + + - COUNT( * ) - - ( 96 )
----
95

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT 10 / ( - 90 ) * - 43 + + - COUNT ( * ) - - ( 96 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL COUNT( * ) + - 55 + - + 61 * 22 + 85 + - 84 * - ( - - 68 ) - - + MIN( + 27 ) * - 13 + + + 66 * - COUNT( * ) AS col0
----
3984

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL COUNT ( * ) + - 55 + - + 61 * 22 + 85 + - 84 * - ( - - 68 ) - - + MIN ( + 27 ) * - 13 + + + 66 * - COUNT ( * ) AS col0
----
3984

query II rowsort
SELECT + 42, - 69 col2
----
42
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL - COUNT( 52 ) + CAST( NULL AS SIGNED ) * - 25 - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - COUNT ( 52 ) + CAST ( NULL AS INTEGER ) * - 25 - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT COUNT( * ) * + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9025
SELECT COUNT ( * ) * + 39 AS col0
----
39

query I rowsort
SELECT ALL - - ( + 82 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - + 91 * - MIN( ALL - 1 )
----
-91

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - + 91 * - MIN ( ALL - 1 )
----
-91

query I rowsort
SELECT - 20 * 43 * - - 10 * - 48 * - + 57 - - ( + 20 ) col0
----
-23529580

query I rowsort
SELECT - 9 * - 70 * + ( - - 17 ) col2
----
10710

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9030
SELECT + 18 + + - ( + - CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS SIGNED ) + + 44 * + 28 * - 29 - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT + 18 + + - ( + - CAST ( NULL AS REAL ) ) / + CAST ( NULL AS INTEGER ) + + 44 * + 28 * - 29 - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - 34 * COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 34 * COUNT ( * ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - COUNT( * ) - + 61 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - COUNT ( * ) - + 61 AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL CAST( + 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL CAST ( + 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL SUM( + 9 ) * - 66 * + 48 + 40 * - 74
----
-31472

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL SUM ( + 9 ) * - 66 * + 48 + 40 * - 74
----
-31472

query I rowsort
SELECT 28 + - - 23 AS col1
----
51

query I rowsort
SELECT - NULLIF ( - ( - + 75 ), - 30 )
----
-75

query I rowsort
SELECT + 78 * 63
----
4914

query I rowsort
SELECT ( + + 23 ) * 97 + - 17 - - 61 AS col1
----
2275

query II rowsort
SELECT - 97, 83 + 76 AS col1
----
-97
159

query II rowsort
SELECT ALL 53, - 31 + + + 48 AS col0
----
53
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9041
SELECT DISTINCT 4 AS col1, 8 + + + CAST( NULL AS SIGNED )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-9041
SELECT DISTINCT 4 AS col1, 8 + + + CAST ( NULL AS INTEGER )
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT 93 * COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9042
SELECT 93 * COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - MAX( DISTINCT - - 46 ) * + 5 * 68 + + 88 col0
----
-15552

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - MAX ( DISTINCT - - 46 ) * + 5 * 68 + + 88 col0
----
-15552

query I rowsort
SELECT ALL 26 + + 59 AS col1
----
85

query I rowsort
SELECT CASE + 63 WHEN + 9 * - 63 THEN NULL ELSE + - 43 END + 90 + + 47 AS col1
----
94

query I rowsort
SELECT 9 - - + 60
----
69

query I rowsort
SELECT ALL - 88 * + + 13
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT - MIN( ALL + 85 ) * 43 AS col1
----
-3655

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - MIN ( ALL + 85 ) * 43 AS col1
----
-3655

query I rowsort
SELECT DISTINCT + 15 + 67
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT COUNT( * ) + - + NULLIF ( - 70, - + 7 )
----
71

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT COUNT ( * ) + - + NULLIF ( - 70, - + 7 )
----
71

query I rowsort
SELECT ALL 83 * - + 76
----
-6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL + COUNT( + 93 ) + 85 * - 36 - CAST( ( + + 41 ) AS SIGNED ) * + COUNT( * )
----
-3100

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + COUNT ( + 93 ) + 85 * - 36 - CAST ( ( + + 41 ) AS INTEGER ) * + COUNT ( * )
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT 18 + 37 + CAST( - 27 AS SIGNED ) * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9053
SELECT 18 + 37 + CAST ( - 27 AS INTEGER ) * + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9054
SELECT 98 * - 17 + - + MIN( COALESCE ( - 68, 82 ) ) + + COUNT( * ) * 12 * - 5 DIV + 92 * + COUNT( DISTINCT + 98 )
----
-1598

skipif mysql # not compatible
query I rowsort label-9054
SELECT 98 * - 17 + - + MIN ( COALESCE ( - 68, 82 ) ) + + COUNT ( * ) * 12 * - 5 / + 92 * + COUNT ( DISTINCT + 98 )
----
-1598

query I rowsort
SELECT 34 * + 14
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - 97 / - CASE CASE + - 60 WHEN + ( - COUNT( * ) ) THEN + + 32 END WHEN - 79 + + COUNT( * ) * - - 27 THEN + 23 + + + ( + 85 ) + 85 END * - 84 + 35 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 97 / - CASE CASE + - 60 WHEN + ( - COUNT ( * ) ) THEN + + 32 END WHEN - 79 + + COUNT ( * ) * - - 27 THEN + 23 + + + ( + 85 ) + 85 END * - 84 + 35 + - 50
----
NULL

query I rowsort
SELECT ALL + + 89 + - + 59
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT - 24 DIV + 20 - + 80 DIV + 47 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 24 / + 20 - + 80 / + 47 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT + MAX( ALL - 35 ) + 8 + - CAST( NULL AS SIGNED ) * + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT + MAX ( ALL - 35 ) + 8 + - CAST ( NULL AS INTEGER ) * + - 6
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9060
SELECT ALL + 29 DIV + - 90 col0, 63
----
0
63

skipif mysql # not compatible
query II rowsort label-9060
SELECT ALL + 29 / + - 90 col0, 63
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + NULLIF ( + 30, + 87 ) * - COUNT( * ) * 71 * + CASE + - 94 WHEN AVG ( DISTINCT - + 12 ) + + 66 - - + 43 + + 95 THEN NULL WHEN + 80 THEN + 13 * + 79 + + SUM( - 47 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT + NULLIF ( + 30, + 87 ) * - COUNT ( * ) * 71 * + CASE + - 94 WHEN AVG ( DISTINCT - + 12 ) + + 66 - - + 43 + + 95 THEN NULL WHEN + 80 THEN + 13 * + 79 + + SUM ( - 47 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + - 25, + 61 AS col1
----
-25
61

query II rowsort
SELECT ALL - 14, + 24 AS col2
----
-14
24

query II rowsort
SELECT + + 2 AS col0, - 81 AS col1
----
2
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9065
SELECT - - CAST( - 33 AS DECIMAL ) * CAST( NULL AS SIGNED ) + - 35 - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT - - CAST ( - 33 AS REAL ) * CAST ( NULL AS INTEGER ) + - 35 - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 10 * 48 * NULLIF ( - - 10, + - ( - 33 ) ) * - 0
----
0

query I rowsort
SELECT + 49 + - + 71 col1
----
-22

query I rowsort
SELECT + CASE 91 WHEN + 75 * + - 85 - + + 58 THEN NULL ELSE - 68 END col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9069
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 42 DIV + 70 * + + 30, MAX( ALL - 38 ) AS col0
----
NULL
0
-38

skipif mysql # not compatible
query III rowsort label-9069
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 42 / + 70 * + + 30, MAX ( ALL - 38 ) AS col0
----
NULL
0
-38

query II rowsort
SELECT ALL + 30 AS col0, - 57 + - 20 AS col1
----
30
-77

query II rowsort
SELECT + 13 AS col0, + NULLIF ( 29, - + 58 ) AS col2
----
13
29

query I rowsort
SELECT 32 + 8 + 15
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT + 76 DIV - ( + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 76 / - ( + 71 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT CAST( - + 87 AS SIGNED ) * 4
----
-348

skipif mysql # not compatible
query I rowsort label-9074
SELECT CAST ( - + 87 AS INTEGER ) * 4
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT ALL 16 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL 16 / + 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9076
SELECT ALL + 1 DIV COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + 1 / COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT MIN( 57 ) + + - COUNT( * ) + 13 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9077
SELECT MIN ( 57 ) + + - COUNT ( * ) + 13 AS col0
----
69

query I rowsort
SELECT ALL + 92 + + 79 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT 3 * 46 * + COUNT( DISTINCT - 34 ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-9079
SELECT 3 * 46 * + COUNT ( DISTINCT - 34 ) AS col1
----
138

query I rowsort
SELECT ALL 26 + - 62 AS col0
----
-36

query II rowsort
SELECT DISTINCT 85 + - 13, - 76 AS col1
----
72
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT NULLIF ( 67, + ( - COUNT( * ) ) ) + - - 33 * 5 + + 47, - 32 + - 61 AS col0
----
279
-93

skipif mysql # not compatible
query II rowsort label-9082
SELECT NULLIF ( 67, + ( - COUNT ( * ) ) ) + - - 33 * 5 + + 47, - 32 + - 61 AS col0
----
279
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL COUNT( * ) + 11 * + - 5 col1
----
-54

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL COUNT ( * ) + 11 * + - 5 col1
----
-54

query I rowsort
SELECT ALL NULLIF ( 61, + + 91 ) + - + 92
----
-31

query I rowsort
SELECT - 24 * + 8 AS col2
----
-192

query I rowsort
SELECT DISTINCT - 0 * + 67 + 32 + - + 69
----
-37

query I rowsort
SELECT - 1 * - + 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT DISTINCT + + NULLIF ( CAST( + + 74 AS SIGNED ), + 93 * + - ( 13 ) * 8 * - 48 ) * - 55 AS col1
----
-4070

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT + + NULLIF ( CAST ( + + 74 AS INTEGER ), + 93 * + - ( 13 ) * 8 * - 48 ) * - 55 AS col1
----
-4070

query I rowsort
SELECT ALL + + ( - 11 )
----
-11

query I rowsort
SELECT - + 12 * - 79 + 39 AS col2
----
987

query I rowsort
SELECT + 33 * - 3 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9092
SELECT - COUNT( * ) * + + ( 22 ) AS col1, 25 DIV - + 15
----
-22
-1

skipif mysql # not compatible
query II rowsort label-9092
SELECT - COUNT ( * ) * + + ( 22 ) AS col1, 25 / - + 15
----
-22
-1

query I rowsort
SELECT - + 13 * - 5 - - 53 + 74
----
192

query I rowsort
SELECT ALL - + 94 * + 62 * 12
----
-69936

query I rowsort
SELECT DISTINCT - 12 * + + 41 + 67 * 44 AS col1
----
2456

query I rowsort
SELECT ALL + 60 + 36 + - - 35 * - 52
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - COUNT( * ) * + - 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9097
SELECT - COUNT ( * ) * + - 81 AS col0
----
81

query II rowsort
SELECT - 6 AS col2, - 69 - 93 col2
----
-6
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - MAX( ALL - 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9099
SELECT - MAX ( ALL - 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + 90 * - 71 * + COUNT( * ) * - + 73 AS col1
----
466470

skipif mysql # not compatible
query I rowsort label-9100
SELECT + 90 * - 71 * + COUNT ( * ) * - + 73 AS col1
----
466470

query I rowsort
SELECT ALL 72 + 24 * + 68 * - 74
----
-120696

query I rowsort
SELECT - 78 - ( + 63 ) AS col1
----
-141

query I rowsort
SELECT - 37 * - 74
----
2738

query I rowsort
SELECT ALL ( 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9105
SELECT - 54 DIV + - ( + 40 ) AS col2, MIN( - 83 ) + - COUNT( * )
----
1
-84

skipif mysql # not compatible
query II rowsort label-9105
SELECT - 54 / + - ( + 40 ) AS col2, MIN ( - 83 ) + - COUNT ( * )
----
1
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT ALL ( - + 28 ) * 67 DIV + - SUM( ALL 99 )
----
18

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL ( - + 28 ) * 67 / + - SUM ( ALL 99 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - 98 - COUNT( * ) + + 65 * - 64 + 14 AS col0
----
-4245

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - 98 - COUNT ( * ) + + 65 * - 64 + 14 AS col0
----
-4245

query I rowsort
SELECT DISTINCT + ( - + 57 ) - - ( - + 33 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT - 18 + + 21 DIV + 16 col2
----
-17

skipif mysql # not compatible
query I rowsort label-9109
SELECT - 18 + + 21 / + 16 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + COUNT( * ) - + + COUNT( * ) + + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9110
SELECT + COUNT ( * ) - + + COUNT ( * ) + + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - 95 + + 81 * + + 66 * + - COUNT( * ) * 80 + 4 col2
----
-427771

skipif mysql # not compatible
query I rowsort label-9111
SELECT - 95 + + 81 * + + 66 * + - COUNT ( * ) * 80 + 4 col2
----
-427771

query II rowsort
SELECT ALL 92 AS col2, 5 * - + 8 AS col0
----
92
-40

query I rowsort
SELECT + 71 + - - 79
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT + 15 DIV NULLIF ( - + 94, - + 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT + 15 / NULLIF ( - + 94, - + 87 ) AS col2
----
0

query I rowsort
SELECT + - 2 * - 51
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-9116
SELECT ALL + 65 AS col1, 13 + + 71 DIV 19 col1
----
65
16

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL + 65 AS col1, 13 + + 71 / 19 col1
----
65
16

query I rowsort
SELECT + 29 + - + 36
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT DISTINCT + + 7, + MAX( - 42 ) * - 19 AS col1
----
7
798

skipif mysql # not compatible
query II rowsort label-9118
SELECT DISTINCT + + 7, + MAX ( - 42 ) * - 19 AS col1
----
7
798

query II rowsort
SELECT ALL + 57 AS col0, + 15 AS col1
----
57
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9120
SELECT + COALESCE ( + 76, + 93 ) * - 51 * - CAST( NULL AS DECIMAL ) + + 10 * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT + COALESCE ( + 76, + 93 ) * - 51 * - CAST ( NULL AS REAL ) + + 10 * + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL + ( CAST( + 70 AS SIGNED ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + ( CAST ( + 70 AS INTEGER ) ) AS col1
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9122
SELECT DISTINCT + - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT + - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT COUNT( * ) DIV + + 58 + ( - 24 ) * - + 52 + ( 83 ) + - - 11 AS col1
----
1342

skipif mysql # not compatible
query I rowsort label-9123
SELECT COUNT ( * ) / + + 58 + ( - 24 ) * - + 52 + ( 83 ) + - - 11 AS col1
----
1342

query I rowsort
SELECT - 92 + - + 32
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT + 31 * 69 DIV - + ( 96 )
----
-22

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 31 * 69 / - + ( 96 )
----
-22

query I rowsort
SELECT - 1 * 98 * - - ( - + 5 ) AS col2
----
490

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT DISTINCT + 51 DIV - 87 * - 84 + 73
----
73

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + 51 / - 87 * - 84 + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + - MIN( 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-9128
SELECT + - MIN ( 67 ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL + COUNT( * ) * 46 + 91
----
137

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + COUNT ( * ) * 46 + 91
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT ALL - 51 * + 16 - COUNT( * ), ( 94 ) AS col0
----
-817
94

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL - 51 * + 16 - COUNT ( * ), ( 94 ) AS col0
----
-817
94

query I rowsort
SELECT ALL 62 * + 79 + - 73 + + 47 + - 1
----
4871

query I rowsort
SELECT - 38 * - 21 + - + 43 * 23 * - - 91
----
-89201

query I rowsort
SELECT - 73 * - + 82 AS col1
----
5986

query I rowsort
SELECT NULLIF ( 74, - 28 ) col2
----
74

query I rowsort
SELECT ALL + 5 * - - 66 + + 94
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL - COUNT( * ) - + 84
----
-85

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL - COUNT ( * ) - + 84
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT ALL + 66 * 33 DIV + - 50
----
-43

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + 66 * 33 / + - 50
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9138
SELECT DISTINCT - ( MIN( + + 29 ) ) - + + 17 + + 3 + - CAST( - 56 AS SIGNED ) AS col0, 11 - - 52 AS col2
----
13
63

skipif mysql # not compatible
query II rowsort label-9138
SELECT DISTINCT - ( MIN ( + + 29 ) ) - + + 17 + + 3 + - CAST ( - 56 AS INTEGER ) AS col0, 11 - - 52 AS col2
----
13
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT DISTINCT + MAX( - - 4 ) * + ( COALESCE ( - - ( + 92 ), + - 87 ) ) AS col0, 27
----
368
27

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT + MAX ( - - 4 ) * + ( COALESCE ( - - ( + 92 ), + - 87 ) ) AS col0, 27
----
368
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT COUNT( * ) * + 17 AS col1, CASE 52 WHEN 34 THEN - 35 - - ( + COUNT( * ) ) WHEN + - 22 THEN - 54 END
----
17
NULL

skipif mysql # not compatible
query II rowsort label-9140
SELECT COUNT ( * ) * + 17 AS col1, CASE 52 WHEN 34 THEN - 35 - - ( + COUNT ( * ) ) WHEN + - 22 THEN - 54 END
----
17
NULL

query I rowsort
SELECT 63 + - ( + ( - 81 ) ) AS col0
----
144

query I rowsort
SELECT 37 * + 89 * + 63
----
207459

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT - MIN( + 21 ) * 36 * 28 col2
----
-21168

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - MIN ( + 21 ) * 36 * 28 col2
----
-21168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL - 17 * 26 * - 7 * - CAST( + 60 AS SIGNED ) + + 42 AS col1
----
-185598

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - 17 * 26 * - 7 * - CAST ( + 60 AS INTEGER ) + + 42 AS col1
----
-185598

query I rowsort
SELECT 69 * 49 col0
----
3381

query II rowsort
SELECT DISTINCT - - 65 * - + 20 + - - 40 * - 30, + 60 AS col0
----
-2500
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL 37 + - COUNT( * ) + + - 88 col1
----
-52

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL 37 + - COUNT ( * ) + + - 88 col1
----
-52

query I rowsort
SELECT 48 * - 74 * - 36
----
127872

query I rowsort
SELECT 92 * - NULLIF ( - - 39, 51 ) AS col1
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - - 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + ( - - SUM( ALL + 52 ) ) * 57 AS col0
----
2964

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + ( - - SUM ( ALL + 52 ) ) * 57 AS col0
----
2964

query I rowsort
SELECT ALL - + 23 + + 77 + + 84 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT + COUNT( * ) * - ( + 36 ) * - - 74 - NULLIF ( + + 71, - ( + COUNT( * ) ) + + 69 ) + + 41 + - 84 * + COUNT( * ) * + - MIN( - - 97 ) * 58 * - COUNT( * ) AS col0
----
-475278

skipif mysql # not compatible
query I rowsort label-9153
SELECT + COUNT ( * ) * - ( + 36 ) * - - 74 - NULLIF ( + + 71, - ( + COUNT ( * ) ) + + 69 ) + + 41 + - 84 * + COUNT ( * ) * + - MIN ( - - 97 ) * 58 * - COUNT ( * ) AS col0
----
-475278

query I rowsort
SELECT DISTINCT + 21 + 79 AS col1
----
100

query I rowsort
SELECT ALL - 5 + - 57
----
-62

query I rowsort
SELECT - ( - ( 46 ) ) AS col0
----
46

query I rowsort
SELECT ALL + 30 + + 63
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT + - 61 * - - 96 * + 92 * CAST( 13 AS SIGNED ) + + - 88 + 80 * + 95 AS col0
----
-6996264

skipif mysql # not compatible
query I rowsort label-9158
SELECT + - 61 * - - 96 * + 92 * CAST ( 13 AS INTEGER ) + + - 88 + 80 * + 95 AS col0
----
-6996264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT 33 * + CASE 16 WHEN + COUNT( * ) * COUNT( * ) + COALESCE ( + 16, + 58 / - 79 + ( - + 44 ) + NULLIF ( COUNT( * ), + MAX( 73 ) * + ( - 67 ) ) - 43 + - - 99 - + 54 ) THEN - - CAST( - 25 AS SIGNED ) + - + 37 * + COUNT( * ) ELSE 5 + + 75 END + 16 AS col2
----
2656

skipif mysql # not compatible
query I rowsort label-9159
SELECT 33 * + CASE 16 WHEN + COUNT ( * ) * COUNT ( * ) + COALESCE ( + 16, + 58 / - 79 + ( - + 44 ) + NULLIF ( COUNT ( * ), + MAX ( 73 ) * + ( - 67 ) ) - 43 + - - 99 - + 54 ) THEN - - CAST ( - 25 AS INTEGER ) + - + 37 * + COUNT ( * ) ELSE 5 + + 75 END + 16 AS col2
----
2656

query I rowsort
SELECT ALL 55 - + - 97 - + - 59
----
211

query I rowsort
SELECT 3 * - - NULLIF ( - 19, 64 )
----
-57

query I rowsort
SELECT ALL 67 * + 95
----
6365

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL - MIN( DISTINCT - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - MIN ( DISTINCT - 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9164
SELECT 79 * + + COUNT( * ) + - - 94 + - MIN( + 95 ) * + + NULLIF ( ( + NULLIF ( + 32, 87 ) ), CAST( NULL AS SIGNED ) * - CASE - 14 WHEN + 14 - 36 THEN NULL WHEN - 65 THEN + - 83 / 23 END + 67 + + ( - + 91 ) + + + 43 ) * + + 53 * - CASE + COUNT( * ) WHEN + + 98 + 44 * - 88 + - - 31 + + 13 * - - 24 - + 20 THEN - 93 + - 63 * - + 94 ELSE NULL END, 1 + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2, - + ( - 14 ) * - 14 * + 25 * 20 AS col0
----
NULL
NULL
-98000

skipif mysql # not compatible
query III rowsort label-9164
SELECT 79 * + + COUNT ( * ) + - - 94 + - MIN ( + 95 ) * + + NULLIF ( ( + NULLIF ( + 32, 87 ) ), CAST ( NULL AS INTEGER ) * - CASE - 14 WHEN + 14 - 36 THEN NULL WHEN - 65 THEN + - 83 / 23 END + 67 + + ( - + 91 ) + + + 43 ) * + + 53 * - CASE + COUNT ( * ) WHEN + + 98 + 44 * - 88 + - - 31 + + 13 * - - 24 - + 20 THEN - 93 + - 63 * - + 94 ELSE NULL END, 1 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2, - + ( - 14 ) * - 14 * + 25 * 20 AS col0
----
NULL
NULL
-98000

query I rowsort
SELECT ALL 20 * 59
----
1180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT 47 DIV - + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9166
SELECT 47 / - + COUNT ( * )
----
-47

query I rowsort
SELECT 18 * + - 80
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT COUNT( * ) DIV - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT COUNT ( * ) / - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT - 63 * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - 63 * COUNT ( * )
----
-63

query I rowsort
SELECT ALL + 8 * - 25
----
-200

query I rowsort
SELECT 84 * ( + 37 ) + 0 * 59 + 35 col2
----
3143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL - 61 + - - ( + - CASE - 85 WHEN 40 * + - 66 + - 71 - + COUNT( * ) THEN NULL WHEN 27 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + 45 THEN - 5 WHEN 6 THEN NULL END ) + NULLIF ( + COUNT( * ), + - MIN( CAST( + - 66 AS SIGNED ) ) ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - 61 + - - ( + - CASE - 85 WHEN 40 * + - 66 + - 71 - + COUNT ( * ) THEN NULL WHEN 27 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 THEN - 5 WHEN 6 THEN NULL END ) + NULLIF ( + COUNT ( * ), + - MIN ( CAST ( + - 66 AS INTEGER ) ) ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT COUNT( * ) - 84 + + COUNT( * ) DIV 44
----
-83

skipif mysql # not compatible
query I rowsort label-9173
SELECT COUNT ( * ) - 84 + + COUNT ( * ) / 44
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT 17 + - - 37 + - 47 DIV + 30 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9174
SELECT 17 + - - 37 + - 47 / + 30 AS col0
----
53

query I rowsort
SELECT + 60 - ( + - 73 ) * + - 52 col1
----
-3736

query I rowsort
SELECT ALL + 69 + 52 col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT COALESCE ( - 55, MIN( ALL 60 ), + 75 ) * 90 + + 18 * + COUNT( 5 ) AS col2
----
-4932

skipif mysql # not compatible
query I rowsort label-9177
SELECT COALESCE ( - 55, MIN ( ALL 60 ), + 75 ) * 90 + + 18 * + COUNT ( 5 ) AS col2
----
-4932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT - - CAST( - 62 AS SIGNED ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9178
SELECT - - CAST ( - 62 AS INTEGER ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + COALESCE ( - 84, 5 ) + - 29 + + - COUNT( + 52 ) * + COUNT( * ) AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + COALESCE ( - 84, 5 ) + - 29 + + - COUNT ( + 52 ) * + COUNT ( * ) AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT + 22 * - COUNT( * ) + - 6 + + + ( + COUNT( + - 35 ) ) - - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + 22 * - COUNT ( * ) + - 6 + + + ( + COUNT ( + - 35 ) ) - - COUNT ( * )
----
-26

query I rowsort
SELECT + 79 * - 84 + - 82
----
-6718

query I rowsort
SELECT ALL 70 * - - 91 + - - 24
----
6394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT + MAX( 52 ) DIV - + NULLIF ( - 81, + COUNT( * ) + + 51 + 55 - + SUM( DISTINCT - - ( 37 ) ) + - + 68 + + + 78 * + 15 * 47 * - - 39 DIV 16 * - 63 ) + + 5 * - - 16 * + + 65
----
5200

skipif mysql # not compatible
query I rowsort label-9183
SELECT + MAX ( 52 ) / - + NULLIF ( - 81, + COUNT ( * ) + + 51 + 55 - + SUM ( DISTINCT - - ( 37 ) ) + - + 68 + + + 78 * + 15 * 47 * - - 39 / 16 * - 63 ) + + 5 * - - 16 * + + 65
----
5200

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT ALL - + 20 * + - 70 + - 68 + - - 54 + - COUNT( * ) AS col2, + 23 - + COUNT( * ) + 39
----
1385
61

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL - + 20 * + - 70 + - 68 + - - 54 + - COUNT ( * ) AS col2, + 23 - + COUNT ( * ) + 39
----
1385
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL - NULLIF ( - MIN( ( + + 13 ) ), - 7 * + - CAST( + 23 AS SIGNED ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - NULLIF ( - MIN ( ( + + 13 ) ), - 7 * + - CAST ( + 23 AS INTEGER ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT + + 7 * - - 49 * + ( + 58 ) * CASE - + COUNT( * ) WHEN + 63 THEN + 82 ELSE - - 37 END
----
736078

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + + 7 * - - 49 * + ( + 58 ) * CASE - + COUNT ( * ) WHEN + 63 THEN + 82 ELSE - - 37 END
----
736078

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COUNT( * ) * 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9187
SELECT COUNT ( * ) * 36 AS col0
----
36

query I rowsort
SELECT ALL + ( + + 63 ) * - + 92
----
-5796

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT COUNT( * ) col1, - 80 + + 73
----
1
-7

skipif mysql # not compatible
query II rowsort label-9189
SELECT COUNT ( * ) col1, - 80 + + 73
----
1
-7

query I rowsort
SELECT 47 * - 48 + 80
----
-2176

query I rowsort
SELECT DISTINCT + 84 * + 33 AS col2
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT 2 DIV - 83 + ( - - 20 ) * 67 * - 99 + 90 + - 58
----
-132628

skipif mysql # not compatible
query I rowsort label-9192
SELECT 2 / - 83 + ( - - 20 ) * 67 * - 99 + 90 + - 58
----
-132628

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT MIN( + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9193
SELECT MIN ( + - 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9194
SELECT ALL - 57 * + 3 - + - ( + 35 ), - 44 DIV + ( + COALESCE ( - + 91, - 75 DIV CASE + - 76 WHEN + 3 THEN 30 ELSE NULL END * + - 6 - MAX( ALL 35 ) + + 36 * - + 8 + + MAX( - + 69 ) + - - COUNT( - + 67 ) + - 8 * - 66 * + 51 DIV - 24 * + - 81, + - CAST( - 71 AS SIGNED ) * + 20 * + 61 ) ) AS col2
----
-136
0

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL - 57 * + 3 - + - ( + 35 ), - 44 / + ( + COALESCE ( - + 91, - 75 / CASE + - 76 WHEN + 3 THEN 30 ELSE NULL END * + - 6 - MAX ( ALL 35 ) + + 36 * - + 8 + + MAX ( - + 69 ) + - - COUNT ( - + 67 ) + - 8 * - 66 * + 51 / - 24 * + - 81, + - CAST ( - 71 AS INTEGER ) * + 20 * + 61 ) ) AS col2
----
-136
0

query I rowsort
SELECT - 2 * - ( - 71 ) col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT + 8 * - - CASE + 63 WHEN 64 THEN - 3 WHEN COUNT( * ) + - + COUNT( * ) THEN SUM( DISTINCT 44 ) END / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT + 8 * - - CASE + 63 WHEN 64 THEN - 3 WHEN COUNT ( * ) + - + COUNT ( * ) THEN SUM ( DISTINCT 44 ) END / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT 2 * + - 95 * - + COUNT( * ) + + COUNT( * ) + + COUNT( * ) * 44 + + COUNT( * )
----
236

skipif mysql # not compatible
query I rowsort label-9197
SELECT 2 * + - 95 * - + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) * 44 + + COUNT ( * )
----
236

query II rowsort
SELECT - 78 - + + 13 AS col1, - 23 AS col0
----
-91
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-9199
SELECT + 92 * 57 DIV + - 39 + + 91 + 18 - + 3 + - 46 * - - 52 + + - 36, - 37 * + + 99 AS col0
----
-2456
-3663

skipif mysql # not compatible
query II rowsort label-9199
SELECT + 92 * 57 / + - 39 + + 91 + 18 - + 3 + - 46 * - - 52 + + - 36, - 37 * + + 99 AS col0
----
-2456
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT MAX( DISTINCT CASE + + ( 72 ) WHEN + 27 / - 62 THEN ( + 95 ) * - - COALESCE ( - 54, 99, + 25 ) - + - ( + 41 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT MAX ( DISTINCT CASE + + ( 72 ) WHEN + 27 / - 62 THEN ( + 95 ) * - - COALESCE ( - 54, 99, + 25 ) - + - ( + 41 ) END )
----
NULL

query I rowsort
SELECT ALL 66 * + CASE + 76 WHEN + - 5 THEN NULL WHEN 38 THEN - 12 WHEN 37 THEN NULL END / - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + 72 * + COUNT( DISTINCT 90 )
----
72

skipif mysql # not compatible
query I rowsort label-9202
SELECT + 72 * + COUNT ( DISTINCT 90 )
----
72

query I rowsort
SELECT DISTINCT 12 * - ( - - 68 ) AS col2
----
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL COUNT( * ) * NULLIF ( + 38, 64 + CAST( + 38 AS SIGNED ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL COUNT ( * ) * NULLIF ( + 38, 64 + CAST ( + 38 AS INTEGER ) ) AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT ALL + + COUNT( * ) + + - 89 DIV + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + + COUNT ( * ) + + - 89 / + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - CASE 11 WHEN + + 19 THEN + 16 WHEN + MAX( - 43 ) THEN - 13 ELSE + - 33 END
----
33

skipif mysql # not compatible
query I rowsort label-9206
SELECT - CASE 11 WHEN + + 19 THEN + 16 WHEN + MAX ( - 43 ) THEN - 13 ELSE + - 33 END
----
33

query I rowsort
SELECT + - 84 * + 72 - + 94 * 44
----
-10184

query I rowsort
SELECT - - 79 + + - 98 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - 11 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT + 10, COUNT( * ) col0
----
10
1

skipif mysql # not compatible
query II rowsort label-9210
SELECT + 10, COUNT ( * ) col0
----
10
1

query II rowsort
SELECT + 97 * 69 AS col1, + 35 AS col2
----
6693
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT + COUNT( ALL - - 6 ) + + 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + COUNT ( ALL - - 6 ) + + 45 AS col2
----
46

query II rowsort
SELECT ALL - 52 AS col0, 31 AS col1
----
-52
31

query I rowsort
SELECT ALL + 74 * - 12 * - + 36
----
31968

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT - 25 DIV - + 69 + - 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-9215
SELECT - 25 / - + 69 + - 19 col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL CASE ( - + COALESCE ( - MIN( - 23 ), - - 14 * - 70 ) ) WHEN + CAST( + + 74 AS SIGNED ) + 52 THEN - 80 ELSE + CAST( + 38 AS SIGNED ) END + SUM( ALL + 90 )
----
128

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL CASE ( - + COALESCE ( - MIN ( - 23 ), - - 14 * - 70 ) ) WHEN + CAST ( + + 74 AS INTEGER ) + 52 THEN - 80 ELSE + CAST ( + 38 AS INTEGER ) END + SUM ( ALL + 90 )
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-9217
SELECT - 94, 75 DIV + - 69 AS col0
----
-94
-1

skipif mysql # not compatible
query II rowsort label-9217
SELECT - 94, 75 / + - 69 AS col0
----
-94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + - ( + + COUNT( * ) ) - + 73
----
-74

skipif mysql # not compatible
query I rowsort label-9218
SELECT + - ( + + COUNT ( * ) ) - + 73
----
-74

query I rowsort
SELECT ALL - 72 * + 81
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - MAX( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - MAX ( - 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + + COUNT( * ) - + 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9221
SELECT + + COUNT ( * ) - + 95 AS col1
----
-94

query I rowsort
SELECT - - 28 * + - 48 * - 91 * - 39 * - - 6
----
-28619136

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - 14 * ( + + MAX( - 84 ) ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 14 * ( + + MAX ( - 84 ) ) AS col1
----
1176

query II rowsort
SELECT 95 col1, 65
----
95
65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9225
SELECT ALL + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9226
SELECT DISTINCT - ( COUNT( * ) ) * + - 38 + + - COALESCE ( + + 40, - 8 + + + 46 + - 4, CAST( 74 AS SIGNED ) DIV + 15 )
----
-2

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - ( COUNT ( * ) ) * + - 38 + + - COALESCE ( + + 40, - 8 + + + 46 + - 4, CAST ( 74 AS INTEGER ) / + 15 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT - 63 * + - 2 + ( + + CAST( NULL AS SIGNED ) ) * - MAX( - 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT - 63 * + - 2 + ( + + CAST ( NULL AS INTEGER ) ) * - MAX ( - 2 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9229
SELECT ALL + 7 * + + 28 * - + CASE + 71 WHEN - 40 THEN + - 3 WHEN 49 * + COUNT( ALL ( - - 41 ) ) * + AVG ( ALL + 57 ) + + 52 THEN + SUM( - - 23 ) + - MAX( DISTINCT - - 15 ) * - 18 + - + COUNT( - 40 ) WHEN - 45 + - 71 THEN - - 9 ELSE + COUNT( * ) END * 63 * + - CAST( NULL AS SIGNED ) / 36, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + 7 * + + 28 * - + CASE + 71 WHEN - 40 THEN + - 3 WHEN 49 * + COUNT ( ALL ( - - 41 ) ) * + AVG ( ALL + 57 ) + + 52 THEN + SUM ( - - 23 ) + - MAX ( DISTINCT - - 15 ) * - 18 + - + COUNT ( - 40 ) WHEN - 45 + - 71 THEN - - 9 ELSE + COUNT ( * ) END * 63 * + - CAST ( NULL AS INTEGER ) / 36, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ( - + 46 ), + 89 * + 43 AS col0
----
-46
3827

query I rowsort
SELECT + 2 + - - 21
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9233
SELECT - 72 DIV MIN( ALL - 78 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT - 72 / MIN ( ALL - 78 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9234
SELECT + CASE + + MAX( DISTINCT + - 74 ) WHEN 55 THEN 27 END * + NULLIF ( + - 24, + - 8 * - - COUNT( * ) * - 22 * - - COUNT( DISTINCT 6 ) * + + 63 + - 25 * + + COALESCE ( CAST( + 12 AS DECIMAL ), + 0 ) ) - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT + CASE + + MAX ( DISTINCT + - 74 ) WHEN 55 THEN 27 END * + NULLIF ( + - 24, + - 8 * - - COUNT ( * ) * - 22 * - - COUNT ( DISTINCT 6 ) * + + 63 + - 25 * + + COALESCE ( CAST ( + 12 AS REAL ), + 0 ) ) - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT NULLIF ( + COUNT( * ), + 74 + - + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-9235
SELECT NULLIF ( + COUNT ( * ), + 74 + - + 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL 43 * - 54 + COUNT( DISTINCT - - 33 ) AS col2
----
-2321

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL 43 * - 54 + COUNT ( DISTINCT - - 33 ) AS col2
----
-2321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT NULLIF ( + 92, + 83 * CAST( - + ( 86 ) AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-9237
SELECT NULLIF ( + 92, + 83 * CAST ( - + ( 86 ) AS INTEGER ) )
----
92

query I rowsort
SELECT DISTINCT - ( + 37 ) * - 82 AS col1
----
3034

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT ALL + ( - 44 ), - COUNT( * ) * + 51 * - 35 AS col0
----
-44
1785

skipif mysql # not compatible
query II rowsort label-9239
SELECT ALL + ( - 44 ), - COUNT ( * ) * + 51 * - 35 AS col0
----
-44
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT COUNT( DISTINCT 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9240
SELECT COUNT ( DISTINCT 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT ALL 87 * + 9 DIV - ( + COUNT( 80 ) ) + + ( 71 )
----
-712

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL 87 * + 9 / - ( + COUNT ( 80 ) ) + + ( 71 )
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) + - ( - 71 )
----
70

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) + - ( - 71 )
----
70

query I rowsort
SELECT - 59 * + 85
----
-5015

query I rowsort
SELECT ALL 70 * 5 + + 24 AS col2
----
374

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT DISTINCT + 11 * - 92 AS col0, - 57 * - CASE - - 26 WHEN - - 52 / 23 * + COUNT( * ) THEN 69 + - + 17 WHEN - 48 * 21 THEN NULL WHEN 43 + - + ( - 9 ) + - 9 THEN NULL END
----
-1012
NULL

skipif mysql # not compatible
query II rowsort label-9245
SELECT DISTINCT + 11 * - 92 AS col0, - 57 * - CASE - - 26 WHEN - - 52 / 23 * + COUNT ( * ) THEN 69 + - + 17 WHEN - 48 * 21 THEN NULL WHEN 43 + - + ( - 9 ) + - 9 THEN NULL END
----
-1012
NULL

query II rowsort
SELECT DISTINCT + + 28 + + - 16 AS col1, - 42 AS col0
----
12
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL + 67 + COUNT( * ) * + - 76
----
-9

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + 67 + COUNT ( * ) * + - 76
----
-9

query I rowsort
SELECT + - 98 + - + 89
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT DISTINCT 83 * CASE - 30 WHEN + 51 - + + 27 - 57 THEN NULL ELSE + CAST( NULL AS SIGNED ) * + ( - ( + - 27 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT 83 * CASE - 30 WHEN + 51 - + + 27 - 57 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + ( - ( + - 27 ) ) END AS col2
----
NULL

query I rowsort
SELECT + 45 - - 75 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9251
SELECT + SUM( + - 42 ) + + 10, 81 * + 55 + + + 83 * + + 44 DIV + COUNT( * ) AS col1
----
-32
8107

skipif mysql # not compatible
query II rowsort label-9251
SELECT + SUM ( + - 42 ) + + 10, 81 * + 55 + + + 83 * + + 44 / + COUNT ( * ) AS col1
----
-32
8107

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT 92 - - + 22 + - 19 * ( - 23 ) * + 89 * + 51 * + - MIN( ALL - + 54 ) AS col0
----
107111436

skipif mysql # not compatible
query I rowsort label-9252
SELECT 92 - - + 22 + - 19 * ( - 23 ) * + 89 * + 51 * + - MIN ( ALL - + 54 ) AS col0
----
107111436

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 95 + MIN( DISTINCT 98 ) + 73 col1
----
266

skipif mysql # not compatible
query I rowsort label-9253
SELECT 95 + MIN ( DISTINCT 98 ) + 73 col1
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT + COUNT( * ) - 98 - - - MAX( 72 ) * + 15 * - ( + - 61 ) AS col0
----
-65977

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + COUNT ( * ) - 98 - - - MAX ( 72 ) * + 15 * - ( + - 61 ) AS col0
----
-65977

query I rowsort
SELECT 72 + + ( - 64 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 84 * + - COUNT( * ) + - 26
----
-110

skipif mysql # not compatible
query I rowsort label-9256
SELECT 84 * + - COUNT ( * ) + - 26
----
-110

query I rowsort
SELECT ALL - 11 * + - 44 AS col1
----
484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT - 65 DIV - MIN( DISTINCT + 90 ) + + ( + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9258
SELECT - 65 / - MIN ( DISTINCT + 90 ) + + ( + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - COUNT( DISTINCT 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - COUNT ( DISTINCT 14 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT 39 DIV 12 + 69 DIV 60 DIV + + 87
----
3

skipif mysql # not compatible
query I rowsort label-9260
SELECT 39 / 12 + 69 / 60 / + + 87
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT - COUNT( * ) DIV - 49 + + + COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9261
SELECT - COUNT ( * ) / - 49 + + + COUNT ( 34 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL + CAST( NULL AS SIGNED ) * - + 81 * + + 96 * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 81 * + + 96 * + 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9263
SELECT COALESCE ( + 30, - + 47 DIV + - 80 + + - 55 - + 85 - - - 89 * 94, - + 51 ) * + + CASE - 28 WHEN + ( 33 ) THEN + 62 * ( + - 9 ) + - 91 + + 50 - - + COUNT( * ) WHEN - - COUNT( * ) THEN COUNT( * ) * - COUNT( ( - - 72 ) ) DIV - + 71 + + NULLIF ( CASE - ( 60 ) WHEN - 39 THEN 17 END, 65 ) + + 78 WHEN 2 THEN - 66 + - 51 - + 80 ELSE - 94 END, COUNT( DISTINCT - 67 ) AS col0
----
-2820
1

skipif mysql # not compatible
query II rowsort label-9263
SELECT COALESCE ( + 30, - + 47 / + - 80 + + - 55 - + 85 - - - 89 * 94, - + 51 ) * + + CASE - 28 WHEN + ( 33 ) THEN + 62 * ( + - 9 ) + - 91 + + 50 - - + COUNT ( * ) WHEN - - COUNT ( * ) THEN COUNT ( * ) * - COUNT ( ( - - 72 ) ) / - + 71 + + NULLIF ( CASE - ( 60 ) WHEN - 39 THEN 17 END, 65 ) + + 78 WHEN 2 THEN - 66 + - 51 - + 80 ELSE - 94 END, COUNT ( DISTINCT - 67 ) AS col0
----
-2820
1

query I rowsort
SELECT 54 * - 75 AS col2
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT 57 + + ( + 99 ) + + - 80 * - ( + 44 ) + + - COUNT( - 10 ) * 86 * COUNT( * ) * + 2 * - - 81 col0
----
-10256

skipif mysql # not compatible
query I rowsort label-9265
SELECT 57 + + ( + 99 ) + + - 80 * - ( + 44 ) + + - COUNT ( - 10 ) * 86 * COUNT ( * ) * + 2 * - - 81 col0
----
-10256

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT - MAX( DISTINCT 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - MAX ( DISTINCT 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9267
SELECT ALL - CAST( NULL AS DECIMAL ) + + - 44 * - 35 - - 54 + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - CAST ( NULL AS REAL ) + + - 44 * - 35 - - 54 + - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT DISTINCT + CAST( + + 27 AS SIGNED ) + + 96 + + + 53 * - 53 AS col0
----
-2686

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + CAST ( + + 27 AS INTEGER ) + + 96 + + + 53 * - 53 AS col0
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT 56 * - CASE - + COALESCE ( - + 57, + + MAX( - 2 ) / 67 ) WHEN + 14 * + + COUNT( * ) / + 20 + - 68 * - CAST( NULL AS SIGNED ) THEN - - 9 WHEN MAX( + 62 ) * + 92 - + + 69 THEN - 34 * + 44 * 43 + 28 - - + 33 + + 29 / - 52 * + + MAX( 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT 56 * - CASE - + COALESCE ( - + 57, + + MAX ( - 2 ) / 67 ) WHEN + 14 * + + COUNT ( * ) / + 20 + - 68 * - CAST ( NULL AS INTEGER ) THEN - - 9 WHEN MAX ( + 62 ) * + 92 - + + 69 THEN - 34 * + 44 * 43 + 28 - - + 33 + + 29 / - 52 * + + MAX ( 41 ) END
----
NULL

query I rowsort
SELECT ALL + 76 + - 65
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT + 31 AS col0, - 34 + - COUNT( * ) col0
----
31
-35

skipif mysql # not compatible
query II rowsort label-9271
SELECT + 31 AS col0, - 34 + - COUNT ( * ) col0
----
31
-35

query I rowsort
SELECT 77 * 71 + 38
----
5505

query I rowsort
SELECT 78 + 39 AS col0
----
117

query I rowsort
SELECT DISTINCT - 4 + + 23
----
19

query III rowsort
SELECT ALL + 50 * 68 * - 39 AS col2, 56 * 72 * + 42 AS col2, - 75 * - 95 AS col2
----
-132600
169344
7125

query I rowsort
SELECT + ( - 68 ) * - 6 + + 71 + - 36 - - 84 * + 99 AS col1
----
8759

query II rowsort
SELECT - 99 AS col2, 25 * - 36 * + 15 AS col1
----
-99
-13500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9278
SELECT ALL - 99 * - + CAST( + - 62 AS SIGNED ), 15 * + + ( - 32 ) AS col1
----
-6138
-480

skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL - 99 * - + CAST ( + - 62 AS INTEGER ), 15 * + + ( - 32 ) AS col1
----
-6138
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT DISTINCT COUNT( * ), 32 * + - 67 AS col1
----
1
-2144

skipif mysql # not compatible
query II rowsort label-9279
SELECT DISTINCT COUNT ( * ), 32 * + - 67 AS col1
----
1
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT COUNT( * ) + + 24 * 14 * + 84 * - ( + - 13 ) * + 53 * CASE + 81 WHEN 28 THEN 69 + + - 71 END + 95 + - COUNT( * ) + - + 47 / + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT COUNT ( * ) + + 24 * 14 * + 84 * - ( + - 13 ) * + 53 * CASE + 81 WHEN 28 THEN 69 + + - 71 END + 95 + - COUNT ( * ) + - + 47 / + 72 col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 50 )
----
-50

query I rowsort
SELECT ALL + 38 * + + 20
----
760

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT DISTINCT - 20 AS col1, COUNT( ALL + 22 )
----
-20
1

skipif mysql # not compatible
query II rowsort label-9283
SELECT DISTINCT - 20 AS col1, COUNT ( ALL + 22 )
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL ( - COUNT( * ) ) - - - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL ( - COUNT ( * ) ) - - - 16 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - NULLIF ( + COUNT( * ), - + 41 + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT - NULLIF ( + COUNT ( * ), - + 41 + 20 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( * ) * + 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) * + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT CAST( 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT CAST ( 68 AS INTEGER ) AS col2
----
68

query II rowsort
SELECT ALL + 74, 85 + + 32 * - - 79 AS col1
----
74
2613

query I rowsort
SELECT ALL 17 * - 66
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT - SUM( ALL + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9290
SELECT - SUM ( ALL + 52 ) AS col0
----
-52

query I rowsort
SELECT + 56 + + 76
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT ALL - 6 * - 91 + + 59 DIV + 44 AS col1
----
547

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - 6 * - 91 + + 59 / + 44 AS col1
----
547

onlyif mysql # DIV for integer division: 
query II rowsort label-9293
SELECT + 96 * + 46 + + - 19 AS col0, NULLIF ( + 63, 97 * + 81 + - - ( 15 ) + - 72 ) + 25 + - + ( 14 ) DIV + 20
----
4397
88

skipif mysql # not compatible
query II rowsort label-9293
SELECT + 96 * + 46 + + - 19 AS col0, NULLIF ( + 63, 97 * + 81 + - - ( 15 ) + - 72 ) + 25 + - + ( 14 ) / + 20
----
4397
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL COUNT( - CAST( 11 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL COUNT ( - CAST ( 11 AS INTEGER ) ) col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9295
SELECT DISTINCT 44 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT 44 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 17 * - 59 col0
----
-1003

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT DISTINCT ( COUNT( ALL - 19 ) ) * - 31 AS col1, 7 AS col1
----
-31
7

skipif mysql # not compatible
query II rowsort label-9297
SELECT DISTINCT ( COUNT ( ALL - 19 ) ) * - 31 AS col1, 7 AS col1
----
-31
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT 2 - - COUNT( + 29 )
----
3

skipif mysql # not compatible
query I rowsort label-9298
SELECT 2 - - COUNT ( + 29 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + MIN( ALL + + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9299
SELECT + MIN ( ALL + + 31 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT MIN( + 88 ), + 41 AS col2
----
88
41

skipif mysql # not compatible
query II rowsort label-9300
SELECT MIN ( + 88 ), + 41 AS col2
----
88
41

query I rowsort
SELECT ALL 43 + - 58 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 79 * 26 - + COUNT( * )
----
-2055

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 79 * 26 - + COUNT ( * )
----
-2055

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT ( - 5 ) + + 29 * + - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT ( - 5 ) + + 29 * + - COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT + 63 * - - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + 63 * - - COUNT ( * ) AS col2
----
63

query I rowsort
SELECT ALL 83 + 27
----
110

query I rowsort
SELECT ( + 64 ) * + 4
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT MAX( DISTINCT - 32 ) * - - 66 + + + 31 + - + 74 * + 67 + + 10 * - - 44 - - 63 AS col2, 95 AS col0
----
-6536
95

skipif mysql # not compatible
query II rowsort label-9307
SELECT MAX ( DISTINCT - 32 ) * - - 66 + + + 31 + - + 74 * + 67 + + 10 * - - 44 - - 63 AS col2, 95 AS col0
----
-6536
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT DISTINCT + 63 * - 97, 68 * - 4 + - + COUNT( * ) AS col2
----
-6111
-273

skipif mysql # not compatible
query II rowsort label-9308
SELECT DISTINCT + 63 * - 97, 68 * - 4 + - + COUNT ( * ) AS col2
----
-6111
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL - MIN( DISTINCT + + 89 ) - + ( 33 ) - 38 * - + COUNT( * ) - + 35
----
-119

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - MIN ( DISTINCT + + 89 ) - + ( 33 ) - 38 * - + COUNT ( * ) - + 35
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT DISTINCT + + CAST( 37 AS SIGNED ) - + 98 + 25 * - 10 - - 95 col1
----
-216

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + + CAST ( 37 AS INTEGER ) - + 98 + 25 * - 10 - - 95 col1
----
-216

query I rowsort
SELECT ALL - + ( 58 )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT ALL + 62 DIV COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + 62 / COUNT ( * )
----
62

query I rowsort
SELECT - 35 * 58 AS col0
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + 44 + - COUNT( - - 88 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9314
SELECT + 44 + - COUNT ( - - 88 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT CASE - 40 WHEN - COUNT( * ) THEN NULL WHEN + NULLIF ( 43, 42 ) + - 27 + + - 73 / + 63 * 32 THEN - ( - 81 ) / 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT CASE - 40 WHEN - COUNT ( * ) THEN NULL WHEN + NULLIF ( 43, 42 ) + - 27 + + - 73 / + 63 * 32 THEN - ( - 81 ) / 71 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9316
SELECT - + NULLIF ( + ( + - 66 ), COUNT( * ) - ( + 21 ) + - 90 ) + 2 + - 86 AS col1, + NULLIF ( - - MAX( ALL 97 ), CASE - COUNT( * ) WHEN - + ( 22 ) THEN + COUNT( * ) * - + 41 ELSE + ( + CAST( NULL AS SIGNED ) ) END ) AS col1
----
-18
97

skipif mysql # not compatible
query II rowsort label-9316
SELECT - + NULLIF ( + ( + - 66 ), COUNT ( * ) - ( + 21 ) + - 90 ) + 2 + - 86 AS col1, + NULLIF ( - - MAX ( ALL 97 ), CASE - COUNT ( * ) WHEN - + ( 22 ) THEN + COUNT ( * ) * - + 41 ELSE + ( + CAST ( NULL AS INTEGER ) ) END ) AS col1
----
-18
97

query I rowsort
SELECT - - 46 * + 11 * - 3 AS col1
----
-1518

query I rowsort
SELECT ALL + NULLIF ( + 33, + 91 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT - CASE - 12 WHEN COUNT( ALL - 34 ) THEN 88 WHEN - CAST( 93 AS SIGNED ) * + 32 * - 52 + - ( 94 ) * - + COUNT( * ) + MIN( DISTINCT 12 ) * MIN( + 60 ) + - 79 THEN NULL END - 99 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT - CASE - 12 WHEN COUNT ( ALL - 34 ) THEN 88 WHEN - CAST ( 93 AS INTEGER ) * + 32 * - 52 + - ( 94 ) * - + COUNT ( * ) + MIN ( DISTINCT 12 ) * MIN ( + 60 ) + - 79 THEN NULL END - 99 * - 12
----
NULL

query I rowsort
SELECT ALL - - 19 * + 39 + + 94 AS col0
----
835

query I rowsort
SELECT - 93 + + + 88
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL 37 / + 61 + + - COUNT( * ) - - CASE - 2 WHEN - + CAST( NULL AS SIGNED ) THEN - + COUNT( * ) ELSE NULL END + + - 19 * - - ( 33 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL 37 / + 61 + + - COUNT ( * ) - - CASE - 2 WHEN - + CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) ELSE NULL END + + - 19 * - - ( 33 ) * - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT - - 63 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT - - 63 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL + MIN( 23 ) + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL + MIN ( 23 ) + + COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - COUNT( + 6 ) + ( + 92 ) * - SUM( + 26 )
----
-2393

skipif mysql # not compatible
query I rowsort label-9325
SELECT - COUNT ( + 6 ) + ( + 92 ) * - SUM ( + 26 )
----
-2393

query I rowsort
SELECT + 85 - 29 * 0 * + 40 AS col1
----
85

query I rowsort
SELECT ALL COALESCE ( 90, - 99, + 45 * + 90 * - 79 ) col1
----
90

query I rowsort
SELECT - 55 + + 72 - - 83 AS col1
----
100

query I rowsort
SELECT DISTINCT 85 + + 10
----
95

query I rowsort
SELECT ALL 43 + 1 AS col1
----
44

query I rowsort
SELECT - 49 + - 61
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - 94 + + 14 + + + CAST( 33 AS SIGNED ) * COUNT( * ) * + 44 + - + 78 * + - 43
----
4726

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - 94 + + 14 + + + CAST ( 33 AS INTEGER ) * COUNT ( * ) * + 44 + - + 78 * + - 43
----
4726

query I rowsort
SELECT + 25 + - 14 AS col1
----
11

query I rowsort
SELECT ALL 37 * - 15 * - - 10 AS col1
----
-5550

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT + 13 * - 66 + + COUNT( * ), + 5 AS col2
----
-857
5

skipif mysql # not compatible
query II rowsort label-9335
SELECT + 13 * - 66 + + COUNT ( * ), + 5 AS col2
----
-857
5

query I rowsort
SELECT ALL - 38 * - - 50 + + 22 + - 64
----
-1942

query I rowsort
SELECT + 95 * + + 77
----
7315

query I rowsort
SELECT - 7 + + 21
----
14

query I rowsort
SELECT ( + 32 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9340
SELECT + ( - - COUNT( DISTINCT + - CAST( NULL AS DECIMAL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT + ( - - COUNT ( DISTINCT + - CAST ( NULL AS REAL ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9341
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 79 * - 61 * + 85 - + 16 * - 96 * + 24 * - 75, + 50 * - 34 AS col1
----
NULL
-1700

skipif mysql # not compatible
query II rowsort label-9341
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 79 * - 61 * + 85 - + 16 * - 96 * + 24 * - 75, + 50 * - 34 AS col1
----
NULL
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + 59 * + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 59 * + + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT + 37 * ( + ( + - MIN( DISTINCT + 78 ) ) ) * - 53 + - 14 * 27, 65 AS col0
----
152580
65

skipif mysql # not compatible
query II rowsort label-9343
SELECT + 37 * ( + ( + - MIN ( DISTINCT + 78 ) ) ) * - 53 + - 14 * 27, 65 AS col0
----
152580
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9344
SELECT ALL 35 DIV CASE SUM( - 94 ) WHEN 89 + + COUNT( * ) THEN 41 ELSE 10 END
----
3

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL 35 / CASE SUM ( - 94 ) WHEN 89 + + COUNT ( * ) THEN 41 ELSE 10 END
----
3

query I rowsort
SELECT + 74 * 99 + 29 * + 72 AS col0
----
9414

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT CASE 8 WHEN + 24 * 71 + + ( + MIN( ALL 82 ) - - 41 ) THEN NULLIF ( + ( 5 ), + NULLIF ( 90, 18 ) ) WHEN 74 * 68 THEN - ( 17 ) * 60 + 77 * 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT CASE 8 WHEN + 24 * 71 + + ( + MIN ( ALL 82 ) - - 41 ) THEN NULLIF ( + ( 5 ), + NULLIF ( 90, 18 ) ) WHEN 74 * 68 THEN - ( 17 ) * 60 + 77 * 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - 92 * COALESCE ( 98, - 23 * + COUNT( * ), - 25 + + COUNT( * ) * - 36 ) + + 86
----
-8930

skipif mysql # not compatible
query I rowsort label-9347
SELECT - 92 * COALESCE ( 98, - 23 * + COUNT ( * ), - 25 + + COUNT ( * ) * - 36 ) + + 86
----
-8930

query I rowsort
SELECT - 58 * + 2 AS col1
----
-116

query I rowsort
SELECT ALL 64 * 11 AS col2
----
704

query I rowsort
SELECT 51 * + 44 + 73 * + ( 25 * + 70 )
----
129994

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL CASE + 31 WHEN - 95 + - COUNT( * ) THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL CASE + 31 WHEN - 95 + - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 63 + 58 AS col2
----
121

query I rowsort
SELECT + 22 * + 69
----
1518

query I rowsort
SELECT ALL 28 * 91
----
2548

query I rowsort
SELECT DISTINCT COALESCE ( ( 56 ), 33 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9356
SELECT ALL CASE 17 WHEN + 61 THEN CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL CASE 17 WHEN + 61 THEN CAST ( NULL AS REAL ) END AS col0
----
NULL

query I rowsort
SELECT - 16 + - 6 * 61
----
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL MIN( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL MIN ( 95 ) AS col0
----
95

query I rowsort
SELECT - 9 + 17
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT - 80 DIV - COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT - 80 / - COUNT ( * ) col2
----
80

query I rowsort
SELECT ALL + ( - ( 99 ) ) + + 55 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT - CAST( 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-9362
SELECT - CAST ( 21 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT ALL - CASE WHEN 46 NOT IN ( + 25 + 63 * 74 ) THEN - 37 DIV COUNT( * ) END * - 45
----
-1665

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - CASE WHEN 46 NOT IN ( + 25 + 63 * 74 ) THEN - 37 / COUNT ( * ) END * - 45
----
-1665

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9364
SELECT - 56 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT - 56 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT - 62 + 42 DIV - 67 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9365
SELECT - 62 + 42 / - 67 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT DISTINCT 79 DIV - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT 79 / - 50 AS col1
----
-1

query I rowsort
SELECT ALL + 89 + - 77 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT ALL CASE - COUNT( * ) WHEN - CAST( AVG ( + 48 ) AS SIGNED ) THEN NULL ELSE - NULLIF ( + ( + COUNT( * ) ), COUNT( * ) - 26 ) + 84 * - COUNT( * ) END AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL CASE - COUNT ( * ) WHEN - CAST ( AVG ( + 48 ) AS INTEGER ) THEN NULL ELSE - NULLIF ( + ( + COUNT ( * ) ), COUNT ( * ) - 26 ) + 84 * - COUNT ( * ) END AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT DISTINCT CAST( 4 AS SIGNED ) col2
----
4

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT CAST ( 4 AS INTEGER ) col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL CAST( - 98 AS SIGNED ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL CAST ( - 98 AS INTEGER ) AS col2
----
-98

query I rowsort
SELECT DISTINCT + COALESCE ( - 19, ( - 39 ), 36 * 63 - - 3 ) + 76 * 9 AS col2
----
665

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT + 8 + + 99 DIV - 61 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + 8 + + 99 / - 61 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT DISTINCT ( CAST( ( 91 ) AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT ( CAST ( ( 91 ) AS INTEGER ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - 90 - - COUNT( * ) * 9 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 90 - - COUNT ( * ) * 9 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - CASE 68 WHEN + 6 - + 96 THEN + 37 + + 88 WHEN - 55 + 57 THEN 57 ELSE + MIN( ALL 39 ) END * - 73 AS col0
----
2847

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CASE 68 WHEN + 6 - + 96 THEN + 37 + + 88 WHEN - 55 + 57 THEN 57 ELSE + MIN ( ALL 39 ) END * - 73 AS col0
----
2847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL CAST( 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL CAST ( 24 AS INTEGER )
----
24

query I rowsort
SELECT + 72 * + 57 AS col0
----
4104

query I rowsort
SELECT DISTINCT + ( 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - COUNT( * ) + ( - 20 ) * + 21 AS col1
----
-421

skipif mysql # not compatible
query I rowsort label-9379
SELECT - COUNT ( * ) + ( - 20 ) * + 21 AS col1
----
-421

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + CASE MAX( 20 ) WHEN COUNT( DISTINCT CASE 77 WHEN - 7 THEN NULL WHEN - 92 - + 26 THEN 59 END ) THEN + MIN( ALL 90 ) ELSE - 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + CASE MAX ( 20 ) WHEN COUNT ( DISTINCT CASE 77 WHEN - 7 THEN NULL WHEN - 92 - + 26 THEN 59 END ) THEN + MIN ( ALL 90 ) ELSE - 56 END
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT ALL 14 DIV COUNT( * ) - 81 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL 14 / COUNT ( * ) - 81 AS col1
----
-67

query I rowsort
SELECT - 36 * - 23
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL 47 * COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL 47 * COUNT ( * ) AS col2
----
47

query I rowsort
SELECT DISTINCT - 46 * + 84
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT + CASE 77 WHEN + ( 76 ) * 51 + 61 / COUNT( ALL ( 79 ) - 25 ) THEN NULL WHEN 2 THEN 67 + - 71 WHEN 74 THEN - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + CASE 77 WHEN + ( 76 ) * 51 + 61 / COUNT ( ALL ( 79 ) - 25 ) THEN NULL WHEN 2 THEN 67 + - 71 WHEN 74 THEN - 28 END AS col2
----
NULL

query I rowsort
SELECT ALL - 28 * + 51 AS col2
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT + - COALESCE ( 84, - 38, COUNT( * ) * - ( - 24 * COALESCE ( 65, 75 ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + - COALESCE ( 84, - 38, COUNT ( * ) * - ( - 24 * COALESCE ( 65, 75 ) ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT + 73 * + ( - COUNT( * ) DIV 17 + + 61 ) + - 0
----
4453

skipif mysql # not compatible
query I rowsort label-9388
SELECT + 73 * + ( - COUNT ( * ) / 17 + + 61 ) + - 0
----
4453

query I rowsort
SELECT + - ( - 96 ) AS col1
----
96

query I rowsort
SELECT 67 * + 47
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT 15 * + COUNT( * ) - 26 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9391
SELECT 15 * + COUNT ( * ) - 26 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT CASE + COUNT( * ) WHEN + CAST( + 95 AS SIGNED ) + 64 THEN + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT CASE + COUNT ( * ) WHEN + CAST ( + 95 AS INTEGER ) + 64 THEN + 10 END AS col1
----
NULL

query I rowsort
SELECT ALL - 18 + 1 col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT ALL - COUNT( * ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - COUNT ( * ) / - 66
----
0

query I rowsort
SELECT ALL + 32 + 55 AS col2
----
87

query I rowsort
SELECT ALL - 27 + + 33 * ( - 25 )
----
-852

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT + 89 DIV + 88
----
1

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 89 / + 88
----
1

query I rowsort
SELECT DISTINCT 68 * 86 AS col1
----
5848

query I rowsort
SELECT ALL + 83 + 60
----
143

query I rowsort
SELECT - 93 * 37 + + 97
----
-3344

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT ALL 95 + + 36 DIV 11 col0
----
98

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL 95 + + 36 / 11 col0
----
98

query I rowsort
SELECT ALL 39 + - 66
----
-27

query I rowsort
SELECT ALL + 94 + - 82 * + 10 AS col0
----
-726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL CAST( NULL AS SIGNED ) + - - 40 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL CAST ( NULL AS INTEGER ) + - - 40 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT CASE + MAX( ALL - 58 ) WHEN 52 THEN + 94 ELSE + 56 END + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9405
SELECT CASE + MAX ( ALL - 58 ) WHEN 52 THEN + 94 ELSE + 56 END + COUNT ( * )
----
57

query I rowsort
SELECT ALL + 22 + + + 56 * 50 AS col0
----
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT 63 * MIN( + 42 ) AS col2
----
2646

skipif mysql # not compatible
query I rowsort label-9407
SELECT 63 * MIN ( + 42 ) AS col2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 66 + + MAX( ALL 88 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-9408
SELECT 66 + + MAX ( ALL 88 ) AS col1
----
154

query I rowsort
SELECT 37 + 49 + - 43 * - 93 AS col1
----
4085

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT ALL + 31 DIV + + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + 31 / + + 77 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT COALESCE ( COUNT( * ), 82 DIV 85, - 4, + 84 ) + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9411
SELECT COALESCE ( COUNT ( * ), 82 / 85, - 4, + 84 ) + 31 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT 82 - 34 + + 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT 82 - 34 + + 12 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + - 82 ) * 84
----
-6888

query I rowsort
SELECT 56 + 90 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT 91 + + - 94 * - COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-9415
SELECT 91 + + - 94 * - COUNT ( * )
----
185

query I rowsort
SELECT ALL - 59 - 32
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT + 4 * COALESCE ( + 0, COUNT( * ) + - ( - 83 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + 4 * COALESCE ( + 0, COUNT ( * ) + - ( - 83 ) ) AS col0
----
0

query I rowsort
SELECT ALL 24 * 53 AS col1
----
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT 72 + + COUNT( ALL + 83 )
----
73

skipif mysql # not compatible
query I rowsort label-9419
SELECT 72 + + COUNT ( ALL + 83 )
----
73

query I rowsort
SELECT DISTINCT 59 * ( - 48 ) * 3
----
-8496

query I rowsort
SELECT ALL - 59 * + - ( + 19 ) col0
----
1121

query I rowsort
SELECT DISTINCT - ( 89 ) col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT ALL + 59 DIV - 5 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + 59 / - 5 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT 97 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-9424
SELECT 97 / 50
----
1

query I rowsort
SELECT ALL - NULLIF ( - + 42, ( - 90 ) ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - 97 + COUNT( * ) + + 55
----
-41

skipif mysql # not compatible
query I rowsort label-9426
SELECT - 97 + COUNT ( * ) + + 55
----
-41

query I rowsort
SELECT - 71 + - ( + 69 )
----
-140

query I rowsort
SELECT DISTINCT - + ( - - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 24 * - 31 * CASE + COALESCE ( 79, - 3, + 2 ) WHEN - 77 + 53 THEN 74 * + 51 + - 94 ELSE - COUNT( * ) - 43 END AS col1
----
-32736

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 24 * - 31 * CASE + COALESCE ( 79, - 3, + 2 ) WHEN - 77 + 53 THEN 74 * + 51 + - 94 ELSE - COUNT ( * ) - 43 END AS col1
----
-32736

query I rowsort
SELECT ALL + NULLIF ( - - ( 8 ), + 79 + 90 ) + + 87
----
95

query I rowsort
SELECT - 21 * 80 + + 72 * 29 AS col2
----
408

query I rowsort
SELECT DISTINCT - + 12 + - 5 AS col0
----
-17

query I rowsort
SELECT ALL + 78 * - + 81 col0
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT SUM( ALL - + 8 ) + + 15
----
7

skipif mysql # not compatible
query I rowsort label-9434
SELECT SUM ( ALL - + 8 ) + + 15
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT MIN( 70 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT MIN ( 70 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 0 * - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - + COUNT( * ) + 61 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - + COUNT ( * ) + 61 AS col2
----
60

query I rowsort
SELECT 10 - + - ( 8 )
----
18

query I rowsort
SELECT 40 * 59 AS col2
----
2360

query I rowsort
SELECT - + 41 * ( 83 ) + 53 + + ( - 8 )
----
-3358

query I rowsort
SELECT ALL + 95 + 57
----
152

query I rowsort
SELECT 30 + ( 70 ) col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT ALL - ( - COUNT( * ) ) + + CAST( 13 AS SIGNED ) * 80
----
1041

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - ( - COUNT ( * ) ) + + CAST ( 13 AS INTEGER ) * 80
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT MIN( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-9444
SELECT MIN ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT - + 95 + - 28 * COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT - + 95 + - 28 * COUNT ( * )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL COALESCE ( + - COUNT( * ), + COUNT( DISTINCT 64 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL COALESCE ( + - COUNT ( * ), + COUNT ( DISTINCT 64 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 26 * - 66 * - SUM( - 97 ) + + 51 AS col2
----
-166401

skipif mysql # not compatible
query I rowsort label-9447
SELECT 26 * - 66 * - SUM ( - 97 ) + + 51 AS col2
----
-166401

query I rowsort
SELECT ALL - 89 - - - 63 AS col2
----
-152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9449
SELECT ALL + CAST( NULL AS DECIMAL ) / + - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + CAST ( NULL AS REAL ) / + - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9450
SELECT 68 AS col1, - 89 + CAST( - AVG ( DISTINCT + 84 ) AS SIGNED ) AS col0
----
68
-173

skipif mysql # not compatible
query II rowsort label-9450
SELECT 68 AS col1, - 89 + CAST ( - AVG ( DISTINCT + 84 ) AS INTEGER ) AS col0
----
68
-173

query I rowsort
SELECT ALL 14 - + 76 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ( + COALESCE ( + - 14, + 68 ) ) * NULLIF ( + 48 - 61 * 78, - 97 + 61 * COUNT( * ) ) AS col2
----
65940

skipif mysql # not compatible
query I rowsort label-9452
SELECT ( + COALESCE ( + - 14, + 68 ) ) * NULLIF ( + 48 - 61 * 78, - 97 + 61 * COUNT ( * ) ) AS col2
----
65940

query I rowsort
SELECT 37 * - + 28 * 28 col1
----
-29008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT 76 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT 76 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 * - 99 AS col0
----
-1881

onlyif mysql # DIV for integer division: 
query II rowsort label-9456
SELECT - 6 AS col2, + 62 DIV - 37 + - 94
----
-6
-95

skipif mysql # not compatible
query II rowsort label-9456
SELECT - 6 AS col2, + 62 / - 37 + - 94
----
-6
-95

query I rowsort
SELECT ( - 46 ) + + 3 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT DISTINCT 22, + 59 * COUNT( * ) + + 89 col0
----
22
148

skipif mysql # not compatible
query II rowsort label-9458
SELECT DISTINCT 22, + 59 * COUNT ( * ) + + 89 col0
----
22
148

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT 92, + COALESCE ( + 67, - COUNT( * ), 23 ) AS col2
----
92
67

skipif mysql # not compatible
query II rowsort label-9459
SELECT 92, + COALESCE ( + 67, - COUNT ( * ), 23 ) AS col2
----
92
67

query I rowsort
SELECT 0 * - 57 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT + ( - - CAST( NULL AS SIGNED ) ) - - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT + ( - - CAST ( NULL AS INTEGER ) ) - - + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT - 36, + 73 + - COUNT( * ) AS col0
----
-36
72

skipif mysql # not compatible
query II rowsort label-9462
SELECT - 36, + 73 + - COUNT ( * ) AS col0
----
-36
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT 32 * - + ( 61 ) - 39 + + COUNT( ALL 93 )
----
-1990

skipif mysql # not compatible
query I rowsort label-9463
SELECT 32 * - + ( 61 ) - 39 + + COUNT ( ALL 93 )
----
-1990

query I rowsort
SELECT ALL + 68 * + 75 AS col0
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL + COUNT( * ) * + + 28 + + + 76
----
104

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + COUNT ( * ) * + + 28 + + + 76
----
104

query I rowsort
SELECT ALL + - 18 * + 81 * - 24 + 48 AS col0
----
35040

query I rowsort
SELECT ALL + 7 * 17 - - 85
----
204

query I rowsort
SELECT DISTINCT + 49 * 49 AS col1
----
2401

query II rowsort
SELECT DISTINCT + 4, - 64 * + 44 col0
----
4
-2816

query I rowsort
SELECT + + ( - 44 ) * 63
----
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT - - 36 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT - - 36 / - 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT - - COUNT( * ) DIV + - 9 * ( - 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9472
SELECT - - COUNT ( * ) / + - 9 * ( - 38 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT + - 33 * + 94 + - - 34 - 25 * + 55 + COALESCE ( 47 + 5, + COUNT( * ) * - COUNT( * ), + COUNT( * ) + + 89 )
----
-4391

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT + - 33 * + 94 + - - 34 - 25 * + 55 + COALESCE ( 47 + 5, + COUNT ( * ) * - COUNT ( * ), + COUNT ( * ) + + 89 )
----
-4391

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + + ( CASE + + 29 WHEN - MIN( ALL + 99 ) * - 9 THEN - 76 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT + + ( CASE + + 29 WHEN - MIN ( ALL + 99 ) * - 9 THEN - 76 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + + SUM( - - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + + SUM ( - - 64 ) AS col1
----
64

query I rowsort
SELECT DISTINCT + ( 32 ) * + 25 + - 80 col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL + - 22 * + COUNT( * ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + - 22 * + COUNT ( * ) col1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-9478
SELECT 16, + 49 DIV + ( 78 ) col0
----
16
0

skipif mysql # not compatible
query II rowsort label-9478
SELECT 16, + 49 / + ( 78 ) col0
----
16
0

query I rowsort
SELECT DISTINCT 99 * + 99 col0
----
9801

query I rowsort
SELECT 58 * 36 + + 67
----
2155

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + MAX( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + MAX ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - COUNT( ALL + 76 ) + + 63 + 35 - - 30 * COUNT( * ) col2
----
127

skipif mysql # not compatible
query I rowsort label-9482
SELECT - COUNT ( ALL + 76 ) + + 63 + 35 - - 30 * COUNT ( * ) col2
----
127

query I rowsort
SELECT + ( - 89 ) * - - 91 * 49 AS col0
----
-396851

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT MIN( DISTINCT + + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9484
SELECT MIN ( DISTINCT + + 41 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9485
SELECT ALL - 58 - + CAST( + + NULLIF ( - COALESCE ( COUNT( * ), 40 ), MIN( DISTINCT 49 ) ) AS SIGNED ) DIV - 79 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - 58 - + CAST ( + + NULLIF ( - COALESCE ( COUNT ( * ), 40 ), MIN ( DISTINCT 49 ) ) AS INTEGER ) / - 79 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9486
SELECT 68 * - COUNT( * ) * - + 56 * + 63 + COALESCE ( + 68, COUNT( * ) * NULLIF ( CASE ( + COUNT( * ) ) WHEN CAST( + 3 AS DECIMAL ) THEN NULL ELSE COUNT( * ) + 91 END * COUNT( * ), 93 ) ) AS col2
----
239972

skipif mysql # not compatible
query I rowsort label-9486
SELECT 68 * - COUNT ( * ) * - + 56 * + 63 + COALESCE ( + 68, COUNT ( * ) * NULLIF ( CASE ( + COUNT ( * ) ) WHEN CAST ( + 3 AS REAL ) THEN NULL ELSE COUNT ( * ) + 91 END * COUNT ( * ), 93 ) ) AS col2
----
239972

query I rowsort
SELECT - COALESCE ( 10, + 19 ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT ALL 7 / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 7 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT + 13 + + + 81 AS col1, + SUM( - + 46 ) AS col1
----
94
-46

skipif mysql # not compatible
query II rowsort label-9489
SELECT + 13 + + + 81 AS col1, + SUM ( - + 46 ) AS col1
----
94
-46

query I rowsort
SELECT ALL 25 * - 92
----
-2300

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT - 87 DIV - - 45
----
-1

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - 87 / - - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - COALESCE ( + ( - - 76 ), + + COUNT( * ) ) + + 44
----
-32

skipif mysql # not compatible
query I rowsort label-9492
SELECT - COALESCE ( + ( - - 76 ), + + COUNT ( * ) ) + + 44
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + ( - COUNT( * ) ) * + 71 + + NULLIF ( 80, - CASE + 31 WHEN + NULLIF ( - MIN( ALL 68 ), + 89 * 69 ) + + 83 THEN COUNT( * ) + 51 / 45 WHEN + ( 81 ) * - 26 THEN - 22 + + COUNT( * ) ELSE + 87 / 40 END / - 91 )
----
9

skipif mysql # not compatible
query I rowsort label-9493
SELECT + ( - COUNT ( * ) ) * + 71 + + NULLIF ( 80, - CASE + 31 WHEN + NULLIF ( - MIN ( ALL 68 ), + 89 * 69 ) + + 83 THEN COUNT ( * ) + 51 / 45 WHEN + ( 81 ) * - 26 THEN - 22 + + COUNT ( * ) ELSE + 87 / 40 END / - 91 )
----
9

query I rowsort
SELECT + 65 + + + 30 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - 77 + + - MIN( ALL + 56 ) AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-9495
SELECT - 77 + + - MIN ( ALL + 56 ) AS col1
----
-133

query II rowsort
SELECT - ( + 50 ), - 36 AS col2
----
-50
-36

query I rowsort
SELECT + 76 * - COALESCE ( + - 2, - 96 ) * 1 AS col1
----
152

query I rowsort
SELECT + 35 + - + NULLIF ( + 35, - 94 ) * 26
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT - COALESCE ( + COALESCE ( - 16, - - COUNT( ALL - 73 ) ), + MAX( DISTINCT 29 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9499
SELECT - COALESCE ( + COALESCE ( - 16, - - COUNT ( ALL - 73 ) ), + MAX ( DISTINCT 29 ) )
----
16

query I rowsort
SELECT ALL 31 + - + COALESCE ( - ( - 56 ), 23 ) + 35 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL + COUNT( * ) + - 9 - - 6 * 85 AS col1
----
502

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + COUNT ( * ) + - 9 - - 6 * 85 AS col1
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + 6 + - + ( + COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-9502
SELECT + 6 + - + ( + COUNT ( * ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + NULLIF ( SUM( + + 35 ), 31 ) * 70
----
2450

skipif mysql # not compatible
query I rowsort label-9503
SELECT + NULLIF ( SUM ( + + 35 ), 31 ) * 70
----
2450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9504
SELECT ALL - - 86 DIV - 29 + 8 + - NULLIF ( ( + COALESCE ( + CAST( - 25 AS SIGNED ), - 92, - 86 ) ), + 98 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - - 86 / - 29 + 8 + - NULLIF ( ( + COALESCE ( + CAST ( - 25 AS INTEGER ), - 92, - 86 ) ), + 98 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT CASE - - 68 WHEN - + 69 * - - COUNT( ALL + 35 ) THEN NULL WHEN 44 + - CASE 69 WHEN 80 THEN - 10 END THEN - ( COUNT( * ) ) * 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT CASE - - 68 WHEN - + 69 * - - COUNT ( ALL + 35 ) THEN NULL WHEN 44 + - CASE 69 WHEN 80 THEN - 10 END THEN - ( COUNT ( * ) ) * 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + - MIN( DISTINCT + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9506
SELECT + - MIN ( DISTINCT + 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT - - 1 + + CAST( NULL AS SIGNED ) / - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT - - 1 + + CAST ( NULL AS INTEGER ) / - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - COUNT( 30 ) * + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - COUNT ( 30 ) * + - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT CASE - 14 WHEN 54 THEN + 81 - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT CASE - 14 WHEN 54 THEN + 81 - + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT ALL - - 1 DIV COUNT( ALL + + 42 ) - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - - 1 / COUNT ( ALL + + 42 ) - 85 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - - COUNT( * ) * - + ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - - COUNT ( * ) * - + ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - AVG ( 33 ) * + AVG ( DISTINCT 56 ) - - 74 + 70 / + CASE - 23 WHEN + 96 THEN + 2 / + 24 END
----
NULL

query I rowsort
SELECT ALL 5 * 5 AS col2
----
25

query I rowsort
SELECT DISTINCT - 2 * + 11 * - 89 * 57
----
111606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT + COALESCE ( COUNT( * ), + COUNT( * ) ) DIV + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9515
SELECT + COALESCE ( COUNT ( * ), + COUNT ( * ) ) / + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - + 74 * + + 87 + - + 38 AS col1
----
-6476

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + + COALESCE ( COALESCE ( - 55, 17 * ( + COUNT( * ) + - 71 ), COUNT( * ) * 50 + - 7 * + 1 ), 74 * 80, + 28 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + + COALESCE ( COALESCE ( - 55, 17 * ( + COUNT ( * ) + - 71 ), COUNT ( * ) * 50 + - 7 * + 1 ), 74 * 80, + 28 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), - + ( - 87 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), - + ( - 87 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT + AVG ( - 23 ) - - CASE + 35 WHEN + 15 + CAST( + 51 + + 16 AS SIGNED ) THEN CASE ( + 63 ) WHEN 48 THEN - 23 WHEN + 60 - - MAX( ALL - 61 ) * - MAX( DISTINCT 19 * + 4 + ( 17 ) ) THEN NULL ELSE NULL END WHEN 80 * 8 THEN - 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT + AVG ( - 23 ) - - CASE + 35 WHEN + 15 + CAST ( + 51 + + 16 AS INTEGER ) THEN CASE ( + 63 ) WHEN 48 THEN - 23 WHEN + 60 - - MAX ( ALL - 61 ) * - MAX ( DISTINCT 19 * + 4 + ( 17 ) ) THEN NULL ELSE NULL END WHEN 80 * 8 THEN - 76 ELSE NULL END
----
NULL

query II rowsort
SELECT - ( + 34 ) * 37, - 3 AS col1
----
-1258
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT ALL - 72 DIV + 40
----
-1

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - 72 / + 40
----
-1

query I rowsort
SELECT NULLIF ( 39, - 48 * - 33 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - COUNT( * ) + + 40 col0
----
39

skipif mysql # not compatible
query I rowsort label-9523
SELECT - COUNT ( * ) + + 40 col0
----
39

query II rowsort
SELECT - ( - + 42 ) * - - 88, + 93 col1
----
3696
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 53 + - 51 * + COUNT( * ) * NULLIF ( - MAX( ALL + 42 ), 89 * 14 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 53 + - 51 * + COUNT ( * ) * NULLIF ( - MAX ( ALL + 42 ), 89 * 14 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT - COUNT( + 85 ) * + 81 DIV - 20 + + 40 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - COUNT ( + 85 ) * + 81 / - 20 + + 40 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9527
SELECT ALL 61 * - - CASE MAX( - + 35 ) WHEN + COUNT( * ) THEN COUNT( * ) END + - MAX( DISTINCT COALESCE ( + 27, CAST( 29 AS DECIMAL ) * 82 ) ) * + ( + NULLIF ( + 38, 84 ) - - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 61 * - - CASE MAX ( - + 35 ) WHEN + COUNT ( * ) THEN COUNT ( * ) END + - MAX ( DISTINCT COALESCE ( + 27, CAST ( 29 AS REAL ) * 82 ) ) * + ( + NULLIF ( + 38, 84 ) - - 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT - 13 AS col2, CASE - 16 WHEN 51 * + + 74 THEN 3 * + COUNT( * ) WHEN - 54 * - 65 THEN - 75 ELSE - 0 * + COUNT( + ( 74 ) * 92 ) END * + COUNT( * ) AS col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-9528
SELECT - 13 AS col2, CASE - 16 WHEN 51 * + + 74 THEN 3 * + COUNT ( * ) WHEN - 54 * - 65 THEN - 75 ELSE - 0 * + COUNT ( + ( 74 ) * 92 ) END * + COUNT ( * ) AS col2
----
-13
0

query I rowsort
SELECT ALL + 37 + + 55 AS col0
----
92

query I rowsort
SELECT DISTINCT - 82 + + 46 AS col1
----
-36

query I rowsort
SELECT 81 * - ( + 13 ) * + 61 AS col0
----
-64233

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT 16 + + + COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-9532
SELECT 16 + + + COUNT ( * ) col1
----
17

query I rowsort
SELECT DISTINCT - 83 + + 91 * + ( 15 ) + 28 - - 84
----
1394

query I rowsort
SELECT ALL 18 + 77
----
95

query I rowsort
SELECT 6 * - 51 AS col0
----
-306

query II rowsort
SELECT DISTINCT + 18 + - 89 * - - 31, COALESCE ( - 65, 9 * 2, 15 - - 71, - 56 ) + + 84 AS col2
----
-2741
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL CASE + - CASE + 51 WHEN - CAST( + 86 AS SIGNED ) THEN - 90 + + 30 * 37 WHEN - 79 + + 2 THEN NULL END WHEN 62 * NULLIF ( - 27, + 74 - + 13 ) THEN NULL ELSE + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL CASE + - CASE + 51 WHEN - CAST ( + 86 AS INTEGER ) THEN - 90 + + 30 * 37 WHEN - 79 + + 2 THEN NULL END WHEN 62 * NULLIF ( - 27, + 74 - + 13 ) THEN NULL ELSE + 99 END
----
99

query I rowsort
SELECT DISTINCT 47 * 99 + 29
----
4682

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL - 91 + COUNT( 28 )
----
-90

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - 91 + COUNT ( 28 )
----
-90

query I rowsort
SELECT + 26 * - 3
----
-78

query I rowsort
SELECT ALL + + 55 + + 21
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT CAST( NULL AS SIGNED ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT CAST ( NULL AS INTEGER ) + + 57
----
NULL

query I rowsort
SELECT + 83 + 47
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9544
SELECT - CAST( - - 97 AS SIGNED ) * COUNT( * ) AS col2, COUNT( * ) AS col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-9544
SELECT - CAST ( - - 97 AS INTEGER ) * COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + 26 * + 60 + + COUNT( DISTINCT - 54 ) * - + ( + 9 ) + + 86
----
1637

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 26 * + 60 + + COUNT ( DISTINCT - 54 ) * - + ( + 9 ) + + 86
----
1637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL - SUM( 13 ) - CAST( 62 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - SUM ( 13 ) - CAST ( 62 AS INTEGER ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - - COUNT( * ) * - 71 + + 55 - + COUNT( * ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-9547
SELECT - - COUNT ( * ) * - 71 + + 55 - + COUNT ( * ) col1
----
-17

query I rowsort
SELECT DISTINCT 94 * + 15
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - ( - ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - ( - ( + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - COUNT( * ) * + 8 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9550
SELECT - COUNT ( * ) * + 8 AS col0
----
-8

query II rowsort
SELECT + 88 AS col0, - ( + - 70 ) + - 24 + 91 + 26 * - 58
----
88
-1371

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT ALL - COUNT( * ) AS col1, NULLIF ( + 60, COUNT( DISTINCT 47 ) )
----
-1
60

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL - COUNT ( * ) AS col1, NULLIF ( + 60, COUNT ( DISTINCT 47 ) )
----
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + ( COALESCE ( - MIN( DISTINCT + 21 ), + 5 ) ) * + 34 - + 30 * - ( - 9 ) AS col0
----
-984

skipif mysql # not compatible
query I rowsort label-9553
SELECT + ( COALESCE ( - MIN ( DISTINCT + 21 ), + 5 ) ) * + 34 - + 30 * - ( - 9 ) AS col0
----
-984

query I rowsort
SELECT ALL 31 * + 96 * - - 40 * - 0 AS col1
----
0

query II rowsort
SELECT 84, - 35 AS col0
----
84
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL - 52, + 47 + + COALESCE ( - 62, - 77 + - NULLIF ( COUNT( 73 ), NULLIF ( - 57, + 74 ) ) - NULLIF ( - ( + 50 ), - 90 * - 89 ) ) * - 24 AS col0
----
-52
1535

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL - 52, + 47 + + COALESCE ( - 62, - 77 + - NULLIF ( COUNT ( 73 ), NULLIF ( - 57, + 74 ) ) - NULLIF ( - ( + 50 ), - 90 * - 89 ) ) * - 24 AS col0
----
-52
1535

query II rowsort
SELECT + 58 AS col0, - 47 AS col0
----
58
-47

query I rowsort
SELECT 32 * - 81 - - - 19 col0
----
-2611

query I rowsort
SELECT ( 7 ) + - 11
----
-4

query I rowsort
SELECT 16 * + 94
----
1504

onlyif mysql # aggregate syntax: 
query II rowsort label-9561
SELECT - 69 col1, CASE - + 40 WHEN + 77 * - + COUNT( * ) THEN NULL WHEN 99 + + 40 THEN + NULLIF ( 44, + 58 * + 97 ) WHEN + 61 THEN + NULLIF ( 95, 96 ) * 72 END * 25
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-9561
SELECT - 69 col1, CASE - + 40 WHEN + 77 * - + COUNT ( * ) THEN NULL WHEN 99 + + 40 THEN + NULLIF ( 44, + 58 * + 97 ) WHEN + 61 THEN + NULLIF ( 95, 96 ) * 72 END * 25
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - 69 + + + 49 + NULLIF ( + CASE - - COUNT( * ) WHEN + 74 THEN - 0 * 98 ELSE NULL END, ( + 43 ) ) / + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - 69 + + + 49 + NULLIF ( + CASE - - COUNT ( * ) WHEN + 74 THEN - 0 * 98 ELSE NULL END, ( + 43 ) ) / + 43 AS col2
----
NULL

query I rowsort
SELECT 97 + - + 62
----
35

query II rowsort
SELECT ALL 24, 42 col1
----
24
42

query I rowsort
SELECT ALL + 6 + - 25 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT 6 + + + 15 + + + ( - - 50 ) + - MAX( DISTINCT - 63 )
----
134

skipif mysql # not compatible
query I rowsort label-9566
SELECT 6 + + + 15 + + + ( - - 50 ) + - MAX ( DISTINCT - 63 )
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT ALL 80 AS col2, COUNT( * ) + - + 90
----
80
-89

skipif mysql # not compatible
query II rowsort label-9567
SELECT ALL 80 AS col2, COUNT ( * ) + - + 90
----
80
-89

query I rowsort
SELECT 16 + - + ( + 36 ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ( + - 52 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ( + - 52 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 3 + - 60 AS col1
----
-57

query I rowsort
SELECT + ( + - ( + 57 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + 15 + + 39 + 0 * - - 29 + - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 15 + + 39 + 0 * - - 29 + - + COUNT ( * )
----
53

query I rowsort
SELECT 84 * - 43 AS col2
----
-3612

query I rowsort
SELECT ALL - + 91 * 5 * - + 73
----
33215

query II rowsort
SELECT - 0, 39 AS col0
----
0
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT 74 + ( + NULLIF ( - + 18, + 24 ) ) + + CAST( NULL AS SIGNED ) * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT 74 + ( + NULLIF ( - + 18, + 24 ) ) + + CAST ( NULL AS INTEGER ) * 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + ( - MAX( DISTINCT - 34 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9577
SELECT + ( - MAX ( DISTINCT - 34 ) ) AS col1
----
34

query I rowsort
SELECT ALL + + 15 - - - 51
----
-36

query I rowsort
SELECT + 90 * - + 6 AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT 53 + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-9580
SELECT 53 + COUNT ( * ) col1
----
54

query II rowsort
SELECT 98 AS col2, + 66 AS col1
----
98
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - NULLIF ( 77, + ( - 14 ) + - 40 + + 9 + + 49 ) * + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - NULLIF ( 77, + ( - 14 ) + - 40 + + 9 + + 49 ) * + COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT 30 * + 54 DIV COUNT( * ) * - 97
----
-157140

skipif mysql # not compatible
query I rowsort label-9583
SELECT 30 * + 54 / COUNT ( * ) * - 97
----
-157140

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT 49 DIV 65 + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-9584
SELECT 49 / 65 + - 41
----
-41

query I rowsort
SELECT COALESCE ( - 18, - 32 ) * - 52 * - + 33 * 77 AS col2
----
-2378376

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + 2 / + + CASE + 5 WHEN COUNT( * ) * + + ( - + 41 ) * + 26 THEN - 58 END + - 59 + 9 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 2 / + + CASE + 5 WHEN COUNT ( * ) * + + ( - + 41 ) * + 26 THEN - 58 END + - 59 + 9 * - 74
----
NULL

query I rowsort
SELECT ALL + 52 * - 44 AS col1
----
-2288

query I rowsort
SELECT + 62 * + 57
----
3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT 69 + - + 59 + - + 39 + - COUNT( * ) + 49 + - COALESCE ( 94, 63 + COUNT( * ) ) + 93 * - ( 93 DIV + 39 ) * + COALESCE ( + COUNT( * ), COUNT( * ) ) AS col0
----
-261

skipif mysql # not compatible
query I rowsort label-9589
SELECT 69 + - + 59 + - + 39 + - COUNT ( * ) + 49 + - COALESCE ( 94, 63 + COUNT ( * ) ) + 93 * - ( 93 / + 39 ) * + COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS col0
----
-261

query I rowsort
SELECT ALL - 61 * 58
----
-3538

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT + 91 * - 99 + + 31 DIV ( - 12 )
----
-9011

skipif mysql # not compatible
query I rowsort label-9591
SELECT + 91 * - 99 + + 31 / ( - 12 )
----
-9011

query I rowsort
SELECT ALL 84 * 81 + 86
----
6890

query I rowsort
SELECT ALL 9 * 41 + + 64
----
433

query II rowsort
SELECT + 84 + - 58, + 36 AS col1
----
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT + NULLIF ( + - MIN( DISTINCT ( + + 38 ) ), 97 + + 61 - + + 71 * - MIN( DISTINCT + 9 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9595
SELECT + NULLIF ( + - MIN ( DISTINCT ( + + 38 ) ), 97 + + 61 - + + 71 * - MIN ( DISTINCT + 9 ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT 37 * - - 11 + - CASE - COUNT( * ) WHEN + 99 * - COUNT( * ) + 52 + 0 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT 37 * - - 11 + - CASE - COUNT ( * ) WHEN + 99 * - COUNT ( * ) + 52 + 0 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9597
SELECT + COUNT( + + 82 ) AS col1, + 69 AS col0
----
1
69

skipif mysql # not compatible
query II rowsort label-9597
SELECT + COUNT ( + + 82 ) AS col1, + 69 AS col0
----
1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL COUNT( * ) + - + 44 + + 50 col0
----
7

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL COUNT ( * ) + - + 44 + + 50 col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT ALL COUNT( ALL + - 87 ), 91 AS col2
----
1
91

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL COUNT ( ALL + - 87 ), 91 AS col2
----
1
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT + 0 / + - CASE + - 47 WHEN - 40 THEN NULL WHEN + NULLIF ( 61, + CAST( NULL AS DECIMAL ) ) * 38 THEN 81 / - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + 0 / + - CASE + - 47 WHEN - 40 THEN NULL WHEN + NULLIF ( 61, + CAST ( NULL AS REAL ) ) * 38 THEN 81 / - 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL COUNT( * ) - - - 85 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL COUNT ( * ) - - - 85 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + MAX( 69 ) - - COALESCE ( 31, 55 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9602
SELECT + MAX ( 69 ) - - COALESCE ( 31, 55 ) AS col2
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-9603
SELECT - 8 DIV + + 78 col2, 75 AS col0
----
0
75

skipif mysql # not compatible
query II rowsort label-9603
SELECT - 8 / + + 78 col2, 75 AS col0
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - MIN( + ( - - ( 45 ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-9604
SELECT - MIN ( + ( - - ( 45 ) ) )
----
-45

query I rowsort
SELECT + 65 * - 56 * + 47 - + 29 AS col0
----
-171109

onlyif mysql # DIV for integer division: 
query II rowsort label-9606
SELECT ALL + 8 DIV + + 43 col0, 36 * 49 + + 87 * 36 + + 17 AS col1
----
0
4913

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL + 8 / + + 43 col0, 36 * 49 + + 87 * 36 + + 17 AS col1
----
0
4913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT + - ( + 79 ) DIV - 86 * + - ( + + 84 ) + + NULLIF ( + - 36, COALESCE ( 12, - COALESCE ( - 1, 38, - 42, - 91 ) ) DIV + COUNT( * ) ) + + 72 * COALESCE ( 59 * 0, - 15 + - 72 )
----
-36

skipif mysql # not compatible
query I rowsort label-9607
SELECT + - ( + 79 ) / - 86 * + - ( + + 84 ) + + NULLIF ( + - 36, COALESCE ( 12, - COALESCE ( - 1, 38, - 42, - 91 ) ) / + COUNT ( * ) ) + + 72 * COALESCE ( 59 * 0, - 15 + - 72 )
----
-36

query I rowsort
SELECT ALL - NULLIF ( - 59, - 25 ) AS col2
----
59

query I rowsort
SELECT ALL + 17 * + 36 AS col0
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 97 + - CASE WHEN 50 IS NULL THEN - - 1 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 97 + - CASE WHEN 50 IS NULL THEN - - 1 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + 54 + + - 54 * COUNT( 90 ) * + ( 21 ) AS col2
----
-1080

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 54 + + - 54 * COUNT ( 90 ) * + ( 21 ) AS col2
----
-1080

query II rowsort
SELECT - 24 * + 51, + 90 AS col2
----
-1224
90

query I rowsort
SELECT + - 51 * - 30 * - 62 * + 98 * 47 + - + 37 col1
----
-436925197

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT + COUNT( 76 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9614
SELECT + COUNT ( 76 ) + + COUNT ( * )
----
2

query I rowsort
SELECT - - ( + + 69 ) AS col0
----
69

query I rowsort
SELECT - - 70 + - + ( - - ( - 60 ) ) - + 45 + + NULLIF ( 87, 69 / 8 - 14 ) col2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT ALL 71 DIV + + 40 + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL 71 / + + 40 + - 93
----
-92

query I rowsort
SELECT ALL + ( - ( 67 ) ) col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT DISTINCT COALESCE ( + 37, COUNT( * ) ) / + + CAST( NULL AS SIGNED ) - + - 5 + ( + + CASE 66 WHEN + 13 * 92 + 14 * - 38 THEN NULL WHEN 82 * CAST( NULL AS SIGNED ) THEN 68 END ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT COALESCE ( + 37, COUNT ( * ) ) / + + CAST ( NULL AS INTEGER ) - + - 5 + ( + + CASE 66 WHEN + 13 * 92 + 14 * - 38 THEN NULL WHEN 82 * CAST ( NULL AS INTEGER ) THEN 68 END ) + 73
----
NULL

query I rowsort
SELECT + 87 * - 53 + + 5 AS col1
----
-4606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT - CAST( NULL AS SIGNED ) * - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT - CAST ( NULL AS INTEGER ) * - + 36
----
NULL

query II rowsort
SELECT - 2 - - 32 - - 62 * + - 13 AS col1, + 32 + 64
----
-776
96

query II rowsort
SELECT + 95 AS col0, 4
----
95
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ALL + 41 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + 41 / 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT - ( + 77 ) DIV - + ( - - COALESCE ( - 46, + 98, + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9625
SELECT - ( + 77 ) / - + ( - - COALESCE ( - 46, + 98, + COUNT ( * ) ) ) AS col2
----
-1

query II rowsort
SELECT + 53 AS col2, 37 AS col1
----
53
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT DISTINCT + COUNT( * ) AS col2, 45 * + CASE + 28 WHEN + 51 * - 82 - - - 21 * + - 85 / 66 + - COUNT( * ) THEN - 66 ELSE - 47 END AS col0
----
1
-2115

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT + COUNT ( * ) AS col2, 45 * + CASE + 28 WHEN + 51 * - 82 - - - 21 * + - 85 / 66 + - COUNT ( * ) THEN - 66 ELSE - 47 END AS col0
----
1
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - 27 * SUM( + 66 ) + 5
----
-1777

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - 27 * SUM ( + 66 ) + 5
----
-1777

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT CASE + 20 WHEN CASE 60 WHEN + - 17 + - 92 * + 85 THEN - 37 + - 7 ELSE NULL END THEN - MAX( DISTINCT 12 ) * NULLIF ( - COUNT( * ) + 6, COUNT( * ) ) WHEN - 49 + 56 / + 32 THEN - 28 * + 20 END * + 39 - - 89 * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT CASE + 20 WHEN CASE 60 WHEN + - 17 + - 92 * + 85 THEN - 37 + - 7 ELSE NULL END THEN - MAX ( DISTINCT 12 ) * NULLIF ( - COUNT ( * ) + 6, COUNT ( * ) ) WHEN - 49 + 56 / + 32 THEN - 28 * + 20 END * + 39 - - 89 * - 17 AS col2
----
NULL

query I rowsort
SELECT ALL + 78 * + - 19 AS col2
----
-1482

query I rowsort
SELECT DISTINCT 60 * - ( - 19 ) * 34 + + 82 col1
----
38842

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT + COUNT( * ), NULLIF ( SUM( + 43 ), - COUNT( * ) * + ( - COUNT( * ) ) + 16 + - 84 * 69 ) * 53 AS col2
----
1
2279

skipif mysql # not compatible
query II rowsort label-9632
SELECT + COUNT ( * ), NULLIF ( SUM ( + 43 ), - COUNT ( * ) * + ( - COUNT ( * ) ) + 16 + - 84 * 69 ) * 53 AS col2
----
1
2279

query II rowsort
SELECT ALL + 81 AS col0, - 93
----
81
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - 50 * - + COUNT( * ) - + MAX( + 4 ) * - 13 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - 50 * - + COUNT ( * ) - + MAX ( + 4 ) * - 13 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT COALESCE ( 24, + 53 DIV + 4 DIV - 59 )
----
24

skipif mysql # not compatible
query I rowsort label-9635
SELECT COALESCE ( 24, + 53 / + 4 / - 59 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + CASE - COUNT( * ) WHEN + COALESCE ( COUNT( * ), - + 58 * 74 * - 13, - + 32 ) THEN - 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT + CASE - COUNT ( * ) WHEN + COALESCE ( COUNT ( * ), - + 58 * 74 * - 13, - + 32 ) THEN - 77 END AS col1
----
NULL

query II rowsort
SELECT + 94 * + - 45 * 59 AS col1, - 25 * - 1 AS col1
----
-249570
25

query II rowsort
SELECT ALL + 71 AS col1, + 12 AS col0
----
71
12

query II rowsort
SELECT - 65 + - ( + 6 ), 48 * - 74 col0
----
-71
-3552

query I rowsort
SELECT + 70 - + 83 - - 11 * - - 17 AS col0
----
174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9641
SELECT - - 37 * 95 + CAST( NULL AS DECIMAL ) + - 86 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT - - 37 * 95 + CAST ( NULL AS REAL ) + - 86 * 95
----
NULL

query I rowsort
SELECT ALL + - 80 * + 42 * + 16 * - 57 - + 65 + - 24 AS col1
----
3064231

query I rowsort
SELECT + NULLIF ( - 54, + 1 + - 3 ) * + + 3 * 30
----
-4860

query I rowsort
SELECT + + 48 + 82 + 68
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - 28 * + 11 * - NULLIF ( 78, 23 * - 38 ) + COUNT( * ) + - 49 + 85 * SUM( ALL - 40 )
----
20576

skipif mysql # not compatible
query I rowsort label-9645
SELECT - 28 * + 11 * - NULLIF ( 78, 23 * - 38 ) + COUNT ( * ) + - 49 + 85 * SUM ( ALL - 40 )
----
20576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT ALL - 68 DIV + 36 + - 50 DIV COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - 68 / + 36 + - 50 / COUNT ( * ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT + MIN( - + 40 ) + - 77 + + COUNT( * ) - + 56 + COUNT( * ) DIV - 58
----
-172

skipif mysql # not compatible
query I rowsort label-9647
SELECT + MIN ( - + 40 ) + - 77 + + COUNT ( * ) - + 56 + COUNT ( * ) / - 58
----
-172

onlyif mysql # DIV for integer division: 
query II rowsort label-9648
SELECT ALL - 93, CASE - 97 WHEN + 53 THEN NULL ELSE 85 END DIV + 15 AS col2
----
-93
5

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL - 93, CASE - 97 WHEN + 53 THEN NULL ELSE 85 END / + 15 AS col2
----
-93
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + COUNT( ALL - 66 ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9649
SELECT + COUNT ( ALL - 66 ) + - 70 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT ALL - 80 AS col2, - MIN( + - 64 ) * - 20 - + 55
----
-80
-1335

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL - 80 AS col2, - MIN ( + - 64 ) * - 20 - + 55
----
-80
-1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9652
SELECT - - NULLIF ( 92, + + CAST( - ( + + 72 ) AS DECIMAL ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9652
SELECT - - NULLIF ( 92, + + CAST ( - ( + + 72 ) AS REAL ) ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL + CAST( - COALESCE ( + 0, + 21 * + 64 * - 19 + + 11, - NULLIF ( - MAX( + 40 ), + COALESCE ( 11, 16 ) ), - COUNT( * ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + CAST ( - COALESCE ( + 0, + 21 * + 64 * - 19 + + 11, - NULLIF ( - MAX ( + 40 ), + COALESCE ( 11, 16 ) ), - COUNT ( * ) ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL 83 + + 79
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + + COUNT( * ) * - - 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9655
SELECT + + COUNT ( * ) * - - 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT - + 41 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9656
SELECT - + 41 + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL + 36 DIV + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + 36 / + COUNT ( * )
----
36

query I rowsort
SELECT ALL 45 + - - ( 12 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9659
SELECT ALL + 61 + - - COUNT( * ) * 64 AS col2, - 9
----
125
-9

skipif mysql # not compatible
query II rowsort label-9659
SELECT ALL + 61 + - - COUNT ( * ) * 64 AS col2, - 9
----
125
-9

query II rowsort
SELECT - 53, 17 AS col1
----
-53
17

query I rowsort
SELECT ALL + - 44 + + + ( - 88 )
----
-132

query I rowsort
SELECT DISTINCT + 33 + - 94
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9663
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) DIV - + 94 AS col1, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) / - + 94 AS col1, + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT 31 * + 53
----
1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT CAST( - 22 AS SIGNED ) * - 97 * COUNT( * ) * + 50 col0
----
106700

skipif mysql # not compatible
query I rowsort label-9665
SELECT CAST ( - 22 AS INTEGER ) * - 97 * COUNT ( * ) * + 50 col0
----
106700

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT COUNT( * ) * + + 17 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9666
SELECT COUNT ( * ) * + + 17 * COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT + COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + COUNT ( * ) + - 67
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - MAX( DISTINCT + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - MAX ( DISTINCT + 37 )
----
-37

query I rowsort
SELECT ALL - 19 - - 33 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT 0 * CAST( 97 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT 0 * CAST ( 97 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 16 + + 54 AS col2
----
70

query I rowsort
SELECT ALL + 38 - + + 71 + - 30
----
-63

query I rowsort
SELECT 90 * + 55
----
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT 32 + + 26 + - 48 * 32 DIV 30 * + + 55 * 87 + 97 + - SUM( ALL 13 ) * - ( + 46 ) * - NULLIF ( + 33, CASE - 59 WHEN - 54 * 67 THEN NULL WHEN + 70 - CASE 6 WHEN + 22 THEN ( - 31 ) DIV COUNT( * ) WHEN - COUNT( DISTINCT 54 ) * - 54 THEN NULL END THEN NULL ELSE MAX( DISTINCT + 11 ) + + 10 END )
----
-263614

skipif mysql # not compatible
query I rowsort label-9674
SELECT 32 + + 26 + - 48 * 32 / 30 * + + 55 * 87 + 97 + - SUM ( ALL 13 ) * - ( + 46 ) * - NULLIF ( + 33, CASE - 59 WHEN - 54 * 67 THEN NULL WHEN + 70 - CASE 6 WHEN + 22 THEN ( - 31 ) / COUNT ( * ) WHEN - COUNT ( DISTINCT 54 ) * - 54 THEN NULL END THEN NULL ELSE MAX ( DISTINCT + 11 ) + + 10 END )
----
-263614

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT DISTINCT - 93 DIV 86
----
-1

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - 93 / 86
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT 45 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT 45 / + 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT 11 * 35 * - 1 + 10 * 98 * + + 21 + - MIN( ALL - 22 ) + + 8 - 98 DIV + MAX( 45 )
----
20223

skipif mysql # not compatible
query I rowsort label-9677
SELECT 11 * 35 * - 1 + 10 * 98 * + + 21 + - MIN ( ALL - 22 ) + + 8 - 98 / + MAX ( 45 )
----
20223

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT 22 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT 22 / - 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT - COUNT( * ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - COUNT ( * ) / + 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT 28 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT 28 / - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9681
SELECT CAST( + - COUNT( * ) AS SIGNED ), 24 * - - 30 col2
----
-1
720

skipif mysql # not compatible
query II rowsort label-9681
SELECT CAST ( + - COUNT ( * ) AS INTEGER ), 24 * - - 30 col2
----
-1
720

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9682
SELECT CAST( NULL AS DECIMAL ) * - 61 + 6 + ( + 96 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT CAST ( NULL AS REAL ) * - 61 + 6 + ( + 96 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( + 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT COUNT( ALL - - 58 ) * - 90 - 56 AS col0, + 4 + 73 + - 42 + + - 28 * 8 AS col1
----
-146
-189

skipif mysql # not compatible
query II rowsort label-9684
SELECT COUNT ( ALL - - 58 ) * - 90 - 56 AS col0, + 4 + 73 + - 42 + + - 28 * 8 AS col1
----
-146
-189

query I rowsort
SELECT ALL + 56 + - - 89 AS col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT 15 * COUNT( * ) * + CAST( 4 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9686
SELECT 15 * COUNT ( * ) * + CAST ( 4 AS INTEGER ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT + COUNT( * ) * - + 48 * - + ( - 78 ) + 39 * - 89
----
-7215

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT + COUNT ( * ) * - + 48 * - + ( - 78 ) + 39 * - 89
----
-7215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT CAST( 30 AS SIGNED ) * + - COALESCE ( + 34, + 69 * + 2, + 24 ) AS col2
----
-1020

skipif mysql # not compatible
query I rowsort label-9688
SELECT CAST ( 30 AS INTEGER ) * + - COALESCE ( + 34, + 69 * + 2, + 24 ) AS col2
----
-1020

query I rowsort
SELECT ALL - 73 * 89 * 27 AS col2
----
-175419

query I rowsort
SELECT ALL 16 + + 75 + 45
----
136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9691
SELECT ALL + ( - 88 ) * - 83 * - CASE - + SUM( 31 ) WHEN + CAST( NULL AS DECIMAL ) / + - 3 / - CASE - 27 WHEN + 8 * 81 THEN 85 - - 52 ELSE NULL END THEN COUNT( * ) END * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + ( - 88 ) * - 83 * - CASE - + SUM ( 31 ) WHEN + CAST ( NULL AS REAL ) / + - 3 / - CASE - 27 WHEN + 8 * 81 THEN 85 - - 52 ELSE NULL END THEN COUNT ( * ) END * - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9692
SELECT + 53 + - 37, MIN( 57 ) AS col0
----
16
57

skipif mysql # not compatible
query II rowsort label-9692
SELECT + 53 + - 37, MIN ( 57 ) AS col0
----
16
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT 86 AS col0, COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-9693
SELECT 86 AS col0, COUNT ( * )
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL 32 + 65 + - COUNT( * ) + - 61
----
35

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL 32 + 65 + - COUNT ( * ) + - 61
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT COUNT( * ) + - 70 + 0 + + 14
----
-55

skipif mysql # not compatible
query I rowsort label-9695
SELECT COUNT ( * ) + - 70 + 0 + + 14
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT DISTINCT 84 DIV + + 48
----
1

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT 84 / + + 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT COUNT( * ) * 45 col0
----
45

skipif mysql # not compatible
query I rowsort label-9697
SELECT COUNT ( * ) * 45 col0
----
45

query I rowsort
SELECT DISTINCT 31 - + 70 + + + 36 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT - MIN( ALL - - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT - MIN ( ALL - - 80 )
----
-80

query I rowsort
SELECT DISTINCT - 6 - + 37 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT CASE 39 WHEN ( - + 80 ) * COUNT( * ) * - 40 THEN - 1 END - - 71 AS col0, 91 * - 53 AS col0
----
NULL
-4823

skipif mysql # not compatible
query II rowsort label-9701
SELECT CASE 39 WHEN ( - + 80 ) * COUNT ( * ) * - 40 THEN - 1 END - - 71 AS col0, 91 * - 53 AS col0
----
NULL
-4823

query I rowsort
SELECT 0 * + 79
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9703
SELECT 35 * + + 83 * - 66, 89 + - - 64 DIV + - 98 AS col1
----
-191730
89

skipif mysql # not compatible
query II rowsort label-9703
SELECT 35 * + + 83 * - 66, 89 + - - 64 / + - 98 AS col1
----
-191730
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT + COUNT( * ), ( + COUNT( * ) ) + + - 56 AS col1
----
1
-55

skipif mysql # not compatible
query II rowsort label-9704
SELECT + COUNT ( * ), ( + COUNT ( * ) ) + + - 56 AS col1
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - ( 23 ) - + - 49 * - - 25 * + 23 + + CASE + - CASE 25 WHEN 52 THEN - 32 * 93 END WHEN + NULLIF ( 13, COUNT( ALL + 36 ) * - ( - 91 - + 41 ) + 5 ) THEN - 12 ELSE 57 END + - 77 * - MAX( ALL 47 * 9 ) col0
----
60780

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - ( 23 ) - + - 49 * - - 25 * + 23 + + CASE + - CASE 25 WHEN 52 THEN - 32 * 93 END WHEN + NULLIF ( 13, COUNT ( ALL + 36 ) * - ( - 91 - + 41 ) + 5 ) THEN - 12 ELSE 57 END + - 77 * - MAX ( ALL 47 * 9 ) col0
----
60780

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT ALL - 89 * + COALESCE ( - - COUNT( * ), - 56 + + 15, - 48 ), + 70 * - + 82 AS col2
----
-89
-5740

skipif mysql # not compatible
query II rowsort label-9706
SELECT ALL - 89 * + COALESCE ( - - COUNT ( * ), - 56 + + 15, - 48 ), + 70 * - + 82 AS col2
----
-89
-5740

query I rowsort
SELECT 31 - - - 91
----
-60

query I rowsort
SELECT + 41 - - 16
----
57

query I rowsort
SELECT 74 * - ( 8 ) AS col1
----
-592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT CASE + + 87 WHEN - 73 * - NULLIF ( - 27, COUNT( * ) ) + + - 31 THEN NULL WHEN + - 20 THEN 27 - - CAST( - 30 AS SIGNED ) * + COUNT( ALL 83 * + 57 - + 84 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT CASE + + 87 WHEN - 73 * - NULLIF ( - 27, COUNT ( * ) ) + + - 31 THEN NULL WHEN + - 20 THEN 27 - - CAST ( - 30 AS INTEGER ) * + COUNT ( ALL 83 * + 57 - + 84 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT + + COALESCE ( - - 51, 47 + - CASE 31 WHEN + 84 THEN 29 END + - 22 ), - COUNT( * ) col0
----
51
-1

skipif mysql # not compatible
query II rowsort label-9711
SELECT + + COALESCE ( - - 51, 47 + - CASE 31 WHEN + 84 THEN 29 END + - 22 ), - COUNT ( * ) col0
----
51
-1

query I rowsort
SELECT ALL + + 77 + 88
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT - 7 + + + 62 * - - 16 * + 58 * ( + - MAX( + 10 ) ) * + - 36
----
20712953

skipif mysql # not compatible
query I rowsort label-9713
SELECT - 7 + + + 62 * - - 16 * + 58 * ( + - MAX ( + 10 ) ) * + - 36
----
20712953

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL + - COUNT( ALL + 10 ) * + + 23 * COALESCE ( + 14, - + 36 * + 31 * + - MIN( DISTINCT - 5 ) + + 46 ) AS col2
----
-322

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + - COUNT ( ALL + 10 ) * + + 23 * COALESCE ( + 14, - + 36 * + 31 * + - MIN ( DISTINCT - 5 ) + + 46 ) AS col2
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT COUNT( * ) - - 15 + 32
----
48

skipif mysql # not compatible
query I rowsort label-9715
SELECT COUNT ( * ) - - 15 + 32
----
48

query I rowsort
SELECT DISTINCT + 36 * 54 AS col2
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT - 77 + ( - COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - 77 + ( - COUNT ( * ) )
----
-78

query I rowsort
SELECT DISTINCT - - 35 + - 68
----
-33

query I rowsort
SELECT ALL - 44 + - + NULLIF ( 30, 36 + - 17 * ( - 77 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT 5 + COUNT( * ) * + 16 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT 5 + COUNT ( * ) * + 16 AS col0
----
21

query I rowsort
SELECT - + ( - CASE WHEN NOT COALESCE ( + 60, + 78 * 13 * + - 63 / + 20 + + 16, 33 * + 88 ) IS NOT NULL THEN NULL ELSE 31 END ) + 56 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT - 37 * - - CAST( + 53 AS SIGNED ) + COUNT( - 42 ) + 83 + 81 AS col2
----
-1796

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 37 * - - CAST ( + 53 AS INTEGER ) + COUNT ( - 42 ) + 83 + 81 AS col2
----
-1796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9723
SELECT - + 45, 8 * + + CASE + 62 WHEN + 97 + + 35 + - - 10 / + 21 * - + ( + 78 ) + 26 THEN MIN( 5 ) + 25 * NULLIF ( + 77, - CAST( 60 AS SIGNED ) ) ELSE NULL END * 73 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-9723
SELECT - + 45, 8 * + + CASE + 62 WHEN + 97 + + 35 + - - 10 / + 21 * - + ( + 78 ) + 26 THEN MIN ( 5 ) + 25 * NULLIF ( + 77, - CAST ( 60 AS INTEGER ) ) ELSE NULL END * 73 AS col0
----
-45
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9724
SELECT ALL CASE + 30 WHEN 47 THEN NULL WHEN + AVG ( DISTINCT - - 65 ) + + 21 + + - CAST( - COUNT( * ) AS DECIMAL ) * + + 73 THEN NULL ELSE - 47 END AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL CASE + 30 WHEN 47 THEN NULL WHEN + AVG ( DISTINCT - - 65 ) + + 21 + + - CAST ( - COUNT ( * ) AS REAL ) * + + 73 THEN NULL ELSE - 47 END AS col1
----
-47

query II rowsort
SELECT DISTINCT 89 col0, - 35 * - 73 AS col1
----
89
2555

query I rowsort
SELECT + 25 + - + 5
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT ALL - COUNT( * ) DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - COUNT ( * ) / + 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9728
SELECT ALL + 61 AS col2, 81 + - + 16 DIV - - 12
----
61
80

skipif mysql # not compatible
query II rowsort label-9728
SELECT ALL + 61 AS col2, 81 + - + 16 / - - 12
----
61
80

query I rowsort
SELECT - 65 + + 87 AS col0
----
22

query I rowsort
SELECT - 54 * CASE - - 3 WHEN + - 98 + + NULLIF ( - 19, + 77 ) THEN + ( + 69 ) END - 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9731
SELECT CASE - - 35 WHEN + COUNT( * ) + + + 42 - + 37 * + 2 THEN + 89 WHEN + COALESCE ( + COUNT( * ), - COUNT( + 36 ) / + MAX( 56 + 1 / ( 57 ) ), COUNT( * ) * 40 ) / CASE 64 + + 10 WHEN 40 - - ( + 25 + 30 ) THEN ( 33 ) ELSE CAST( NULL AS DECIMAL ) END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT CASE - - 35 WHEN + COUNT ( * ) + + + 42 - + 37 * + 2 THEN + 89 WHEN + COALESCE ( + COUNT ( * ), - COUNT ( + 36 ) / + MAX ( 56 + 1 / ( 57 ) ), COUNT ( * ) * 40 ) / CASE 64 + + 10 WHEN 40 - - ( + 25 + 30 ) THEN ( 33 ) ELSE CAST ( NULL AS REAL ) END THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 93 AS col1, 26
----
93
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT ALL ( + 1 ) DIV - COUNT( * ) - - - 22
----
-23

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL ( + 1 ) / - COUNT ( * ) - - - 22
----
-23

query I rowsort
SELECT - 91 * + 94 + + - 43
----
-8597

query I rowsort
SELECT + 52 * - - 4
----
208

onlyif mysql # aggregate syntax: 
query II rowsort label-9736
SELECT ALL + COUNT( * ) * 55 * - 36 + - 26 AS col1, + 37 AS col0
----
-2006
37

skipif mysql # not compatible
query II rowsort label-9736
SELECT ALL + COUNT ( * ) * 55 * - 36 + - 26 AS col1, + 37 AS col0
----
-2006
37

query I rowsort
SELECT COALESCE ( 69, - 13 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + + 95 * MIN( DISTINCT 51 ) + - NULLIF ( + - 58, - 78 )
----
4903

skipif mysql # not compatible
query I rowsort label-9738
SELECT + + 95 * MIN ( DISTINCT 51 ) + - NULLIF ( + - 58, - 78 )
----
4903

query II rowsort
SELECT - 15 AS col2, + 42 AS col1
----
-15
42

query I rowsort
SELECT ALL 49 * + 2 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9741
SELECT - 71 AS col0, + 23 + + NULLIF ( CAST( NULL AS SIGNED ), 93 + 24 ) + 94 + - MIN( ALL + 7 ) + - 49 AS col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-9741
SELECT - 71 AS col0, + 23 + + NULLIF ( CAST ( NULL AS INTEGER ), 93 + 24 ) + 94 + - MIN ( ALL + 7 ) + - 49 AS col0
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL COUNT( * ) * + 5 + + - 17
----
-12

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL COUNT ( * ) * + 5 + + - 17
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT + NULLIF ( + + SUM( ALL + ( CAST( + ( - + 9 ) AS SIGNED ) ) ), + 95 / 84 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9743
SELECT + NULLIF ( + + SUM ( ALL + ( CAST ( + ( - + 9 ) AS INTEGER ) ) ), + 95 / 84 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9744
SELECT + 55 col1, - 0 DIV - COUNT( * )
----
55
0

skipif mysql # not compatible
query II rowsort label-9744
SELECT + 55 col1, - 0 / - COUNT ( * )
----
55
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT + 72 AS col2, - 26 + 67 + + + 78 + - COUNT( * ) AS col1
----
72
118

skipif mysql # not compatible
query II rowsort label-9745
SELECT + 72 AS col2, - 26 + 67 + + + 78 + - COUNT ( * ) AS col1
----
72
118

query II rowsort
SELECT ALL - 27 AS col2, 48 AS col2
----
-27
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + ( 3 ) - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9747
SELECT + ( 3 ) - + COUNT ( * )
----
2

query I rowsort
SELECT + 35 - + 90
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - CASE COALESCE ( COUNT( DISTINCT + + 54 ), - - 30 + + COUNT( * ) ) WHEN 57 + + 81 - + 70 * ( + 52 ) + MIN( DISTINCT - 59 - 65 ) THEN + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT - CASE COALESCE ( COUNT ( DISTINCT + + 54 ), - - 30 + + COUNT ( * ) ) WHEN 57 + + 81 - + 70 * ( + 52 ) + MIN ( DISTINCT - 59 - 65 ) THEN + 0 END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 30, - COALESCE ( 4, - + 96 ) * + 24 * - 67 + - 45, + + NULLIF ( - 48, - 83 + 13 ) ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT ALL - 52 DIV + + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - 52 / + + 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - - COALESCE ( - 95, - 36 + + COUNT( * ) + + 9 * - 13 ) * - 66 - - - COUNT( * ) * 64 AS col1
----
6206

skipif mysql # not compatible
query I rowsort label-9752
SELECT - - COALESCE ( - 95, - 36 + + COUNT ( * ) + + 9 * - 13 ) * - 66 - - - COUNT ( * ) * 64 AS col1
----
6206

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - 24 * + - 63 * CASE - 8 WHEN - - COUNT( DISTINCT - + 7 ) THEN NULL WHEN 61 * - + 78 + + 46 THEN + + 44 ELSE + 45 END
----
68040

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - 24 * + - 63 * CASE - 8 WHEN - - COUNT ( DISTINCT - + 7 ) THEN NULL WHEN 61 * - + 78 + + 46 THEN + + 44 ELSE + 45 END
----
68040

query I rowsort
SELECT ALL NULLIF ( 47, + - 33 * + 15 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT ALL CAST( - + ( 59 ) AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL CAST ( - + ( 59 ) AS INTEGER ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT - CASE + 46 WHEN + 90 THEN - 85 WHEN CASE + 52 WHEN + 82 THEN NULL ELSE - 58 / - 81 / - NULLIF ( 41, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) END * - CAST( SUM( ALL 53 ) AS SIGNED ) THEN - 92 END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT - CASE + 46 WHEN + 90 THEN - 85 WHEN CASE + 52 WHEN + 82 THEN NULL ELSE - 58 / - 81 / - NULLIF ( 41, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) END * - CAST ( SUM ( ALL 53 ) AS INTEGER ) THEN - 92 END * - 45
----
NULL

query I rowsort
SELECT - 78 * - + 10
----
780

query I rowsort
SELECT + 30 - 81
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + COUNT( * ) + + 74 + + + SUM( DISTINCT - 70 )
----
5

skipif mysql # not compatible
query I rowsort label-9759
SELECT + COUNT ( * ) + + 74 + + + SUM ( DISTINCT - 70 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL ( MIN( + 98 ) ) * - 44 AS col0
----
-4312

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL ( MIN ( + 98 ) ) * - 44 AS col0
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL + CASE - + COUNT( * ) WHEN + 20 THEN - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + CASE - + COUNT ( * ) WHEN + 20 THEN - 99 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT COUNT( DISTINCT 22 ) DIV - 19 + + + 34
----
34

skipif mysql # not compatible
query I rowsort label-9762
SELECT COUNT ( DISTINCT 22 ) / - 19 + + + 34
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT - + COUNT( * ) + NULLIF ( + 65, 20 * - 9 ), + 83 + - 29 AS col0
----
64
54

skipif mysql # not compatible
query II rowsort label-9763
SELECT - + COUNT ( * ) + NULLIF ( + 65, 20 * - 9 ), + 83 + - 29 AS col0
----
64
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + - COUNT( * ) * - 71 * - - 35
----
2485

skipif mysql # not compatible
query I rowsort label-9764
SELECT + - COUNT ( * ) * - 71 * - - 35
----
2485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT CAST( NULL AS SIGNED ) * + 20 + - 64 / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT CAST ( NULL AS INTEGER ) * + 20 + - 64 / + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL - + 34 DIV - ( + 27 ) + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - + 34 / - ( + 27 ) + 95 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT + + CASE - 3 WHEN + MAX( ALL 79 ) THEN - ( + CASE - 98 WHEN 43 THEN - + MIN( DISTINCT + 83 ) END ) * + 41 WHEN - 55 THEN NULL END / - NULLIF ( 98 + - 81 * 73, + 96 * 66 ) + + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT + + CASE - 3 WHEN + MAX ( ALL 79 ) THEN - ( + CASE - 98 WHEN 43 THEN - + MIN ( DISTINCT + 83 ) END ) * + 41 WHEN - 55 THEN NULL END / - NULLIF ( 98 + - 81 * 73, + 96 * 66 ) + + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ALL + 69 DIV - COUNT( * ) + 15 + + 5 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + 69 / - COUNT ( * ) + 15 + + 5 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + 5 + + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 5 + + + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT + - CASE - + MAX( 45 ) WHEN - - 1 * - 13 * + 87 - - COALESCE ( - 96, + 5, + 13 * - 41 - + MAX( - CAST( NULL AS SIGNED ) ) ) + + 42 * - 11 THEN NULL WHEN - 23 * - 27 THEN + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT + - CASE - + MAX ( 45 ) WHEN - - 1 * - 13 * + 87 - - COALESCE ( - 96, + 5, + 13 * - 41 - + MAX ( - CAST ( NULL AS INTEGER ) ) ) + + 42 * - 11 THEN NULL WHEN - 23 * - 27 THEN + 51 END AS col0
----
NULL

query I rowsort
SELECT + 19 + + + 43
----
62

query I rowsort
SELECT - 28 * - 10
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9773
SELECT - COUNT( * ) * + 26 DIV + COALESCE ( 97, + 5 + COUNT( * ), + 21 - + 61 * - 50 ) + + 67
----
67

skipif mysql # not compatible
query I rowsort label-9773
SELECT - COUNT ( * ) * + 26 / + COALESCE ( 97, + 5 + COUNT ( * ), + 21 - + 61 * - 50 ) + + 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT + 46 * - NULLIF ( + 52, + 83 * - COALESCE ( - + NULLIF ( - COALESCE ( + - CAST( NULL AS SIGNED ), + - COUNT( * ) * - 57 ), - 40 ), 83 * + 76 ) * + 18 + 92 ) col0
----
-2392

skipif mysql # not compatible
query I rowsort label-9774
SELECT + 46 * - NULLIF ( + 52, + 83 * - COALESCE ( - + NULLIF ( - COALESCE ( + - CAST ( NULL AS INTEGER ), + - COUNT ( * ) * - 57 ), - 40 ), 83 * + 76 ) * + 18 + 92 ) col0
----
-2392

query I rowsort
SELECT - 55 + + 46
----
-9

query I rowsort
SELECT ALL 25 * - + 84 * 14 * 84 AS col1
----
-2469600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT COUNT( * ) + + 24 DIV COUNT( * ) + 17 col2
----
42

skipif mysql # not compatible
query I rowsort label-9777
SELECT COUNT ( * ) + + 24 / COUNT ( * ) + 17 col2
----
42

query I rowsort
SELECT 19 + + 10
----
29

query II rowsort
SELECT - 91 AS col1, - 77
----
-91
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT 26 * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9780
SELECT 26 * - COUNT ( * )
----
-26

query I rowsort
SELECT 45 + + - 44
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT 16 DIV + 16 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9782
SELECT 16 / + 16 AS col1
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( + - 51, + 39 ) + - 58
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT 66 DIV + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 66 / + 40 AS col0
----
1

query II rowsort
SELECT 12, + 2 AS col1
----
12
2

query I rowsort
SELECT ALL 0 * - + 32 AS col2
----
0

query I rowsort
SELECT 51 + + + ( + 9 ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT ALL + CAST( 17 AS SIGNED ) + 2 AS col2, + 31 AS col0
----
19
31

skipif mysql # not compatible
query II rowsort label-9788
SELECT ALL + CAST ( 17 AS INTEGER ) + 2 AS col2, + 31 AS col0
----
19
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - NULLIF ( - - 20, - CASE - 9 WHEN + COUNT( * ) * 24 + 82 + + + COUNT( * ) THEN + 62 / - 49 / 20 * 41 / - COALESCE ( 15, - 65 ) WHEN 70 THEN - MAX( DISTINCT - ( + 15 ) ) ELSE + 35 * - 60 END ) + - 51
----
-71

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - NULLIF ( - - 20, - CASE - 9 WHEN + COUNT ( * ) * 24 + 82 + + + COUNT ( * ) THEN + 62 / - 49 / 20 * 41 / - COALESCE ( 15, - 65 ) WHEN 70 THEN - MAX ( DISTINCT - ( + 15 ) ) ELSE + 35 * - 60 END ) + - 51
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9790
SELECT - 23, 72 + + - SUM( + 80 ) - - + MAX( + + 70 ) DIV 26 * - 82 * - ( + 61 ) * + 21 col1
----
-23
210076

skipif mysql # not compatible
query II rowsort label-9790
SELECT - 23, 72 + + - SUM ( + 80 ) - - + MAX ( + + 70 ) / 26 * - 82 * - ( + 61 ) * + 21 col1
----
-23
210076

query I rowsort
SELECT 34 - + 18
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT + NULLIF ( + 11, + 83 ) DIV + - 40 + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9792
SELECT + NULLIF ( + 11, + 83 ) / + - 40 + + 93 AS col1
----
93

query I rowsort
SELECT ALL - + 58 + + + 82 AS col2
----
24

query I rowsort
SELECT DISTINCT - CASE - - ( - 1 ) WHEN - + 49 THEN NULL ELSE 81 END
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT DISTINCT - CAST( + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT - CAST ( + 34 AS INTEGER )
----
-34

query I rowsort
SELECT ALL 67 * + 66
----
4422

query I rowsort
SELECT ALL - 46 * + + 10
----
-460

query II rowsort
SELECT + 73 col0, 98 * 68 * + 8
----
73
53312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9799
SELECT + + COALESCE ( 62, - + CASE - ( 33 ) WHEN COUNT( DISTINCT 39 ) DIV 19 + + COUNT( * ) THEN 3 + - 53 + + 45 + + + 88 + + 19 DIV CAST( NULL AS SIGNED ) WHEN 10 THEN NULL END * + 63 + - 25 * 2 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-9799
SELECT + + COALESCE ( 62, - + CASE - ( 33 ) WHEN COUNT ( DISTINCT 39 ) / 19 + + COUNT ( * ) THEN 3 + - 53 + + 45 + + + 88 + + 19 / CAST ( NULL AS INTEGER ) WHEN 10 THEN NULL END * + 63 + - 25 * 2 ) col2
----
62

query I rowsort
SELECT 67 * - 61 col1
----
-4087

query I rowsort
SELECT ALL - 96 * 68
----
-6528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9802
SELECT - CASE - + CASE - COUNT( - 39 ) WHEN 46 + - CASE + 82 WHEN - SUM( DISTINCT + 14 ) * + CAST( NULL AS SIGNED ) - 10 + + + MIN( ALL 35 ) * - 99 THEN + 90 WHEN 35 THEN NULLIF ( COUNT( * ), COUNT( * ) ) * + 55 + 67 WHEN 11 THEN - 67 WHEN + ( ( - COUNT( * ) ) ) THEN - 82 ELSE NULL END THEN + 75 WHEN + 8 + 56 / 11 THEN NULL ELSE 71 END WHEN + NULLIF ( - 51, + ( 28 ) - - 18 ) THEN NULL WHEN + 19 / 70 + - ( 77 ) THEN NULL WHEN CAST( 8 AS DECIMAL ) THEN + 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT - CASE - + CASE - COUNT ( - 39 ) WHEN 46 + - CASE + 82 WHEN - SUM ( DISTINCT + 14 ) * + CAST ( NULL AS INTEGER ) - 10 + + + MIN ( ALL 35 ) * - 99 THEN + 90 WHEN 35 THEN NULLIF ( COUNT ( * ), COUNT ( * ) ) * + 55 + 67 WHEN 11 THEN - 67 WHEN + ( ( - COUNT ( * ) ) ) THEN - 82 ELSE NULL END THEN + 75 WHEN + 8 + 56 / 11 THEN NULL ELSE 71 END WHEN + NULLIF ( - 51, + ( 28 ) - - 18 ) THEN NULL WHEN + 19 / 70 + - ( 77 ) THEN NULL WHEN CAST ( 8 AS REAL ) THEN + 65 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( 68 ) * - 14 + - 72 - 87 * - + 56
----
3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9804
SELECT DISTINCT - CASE - 68 WHEN - 74 THEN 10 WHEN - 96 THEN NULL WHEN - 52 THEN 48 ELSE ( - 99 ) + - COUNT( * ) END * 74 AS col2, 75 DIV - 57 col2
----
7400
-1

skipif mysql # not compatible
query II rowsort label-9804
SELECT DISTINCT - CASE - 68 WHEN - 74 THEN 10 WHEN - 96 THEN NULL WHEN - 52 THEN 48 ELSE ( - 99 ) + - COUNT ( * ) END * 74 AS col2, 75 / - 57 col2
----
7400
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 34 * 1 DIV + SUM( - + 45 ), - 24 ) DIV 62 * - 38 DIV + - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 34 * 1 / + SUM ( - + 45 ), - 24 ) / 62 * - 38 / + - 78 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT 84 DIV - - 36 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9806
SELECT 84 / - - 36 AS col2
----
2

query I rowsort
SELECT 90 - - + 42 AS col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT CAST( NULL AS SIGNED ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

query I rowsort
SELECT ( - - 52 ) * + + 38
----
1976

query I rowsort
SELECT ALL 13 + + + 29
----
42

query I rowsort
SELECT ALL 25 * - 20
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL MAX( 72 ) + 80 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL MAX ( 72 ) + 80 AS col0
----
152

query I rowsort
SELECT ALL ( + + 75 ) + - - 95 AS col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT 34 + - 10 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9814
SELECT 34 + - 10 * COUNT ( * )
----
24

query I rowsort
SELECT 76 + + 54 + + NULLIF ( - 45, - 2 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT 79 - 65 - + + ( + 12 ) * + NULLIF ( - 73, - 69 + 95 / ( COALESCE ( COUNT( * ), - - CASE + 17 WHEN - COUNT( * ) * NULLIF ( 45 * - 34, + 9 * 59 ) THEN 61 WHEN - 27 THEN NULL END * 94, - 42 / - CASE 39 * + ( NULLIF ( + 52, + 24 + + 60 ) ) WHEN - 0 + 92 / 77 THEN + 94 / - 79 ELSE NULL END ) ) - 85 )
----
890

skipif mysql # not compatible
query I rowsort label-9816
SELECT 79 - 65 - + + ( + 12 ) * + NULLIF ( - 73, - 69 + 95 / ( COALESCE ( COUNT ( * ), - - CASE + 17 WHEN - COUNT ( * ) * NULLIF ( 45 * - 34, + 9 * 59 ) THEN 61 WHEN - 27 THEN NULL END * 94, - 42 / - CASE 39 * + ( NULLIF ( + 52, + 24 + + 60 ) ) WHEN - 0 + 92 / 77 THEN + 94 / - 79 ELSE NULL END ) ) - 85 )
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - CASE + COUNT( * ) WHEN + 28 THEN - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT - CASE + COUNT ( * ) WHEN + 28 THEN - 72 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + 54 - - COUNT( DISTINCT - 14 )
----
55

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + 54 - - COUNT ( DISTINCT - 14 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - 52 * - + MIN( ALL 69 ) AS col1
----
3588

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - 52 * - + MIN ( ALL 69 ) AS col1
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - - ( + CASE - 54 WHEN + 69 * + 73 THEN NULL WHEN + NULLIF ( + 86, + 21 ) - + - COUNT( * ) THEN + 34 WHEN - 97 + - 58 * - - COUNT( * ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - - ( + CASE - 54 WHEN + 69 * + 73 THEN NULL WHEN + NULLIF ( + 86, + 21 ) - + - COUNT ( * ) THEN + 34 WHEN - 97 + - 58 * - - COUNT ( * ) THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 61 * 93 + - 75 + 47 AS col1
----
5645

onlyif mysql # DIV for integer division: 
query II rowsort label-9822
SELECT + ( + 78 ) AS col2, 88 DIV 28 AS col0
----
78
3

skipif mysql # not compatible
query II rowsort label-9822
SELECT + ( + 78 ) AS col2, 88 / 28 AS col0
----
78
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT ALL COUNT( * ) * - 95 * + COUNT( * ) + - 24 + - + COUNT( DISTINCT + - 80 ) * - 48 - - 33 - + ( - 6 ) AS col2, 57 * - + 57 * 26
----
-32
-84474

skipif mysql # not compatible
query II rowsort label-9823
SELECT ALL COUNT ( * ) * - 95 * + COUNT ( * ) + - 24 + - + COUNT ( DISTINCT + - 80 ) * - 48 - - 33 - + ( - 6 ) AS col2, 57 * - + 57 * 26
----
-32
-84474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT + 60 - - - 85 + + CAST( NULL AS SIGNED ) * - COUNT( ALL - 92 ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT + 60 - - - 85 + + CAST ( NULL AS INTEGER ) * - COUNT ( ALL - 92 ) * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + - COUNT( * ) * - + 81 + + - COALESCE ( 94, + + 20, + ( 17 ) + 55, 77 + 30 ) * - - 37
----
-3397

skipif mysql # not compatible
query I rowsort label-9825
SELECT + - COUNT ( * ) * - + 81 + + - COALESCE ( 94, + + 20, + ( 17 ) + 55, 77 + 30 ) * - - 37
----
-3397

query I rowsort
SELECT + ( + + 92 ) col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + COUNT( ALL 36 )
----
1

skipif mysql # not compatible
query I rowsort label-9827
SELECT + COUNT ( ALL 36 )
----
1

query I rowsort
SELECT + 55 * - 92 + + 70 + + 2 AS col0
----
-4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT - MIN( DISTINCT + - NULLIF ( 20, 43 / + + ( + 94 ) * 57 * + - 80 * + - 41 + - 65 + 50 ) ) * - + 59 + + - 29 + CASE - 85 WHEN COUNT( * ) THEN 60 + 82 WHEN 61 + - ( - 44 ) THEN COALESCE ( 61, 90 + - CAST( AVG ( DISTINCT 73 ) + + COUNT( DISTINCT 14 ) AS SIGNED ) * 20 ) * + 49 WHEN 94 + + 75 THEN 21 * + 48 ELSE NULL END - 60 * 55 * 24 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - MIN ( DISTINCT + - NULLIF ( 20, 43 / + + ( + 94 ) * 57 * + - 80 * + - 41 + - 65 + 50 ) ) * - + 59 + + - 29 + CASE - 85 WHEN COUNT ( * ) THEN 60 + 82 WHEN 61 + - ( - 44 ) THEN COALESCE ( 61, 90 + - CAST ( AVG ( DISTINCT 73 ) + + COUNT ( DISTINCT 14 ) AS INTEGER ) * 20 ) * + 49 WHEN 94 + + 75 THEN 21 * + 48 ELSE NULL END - 60 * 55 * 24 * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 42 * - 33 - + - 0
----
-1386

query II rowsort
SELECT DISTINCT + ( - + 7 ) AS col0, 14 AS col0
----
-7
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL + SUM( - + 60 ) * - ( - CASE 42 WHEN ( - - ( + 57 ) ) + + + 23 * - + ( + 86 ) + - 16 THEN - 72 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + SUM ( - + 60 ) * - ( - CASE 42 WHEN ( - - ( + 57 ) ) + + + 23 * - + ( + 86 ) + - 16 THEN - 72 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT - 79 * - + 42 - CASE + 83 WHEN 75 THEN - + 33 WHEN + 29 THEN + 66 WHEN + 76 * + 44 * + + 6 THEN 94 END + + + 42 * + 16 * + 65 + - 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT - 90 + 22 * - 94 + + 84 + 56 DIV - + 32
----
-2075

skipif mysql # not compatible
query I rowsort label-9834
SELECT - 90 + 22 * - 94 + + 84 + 56 / - + 32
----
-2075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9835
SELECT + 38 * - ( - 55 ) * - + 2 * - ( - + 87 ) + MIN( + + 36 ) DIV + 42 + ( + - 54 ) * + - SUM( DISTINCT - + 78 ) + + 73 + - 33 AS col2
----
-367832

skipif mysql # not compatible
query I rowsort label-9835
SELECT + 38 * - ( - 55 ) * - + 2 * - ( - + 87 ) + MIN ( + + 36 ) / + 42 + ( + - 54 ) * + - SUM ( DISTINCT - + 78 ) + + 73 + - 33 AS col2
----
-367832

query I rowsort
SELECT - 49 + 37 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT 92 * + CAST( 0 AS SIGNED ) - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-9837
SELECT 92 * + CAST ( 0 AS INTEGER ) - + 29
----
-29

query I rowsort
SELECT - 25 + - - 97 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + COUNT( * ) - + + NULLIF ( - + 87, + 50 ) + + + COUNT( * ) - - 32 * - 34 * 23 * 41 + - 39
----
-1025934

skipif mysql # not compatible
query I rowsort label-9839
SELECT + COUNT ( * ) - + + NULLIF ( - + 87, + 50 ) + + + COUNT ( * ) - - 32 * - 34 * 23 * 41 + - 39
----
-1025934

query I rowsort
SELECT DISTINCT + 20 + + - 47 col1
----
-27

query I rowsort
SELECT ALL - 57 * + + 4
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT - COUNT( * ) + - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - COUNT ( * ) + - 98 AS col2
----
-99

query I rowsort
SELECT ALL 66 + - 78 + 72 * - 36
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + ( + 24 ) + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + ( + 24 ) + - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - 83 * - - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 83 * - - COUNT ( * )
----
-83

query I rowsort
SELECT + 48 + 53 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9847
SELECT + 53 + + 44 + + 79 AS col1, CAST( + 58 AS SIGNED ) AS col1
----
176
58

skipif mysql # not compatible
query II rowsort label-9847
SELECT + 53 + + 44 + + 79 AS col1, CAST ( + 58 AS INTEGER ) AS col1
----
176
58

query I rowsort
SELECT + 12 * - 85 AS col0
----
-1020

query I rowsort
SELECT + 18 + 14 AS col0
----
32

query I rowsort
SELECT - COALESCE ( + + 44, + - 74 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT ALL 0 - + 40 * CAST( + 41 AS SIGNED ) + + + 83 AS col2
----
-1557

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 0 - + 40 * CAST ( + 41 AS INTEGER ) + + + 83 AS col2
----
-1557

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT MIN( + ( + 93 ) ) * 65 + + ( - + 64 ) AS col1
----
5981

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT MIN ( + ( + 93 ) ) * 65 + + ( - + 64 ) AS col1
----
5981

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - - MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9853
SELECT - - MAX ( 45 )
----
45

query I rowsort
SELECT + 5 + 17 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9855
SELECT + 49 * + 93 * - - 81 AS col2, - CAST( + ( - ( 39 ) ) AS SIGNED ) * + COUNT( * ) + 43 + - 69
----
369117
13

skipif mysql # not compatible
query II rowsort label-9855
SELECT + 49 * + 93 * - - 81 AS col2, - CAST ( + ( - ( 39 ) ) AS INTEGER ) * + COUNT ( * ) + 43 + - 69
----
369117
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + NULLIF ( - 82, + ( - 49 ) + 30 * 96 ) * + 16 * + MIN( ALL - - 8 ) AS col2
----
-10496

skipif mysql # not compatible
query I rowsort label-9856
SELECT + NULLIF ( - 82, + ( - 49 ) + 30 * 96 ) * + 16 * + MIN ( ALL - - 8 ) AS col2
----
-10496

query II rowsort
SELECT ALL + 1 AS col2, + 94 AS col2
----
1
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9858
SELECT 18 * + + COUNT( * ) / - CAST( NULL AS DECIMAL ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT 18 * + + COUNT ( * ) / - CAST ( NULL AS REAL ) + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT DISTINCT + + 50, MIN( - 55 ) AS col2
----
50
-55

skipif mysql # not compatible
query II rowsort label-9859
SELECT DISTINCT + + 50, MIN ( - 55 ) AS col2
----
50
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + + COUNT( ALL - + ( - 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT + + COUNT ( ALL - + ( - 3 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) / - + 71 * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / - + 71 * 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9862
SELECT ALL + - 46 DIV + + 27 + - 52 * + 92 + + - 57 * 6 + - ( - 35 ), 0 * COUNT( * ) col0
----
-5092
0

skipif mysql # not compatible
query II rowsort label-9862
SELECT ALL + - 46 / + + 27 + - 52 * + 92 + + - 57 * 6 + - ( - 35 ), 0 * COUNT ( * ) col0
----
-5092
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9863
SELECT - - 13 DIV 70 * 47 DIV 20 + - + CAST( 25 AS SIGNED ) + 9 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9863
SELECT - - 13 / 70 * 47 / 20 + - + CAST ( 25 AS INTEGER ) + 9 AS col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9864
SELECT ALL 91 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL 91 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + ( - + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + + COUNT( * ) * 31 * + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9866
SELECT + + COUNT ( * ) * 31 * + COUNT ( * ) AS col0
----
31

query II rowsort
SELECT + 42, + 70 + - + 68 * + 52 AS col1
----
42
-3466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL - 41 * 84 + + NULLIF ( + 6, COALESCE ( - ( + + 55 ), + CAST( NULL AS SIGNED ) ) ) + - 6 * CAST( 82 AS SIGNED ) AS col1
----
-3930

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - 41 * 84 + + NULLIF ( + 6, COALESCE ( - ( + + 55 ), + CAST ( NULL AS INTEGER ) ) ) + - 6 * CAST ( 82 AS INTEGER ) AS col1
----
-3930

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + MIN( ALL + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9869
SELECT + MIN ( ALL + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT + 32 * - ( + 64 ) * - - MAX( DISTINCT NULLIF ( + + ( 12 ), - 14 ) ) * 42 + + NULLIF ( - CASE COALESCE ( + 10, 12 / - MAX( ALL - + 77 ) * MAX( DISTINCT 69 ) ) WHEN + AVG ( DISTINCT - ( 58 ) ) THEN 8 + 29 WHEN NULLIF ( - 9, AVG ( ALL 4 ) ) + SUM( + 2 ) THEN NULL WHEN COUNT( * ) THEN NULL END, 92 ) + + 87 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 32 * - ( + 64 ) * - - MAX ( DISTINCT NULLIF ( + + ( 12 ), - 14 ) ) * 42 + + NULLIF ( - CASE COALESCE ( + 10, 12 / - MAX ( ALL - + 77 ) * MAX ( DISTINCT 69 ) ) WHEN + AVG ( DISTINCT - ( 58 ) ) THEN 8 + 29 WHEN NULLIF ( - 9, AVG ( ALL 4 ) ) + SUM ( + 2 ) THEN NULL WHEN COUNT ( * ) THEN NULL END, 92 ) + + 87 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT 49 * + + 4 * 96 / - CASE 77 WHEN - + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) WHEN COUNT( * ) + - + 41 THEN 40 * 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 49 * + + 4 * 96 / - CASE 77 WHEN - + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + - + 41 THEN 40 * 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COALESCE ( - 18, + - COUNT( * ) + + 53 )
----
-18

skipif mysql # not compatible
query I rowsort label-9872
SELECT COALESCE ( - 18, + - COUNT ( * ) + + 53 )
----
-18

query I rowsort
SELECT DISTINCT - 54 * 9 + - NULLIF ( + 40, - - 27 )
----
-526

query II rowsort
SELECT + 97, + 12 AS col2
----
97
12

query I rowsort
SELECT ALL + 22 * - + 85 + - 2 AS col1
----
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT - COUNT( * ) AS col1, 33 AS col0
----
-1
33

skipif mysql # not compatible
query II rowsort label-9876
SELECT - COUNT ( * ) AS col1, 33 AS col0
----
-1
33

query I rowsort
SELECT COALESCE ( - 41, + 97 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9878
SELECT - 60 - - MIN( 2 ) * 73 + + 9 + + + 8 * + COUNT( * ) + - 60 + - 29 + + 96 * - + 17 + - CASE - 97 WHEN + - COUNT( * ) * - + 53 * + 10 THEN NULL WHEN - CAST( - 60 AS DECIMAL ) * CASE + 70 WHEN 83 + 54 THEN NULL WHEN COUNT( * ) THEN + CAST( - COUNT( * ) AS SIGNED ) END - CAST( NULL AS SIGNED ) THEN - COALESCE ( 2, + 60, 29 ) END + + 71 * - ( 63 + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT - 60 - - MIN ( 2 ) * 73 + + 9 + + + 8 * + COUNT ( * ) + - 60 + - 29 + + 96 * - + 17 + - CASE - 97 WHEN + - COUNT ( * ) * - + 53 * + 10 THEN NULL WHEN - CAST ( - 60 AS REAL ) * CASE + 70 WHEN 83 + 54 THEN NULL WHEN COUNT ( * ) THEN + CAST ( - COUNT ( * ) AS INTEGER ) END - CAST ( NULL AS INTEGER ) THEN - COALESCE ( 2, + 60, 29 ) END + + 71 * - ( 63 + 46 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - SUM( ( - 5 ) ) * - - SUM( - 33 )
----
-165

skipif mysql # not compatible
query I rowsort label-9879
SELECT - SUM ( ( - 5 ) ) * - - SUM ( - 33 )
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9880
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 29 - - + 26 * - 80 * + - CASE COUNT( * ) WHEN + 77 + MAX( - 22 ) THEN NULL WHEN - COALESCE ( + 79, + 73 * + + CAST( + 72 AS SIGNED ) - 5 / + - 53 + COUNT( + 2 ), + AVG ( + 39 ) + 18 * + 16 ) THEN - 73 * SUM( 28 ) + - CASE - ( + 31 ) WHEN - 20 * 77 THEN 6 + 72 WHEN + 14 THEN NULL ELSE 65 * 58 - 64 END ELSE + 14 END * - 16 + COUNT( * )
----
NULL
-465890

skipif mysql # not compatible
query II rowsort label-9880
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 29 - - + 26 * - 80 * + - CASE COUNT ( * ) WHEN + 77 + MAX ( - 22 ) THEN NULL WHEN - COALESCE ( + 79, + 73 * + + CAST ( + 72 AS INTEGER ) - 5 / + - 53 + COUNT ( + 2 ), + AVG ( + 39 ) + 18 * + 16 ) THEN - 73 * SUM ( 28 ) + - CASE - ( + 31 ) WHEN - 20 * 77 THEN 6 + 72 WHEN + 14 THEN NULL ELSE 65 * 58 - 64 END ELSE + 14 END * - 16 + COUNT ( * )
----
NULL
-465890

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT - 12 + - 93 - + - 4 DIV - + ( 53 ) * - 2 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-9881
SELECT - 12 + - 93 - + - 4 / - + ( 53 ) * - 2 AS col0
----
-105

query I rowsort
SELECT ALL + 99 * - - 38 * + - 32
----
-120384

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - COUNT( * ) * + + 64 col2
----
-64

skipif mysql # not compatible
query I rowsort label-9883
SELECT - COUNT ( * ) * + + 64 col2
----
-64

query II rowsort
SELECT ALL + ( + 3 ) * - + 73 * - 63, 73 + - 83 col1
----
13797
-10

query II rowsort
SELECT ALL 75, 65 AS col1
----
75
65

query I rowsort
SELECT 79 - 42 + + 5 * + 54 AS col0
----
307

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT 83 DIV - 60 + 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9887
SELECT 83 / - 60 + 7 AS col0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9888
SELECT NULLIF ( + + 92, - - CAST( NULL AS DECIMAL ) * - 7 + + 71 ) * + 1
----
92

skipif mysql # not compatible
query I rowsort label-9888
SELECT NULLIF ( + + 92, - - CAST ( NULL AS REAL ) * - 7 + + 71 ) * + 1
----
92

query I rowsort
SELECT - 47 + - 11
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT - COALESCE ( - COALESCE ( - 53, + - 83, 61 ), - 93, + 44 DIV 5 )
----
-53

skipif mysql # not compatible
query I rowsort label-9890
SELECT - COALESCE ( - COALESCE ( - 53, + - 83, 61 ), - 93, + 44 / 5 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9891
SELECT DISTINCT 95 * + COUNT( * ) AS col1, + 87 * + + 44 AS col0
----
95
3828

skipif mysql # not compatible
query II rowsort label-9891
SELECT DISTINCT 95 * + COUNT ( * ) AS col1, + 87 * + + 44 AS col0
----
95
3828

query I rowsort
SELECT ALL ( + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT + COUNT( * ) AS col0, - 11 AS col0
----
1
-11

skipif mysql # not compatible
query II rowsort label-9893
SELECT + COUNT ( * ) AS col0, - 11 AS col0
----
1
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT 25 col0, + COALESCE ( + + MAX( ALL 83 ), 17 )
----
25
83

skipif mysql # not compatible
query II rowsort label-9894
SELECT 25 col0, + COALESCE ( + + MAX ( ALL 83 ), 17 )
----
25
83

query I rowsort
SELECT DISTINCT 62 * - 71 * - 95
----
418190

onlyif mysql # DIV for integer division: 
query II rowsort label-9896
SELECT + + 29, + 51 DIV - + ( 93 ) AS col0
----
29
0

skipif mysql # not compatible
query II rowsort label-9896
SELECT + + 29, + 51 / - + ( 93 ) AS col0
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL SUM( - 10 ) * + 99 * 90 * + 15 * - 12 * 87 + - CASE + + 29 WHEN + + 87 + + - 61 * - - 1 / - NULLIF ( - - 38, + 26 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL SUM ( - 10 ) * + 99 * 90 * + 15 * - 12 * 87 + - CASE + + 29 WHEN + + 87 + + - 61 * - - 1 / - NULLIF ( - - 38, + 26 ) THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT 75 * COUNT( ALL + 25 )
----
75

skipif mysql # not compatible
query I rowsort label-9898
SELECT 75 * COUNT ( ALL + 25 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT 76 * - - ( - COALESCE ( + 44, - - 49, - + COUNT( * ) ) ) + + COUNT( * ) + - - 51 * 32 DIV - 70 AS col1
----
-3366

skipif mysql # not compatible
query I rowsort label-9899
SELECT 76 * - - ( - COALESCE ( + 44, - - 49, - + COUNT ( * ) ) ) + + COUNT ( * ) + - - 51 * 32 / - 70 AS col1
----
-3366

query I rowsort
SELECT ALL - 91 + 57
----
-34

query I rowsort
SELECT DISTINCT - - 64 col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9902
SELECT ALL 8 + - 8 AS col1, + 20 * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL 8 + - 8 AS col1, + 20 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CASE + 61 WHEN + 75 THEN + 56 ELSE - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CASE + 61 WHEN + 75 THEN + 56 ELSE - 8 END
----
NULL

query I rowsort
SELECT + 36 * 34 + + + 30 + - ( - + 56 ) + - - 86 AS col1
----
1396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT CAST( NULL AS SIGNED ) + + ( 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT CAST ( NULL AS INTEGER ) + + ( 36 ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 50, - + 96 ) * + 67 + - 12 * + 9 col1
----
3242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9907
SELECT 79 - + ( + SUM( ALL + 76 ) ) - 32 + 19 * - 86 + - COALESCE ( - + 10, 84 ) * - COUNT( * ) / - CAST( NULL AS SIGNED ) * + + 10 * 1 - AVG ( ALL - + 51 ) + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT 79 - + ( + SUM ( ALL + 76 ) ) - 32 + 19 * - 86 + - COALESCE ( - + 10, 84 ) * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + + 10 * 1 - AVG ( ALL - + 51 ) + + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL CASE 94 WHEN - CAST( NULL AS SIGNED ) THEN + - 66 WHEN - - 8 THEN + 63 ELSE 76 END * - - 29
----
2204

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL CASE 94 WHEN - CAST ( NULL AS INTEGER ) THEN + - 66 WHEN - - 8 THEN + 63 ELSE 76 END * - - 29
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT 53 - - 87 - 92 * COUNT( * ) + - 93 * - 11 AS col1
----
1071

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT 53 - - 87 - 92 * COUNT ( * ) + - 93 * - 11 AS col1
----
1071

query I rowsort
SELECT 69 + + 8 + 6
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9911
SELECT 79 + + COUNT( * ), - 80 AS col1
----
80
-80

skipif mysql # not compatible
query II rowsort label-9911
SELECT 79 + + COUNT ( * ), - 80 AS col1
----
80
-80

query I rowsort
SELECT 85 * - 1 * + 97 AS col1
----
-8245

query II rowsort
SELECT + 27 + + 19, + 59 AS col2
----
46
59

query I rowsort
SELECT 28 + 10
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT ALL - 27 + CASE CAST( - 71 AS SIGNED ) WHEN - COUNT( + 51 ) * AVG ( - 29 ) * + 58 * 59 + - NULLIF ( + CAST( NULL AS SIGNED ), + 71 + - - 30 ) + - 85 * + 22 THEN NULL WHEN - + CASE + 4 WHEN MAX( 32 ) THEN 39 * 45 - 66 ELSE NULL END * + 57 THEN + 2 * + COUNT( * ) ELSE NULL END + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL - 27 + CASE CAST ( - 71 AS INTEGER ) WHEN - COUNT ( + 51 ) * AVG ( - 29 ) * + 58 * 59 + - NULLIF ( + CAST ( NULL AS INTEGER ), + 71 + - - 30 ) + - 85 * + 22 THEN NULL WHEN - + CASE + 4 WHEN MAX ( 32 ) THEN 39 * 45 - 66 ELSE NULL END * + 57 THEN + 2 * + COUNT ( * ) ELSE NULL END + + 70 AS col2
----
NULL

query I rowsort
SELECT ALL 7 + + 36
----
43

query I rowsort
SELECT + 76 + - 22 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - 94 * 41 * 77 + + MIN( + - 6 )
----
-296764

skipif mysql # not compatible
query I rowsort label-9918
SELECT - 94 * 41 * 77 + + MIN ( + - 6 )
----
-296764

query I rowsort
SELECT + 3 + - 44 * + - 41
----
1807

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + 43 * - 57 + + COUNT( * )
----
-2450

skipif mysql # not compatible
query I rowsort label-9920
SELECT + 43 * - 57 + + COUNT ( * )
----
-2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT CAST( - - 98 AS SIGNED ) * 64 * 76
----
476672

skipif mysql # not compatible
query I rowsort label-9921
SELECT CAST ( - - 98 AS INTEGER ) * 64 * 76
----
476672

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - 48 * + COUNT( * ) + - 90 + - + 97 * - CASE + 9 WHEN 93 * + + 19 * + 23 THEN - 89 WHEN - 54 + + + CASE + - 7 WHEN - 58 THEN - COUNT( * ) WHEN - 19 THEN NULL END / - 25 * 57 + + 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 48 * + COUNT ( * ) + - 90 + - + 97 * - CASE + 9 WHEN 93 * + + 19 * + 23 THEN - 89 WHEN - 54 + + + CASE + - 7 WHEN - 58 THEN - COUNT ( * ) WHEN - 19 THEN NULL END / - 25 * 57 + + 20 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT 25 DIV - 76 + 61
----
61

skipif mysql # not compatible
query I rowsort label-9923
SELECT 25 / - 76 + 61
----
61

query I rowsort
SELECT ALL + 61 * - + 13 - - 74
----
-719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL - ( - 27 ) * - + 9 + 24 * - CAST( NULL AS SIGNED ) - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - ( - 27 ) * - + 9 + 24 * - CAST ( NULL AS INTEGER ) - - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT COUNT( * ) * + - 19 * 68
----
-1292

skipif mysql # not compatible
query I rowsort label-9926
SELECT COUNT ( * ) * + - 19 * 68
----
-1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT DISTINCT - 0 * - 26 * - CAST( NULL AS SIGNED ) - - + 14 - + ( + - COALESCE ( - 7, - COUNT( DISTINCT + 9 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - 0 * - 26 * - CAST ( NULL AS INTEGER ) - - + 14 - + ( + - COALESCE ( - 7, - COUNT ( DISTINCT + 9 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + SUM( 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9928
SELECT + SUM ( 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT MIN( + + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9929
SELECT MIN ( + + 82 ) AS col2
----
82

query I rowsort
SELECT ALL - CASE + 4 WHEN 84 + 73 - + - 24 / 39 * - 86 * + 41 THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT MIN( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9931
SELECT MIN ( ALL 77 )
----
77

query I rowsort
SELECT + 89 * - 24
----
-2136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT + 6 DIV + NULLIF ( - COUNT( * ), - COUNT( * ) + - 62 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 6 / + NULLIF ( - COUNT ( * ), - COUNT ( * ) + - 62 ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9934
SELECT ALL + COUNT( * ) AS col0, + CAST( - + ( + 14 ) AS DECIMAL ) * - - CASE - - 15 WHEN - 54 THEN - - 28 + CAST( NULL AS DECIMAL ) WHEN + ( - 31 ) THEN NULL WHEN 67 + SUM( + 85 ) THEN - COUNT( * ) END * - - 98 * ( + 0 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL + COUNT ( * ) AS col0, + CAST ( - + ( + 14 ) AS REAL ) * - - CASE - - 15 WHEN - 54 THEN - - 28 + CAST ( NULL AS REAL ) WHEN + ( - 31 ) THEN NULL WHEN 67 + SUM ( + 85 ) THEN - COUNT ( * ) END * - - 98 * ( + 0 )
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT DISTINCT 47 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT 47 / - 99
----
0

query II rowsort
SELECT 91, - 46 - + - 25 * 20 + - 77 AS col2
----
91
377

query I rowsort
SELECT DISTINCT 82 * - - 21
----
1722

query I rowsort
SELECT ALL 41 * 75
----
3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT + + 78 + + - CASE - CASE + - CAST( + 90 AS SIGNED ) WHEN 67 THEN 75 ELSE NULL END WHEN 77 THEN - 18 * CAST( NULL AS SIGNED ) + + MAX( + NULLIF ( 50, - - 68 ) ) * - 91 - 61 + + + CAST( NULL AS SIGNED ) WHEN + CASE - 20 WHEN + 57 THEN NULL WHEN 35 + 0 THEN NULL ELSE + 65 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT + + 78 + + - CASE - CASE + - CAST ( + 90 AS INTEGER ) WHEN 67 THEN 75 ELSE NULL END WHEN 77 THEN - 18 * CAST ( NULL AS INTEGER ) + + MAX ( + NULLIF ( 50, - - 68 ) ) * - 91 - 61 + + + CAST ( NULL AS INTEGER ) WHEN + CASE - 20 WHEN + 57 THEN NULL WHEN 35 + 0 THEN NULL ELSE + 65 END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT - 39 * - - COALESCE ( + + 82, - 20 * - 14 + 78 - + 26 * + 13 ) + COUNT( * )
----
-3197

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - 39 * - - COALESCE ( + + 82, - 20 * - 14 + 78 - + 26 * + 13 ) + COUNT ( * )
----
-3197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT ALL + + 42 + + COUNT( * ) + + ( 59 ) * - - ( - - CAST( NULL AS SIGNED ) ) * - ( + 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + + 42 + + COUNT ( * ) + + ( 59 ) * - - ( - - CAST ( NULL AS INTEGER ) ) * - ( + 3 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT 39 + CAST( - 37 AS SIGNED ) + - 11 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT 39 + CAST ( - 37 AS INTEGER ) + - 11 AS col2
----
-9

query I rowsort
SELECT DISTINCT - 90 + + + 92
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - + MIN( - 27 ) + + + 77
----
104

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - + MIN ( - 27 ) + + + 77
----
104

query I rowsort
SELECT + 41 * - 44 col2
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT + NULLIF ( + 57, - SUM( ALL - - 39 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + NULLIF ( + 57, - SUM ( ALL - - 39 ) ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT ALL - - 24 - - 54 + + COUNT( * ) * - + 76 DIV 72
----
77

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - - 24 - - 54 + + COUNT ( * ) * - + 76 / 72
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT - - 94 * + SUM( DISTINCT 70 )
----
6580

skipif mysql # not compatible
query I rowsort label-9948
SELECT - - 94 * + SUM ( DISTINCT 70 )
----
6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT - 95 * + ( - NULLIF ( COUNT( * ), - CAST( + 59 AS SIGNED ) ) ) + + 83 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-9949
SELECT - 95 * + ( - NULLIF ( COUNT ( * ), - CAST ( + 59 AS INTEGER ) ) ) + + 83 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL + SUM( - 4 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + SUM ( - 4 ) col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT + - ( + MIN( ALL - 52 ) ) AS col2, COUNT( DISTINCT + 56 ) AS col2
----
52
1

skipif mysql # not compatible
query II rowsort label-9951
SELECT + - ( + MIN ( ALL - 52 ) ) AS col2, COUNT ( DISTINCT + 56 ) AS col2
----
52
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT 66 DIV 87 + + - 90
----
-90

skipif mysql # not compatible
query I rowsort label-9952
SELECT 66 / 87 + + - 90
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9953
SELECT ( - + CAST( ( + ( - ( + COALESCE ( + 76, COUNT( - - 27 ) ) ) ) ) AS SIGNED ) ) AS col1, 44
----
76
44

skipif mysql # not compatible
query II rowsort label-9953
SELECT ( - + CAST ( ( + ( - ( + COALESCE ( + 76, COUNT ( - - 27 ) ) ) ) ) AS INTEGER ) ) AS col1, 44
----
76
44

query I rowsort
SELECT 39 * ( + 35 ) * - 34 + + 2 + + 8 * - 69 AS col0
----
-46960

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT ALL - 67 DIV 30
----
-2

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL - 67 / 30
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9956
SELECT - 28 * + 62 * 67 + + ( - - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT - 28 * + 62 * 67 + + ( - - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT DISTINCT + SUM( ALL + + CAST( + 10 AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + SUM ( ALL + + CAST ( + 10 AS INTEGER ) ) AS col2
----
10

query I rowsort
SELECT - 89 + - 32 AS col1
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT + 71 DIV 61 * + - ( + 81 ) + - 31 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 71 / 61 * + - ( + 81 ) + - 31 AS col2
----
-112

query I rowsort
SELECT + 83 + - 86
----
-3

query I rowsort
SELECT ALL + ( - - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT COUNT( * ) * + ( + 33 ) * 67 * - + 43 + - COUNT( * )
----
-95074

skipif mysql # not compatible
query I rowsort label-9962
SELECT COUNT ( * ) * + ( + 33 ) * 67 * - + 43 + - COUNT ( * )
----
-95074

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL COUNT( * ) * - + 45 + + ( 85 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL COUNT ( * ) * - + 45 + + ( 85 ) AS col2
----
40

query I rowsort
SELECT - 47 + - 24 - - 77 AS col1
----
6

query I rowsort
SELECT + ( + - 80 ) + + + 87
----
7

query I rowsort
SELECT ALL 39 * + 98 + - 77
----
3745

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL 10 * + + SUM( DISTINCT + 35 ) + - 81
----
269

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL 10 * + + SUM ( DISTINCT + 35 ) + - 81
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT + - 41 + - 83 * - + 34 * - 1 - - 74 + + - COUNT( * ) col2
----
-2790

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - 41 + - 83 * - + 34 * - 1 - - 74 + + - COUNT ( * ) col2
----
-2790

query II rowsort
SELECT ( + - 74 ) AS col0, 25
----
-74
25

query I rowsort
SELECT DISTINCT ( + 18 ) + - - 17 col2
----
35

query I rowsort
SELECT ALL 46 + + - 73 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - + CAST( NULL AS SIGNED ) ) * - NULLIF ( + COUNT( * ), 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + COUNT ( * ), 62 )
----
NULL

query I rowsort
SELECT + 85 * + 39 AS col2
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL ( - 92 ) * - - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL ( - 92 ) * - - COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT + 29 * + 3
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9976
SELECT ALL 69 * + + 1, ( COUNT( * ) ) * + 43 + 12 * - 27 - + COUNT( * ) - - - CAST( NULL AS SIGNED ) * + COUNT( * ) * + COUNT( + 41 ) AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9976
SELECT ALL 69 * + + 1, ( COUNT ( * ) ) * + 43 + 12 * - 27 - + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( + 41 ) AS col1
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + + 89 + + - COUNT( * ) * - + 46 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-9977
SELECT + + 89 + + - COUNT ( * ) * - + 46 AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9978
SELECT DISTINCT COUNT( * ) * + 33 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT COUNT ( * ) * + 33 / 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL ( MIN( + - 69 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL ( MIN ( + - 69 ) ) AS col0
----
-69

query I rowsort
SELECT ALL - 45 - 73 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + + COUNT( * ) * + 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9981
SELECT + + COUNT ( * ) * + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL - CASE - + 4 WHEN - 23 THEN NULL WHEN SUM( DISTINCT + ( + + 68 ) ) THEN NULL WHEN + 12 * 58 THEN NULL ELSE + CASE - - 92 WHEN + COUNT( * ) - - 46 THEN + 33 + + 89 * + 71 + - 19 WHEN - 82 - - 99 / ( COUNT( * ) ) * 40 THEN NULL ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - CASE - + 4 WHEN - 23 THEN NULL WHEN SUM ( DISTINCT + ( + + 68 ) ) THEN NULL WHEN + 12 * 58 THEN NULL ELSE + CASE - - 92 WHEN + COUNT ( * ) - - 46 THEN + 33 + + 89 * + 71 + - 19 WHEN - 82 - - 99 / ( COUNT ( * ) ) * 40 THEN NULL ELSE NULL END END AS col1
----
NULL

query I rowsort
SELECT + 32 * - 93 * - 97
----
288672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9984
SELECT + SUM( ALL - ( 77 ) ) * COUNT( * ) * - + 65 + - ( + 84 ) - - + 78 AS col1, + CAST( NULL AS SIGNED ) * - 38 / + - CAST( 58 AS SIGNED )
----
4999
NULL

skipif mysql # not compatible
query II rowsort label-9984
SELECT + SUM ( ALL - ( 77 ) ) * COUNT ( * ) * - + 65 + - ( + 84 ) - - + 78 AS col1, + CAST ( NULL AS INTEGER ) * - 38 / + - CAST ( 58 AS INTEGER )
----
4999
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT - 13 * COALESCE ( 66, COUNT( + - 73 ) * - COALESCE ( + 88, + 72 + COALESCE ( + 67, + 65 ) ) + - 51 * + - 8 ) * - + 11 + + CAST( + ( - 21 ) AS SIGNED )
----
9417

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 13 * COALESCE ( 66, COUNT ( + - 73 ) * - COALESCE ( + 88, + 72 + COALESCE ( + 67, + 65 ) ) + - 51 * + - 8 ) * - + 11 + + CAST ( + ( - 21 ) AS INTEGER )
----
9417

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT - SUM( ALL 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - SUM ( ALL 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT COUNT( * ) * - 84 * COALESCE ( - NULLIF ( - 76, - + 21 + ( - 56 ) ), - 61 - - 82 * - 45 - - 38, + 29 ) * ( - + 80 ) * COUNT( * )
----
510720

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT COUNT ( * ) * - 84 * COALESCE ( - NULLIF ( - 76, - + 21 + ( - 56 ) ), - 61 - - 82 * - 45 - - 38, + 29 ) * ( - + 80 ) * COUNT ( * )
----
510720

query II rowsort
SELECT ALL - ( - + 48 ) * - - 13 AS col1, + 8 * 65
----
624
520

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - NULLIF ( + MIN( ALL + + 66 ), - SUM( ALL + 4 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - NULLIF ( + MIN ( ALL + + 66 ), - SUM ( ALL + 4 ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT + 63 + COUNT( * ) * + 20 * - 99 AS col0
----
-1917

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + 63 + COUNT ( * ) * + 20 * - 99 AS col0
----
-1917

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT DISTINCT - COUNT( * ), + 26 AS col0
----
-1
26

skipif mysql # not compatible
query II rowsort label-9991
SELECT DISTINCT - COUNT ( * ), + 26 AS col0
----
-1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT 89 DIV NULLIF ( ( + 85 ), 20 * + + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9992
SELECT 89 / NULLIF ( ( + 85 ), 20 * + + 20 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT + 36 DIV + ( - 2 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT + 36 / + ( - 2 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - 82 + - + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - 82 + - + COUNT ( * )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT 78 DIV - 12
----
-6

skipif mysql # not compatible
query I rowsort label-9995
SELECT 78 / - 12
----
-6

query I rowsort
SELECT ALL + 46 + 26 * 30 AS col1
----
826

query II rowsort
SELECT 29 AS col2, 2 col2
----
29
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - NULLIF ( 99, 0 * SUM( DISTINCT - 84 ) * - 2 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - NULLIF ( 99, 0 * SUM ( DISTINCT - 84 ) * - 2 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL 87 + + 25 + + + COUNT( DISTINCT + 77 ) - + ( + - 14 ) * + COUNT( * ) * + 44 * - 70 + - 1 * 89 / - CASE - 38 WHEN - 56 THEN NULL WHEN - 5 * - 35 THEN NULL WHEN 47 - + 73 / + + 49 THEN - - 63 END * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL 87 + + 25 + + + COUNT ( DISTINCT + 77 ) - + ( + - 14 ) * + COUNT ( * ) * + 44 * - 70 + - 1 * 89 / - CASE - 38 WHEN - 56 THEN NULL WHEN - 5 * - 35 THEN NULL WHEN 47 - + 73 / + + 49 THEN - - 63 END * + 76
----
NULL

