sqllogictest
Artifact Content
Not logged in

Artifact e3d2597255c18a3857a864c0dfeff7988195a28f:


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